/* =========================================================
   VocabMint — landing page stylesheet
   Brand palette taken from logo (green primary) + mint accent
   ========================================================= */

:root {
  /* Brand */
  --brand: #3CB371;
  --brand-light: #5CDB95;
  --brand-dark: #2E8B57;
  --brand-bg: #E8F8F0;

  /* Mint accent (secondary) */
  --accent: #00BFA5;
  --accent-dark: #00897B;

  /* Source colours (from app SourceColors) */
  --src-book:    #4A90D9;  --src-book-bg:    #E8F4FD;
  --src-film:    #E74C3C;  --src-film-bg:    #FDEDEB;
  --src-song:    #9B59B6;  --src-song-bg:    #F5EEF8;
  --src-podcast: #E64A19;  --src-podcast-bg: #FBE9E7;
  --src-lesson:  #F39C12;  --src-lesson-bg:  #FEF5E7;
  --src-grammar: #3F51B5;  --src-grammar-bg: #E8EAF6;

  /* Neutrals */
  --text:       #2C3E50;
  --text-soft:  #5D6D7E;
  --text-muted: #7F8C8D;
  --surface:    #FFFFFF;
  --surface-2:  #FAFAFA;
  --border:     #E5E7EB;
  --dark-bg:    #1F2937;

  /* Typography */
  --font-sans:    'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);

  /* Layout */
  --container-w:        1200px;
  --container-w-narrow: 760px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow:    0 4px 12px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

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

/* ==== Buttons ==== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm  { padding: 8px 16px;  font-size: .9rem; }
.btn-lg  { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(60,179,113,.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(60,179,113,.45);
  color: white;
}

.btn-outline {
  background: white;
  color: var(--brand-dark);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand-bg);
  color: var(--brand-dark);
}

/* ==== Header ==== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 72px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 38px; width: auto; }
.logo-footer { height: 32px; }

.site-nav {
  display: flex; gap: 28px; flex: 1; justify-content: center;
}
.site-nav a {
  color: var(--text-soft); font-weight: 500; font-size: .95rem;
  transition: color .15s;
}
.site-nav a:hover { color: var(--brand-dark); }

.header-actions { flex-shrink: 0; }

@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
  .logo { height: 32px; }
}

/* ==== Hero ==== */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(92,219,149,.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0,191,165,.12) 0%, transparent 55%),
    var(--surface);
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center;
}
.hero-text h1 { margin-bottom: 24px; }
.hero-text h1 br { display: block; }
.hero-sub {
  font-size: 1.2rem; color: var(--text-soft); max-width: 540px; margin-bottom: 36px;
}
.hero-sub em { color: var(--brand-dark); font-style: normal; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-meta { color: var(--text-muted); font-size: .9rem; margin: 0; }
.hero-visual { display: flex; justify-content: center; }
.phone-mockup { max-width: 320px; filter: drop-shadow(0 30px 60px rgba(60,179,113,.18)); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 72px; }
  .hero-visual { order: -1; }
  .phone-mockup { max-width: 240px; }
}

/* ==== Sections ==== */
.section { padding: 96px 0; }
.section-tinted { background: var(--surface-2); }
.section-dark   { background: var(--dark-bg); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-dark .lede { color: rgba(255,255,255,.78); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lede { font-size: 1.1rem; color: var(--text-soft); }
.section-head-light .lede { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--brand-light); }

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* ==== Steps (How it works) ==== */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: white;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(60,179,113,.3);
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); margin: 0; }

