/* =========================================================================
   style.css — the only stylesheet; mobile-first, vanilla CSS, no inline styles.

   BRAND TOKENS live in the :root block directly below and are the ONLY part
   of this file a build edits. Everything after the tokens is layout and is
   shared by every product on this template. Colours, fonts, radii and shadows
   come from the design source (Figma / quiz / design system) or, failing that,
   from the brand file's theme defaults.
   ========================================================================= */

/* ------------------------------------------------------- BRAND TOKENS (edit) */
:root {
  /* Colour — from the live quiz design system (pelvatone.css / tokens.css) */
  --bg: #F7F5F1;             /* page — q-surface-page */
  --bg-alt: #FFFFFF;         /* cards — q-surface-card */
  --surface: #EDE7DE;        /* nav, inset bands, "never" column — q-surface-panel */
  --well: #F0E9DF;           /* image wells — q-surface-sand */
  --tile: #E5E9E9;           /* icon tiles — q-surface-problem (cool grey-teal) */
  --bg-dark: #0A2029;        /* CTA band, footer — q-surface-invert */
  --text: #1B2B31;           /* q-ink */
  --text-muted: rgba(27, 43, 49, 0.68);
  --text-faint: rgba(27, 43, 49, 0.55);
  --text-inverse: #F7F5F1;
  --primary: #0E4D64;        /* buttons, brand, "always" column — q-brand */
  --primary-hover: #0A3A4C;  /* q-brand-hi */
  --accent: #A5581F;         /* pills, links, eyebrows — q-accent-ink (amber, text-safe) */
  --accent-deep: #0A2029;    /* card titles, hover — q-ink-heading */
  --highlight: #E08A4C;      /* floating badge, stars — q-accent */
  --highlight-soft: #FAEEE2; /* badge icon well — q-accent-wash / q-good-soft */
  --border: #DED5C9;         /* hairlines, card borders — q-line */
  --why-gradient: linear-gradient(158deg, #123340 0%, #0E4D64 46%, #0A2029 100%);

  /* Type — the quiz ships the system stack; no webfont loaded */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);      /* headings; the quiz has no serif slot */
  --pill-font: var(--sans);
  --fs-hero: clamp(2rem, 7vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 5.5vw, 1.75rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-small: 0.875rem;
  --lh-body: 1.5;
  --lh-lead: 1.625;
  --lh-tight: 1.2;

  /* Radii — q-r-12 / q-r-16, pill 999 */
  --r-card: 16px;
  --r-btn: 999px;
  --r-img: 16px;
  --r-tile: 12px;
  --r-pill: 9999px;

  /* Effects — q-lift-* */
  --shadow-nav: 0 1px 2px rgba(10, 32, 41, 0.06);
  --shadow-card: 0 1px 2px rgba(10, 32, 41, 0.06);
  --shadow-card-hover: 0 4px 14px rgba(10, 32, 41, 0.10);
  --shadow-media: 0 18px 48px -20px rgba(10, 32, 41, 0.28), 0 4px 14px rgba(10, 32, 41, 0.10);
  --shadow-float: 0 4px 14px rgba(10, 32, 41, 0.10);
  --shadow-lift: 0 4px 14px rgba(10, 32, 41, 0.10);
  --shadow-cta: 0 4px 14px rgba(14, 77, 100, 0.24);
  --ring: 0 0 0 3px rgba(14, 77, 100, 0.34);
}
/* ---------------------------------------------------- END BRAND TOKENS */

/* ---------------------------------------------------------- layout tokens */
:root {
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 6rem;
  --container: 1200px;
  --gutter: clamp(1.5rem, 5vw, 2rem);
  --section-y: clamp(3.25rem, 8vw, 6.5rem);
  --header-h: 68px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Sticky footer: keep the footer at the bottom on short pages (legal). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

/* Scroll reveal — only active when JS adds .js-reveal (and motion is allowed). */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
button { font: inherit; }

/* --------------------------------------------------------------- headings */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 800; line-height: var(--lh-tight);
  letter-spacing: -0.01em; color: var(--text);
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; color: var(--accent-deep); }

p { max-width: 65ch; text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--text-muted); }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-small);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 0.5rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--inverse { color: rgba(255, 255, 255, 0.6); }

.disclaimer {
  font-size: var(--fs-small); color: var(--text-faint);
  max-width: 52ch; margin: var(--sp-5) auto 0; text-align: center;
}

