/* ==========================================================================
   Cognein — Design System
   Average display + Lora body, on near-black. Shared by every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — #00B3FF is sampled from the Cognein mark */
  --brand-300: #7FDBFF;
  --brand-400: #33C4FF;
  --brand-500: #00B3FF;
  --brand-600: #0090DB;
  --violet-400: #9B85FF;
  --violet-500: #7C5CFF;

  /* Surfaces */
  --bg: #05070B;
  --bg-elevated: #0A0E15;
  --surface-1: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.052);
  --surface-3: rgba(255, 255, 255, 0.078);
  /* --surface-1 / --surface-2 pre-composited over --bg, for the few places
     that need an opaque card (anything with artwork behind it). */
  --card: #0C0E12;
  --card-hi: #121418;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* Text — white throughout; hierarchy comes from opacity, not hue. */
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-dim: rgba(255, 255, 255, 0.55);

  /* Type */
  --font-display: "Average", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, serif;
  --font-brand: "Ubuntu", -apple-system, sans-serif;

  --fs-hero: clamp(1.75rem, 4.5vw, 4.25rem);
  --fs-act: clamp(1.75rem, 4vw, 3rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.25rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.3125rem);
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body: 1.125rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(2.25rem, 3.75vw, 3.5rem);
  /* For sections meant to read as one continuous unit rather than two
     separate breaths (e.g. the proof showcase and the trust-facts strip
     beneath it). */
  --section-y-tight: clamp(1.5rem, 3vw, 2.25rem);

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 980px;

  /* Depth */
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --shadow-md: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.85);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* The header's status-bar inset: env() only falls back to its second
     argument when the property is unsupported, not when there is no notch —
     so on a plain desktop browser it resolves to 0px, not 24px. max() is
     what actually guarantees the 24px clearance on every device. */
  --status-inset: max(env(safe-area-inset-top, 0px), 24px);
  --toolbar-height: 56px;
  --header-h: calc(var(--status-inset) + var(--toolbar-height));
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

/* Ambient depth, fixed so it never scrolls away */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 40rem at 8% -10%, rgba(0, 179, 255, 0.13), transparent 62%),
    radial-gradient(50rem 38rem at 96% 6%, rgba(124, 92, 255, 0.11), transparent 60%),
    radial-gradient(44rem 34rem at 50% 110%, rgba(0, 179, 255, 0.09), transparent 62%);
}

/* Grain — keeps large dark fields from banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgba(0, 179, 255, 0.3);
  color: #fff;
}

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

:focus:not(:focus-visible) {
  outline: none;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

.display em {
  font-style: italic;
  color: inherit;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
  color: var(--text);
}

em,
i {
  font-style: italic;
  color: inherit;
}

u,
.underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(0, 179, 255, 0.45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow--center::before {
  display: none;
}

.eyebrow--block {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.eyebrow--block-lg {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.gradient-text {
  color: var(--text);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--tight {
  max-width: 940px;
}

section {
  padding-block: var(--section-y);
  position: relative;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: 3000;
  padding: 0.75rem 1.25rem;
  /* Darker than --brand-600 — white text needs the extra depth to clear
     AA contrast (4.5:1) on a solid fill. */
  background: #0077b6;
  color: #ffffff;
  font-weight: 600;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: translate 0.25s var(--ease);
}

