/* ===========================================================
   PURSUITS WEBSITE — STYLES
   Source of truth: design.md (tokens, layered depth, motion).
   2026-10 repositioning: student-first narrative, demo walkthrough,
   learning modes, geo-based localisation (no header switch).
   =========================================================== */

/* -----------------------------------------------------------
   1. DESIGN TOKENS (from design.md §1)
   ----------------------------------------------------------- */
:root {
  /* Core brand */
  --color-dark:              #0A0C1E;
  --color-main:              #0D1031;
  --color-alternative:       #252A65;
  --color-alt-light:         #3C449A;
  --color-light:             #F4F4F4;
  --color-white:             #D9D9D9;

  /* Accents */
  --color-impact:            #CA2DED;
  --color-impact-2:          #7926FF;
  --color-fire:              #F7931E;
  --color-fire-deep:         #F15A24;
  --color-fresh:             #92DA51;

  /* Accent ink — accents as small text on light surfaces.
     Values from the app's light theme (DESIGN.md §1.1 accentText /
     fireText) so orange/magenta copy clears WCAG AA on #F4F4F4. */
  --color-impact-ink:        #9E1ABF;
  --color-impact-2-ink:      #5A12C8;   /* violet small text on light gradients (>=5:1) */
  --color-fire-ink:          #9E4E00;

  /* Section gradients */
  --gradient-light-1: linear-gradient(122.12deg, #F4F4F4 0%, #C4C4C4 100%);
  --gradient-light-2: linear-gradient(113.60deg, #F4F4F4 0%, #C4C4C4 100%);
  --gradient-light-3: linear-gradient(102.46deg, #F4F4F4 0%, #C4C4C4 100%);
  --gradient-premium: linear-gradient(97.60deg, #CA2DED 0%, #7926FF 100%);
  --gradient-fire:    linear-gradient(to top, #F7931E 0%, rgba(241,90,36,0) 100%);
  /* Heading gradient on light surfaces: ends on a deeper magenta so the
     last letters keep >=3:1 on the darker corner of the light gradients. */
  --gradient-text:    linear-gradient(90deg, #7926FF 0%, #A81FD0 100%);

  /* Font */
  --font-primary: 'Quicksand', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-2:  4px;
  --space-3:  8px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-8:  48px;
  --space-10: 64px;
  --space-12: 80px;
  --space-14: 120px;
  --space-15: 160px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 11px;
  --radius-lg: 15px;
  --radius-device: 40px;

  /* Layered depth offset (cards, pills, devices) */
  --lift-offset: 8px;

  /* Motion */
  --ease-purr: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-pop:  cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layers */
  --z-raised: 5;
  --z-nav:    100;
  --z-skip:   200;

  /* Layout */
  --page-padding: 80px;
  --content-max:  1281px;
  --section-pad:  120px;

  /* Focus ring (overridden on dark surfaces) */
  --focus-ring: var(--color-impact-2);
}

/* -----------------------------------------------------------
   2. RESET + BASE
   ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* sticky navbar */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: opacity 200ms var(--ease-purr);
}

img { max-width: 100%; height: auto; display: block; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, p, figure { margin: 0; }

h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

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

/* Localisation guard: the inline <head> script adds .i18n-pending when the
   visitor will not see English; script.js removes it once copy is swapped.
   Fails open after 1.6s so a blocked script never hides the page. */
html.i18n-pending body {
  opacity: 0;
  animation: i18n-failsafe 0s linear 1.6s forwards;
}
@keyframes i18n-failsafe { to { opacity: 1; } }

/* Skip link — hidden until focused */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
  color: var(--color-light);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-purr);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -----------------------------------------------------------
   3. UTILITIES: ACCENTS, CONTAINER, SECTION HEADINGS
   ----------------------------------------------------------- */
.accent--violet   { color: var(--color-impact-2); }
.accent--magenta  { color: var(--color-impact); }
.accent--fire     { color: var(--color-fire); }
.accent--fire-ink { color: var(--color-fire-ink); }
.italic           { font-style: italic; font-weight: 700; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}
.section-head--center {
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

/* Eyebrow: dark ink on light surfaces (AA contrast), orange ink on dark
   surfaces. No leading marker. Uppercase is reserved for labels. */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-dark);
}

.section-h2 {
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--color-dark);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.section-lede {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  max-width: 38em;
}
.section-lede strong { font-weight: 700; }

/* Text link with arrow — tertiary action next to a primary button */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-impact-2-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(90, 18, 200, 0.35);
  transition: color 200ms var(--ease-purr), text-decoration-color 200ms var(--ease-purr);
}
.text-link::after {
  content: '→';
  text-decoration: none;
  display: inline-block;
  transition: transform 250ms var(--ease-pop);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link:hover::after { transform: translateX(4px); }

/* Status label — "For teachers · Early access" */
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-alternative);
  color: var(--color-light);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.status-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-fresh);
}

/* Speech bubble — Purr's lines */
.bubble {
  position: relative;
  display: inline-block;
  max-width: 260px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--color-main);
  color: var(--color-light);
  border: 2px solid var(--color-impact);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}
.bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: inherit;
  border-right: 2px solid var(--color-impact);
  border-bottom: 2px solid var(--color-impact);
  transform: rotate(45deg);
}
.bubble--left::after  { right: 34px; }
.bubble--right::after { left: 34px; }

/* -----------------------------------------------------------
   4. LAYERED DEPTH PRIMITIVES (design.md §3.2 sibling technique)
   ----------------------------------------------------------- */

/* Lift: auto-height card with an accent lip below the surface. */
.lift {
  --lift: var(--color-impact-2);
  position: relative;
  padding-bottom: var(--lift-offset);
}
.lift::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: var(--lift-offset);
  bottom: 0;
  border-radius: var(--radius-lg);
  background: var(--lift);
}
.lift__surface {
  position: relative;
  height: 100%;
  background: var(--color-light);
  border: 4px solid var(--lift);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 250ms var(--ease-pop);
}
.lift:hover .lift__surface { transform: translateY(-3px); }

.lift--violet  { --lift: var(--color-impact-2); }
.lift--magenta { --lift: var(--color-impact); }
.lift--fire    { --lift: var(--color-fire); }
.lift--blue    { --lift: var(--color-alt-light); }
.lift--gradient::before { background: var(--gradient-premium); }
.lift--gradient .lift__surface {
  border-color: transparent;
  background:
    linear-gradient(var(--color-light), var(--color-light)) padding-box,
    var(--gradient-premium) border-box;
}

/* Device: phone frame around real app screenshots. Content inside the
   screenshot is never altered — only the frame moves. */
.device {
  position: relative;
  padding-bottom: 10px;
}
.device__lip {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  bottom: 0;
  border-radius: var(--radius-device);
  background: var(--color-main);
}
.device__body {
  position: relative;
  padding: 9px;
  border-radius: var(--radius-device);
  background: var(--color-alternative);
}
.device__screen {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-device) - 9px);
  background: var(--color-dark);
}
.device--sm { --radius-device: 30px; padding-bottom: 8px; }
.device--sm .device__lip { top: 8px; }
.device--sm .device__body { padding: 7px; }
.device--sm .device__screen { border-radius: 23px; }

/* -----------------------------------------------------------
   5. NAVBAR (design.md §3.6)
   ----------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 80px;
  background: var(--color-light);
  border-bottom: 1px solid rgba(10, 12, 30, 0.08);
  transition: box-shadow 300ms var(--ease-purr);
}

.navbar.is-scrolled {
  box-shadow: 0 2px 20px rgba(10, 12, 30, 0.06);
}

.navbar__inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo { flex-shrink: 0; }
.navbar__logo img {
  height: 33px;
  width: auto;
}

.navbar__nav {
  display: flex;
  gap: 36px;
}

.navbar__link {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-dark);
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 200ms var(--ease-purr);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-impact);
  transform: translateX(-50%);
  transition: width 250ms var(--ease-purr);
}

.navbar__link:hover { color: var(--color-impact-2); }
.navbar__link:hover::after { width: 100%; }

/* Active nav link (current page) */
.navbar__link.is-active { color: var(--color-impact-2); }
.navbar__link.is-active::after { width: 100%; }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Mobile menu toggle — hidden on desktop */
.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  place-items: center;
  color: var(--color-dark);
  flex-shrink: 0;
}
.navbar__toggle-bar,
.navbar__toggle-bar::before,
.navbar__toggle-bar::after {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 250ms var(--ease-purr), opacity 200ms var(--ease-purr);
}
.navbar__toggle-bar { position: relative; }
.navbar__toggle-bar::before,
.navbar__toggle-bar::after {
  content: '';
  position: absolute;
  left: 0;
}
.navbar__toggle-bar::before { top: -7px; }
.navbar__toggle-bar::after  { top: 7px; }
.navbar.is-open .navbar__toggle-bar { background: transparent; }
.navbar.is-open .navbar__toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.navbar.is-open .navbar__toggle-bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* -----------------------------------------------------------
   6. HERO — inputs → a real learning map
   ----------------------------------------------------------- */
.hero {
  position: relative;
  padding: 64px 0 104px;
  overflow: hidden;
  background: var(--gradient-light-1);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.hero__glow--tl { top: -120px; left: -120px; width: 400px; height: 400px; background: rgba(202, 45, 237, 0.25); }
.hero__glow--bl { top: 440px; left: -160px; width: 520px; height: 420px; background: rgba(121, 38, 255, 0.22); }
.hero__glow--br { top: 360px; right: -120px; width: 480px; height: 480px; background: rgba(247, 147, 30, 0.18); }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  grid-template-areas: "visual content";
  gap: 56px;
  align-items: center;
}

.hero__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(36px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}
.hero__line { display: block; }

.hero__subtitle {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-dark);
  max-width: 34em;
}

/* Official store badges — direct links, so desktop visitors can pick a store */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.store-badge {
  display: block;
  border-radius: 10px;
  transition: transform 200ms var(--ease-pop), filter 200ms var(--ease-purr);
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.store-badge:active { transform: translateY(1px); }
.store-badges { margin-top: 8px; }
.store-badge img {
  height: 50px;
  width: auto;
}

/* Visual: input pills → phone with the learning map → Purr */
.hero__visual {
  --phone-w: 290px;
  --phone-x: 8%;
  grid-area: visual;
  position: relative;
  height: 640px;
  max-width: 640px;
  width: 100%;
  justify-self: center;
}

.hero__phone {
  position: absolute;
  top: 0;
  right: var(--phone-x);
  width: var(--phone-w);
  z-index: 2;
}

.hero__caption {
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-alt-light);
}

