/*
 * Tredit Stack, landing concept C: "The Platform Tour".
 * Shared styles: tokens, base, header, buttons and the static sections.
 * The pinned tour and the Deal Signal stage live in story.css.
 *
 * Light is the default theme; dark is the visitor's choice through the
 * toggle (theme.js sets data-theme before first paint). Sections marked
 * .on-stage are navy in both themes.
 *
 * Colour rules: copper #B8733F is for fills, hairlines and large numerals;
 * --copper-text is the AA shade for small copper text. Gold #E2A24A is the
 * logo square and the foil, and the primary button on navy. No inline
 * styles: runtime values go through el.style.setProperty.
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/landing/d/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/landing/d/fonts/fraunces-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/landing/d/fonts/manrope-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/landing/d/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */

:root {
  --paper: #fbfaf7;
  --paper-2: #f4f0e8;
  --surface: #ffffff;
  --ink: #1a1f2e;
  --ink-2: #3a4052;
  --ink-3: #5c6170;
  --rule: #e8e1d4;
  --rule-2: #d6ccba;
  --navy: #0b1b36;
  --navy-2: #08142a;
  --navy-3: #050d1c;
  --copper: #b8733f;
  --copper-text: #8f5a2e;
  --copper-wash: #f6ebdd;
  --gold: #e2a24a;
  --champagne: #e8cdae;
  --success: #3f7a5c;
  --warn: #a0492f;
  --btn: #0b1b36;
  --btn-hover: #16294a;
  --btn-ink: #faf7f2;
  --focus: #b8733f;
  --logo: #051833;
  --shadow: 0 1px 0 rgb(26 31 46 / 0.04), 0 22px 44px -26px rgb(26 31 46 / 0.32);
  --glass-fill: rgb(255 255 255 / 0.78);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 0 0 1px rgb(26 31 46 / 0.07);
  --glass-drop: 0 24px 48px -26px rgb(26 31 46 / 0.4), 0 2px 6px -2px rgb(26 31 46 / 0.1);
  --foil: linear-gradient(135deg, #8f5a2e 0%, #e2a24a 26%, #f3d9a4 47%, #e2a24a 63%, #b8733f 82%, #8f5a2e 100%);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gx: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  color-scheme: light;
}

/* Explicit light alias so a single data-theme attribute drives landing D and the
   platform preview the same way. Light is the implicit default too, so this
   selector is an alias of the :root block above (restyle spec §18.6 "bridge
   selectors"). */
:root[data-theme='light'] {
  --paper: #fbfaf7;
  --paper-2: #f4f0e8;
  --surface: #ffffff;
  --ink: #1a1f2e;
  --ink-2: #3a4052;
  --ink-3: #5c6170;
  --rule: #e8e1d4;
  --rule-2: #d6ccba;
  --copper-text: #8f5a2e;
  --copper-wash: #f6ebdd;
  --btn: #0b1b36;
  --btn-hover: #16294a;
  --btn-ink: #faf7f2;
  --focus: #b8733f;
  --logo: #051833;
  --shadow: 0 1px 0 rgb(26 31 46 / 0.04), 0 22px 44px -26px rgb(26 31 46 / 0.32);
  --glass-fill: rgb(255 255 255 / 0.78);
  --card-bg: #ffffff;
  color-scheme: light;
}

/* OS-preference light path: honour prefers-color-scheme: light when the visitor
   has not explicitly chosen a theme (data-theme attribute not set to dark). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    --paper: #fbfaf7;
    --paper-2: #f4f0e8;
    --surface: #ffffff;
    --ink: #1a1f2e;
    --ink-2: #3a4052;
    --ink-3: #5c6170;
    --rule: #e8e1d4;
    --rule-2: #d6ccba;
    --copper-text: #8f5a2e;
    --copper-wash: #f6ebdd;
    --btn: #0b1b36;
    --btn-hover: #16294a;
    --btn-ink: #faf7f2;
    --focus: #b8733f;
    --logo: #051833;
    --shadow: 0 1px 0 rgb(26 31 46 / 0.04), 0 22px 44px -26px rgb(26 31 46 / 0.32);
    --glass-fill: rgb(255 255 255 / 0.78);
    --card-bg: #ffffff;
    color-scheme: light;
  }
}

/* Navy, in both themes: the Deal Signal stage, the Founding card and the close. */
.on-stage,
.top.on-ink,
.rail.on-ink,
[data-theme='dark'] {
  --paper: #0a1220;
  --paper-2: #0e1829;
  --surface: #121d31;
  --ink: #f3efe8;
  --ink-2: #cfc9bf;
  --ink-3: #a2a6b0;
  --rule: #1f2b42;
  --rule-2: #2f3d58;
  --copper-text: #e3a774;
  --copper-wash: #2a2018;
  --btn: #e2a24a;
  --btn-hover: #ecb565;
  --btn-ink: #1a1f2e;
  --focus: #e2a24a;
  --logo: #f3efe8;
  --shadow: 0 1px 0 rgb(0 0 0 / 0.3), 0 22px 48px -22px rgb(0 0 0 / 0.75);
  --glass-fill: rgb(18 29 49 / 0.72);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  --glass-drop: 0 28px 56px -24px rgb(0 0 0 / 0.8), 0 2px 8px -2px rgb(0 0 0 / 0.4);
  --card-bg: #121d31;
  color-scheme: dark;
}

/* Cream bands: in the dark theme these sections flip to the light palette, so the page
   is never all dark. .light-band is cream in both themes. */
[data-theme='dark'] .flip,
.light-band {
  --paper: #fbfaf7;
  --paper-2: #f4f0e8;
  --surface: #ffffff;
  --ink: #1a1f2e;
  --ink-2: #3a4052;
  --ink-3: #5c6170;
  --rule: #e8e1d4;
  --rule-2: #d6ccba;
  --copper-text: #8f5a2e;
  --copper-wash: #f6ebdd;
  --btn: #0b1b36;
  --btn-hover: #16294a;
  --btn-ink: #faf7f2;
  --focus: #b8733f;
  --logo: #051833;
  --shadow: 0 1px 0 rgb(26 31 46 / 0.04), 0 22px 44px -26px rgb(26 31 46 / 0.32);
  --glass-fill: rgb(255 255 255 / 0.78);
  --card-bg: #ffffff;
  color-scheme: light;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: var(--copper-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
[tabindex='-1']:focus {
  outline: none;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(2.45rem, 1.15rem + 3.1vw, 4.15rem);
  font-weight: 420;
  line-height: 1.01;
  letter-spacing: -0.022em;
}
.display .line {
  display: block;
}
.display .line + .line {
  font-style: italic;
  font-weight: 380;
  color: var(--copper-text);
}
.h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(1.85rem, 1.15rem + 1.9vw, 3rem);
  font-weight: 420;
  line-height: 1.06;
  letter-spacing: -0.018em;
  max-width: 21ch;
}
.h3 {
  font-family: var(--body);
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.8625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-text);
}
.kicker b {
  font-weight: 700;
  color: var(--ink);
}
.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--copper);
}
.lede,
.sub {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}
.body-2 {
  color: var(--ink-2);
  max-width: 60ch;
}
.fine {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 70ch;
}
.text-link {
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: 0 12px 26px -14px rgb(11 27 54 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 -2px 0 rgb(184 115 63 / 0.55);
}
.btn-primary:hover {
  background: var(--btn-hover);
}
.on-stage .btn-primary,
[data-theme='dark'] .btn-primary {
  box-shadow: 0 12px 30px -14px rgb(226 162 74 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-ghost-dark:hover {
  border-color: var(--ink-3);
  background: rgb(255 255 255 / 0.04);
}
.btn-ghost-dark svg {
  width: 14px;
  height: 14px;
}

/* The CTA block: lead-in, the real sign-up link, then nothing else. */
.cta-block {
  display: grid;
  justify-items: start;
  gap: 10px;
}
.cta-lead {
  font-weight: 650;
  color: var(--ink);
}
.founding-line,
.counter {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.founding-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}
.founding-line a {
  font-weight: 700;
  white-space: nowrap;
}
.counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.counter::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgb(226 162 74 / 0.18);
}

/* ---------- Header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgb(251 250 247 / 0.82);
  border-bottom: 1px solid rgb(26 31 46 / 0.06);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
@media (pointer: fine) {
  .top {
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}
.top.on-ink,
[data-theme='dark'] .top {
  background: rgb(8 20 42 / 0.8);
  border-bottom-color: rgb(255 255 255 / 0.06);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}
/* The Branding Kit lockup: "by Tredit" sits below "The Credit Stack", right-aligned to its end. */
.brand .logo {
  width: auto;
  height: 46px;
  aspect-ratio: 545 / 129;
  color: var(--logo);
}
.lk-by {
  fill: currentColor;
}
.lk-by1 {
  font-family: var(--body);
  font-weight: 500;
  fill-opacity: 0.72;
}
.lk-by2 {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-dark {
  display: none !important;
}
.on-ink .logo-light,
.on-stage .logo-light,
[data-theme='dark'] .logo-light {
  display: none !important;
}
.on-ink .logo-dark,
.on-stage .logo-dark,
[data-theme='dark'] .logo-dark {
  display: block !important;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: 8px;
}
.nav a {
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--copper);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.signin {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.signin:hover {
  text-decoration: underline;
  text-decoration-color: var(--copper);
}
/* Tredit's LinkedIn page: a round icon link in the header, a labelled link in the footer. */
.top-li {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.top-li svg {
  width: 17px;
  height: 17px;
}
.top-tredit img {
  width: auto;
  height: 17px;
}
.top-li:hover {
  border-color: var(--copper);
  color: var(--copper-text);
}
.top-join {
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.18s ease;
}
.top.hide-join .top-join {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
@media (max-width: 1060px) {
  .nav {
    display: none;
  }
}
@media (max-width: 560px) {
  :root {
    --header-h: 60px;
  }
  .brand .logo {
    height: 40px;
  }
  .signin {
    display: none;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width: 380px) {
  .top-li {
    width: 34px;
    height: 34px;
  }
  .top-actions {
    gap: 7px;
  }
}

/* The header's "Join free" opens this panel: the real link. */
.join-pop {
  position: fixed;
  inset: auto;
  top: calc(var(--header-h) + 8px);
  right: var(--gutter);
  width: min(340px, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--glass-drop);
}
.join-pop:popover-open {
  display: grid;
  gap: 12px;
}
/* Browsers without popovers: the panel stays hidden and the header button
   takes the visitor to the final sign-up block instead (landing.js). */
@supports not selector(:popover-open) {
  .join-pop {
    display: none;
  }
}
.jp-lead {
  font-weight: 650;
  line-height: 1.45;
}

/* ---------- Sections ---------- */

.sec {
  position: relative;
  padding-block: clamp(76px, 10vw, 136px);
}
.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.sec-head .kicker {
  margin-bottom: 0;
}
.close-line {
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  max-width: 40ch;
}
.ex {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.motion .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--success);
  animation: ping 2.4s var(--ease) 6;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Comparison ---------- */

.cmp {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9688rem;
}
.cmp th,
.cmp td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.cmp thead th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--rule-2);
}
.cmp tbody th {
  width: 26%;
  font-weight: 700;
  color: var(--ink);
}
.cmp td {
  width: 28%;
  color: var(--ink-3);
}
.cmp .us {
  width: 46%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.cmp thead .us {
  color: var(--copper-text);
  border-top: 2px solid var(--copper);
  border-top-left-radius: var(--r-m);
  border-top-right-radius: var(--r-m);
}
.cmp tbody tr:last-child .us {
  border-bottom-left-radius: var(--r-m);
  border-bottom-right-radius: var(--r-m);
  box-shadow: 0 24px 40px -30px rgb(26 31 46 / 0.4);
}
.cmp td.us svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 10px -2px 0;
  color: var(--copper);
}
.cmp .honest td.us {
  color: var(--ink-3);
  font-weight: 500;
}
.cmp-note {
  margin-top: 18px;
}
@media (max-width: 760px) {
  .cmp thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cmp,
  .cmp tbody,
  .cmp tr,
  .cmp th,
  .cmp td {
    display: block;
    width: 100%;
  }
  .cmp tr {
    margin-bottom: 12px;
    border: 1px solid var(--rule);
    border-radius: var(--r-m);
    background: var(--surface);
    overflow: hidden;
  }
  .cmp tbody th {
    width: 100%;
    padding: 14px 16px 6px;
    border: 0;
  }
  .cmp td,
  .cmp .us {
    width: 100%;
    padding: 6px 16px;
    border: 0;
    background: transparent;
  }
  .cmp td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .cmp td.us {
    padding-bottom: 14px;
  }
  .cmp tbody tr:last-child .us {
    box-shadow: none;
  }
}
/* ---------- FAQ ---------- */

.faq {
  background: var(--paper-2);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-main .h2 {
  margin-bottom: 32px;
}
.faq-group + .faq-group {
  margin-top: 34px;
}
.fg-h {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-text);
}
.qa {
  border-bottom: 1px solid var(--rule);
}
.qa summary {
  position: relative;
  padding: 18px 44px 18px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.0313rem;
  color: var(--ink);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.qa[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}
.qa-body {
  padding: 0 0 20px;
  color: var(--ink-2);
  max-width: 68ch;
}
.ask-card {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink-2);
}
.ask-card .h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 450;
  color: var(--ink);
}
.mail {
  font-weight: 750;
  word-break: break-word;
}
@media (max-width: 900px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ask-card {
    position: static;
  }
}
/* ---------- Footer ---------- */

.foot {
  padding-block: 56px 120px;
  border-top: 1px solid var(--rule);
}
.foot-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
}
.foot .brand-v .logo {
  width: auto;
  height: 132px;
  aspect-ratio: 358 / 317;
}
.foot-legal {
  display: grid;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.8438rem;
  line-height: 1.55;
  max-width: 72ch;
}
.foot-links {
  display: grid;
  gap: 8px;
  justify-items: start;
  font-size: 0.875rem;
}
.foot-links a {
  font-weight: 650;
}
.foot-li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.foot-li svg {
  width: 16px;
  height: 16px;
}
.foot-li img {
  width: auto;
  height: 16px;
}
@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
/* ---------- Mobile sticky bar ---------- */

.sticky-cta {
  display: none;
}
@media (max-width: 760px) {
  .sticky-cta {
    position: fixed;
    left: 8px;
    right: 8px;
    /* --sc-consent-h: the height of the cookie banner while it is open (set by /tracking/consent.js), so this bar sits above it, never under it. */
    bottom: calc(8px + var(--sc-consent-h, 0px) + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-height: 56px;
    padding: 6px 8px 6px 16px;
    border-radius: 16px;
    background: var(--glass-fill);
    box-shadow: var(--glass-edge), var(--glass-drop);
    transform: translateY(140%);
    transition: transform 0.4s var(--ease);
  }
  .sticky-cta:not(.is-shown) {
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .sticky-cta.is-shown {
    transform: none;
  }
  .sc-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.3;
    color: var(--ink);
  }
  .sticky-cta .btn {
    min-height: 40px;
    white-space: nowrap;
  }
  .foot {
    padding-bottom: 100px;
  }
}
@media (max-width: 760px) and (pointer: fine) {
  .sticky-cta {
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}
@media (max-width: 760px) {
  .sticky-cta {
    background: rgb(251 250 247 / 0.94);
  }
  [data-theme='dark'] .sticky-cta {
    background: rgb(14 24 41 / 0.95);
  }
}
/* ---------- Reveal on scroll (static sections) ---------- */
/* Each block rises once, its items a beat apart. Nothing loops. */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.motion .ladder[data-reveal],
.motion .who-grid[data-reveal],
.motion .plan-grid[data-reveal],
.motion .steps[data-reveal],
.motion .timeline[data-reveal] {
  opacity: 1;
  transform: none;
}
.motion .ladder[data-reveal] > li,
.motion .who-grid[data-reveal] > li,
.motion .plan-grid[data-reveal] > article,
.motion .steps[data-reveal] > li,
.motion .timeline[data-reveal] > li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.motion .ladder[data-reveal] > li {
  transform: translateX(26px);
}
.motion [data-reveal].is-in > li,
.motion [data-reveal].is-in > article {
  opacity: 1;
  transform: none;
}
.motion [data-reveal].is-in > :nth-child(2) { transition-delay: 0.07s; }
.motion [data-reveal].is-in > :nth-child(3) { transition-delay: 0.14s; }
.motion [data-reveal].is-in > :nth-child(4) { transition-delay: 0.21s; }
.motion [data-reveal].is-in > :nth-child(5) { transition-delay: 0.28s; }
.motion [data-reveal].is-in > :nth-child(6) { transition-delay: 0.35s; }
.motion [data-reveal].is-in > :nth-child(7) { transition-delay: 0.42s; }

/* ---------- High contrast and reduced motion ---------- */

@media (forced-colors: active) {
  .btn {
    border: 1px solid ButtonText;
  }
  .counter::before,
  .pulse-dot {
    forced-color-adjust: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
}