.skip-link:focus {
  translate: -50% 0;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-py: 0.8125rem;
  --btn-px: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.011em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:active {
  transform: scale(0.985);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--ghost:hover {
  background: var(--surface-3);
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

/* Simple solid pill — no gradient, no sweep. Used for the primary "start
   now" action wherever it appears outside the hero's platform buttons. */
.btn--start {
  background: var(--brand-500);
  color: #ffffff;
  box-shadow: var(--edge);
}

.btn--start:hover {
  /* Darker than --brand-600 — white text needs the extra depth to clear
     AA contrast (4.5:1) on a solid fill. */
  background: #0077b6;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn--lg {
  --btn-py: 1rem;
  --btn-px: 2rem;
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: flex-end;
}

/* A true progressive blur: ten stacked bands, each blurred less than the
   last as it nears the transparent edge, so the transition from sharp to
   soft has no visible seam. Always on — the header never hides. */
.header__veil {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: var(--header-h);
  overflow: hidden;
  pointer-events: none;
}

.header__veil span {
  position: absolute;
  left: 0;
  right: 0;
  backdrop-filter: blur(var(--b, 1px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--b, 1px)) saturate(140%);
}

.header__veil span:nth-child(1) { top: 0%; height: 12%; --b: 20px; }
.header__veil span:nth-child(2) { top: 12%; height: 13%; --b: 17.16px; }
.header__veil span:nth-child(3) { top: 25%; height: 15%; --b: 14.16px; }
.header__veil span:nth-child(4) { top: 40%; height: 15%; --b: 10.83px; }
.header__veil span:nth-child(5) { top: 55%; height: 13%; --b: 7.67px; }
.header__veil span:nth-child(6) { top: 68%; height: 10%; --b: 5.10px; }
.header__veil span:nth-child(7) { top: 78%; height: 8%; --b: 3.25px; }
.header__veil span:nth-child(8) { top: 86%; height: 6%; --b: 1.89px; }
.header__veil span:nth-child(9) { top: 92%; height: 5%; --b: 0.97px; }
.header__veil span:nth-child(10) { top: 97%; height: 3%; --b: 0.30px; }

/* The tint sits over the blur bands: darkest at the top, fading to nothing
   by the toolbar's lower edge, so brand and actions read against clear
   glass rather than a flat panel. */
.header__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 11, 0.7) 0%,
    rgba(5, 7, 11, 0.58) 30%,
    rgba(5, 7, 11, 0.38) 60%,
    rgba(5, 7, 11, 0.16) 82%,
    rgba(5, 7, 11, 0) 100%
  );
}

@supports not (backdrop-filter: blur(1px)) {
  .header__veil span {
    display: none;
  }

  .header__tint {
    background: rgba(5, 7, 11, 0.92);
  }
}

.header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--toolbar-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  transition: opacity 0.25s var(--ease);
}

.brand:hover {
  opacity: 0.72;
}

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
}

.brand__mark img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 10px rgba(0, 179, 255, 0.45));
}

/* Plain label — used in the footer, where there's no gradient wordmark. */
.brand__label {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* The header's wordmark: a solid base layer (so it still reads if the
   gradient layer's background-clip isn't supported) with a lighter
   gradient layer clipped to the same text on top. */
.brand__wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand__wordmark-base {
  color: #59b4ff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

.brand__wordmark-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #d8f3ff, #81d4fa, #42a5f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}

/* Each bar is centred, then offset/rotated from its own centre — so the
   open state collapses to a true X. */
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  translate: -50% -50%;
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 999;
  display: grid;
  gap: 0.25rem;
  padding: 1rem var(--gutter) 1.75rem;
  background: rgba(7, 10, 16, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
  visibility: hidden;
  opacity: 0;
  translate: 0 -10px;
  transition: opacity 0.3s var(--ease), translate 0.3s var(--ease), visibility 0.3s;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}

/* Scoped away from .btn so the CTA keeps its own colour and padding. */
.mobile-nav a:not(.btn) {
  padding: 0.875rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--hairline);
}

.mobile-nav .btn {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   8. Hero — the cold open
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 840px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: calc(var(--header-h) + 2rem) 3rem;
  overflow: hidden;
}

@media (max-height: 900px) {
  .hero {
    min-height: auto;
  }
}

/* Vignette so the type always sits on quiet ground */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(52% 46% at 50% 44%, rgba(5, 7, 11, 0.8) 0%, rgba(5, 7, 11, 0.38) 48%, transparent 82%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 72rem;
}

/* Two-column on desktop: copy left, device mockup right. Below 901px this
   collapses to a single column (see §24 Responsive). Unlike `.method-grid`,
   the hero keeps the copy first on mobile — the headline and CTAs are the
   whole point of a hero, so they must not be pushed below a phone image on
   the one viewport where every pixel of "above the fold" matters most. This
   overrides the shared `.device-stage { order: -1 } ` rule that section uses. */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.hero__grid .device-stage {
  order: 0;
}