/* ---------------------------------------------------------------- layout */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); }
.section__head { max-width: 44rem; margin-inline: auto; text-align: center; margin-bottom: var(--sp-6); }
.section__head p { margin-inline: auto; margin-top: var(--sp-3); }
.section__title { margin-top: 0.1em; }
.foundation-preview { padding-block: var(--section-y); text-align: center; }
.foundation-preview .lead { margin-inline: auto; }

/* ----------------------------------------------------------- skip / focus */
.skip-link {
  position: absolute; left: 50%; transform: translate(-50%, -120%);
  top: 0; z-index: 1000; background: var(--bg-dark); color: var(--text-inverse);
  padding: 0.6rem 1rem; border-radius: 0 0 var(--r-btn) var(--r-btn); text-decoration: none;
  transition: transform 0.15s ease;
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--text-inverse); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.5;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  border-radius: var(--r-btn); padding: 16px 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn--primary {
  background: var(--primary); color: #fff; box-shadow: var(--shadow-cta);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--accent {
  background: var(--highlight); color: var(--bg-dark); box-shadow: 0 8px 22px rgba(224, 138, 76, 0.28);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.btn--accent:hover { background: #E9975E; color: var(--bg-dark); }
.btn--lg { min-height: 56px; padding: 16px 32px; }
.btn--sm { padding: 10px 18px; font-size: var(--fs-small); text-transform: none; letter-spacing: 0; background: var(--primary); color: #fff; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------ pill / badge */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--accent); color: #fff;
  border-radius: var(--r-pill); padding: 4px 16px;
  font-family: var(--pill-font); font-size: 0.75rem; font-weight: 600;
  line-height: 16px; text-transform: uppercase; letter-spacing: 0.02em;
}
.pill__icon { width: 16px; height: 16px; }
.pill--outline { background: transparent; color: var(--highlight); border: 1px solid color-mix(in srgb, var(--highlight) 55%, transparent); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); box-shadow: var(--shadow-nav);
}
.site-header__inner { display: flex; align-items: center; gap: var(--sp-3); height: var(--header-h); }

/* Brand lockup — logo image when present, live-text wordmark otherwise. */
.brand {
  order: 0; margin-right: auto; display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; flex: 0 1 auto; min-width: 0;
}
.brand__logo { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.brand__word {
  font-family: var(--serif); font-weight: 800; font-size: 1.5rem; line-height: 1;
  letter-spacing: 0.01em; color: var(--accent-deep); white-space: nowrap;
}
.brand--inverse .brand__word { color: var(--text-inverse); }

/* Header CTA hidden on mobile (logo + burger only); the hero CTA is one
   screen away, so the conversion path is never lost. */
.site-header__cta { display: none; order: 1; padding: 10px 18px; font-size: var(--fs-small); min-height: 0; }

/* Nav — native <details> so it opens with JS off. */
.nav { position: relative; order: 2; }
.nav__toggle {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5em;
  padding: 8px; border-radius: 8px; color: var(--text);
}
.nav__toggle::-webkit-details-marker { display: none; }
.nav__toggle-text { display: none; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }
.nav__panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 20;
  min-width: 15rem; padding: var(--sp-3);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-lift);
}
.nav__links { display: grid; gap: 2px; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
.nav__link:hover { background: var(--surface); color: var(--accent-deep); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 0; position: relative; }
.hero__band {
  background: var(--bg-dark); color: var(--text-inverse);
  padding: var(--sp-6) 0 calc(var(--sp-7) + 18vw);
  position: relative; overflow: hidden;
}
.hero__band::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--primary) 70%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.hero__copy {
  position: relative; z-index: 1;
  display: grid; gap: var(--sp-3); justify-items: center; text-align: center;
  max-width: 46rem;
}
.hero__headline { color: var(--text-inverse); margin-top: 0.2em; max-width: 18ch; }
.hero__accent { display: block; font-style: normal; color: var(--highlight); font-weight: 600; font-size: 0.62em; margin-top: 0.45em; letter-spacing: 0; }
.hero__lead { color: color-mix(in srgb, var(--text-inverse) 74%, transparent); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 40rem; }
.hero__actions { display: grid; justify-items: center; gap: var(--sp-3); margin-top: var(--sp-2); }
.hero__link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; text-decoration: none; color: color-mix(in srgb, var(--text-inverse) 80%, transparent);
}
.hero__link:hover { color: var(--highlight); }
.hero__link-icon { width: 18px; height: 18px; }

