/* ============================================================
   LUMINA — learn by doing
   Aesthetic: warm editorial cream + ink navy, vibrant accents,
   playful-but-precise. Display: Bricolage Grotesque. Body: Spline Sans.
   ============================================================ */

:root {
  --cream:    #f7f1e6;
  --cream-2:  #efe6d4;
  --ink:      #16161d;
  --ink-soft: #2a2a35;
  --navy:     #14121f;
  --paper:    #fffdf8;

  /* accent + secondaries aligned to the app's light theme (css/app.css) so the
     landing and the product read as one brand. --coral kept as the token name
     the file already uses everywhere, but it is now the app's amber. */
  --coral:    #bf8a14;   /* app --accent (amber) — fills only, not text on cream */
  --coral-deep: #9c7010; /* app --accent-deep */
  --accent-ink: #7a5a0e; /* amber for TEXT: ≥4.5:1 on cream/cream-2/paper (WCAG AA) */
  --marigold: #d99a16;   /* brighter partner gold */
  --teal:     #0e8463;   /* app --green */
  --blue:     #356aa3;   /* app --blue */
  --violet:   #6e4fe0;   /* app --violet */

  --txt:      #1d1c22;
  --txt-dim:  #5d5a52;
  --line:     #e3d8c4;   /* app --line */
  --line-strong: #cdbfa6;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  /* soft, warm-tinted shadows (app's editorial depth) instead of hard offsets */
  --shadow: 0 6px 16px rgba(60,50,30,.12), 0 24px 56px -20px rgba(60,50,30,.2);
  --shadow-sm: 0 1px 2px rgba(60,50,30,.10), 0 8px 24px -12px rgba(60,50,30,.16);

  --display: "Bricolage Grotesque", "Spline Sans", sans-serif;
  --body: "Spline Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace; /* self-hosted (css/fonts.css), same as the app */

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--txt);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.02em; font-weight: 700; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

::selection { background: var(--coral); color: #fff; }

/* grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .72em 1.3em; border-radius: 100px; border: 1.5px solid var(--line-strong);
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .2s;
  white-space: nowrap; background: transparent;
}
/* dark ink on the amber fill: 6.2:1 (cream-on-amber was ~3:1) */
.btn--solid { background: var(--coral); color: #2a1d02; border-color: transparent; box-shadow: var(--shadow-sm); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--marigold); color: #2a1d02; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--ink); }
.btn--lg { font-size: 1.08rem; padding: .9em 1.6em; }
.btn--full { width: 100%; justify-content: center; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--cream) 92%, transparent); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: .85rem 1.4rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.brand__mark { flex: none; width: 1.5rem; height: 1.5rem; background-color: var(--coral); -webkit-mask: url("/brand-mark.svg") center/contain no-repeat; mask: url("/brand-mark.svg") center/contain no-repeat; transition: transform .3s; }
.brand:hover .brand__mark { transform: scale(1.16); }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-weight: 500; }
.nav__links a { position: relative; padding: .2em 0; font-size: .96rem; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--coral); transition: width .25s; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; gap: .6rem; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero { position: relative; padding: 3.5rem 1.4rem 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, var(--marigold), transparent 70%); top: -120px; right: -80px; animation: drift 18s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: radial-gradient(circle, var(--teal), transparent 70%); bottom: -160px; left: -100px; animation: drift 22s ease-in-out infinite reverse; }
.dotgrid { position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1.3px, transparent 1.3px); background-size: 26px 26px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-25px) scale(1.08); } }

