/* LingoFlip website — shared design system */

:root {
  --primary: #58cc02;
  --primary-dark: #46a302;
  --primary-light: #e3f8d1;
  --accent: #1cb0f6;
  --accent-light: #ddf4ff;
  --accent-dark: #1899d6;
  --accent-border: #aae0fc;
  --ink: #3c3c3c;
  --muted: #afafaf;
  --track: #e5e5e5;
  --danger: #ff4b4b;
  --white: #ffffff;
  --black: #000000;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 16px;
  color: var(--ink);
}

.lede {
  font-size: 1.2rem;
  color: #6b6b6b;
  font-weight: 600;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--track);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--accent-dark);
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.05s ease, filter 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 0 var(--primary-dark);
}

.btn-primary:active {
  box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--accent-dark);
  border: 2px solid var(--accent-border);
  box-shadow: 0 4px 0 var(--accent-border);
}

.btn-secondary:active {
  box-shadow: 0 2px 0 var(--accent-border);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Hero */

.hero {
  padding: 72px 0 56px;
}

.hero-inner {
  max-width: 720px;
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

/* Feature grid */

.section {
  padding: 56px 0;
}

.section-alt {
  background: #fafafa;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--track);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  color: #6b6b6b;
  margin-bottom: 0;
}

/* Language chips */

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.language-chip {
  background: var(--white);
  border: 1px solid var(--track);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.language-chip .name {
  font-weight: 800;
  display: block;
}

.language-chip .native {
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */

.faq-item {
  border: 1px solid var(--track);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin-bottom: 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--accent-dark);
  font-size: 1.3rem;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  padding-bottom: 16px;
  color: #6b6b6b;
}

.contact-card {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 40px;
  text-align: center;
}

.contact-card a {
  font-weight: 800;
  font-size: 1.15rem;
}

/* Legal docs */

.legal-doc {
  max-width: 760px;
}

.legal-doc h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc ul {
  padding-left: 22px;
}

.legal-doc li {
  margin-bottom: 8px;
}

.updated {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--track);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Responsive */

@media (max-width: 780px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .language-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    gap: 18px;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
