/* ==========================================================================
   Ruby Pill — styles
   1. Tokens & base    2. Buttons       3. Header        4. Hero
   5. Sections         6. The difference 7. Services     8. How it works
   9. Why Rails        10. Process      10b. FAQ         11. The choice
   12. Footer          13. Toast & veil 14. Reveal       15. Responsive
   16. Reduced motion
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
:root {
  --bg: #050506;
  --bg-raised: #0A0A0D;
  --surface: #0E0E12;
  --surface-hi: #141419;
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .16);
  --text: #F4F2EF;
  --muted: #A6A29D;
  --dim: #85817D;

  --ruby: #E5173F;
  --ruby-hi: #FF4D6D;     /* ruby for text on dark: passes AA */
  --ruby-deep: #7A0A22;
  --blue: #3D7BFF;
  --blue-hi: #97A9D6;     /* the blue pill's world: cool and dim */
  --phosphor: #3BE38B;    /* the Matrix: terminal moments only */

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --container: 1200px;
  --gutter: 24px;
  --edge: max(var(--gutter), (100% - var(--container)) / 2);
  --header-h: 76px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

/* Film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
img { display: block; max-width: 100%; }
::selection { background: var(--ruby); color: #fff; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: #fff; color: #000;
}
.skip-link:focus { top: 16px; }

.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* The "rails": two hairlines down the page at the container edges */
.guides {
  position: fixed; inset: 0 var(--edge); z-index: 1; pointer-events: none;
  border-inline: 1px solid rgba(255, 255, 255, .045);
}

/* 2. Buttons ------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 .9375rem/1 var(--sans); letter-spacing: -.005em; white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background-color .25s, border-color .25s, color .25s;
}
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sm { height: 40px; padding: 0 18px; font-size: .875rem; }

/* The ruby pill: a glossy capsule */
.btn--ruby {
  color: #fff; overflow: hidden;
  background: linear-gradient(180deg, #F4234D 0%, #E5173F 45%, #B30E31 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -8px 14px -6px rgba(60, 0, 15, .55),
    0 0 0 1px rgba(255, 77, 109, .45),
    0 10px 30px -10px rgba(229, 23, 63, .75);
  text-shadow: 0 1px 1px rgba(60, 0, 15, .35);
}
.btn--ruby::before {
  content: ""; position: absolute; z-index: -1; inset: 2px 14px auto; height: 42%;
  border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, .26), rgba(255, 255, 255, 0));
}
.btn--ruby:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -8px 14px -6px rgba(60, 0, 15, .55),
    0 0 0 1px rgba(255, 77, 109, .7),
    0 14px 44px -8px rgba(229, 23, 63, .95);
}

.btn--ghost {
  color: var(--text);
  border-color: var(--line-hi);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .06); }

/* 3. Header -------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); }
/* Blur lives on a pseudo-element so it can't trap the fixed mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(5, 5, 6, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .35s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 40px; height: 100%; }

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(229, 23, 63, .45)); }
.brand__name { font: 600 1.125rem/1 var(--sans); letter-spacing: -.02em; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__list a {
  position: relative;
  font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--text); }
.nav__list a[aria-current]::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--ruby-hi); box-shadow: 0 0 8px var(--ruby);
}

.nav-toggle { display: none; }

/* 4. Hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: max(700px, 100svh);
  padding-top: var(--header-h);
}

/* Photo on the right. Sized from the viewport so it fills the right half on wide screens. */
.hero__media {
  position: absolute; z-index: -3; top: 0; right: 0; bottom: 0;
  width: max(50vw, 560px);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 38%;
  animation: fade 1.6s .1s ease backwards;
}
.hero__scrim {
  position: absolute; z-index: -2; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) calc(50vw - 40px), rgba(5, 5, 6, 0) calc(50vw + 22%)),
    linear-gradient(0deg, var(--bg) 0, rgba(5, 5, 6, 0) 22%),
    linear-gradient(180deg, rgba(5, 5, 6, .6) 0, rgba(5, 5, 6, 0) 18%);
}
/* Code rain on the left, fading out before the photo */
.hero__rain {
  position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 34%, transparent 62%), linear-gradient(0deg, transparent 0, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0, #000 34%, transparent 62%), linear-gradient(0deg, transparent 0, #000 30%);
  mask-composite: intersect;
}