@media (min-width: 901px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    text-align: left;
  }

  .hero__copy .lead {
    margin-inline: 0;
  }

  .hero__copy .hero-cta,
  .hero__copy .assurances {
    justify-content: flex-start;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero .lead {
  margin: 2.5rem auto 0;
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 3.25rem;
}

/* The three objections, answered with an icon each — no caps, no shouting */
.assurances {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 2.25rem;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.assurances li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.assurances li svg {
  width: 14px;
  height: 14px;
  color: var(--brand-400);
  opacity: 0.9;
}

/* Hairline separators drawn between items, never before the first */
.assurances li + li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  width: 1px;
  height: 11px;
  background: var(--hairline-strong);
}

/* --------------------------------------------------------------------------
   9. Word-mask reveal (available for headlines; not currently used)
   -------------------------------------------------------------------------- */
.js [data-split] .line {
  display: block;
}

.js [data-split] .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.js [data-split] .word > span {
  display: inline-block;
  translate: 0 110%;
  transition: translate 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-split].is-visible .word > span {
  translate: 0 0;
}

/* Generic fade-rise for everything that isn't a headline */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

/* Plain, slow fade — no movement, no masking. Used on the homepage's act
   headlines, which want something quieter than the rise-and-fade default.
   Deliberately NOT var(--ease-out): that curve is so front-loaded it hits
   ~90% opacity in the first 200ms no matter how long the duration is,
   which reads as an instant pop, not a fade. ease-in-out actually spreads
   the change across the full duration. */
.js .fade-in-slow {
  translate: none;
  transition: opacity 2.2s ease-in-out;
  transition-delay: var(--d, 0ms);
}

.js .fade-in-slow.is-visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   10. Act — the tension
   -------------------------------------------------------------------------- */
.act {
  position: relative;
  text-align: center;
  /* A single short statement doesn't carry the same visual weight as a
     content-heavy section — giving it the full --section-y reads as an
     empty room. Tighter padding keeps it feeling like a deliberate pause,
     not a gap in the page. */
  padding-block: var(--section-y-tight);
}

.act .container {
  position: relative;
  z-index: 1;
}

.act__statement {
  font-family: var(--font-display);
  font-size: var(--fs-act);
  line-height: 1.04;
  max-width: 32ch;
  margin-inline: auto;
}

.act__statement--left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: 2.5rem;
}

.act__statement--sm {
  font-size: var(--fs-h2);
  margin-bottom: 0;
}

/* Thin rule that draws itself into view */
.rule {
  width: min(100%, 240px);
  height: 1px;
  margin: 0 auto 3.5rem;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  scale: 0 1;
  transition: scale 1.4s var(--ease-out);
}

.js .rule.is-visible {
  scale: 1 1;
}

/* --------------------------------------------------------------------------
   11. The method — cards that unlock
   -------------------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  /* The device is taller than the text column; centering the two stranded
     equal dead space above the heading and below the stat line. Starting
     both at the same top edge reads as one deliberate block instead. */
  align-items: start;
}

.steps {
  position: relative;
  display: grid;
  gap: 1rem;
}

/* A spine running behind the cards, glimpsed only in the gaps between them —
   the sequence made visible without drawing a diagram. */
.steps::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3.5rem;
  bottom: 3.5rem;
  left: calc(1.625rem + 20px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline-strong) 18%, var(--hairline-strong) 82%, transparent);
}

/* ...and a lit thread that grows down it as each step unlocks. The sequence
   completing itself, said without a word of copy. */
.steps::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3.5rem;
  bottom: 3.5rem;
  left: calc(1.625rem + 20px);
  width: 1px;
  transform-origin: 50% 0;
  scale: 1 var(--fill, 0);
  background: linear-gradient(180deg, var(--brand-400), rgba(124, 92, 255, 0.85));
  box-shadow: 0 0 14px rgba(0, 179, 255, 0.5);
  transition: scale 1s var(--ease);
}

/* Locked → unlocked, mirroring the app's own lesson list. Icon and title
   only — the phone beside it does the showing, not a caption underneath. */