.hero__stage { position: relative; z-index: 2; margin-top: calc(-1 * (var(--sp-5) + 18vw)); display: grid; gap: var(--sp-3); }
.hero__media {
  position: relative; margin: 0; border-radius: var(--r-img); overflow: hidden;
  background: var(--well); box-shadow: var(--shadow-media);
}
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__badge {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--sp-1);
  max-width: min(18rem, calc(100% - 2 * var(--sp-3)));
  background: var(--bg-dark); color: var(--text-inverse);
  border-radius: var(--r-pill); padding: 6px 14px 6px 6px;
}
.hero__badge-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  background: var(--highlight); color: var(--bg-dark);
}
.hero__badge-icon .icon { width: 18px; height: 18px; }
.hero__badge-text { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: var(--text-inverse); max-width: none; }

.hero__signals {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-alt); overflow: hidden;
}
.hero__signal {
  display: flex; align-items: center; gap: 0.6em; padding: var(--sp-3);
  font-size: var(--fs-small); font-weight: 500; color: var(--text-muted);
}
.hero__signal + .hero__signal { border-left: 1px solid var(--border); }
.hero__signal-icon { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

/* ------------------------------------------------------------ how it works */
.how__inner { display: grid; gap: var(--sp-5); }
.how__head { max-width: 44rem; margin-inline: auto; text-align: center; }
.how__head .eyebrow { justify-content: center; }
.how__head .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.how__head .lead { margin-top: var(--sp-3); margin-inline: auto; }
.stepper { display: grid; }
.stepper__item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--sp-3); padding-bottom: var(--sp-5); }
.stepper__item:last-child { padding-bottom: 0; }
.stepper__item::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--highlight) 60%, transparent), color-mix(in srgb, var(--highlight) 15%, transparent));
}
.stepper__item:last-child::before { display: none; }
.stepper__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 2px solid var(--highlight); color: var(--accent); font-weight: 700; background: var(--bg);
  position: relative; z-index: 1;
}
.stepper__body { padding-top: 6px; }
.stepper__title { margin-bottom: 0.35rem; color: var(--accent-deep); }
.stepper__text { color: var(--text-muted); }

/* ------------------------------------------------------------- discover */
.discover { background: var(--well); }
.discover__inner { display: grid; gap: var(--sp-5); }
.discover__head { max-width: 40rem; }
.discover__head .lead { margin-top: var(--sp-3); }
.discover__media { border-radius: var(--r-img); overflow: hidden; background: var(--surface); }
.discover__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.index { display: grid; border-top: 1px solid var(--line-strong, #8B8478); }
.index__row {
  display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: start; gap: var(--sp-3);
  padding: var(--sp-4) 0; border-bottom: 1px solid var(--border);
}
.index__num { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.5; }
.index__body { display: grid; gap: 4px; min-width: 0; }
.index__title { font-size: var(--fs-h3); font-weight: 700; color: var(--accent-deep); line-height: 1.3; }
.index__text { color: var(--text-muted); }
.index__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--primary); background: var(--bg-alt); }
.index__icon .icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------- why */
.why__inner { display: grid; gap: var(--sp-5); }
.why__media { width: min(100%, 22rem); margin-inline: auto; }
.why__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--r-img) var(--r-img); }
.why__copy { display: grid; gap: var(--sp-3); align-content: center; }
.why__lead { margin-top: 0; }
.claims { display: grid; gap: var(--sp-4); margin-top: var(--sp-3); }
.claim { border-top: 2px solid var(--highlight); padding-top: var(--sp-2); display: grid; gap: 4px; }
.claim__idx { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.claim__text { color: var(--text); font-weight: 500; }

/* ----------------------------------------------------------------- about */
.about { background: var(--bg-dark); color: var(--text-inverse); }
.about__inner { display: grid; justify-items: center; text-align: center; gap: var(--sp-3); max-width: 44rem; }
.about__media { width: min(100%, 20rem); border-radius: var(--r-img); overflow: hidden; background: rgba(255,255,255,0.06); margin-bottom: var(--sp-2); }
.about__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__title { color: var(--text-inverse); max-width: 22ch; }
.about__copy { display: grid; gap: var(--sp-3); }
.about__copy p { color: color-mix(in srgb, var(--text-inverse) 76%, transparent); }
.about__company {
  margin-top: var(--sp-3); padding: var(--sp-2) var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--highlight) 55%, transparent); border-radius: var(--r-tile);
  font-size: var(--fs-small); color: var(--text-inverse);
}