.hero__grid {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  min-height: 70vh; padding: 2rem 0 3rem;
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  text-transform: uppercase; background: var(--cream-2); color: var(--accent-ink);
  border: 1px solid var(--line-strong);
  padding: .45em .9em; border-radius: 100px; margin-bottom: 1.4rem;
}
.hero__title { font-size: clamp(2.8rem, 6.2vw, 5rem); font-weight: 800; }
.hero__title .ital { font-style: italic; color: var(--accent-ink); }
.hero__title .strike { position: relative; color: var(--txt-dim); }
.hero__title .strike::after { content:""; position: absolute; left:-4%; right:-4%; top:52%; height: 5px; background: var(--coral); transform: rotate(-3deg); border-radius: 4px; }
.hero__sub { font-size: 1.22rem; color: var(--txt-dim); margin: 1.5rem 0 2rem; max-width: 30ch; font-weight: 400; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__proof { display: flex; align-items: center; gap: .8rem; margin-top: 2.2rem; font-size: .92rem; color: var(--txt-dim); }
.hero__proof strong { color: var(--ink); }

/* hero interactive puzzle */
.hero__play { position: relative; justify-self: center; }
.puzzle {
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 1.5rem; width: min(380px, 88vw); box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.puzzle__head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-family: var(--mono); }
.puzzle__tag { background: var(--teal); color: #fffdf8; padding: .3em .7em; border-radius: 100px; font-weight: 700; }
.puzzle__moves { color: var(--txt-dim); }
.puzzle__prompt { font-size: .96rem; margin: 1rem 0 1.1rem; color: var(--ink-soft); }
.puzzle__prompt b { color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cell {
  aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--cream-2); cursor: pointer; transition: transform .12s, background .2s, box-shadow .2s;
}
.cell:hover { transform: scale(1.06); }
.cell.on { background: var(--marigold); box-shadow: inset 0 0 0 3px rgba(0,0,0,.06), 0 0 18px rgba(217,154,22,.45); }
.cell.win { animation: pop .4s ease; }
@keyframes pop { 50% { transform: scale(1.15); } }
.puzzle__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; gap: .4rem .8rem; }
.puzzle__reset { font-family: var(--display); font-weight: 600; background: none; border: 1.5px solid var(--line-strong); border-radius: 100px; padding: .4em .9em; cursor: pointer; transition: .15s; font-size: .85rem; }
.puzzle__reset:hover { background: var(--ink); color: var(--cream); }
.puzzle__status { font-size: .85rem; font-weight: 600; color: var(--txt-dim); }
.puzzle__status.won { color: var(--teal); }
/* win-state CTA: appears once the peak is found; leads into the guest path */
.puzzle__cta { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--accent-ink); border-bottom: 2px solid var(--marigold); padding-bottom: 1px; white-space: nowrap; }
.puzzle__cta[hidden] { display: none; }

/* marquee */
/* full-bleed: cancel the hero's 1.4rem side padding so the strip spans edge to
   edge like the amber quote band below it (the hero clips overflow, so no scroll). */
.marquee { position: relative; z-index: 1; margin: 1rem -1.4rem 0; border-top: 1.5px solid var(--line-strong); border-bottom: 1.5px solid var(--line-strong); background: var(--cream-2); overflow: hidden; }
.marquee__track { display: flex; padding: .7rem 0; width: max-content; animation: scroll 26s linear infinite; }
/* spacing lives on each item (not flex `gap`) so the two duplicated halves are identical
   widths — that makes translateX(-50%) loop seamlessly with no jump at the seam. */
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--txt); white-space: nowrap; margin-right: 2.5rem; }
.marquee__track span:nth-child(even) { color: var(--accent-ink); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== section heads ===== */
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; padding: 0 1.4rem; }
.section-head--left { text-align: left; margin-left: max(1.4rem, calc((100vw - var(--maxw))/2)); }
.kicker { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-ink); font-weight: 700; }
.kicker--light { color: var(--marigold); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: .8rem 0 1rem; }
.section-head p { color: var(--txt-dim); font-size: 1.1rem; }
.hl { color: var(--accent-ink); position: relative; white-space: nowrap; }
.hl::after { content:""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 30%; background: var(--marigold); opacity: .35; z-index: -1; border-radius: 3px; }

/* ===== HOW ===== */
.how { padding: 5.5rem 0; }
.how__cards { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hcard {
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg);
  padding: 1.8rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.hcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--coral); }