.step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.125rem 1.625rem;
  border-radius: var(--r-lg);
  /* Opaque, not translucent: the spine behind must show only in the gaps.
     These two are --surface-1 / --surface-2 composited over --bg. */
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge);
  overflow: hidden;
  transition: background-color 0.7s var(--ease), border-color 0.7s var(--ease),
    transform 0.5s var(--ease);
}

/* The ordinal, set small and quiet in the corner, centered on the row */
.step__num {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 1.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  opacity: 0.55;
  transition: color 0.7s var(--ease), opacity 0.7s var(--ease);
}

.step.is-open .step__num {
  color: var(--brand-400);
  opacity: 0.9;
}

/* Cursor spotlight */
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(
    18rem 18rem at var(--mx, 50%) var(--my, 50%),
    rgba(0, 179, 255, 0.11),
    transparent 70%
  );
}

.step:hover::before {
  opacity: 1;
}

.step:hover {
  border-color: var(--hairline-strong);
}

.step__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease),
    border-color 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.step__icon svg {
  width: 17px;
  height: 17px;
}

.step__icon .icon-open {
  display: none;
}

.step__body {
  display: grid;
  gap: 0.25rem;
}

.step h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: -0.015em;
  transition: color 0.7s var(--ease);
}

.step__desc {
  font-size: var(--fs-xs);
  color: var(--text-dim);
  line-height: 1.5;
}

/* The unlocked state */
.step.is-open {
  background: var(--card-hi);
  border-color: rgba(0, 179, 255, 0.28);
}

.step.is-open .step__icon {
  background: rgba(0, 179, 255, 0.14);
  border-color: rgba(0, 179, 255, 0.4);
  color: var(--brand-400);
  box-shadow: 0 0 0 5px rgba(0, 179, 255, 0.06);
}

.step.is-open .step__icon .icon-open {
  display: block;
}

.step.is-open .step__icon .icon-locked {
  display: none;
}

/* Device mockup */
.device-stage {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.5rem;
  padding-block: 14px;
  isolation: isolate;
  perspective: 1400px;
}

.device-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  width: min(120%, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 179, 255, 0.26), rgba(124, 92, 255, 0.1) 46%, transparent 70%);
  filter: blur(20px);
}

/* A single bloom the moment the mockup enters view — rides the same
   is-visible class the reveal system already adds, so it never re-fires and
   is automatically switched off by the reduced-motion block below. */
.device-stage.is-visible::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  width: min(120%, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(127, 219, 255, 0.5), transparent 70%);
  animation: device-bloom 1.3s var(--ease-out) both;
}

@keyframes device-bloom {
  0% {
    opacity: 0;
    scale: 0.55;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    scale: 1.6;
  }
}

.device {
  /* Bezel and corner scale together across the three device sizes; the
     radius is always ~0.144 x width, which is the real iPhone ratio. */
  --bezel: 3px;
  --black-bezel: 8px;
  --radius: 42px;
  position: relative;
  width: min(100%, 264px);
  padding: var(--bezel);
  border-radius: var(--radius);
  /* A machined rim read at 3px: light catches the top-left and bottom-right
     corners, the long edges stay dark. */
  background: linear-gradient(150deg, #8C94A4 0%, #2A3038 16%, #05070B 46%, #05070B 58%, #2A3038 86%, #7A8290 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 0.5px rgba(255, 255, 255, 0.34),
    0 0 60px -18px rgba(0, 179, 255, 0.5);
  /* --rx/--ry are written by the pointer handler; both default to flat, so
     with JS off or a touch device this is an ordinary upright phone. */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease);
}

.device-stage.is-tilting .device {
  transition: transform 0.12s linear;
}

/* A fixed, faint highlight in the corner of the glass — always on, not
   tied to hover/tilt like the sweep this replaced. */
.device__glare {
  position: absolute;
  inset: var(--bezel);
  z-index: 3;
  border-radius: calc(var(--radius) - var(--bezel));
  pointer-events: none;
  background: radial-gradient(120px 120px at 18% 12%, rgba(255, 255, 255, 0.12), transparent 70%);
}

/* The thin black padding between the metal rim and the screen itself —
   present on every mockup because it lives here, in the shared macro. */
