/* Demo-account landing. Tokens, header, buttons, timeline, FAQ, closing block and footer follow the
   white-label landing (public/white-label/styles.css); heading and button motion is its reveal.js. */
@font-face {
  font-family: Geist;
  src: url('/white-label/assets/fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url('/white-label/assets/fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #050505;
  --text: #f4f7fb;
  --muted: #aeb8c3;
  --accent: #3547ff;
  /* Pariflow app surfaces (app/foundation.css dark theme). */
  --surface: #1a1e21;
  --surface-raised: #252a2e;
  --card: #111;
  --line: rgba(244,247,251,.075);
  --up: #10b981;
  --down: #ef4444;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Geist,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

button,a,label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
summary { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
[hidden] { display: none!important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: 'SFMono-Regular',Consolas,'Liberation Mono',monospace;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  padding: 12px 16px;
  background: #fff;
  color: #050505;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: linear-gradient(#050505f0,#05050500);
}

.brand { width: 160px; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 15px;
  transition: color 180ms;
}

.header-link:hover { color: var(--text); }

/* Buttons (SWSH pill: shrinks on hover while reveal.js scrambles the label). */
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  background: transparent;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: 'SFMono-Regular',Consolas,'Liberation Mono',monospace;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--button-fill,var(--accent));
  transition: scale 300ms cubic-bezier(.77,0,.175,1);
}

.button:hover::before { scale: .96; }
.button:active::before { scale: .94; }
.button-large { min-height: 52px; padding: 0 32px; font-size: 13px; }

.scramble-char { position: relative; }

.scramble-char::before {
  content: attr(data-glyph);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  visibility: hidden;
}

.scramble-char[data-scrambling]::before { visibility: visible; }
.button .scramble-char[data-scrambling] { color: var(--button-churn,#070c3d); }

/* Section headings, split into lines by reveal.js. */
.reveal-line { position: relative; display: inline-block; white-space: nowrap; }
.reveal-line-text { display: inline-block; }

.reveal-block {
  position: absolute;
  inset: -.15em;
  background: var(--text);
  clip-path: inset(0 0 0 100%);
  pointer-events: none;
}

.section-eyebrow { margin: 0 0 24px; color: var(--muted); }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 64px;
}

.section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px,4.2vw,64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.05em;
  text-wrap: balance;
}

.section-intro {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.checks { margin: 0; padding: 0; list-style: none; }

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
}

.checks svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--up);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero: copy on the left, the illustration on the right. */
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 112px var(--gutter) 48px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px,4.8vw,68px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero-title-muted { color: var(--muted); }

.hero-lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
}

/* The figure stands on the hero's bottom edge; the mask fades its legs into the page. */
.hero-visual { align-self: end; justify-self: end; width: 100%; max-width: 680px; margin-bottom: -48px; }

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(#000 84%,transparent 98%);
  mask-image: linear-gradient(#000 84%,transparent 98%);
}

/* Trust strip: the markets a demo account trades, as a marquee. */
.trust-strip {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px var(--gutter) 96px;
  text-align: center;
}

.trust-strip > p { margin: 0 0 24px; color: var(--muted); font-size: 11px; }

.trust-marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}

.trust-marquee ul {
  display: flex;
  flex-shrink: 0;
  gap: 48px;
  margin: 0;
  padding: 0 24px;
  list-style: none;
  animation: marquee 40s linear infinite;
}

.trust-marquee li {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  opacity: .86;
}

@keyframes marquee { to { transform: translateX(-100%); } }

/* Shared section frame */
.facts,.products,.compare,.benefits,.learn {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) 160px;
  scroll-margin-top: 72px;
}

/* Fact cards (white-label technology cards) */
.fact-cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 256px;
  padding: 16px;
  background: var(--card);
  border-radius: 24px;
}

.fact-card-heading { display: flex; align-items: center; gap: 16px; }

.fact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--surface-raised);
  border-radius: 50%;
}

