@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F4EFE8;
  --card: #FCFAF6;
  --sunk: #EEE7DD;
  --line: #E4DBCF;
  --ink: #1F1A2E;
  --ink-2: #4B4459;
  --ink-3: #6A6379;
  --night: #221B3F;
  --night-ink: #1B1533;
  --night-deep: #0A0716;
  --dusk: #5B4AA6;
  --lavender: #A89AFB;
  --lavender-faint: #E9E4FD;
  --blossom: #EFA3BA;
  --glow: #FFD9A8;
  --cream: #FFF6EA;
  --state-oublie: #B9B3C4;
  --state-fragile: #E68AA0;
  --state-en-cours: #F0A878;
  --state-solide: #D9B45A;
  --state-ancre: #6FA893;
  --state-grave: #6E63C9;
  --fragile-tint: #FBE4EA;
  --fragile-text: #8E3553;
  --correct-tint: #E6F1EC;
  --correct-border: #6FA893;
  --correct-text: #2F6B55;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --page: min(1160px, calc(100% - 48px));
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--dusk); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
h1 em, h2 em, h3 em, .app-card-title em { font-style: italic; color: var(--dusk); }
p { margin: 0; text-wrap: pretty; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--night); color: var(--cream); padding: 12px 16px; border-radius: 12px; }
.skip-link:focus { top: 12px; }

.eyebrow, .mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { color: var(--dusk); margin-bottom: 16px; }
.eyebrow-cream { color: var(--glow); }
.mono-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }

/* Pills: the app's one strong action, night fill with a lavender arrow circle */
.pill { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 6px 0 22px; border: 0; border-radius: 999px; background: var(--night); color: var(--card); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.pill { color: var(--cream); }
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 27, 63, .22); }
.pill-arrow { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lavender) center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B1533' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E"); }
.pill-small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.pill-block { display: flex; width: 100%; }
.pill-cream { background: var(--cream); color: var(--night-ink); }
.pill-scene { min-height: 44px; margin-top: 14px; padding-left: 18px; font-size: 13px; border: 1.5px solid rgba(255, 246, 234, .3); box-shadow: 0 3px 0 var(--night-ink), 0 8px 18px rgba(27, 21, 51, .35); }
.pill-scene .pill-arrow { width: 32px; height: 32px; background-size: 13px; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip-fragile { background: var(--fragile-tint); color: var(--fragile-text); font-family: var(--sans); letter-spacing: 0; text-transform: none; font-size: 12px; }
.chip-strong { background: var(--lavender-faint); color: var(--night); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(27, 21, 51, .18); }
.dot-oublie { background: var(--state-oublie); }
.dot-fragile { background: var(--state-fragile); }
.dot-consolidation { background: var(--state-en-cours); }
.dot-grave { background: var(--state-grave); }

/* Scene lettering: cream fill, night outline, solid drop shadow */
.lettering { color: var(--cream); font-family: var(--serif); -webkit-text-stroke: 3px var(--night-ink); paint-order: stroke fill; }
.lettering-number { font-size: 76px; line-height: .9; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 4px 0 var(--night-ink), 0 5px 14px rgba(27, 21, 51, .45); }
.lettering-label { font-style: italic; font-size: 22px; line-height: 1.05; -webkit-text-stroke-width: 2px; text-shadow: 0 2px 0 var(--night-ink); }
.lettering-caption { margin-top: 6px; font-family: var(--sans); font-size: 14px; font-weight: 600; -webkit-text-stroke-width: 2px; text-shadow: 0 1.5px 0 var(--night-ink); }
.lettering-title { font-size: clamp(44px, 7vw, 84px); line-height: .98; -webkit-text-stroke: 3px var(--night-deep); text-shadow: 0 4px 0 var(--night-deep), 0 0 18px rgba(255, 217, 168, .35); }

/* Header */
.site-header { position: fixed; z-index: 20; top: 14px; left: 50%; width: var(--page); transform: translateX(-50%); display: flex; align-items: center; gap: 24px; padding: 8px 8px 8px 16px; background: rgba(252, 250, 246, .94); border-radius: 999px; box-shadow: 0 1px 0 rgba(31, 26, 46, .04), 0 10px 30px rgba(31, 26, 46, .06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; line-height: 1; text-decoration: none; }
.wordmark-mark { width: 32px; height: 32px; border-radius: 9px; image-rendering: pixelated; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a, footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
footer p a { color: var(--dusk); text-underline-offset: 3px; }
.nav-links a:hover, footer nav a:hover { color: var(--ink); }
.header-cta { margin-left: 8px; }

/* Store buttons: the platform the visitor is on comes first */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { display: inline-flex; flex-direction: column; justify-content: center; min-width: 176px; min-height: 58px; padding: 8px 28px; border-radius: 999px; background: var(--night); color: var(--card); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.store-button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 27, 63, .22); }
.store-button small { font-size: 11px; opacity: .78; }
.store-button strong { font-size: 18px; font-weight: 600; line-height: 1.15; }
[data-platform="android"] .store-android, [data-platform="ios"] .store-ios { order: -1; }
[data-platform="android"] .store-ios, [data-platform="ios"] .store-android { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(106, 99, 121, .4); }
[data-platform="ios"] .store-buttons-hero .store-android, [data-platform="android"] .store-buttons-hero .store-ios { display: none; }
.store-alternative { display: none; margin-top: 12px; color: var(--ink-3); font-size: 14px; }
.store-alternative a { display: inline-flex; min-height: 44px; align-items: center; color: var(--dusk); font-weight: 500; text-underline-offset: 3px; }
[data-platform="ios"] .store-alternative-ios, [data-platform="android"] .store-alternative-android { display: block; }
.store-buttons-cream .store-button { background: var(--cream); color: var(--night-ink); }
[data-platform="android"] .store-buttons-cream .store-ios, [data-platform="ios"] .store-buttons-cream .store-android { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(255, 246, 234, .4); }

/* Hero */
.hero { width: var(--page); margin: 0 auto; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding: 120px 0 72px; }
.hero h1 { font-size: clamp(56px, 7.4vw, 104px); line-height: .92; letter-spacing: -.025em; }
.hero-lead { max-width: 520px; margin: 26px 0 32px; color: var(--ink-2); font-size: 19px; line-height: 1.55; }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--correct-tint) center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%232F6B55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.2 4.2 7.4 8 2.8'/%3E%3C/svg%3E"); }
.hero-visual { position: relative; display: grid; place-items: center; }

.phone { position: relative; width: 320px; aspect-ratio: 390 / 780; overflow: hidden; border-radius: 48px; background: var(--paper); box-shadow: 0 0 0 10px var(--night-ink), 0 0 0 11px #3a3158, 0 40px 80px rgba(27, 21, 51, .28), 0 12px 24px rgba(27, 21, 51, .18); }
.phone-scene { position: relative; height: 55%; display: flex; flex-direction: column; align-items: center; padding: 22px 18px 0; background: var(--night) url("/assets/scenes/stage-5.png") center 78% / cover no-repeat; image-rendering: pixelated; text-align: center; }
.phone-status { display: flex; justify-content: flex-start; width: 100%; margin-bottom: 18px; color: var(--cream); font-size: 13px; font-weight: 600; -webkit-text-stroke: 3px var(--night-ink); paint-order: stroke fill; text-shadow: 0 1.5px 0 var(--night-ink); }
.phone-sheet { position: relative; margin-top: -28px; height: calc(45% + 28px); display: flex; flex-direction: column; gap: 10px; padding: 16px 12px; background: var(--paper); border-radius: 28px 28px 0 0; }
.app-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--card); border-radius: 24px; box-shadow: 0 1px 2px rgba(31, 26, 46, .04); text-align: left; }
.app-card-title { font-family: var(--serif); font-size: 25px; line-height: 1.02; letter-spacing: -.01em; }
.app-card-body { color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.app-card-list { gap: 8px; }
.app-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.app-row b { font-weight: 600; }
.app-row .chip { padding: 3px 9px; background: var(--paper); font-size: 11px; }
.segments { display: grid; grid-auto-flow: column; gap: 4px; }
.segments i { height: 4px; border-radius: 4px; background: var(--sunk); }
.segments-progress i:nth-child(-n+2) { background: var(--dusk); }
.segments-progress i.now { background: var(--state-fragile); }

/* Sections */
section:not(.hero) { width: var(--page); margin: 0 auto; padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(40px, 5.2vw, 68px); line-height: 1; letter-spacing: -.02em; }
.section-lead { margin-top: 20px; max-width: 600px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }


.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--card); border-radius: 28px; }
.step h3 { font-size: 32px; line-height: 1.05; }
.step > p:not(.mono) { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.step-ui { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 16px; background: var(--paper); border-radius: 20px; }
.mini-input { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--card); border-radius: 14px; }
.mini-input .mono { font-size: 9px; }
.mini-input b { font-weight: 500; }
.step-question { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.step-answer { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--correct-border); border-radius: 16px; background: var(--correct-tint); font-size: 15px; }
.state-ladder { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); text-align: left; font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.option:hover { border-color: var(--lavender); }
.option.correct { border-color: var(--correct-border); background: var(--correct-tint); }
.option.wrong { border-color: var(--state-fragile); background: var(--fragile-tint); }
.option.dimmed { color: var(--ink-3); }
.option:disabled { cursor: default; }
.option.correct .option-badge, .option-badge-correct { background: var(--correct-border); color: var(--card); }
.option.wrong .option-badge { background: var(--state-fragile); color: var(--card); }
.option-badge { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--sunk); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center; }
.demo h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; }
.demo-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.demo-copy .demo-hint { color: var(--dusk); font-family: var(--serif); font-style: italic; font-size: 24px; }
.quiz { display: flex; flex-direction: column; gap: 14px; padding: 22px 16px; background: var(--sunk); border-radius: 28px; }
.quiz-top { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; }
.quiz-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); color: var(--ink-2); font-size: 14px; }
.quiz-top .mono { font-size: 10px; }
.quiz-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: var(--card); border-radius: 26px; }
.quiz-explanation { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--paper); color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.quiz-explanation.correct .mono { color: var(--correct-text); }
.quiz-explanation.wrong .mono { color: var(--fragile-text); }
.quiz-grade { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.grade-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.grade { min-height: 48px; border: 0; border-radius: 999px; background: var(--card); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.grade:hover { background: var(--lavender-faint); }
.grade[aria-pressed="true"] { background: var(--night); color: var(--cream); }
.quiz-outcome { display: flex; flex-direction: column; gap: 12px; }
.quiz-outcome p { padding: 0 6px; color: var(--ink-2); font-size: 15px; line-height: 1.5; text-align: center; }
.quiz-card h3 { font-size: 34px; line-height: 1.02; }
.quiz-card h3 em { color: var(--ink); }
.quiz .segments-progress i:nth-child(-n+2) { background: var(--dusk); }
.quiz-options { display: grid; gap: 8px; }

.tree-stage { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: stretch; }
.tree-window { position: relative; overflow: hidden; aspect-ratio: 8 / 7; max-height: 640px; width: 100%; border-radius: 28px; background: var(--night); }
.tree-image { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: opacity .35s; }
.tree-image.swapping { opacity: .25; }
.tree-lettering { position: absolute; top: 28px; left: 0; right: 0; text-align: center; }
.tree-lettering .lettering-label { font-size: clamp(30px, 4vw, 46px); }
.tree-steps { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tree-steps button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--card); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.tree-steps button span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tree-steps button:hover { background: var(--lavender-faint); }
.tree-steps button[aria-pressed="true"] { background: var(--night); color: var(--cream); }
.tree-steps button[aria-pressed="true"] span { color: var(--lavender); }

.science-head { max-width: 760px; margin-bottom: 32px; }
.science-head h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.02em; }
.science-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.science-list li { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--card); border-radius: 24px; }
.science-list h3 { font-size: 24px; line-height: 1.05; }
.science-list p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.science-list a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin-top: auto; color: var(--dusk); font-size: 13px; font-weight: 500; text-underline-offset: 3px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 32px; background: var(--card); border-radius: 28px; }
.plan h3 { font-size: 36px; line-height: 1; }
.plan ul { display: grid; gap: 12px; margin: 4px 0 12px; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 28px; color: var(--ink-2); line-height: 1.45; }
.plan li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--correct-tint) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%232F6B55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.2 4.2 7.4 8 2.8'/%3E%3C/svg%3E"); }
.plan .pill { margin-top: auto; }
.plan-plus { background: var(--night) center bottom / cover no-repeat; image-rendering: pixelated; color: var(--cream); box-shadow: 0 30px 60px rgba(27, 21, 51, .25); position: relative; isolation: isolate; }
.plan-plus::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(180deg, rgba(27, 21, 51, .9) 0%, rgba(27, 21, 51, .82) 60%, rgba(27, 21, 51, .55) 100%); }
.plan-plus .mono { color: var(--lavender); }
.plan-plus li { color: rgba(255, 246, 234, .86); }
.plan-plus li::before { background-color: rgba(168, 154, 251, .22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23A89AFB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5.2 4.2 7.4 8 2.8'/%3E%3C/svg%3E"); }
.plan-plus.scene-ready { background-image: url("/assets/scenes/stage-7.png"); }
.plan-note { color: rgba(255, 246, 234, .88); font-size: 13px; line-height: 1.5; }

.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq details { padding: 0 24px; background: var(--card); border-radius: 24px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sunk); color: var(--ink-2); font-size: 18px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); line-height: 1.65; }
.faq details a { color: var(--dusk); text-underline-offset: 3px; }