/* ---------------------------------------------------------------- promise */
.promise { background: var(--surface); }
.ledger { display: grid; border: 1px solid var(--line-strong, #8B8478); border-radius: var(--r-card); background: var(--bg); overflow: hidden; }
.ledger__col { padding: var(--sp-4); }
.ledger__col + .ledger__col { border-top: 1px solid var(--border); }
.ledger__title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: var(--sp-3); color: var(--text-faint);
}
.ledger__col--always .ledger__title { color: var(--primary); }
.ledger__list { display: grid; gap: var(--sp-2); }
.ledger__item { display: flex; align-items: flex-start; gap: 0.7em; color: var(--text-muted); }
.ledger__col--always .ledger__item { color: var(--text); font-weight: 500; }
.ledger__mark { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.ledger__mark--no { position: relative; color: var(--highlight); }
.ledger__mark--no::before, .ledger__mark--no::after {
  content: ""; position: absolute; top: 10px; left: 3px; width: 16px; height: 2px;
  background: currentColor; border-radius: 2px;
}
.ledger__mark--no::before { transform: rotate(45deg); }
.ledger__mark--no::after { transform: rotate(-45deg); }
.ledger__mark--yes { display: grid; place-items: center; border-radius: var(--r-pill); background: var(--primary); color: #fff; }
.ledger__mark--yes .icon { width: 12px; height: 12px; stroke-width: 3; }

.assurances { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }
.assurance__link {
  display: inline-flex; align-items: center; gap: 0.5em; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg-alt);
  font-size: var(--fs-small); color: var(--text-muted); text-decoration: none;
}
.assurance__link:hover { color: var(--accent-deep); border-color: var(--line-strong, #8B8478); }
.assurance__icon { width: 16px; height: 16px; color: var(--primary); flex: 0 0 auto; }

/* ------------------------------------------------------------ testimonials */
.quotes { display: grid; gap: var(--sp-4); }
.quote {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--sp-4); display: grid; gap: var(--sp-2); align-content: start;
}
.quote__stars { display: flex; gap: 2px; }
.quote__star { width: 16px; height: 16px; color: var(--highlight); fill: var(--highlight); }
.quote__title { color: var(--accent-deep); }
.quote__body p { color: var(--text-muted); }
.quote__by { display: flex; align-items: center; gap: 0.65em; margin-top: var(--sp-1); }
.quote__monogram { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: var(--r-pill); background: var(--primary); color: #fff; font-weight: 700; }
.quote__meta { display: grid; line-height: 1.3; }
.quote__author { font-weight: 600; font-size: 0.9375rem; }
.quote__place { font-size: 0.8125rem; color: var(--text-faint); }

/* ------------------------------------------------------------------- faq */
.accordion { max-width: 46rem; margin-inline: auto; display: grid; border-top: 1px solid var(--line-strong, #8B8478); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding: var(--sp-3) 0; font-weight: 700; color: var(--accent-deep);
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__chevron {
  flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg); transform-origin: center;
  transition: transform 0.2s ease; margin-top: -4px;
}
.accordion__item[open] .accordion__chevron { transform: rotate(225deg); margin-top: 2px; }
.accordion__a { padding: 0 0 var(--sp-3); }
.accordion__a p { color: var(--text-muted); }

/* ------------------------------------------------------------------- cta */
.cta { padding-top: 0; }
.cta__card {
  background: var(--primary); color: var(--text-inverse); border-radius: var(--r-card);
  padding: var(--sp-6) var(--sp-4); display: grid; gap: var(--sp-3); justify-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.cta__card::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 50%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--highlight) 22%, transparent) 0%, transparent 68%); pointer-events: none;
}
.cta__card > * { position: relative; }
.cta__title { color: var(--text-inverse); max-width: 20ch; }
.cta__lead { color: color-mix(in srgb, var(--text-inverse) 78%, transparent); }
.cta .btn { margin-top: var(--sp-2); }
.cta__note { font-size: var(--fs-small); color: color-mix(in srgb, var(--text-inverse) 62%, transparent); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--bg-dark); color: var(--text-inverse); }
.site-footer__inner { display: grid; gap: var(--sp-5); padding-block: var(--sp-6); }
.site-footer__tagline { color: color-mix(in srgb, var(--text-inverse) 70%, transparent); font-size: var(--fs-small); margin-top: var(--sp-3); }
.site-footer__heading {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text-inverse) 55%, transparent); margin-bottom: var(--sp-2);
}
.site-footer__nav ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__nav a { color: var(--text-inverse); text-decoration: none; font-size: 0.9375rem; opacity: 0.85; }
.site-footer__nav a:hover { color: var(--highlight); opacity: 1; }
.site-footer__bar { border-top: 1px solid color-mix(in srgb, var(--text-inverse) 12%, transparent); }
.site-footer__bar-inner { display: grid; gap: var(--sp-3); padding-block: var(--sp-4); }
.site-footer__disclaimer { font-size: 0.8125rem; line-height: 1.55; color: color-mix(in srgb, var(--text-inverse) 60%, transparent); max-width: 70ch; }
.site-footer__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.site-footer__copy { font-size: 0.8125rem; color: color-mix(in srgb, var(--text-inverse) 55%, transparent); max-width: none; }