.hero__inputs {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Input pill — design.md §3.5 value pill (stacked, slightly tilted) */
.input-pill {
  position: absolute;
  --pill: var(--color-fresh);
  --nudge: 0px;
  right: calc(var(--phone-x) + var(--phone-w) - 36px + var(--nudge));
  transform: rotate(var(--tilt, 0deg));
  animation: bob 3.6s ease-in-out infinite;
}
.input-pill__base {
  position: absolute;
  inset: 5px 0 -5px 0;
  border-radius: var(--radius-md);
  background: var(--pill);
}
.input-pill__face {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 14px;
  border-radius: var(--radius-md);
  background: var(--color-dark);
  border: 2px solid var(--pill);
  color: var(--color-white);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.input-pill__icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--pill);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.input-pill__icon .fill { fill: var(--pill); stroke: none; }

.input-pill--1 { --pill: var(--color-fresh);     --tilt: 0deg;     --nudge: 18px; top: 84px;  animation-delay: 0ms; }
.input-pill--2 { --pill: var(--color-impact);    --tilt: -3.37deg; --nudge: -8px; top: 184px; animation-delay: 400ms; }
.input-pill--3 { --pill: var(--color-alt-light); --tilt: 0.53deg;  --nudge: 28px; top: 284px; animation-delay: 800ms; }
.input-pill--4 { --pill: var(--color-impact-2);  --tilt: -2.74deg; --nudge: 0px;  top: 384px; animation-delay: 1200ms; }

.hero__purr {
  position: absolute;
  z-index: 4;
  right: calc(var(--phone-x) + var(--phone-w) - 70px);
  bottom: 6px;
  width: 190px;
  transform: translateY(var(--parallax-y, 0));
}

.mascot {
  will-change: transform;
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}

/* -----------------------------------------------------------
   7. TICKER (design.md §3.4) — slimmer, a sample not a stat
   ----------------------------------------------------------- */
.ticker {
  height: 64px;
  background: var(--color-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker__track {
  display: flex;
  gap: 32px;
  animation: marquee 48s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker__track,
.ticker-section.is-paused .ticker__track,
.ticker-section:focus-within .ticker__track { animation-play-state: paused; }

.ticker-section { position: relative; }

/* Pause control (WCAG 2.2.2): hover-only pausing excludes touch and keyboard */
.ticker__toggle {
  --focus-ring: var(--color-fire);
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: var(--radius-sm);
  background: var(--color-main);
  border: 2px solid var(--color-alternative);
  color: var(--color-light);
  transition: border-color 200ms var(--ease-purr);
}
.ticker__toggle:hover { border-color: var(--color-alt-light); }
.ticker__icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticker__icon--play { display: none; fill: currentColor; stroke-width: 2; }
.ticker__toggle[aria-pressed="true"] .ticker__icon--pause { display: none; }
.ticker__toggle[aria-pressed="true"] .ticker__icon--play { display: block; }

.ticker__group {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-light);
  white-space: nowrap;
}

.ticker__sparkle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 16px)); }
}

/* -----------------------------------------------------------
   8. HOW IT WORKS — three connected steps, one topic
   ----------------------------------------------------------- */
.demo {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--color-light);
  overflow: hidden;
}

.demo .container { position: relative; }

.demo__head { max-width: 760px; }

.demo__purr {
  position: absolute;
  top: -12px;
  right: var(--page-padding);
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.demo__purr img {
  width: 150px;
  height: auto;
}
.demo__purr .bubble { margin-bottom: 120px; }

.steps {
  position: relative;
  margin-top: 72px;
  --node: 56px;
  --gap: 48px;
}

/* Connector through the step nodes; fill draws on reveal */
.steps__line {
  position: absolute;
  top: calc(var(--node) / 2 - 1.5px);
  left: calc(var(--node) / 2);
  width: calc((100% - 2 * var(--gap)) * 2 / 3 + 2 * var(--gap));
  height: 3px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, rgba(60, 68, 154, 0.35) 0 10px, transparent 10px 18px);
  overflow: hidden;
}
.steps__line[data-reveal] { opacity: 1; transform: none; }
.steps__fill {
  position: absolute;
  inset: 0;
  background: var(--gradient-premium);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1600ms var(--ease-purr) 250ms;
}
.steps__line.is-visible .steps__fill { transform: scaleX(1); }

.steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  column-gap: var(--gap);
  row-gap: 20px;
}

/* Node, text and phone share rows across the three columns, so the
   screenshots start on one line whatever the copy length (any locale). */
.step {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  align-content: start;
}

/* Node mimics the app's mission node: disc with a violet lip */
.step__node {
  position: relative;
  z-index: 1;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-alternative);
  border: 3px solid var(--color-alt-light);
  border-bottom: 7px solid var(--color-impact-2);
  color: var(--color-light);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
}