.device__frame {
  padding: var(--black-bezel);
  border-radius: calc(var(--radius) - var(--bezel));
  background: #000;
}

.device__screen {
  position: relative;
  aspect-ratio: 345 / 750;
  border-radius: calc(var(--radius) - var(--bezel) - var(--black-bezel));
  overflow: hidden;
  background: #0A0A0A;
}

.device__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Proportional, so it stays a believable island at 208px and at 360px */
.device__island {
  position: absolute;
  top: 2.1%;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 26%;
  aspect-ratio: 5.2 / 1;
  border-radius: var(--r-pill);
  background: #000;
}

/* The iPhone home-screen indicator line, at the bottom of every screen */
.device__home {
  position: absolute;
  bottom: 1.4%;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 34%;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
}

/* A small supporting stat, folded in under the steps — the one figure
   worth keeping from the old standalone math section. */
.method__stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.method__stat .gradient-text {
  font-weight: 640;
}

.method__arrow {
  color: var(--text-dim);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   12. The mirror — what do you do
   -------------------------------------------------------------------------- */
.mirror {
  text-align: center;
}

.picker {
  margin-top: clamp(2.25rem, 5vw, 3rem);
}

.picker__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}

.picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.625rem 1.125rem 0.625rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge);
  color: var(--text-dim);
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.picker__chip:hover {
  color: var(--text);
  border-color: var(--hairline-strong);
  background: var(--card-hi);
  transform: translateY(-2px);
}

/* Selected chip reads unmistakably chosen through the ring and glow, not a
   filled dark-on-blue swap — that swap is what forced dark text before. */
.picker__chip.is-on {
  color: var(--text);
  border-color: var(--brand-400);
  background: rgba(0, 179, 255, 0.14);
  box-shadow: 0 0 0 1px rgba(0, 179, 255, 0.3) inset, 0 6px 18px -6px rgba(0, 179, 255, 0.55);
}

.picker__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-400);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.45s var(--ease);
}

.picker__icon svg {
  width: 14px;
  height: 14px;
}

.picker__chip.is-on .picker__icon {
  background: rgba(0, 179, 255, 0.22);
  color: var(--brand-300);
  transform: rotate(-8deg) scale(1.06);
}

/* The result card: an icon badge, the answer in the display face, and a
   quiet caption underneath — swapped as one unit when a chip is chosen. */
.result-card {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  max-width: 34ch;
  text-align: center;
  transition: opacity 0.26s var(--ease), translate 0.26s var(--ease);
}

.result-card.is-swapping {
  opacity: 0;
  translate: 0 7px;
}

.result-card__badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--brand-300);
  background: radial-gradient(circle, rgba(0, 179, 255, 0.22), rgba(0, 179, 255, 0.06) 70%);
  box-shadow: 0 0 0 1px rgba(0, 179, 255, 0.25) inset, 0 0 30px -8px rgba(0, 179, 255, 0.5);
}

.result-card__badge svg {
  width: 26px;
  height: 26px;
}

.picker__prefix {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.75;
}

.picker__value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
}

