/* =========================================================================
   Dyscendi — the art of learning
   Marketing site styles

   Design notes
   ------------
   Palette is drawn from the app icon: a neon brain split coral (left) /
   cyan (right) on near-black. Those two hues carry meaning throughout:
       coral  = you, and the decisions you keep control of
       cyan   = the AI and the scheduling algorithm
   Neuro-ergonomic intent: one idea per section, generous rhythm, type
   picked for legibility (Atkinson Hyperlegible), motion only where it
   means something, and full support for Reduced Motion and both themes.
   ========================================================================= */

/* ---------- Tokens: dark first (the product's home turf) ---------------- */
:root {
  color-scheme: dark;

  --bg:        #0A0D14;
  --bg-2:      #0E121C;
  --surface:   #141A26;
  --surface-2: #1B2231;
  --line:      #283042;
  --line-2:    #3A4358;

  --ink:       #EEF1F7;
  --ink-2:     #A9B3C5;
  --ink-3:     #838FA8;

  --coral:     #FF6076;   /* you / control */
  --coral-dim: #B33F4E;
  --cyan:      #3DE1F0;   /* ai / algorithm */
  --cyan-dim:  #2C8E99;
  --algo:      #9AA7BD;   /* the scheduler, when shown apart from the AI */

  --focus:     #7FE9F4;

  --grad: linear-gradient(100deg, var(--coral) 0%, #C05AA6 48%, var(--cyan) 100%);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  1.0625rem;
  --step-1:  1.25rem;
  --step-2:  clamp(1.35rem, 1.15rem + 1vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.6rem + 3.4vw, 3.6rem);

  --measure: 42rem;
  --page:    69rem;

  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3.5rem, 2.4rem + 5vw, 6rem);

  --radius:   14px;
  --radius-s: 9px;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- Tokens: broad daylight ------------------------------------- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:        #F4F6FA;
  --bg-2:      #ECEFF5;
  --surface:   #FFFFFF;
  --surface-2: #F3F6FB;
  --line:      #DBE1EC;
  --line-2:    #C3CCDB;

  --ink:       #0E1420;
  --ink-2:     #45506A;
  --ink-3:     #5A6580;

  --coral:     #C8324A;
  --coral-dim: #E29AA6;
  --cyan:      #06707E;
  --cyan-dim:  #8FC4CB;
  --algo:      #5D6B84;

  --focus:     #0B6B79;

  --grad: linear-gradient(100deg, var(--coral) 0%, #9C3C86 50%, var(--cyan) 100%);
}

/* ---------- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 0 0 var(--radius-s) 0;
  z-index: 100;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout helpers ------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 0.5rem + 3vw, 2.75rem);
}

.prose { max-width: var(--measure); }

section { padding-block: var(--space-6); }
.section-line { border-top: 1px solid var(--line); }

/* keep anchored headings clear of the sticky header */
section[id], [id="top"] { scroll-margin-top: 84px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--line-2);
}

.sec-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: var(--space-4); }
.sec-head h2 { font-size: var(--step-3); }
.sec-head p { color: var(--ink-2); font-size: var(--step-1); max-width: var(--measure); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ---------- Buttons ------------------------------------------------- */
.btn {
  --_bg: var(--ink);
  --_fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn--ghost {
  --_bg: transparent;
  --_fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink-3); background: var(--surface); }

.btn--status {
  --_bg: transparent;
  --_fg: var(--ink-2);
  border: 1px dashed var(--line-2);
  cursor: default;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn--status:hover { transform: none; }
.btn--status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent);
}

/* ---------- Header ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-right: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav a {
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; }

/* ---------- Hero -------------------------------------------------- */
.hero { padding-top: clamp(3rem, 2rem + 5vw, 5rem); position: relative; }
.hero .wrap { position: relative; z-index: 1; }

.hero-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 60vh;
  background:
    radial-gradient(38% 60% at 22% 30%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 70%),
    radial-gradient(38% 60% at 78% 40%, color-mix(in srgb, var(--cyan) 20%, transparent), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
:root[data-theme="light"] .hero-glow { opacity: 0.5; }

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-top: 1.1rem;
  max-width: 15ch;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-top: 1.4rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.hero-fineprint {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* video / animation panel */
.showreel {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #05070C;
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--cyan) 30%, transparent),
              0 20px 60px -30px color-mix(in srgb, var(--coral) 25%, transparent);
}
.showreel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 6%, transparent);
  pointer-events: none;
}
.showreel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070C;
}
.showreel-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: baseline;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.showreel-cap b { color: var(--ink-2); font-weight: 500; }