.fact-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fact-card h3 { margin: 0; font-size: clamp(20px,1.7vw,26px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }

.fact-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 48px 0 0; }

.fact-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 88px;
  padding: 12px;
  border-radius: 12px;
  background: #222;
}

.fact-stats dt { margin-top: 8px; color: #b8b8b8; font-size: 11px; line-height: 1.35; }
.fact-stats dd { margin: 0; font-size: clamp(26px,2.2vw,32px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.fact-stats-text dd { font-size: clamp(18px,1.5vw,24px); line-height: 1.15; letter-spacing: -.03em; }

/* Products: four cards, each opens that product with the demo account on. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card > a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.78fr);
  gap: 24px;
  height: 100%;
  min-height: 440px;
  padding: 32px 0 0 32px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 200ms;
}

.product-card > a:hover { background: #161819; }
.product-copy { display: flex; flex-direction: column; padding-bottom: 32px; }
.product-tag { margin: 0 0 20px; color: var(--muted); }
.product-copy h3 { margin: 0; font-size: clamp(28px,2.4vw,36px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; }
.product-copy > p:not(.product-tag) { margin: 16px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 15px;
  font-weight: 500;
}

.product-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms; }
.product-card > a:hover .product-cta svg { transform: translateX(4px); }

.product-visual { position: relative; align-self: end; min-width: 0; height: 100%; margin: 0; }

.product-visual img {
  position: absolute;
  top: 8px;
  left: 0;
  width: min(100%,260px);
  max-width: none;
  border-radius: 32px 32px 0 0;
}

.product-visual-rounds { display: flex; align-items: center; padding-right: 32px; }
.rounds { width: 100%; margin: 0; padding: 0; list-style: none; }

.rounds li {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.rounds li:last-child { border-bottom: 1px solid var(--line); }
.rounds span:nth-child(2) { color: var(--muted); }

.rounds b {
  min-width: 64px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.rounds .is-up { background: rgba(16,185,129,.14); color: #34d399; }
.rounds .is-down { background: rgba(239,68,68,.14); color: #f87171; }

/* Demo vs live */
.compare-table { overflow-x: auto; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.compare-table:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.compare table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; }
.compare th:first-child { width: 26%; }

.compare th,.compare td {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.compare thead th { border-top: 0; padding-top: 24px; padding-bottom: 16px; }
.compare tbody th { color: var(--muted); }
.compare td:nth-child(2) { background: rgba(244,247,251,.03); }

/* "Same as live" mark: a drawn check, so the cell keeps only its text for screen readers. */
.compare .is-same::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0 8px -3px 0;
  background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.5 2.7 2.7L16 10'/%3E%3C/svg%3E");
}

.compare-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-raised);
  font-family: 'SFMono-Regular',Consolas,'Liberation Mono',monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -.025em;
}

.compare-badge-demo { background: var(--text); color: #050505; }

/* How it works (white-label timeline) */
.steps {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  align-items: start;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) 160px;
  scroll-margin-top: 96px;
}

.steps h2 {
  margin: 0;
  font-size: clamp(48px,4.7vw,80px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.timeline-intro { position: sticky; top: 120px; }

.timeline-intro > p:not(.section-eyebrow) {
  max-width: 400px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.timeline { margin: 0; padding: 8px 0 0; list-style: none; }

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  column-gap: 24px;
  padding-bottom: 64px;
  transition: opacity 300ms ease-out,transform 300ms ease-out;
}

.timeline-item:last-child { padding-bottom: 0; }

/* The rail joins one icon tile to the next. */
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 60px;
  bottom: 12px;
  left: 23.5px;
  width: 1px;
  background: rgba(244,247,251,.14);
}

.timeline-item.has-entrance:not(.is-visible) { opacity: 0; transform: translateY(32px); }

.timeline-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}

.timeline-icon svg,.timeline-outcome svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.timeline-icon svg { width: 22px; height: 22px; }
.timeline-body { min-width: 0; }
.timeline-phase { margin: 0 0 6px; color: var(--muted); }
.timeline-body h3 { margin: 0; font-size: clamp(24px,2.2vw,32px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }

.timeline-outcome {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.timeline-outcome svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; color: var(--up); }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }

.timeline-tags li {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  line-height: 1.2;
}

.timeline-copy { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Why practice here */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit { padding: 28px; border-radius: 24px; background: var(--card); }

.benefit-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-raised);
}