.hero__inner { flex: 1; display: flex; align-items: center; padding-block: 56px; }
.hero__copy { max-width: 660px; }

.hero__prompt {
  display: flex; align-items: center; gap: 10px; min-height: 1.2em; margin-bottom: 32px;
  font: 400 .8125rem/1.2 var(--mono); letter-spacing: .02em;
  color: var(--phosphor); text-shadow: 0 0 12px rgba(59, 227, 139, .45);
}
.hero__prompt::before { content: ">"; color: var(--dim); text-shadow: none; }
.caret {
  display: inline-block; width: .6em; height: 1.1em; margin-left: -6px;
  background: var(--phosphor); box-shadow: 0 0 10px rgba(59, 227, 139, .6);
  animation: blink 1.05s steps(1) infinite;
}

.hero__title {
  font: 500 clamp(3.5rem, 8.6vw, 8.25rem)/.9 var(--sans);
  letter-spacing: -.055em;
}
.nowrap { white-space: nowrap; }
.hero__title em {
  font: italic 400 1.12em/.8 var(--serif); letter-spacing: -.02em;
  color: var(--ruby-hi);
  text-shadow: 0 0 36px rgba(255, 45, 85, .55), 0 0 90px rgba(229, 23, 63, .35);
  padding-right: .04em;
}
.hero__lead {
  max-width: 33rem; margin-top: 36px;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__spec {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px 30px; border-top: 1px solid var(--line);
  font: 500 .6875rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.hero__stack { display: flex; flex-wrap: wrap; gap: 12px 30px; }
.hero__stack li { display: inline-flex; align-items: center; gap: 10px; }
.hero__stack li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--ruby-hi); }
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.hero__scroll:hover { color: var(--text); }
.hero__scroll .icon { animation: nudge 2.4s var(--ease) infinite; }

/* Hero entrance: the one orchestrated moment on the page */
.hero__copy > * { animation: rise 1s var(--ease) backwards; }
.hero__copy > :nth-child(2) { animation-delay: .12s; }
.hero__copy > :nth-child(3) { animation-delay: .24s; }
.hero__copy > :nth-child(4) { animation-delay: .34s; }
.hero__spec { animation: fade 1s .6s ease backwards; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }

/* 5. Sections ------------------------------------------------------------ */
.section { position: relative; padding-block: clamp(96px, 12vw, 168px); border-top: 1px solid var(--line); }
/* Crosshairs where the section line meets the rails */
.section::before, .section::after {
  content: ""; position: absolute; top: -6px; width: 11px; height: 11px;
  background:
    linear-gradient(var(--line-hi), var(--line-hi)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-hi), var(--line-hi)) center / 100% 1px no-repeat;
}
.section::before { left: calc(var(--edge) - 5px); }
.section::after { right: calc(var(--edge) - 5px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim);
}
.eyebrow__n { display: inline-flex; align-items: center; gap: 14px; color: var(--ruby-hi); }
.eyebrow__n::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--center { justify-content: center; }

h2 {
  font: 500 clamp(2.25rem, 4.6vw, 4.125rem)/1.02 var(--sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
h2 em, h3 em {
  font: italic 400 1.1em/.9 var(--serif); letter-spacing: -.01em;
  color: var(--ruby-hi);
}
.lede { max-width: 34rem; color: var(--muted); font-size: 1.125rem; text-wrap: pretty; }

.section-head { margin-bottom: clamp(56px, 7vw, 88px); }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px); align-items: end;
}
.section-head--split .lede { padding-bottom: .4em; }

/* 6. The difference ------------------------------------------------------ */
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.path__label { font: 500 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.path__viz { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 168px; }
.path__sum { font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--sans); letter-spacing: -.04em; }
.path__list { border-top: 1px solid var(--line); }
.path__list li {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .96875rem;
}
.path__list .icon { margin-top: .2em; }