.step__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.step__body {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  max-width: 26em;
}

.step .device { width: min(100%, calc(300px + var(--space-5))); }

/* -----------------------------------------------------------
   9. STUDENTS — scenarios bento
   ----------------------------------------------------------- */
.students {
  padding: var(--section-pad) 0;
  background: var(--gradient-light-2);
}

.students__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas:
    "head head"
    "lead a"
    "lead b";
  gap: 32px;
}
.students__head { grid-area: head; margin-bottom: 16px; }
.scenario--lead { grid-area: lead; }

.scenario .lift__surface {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario--lead .lift__surface {
  justify-content: flex-end;
  padding: 32px;
  min-height: 420px;
}

.scenario__row {
  flex-direction: row !important;
  align-items: center;
  gap: 24px !important;
}

.scenario__art {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}
.scenario__art--lead {
  width: 210px;
  align-self: flex-end;
  margin: -8px -4px auto 0;
}
.scenario__art--badge { width: 104px; }

.scenario__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.scenario__body {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
}

.tag-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(121, 38, 255, 0.35);
  color: var(--color-alternative);
  font-weight: 700;
  font-size: 15px;
}

/* -----------------------------------------------------------
   10. FEATURES GRID (design.md §3.2) — auto height for long locales
   ----------------------------------------------------------- */
.features {
  padding: var(--section-pad) 0;
  background: var(--color-light);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card {
  --card-accent: var(--color-impact-2);
  position: relative;
  padding-bottom: var(--lift-offset);
  transition: transform 250ms var(--ease-pop);
}
.card--violet  { --card-accent: var(--color-impact-2); }
.card--magenta { --card-accent: var(--color-impact); }
.card--fire    { --card-accent: var(--color-fire); }

.card:hover { transform: translateY(-6px); }

.card__shadow {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--lift-offset);
  bottom: 0;
  background: var(--card-accent);
  border-radius: var(--radius-lg);
  transition: transform 250ms var(--ease-pop);
}
.card:hover .card__shadow { transform: translate(4px, 4px); }

.card__surface {
  position: relative;
  height: 100%;
  min-height: 360px;
  background: var(--color-light);
  border: 4px solid var(--card-accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__icon-box {
  width: 95px;
  height: 95px;
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.card__icon-img {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 115px;
  height: 115px;
  object-fit: contain;
  pointer-events: none;
}

.card__title {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-dark);
  line-height: 1.2;
}

.card__body {
  font-weight: 500;
  font-size: 19px;
  color: var(--color-dark);
  line-height: 1.45;
  flex: 1;
}

.card__tag {
  font-weight: 700;
  font-size: 18px;
  margin-top: auto;
}
.card--violet  .card__tag { color: var(--color-impact-2); }
.card--magenta .card__tag { color: var(--color-impact-ink); }
.card--fire    .card__tag { color: var(--color-fire-ink); }

/* -----------------------------------------------------------
   11. DARK BAND — Meet Purr + Learning modes
   ----------------------------------------------------------- */
.on-dark {
  --focus-ring: var(--color-fire);
  background: var(--color-dark);
  color: var(--color-light);
}
.on-dark .section-h2 { color: var(--color-light); }
.on-dark .eyebrow { color: var(--color-fire); }
.on-dark .section-lede { color: var(--color-white); }

.purr {
  padding: var(--section-pad) 0 48px;
  overflow: hidden;
}

.purr__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}

.purr__art {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}
.purr__img {
  width: 100%;
  animation: bob 3.4s ease-in-out infinite;
}
.purr .section-h2 .accent { display: block; }

.purr__bubble {
  position: absolute;
  top: -6%;
  right: -34%;
  background: var(--color-light);
  color: var(--color-dark);
  font-size: 18px;
}

.purr__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.purr__aside {
  font-weight: 600;
  font-size: 17px;
  color: var(--color-white);
  padding-left: 16px;
  border-left: 3px solid var(--color-impact-2);
  max-width: 34em;
}

.modes {
  padding: 48px 0 var(--section-pad);
}

.modes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 72px auto 0;
}

.mode .lift__surface {
  background: var(--color-main);
  color: var(--color-light);
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mode__art {
  width: 190px;
  height: auto;
  margin-top: -96px;
  margin-right: -8px;
  align-self: flex-end;
}

.mode__name {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  margin-top: -40px;
}
.lift--violet .mode__name { color: #A77BFF; }
.lift--fire   .mode__name { color: var(--color-fire); }

.mode__body {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
  color: var(--color-white);
  max-width: 26em;
}

.mode__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mode__list li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-light);
}
.mode__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lift);
}

/* -----------------------------------------------------------
   12. PLANS — free start first, premium second
   ----------------------------------------------------------- */
.plans {
  padding: var(--section-pad) 0;
  background: var(--gradient-light-3);
}

.plans__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.plan .lift__surface {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
}

.plan__label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-fire-ink);
}
.plan__label--premium { color: var(--color-impact-ink); }

.plan__title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.plan__body {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.5;
  max-width: 30em;
  flex: 1;
}

.plan .btn,
.plan .text-link { margin-top: 8px; }

.text-link--premium { color: var(--color-impact-ink); text-decoration-color: rgba(158, 26, 191, 0.35); }