.social { margin-top: var(--sp-3); }
.social__list { display: flex; gap: var(--sp-2); }
.social__link {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--text-inverse) 12%, transparent); color: var(--text-inverse);
}
.social__link:hover { background: var(--highlight); color: var(--bg-dark); }
.social__icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------ lang switch */
.lang-switch__list { display: flex; gap: 0.35rem; flex-wrap: wrap; list-style: none; padding: 0; }
.lang-switch__link { display: inline-block; padding: 5px 10px; border-radius: var(--r-pill); font-size: 0.8125rem; text-decoration: none; color: inherit; opacity: 0.7; }
.lang-switch__link:hover, .lang-switch__link.is-active { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.lang-switch--footer .lang-switch__link:hover,
.lang-switch--footer .lang-switch__link.is-active { background: color-mix(in srgb, var(--text-inverse) 12%, transparent); }
.lang-switch--header { margin-top: var(--sp-2); padding-top: var(--sp-2); border-top: 1px solid var(--border); }

/* ------------------------------------------------------------- cookie bar */
.cookie-bar {
  position: fixed; left: var(--sp-3); right: var(--sp-3); bottom: var(--sp-3); z-index: 200;
  max-width: 40rem; margin-inline: auto;
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r-tile);
  padding: var(--sp-3); box-shadow: var(--shadow-lift);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar__text { font-size: var(--fs-small); color: var(--text-muted); flex: 1 1 16rem; max-width: none; }
.cookie-bar__ok { flex: 0 0 auto; }

/* ----------------------------------------------------------- legal pages */
.legal { padding-block: var(--section-y); }
.legal__inner { max-width: 48rem; margin-inline: auto; }
.legal__title { margin-bottom: var(--sp-2); }
.legal__updated { font-size: var(--fs-small); color: var(--text-faint); margin-bottom: var(--sp-5); }
.legal__body h2 { font-size: 1.375rem; margin-top: var(--sp-5); margin-bottom: var(--sp-2); color: var(--accent-deep); }
.legal__body h3 { font-size: 1.075rem; margin-top: var(--sp-4); margin-bottom: var(--sp-1); }
.legal__body h4 { font-size: 1rem; margin-top: var(--sp-3); margin-bottom: var(--sp-1); }
.legal__body p, .legal__body li { color: var(--text-muted); }
.legal__body a { overflow-wrap: anywhere; }
.legal__body p { margin-bottom: var(--sp-2); max-width: none; }
.legal__body ul, .legal__body ol { margin: 0 0 var(--sp-3); padding-left: 1.25rem; }
.legal__body li { margin-bottom: 0.4rem; }
.legal__body address { font-style: normal; color: var(--text-muted); }
.table-wrap { overflow-x: auto; margin-bottom: var(--sp-3); -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.875rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { font-weight: 700; background: var(--surface); white-space: nowrap; }
.table-wrap td { color: var(--text-muted); }

/* ------------------------------------------------------------ placeholder */
.img--placeholder { width: 100%; height: auto; }

/* Grid and flex items default to min-width:auto, which for a replaced element
   resolves to its *intrinsic* width — and the image slots are declared at
   1200px+ so they don't shift layout once real art lands. Without this the
   track refuses to shrink and the whole page scrolls sideways on mobile.
   Add any new image-bearing grid/flex child here. */
.hero__stage > *,
.hero__media > *,
.hero__signals > *,
.how__inner > *,
.stepper__item > *,
.discover__inner > *,
.index__row > *,
.why__inner > *,
.why__copy > *,
.about__inner > *,
.ledger > *,
.ledger__col > *,
.quotes > * { min-width: 0; }

/* =========================================================================
   Breakpoints — per-component, min-width. Each section widens at the point
   its own layout breaks.
   ========================================================================= */

@media (min-width: 560px) {
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .claims { grid-template-columns: 1fr 1fr; }
  .ledger { grid-template-columns: 1fr 1fr; }
  .ledger__col + .ledger__col { border-top: 0; border-left: 1px solid var(--border); }
}

@media (min-width: 720px) {
  :root {
    --fs-hero: clamp(2.75rem, 4.6vw, 3.75rem);
    --fs-h2: clamp(1.9rem, 3.2vw, 2.6rem);
    --fs-h3: 1.25rem;
    --fs-lead: 1.1875rem;
  }
  .section__head { max-width: 46rem; margin-bottom: var(--sp-7); }
  .btn--lg { min-height: 60px; padding: 18px 36px; font-size: 1.0625rem; }

  .hero__band { padding: var(--sp-7) 0 calc(var(--sp-8) + 9vw); }
  .hero__copy { gap: var(--sp-4); }
  .hero__actions { grid-auto-flow: column; align-items: center; gap: var(--sp-4); }
  .hero__stage { margin-top: calc(-1 * (var(--sp-6) + 9vw)); gap: var(--sp-4); }
  .hero__img { aspect-ratio: 16 / 9; }
  .hero__badge { left: var(--sp-4); bottom: var(--sp-4); }
  .hero__signals { width: min(100%, 40rem); margin-inline: auto; }
  .hero__signal { padding: var(--sp-3) var(--sp-4); justify-content: center; }

  .how__inner { gap: var(--sp-6); }
  /* Three-up on desktop: ring on top, one horizontal rail running through the rings. */
  .stepper { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .stepper__item { grid-template-columns: 1fr; gap: var(--sp-3); padding-bottom: 0; text-align: center; justify-items: center; }
  .stepper__item::before {
    left: calc(50% + 32px); right: calc(-50% - var(--sp-5) + 32px); top: 23px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--highlight) 60%, transparent), color-mix(in srgb, var(--highlight) 15%, transparent));
  }
  .stepper__item:last-child::before { display: none; }
  .stepper__num { width: 48px; height: 48px; font-size: 1.125rem; }
  .stepper__body { padding-top: 0; max-width: 22rem; }
  .stepper__text { margin-inline: auto; }

  .discover__media { border-radius: var(--r-card); }
  .discover__img { aspect-ratio: 21 / 9; }
  .index__row { grid-template-columns: 4rem 1fr auto; gap: var(--sp-4); padding: var(--sp-4) var(--sp-2); }
  .index__num { font-size: 1.25rem; }
  .index__body { grid-template-columns: 0.6fr 1fr; gap: var(--sp-4); align-items: start; }
  .index__icon { width: 44px; height: 44px; }

  .why__inner { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-7); align-items: center; }
  .why__media { width: min(100%, 26rem); }

  .about { padding-block: var(--sp-8); }
  .about__media { width: min(100%, 24rem); }

  .ledger__col { padding: var(--sp-5); }

  .cta__card { padding: var(--sp-8) var(--sp-6); }

  .site-footer__inner { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-5); }
}

@media (min-width: 900px) {
  /* Nav goes inline; the disclosure panel becomes a plain row. Both hide
     mechanisms are covered so the nav stays reachable with JS off. */
  .nav { order: 1; }
  .site-header__cta { display: inline-flex; order: 2; }
  .nav__toggle { display: none; }
  .nav::details-content { content-visibility: visible; block-size: auto; }
  .nav__panel { position: static; display: flex; align-items: center; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav__links { display: flex; gap: var(--sp-1); }
  .nav__link { padding: 8px 12px; font-size: 0.9375rem; }
  .lang-switch--header { margin: 0 0 0 var(--sp-2); padding: 0; border: 0; }

  .quotes { grid-template-columns: repeat(3, 1fr); }
  .site-header__cta { padding: 12px 20px; }
}

/* Small-phone fixes — 320px is not comfortable by default. */
@media (max-width: 380px) {
  .brand__word { font-size: 1.25rem; }
  .brand__logo { height: 30px; }
  .cookie-bar { left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2); }
  .hero__badge-text { font-size: 0.75rem; }
}