.result-card__gain {
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   13. Proof
   -------------------------------------------------------------------------- */
/* ---- Real screens from the app, carried round an invisible circle ------ */
.carousel {
  --n: 5;
  --card: clamp(160px, 21vw, 220px);
  --r: clamp(168px, 25vw, 250px);
  --step: calc(360deg / var(--n));
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  /* Room for the front screen to grow into without touching its neighbours */
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
  /* The ring's off-circle cells sit far outside the visible frame once
     rotated into 3D — clip them so they can never cause page-level
     horizontal scroll. */
  overflow: clip;
}

/* Without JS, and for anyone who asked for no motion, the screens simply
   line up in a grid. The ring is switched on by the carousel script. */
.carousel__ring {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  justify-items: center;
}

/* Perspective lives on the parent: the ring is the thing being projected,
   so it cannot supply its own vanishing point. */
.carousel.is-3d {
  perspective: 1700px;
  perspective-origin: 50% 44%;
}

.carousel.is-3d .carousel__ring {
  display: block;
  position: relative;
  /* Must match the device macro's true geometry: card width minus the two
     bezel layers gives the screen width, projected to the real 345:750
     screenshot ratio, then the bezel depth is added back for the outer
     device height. A stale ratio here would let the front cell overflow
     the ring's reserved height and get clipped. */
  height: calc((var(--card) - 22px) * 2.1739 + 22px);
  transform-style: preserve-3d;
  /* Pulled back half a radius so the front screen sits just proud of the
     plane — it grows toward you without bursting out of the section. */
  transform: translateZ(calc(var(--r) * -0.5)) rotateY(var(--angle, 0deg));
  /* Driven per-frame by the carousel script (a constant slow drift, sped up
     by drag) — a CSS transition here would fight that every frame. */
  touch-action: pan-y;
  cursor: grab;
}

.carousel.is-3d .carousel__ring.is-dragging {
  cursor: grabbing;
}

.carousel.is-3d .carousel__cell {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--card);
  margin-left: calc(var(--card) / -2);
  transform-style: preserve-3d;
  /* Each screen sits on the rim of the circle, facing outward — so the one
     at the front faces you, and the far side turns its back. */
  transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--r));
  backface-visibility: hidden;
  /* --near is written by the carousel script every frame: 1 at the front,
     0 at the back. No transition here either — it's already continuous. */
  opacity: calc(0.22 + 0.78 * var(--near, 1));
  filter: brightness(calc(0.46 + 0.54 * var(--near, 1)))
    saturate(calc(0.35 + 0.65 * var(--near, 1)));
}

.carousel__cell .device-stage {
  gap: 0;
  padding-block: 0;
}

/* Only the front screen keeps its bloom and its full glow */
.carousel.is-3d .carousel__cell .device-stage::before {
  width: min(150%, 26rem);
  opacity: calc(0.15 + 0.85 * var(--near, 1));
  transition: opacity 0.9s var(--ease);
}

/* The glow scales continuously with --near rather than switching on a
   settled "is-front" cell — there's no settled state once the ring never
   stops turning. */
.carousel__cell .device {
  --radius: 36px;
  width: 100%;
  box-shadow: var(--shadow-lg), inset 0 0 0 0.5px rgba(255, 255, 255, 0.34),
    0 0 70px -16px rgba(0, 179, 255, calc(0.55 * var(--near, 1)));
}

/* ---- The plain facts, directly under the screens — one line each, no
   explaining sentence underneath; the icon plus the fact is the whole idea. */
.creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  /* One gap, not a margin and a padding stacked on top of each other —
     the old combination could run to 96px before the divider even showed. */
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--hairline);
}

.creds li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.creds svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brand-400);
  opacity: 0.85;
}

.creds strong {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   13a. Trust — the AI marquee and the star rating
   -------------------------------------------------------------------------- */
.trust {
  text-align: center;
}

/* A continuous left-to-right drift. The track's content is duplicated in
   the template so the loop is seamless at the halfway point; masked at both
   edges so logos fade in and out rather than cutting off mid-mark. */
.logo-marquee {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}

.logo-marquee__track img {
  height: 28px;
  width: auto;
  flex: none;
  /* simple-icons ship solid black paths — inverted to white, then dimmed for
     the low-opacity, monochrome credibility-strip look. */
  filter: brightness(0) invert(1);
  opacity: 0.38;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    /* The track is the logo list twice over, so half its width is exactly
       one full set — the point at which the loop repeats invisibly. */
    transform: translateX(-50%);
  }
}

.trust__heading {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.trust__stars {
  display: block;
  margin: clamp(1.5rem, 3vw, 2rem) auto 0;
  max-width: min(100%, 420px);
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 760px;
  margin-inline: auto;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.375rem 0.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--text);
}

/* Numbering the questions makes six of them feel finite rather than endless */
.faq__i {
  flex: none;
  width: 1.75rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}

.faq summary svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-left: auto;
  color: var(--text-dim);
  transition: rotate 0.4s var(--ease), color 0.25s var(--ease);
}

.faq details[open] summary {
  color: var(--text);
}

.faq details[open] .faq__i {
  color: var(--text);
}

.faq details[open] summary svg {
  rotate: 135deg;
  color: var(--brand-400);
}