/* -----------------------------------------------------------
   13. PURSUITS SCHOOL TEASER (light gradient, split layout)
   ----------------------------------------------------------- */
.school {
  padding: var(--section-pad) 0;
  background: var(--gradient-light-3);
  overflow: hidden;
}

.school__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: minmax(0, 628px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.school__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.school__logo { width: 300px; max-width: 100%; height: auto; margin-bottom: 8px; }

.school__body {
  font-weight: 500;
  font-size: 22px;
  color: var(--color-dark);
  line-height: 1.45;
  max-width: 30em;
}
.school__body strong { font-weight: 700; }

.school__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.school__visual { justify-self: center; }
.school__visual img {
  width: min(100%, 460px);
  height: auto;
}

/* -----------------------------------------------------------
   14. FINAL CTA
   ----------------------------------------------------------- */
.final-cta {
  position: relative;
  background: var(--gradient-light-3);
  padding: 80px 0 120px;
  overflow: hidden;
}

.final-cta__world {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1440px;
  height: auto;
  max-height: 531px;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1062px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.section-h2-center {
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  color: var(--color-dark);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.final-cta__body {
  font-weight: 600;
  font-size: 22px;
  color: var(--color-alternative);
  margin-bottom: 8px;
}

.final-cta__globe {
  width: 100%;
  margin-top: 24px;
}
.final-cta__globe img { width: 100%; height: auto; }

/* -----------------------------------------------------------
   15. CONNECT PAGE (contact form)
   ----------------------------------------------------------- */
.connect {
  position: relative;
  background: var(--gradient-light-1);
  padding: 120px 0 140px;
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
}

.connect__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.connect__title {
  font-weight: 700;
  font-size: clamp(34px, 4vw, 48px);
  color: var(--color-dark);
  line-height: 1.2;
}

.connect__subtitle {
  font-weight: 500;
  font-size: 20px;
  color: var(--color-dark);
  line-height: 1.5;
  max-width: 560px;
}
.connect__subtitle strong { font-weight: 700; }

.connect__topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-alternative);
  color: var(--color-light);
  font-weight: 700;
  font-size: 15px;
}
.connect__topic[hidden] { display: none; }

.connect-form {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
  text-align: left;
}

.connect-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-form__label {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-dark);
  letter-spacing: 0.2px;
}

.connect-form__input,
.connect-form__textarea {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-dark);
  background: var(--color-light);
  border: 2px solid var(--color-alternative);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  width: 100%;
  transition:
    border-color 200ms var(--ease-purr),
    box-shadow 200ms var(--ease-purr);
}

.connect-form__input:focus,
.connect-form__textarea:focus {
  outline: none;
  border-color: var(--color-impact-2);
  box-shadow: 0 0 0 4px rgba(121, 38, 255, 0.18);
}

.connect-form__input::placeholder,
.connect-form__textarea::placeholder {
  color: var(--color-dark);
  opacity: 0.55;
}

.connect-form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.5;
}

.connect-form__submit {
  align-self: center;
  margin-top: 8px;
}

.connect-form__note {
  text-align: center;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-alternative);
  margin-top: -4px;
}
.connect-form__note strong { font-weight: 700; }

/* Honeypot — visually and programmatically hidden from humans, still
   submitted by bots that auto-fill every input. */
.connect-form__honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.connect-form__status {
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  min-height: 22px;
  margin-top: -4px;
  color: var(--color-dark);
  opacity: 0;
  transition: opacity 200ms var(--ease-purr);
}

.connect-form.is-sending .connect-form__status,
.connect-form.is-sent .connect-form__status,
.connect-form.is-error .connect-form__status {
  opacity: 1;
}

.connect-form.is-sent .connect-form__status { color: var(--color-impact-2-ink); }
.connect-form.is-error .connect-form__status { color: #B3261E; }

/* After success: collapse the inputs so the status sits on its own. */
.connect-form.is-sent .connect-form__field,
.connect-form.is-sent .connect-form__submit,
.connect-form.is-sent .connect-form__note {
  display: none;
}

/* -----------------------------------------------------------
   16. LEGAL PAGES (Privacy, Terms)
   ----------------------------------------------------------- */
.legal {
  position: relative;
  background: var(--gradient-light-1);
  padding: 120px 0 120px;
  min-height: calc(100dvh - 80px);
}

.legal__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  width: 100%;
}

.legal__title {
  font-weight: 700;
  font-size: 48px;
  color: var(--color-dark);
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.legal__subtitle {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-alternative);
  text-align: center;
  margin: 16px 0 48px;
}

.legal__body {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-dark);
}

.legal__body p { margin: 0 0 16px; }

.legal__h2 {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-dark);
  line-height: 1.3;
  margin: 40px 0 16px;
}

.legal__h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--color-dark);
  line-height: 1.35;
  margin: 24px 0 8px;
}

.legal__body ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal__body li { margin: 0 0 8px; }
.legal__body em { color: var(--color-alternative); }

.legal__summary {
  margin: 0 0 32px;
  padding: 20px 24px 8px;
  border-radius: var(--radius-lg);
  background: var(--color-light);
  border: 2px solid rgba(60, 68, 154, 0.25);
}
.legal__summary-title {
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 12px;
}

