:root {
  /* Mintly palette: graphite text on stone, the poster's deep green and mint as the accent, red for risk */
  --fh: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fb: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #F5F5F4;
  --panel: #fff;
  --ink: #151515;
  --muted: #6A6A66;
  --border: #E4E4E1;
  --line: var(--border);
  --mute: var(--muted);
  --acc: #23664A;
  --acct: #23664A;
  --accsoft: #DCF0E4;
  --onacc: #fff;
  --gain: #0A8A4A;
  --gainsoft: #E3F4EA;
  --bad: #D6452D;
  --badsoft: #FBE9E4;
  --warn: var(--bad);
  --shadow: rgba(20, 20, 20, .28);

  /* poster colors: mint, deep green (text) and peach */
  --pmint: #A8DDC0;
  --pgreen: #2F7D58;
  --ppeach: #F6B8A8;

  /* dark-to-light green gradient for the Why Mintly feature icons */
  --feature-green-1: #1E5B3E;
  --feature-green-2: #2F8558;
  --feature-green-3: #8FD4AE;

  /* legacy site names, now driven by the demo accent */
  --mint: var(--acc);
  --mint-dark: var(--acct);
  --mint-light: var(--accsoft);
  --card: var(--accsoft);
  --tan: var(--border);
  --gold: var(--pmint);
  --blue: var(--gainsoft);
  --purple: var(--border);
  --peach: var(--ppeach);

  /* tokens used by the lesson activities, mapped onto the palette above */
  --surface: var(--panel);
  --block: var(--ink);
  --on-block: var(--bg);
  --on-accent: var(--onacc);
  --text-soft: var(--ink);
  --danger: var(--bad);
  --danger-soft: var(--badsoft);
  --danger-border: var(--bad);
  --font-head: var(--fh);
  --font-body: var(--fb);
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0E0E0E; --panel: #181817; --ink: #F5F5F4; --muted: #9A9A95; --border: #2A2A28;
    --acc: #A8DDC0; --acct: #A8DDC0; --accsoft: #16301F; --onacc: #0E0E0E;
    --gain: #3DD68C; --gainsoft: #0F2A1D; --bad: #FF7A5C; --badsoft: #3A1D16; --shadow: rgba(0, 0, 0, .6); --pgreen: #A8DDC0;
    --feature-green-1: #1D4631; --feature-green-2: #2F7D58; --feature-green-3: #8FD4AE;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #0E0E0E; --panel: #181817; --ink: #F5F5F4; --muted: #9A9A95; --border: #2A2A28;
  --acc: #A8DDC0; --acct: #A8DDC0; --accsoft: #16301F; --onacc: #0E0E0E;
  --gain: #3DD68C; --gainsoft: #0F2A1D; --bad: #FF7A5C; --badsoft: #3A1D16; --shadow: rgba(0, 0, 0, .6); --pgreen: #A8DDC0;
  --feature-green-1: #1D4631; --feature-green-2: #2F7D58; --feature-green-3: #8FD4AE;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fb);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand { font-family: var(--fh); }
::selection { background: var(--accsoft); }

/* form fields don't inherit text color, so give typed text the theme's ink */
input, textarea, select { color: var(--ink); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, .brand { font-family: var(--font-head); }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.nav-links a:hover { color: var(--ink); }

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand img { display: block; }
.brand .dot { color: var(--pgreen); }

/* Navbar (home page, 3-column: brand / nav / cta) */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}

.navbar .brand { justify-self: start; font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.navbar .nav-links { justify-self: center; }
.navbar .nav-links a { color: var(--muted); }
.navbar .nav-links a:hover { color: var(--ink); }
.navbar .nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }

@media (max-width: 860px) {
  .navbar { grid-template-columns: auto auto; height: auto; padding: 18px 0; gap: 12px; }
  .navbar .nav-links { display: none; }
  .navbar .nav-right { justify-self: end; }
}

/* Auth state in nav */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-account-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.nav-account-link:hover { color: var(--mint-dark); }

.badge-soon {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--mint-light);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* Hero (home page) */
.hero-new { padding: 56px 0 100px; }

.hero-new .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow-mint {
  color: var(--pgreen);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero-copy { text-align: left; }

.hero-copy h1 {
  font-size: 58px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 800;
}

.hero-copy h1 .accent { color: var(--mint-dark); display: block; }

.hero-copy p.lead {
  text-align: left;
  margin: 0 0 28px;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero-new .wrap { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 40px; }
  .hero-copy, .hero-copy p.lead { text-align: center; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .eyebrow-mint { text-align: center; }
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.hero-blob {
  position: absolute;
  width: min(380px, 100vw);
  height: min(380px, 100vw);
  border-radius: 50%;
  background: var(--card);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 270px;
  background: var(--panel);
  border: 7px solid var(--acc);
  border-radius: 34px;
  padding: 20px 16px;
  box-shadow: 0 30px 60px rgba(20, 20, 20, 0.15);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.phone-brand { font-weight: 800; font-size: 14px; }
.phone-brand .dot { color: var(--pgreen); }

.phone-level {
  background: var(--card);
  color: var(--mint-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}

.phone-greet h3 { margin: 0 0 4px; font-size: 17px; }
.phone-greet p { margin: 0 0 14px; font-size: 12px; color: var(--muted); }

.phone-lesson-card {
  background: var(--tan);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.phone-lesson-card .q { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }

.progress-track {
  background: var(--panel);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill { background: var(--mint); height: 100%; border-radius: 999px; }
.phone-lesson-card .pct { font-size: 10.5px; color: var(--muted); }

.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.phone-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.phone-chip .chip-icon { width: 22px; height: 22px; border-radius: 6px; margin-bottom: 8px; }
.phone-chip .chip-title { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.phone-chip .chip-desc { font-size: 9.5px; color: var(--muted); line-height: 1.3; }

.bg-mint { background: var(--card); }
.bg-gold { background: var(--gold); }
.bg-blue { background: var(--blue); }
.bg-purple { background: var(--purple); }
.bg-peach { background: var(--peach); }

/* Why Mintly feature icons: dark green -> green -> light green */
.icon-green-1 { background: var(--feature-green-1); }
.icon-green-2 { background: var(--feature-green-2); }
.icon-green-3 { background: var(--feature-green-3); }

/* Feature grid */
.section-eyebrow {
  color: var(--pgreen);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.section-heading {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
  max-width: 760px;
}

.home-lead { color: var(--muted); font-size: 16px; max-width: 680px; margin: -24px 0 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 84px;
}

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

.feature-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.feature-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* How it works */
.how-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

@media (max-width: 860px) {
  .how-card { grid-template-columns: 1fr; padding: 28px; }
}

.how-copy h2 { font-size: 28px; margin: 0 0 14px; font-weight: 800; }
.how-copy p { color: var(--muted); font-size: 15px; margin: 0; }

.step-list { display: flex; flex-direction: column; gap: 12px; }

.step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tan);
  border-radius: 14px;
  padding: 16px 20px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--onacc);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-row .step-text { font-weight: 600; font-size: 14.5px; }

/* CTA banner */
.cta-banner {
  background: var(--block);
  border-radius: var(--radius-lg);
  margin: 0 auto 72px;
  max-width: var(--max-width);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: var(--bg); font-size: 24px; margin: 0; font-weight: 700; }
.cta-banner h2 .accent { color: var(--mint); }

.btn {
  display: inline-block;
  background: var(--acc);
  color: var(--onacc);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(.92); }

.btn-secondary {
  background: none;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover { background: var(--panel); }

.btn-dark {
  display: inline-block;
  background: var(--acc);
  color: var(--onacc);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.btn-dark:hover { filter: brightness(.92); }

/* Next-course lock card (course page) */
.next-course {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.next-course .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.next-course .title { font-weight: 600; font-size: 15px; color: var(--ink); }
.next-course .desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.next-course .progress { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.mark-complete-row {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  justify-content: flex-end;
}

.mark-complete-row .btn.done {
  background: var(--mint-light);
  color: var(--mint-dark);
  cursor: default;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Course / lesson list pages */
.page-header {
  padding: 56px 0 8px;
}

.page-header .eyebrow {
  color: var(--pgreen);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.page-header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.lesson-list {
  padding: 24px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-row {
  background: var(--panel);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.lesson-row .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint-light);
  color: var(--mint-dark);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-row.locked .num { background: var(--tan); color: var(--muted); }

.lesson-row .title { font-weight: 600; font-size: 15px; flex-grow: 1; }
.lesson-row.locked .title { color: var(--muted); }
.lesson-row .go { font-size: 14px; font-weight: 600; color: var(--mint-dark); }

.explore-section { margin-bottom: 32px; }

.explore-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.course-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.course-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.course-card .icon.bg-mint { background: var(--card); }
.course-card .icon.bg-gold { background: var(--gold); }
.course-card .icon.bg-blue { background: var(--blue); }
.course-card .icon.bg-purple { background: var(--purple); }
.course-card .icon.bg-peach { background: var(--peach); }

.course-card .icon:not(.bg-mint):not(.bg-gold):not(.bg-blue):not(.bg-purple):not(.bg-peach) {
  background: var(--tan);
}

.course-card .title { font-weight: 700; font-size: 16px; }
.course-card .desc { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.course-card.locked .title { color: var(--muted); }

.course-card .meta {
  margin-left: auto;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-dark);
  white-space: nowrap;
}

.empty-state {
  padding: 64px 0 120px;
  text-align: center;
}

.empty-state .icon-big { font-size: 40px; margin-bottom: 16px; }
.empty-state h2 { margin: 0 0 10px; font-size: 22px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 24px; }

/* Lesson page */
.lesson-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.lesson-body .eyebrow {
  color: var(--pgreen);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.lesson-body h1 { font-size: 32px; margin: 0 0 20px; letter-spacing: -0.01em; }
.lesson-body h2 { font-size: 21px; margin: 36px 0 12px; }
.lesson-body p { font-size: 16px; color: var(--ink); margin: 0 0 16px; }
.lesson-body ul { padding-left: 20px; }
.lesson-body li { font-size: 16px; color: var(--ink); margin-bottom: 8px; }

.callout {
  background: var(--mint-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--ink);
  margin: 24px 0;
}

.callout strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Quiz */
.quiz {
  max-width: 680px;
  margin: 8px auto 80px;
  padding: 0 24px;
}

.quiz-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.quiz-box h2 { margin-top: 0; font-size: 19px; }
.quiz-question { font-weight: 600; margin-bottom: 14px; font-size: 15px; scroll-margin-top: 84px; }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  scroll-margin-top: 84px;
}

.quiz-option {
  text-align: left;
  border: 1px solid var(--border);
  background: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

.quiz-option:hover { border-color: var(--mint); }
.quiz-option.correct { border-color: var(--gain); background: var(--gainsoft); }
.quiz-option.incorrect { border-color: var(--bad); background: var(--badsoft); }

.quiz-feedback { font-size: 14px; font-weight: 600; min-height: 20px; margin-bottom: 12px; }
.quiz-feedback.correct { color: var(--gain); }
.quiz-feedback.incorrect { color: var(--bad); }
.quiz-feedback.required { color: var(--bad); font-size: 12.5px; font-weight: 600; }

.lesson-nav {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lesson-nav .btn.done {
  background: var(--mint-light);
  color: var(--mint-dark);
  cursor: default;
  opacity: 1;
}

/* Confetti: a short celebration burst when a lesson is finished (script.js: confetti()) */
.confetti-piece {
  position: fixed;
  top: -14px;
  width: 8px;
  height: 12px;
  border-radius: 1px;
  z-index: 90;
  pointer-events: none;
  animation: confetti-fall 2s ease-in forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(108vh) rotate(720deg); }
}

/* Auth page */
.auth-wrap {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 400px;
}

.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.auth-tabs {
  display: flex;
  background: var(--tan);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.auth-tab.active { background: var(--acc); color: var(--onacc); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.field input:focus { outline: 2px solid var(--mint); outline-offset: 1px; }

.auth-error {
  font-size: 13.5px;
  color: var(--bad);
  min-height: 18px;
}

.plan-note {
  background: var(--card);
  color: var(--mint-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.auth-form .btn { width: 100%; text-align: center; margin-top: 4px; }

.auth-foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
}

/* Pricing page */
.pricing-hero {
  text-align: center;
  padding: 64px 0 48px;
}

.pricing-hero h1 { font-size: 40px; margin: 12px 0 14px; font-weight: 800; letter-spacing: -0.01em; }
.pricing-hero p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 40px;
}

.plans.plans-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
}

.plans.plans-four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .plans.plans-four { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
}

@media (max-width: 900px) {
  .plans, .plans.plans-two, .plans.plans-four { grid-template-columns: 1fr; }
}

.plan-card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.plan-card.featured {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 var(--pmint);
  background: var(--card);
}

.plan-badge {
  align-self: flex-start;
  background: var(--acc);
  color: var(--onacc);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.plan-card h3 { font-size: 19px; margin: 0 0 6px; }
.plan-card .plan-price { font-size: 34px; font-weight: 800; margin: 6px 0 4px; }
.plan-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-card .plan-desc { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.plan-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--mint-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-faq {
  max-width: 680px;
  margin: 0 auto 96px;
  padding: 0 24px;
}

.pricing-faq h2 { font-size: 22px; margin: 0 0 20px; text-align: center; }

.faq-item {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.faq-item h4 { margin: 0 0 6px; font-size: 15px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* For Parents page */
.parents-hero {
  padding-top: 72px;
  padding-bottom: 72px;
}

.parents-hero h1 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.parents-hero h1 .accent { color: var(--mint-dark); }
.parents-hero p { color: var(--muted); font-size: 17px; margin: 0; max-width: 620px; }

.parents-path { padding-bottom: 80px; }
.parents-path h2 { font-size: 28px; font-weight: 800; margin: 0 0 24px; }

.path-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.path-stage {
  background: var(--panel);
  padding: 24px;
  border-right: 2px solid var(--ink);
}

.path-stage:last-child { border-right: none; }
.path-stage-real { background: var(--gold); color: var(--on-accent); }
.path-stage.path-stage-real p { color: var(--on-accent); }
.path-stage-real .path-tag { background: var(--on-accent); color: #F5F5F4; }

.path-tag {
  display: inline-block;
  background: var(--mint-light);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.path-stage-real .path-tag { background: var(--acc); color: var(--onacc); }
.path-stage h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.path-stage p { margin: 0; font-size: 14px; color: var(--ink); }

.parents-promise {
  background: var(--mint-light);
  padding: 64px 0;
  text-align: center;
}

.promise-line {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin: 0 auto 14px;
}

.promise-sub { color: var(--ink); font-size: 16px; max-width: 560px; margin: 0 auto 28px; }

@media (max-width: 860px) {
  .parents-hero { padding-top: 40px; padding-bottom: 48px; }
  .parents-hero h1 { font-size: 38px; }
  .path-track { grid-template-columns: 1fr; }
  .path-stage { border-right: none; border-bottom: 2px solid var(--ink); }
  .path-stage:last-child { border-bottom: none; }
  .promise-line { font-size: 24px; }
}

/* Explore: "What are you curious about?" form */
.curious-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curious-form fieldset { border: none; margin: 0; padding: 0; }
.curious-form legend { font-weight: 800; font-size: 19px; padding: 0; margin-bottom: 14px; }

.curious-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.curious-option {
  position: relative;
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
}

.curious-option input { position: absolute; opacity: 0; }
.curious-option .title { display: block; font-weight: 700; font-size: 15px; }
.curious-option .desc { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.curious-option:hover { border-color: var(--mint); }
.curious-option:has(input:checked) { border-color: var(--mint-dark); background: var(--mint-light); }
.curious-option:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 1px; }

.curious-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.curious-result { font-size: 14px; font-weight: 600; }

@media (max-width: 860px) {
  .curious-options { grid-template-columns: 1fr 1fr; }
}

/* Theme dock + customizer (injected by theme.js on every page) */
.dock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; gap: 8px; }
.tgl { background: var(--panel); color: var(--ink); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; font: 600 13px var(--fb); cursor: pointer; box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .35); }
.tgl:hover { border-color: var(--ink); }
.cp { position: fixed; right: 16px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); width: min(320px, calc(100vw - 32px)); z-index: 51; background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4); display: none; max-height: 70vh; overflow: auto; }
.cp.open { display: block; }
.cp h4 { margin: 16px 0 8px; font: 600 12px var(--fb); color: var(--muted); letter-spacing: 0; }
.cp h4:first-child { margin-top: 0; }
.sw { display: flex; gap: 10px; flex-wrap: wrap; }
.sw button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.sw button.sq { border-radius: 8px; width: 44px; }
.sw button.on { box-shadow: 0 0 0 2px var(--ink); }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { font: 600 13px var(--fb); border: 0; background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 13px; cursor: pointer; }
.cp-chip:hover { outline: 2px solid var(--acc); }
.cp-chip.on { background: var(--ink); color: var(--bg); }
.cp-reset { width: 100%; margin-top: 18px; background: transparent; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1.5px var(--border); border-radius: 999px; padding: 9px 18px; font: 700 14px var(--fb); cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Interactive lesson activities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lesson-body .lesson-meta { font-size: 14px; color: var(--muted); margin-top: -8px; }
.lesson-body h3 { font-size: 18px; margin: 0 0 8px; }

.lesson-body h3.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 10px;
}

.block-title span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--on-accent);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.definition-card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: 6px 6px 0 var(--mint);
}

.definition-term { font-family: var(--font-head); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.definition-term span { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--muted); }
.lesson-body .definition-card p { margin: 0; color: var(--ink); font-size: 17px; }

.activity {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin: 32px 0;
  box-shadow: 0 6px 0 var(--peach);
}

.activity-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint-dark);
  margin-bottom: 8px;
}

.lesson-body .activity p { font-size: 15px; }

.write-box {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}

.write-box:focus,
.blank-input:focus,
.money-input input:focus,
.split-field select:focus { outline: 2px solid var(--mint-dark); outline-offset: 1px; }

.activity-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.activity-status { font-size: 14px; font-weight: 600; color: var(--mint-dark); }

.sample-answer {
  margin-top: 14px;
  background: var(--mint-light);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
}

.sample-tip { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); opacity: 0.8; }

.match-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 12px; margin-top: 8px; }
.match-col { display: flex; flex-direction: column; gap: 10px; }

.match-item {
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.match-item.def { font-weight: 500; }
.match-item:hover { border-color: var(--ink); }
.match-item.selected { border-color: var(--ink); background: var(--surface); box-shadow: 4px 4px 0 var(--mint); }
.match-item.matched { border-color: var(--mint); background: var(--mint-light); color: var(--ink); cursor: default; }
.match-item.wrong { border-color: var(--danger-border); background: var(--danger-soft); }
#match-status { margin-top: 14px; }

.blank-list { display: flex; flex-direction: column; gap: 12px; }

.blank-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
}

.blank-row label { flex: 1 1 320px; font-size: 15px; line-height: 2; }

.blank-input {
  width: 120px;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: none;
  border-bottom: 2px solid var(--ink);
  padding: 2px 6px;
  text-align: center;
}

.blank-row.right .blank-input { border-bottom-color: var(--mint-dark); color: var(--mint-dark); }
.blank-row.right { box-shadow: inset 4px 0 0 var(--mint); }
.blank-status { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.blank-row.right .blank-status { color: var(--mint-dark); }
.blank-row.miss .blank-status { color: var(--danger); }

.btn-small {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--onacc);
  background: var(--acc);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

.blank-row.right .btn-small { display: none; }

.split-grid, .calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 14px; }
.calc-grid { grid-template-columns: 1fr 1fr 1.6fr; }

.split-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--muted); }

.money-input {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.money-input input {
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: none;
  border: none;
  padding: 10px 0;
}

.split-field select {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 10px;
}

.split-total { font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.split-total.done { color: var(--mint-dark); }
.split-total.over { color: var(--danger); }
.lesson-body .split-feedback { margin: 6px 0 0; }

.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-results div { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.calc-results .grow { background: var(--mint-light); }
.calc-results span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.calc-results .grow span { color: var(--ink); }
.calc-results b { font-family: var(--font-head); font-size: 28px; color: var(--ink); }
.lesson-body .calc-note { margin: 12px 0 6px; font-weight: 600; color: var(--ink); }
.lesson-body .fine-print { font-size: 12.5px; color: var(--muted); margin: 0; }

.your-answer {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--peach);
  background: var(--bg);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}

.your-answer.filled { color: var(--ink); font-style: normal; }

.vocab-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.vocab-list div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.vocab-list dt { font-weight: 700; font-size: 15px; }
.vocab-list dd { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .match-grid, .split-grid, .calc-grid, .calc-results, .vocab-list { grid-template-columns: 1fr; }
}

/* Mobile nav menu (toggle is added by script.js) and phone gutters */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  /* several sections set "padding: Npx 0", which wipes out .wrap's side gutter on phones */
  .wrap { padding-left: 20px; padding-right: 20px; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 4px 0 8px;
    border-top: 1px solid var(--border);
  }
  .navbar.nav-open .nav-links a { display: block; padding: 12px 0; font-size: 17px; color: var(--ink); }
}

@media (max-width: 480px) {
  .navbar .nav-right { gap: 10px; }
  span.nav-account-link { display: none; }
}

.plans.plans-four .plan-card .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }

/* v2 usability: active page in the header, lesson times, course progress and lesson pager.
   Uses only the existing palette and type; nothing else about the look changes. */
.nav-links a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.lesson-row .time { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lesson-row .go { white-space: nowrap; }
.lesson-row.done .num { background: var(--gainsoft); color: var(--gain); }
.lesson-row:not(.locked):hover { border-color: var(--ink); }
.course-progress { max-width: 560px; margin-top: 22px; }
.course-progress .progress-track { background: var(--border); height: 8px; }
.course-progress .label { font-size: 13.5px; color: var(--muted); }
.page-header .btn { margin-top: 20px; }
.lesson-pager {
  max-width: 680px;
  margin: -72px auto 0;
  padding: 0 24px 96px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}
.lesson-pager a { color: var(--mint-dark); }
.lesson-pager a:hover { text-decoration: underline; }
.lesson-pager .next { margin-left: auto; text-align: right; }
@media (max-width: 860px) {
  .lesson-row .time { display: none; }
}
.lesson-body.lesson-cont { padding-top: 0; }

/* v2 fix: ".site-header .wrap" (flex, fixed 64px) out-ranks ".navbar", so on phones the opened
   menu was squeezed into the right edge of the bar. Drop it below the bar as a full-width panel. */
@media (max-width: 860px) {
  .site-header .navbar.nav-open .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 4px 20px 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
}

/* Leaf AI page */
.leaf-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.leaf-actions { margin: 28px 0 0; }
.leaf-chat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 10px 10px 0 var(--accsoft); }
.leaf-chat-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.leaf-chat-sub { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.leaf-av { width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: var(--onacc); display: grid; place-items: center; font: 800 13px var(--fh); }
.leaf-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.leaf-msg.me { align-self: flex-end; background: var(--acc); color: var(--onacc); border-bottom-right-radius: 4px; font-weight: 600; }
.leaf-msg.ai { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.leaf-pick { display: inline-block; background: var(--accsoft); color: var(--acct); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.leaf-prompts .feature-card p.leaf-q { color: var(--ink); font: 700 18px/1.35 var(--fh); }

@media (max-width: 860px) {
  .leaf-hero { grid-template-columns: 1fr; gap: 32px; }
  .parents-hero.leaf-hero h1 { font-size: 38px; }
}