.download { width: auto !important; max-width: none; margin: 0 16px !important; padding: 0 0 46% !important; border-radius: 28px; overflow: hidden; background: #07061A center bottom / 100% auto no-repeat; image-rendering: pixelated; position: relative; isolation: isolate; }
.download.scene-ready { background-image: url("/assets/scenes/stage-8.png"); }
.download::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; z-index: -1; background: linear-gradient(180deg, #07061A 0%, rgba(7, 6, 26, .92) 55%, rgba(7, 6, 26, 0) 100%); }
.download-copy { display: flex; flex-direction: column; align-items: center; width: var(--page); margin: 0 auto; padding: 112px 0 0; text-align: center; }
.download-eyebrow { margin-bottom: 18px; color: var(--glow); font-size: 15px; font-weight: 600; }
.download-lead { max-width: 480px; margin: 22px 0 30px; color: var(--cream); font-size: 18px; text-shadow: 0 1px 12px rgba(10, 7, 22, .8); }
.download .store-buttons { justify-content: center; }
.download-note { margin-top: 18px; color: rgba(255, 246, 234, .82); font-size: 13px; }

footer { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 40px 0 48px; }
footer p { color: var(--ink-3); font-size: 13px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
footer .wordmark { font-size: 20px; }
footer .wordmark-mark { width: 26px; height: 26px; border-radius: 7px; }

.sticky-cta { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: none; transition: transform .3s, opacity .3s; }
.sticky-cta .pill { box-shadow: 0 12px 30px rgba(27, 21, 51, .3); }
.sticky-cta.away { transform: translateY(140%); opacity: 0; pointer-events: none; }


/* Legal pages */
.legal { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 132px 0 72px; }
.legal h1 { margin: 0 0 10px; font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -.02em; }
.legal-updated { margin: 0 0 40px; color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.legal-intro { color: var(--ink); font-size: 18px; line-height: 1.6; }
.legal h2 { margin: 48px 0 12px; font-size: 30px; line-height: 1.1; }
.legal h3 { margin: 26px 0 8px; font-size: 22px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--dusk); text-underline-offset: 3px; }
.legal table { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.legal th { color: var(--ink); font-weight: 600; }
.legal-table { overflow-x: auto; }
.legal ~ footer { border-top: 1px solid var(--line); }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .header-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 112px; }
  .hero-copy { max-width: 640px; }
  .steps, .science-list { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; gap: 40px; }
  .demo .quiz { max-width: 480px; }
  .tree-stage { grid-template-columns: 1fr; }
  .tree-steps { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tree-steps li { flex: none; scroll-snap-align: start; }
  .tree-steps button { gap: 10px; white-space: nowrap; }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 32px); }
  html { scroll-padding-top: 76px; }
  .site-header { top: 10px; padding: 6px 6px 6px 12px; }
  .wordmark { font-size: 21px; }
  .hero { padding: 88px 0 40px; gap: 28px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 56px); }
  .hero-lead { font-size: 17px; margin: 16px 0 22px; }
  .hero-facts { margin-top: 14px; gap: 6px 16px; font-size: 14px; }
  .store-alternative { margin-top: 6px; }
  .store-buttons { flex-direction: column; }
  .store-button { width: 100%; }
  .phone { width: min(290px, 78vw); }
    section:not(.hero) { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .science-list { grid-template-columns: 1fr; gap: 10px; }
  .science-list li { padding: 18px 20px; }
  .step, .science-list li, .plan { padding: 24px 20px; border-radius: 24px; }
  .plans { grid-template-columns: 1fr; }
  .quiz { padding: 18px 12px; border-radius: 26px; }
  .quiz-card { padding: 20px 16px; }
  .quiz-card h3 { font-size: 30px; }
  .tree-window { border-radius: 24px; }
  .faq details { padding: 0 18px; }
  .faq summary { font-size: 16px; }
  .download { margin: 0 8px !important; padding-bottom: 88% !important; border-radius: 28px; background-size: 190% auto; }
  .download-copy { padding-top: 72px; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 96px; }
  footer nav { justify-content: center; }
  .sticky-cta { display: block; }
  .legal { padding-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