.legal__mail {
  color: var(--color-impact-2-ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 160ms var(--ease-purr);
}
.legal__mail:hover { color: var(--color-impact-ink); }

@media (max-width: 720px) {
  .legal { padding: 72px 0 80px; }
  .legal__title { font-size: 36px; }
  .legal__h2 { font-size: 20px; }
  .legal__body { font-size: 16px; }
}

/* -----------------------------------------------------------
   17. SCHOOL PAGE (school.html — early access)
   ----------------------------------------------------------- */
.school-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-light-1);
  padding: 80px 0 120px;
}

.school-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.school-hero__glow--tl { top: -120px; left: -120px; width: 400px; height: 400px; background: rgba(202, 45, 237, 0.25); }
.school-hero__glow--bl { top: 440px; left: -160px; width: 520px; height: 420px; background: rgba(121, 38, 255, 0.22); }
.school-hero__glow--br { top: 360px; right: -120px; width: 480px; height: 480px; background: rgba(247, 147, 30, 0.18); }

.school-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.school-hero__visual img {
  width: 100%;
  height: auto;
  max-width: 560px;
  object-fit: contain;
}

.school-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.school-hero__logo {
  width: 220px;
  height: auto;
  max-width: 100%;
}

.school-hero__title {
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.school-hero__subtitle {
  font-weight: 500;
  font-size: 20px;
  color: var(--color-dark);
  line-height: 1.5;
  max-width: 32em;
}
.school-hero__subtitle strong { font-weight: 700; }

.school-hero__note {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-alt-light);
}

/* --- Planned capabilities (3 alternating rows) --- */
.school-features {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--gradient-light-2);
}

.school-features__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.school-features__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
  max-width: 820px;
}

/* --- Planned capability cards (no product mockups until it ships) --- */
.planned-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.planned .lift__surface {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
}
.planned__art {
  width: 124px;
  height: auto;
  align-self: flex-end;
  margin: -64px -8px -8px 0;
}
.planned__flag {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--color-alternative);
  color: var(--color-light);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.planned__title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}
.planned__body {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
}
.planned__list {
  margin: 0;
  padding: 0 0 0 20px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.7;
}

/* --- Live today (dark) --- */
.school-research {
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.school-research__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 96px;
  align-items: center;
}

.school-research__visual { display: flex; justify-content: center; }
.school-research__visual img {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.school-research__content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.school-research__body {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-white);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.45;
  color: var(--color-light);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-alternative);
  border-bottom: 3px solid var(--color-impact-2);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 7px;
  top: calc(0.15em + 5px);
  width: 8px;
  height: 5px;
  border-left: 2.5px solid var(--color-fresh);
  border-bottom: 2.5px solid var(--color-fresh);
  transform: rotate(-45deg);
}

/* --- Student band (keeps student download separate from teacher copy) --- */
.student-band {
  background: var(--color-light);
  padding: 56px 0;
  border-top: 1px solid rgba(10, 12, 30, 0.08);
}
.student-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.student-band__text {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

/* -----------------------------------------------------------
   18. BUTTONS — stacked 3D (design.md §3.1)
   ----------------------------------------------------------- */
.btn {
  --btn-label-color: var(--color-light);
  --btn-lip: 3px;
  position: relative;
  display: inline-block;
  min-width: 240px;
  max-width: 100%;
  padding-bottom: var(--btn-lip);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: transform 120ms var(--ease-pop);
}

.btn__shadow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: var(--btn-shadow-color);
}

/* The surface is in flow, so long translated labels can grow the button
   instead of clipping; the shadow layer always shows a 3px lip below it. */
.btn__surface {
  position: relative;
  min-height: 51px;
  padding: 8px 28px;
  background: var(--btn-surface-color);
  border: 3px solid var(--btn-shadow-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms var(--ease-pop), filter 200ms var(--ease-purr);
}

.btn__label {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--btn-label-color);
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-align: center;
}

.btn:hover .btn__surface  { transform: translateY(-1px); filter: brightness(1.04); }
.btn:active .btn__surface { transform: translateY(var(--btn-lip)); }
.btn:focus-visible { outline-offset: 4px; }

/* Variants — orange carries dark ink (8.5:1), as in the app's Start button */
.btn--fire {
  --btn-shadow-color: var(--color-fire-deep);
  --btn-surface-color: var(--color-fire);
  --btn-label-color: var(--color-dark);
}
.btn--blue {
  --btn-shadow-color: var(--color-alternative);
  --btn-surface-color: var(--color-alt-light);
}
.btn--gradient {
  --btn-shadow-color: var(--color-impact-2);
}
.btn--gradient .btn__surface { background: var(--gradient-premium); }

.btn--auto { min-width: 0; }

.btn--sm { min-width: 0; }
.btn--sm .btn__surface { min-height: 41px; padding: 6px 18px; }
.btn--sm .btn__label { font-size: 16px; }

/* Wider size used on the school landing page (Figma: 358×60). */
.btn--wide { min-width: min(358px, 100%); }
.btn--wide .btn__surface { min-height: 57px; }