/* Height is animated by JS; the wrapper exists so there is something with a
   measurable height that isn't the <details> box itself. */
.js .faq__body {
  overflow: hidden;
  transition: height 0.4s var(--ease);
}

.faq__body p {
  padding: 0 3rem 1.5rem 2rem;
  margin-top: -0.25rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.faq__more {
  max-width: 760px;
  margin: 2.25rem auto 0;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.faq__more a {
  color: var(--brand-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 179, 255, 0.35);
  transition: text-decoration-color 0.25s var(--ease);
}

.faq__more a:hover {
  text-decoration-color: var(--brand-300);
}

/* --------------------------------------------------------------------------
   15. Close
   -------------------------------------------------------------------------- */
.close {
  position: relative;
  text-align: center;
  padding-block: clamp(3rem, 5.5vw, 5rem);
  overflow: hidden;
}

.close h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.close .lead {
  margin: 1.75rem auto 0;
  max-width: 26ch;
}

/* --------------------------------------------------------------------------
   16. Download buttons
   -------------------------------------------------------------------------- */
.platform-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 17px 40px;
  border-radius: 50px;
  cursor: pointer;
  background-color: #fff;
  color: #333333;
  box-shadow: rgba(0, 0, 0, 0.05) 0 0 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.5s ease;
}

.platform-btn:hover {
  letter-spacing: 3px;
  background-color: #4da6ff;
  color: #2c4c7e;
  box-shadow: rgba(77, 166, 255, 0.7) 0px 7px 29px 0px;
}

.platform-btn:active {
  letter-spacing: 3px;
  background-color: #4da6ff;
  color: #2c4c7e;
  box-shadow: rgba(77, 166, 255, 0) 0px 0px 0px 0px;
  transform: translateY(10px);
  transition: 100ms;
}

.platform-btn__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: currentColor;
}

.platform-btn__mark svg {
  width: 100%;
  height: 100%;
}

.text_button {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.3);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 30ch;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.footer h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.125rem;
}

.footer nav {
  display: grid;
  gap: 0.75rem;
}

.footer nav a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
  justify-self: start;
}

.footer nav a:hover {
  color: var(--brand-300);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.footer-bottom a:hover {
  color: var(--brand-300);
}

.footer-made {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-made .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 8px rgba(0, 179, 255, 0.8);
}

/* The header mark grew to 40px; the footer lockup stays at its original
   28px scale. */
.footer .brand__mark,
.footer .brand__mark img {
  width: 28px;
  height: 28px;
}

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.legal {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.legal-head {
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.legal-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-top: 1rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.legal-body {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge);
}

.legal-body > *:first-child {
  margin-top: 0;
}

.legal-body h2 {
  font-size: 1.3125rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

.legal-body p,
.legal-body li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body ul {
  list-style: none;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.625rem;
}

.legal-body li {
  position: relative;
  padding-left: 1.375rem;
}

.legal-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6875em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-500);
}

.legal-body strong {
  color: var(--text);
  font-weight: 700;
}

.legal-body a {
  color: var(--brand-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 179, 255, 0.4);
  transition: text-decoration-color 0.25s var(--ease);
}

.legal-body a:hover {
  text-decoration-color: var(--brand-300);
}

.callout {
  padding: 1.25rem 1.375rem;
  margin-bottom: 1.75rem;
  border-radius: var(--r-md);
  background: rgba(0, 179, 255, 0.06);
  border: 1px solid rgba(0, 179, 255, 0.2);
  border-left-width: 3px;
}

.callout p {
  margin-bottom: 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.toc {
  max-width: 780px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
}

.toc h2 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.875rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  counter-increment: toc;
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.toc a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.toc a::before {
  content: counter(toc) ". ";
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--brand-300);
}

/* Terms numbers its own sections, so suppress the generated counter there. */
.toc--plain a::before {
  content: none;
}

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */
.notfound {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
  overflow: hidden;
}

.notfound__inner {
  position: relative;
  z-index: 2;
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

/* A dead end is a design failure; these are the ways out. */
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-xs);
}