.benefit-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { margin: 40px 0 0; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.benefit p { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Learn */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 200px;
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  transition: background 200ms;
}

.learn-card:hover { background: #161819; }
.learn-card .mono { color: var(--muted); }
.learn-card strong { margin-top: auto; padding-right: 32px; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.learn-card > span:not(.mono) { color: var(--muted); font-size: 14px; line-height: 1.5; }
.learn-card svg { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms; }
.learn-card:hover svg { transform: translate(2px,-2px); }

/* FAQ (white-label operator FAQ) */
.faq {
  display: grid;
  grid-template-columns: minmax(0,5fr) minmax(0,7fr);
  align-items: start;
  gap: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter) 160px;
  scroll-margin-top: 96px;
}

.faq-intro { position: sticky; top: 120px; }
.faq h2 { margin: 0; font-size: clamp(32px,3.9vw,56px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.faq-intro > p { max-width: 36ch; margin: 24px 0 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.faq-intro > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; }
.faq a { text-decoration: underline; text-decoration-color: #68686e; text-underline-offset: 4px; transition: text-decoration-color 180ms ease-out; }
.faq a:hover { text-decoration-color: currentColor; }
.faq svg { flex: 0 0 24px; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.faq-list { min-width: 0; }
.faq details { border-top: .5px solid #444448; }
.faq details:last-child { border-bottom: .5px solid #444448; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; padding: 24px 0; cursor: pointer; list-style: none; font-size: 20px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary svg path:last-child { display: none; }
.faq-answer { padding: 0 40px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.faq-answer p { max-width: 65ch; margin: 0; }
.faq-answer a { color: var(--text); }

/* Closing call to action */
.launch-close { padding-top: 80px; background: #151517; text-align: center; scroll-margin-top: 72px; }
.launch-close-copy { padding: 0 24px; }
.launch-close h2 { margin: 0; font-size: clamp(40px,4.45vw,64px); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.launch-close-copy p { max-width: 420px; margin: 24px auto 0; color: #b8b8bf; font-size: 16px; line-height: 1.5; }
.launch-close .button { margin-top: 28px; }
.launch-close-screen { width: min(78%,1102px); margin: 72px auto 0; }

/* Footer: the app footer's dark theme (app/components/Footer.tsx, --footer-* in app/foundation.css). */
.site-footer { padding: 64px 32px 40px; border-top: 1px solid #272d33; background: #0e1012; scroll-margin-top: 96px; }
.footer-main { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,4fr); gap: 32px; }
.footer-brand { min-width: 0; padding-right: 32px; }
.footer-logo { display: inline-block; max-width: 100%; width: 200px; }
.footer-logo img { width: 100%; }
.footer-brand p { max-width: 260px; margin: 20px 0 0; color: #b9c6d3; font-size: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 4px; margin: 20px 0 0; padding: 0; list-style: none; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; color: #c8d2de; transition: background 180ms, color 180ms; }
.footer-social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-navigation { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; }
.footer-col .footer-heading { margin: 0 0 8px; color: #c8d2de; font-size: 12px; font-weight: 700; line-height: 1.5; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 0;
  color: #d8e0ea;
  font-size: 14px;
  line-height: 1.4;
  transition: color 180ms;
}

.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 56px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; }
.footer-contacts li { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.footer-contacts li > span:first-child { color: #b9c6d3; font-weight: 500; }
.footer-email { color: #d8e0ea; white-space: nowrap; user-select: all; }
.footer-risk { max-width: 1180px; margin: 32px 0 0; color: #aab8c7; font-size: 11px; line-height: 1.6; }
.footer-risk a { color: #d8e0ea; text-decoration: underline; text-decoration-color: rgba(200,210,222,.45); text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(244,247,251,.1);
  color: #b9c6d3;
  font-size: 12px;
  line-height: 1.5;
}

.footer-bottom p { margin: 0; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; color: #d8e0ea; font-size: 13px; }
.footer-status span { width: 8px; height: 8px; border-radius: 50%; background: var(--up); }

@media(hover:hover) {
  .footer-col a:hover, .footer-risk a:hover { color: #fff; }
  .footer-social a:hover { background: rgba(255,255,255,.1); color: #fff; }
}

/* SWSH FlipLink (reveal.js): characters roll up to a copy below. */
.flip-mask { position: relative; display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; }
.flip-bottom { position: absolute; top: 100%; left: 0; user-select: none; }
.flip-word,.flip-char { display: inline-block; vertical-align: top; }
.flip-link:focus-visible .flip-char { transform: translateY(-100%); }

@media(prefers-reduced-motion:no-preference) {
  .flip-char {
    transition: transform 700ms cubic-bezier(.34,1.56,.64,1);
    transition: transform 700ms linear(0,.0758,.2475,.4502,.6426,.8024,.9213,1.0004,1.0456,1.0652,1.0673,1.0592,1.0464,1.0326,1.0202,1.0102,1.0031,.9986,1,1);
    transition-delay: calc(var(--index,0) * 30ms);
  }
  .flip-link:focus-visible .flip-bottom .flip-char { animation: flip-color 300ms cubic-bezier(.77,0,.175,1) calc(var(--index,0) * 30ms); }
}

@media(prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine) {
  .flip-link:hover .flip-char { transform: translateY(-100%); }
  .flip-link:hover .flip-bottom .flip-char { animation: flip-color 300ms cubic-bezier(.77,0,.175,1) calc(var(--index,0) * 30ms); }
}

@keyframes flip-color {
  45% { color: var(--muted); }
  75% { color: #fff; }
}

/* Phone call to action, shown once the hero button has scrolled away (page.js). */
.mobile-cta { display: none; }

@media(max-width:1199px) {
  .hero { gap: 40px; }
  .fact-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-card > a { grid-template-columns: 1fr; min-height: 0; padding: 28px 28px 0; }
  .product-copy { padding-bottom: 0; }
  .product-visual { height: 260px; }
  .product-visual img { left: 50%; width: 240px; transform: translateX(-50%); }
  .product-visual-rounds { height: auto; padding: 0 0 28px; }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .learn-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr; gap: 48px; }
  .footer-navigation { gap: 24px; }
}

@media(max-width:1000px) {
  :root { --gutter: 24px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 120px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { justify-self: center; max-width: 560px; }
  .section-heading { gap: 32px; margin-bottom: 48px; }
  .section-heading h2 { font-size: 44px; }
  .facts,.products,.compare,.benefits,.learn,.steps,.faq { padding-bottom: 112px; }
  .steps,.faq { grid-template-columns: 1fr; gap: 48px; }
  .timeline-intro,.faq-intro { position: static; }
  .steps h2 { font-size: clamp(40px,5.2vw,56px); }
}

@media(max-width:767px) {
  :root { --gutter: 16px; }
  .site-header { padding: 0 16px; }
  .brand { width: 128px; }
  .header-link { padding: 0 12px; }
  /* Phone hero: headline and button, then the figure, then the details. */
  .hero { display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 88px; padding-bottom: 24px; text-align: center; }
  .hero-copy { display: contents; }
  .hero h1 { font-size: clamp(30px,8.2vw,40px); }
  .hero-actions { order: 1; margin-top: 24px; }
  .hero-visual { order: 2; align-self: stretch; width: auto; max-width: none; margin: 8px -16px 0; }
  .hero-lead { order: 3; margin-top: 0; font-size: 16px; }
  .hero-checks { order: 4; flex-direction: column; gap: 10px; margin-top: 24px; text-align: left; }
  .trust-strip { padding-bottom: 64px; }
  .trust-marquee li { font-size: 18px; }
  .trust-marquee ul { gap: 32px; padding: 0 16px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .section-eyebrow { margin-bottom: 16px; font-size: 11px; }
  .section-heading h2 { font-size: clamp(34px,9.4vw,48px); }
  .section-intro { font-size: 16px; }
  .facts,.products,.compare,.benefits,.learn,.steps,.faq { padding-bottom: 80px; }
  .fact-cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .fact-cards::-webkit-scrollbar { display: none; }
  .fact-card { min-height: 232px; scroll-snap-align: start; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card > a { padding: 24px 20px 0; border-radius: 24px; }
  .product-copy h3 { font-size: 28px; }
  .product-copy > p:not(.product-tag) { font-size: 15px; }
  .product-visual { height: 220px; }
  .product-visual img { width: 220px; border-radius: 28px 28px 0 0; }
  .product-visual-rounds { padding-bottom: 20px; }
  .compare table { min-width: 0; }
  .compare th,.compare td { padding: 14px 12px; font-size: 14px; }
  .compare th:first-child { width: 28%; }
  .compare .is-same::before { width: 16px; height: 16px; margin-right: 6px; background-size: 16px 16px; }
  .compare-badge { padding: 5px 8px; font-size: 11px; }
  .steps { gap: 40px; }
  .steps h2 { font-size: clamp(32px,8.4vw,56px); }
  .timeline-intro > p:not(.section-eyebrow) { margin: 16px 0 24px; font-size: 16px; }
  .timeline-item { grid-template-columns: 40px minmax(0,1fr); column-gap: 16px; padding-bottom: 48px; }
  .timeline-item:not(:last-child)::before { top: 52px; left: 19.5px; }
  .timeline-icon { width: 40px; height: 40px; border-radius: 12px; }
  .timeline-icon svg { width: 20px; height: 20px; }
  .timeline-outcome,.timeline-copy { font-size: 14px; }
  .benefit-grid,.learn-grid { grid-template-columns: 1fr; gap: 12px; }
  .benefit { padding: 20px; }
  .benefit h3 { margin-top: 24px; font-size: 20px; }
  .learn-card { min-height: 0; }
  .learn-card strong { margin-top: 12px; }
  .faq { gap: 32px; }
  .faq summary { gap: 16px; min-height: 72px; font-size: 16px; }
  .faq-answer { padding-right: 0; }
  .launch-close { padding-top: 48px; }
  .launch-close-copy { padding: 0 16px; }
  .launch-close h2 { font-size: clamp(30px,8vw,48px); line-height: 1.12; }
  .launch-close-copy p { max-width: 320px; font-size: 14px; }
  .launch-close-screen { width: calc(100% - 32px); margin-top: 48px; }
  .site-footer { padding: 48px 24px 120px; }
  .footer-main { gap: 40px; }
  .footer-brand { padding-right: 0; }
  .footer-navigation { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; }
  .footer-col a { min-height: 44px; }
  .footer-contacts { flex-direction: column; margin-top: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding-top: 16px; }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    display: block;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(#05050500,#050505e6 30%);
    transform: translateY(110%);
    transition: transform 260ms cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
  }
  .mobile-cta.is-visible { transform: none; pointer-events: auto; }
  .mobile-cta .button { width: 100%; }
}

@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none!important; transition: none!important; }
  .timeline-item.has-entrance:not(.is-visible) { opacity: 1; transform: none; }
  .trust-marquee { -webkit-mask-image: none; mask-image: none; }
  .trust-marquee ul { flex-wrap: wrap; justify-content: center; flex-shrink: 1; gap: 12px 32px; }
  .trust-marquee ul[aria-hidden] { display: none; }
}