.hcard__num { font-family: var(--mono); font-size: .85rem; color: var(--accent); font-weight: 700; }
.hcard h3 { font-size: 1.5rem; margin: .5rem 0 .6rem; }
.hcard p { color: var(--txt-dim); font-size: .98rem; }
.hcard__viz { margin-top: 1.5rem; min-height: 56px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.viz--slider { flex-direction: column; align-items: stretch; gap: .8rem; }
.viz--slider input { width: 100%; accent-color: var(--accent); }
.viz--wave { flex-direction: column; align-items: stretch; gap: .7rem; }
.viz--wave svg { width: 100%; height: 64px; display: block; color: var(--txt-dim); }
.viz--wave input { width: 100%; accent-color: var(--accent); }
.viz__bar { height: 14px; border-radius: 100px; background: linear-gradient(90deg, var(--accent) 38%, var(--cream-2) 38%); border: 1.5px solid var(--line-strong); transition: background .1s; }
.chip { font-size: .82rem; font-weight: 600; padding: .4em .8em; border-radius: 100px; border: 1.5px solid var(--line-strong); font-family: var(--display); }
.chip--x { background: #ffe2dd; color: #b3271a; }
.chip--ok { background: #d6f6f0; color: #0c6b5f; }
.viz--streak { gap: .35rem; }
.viz--streak span { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--cream-2); display: grid; place-items: center; font-size: .85rem; }
.viz--streak span.on { background: var(--marigold); }

/* ===== COURSES ===== */
.courses { padding: 3rem 0 6rem; }
.course-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.ccard {
  border: 1.5px solid var(--line-strong); border-radius: var(--r); padding: 1.35rem;
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  cursor: pointer; transition: transform .18s, box-shadow .18s; overflow: hidden;
  background: var(--bg, var(--paper)); box-shadow: var(--shadow-sm);
}
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--coral); }
.ccard__ico { font-size: 2.4rem; line-height: 1; }
.ccard__body h3 { font-size: 1.22rem; margin-bottom: .25rem; }
.ccard__body p { font-size: .85rem; color: rgba(0,0,0,.62); font-weight: 500; }
.ccard__meta { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.ccard__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.ccard__go { position: absolute; top: 1.2rem; right: 1.2rem; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; background: rgba(255,255,255,.5); transition: .2s; font-weight: 700; }
.ccard:hover .ccard__go { background: var(--ink); color: var(--cream); transform: rotate(-45deg); }

/* ===== PLAY (interactive problem) ===== */
.play { background: var(--navy); color: var(--cream); padding: 6rem 1.4rem; position: relative; overflow: hidden; }
.play::before { content:""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.3px, transparent 1.3px); background-size: 24px 24px; }
.play__inner { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.play__intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin: .8rem 0 1rem; color: var(--cream); }
.play__intro p { color: #b8b2c4; font-size: 1.08rem; }
.play__list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .6rem; font-weight: 500; }
.play__list li { color: var(--marigold); }
.play__list em { color: var(--cream); font-style: normal; font-weight: 600; }