/* The usual way: cool, dim, split into three */
.path--old {
  background: linear-gradient(180deg, #0A0C13, var(--surface) 70%);
  border-color: rgba(120, 140, 200, .16);
}
.path--old .path__label, .path--old .path__sum, .path--old .path__list .icon { color: var(--blue-hi); }
.path--old .path__list li { color: var(--muted); }
.bar {
  flex: 1; display: flex; align-items: center; padding: 0 18px;
  border: 1px dashed rgba(151, 169, 214, .35); border-radius: 12px;
  background: rgba(61, 123, 255, .05); color: var(--blue-hi);
  font: 500 .8125rem/1 var(--mono);
}

/* The Ruby pill way: warm, glowing, one piece */
.path--new {
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(229, 23, 63, .16), transparent 70%),
    linear-gradient(180deg, var(--surface-hi), var(--surface) 70%);
  border-color: rgba(255, 77, 109, .38);
  box-shadow: 0 0 80px -30px rgba(229, 23, 63, .45);
}
.path--new .path__label, .path--new .path__list .icon { color: var(--ruby-hi); }
.core {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(180deg, #F4234D, #E5173F 45%, #A80D2D);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -10px 18px -8px rgba(60, 0, 15, .5),
    0 18px 40px -16px rgba(229, 23, 63, .8);
}
.core__name { font: 600 1.375rem/1 var(--sans); letter-spacing: -.035em; text-shadow: 0 1px 1px rgba(60, 0, 15, .35); }
.core__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.core__chips span {
  padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(0, 0, 0, .28); font: 500 .75rem/1 var(--mono);
}

/* 7. Services ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 440px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface) 60%);
  transition: border-color .3s, transform .5s var(--ease);
}
/* Spotlight that follows the pointer (position set in JS) */
.card::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 23, 63, .14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { border-color: rgba(255, 77, 109, .28); }
.card:hover::before { opacity: 1; }

.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__icon {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line-hi); border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  color: var(--ruby-hi); font-size: 1.25rem;
}
.card__n { font: 500 .75rem/1 var(--mono); color: var(--dim); letter-spacing: .1em; }
.card h3 { margin-top: 96px; font: 500 1.625rem/1.15 var(--sans); letter-spacing: -.035em; }
.card p { margin-top: 14px; color: var(--muted); font-size: .96875rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.tags li {
  padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  font: 400 .71875rem/1 var(--mono); color: var(--muted);
}

/* 8. How it works -------------------------------------------------------- */
.how {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 6vw, 96px); align-items: center;
}
.how .lede { margin-top: 28px; }
.points { margin-top: 44px; border-top: 1px solid var(--line); }
.points li { display: grid; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.points strong { font: 500 1.0625rem/1.3 var(--sans); letter-spacing: -.01em; }
.points span { color: var(--muted); font-size: .9375rem; }
.how__tech { margin-top: 28px; font: 400 .75rem/1.6 var(--mono); color: var(--dim); }

/* Device demo: one offer, three screens. Sizes scale with the stage via cqi. */
.stage { position: relative; container-type: inline-size; aspect-ratio: 16 / 10.6; }
.dev { position: absolute; }
.dev__screen { overflow: hidden; background: #0B0B0F; }

.dev--laptop { left: 0; top: 0; width: 74%; }
.dev--laptop .dev__screen {
  aspect-ratio: 16 / 10;
  border: 1.1cqi solid #1C1C22; border-radius: 1.8cqi 1.8cqi .4cqi .4cqi;
  box-shadow: 0 0 0 1px var(--line-hi), 0 4cqi 8cqi -3cqi rgba(0, 0, 0, .9);
}
.dev__base {
  width: 108%; height: 1.5cqi; margin-left: -4%; border-radius: 0 0 2cqi 2cqi;
  background: linear-gradient(#3A3A40, #1C1C22);
}

.dev--phone { bottom: 5.5cqi; width: 19%; }
.dev--phone .dev__screen {
  position: relative; aspect-ratio: 9 / 18.5;
  border: .8cqi solid #1C1C22; border-radius: 3.2cqi;
  box-shadow: 0 0 0 1px var(--line-hi), 0 3cqi 6cqi -2cqi rgba(0, 0, 0, .9);
}
.dev--phone .dev__screen::before { content: ""; position: absolute; z-index: 2; top: 1cqi; left: 50%; transform: translateX(-50%); background: #000; }
.dev--ios { left: 60%; }
.dev--ios .dev__screen::before { width: 4.2cqi; height: 1.2cqi; border-radius: 99px; }
.dev--android { left: 81%; }
.dev--android .dev__screen { border-radius: 2.4cqi; }
.dev--android .dev__screen::before { width: 1cqi; height: 1cqi; border-radius: 50%; }

.tag {
  position: absolute; text-align: center;
  font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.tag--web { left: 0; width: 74%; top: 50cqi; }
.tag--ios { left: 60%; width: 19%; bottom: 0; }
.tag--android { left: 81%; width: 19%; bottom: 0; }

/* What is drawn on the screens */
.scr { display: flex; flex-direction: column; gap: 1.8cqi; height: 100%; padding: 2.6cqi 2.8cqi; font-size: max(6px, 1.45cqi); line-height: 1.2; }
.dev--phone .scr { gap: 1.2cqi; padding: 3.4cqi 1.5cqi 1.5cqi; font-size: max(5px, 1cqi); }
.scr__top { display: flex; align-items: center; gap: .7em; }
.scr__logo { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: linear-gradient(180deg, #FF7A92, #B30E31); }
.scr__top b { font-weight: 600; letter-spacing: -.02em; }
.scr__nav { display: flex; gap: .5em; margin-left: auto; }
.scr__nav i { width: 3.2em; height: .5em; border-radius: 99px; background: #2A2A32; }
.scr__offer {
  padding: 1.5em; border: 1px solid rgba(255, 77, 109, .4); border-radius: 1em;
  background: linear-gradient(135deg, rgba(229, 23, 63, .38), rgba(229, 23, 63, .08));
}
.scr__offer small { display: block; margin-bottom: .6em; font: 500 .72em/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ruby-hi); }
.scr__offer p { font: 600 1.9em/1.1 var(--sans); letter-spacing: -.035em; }
.scr__row { display: flex; flex: 1; gap: 1em; min-height: 0; }
.scr__row i { flex: 1; border: 1px solid var(--line); border-radius: .8em; background: #14141A; }
.scr__cta { align-self: flex-start; padding: .85em 1.6em; border-radius: 99px; background: var(--ruby); font-size: .95em; font-weight: 500; }

.demo.is-updating .scr__offer { animation: flash .9s var(--ease); }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, .9); transform: scale(1.05); }
  100% { box-shadow: 0 0 0 1.6cqi rgba(255, 77, 109, 0); transform: none; }
}

.demo__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
}
.demo__status { font: 400 .8125rem/1.4 var(--mono); color: var(--muted); }

/* 9. Why Rails ----------------------------------------------------------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.fact { padding: 36px 28px 40px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact__tag {
  display: flex; align-items: center; gap: 10px; margin-bottom: 56px;
  font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ruby-hi);
}
.fact__tag::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ruby); }
.fact h3 { margin-bottom: 12px; font: 500 1.25rem/1.25 var(--sans); letter-spacing: -.025em; }
.fact p { color: var(--muted); font-size: .9375rem; }

/* 10. Process ------------------------------------------------------------ */
.steps {
  --p: 0;
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px;
  padding-top: 48px;
}
/* Track, and the ruby line that fills it as you scroll (--p set in JS) */
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; }
.steps::before { right: 0; background: var(--line-hi); }
.steps::after {
  width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, var(--ruby-deep), var(--ruby) 60%, var(--ruby-hi));
  box-shadow: 0 0 14px var(--ruby);
}
.step { position: relative; }
.step::before {
  content: ""; position: absolute; z-index: 1; top: -53px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid var(--line-hi); background: var(--bg);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.step.is-lit::before { border-color: var(--ruby-hi); background: var(--ruby); box-shadow: 0 0 14px var(--ruby); }
.step__n { font: 500 .75rem/1 var(--mono); letter-spacing: .1em; color: var(--dim); transition: color .4s; }
.step.is-lit .step__n { color: var(--ruby-hi); }
.step h3 { margin: 22px 0 12px; font: 500 1.5rem/1.2 var(--sans); letter-spacing: -.035em; }
.step p { color: var(--muted); font-size: .9375rem; }

/* 10b. FAQ -------------------------------------------------------------- */
.faq {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.faq .lede { margin-top: 28px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 26px 56px 26px 0;
  font: 500 1.1875rem/1.35 var(--sans); letter-spacing: -.02em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ruby-hi); }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 1.5px; margin-top: -.75px; background: currentColor;
  transition: transform .35s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary { color: var(--text); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { max-width: 38rem; padding: 0 56px 30px 0; color: var(--muted); }

/* 11. The choice --------------------------------------------------------- */
.choice {
  overflow: hidden; text-align: center;
  background:
    radial-gradient(50% 45% at 62% 62%, rgba(229, 23, 63, .16), transparent 70%),
    radial-gradient(30% 30% at 34% 66%, rgba(61, 123, 255, .07), transparent 70%);
}
.choice h2 { max-width: 15ch; margin-inline: auto; font-size: clamp(2.5rem, 6vw, 5.25rem); }
.choice .lede { margin: 28px auto 0; }

.pills {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(24px, 9vw, 140px); margin-top: 64px;
}
.pill {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.pill__art { transition: transform .6s var(--ease), filter .6s; }
.pill__label {
  display: inline-flex; align-items: center; gap: .55em; margin-top: 12px;
  font: 500 1.0625rem/1.2 var(--sans); letter-spacing: -.01em;
}
.pill__label .icon { transition: transform .3s var(--ease); }
.pill__hint { font: 500 .6875rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

.pill--blue .pill__art { width: 150px; filter: saturate(.8) drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.pill--blue { opacity: .72; transition: opacity .3s; }
.pill--blue:hover { opacity: 1; }
.pill--blue:hover .pill__art { transform: rotate(-6deg) translateY(-4px); }
.pill--blue .pill__label { color: var(--blue-hi); }

.pill--ruby .pill__art {
  width: 280px;
  filter: drop-shadow(0 0 36px rgba(229, 23, 63, .55)) drop-shadow(0 24px 40px rgba(0, 0, 0, .6));
  animation: float 6s ease-in-out infinite alternate;
}
.pill--ruby:hover .pill__art {
  transform: rotate(6deg) scale(1.04);
  filter: drop-shadow(0 0 56px rgba(255, 45, 85, .8)) drop-shadow(0 24px 40px rgba(0, 0, 0, .6));
}
.pill--ruby .pill__label { color: var(--ruby-hi); }
.pill--ruby:hover .pill__label .icon { transform: translateX(4px); }
@keyframes float { to { translate: 0 -10px; } }

.choice__direct { margin-top: 72px; color: var(--dim); font-size: .9375rem; }
.choice__direct a { color: var(--text); border-bottom: 1px solid var(--line-hi); transition: border-color .2s, color .2s; }
.choice__direct a:hover { color: var(--ruby-hi); border-color: var(--ruby-hi); }

/* 12. Footer ------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; padding-top: 72px; border-top: 1px solid var(--line); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 48px; }
.site-footer__about p { max-width: 22rem; margin-top: 18px; color: var(--muted); font-size: .9375rem; }
.site-footer__nav { display: grid; gap: 14px; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-footer__nav a:hover { color: var(--ruby-hi); }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 50%; color: var(--muted);
  transition: border-color .2s, color .2s;
}
.site-footer__social a:hover { border-color: var(--ruby-hi); color: var(--ruby-hi); }

.wordmark {
  margin-top: 64px; text-align: center; white-space: nowrap; user-select: none;
  font: 600 clamp(4.5rem, 19vw, 17.5rem)/.8 var(--sans); letter-spacing: -.065em;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(12%);
}
.site-footer__bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 22px 30px; border-top: 1px solid var(--line);
  font: 400 .75rem/1.4 var(--mono); color: var(--dim);
}

/* 13. Toast & veil (the blue pill) --------------------------------------- */
.veil {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  background: rgba(20, 50, 130, .16);
  -webkit-backdrop-filter: grayscale(1) brightness(.75);
  backdrop-filter: grayscale(1) brightness(.75);
  opacity: 0; transition: opacity .9s ease;
}
.is-blue .veil { opacity: 1; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  display: flex; align-items: center; gap: 16px 20px;
  width: min(100% - 32px, 620px); padding: 16px 16px 16px 22px;
  border: 1px solid rgba(61, 123, 255, .35); border-radius: 16px;
  background: rgba(8, 12, 26, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease), opacity .35s, visibility 0s .45s;
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast__text { flex: 1; font: 400 .8125rem/1.55 var(--mono); color: #C9D6F5; }
.toast__actions { display: flex; align-items: center; gap: 6px; }
.toast__close {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: none; color: var(--blue-hi); cursor: pointer;
}
.toast__close:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* 14. Reveal on scroll (only when JS runs) ------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 15. Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card h3 { margin-top: 48px; }
}

/* Five links plus a button need tighter spacing just above the mobile breakpoint */
@media (min-width: 901px) and (max-width: 1160px) {
  .site-header__inner { gap: 24px; }
  .nav { gap: 24px; }
  .nav__list { gap: 20px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle {
    position: relative; z-index: 2; display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0; margin-right: -10px;
    border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px;
    padding: calc(var(--header-h) + 40px) 24px 40px;
    background: rgba(5, 5, 6, .98);
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility 0s .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 8px; }
  .nav__list a { font: 500 2.25rem/1.3 var(--sans); letter-spacing: -.04em; text-transform: none; color: var(--text); }
  .nav__list a[aria-current]::before { display: none; }
  .nav .btn { width: 100%; height: 52px; font-size: .9375rem; }

  /* Hero: photo on top, copy below it; rain stays on the left */
  .hero { min-height: 0; }
  .hero__media { left: 0; width: auto; height: min(78vh, 680px); bottom: auto; }
  .hero__media img { object-position: 78% 32%; }
  .hero__scrim {
    background:
      linear-gradient(0deg, var(--bg) 0, var(--bg) calc(100% - min(78vh, 680px) + 60px), rgba(5, 5, 6, .35) calc(100% - min(78vh, 680px) + 260px), rgba(5, 5, 6, 0) 70%),
      linear-gradient(90deg, rgba(5, 5, 6, .6) 0, rgba(5, 5, 6, 0) 50%);
  }
  .hero__rain { opacity: .38; }
  .hero__inner { align-items: flex-end; padding-block: min(40vh, 340px) 40px; }

  .hero__spec { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }

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

  .versus, .how, .faq { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 640px; margin-inline: auto; }

  /* Process: vertical timeline */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 0 0 0 36px; }
  .steps::before, .steps::after { top: 6px; left: 5px; right: auto; width: 1px; }
  .steps::before { bottom: 0; height: auto; }
  .steps::after { height: calc(var(--p) * 100%); }
  .step::before { top: 2px; left: -36px; }
  .step h3 { margin-top: 14px; }

  .site-footer__top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  body { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact, .fact + .fact { padding: 28px 0 32px; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .fact__tag { margin-bottom: 28px; }
  .card { padding: 26px; }
  .path { padding: 26px; }
  .path__viz { height: 150px; }
  .core { padding: 14px 16px; }
  .core__chips span { padding: 6px 10px; font-size: .6875rem; }
  .faq summary { padding-right: 40px; font-size: 1.0625rem; }
  .faq details p { padding-right: 0; }
  .demo__bar .btn { width: 100%; }
  .pills { gap: 12px; }
  .pill--blue .pill__art { width: 104px; }
  .pill--ruby .pill__art { width: 190px; }
  .pill__label { font-size: .9375rem; }
  .toast { flex-direction: column; align-items: stretch; }
  .toast__actions { justify-content: space-between; }
}

/* 16. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