.notfound__links a {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.notfound__links a:hover {
  color: var(--brand-300);
}

/* --------------------------------------------------------------------------
   20. Back to top
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(10, 14, 21, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 0.35s var(--ease), translate 0.35s var(--ease),
    visibility 0.35s, color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.to-top:hover {
  color: var(--brand-300);
  border-color: rgba(0, 179, 255, 0.4);
}

.to-top svg {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
   21. Legal pages — the sticky contents rail
   -------------------------------------------------------------------------- */
@media (min-width: 1000px) {
  /* Wide enough for the contents to sit alongside rather than above */
  .legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
    max-width: 1060px;
    margin-inline: auto;
  }

  .legal-layout .toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    margin: 0;
    padding: 0;
    background: none;
    border: none;
  }

  .legal-layout .toc ol {
    columns: 1;
    border-left: 1px solid var(--hairline);
  }

  .legal-layout .toc li {
    margin-bottom: 0;
  }

  .legal-layout .toc a {
    display: block;
    padding: 0.4rem 0 0.4rem 0.875rem;
    margin-left: -1px;
    border-left: 1px solid transparent;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
  }

  .legal-layout .toc a:hover,
  .legal-layout .toc a.is-active {
    color: var(--brand-300);
    border-left-color: var(--brand-500);
  }

  .legal-layout .legal-body {
    margin: 0;
    max-width: none;
  }
}

/* Every section heading is addressable — the § appears on hover and links
   straight to that clause. */
.legal-body h2 {
  position: relative;
}

.legal-anchor {
  position: absolute;
  left: -1.35rem;
  top: 0;
  font-size: 0.9em;
  color: var(--brand-500);
  opacity: 0;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.legal-body h2:hover .legal-anchor,
.legal-anchor:focus-visible {
  opacity: 0.75;
}

@media (max-width: 720px) {
  .legal-anchor {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .device-stage {
    order: -1;
  }

  /* The ring tightens rather than reflowing — it is one object, not a grid. */
  .carousel {
    --card: clamp(132px, 35vw, 185px);
    --r: clamp(148px, 40vw, 236px);
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .toc ol {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .faq summary {
    gap: 1rem;
  }

  .faq__i {
    width: 1.5rem;
  }

  .faq__body p {
    padding-inline: 1.75rem 1rem;
  }
}

@media (max-width: 560px) {
  /* Below this width the hero and method sections drop to a single column,
     so the device stacks under a full text block instead of sitting beside
     it — full-size (264px, ~550px tall) that makes the hero run to 1.5+
     screens before anything else is visible. Shrinking it here is what
     actually keeps those sections from sprawling. */
  .device {
    width: min(58%, 220px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  /* Stacked and centred rather than stretched at narrow widths. */
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    min-width: 220px;
  }

  .platform-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Stacked, the separators would land at the start of a line */
  .assurances {
    flex-direction: column;
    gap: 0.5rem;
  }

  .assurances li + li::before {
    display: none;
  }

  /* At phone width the ring is nearly edge-on, so it flattens to a stack. */
  .carousel__ring {
    grid-template-columns: 1fr;
    max-width: 240px;
    margin-inline: auto;
  }

  .carousel {
    --card: 151px;
    --r: 132px;
  }
}

@media (max-width: 400px) {
  .legal-body {
    padding: 1.25rem;
  }

  .toc {
    padding: 1rem 1.125rem;
  }
}

@media (max-width: 380px) {
  .header .container {
    gap: 0.625rem;
  }

  .brand {
    min-width: 0;
  }

  /* The mark alone carries the header at this width; the footer's plain
     label isn't competing with a CTA, so it stays visible there. */
  .header .brand__wordmark {
    display: none;
  }

  .header-actions .btn--start {
    padding-inline: 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   23. Reduced motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-split] .word > span {
    opacity: 1;
    translate: none;
  }

  .rule {
    scale: 1 1;
  }

  .device {
    transform: none !important;
  }
}

@media print {
  body::before,
  body::after,
  .header,
  .mobile-nav,
  .footer,
  .to-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .legal-body {
    border: none;
    background: none;
    padding: 0;
  }

  .legal-body p,
  .legal-body li,
  .legal-body strong {
    color: #000;
  }
}