.quiz { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 2rem; border: 1.5px solid var(--line-strong); box-shadow: var(--shadow); }
.quiz__scene { display: flex; align-items: center; justify-content: center; gap: .2rem; height: 130px; margin-bottom: 1.2rem; }
.gear { line-height: 1; }
.gear--big { font-size: 5rem; color: var(--coral); animation: spin 6s linear infinite; }
.gear--mid { font-size: 3.4rem; color: var(--marigold); margin: 0 -8px; animation: spin 6s linear infinite reverse; }
.gear--sm { font-size: 2.6rem; color: var(--blue); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quiz__q { font-weight: 500; font-size: 1.05rem; margin-bottom: 1.2rem; }
.quiz__options { display: flex; flex-direction: column; gap: .7rem; }
.quiz__options button {
  text-align: left; font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: .85em 1.1em; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--cream);
  cursor: pointer; transition: .15s; position: relative;
}
.quiz__options button:hover:not(:disabled) { transform: translateX(4px); background: var(--cream-2); }
.quiz__options button.correct { background: #d6f6f0; border-color: #0c6b5f; }
.quiz__options button.wrong { background: #ffe2dd; border-color: #b3271a; }
.quiz__options button:disabled { cursor: default; }
.quiz__feedback { margin-top: 1.1rem; font-weight: 600; font-size: .95rem; min-height: 1.4em; opacity: 0; transition: opacity .3s; }
.quiz__feedback.show { opacity: 1; }
.quiz__feedback.good { color: #0c6b5f; }
.quiz__feedback.bad { color: #b3271a; }
/* correct-answer CTA into the guest path */
.quiz__cta { display: inline-block; margin-top: 1rem; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--accent-ink); border-bottom: 2px solid var(--marigold); padding-bottom: 1px; }
.quiz__cta[hidden] { display: none; }
.quiz__cta .arrow { display: inline-block; transition: transform .2s; }
.quiz__cta:hover .arrow { transform: translateX(4px); }

/* ===== STATS ===== */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 5rem 1.4rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat { border-right: 2px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem,5vw,4rem); color: var(--ink); }
.stat__suf { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--accent-ink); }
.stat p { color: var(--txt-dim); font-size: .95rem; margin-top: .3rem; }

/* ===== QUOTE — a plain editorial statement, not an attributed testimonial ===== */
.quote { background: var(--coral); color: var(--ink); padding: 5.5rem 1.4rem; }
.quote p { max-width: 880px; margin: 0 auto; text-align: center; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.18; letter-spacing: -.01em; }
.quote em { font-style: italic; }

/* ===== PRICING ===== */
.pricing { padding: 6rem 0; }
.plans { max-width: 1020px; margin: 0 auto; padding: 0 1.4rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; align-items: stretch; }
.plan { background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 2rem 1.7rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s; }
.plan:hover { transform: translateY(-5px); }
.plan--feat { background: var(--ink); color: var(--cream); position: relative; box-shadow: var(--shadow); }
.plan--feat .plan__price span { color: var(--marigold); }
/* fixed light values: --ink flips light in dark mode, which would wash out on marigold */
.plan--feat .btn--solid { background: var(--marigold); color: #2a1d02; border-color: transparent; box-shadow: var(--shadow-sm); }
.plan--feat .btn--solid:hover { background: #f7f1e6; border-color: transparent; box-shadow: var(--shadow); color: #16161d; }
.plan h3 { font-size: 1.4rem; }
.plan__price { font-family: var(--display); margin: .6rem 0 1.2rem; color: var(--txt-dim); }
.plan--feat .plan__price { color: #b8b2c4; }
.plan__price span { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.6rem; flex: 1; font-size: .95rem; }
.plan li.muted { color: var(--txt-dim); }
.plan--feat li.muted { color: #6c6880; }
.plan small { display: block; text-align: center; margin-top: .7rem; color: var(--txt-dim); font-size: .78rem; }
.plan--feat small { color: #8a86a0; }

/* ===== CTA ===== */
.cta { padding: 2rem 1.4rem 6rem; }
.cta__card { max-width: var(--maxw); margin: 0 auto; background: linear-gradient(135deg, var(--marigold), var(--coral)); border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 4.5rem 2rem; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta__card::before { content:""; position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.08) 1.4px, transparent 1.4px); background-size: 22px 22px; }
.cta__card h2 { position: relative; font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--ink); margin-bottom: 1.8rem; }
.cta__card .ital { font-style: italic; }
.cta__card .btn { position: relative; }
/* dark button on the gold CTA card, so it doesn't wash out gold-on-gold */
.cta__card .btn--solid { background: var(--ink); color: var(--cream); border-color: transparent; }
.cta__card .btn--solid:hover { background: var(--ink-soft); color: var(--cream); }
/* secondary signup link under the guest CTA (fixed dark ink: gradient stays bright in both themes) */
.cta__alt { position: relative; display: block; margin-top: 1.1rem; font-size: .95rem; font-weight: 600; color: #1b1815; text-decoration: underline; text-underline-offset: 3px; }

/* ===== FOOTER ===== */
.footer { background: var(--ink); color: var(--cream); padding: 4rem 1.4rem 2rem; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #33313f; }
.footer__brand .brand__mark { background-color: var(--coral); }
.footer__brand p { color: #9a96a8; margin-top: .8rem; font-size: .95rem; }
.footer__cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.footer__cols h4 { font-size: .95rem; margin-bottom: .9rem; color: var(--marigold); }
.footer__cols a { display: block; color: #b8b4c4; font-size: .92rem; padding: .25em 0; transition: color .15s; }
.footer__cols a:hover { color: var(--cream); }
.footer__bottom { max-width: var(--maxw); margin: 2rem auto 0; display: flex; justify-content: space-between; color: #7d7990; font-size: .85rem; flex-wrap: wrap; gap: .5rem; }

/* ===== reveal animation =====
   Gated on html.js (set by the inline head script) so content is never
   hidden when JS doesn't run. Above-the-fold hero elements carry no
   .reveal class at all — they paint immediately. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { max-width: 42ch; }
  .hero__play { margin-top: 1rem; }
  .play__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .how__cards { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  /* Mobile menu: the burger toggles .nav.open. Links and CTA each drop onto their
     OWN full-width row below the brand/burger row (flex-wrap), stacked in normal
     flow — so nothing can overlap regardless of link count. The previous rule
     stacked two absolutely-positioned panels with a fixed translateY(140px) that
     was shorter than the links panel, dropping the Sign in / Get started CTA on
     top of the lower nav links (the only mobile path to sign-in). */
  .nav__inner { flex-wrap: wrap; justify-content: space-between; }
  .nav.open .nav__links,
  .nav.open .nav__cta {
    display: flex; flex-direction: column; flex-basis: 100%; width: 100%;
    margin-left: 0; gap: 1rem; background: var(--cream); padding: 1.2rem 1.4rem;
    order: 1;   /* keep the burger (DOM-last) on the top row with the brand */
  }
  .nav.open .nav__links { padding-bottom: .4rem; }
  .nav.open .nav__cta { padding-top: .4rem; border-bottom: 1.5px solid var(--line-strong); }
  .stats { grid-template-columns: repeat(2,1fr); gap: 2rem; }
  .stat:nth-child(2) { border-right: none; }
  .plans { grid-template-columns: 1fr; max-width: 420px; }
  .section-head--left { margin-left: 1.4rem; }
}
@media (max-width: 460px) {
  .course-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DARK THEME — a warm-dark variant of the same Lumina language.
   Foreground (--ink: text + borders) flips to light; surfaces go
   to warm espresso. A handful of intentionally bright/dark
   sections get explicit handling so contrast stays right.
   ============================================================ */
:root { color-scheme: light; }
[data-theme="dark"] {
  color-scheme: dark;
  --cream:    #1b1815;   /* page background */
  --cream-2:  #2b261d;   /* tiles / secondary surface */
  --paper:    #242019;   /* card surface */
  --ink:      #f4ebd9;   /* foreground: text-strong + borders + structure */
  --ink-soft: #d8ceba;
  --navy:     #131017;
  --txt:      #f1e8d6;
  --txt-dim:  #a79d8b;
  --line:     #38322a;
  --line-strong: #4a4234;
  --shadow:    0 6px 16px rgba(0,0,0,.4), 0 24px 56px -20px rgba(0,0,0,.6);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.5);
  /* amber text token flips bright: marigold reads ≥6.6:1 on the dark surfaces */
  --accent-ink: #d99a16;
}
/* grain: switch to a light-on-dark blend */
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .05; }
/* brighter dot grid so it reads on the dark hero */
[data-theme="dark"] .dotgrid { background-image: radial-gradient(#4a4234 1.3px, transparent 1.3px); opacity: .5; }

/* footer used --ink (now light) as its bg — keep it dark with light text */
[data-theme="dark"] .footer { background: #15120e; color: #f1e8d6; }
/* quote band stays amber; --ink flips light in dark mode, so pin its text dark (6.6:1) */
[data-theme="dark"] .quote { color: #1b1815; }
/* marquee band: keep dark instead of inverting to a bright stripe */
[data-theme="dark"] .marquee { background: #15120e; border-color: #38322a; }
[data-theme="dark"] .marquee__track span { color: #f1e8d6; }
[data-theme="dark"] .marquee__track span:nth-child(even) { color: var(--marigold); }
/* eyebrow pill: a light pill would kill the marigold text — keep it dark */
[data-theme="dark"] .eyebrow { background: #2b261d; }
/* play section sits on navy (still dark) — force its text light */
[data-theme="dark"] .play__intro h2, [data-theme="dark"] .play__list em { color: #f4ebd9; }
/* CTA gradient stays bright (marigold→coral) — keep its heading dark */
[data-theme="dark"] .cta__card h2 { color: #1b1815; }
/* featured pricing card used --ink bg — keep it a highlighted dark card */
[data-theme="dark"] .plan--feat { background: #2e2820; color: #f1e8d6; }
/* course cards keep their light pastel bg in BOTH themes, so their text + border
   must stay dark (else the titles/borders wash out on the pastel in dark mode) */
[data-theme="dark"] .ccard { color: #1d1c22; border-color: #1d1c22; }
[data-theme="dark"] .ccard__go { border-color: #1d1c22; }
[data-theme="dark"] .ccard:hover .ccard__go { background: #1d1c22; color: #fffdf8; }

/* ===== theme toggle button ===== */
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1.5px solid var(--line-strong); border-radius: 100px; background: var(--paper);
  cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .2s;
  font-size: 1.05rem; line-height: 1; flex: 0 0 auto;
}
.theme-toggle:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ===== hero: balance-the-equation interactive (a real Erudia widget) ===== */
.scale-svg { width: 100%; height: auto; color: var(--ink); margin: .4rem 0 .2rem; }
.scale-svg text { font-family: var(--mono); }
.scale-ctrl { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 .2rem; font-family: var(--mono); font-size: .85rem; }
.scale-ctrl label { font-weight: 700; }
.scale-ctrl input[type=range] { flex: 1; accent-color: var(--coral); }
.scale-x { min-width: 1.4em; text-align: center; font-weight: 700; background: var(--cream-2); border: 1.5px solid var(--line-strong); border-radius: 8px; padding: .1em .4em; }
[data-theme="dark"] .scale-x { background: #2b261d; }