/* -----------------------------------------------------------
   19. FOOTER (design.md §3.7)
   ----------------------------------------------------------- */
.footer {
  --focus-ring: var(--color-fire);
  position: relative;
  background: var(--color-dark);
  color: var(--color-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.footer__stripe {
  height: 28.69px;
  width: 100%;
  flex-shrink: 0;
}
.footer__stripe--1 { background: var(--color-alternative); }
.footer__stripe--2 { background: var(--color-main); }

.footer__inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 64px var(--page-padding) 40px;
  display: flex;
  flex-direction: column;
}

.footer__logo {
  width: clamp(160px, 20vw, 302px);
  height: auto;
  margin-bottom: 48px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 72px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer__heading {
  font-weight: 700;
  font-size: 22px;
  color: var(--color-light);
  line-height: 1.4;
  margin-bottom: 8px;
}

.footer__link {
  font-weight: 600;
  font-size: 18px;
  color: var(--color-white);
  line-height: 1.8;
  transition: color 200ms var(--ease-purr);
}
.footer__link:hover { color: var(--color-fire); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(217, 217, 217, 0.12);
}

.footer__copy {
  font-weight: 400;
  font-size: 13px;
  color: var(--color-white);
}

/* Language override (country detection picks the default) */
.lang-select {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.lang-select__label {
  font-weight: 600;
  font-size: 14px;
  color: var(--color-white);
}
.lang-select__control {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-light);
  background-color: var(--color-main);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F7931E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  border: 2px solid var(--color-alternative);
  border-radius: var(--radius-sm);
  padding: 8px 36px 8px 12px;
  cursor: pointer;
  transition: border-color 200ms var(--ease-purr);
}
.lang-select__control:hover { border-color: var(--color-alt-light); }

/* -----------------------------------------------------------
   20. SCROLL-TRIGGERED REVEAL MOTION (design.md §4.2)
   ----------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms var(--ease-purr),
    transform 600ms var(--ease-purr);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .mascot, .purr__img, .input-pill { animation: none; }
  .ticker { height: auto; padding: 14px var(--page-padding); }
  .ticker__track { animation: none; justify-content: center; width: 100%; }
  .ticker__group { flex-wrap: wrap; justify-content: center; row-gap: 8px; flex-shrink: 1; }
  .ticker__group[aria-hidden="true"],
  .ticker__toggle { display: none; }
  .steps__fill { transform: none; transition: none; }
}

/* -----------------------------------------------------------
   21. RESPONSIVE
   Desktop-first. Breakpoints:
     ≥1280px        — desktop (default)
     1024–1279px    — iPad landscape / small laptop
     768–1023px     — tablet (stacked, menu toggle)
     ≤767px         — mobile
     ≤400px         — small phones (360px reference)
   ----------------------------------------------------------- */
@media (max-width: 1280px) {
  :root { --page-padding: 40px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1279px) {
  .navbar__nav  { gap: 24px; }
  .navbar__link { font-size: 17px; }

  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; }
  .hero__visual { height: 580px; --phone-w: 250px; --phone-x: 0px; }
  .hero__purr { width: 160px; }
  .input-pill__face { font-size: 16px; padding: 10px 16px 10px 12px; }
  .input-pill--1 { top: 72px; }
  .input-pill--2 { top: 164px; }
  .input-pill--3 { top: 256px; }
  .input-pill--4 { top: 348px; }

  .demo__purr { display: none; }
  .steps { --gap: 32px; }

  .school-research__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* ---- Tablet: ≤1023 — single column, menu toggle ---- */
@media (max-width: 1023px) {
  :root { --section-pad: 96px; }

  .navbar__toggle { display: inline-grid; }
  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--page-padding) 24px;
    background: var(--color-light);
    border-bottom: 1px solid rgba(10, 12, 30, 0.1);
    box-shadow: 0 16px 32px rgba(10, 12, 30, 0.08);
  }
  .navbar.is-open .navbar__nav { display: flex; }
  .navbar__link {
    font-size: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(10, 12, 30, 0.08);
  }
  .navbar__link::after { display: none; }
  .navbar__inner { position: relative; }

  .hero { padding: 40px 0 72px; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "visual";
    gap: 48px;
  }
  .hero__content { align-items: center; text-align: center; }
  .hero__line { display: inline; }
  .hero__content .store-badges { justify-content: center; }
  .hero__visual { max-width: 560px; height: 560px; --phone-x: 12%; }
  .input-pill--1 { top: 40px; }
  .input-pill--2 { top: 128px; }
  .input-pill--3 { top: 216px; }
  .input-pill--4 { top: 304px; }
  .hero__purr { bottom: 0; }

  .steps__list { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 64px; }
  .steps { --node: 52px; }
  .step {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-row: auto;
    padding-left: calc(var(--node) + 24px);
    gap: 16px;
  }
  .step__node { position: absolute; left: 0; top: 0; }
  /* One segment per step, from this node down to the next one */
  .steps__line { display: none; }
  .step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: calc(var(--node) / 2 - 1.5px);
    top: calc(var(--node) + 6px);
    bottom: -58px;
    width: 3px;
    border-radius: 2px;
    background: var(--gradient-premium);
    opacity: 0.6;
  }
  .step .device { width: min(100%, calc(280px + var(--space-5))); }

  .students__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "lead" "a" "b";
  }
  .scenario--lead .lift__surface { min-height: 0; }

  .features__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .card__surface { min-height: 0; }

  .purr { padding-bottom: 32px; }
  .purr__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .purr__art { width: min(70%, 320px); margin-right: 18%; }
  .purr__text { align-items: center; text-align: center; }
  .purr__aside { text-align: left; }

  .modes__grid { grid-template-columns: minmax(0, 1fr); gap: 64px; max-width: 600px; }

  .plans__grid { grid-template-columns: minmax(0, 1fr); max-width: 600px; }

  .school__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .school__visual { order: -1; }
  .school__visual img { width: min(100%, 320px); }

  /* --- School page --- */
  .school-hero { padding: 48px 0 80px; }
  .school-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .school-hero__visual img { max-width: 480px; margin: 0 auto; }
  .school-features__header { margin-bottom: 48px; }
  .school-research__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .school-research__visual img { max-width: 320px; }
  .planned-grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; gap: 56px; margin-top: 56px; }
}