.playpause {
  position: absolute;
  left: 1rem;
  bottom: calc(1rem + 46px);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: color-mix(in srgb, #05070C 70%, transparent);
  color: #EEF1F7;
  border: 1px solid color-mix(in srgb, #fff 18%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.playpause svg { width: 14px; height: 14px; }

/* ---------- Generic blocks ------------------------------------------ */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.cell {
  background: var(--surface);
  padding: clamp(1.15rem, 0.8rem + 1.5vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.cell h3 { font-size: 1.12rem; }
.cell p { color: var(--ink-2); font-size: 0.98rem; }

.tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 6px;
  border: 1px solid currentColor;
}
.tag--you   { color: var(--coral); }
.tag--ai    { color: var(--cyan); }
.tag--algo  { color: var(--algo); }

/* ---------- Steps ------------------------------------------------- */
.steps { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.2rem;
  padding-block: 1.6rem;
}
.step .n {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-3);
  padding-top: 0.35rem;
}
.step h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.step p { color: var(--ink-2); margin-top: 0.4rem; max-width: 46ch; }
.step .accent-bar { width: 26px; height: 3px; border-radius: 2px; }
.step--you .accent-bar  { background: var(--coral); }
.step--ai .accent-bar   { background: var(--cyan); }
.step--algo .accent-bar { background: var(--algo); }

.after-steps {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Method / forgetting curve ----------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
.curve-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.2rem;
}
.curve-card figcaption {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.curve-legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.curve-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.curve-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

.method-points { display: flex; flex-direction: column; gap: 1.5rem; }
.method-points h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.method-points p { color: var(--ink-2); font-size: 0.98rem; }
.method-points .attributed {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 0.3rem;
}

/* retention scale */
.retention {
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 1rem;
  background: var(--surface-2);
}
.retention-track {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.retention-track span {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--ink-3);
}
.retention-track span[data-on] {
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

/* neuro-ergonomics callout */
.neuro {
  position: relative;
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  overflow: hidden;
}
.neuro::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad);
}
.neuro h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.neuro > p { color: var(--ink-2); max-width: var(--measure); }
.neuro ul {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  list-style: none;
  padding: 0;
}
.neuro li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.96rem;
  color: var(--ink-2);
}
.neuro li strong { color: var(--ink); font-weight: 700; display: block; font-family: var(--font-display); }
.neuro li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- Honesty --------------------------------------------- */
.honesty { background: var(--bg-2); }
.honesty-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.honesty-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.9rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.honesty-list li svg { width: 1.2rem; height: 1.2rem; color: var(--coral); margin-top: 0.2rem; }
.honesty-list li b { font-family: var(--font-display); }
.honesty-list li span { color: var(--ink-2); }
.honesty-note { margin-top: 1.5rem; color: var(--ink-3); font-size: 0.9rem; font-family: var(--font-mono); }

/* ---------- Comparison / bilingual ----------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.split > div { background: var(--surface); padding: clamp(1.2rem, 0.9rem + 1.5vw, 2rem); }
.split h3 { font-size: 1.05rem; margin-bottom: 0.6rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); text-transform: uppercase; font-size: 0.75rem; }
.split p { color: var(--ink-2); font-size: 0.98rem; }
.split p + p { margin-top: 0.6rem; }

.bilingual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 60%),
    var(--surface);
}
.bilingual h2 { font-size: var(--step-2); max-width: 20ch; }
.bilingual p { color: var(--ink-2); margin-top: 0.7rem; max-width: 52ch; }

/* ---------- Pricing ------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: var(--space-4);
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.price-card--paid { border-color: var(--line-2); background: var(--surface-2); }
.price-card .kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.price-card h3 { font-size: 1.35rem; }
.price-card p { color: var(--ink-2); font-size: 0.96rem; }
.price-card ul { margin: 0.3rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: 0.94rem; }
.price-card li { margin-block: 0.3rem; }
.no-ads {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.no-ads + p { color: var(--ink-3); font-size: 0.9rem; margin-top: 0.3rem; }

/* ---------- FAQ --------------------------------------------- */
.faq { margin-top: var(--space-4); border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  flex: none;
  width: 1.1rem; height: 1.1rem;
  transition: transform 0.2s var(--ease);
  color: var(--ink-3);
}
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq details p {
  color: var(--ink-2);
  padding-bottom: 1.2rem;
  max-width: 60ch;
  font-size: 0.98rem;
}

/* ---------- Final CTA -------------------------------------- */
.final {
  text-align: center;
  background:
    radial-gradient(50% 100% at 50% 0%, color-mix(in srgb, var(--coral) 12%, transparent), transparent 60%),
    var(--bg-2);
}
.final h2 { font-size: var(--step-3); }
.final p { color: var(--ink-2); margin: 0.9rem auto 1.8rem; max-width: 44ch; }
.final .btn { --_bg: var(--grad); --_fg: #fff; background-image: var(--grad); }
:root[data-theme="light"] .final .btn { --_fg: #fff; }

/* ---------- Footer ---------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--space-5);
  color: var(--ink-3);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer .brand-line { display: flex; align-items: center; gap: 0.6rem; }
.site-footer .brand-line svg { width: 22px; height: 22px; }
.site-footer .pron { font-family: var(--font-mono); }
.site-footer a { text-decoration: none; color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .micro { width: 100%; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---------- Voices (problem quotes) ---------------------- */
.voices { display: grid; gap: 0.9rem; margin-top: var(--space-4); }
.voices blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 1.1rem;
  border-left: 2px solid var(--line-2);
}
.voices blockquote:nth-child(2) { border-left-color: var(--coral); }
.problem-point {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  max-width: 30ch;
}

/* ---------- Reveal animation --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Curve stroke draw ------------------------- */
.curve-draw { stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1; }
.curve-draw.is-in { animation: draw 1.4s var(--ease) forwards; }
.curve-draw.d2.is-in { animation-delay: 0.35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .curve-draw { stroke-dashoffset: 0; animation: none !important; }
  .showreel video { /* JS also skips autoplay */ }
}

/* ---------- Responsive ------------------------------- */
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .neuro ul { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .split, .price-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav, .header-tools .btn--status { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem clamp(1.15rem, 0.5rem + 3vw, 2.75rem) 1rem;
    gap: 0.1rem;
  }
  .nav.is-open a { padding: 0.85rem 0.6rem; font-size: 1rem; }

  .step { grid-template-columns: 1fr; gap: 0.4rem; }
  .step .n { padding-top: 0; }

  .playpause { bottom: calc(1rem + 42px); }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}