@media (max-width: 768px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* ==== Source grid ==== */
.source-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.source-card {
  display: block; padding: 32px 28px;
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform .2s, border-color .2s, background .2s;
  text-decoration: none;
}
.source-card:hover { transform: translateY(-4px); }
.source-card[data-source="book"]:hover    { border-color: var(--src-book);    background: var(--src-book-bg); color: var(--text); }
.source-card[data-source="film"]:hover    { border-color: var(--src-film);    background: var(--src-film-bg); color: var(--text); }
.source-card[data-source="song"]:hover    { border-color: var(--src-song);    background: var(--src-song-bg); color: var(--text); }
.source-card[data-source="podcast"]:hover { border-color: var(--src-podcast); background: var(--src-podcast-bg); color: var(--text); }
.source-card[data-source="lesson"]:hover  { border-color: var(--src-lesson);  background: var(--src-lesson-bg); color: var(--text); }
.source-card[data-source="grammar"]:hover { border-color: var(--src-grammar); background: var(--src-grammar-bg); color: var(--text); }
.source-icon { font-size: 2.4rem; margin-bottom: 16px; line-height: 1; }
.source-card h3 { margin-bottom: 6px; }
.source-card p { color: var(--text-soft); font-size: .95rem; margin: 0; }

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

/* ==== Preview (mockups) ==== */
.preview-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch;
}
.preview-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.preview-card h3 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand-light); margin-bottom: 20px;
}
.device-mockup { margin: 0 auto; }
.phone-mockup-small { max-width: 240px; }

@media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ==== Personas ==== */
.personas {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.persona {
  text-align: center; padding: 36px 24px;
  background: var(--brand-bg);
  border-radius: var(--radius);
}
.persona-emoji { font-size: 2.4rem; margin-bottom: 16px; }
.persona h3 { margin-bottom: 8px; color: var(--brand-dark); }
.persona p { color: var(--text-soft); font-size: .95rem; margin: 0; }

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

/* ==== Beta section ==== */
.section-beta {
  background:
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--accent) 100%);
  color: white;
}
.section-beta h2 { color: white; }
.beta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.beta-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.beta-text .lede-light { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 24px; }
.beta-perks { list-style: none; padding: 0; margin: 0; }
.beta-perks li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: rgba(255,255,255,.92);
}
.beta-perks li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

.beta-form {
  background: white;
  color: var(--text);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
}
.beta-form-title {
  font-size: 1.3rem; margin-bottom: 24px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem;
}
.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%; padding: 12px 14px;
  font-family: var(--font-sans); font-size: 1rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, background .15s;
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 3px rgba(60,179,113,.15);
}
.field textarea { resize: vertical; min-height: 80px; }
.field .hint  { display: block; color: var(--text-muted); font-size: .85rem; margin-top: 4px; }
.field .required { color: var(--src-film); }
.field .optional { color: var(--text-muted); font-weight: 400; font-size: .85rem; }

.field-checkbox {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
}
.field-checkbox input[type="checkbox"] {
  margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand);
  flex-shrink: 0;
}
.field-checkbox label {
  margin: 0; font-weight: 400; font-size: .9rem; color: var(--text-soft);
}
.field-checkbox label a { color: var(--brand-dark); text-decoration: underline; }

.form-status {
  margin: 14px 0 0; font-size: .9rem; min-height: 1.4em;
}
.form-status.success { color: var(--brand-dark); font-weight: 600; }
.form-status.error   { color: var(--src-film); font-weight: 600; }

@media (max-width: 900px) {
  .beta-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==== FAQ ==== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 18px 24px;
  font-family: var(--font-display); font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem; color: var(--brand);
  font-weight: 400; line-height: 1; transition: transform .2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 24px 18px; margin: 0; color: var(--text-soft); }

/* ==== Footer ==== */
.site-footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,.7);
  padding: 64px 0 24px;
}
.site-footer h4 {
  color: white; font-size: .9rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 16px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { color: rgba(255,255,255,.7); margin-top: 16px; max-width: 320px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); transition: color .15s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  margin-top: 24px; font-size: .85rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

.logo-footer { filter: brightness(0) invert(1); opacity: .9; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==== Legal pages (shared) ==== */
.legal-page {
  max-width: 760px; margin: 0 auto; padding: 64px 24px;
}
.legal-page h1 { margin-bottom: 8px; }
.legal-page .legal-meta { color: var(--text-muted); margin-bottom: 40px; }
.legal-page h2 { margin-top: 40px; font-size: 1.4rem; }
.legal-page h3 { margin-top: 28px; font-size: 1.1rem; }
.legal-page table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem;
}
.legal-page th, .legal-page td {
  border: 1px solid var(--border); padding: 8px 12px; text-align: left;
}
.legal-page th { background: var(--brand-bg); font-weight: 600; }
.legal-page ul { padding-left: 24px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--brand-dark); text-decoration: underline; }
.legal-back { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; display: inline-block; }