/* ---- Mobile: ≤767 ---- */
@media (max-width: 767px) {
  :root { --page-padding: 20px; --section-pad: 72px; }

  .navbar { height: 68px; }
  html { scroll-padding-top: 84px; }

  .section-lede,
  .hero__subtitle { font-size: 18px; }

  .hero { padding: 32px 0 56px; }
  .hero__content { gap: 18px; }
  /* Pills sit above the phone so they never cover the screenshot */
  .hero__visual {
    --phone-w: 220px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .hero__inputs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 10px;
    max-width: 340px;
  }
  .input-pill { position: relative; right: auto; top: auto; }
  .input-pill__face { font-size: 14px; gap: 8px; padding: 8px 12px 8px 10px; }
  .input-pill__icon { width: 18px; height: 18px; }
  .hero__phone { position: relative; right: auto; }
  .hero__caption { font-size: 13px; }
  .hero__purr { width: 118px; right: auto; left: calc(50% - var(--phone-w) / 2 - 64px); bottom: 44px; }
  .hero__content .eyebrow { font-size: 12px; }

  .ticker { height: 56px; }
  .ticker__item { font-size: 16px; }

  .steps { margin-top: 48px; }
  .step__title { font-size: 22px; }
  .step__body { font-size: 17px; }
  .step { padding-left: calc(var(--node) + 16px); }

  .lift__surface { padding: 22px; }
  .scenario--lead .lift__surface { padding: 24px; }
  .scenario__art--lead { width: 160px; }
  .scenario__row { flex-direction: column !important; align-items: flex-start; gap: 12px !important; }
  .scenario__art { width: 96px; }
  .scenario__title,
  .card__title,
  .plan__title,
  .mode__name { font-size: 22px; }
  .scenario__body,
  .card__body,
  .plan__body,
  .mode__body { font-size: 17px; }

  .features__grid { margin-top: 32px; }

  .purr__bubble { top: -10%; right: -28%; font-size: 15px; max-width: 180px; }

  .mode .lift__surface { padding: 24px 24px 28px; }
  .mode__art { width: 128px; margin-top: -72px; }
  .mode__name { margin-top: -32px; }

  .plan .lift__surface { padding: 24px; }

  .school__body { font-size: 19px; }

  .final-cta { padding: 64px 0 96px; }
  .final-cta__body { font-size: 19px; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-bottom: 48px; }
  .footer__link { font-size: 17px; }
  .footer__heading { font-size: 19px; }

  .btn { min-width: 0; }
  .btn__label { font-size: 18px; white-space: normal; text-wrap: balance; }
  .btn--gradient .btn__label { font-size: 19px; } /* >=18.66px bold keeps 3:1 large-text contrast on the gradient */
  .btn--sm .btn__label { white-space: nowrap; }
  .btn--wide { width: 100%; min-width: 0; max-width: 360px; }
  .btn--wide .btn__surface { min-height: 53px; }

  /* --- School page ≤767 --- */
  .school-hero { padding: 32px 0 56px; }
  .school-hero__logo { width: 170px; }
  .school-hero__subtitle { font-size: 18px; }
  .school-hero__glow--tl,
  .school-hero__glow--bl,
  .school-hero__glow--br,
  .hero__glow { display: none; }
  .school-research__body { font-size: 18px; }
  .check-list li { font-size: 17px; }
  .student-band__text { font-size: 19px; }
}

/* ---- Small phones: ≤420 (360px reference; covers 402/412px devices) ---- */
@media (max-width: 420px) {
  .store-badges { gap: 10px; }
  .store-badge img { height: 44px; }
  :root { --page-padding: 16px; }
  .navbar__inner { gap: 10px; }
  .navbar__logo img { height: 28px; }
  .nav-cta { max-width: 172px; }
  .btn--sm .btn__surface { padding: 6px 12px; }
  .btn--sm .btn__label { font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: block; }

  .hero__visual { --phone-w: 200px; }
  .hero__purr { width: 100px; left: calc(50% - var(--phone-w) / 2 - 50px); }
  .input-pill__face { font-size: 13px; }

  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}
