/*
 * Salp — site styles.
 *
 * The system is the product's, turned up for marketing:
 *   - two faces: Josefin Sans (display, the brand voice) and Manrope (UI)
 *   - cobalt smoke as the ground, frosted white sheets resting on it
 *   - contrast, not hue; orange is scarce and means "the AI did this / new"
 * Source of the tokens: claro-core web/src/styles/tokens.css.
 */

@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/josefin-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
}

:root {
  --font-display: 'Josefin Sans', system-ui, -apple-system, sans-serif;
  --font-ui: Manrope, system-ui, -apple-system, sans-serif;

  --cobalt: #2b46e0;
  --cobalt-deep: #1620c4;
  --abyss: #0a0d6e;
  --periwinkle: #8a97f2;
  --lavender: #eef1ff;
  --orange: #fa4d2e;
  --urgent: #f2694e;
  --urgent-bg: #fff0ec;
  --ok: #3a7d4f;
  --ok-bg: #ecf7ef;
  --navy: #1d2440;
  --slate: #5b6280;
  --mist: #8a90a8;
  --hair: #e6e8f4;
  --sheet: rgb(255 255 255 / 88%);
  --glass-blur: blur(24px) saturate(140%);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1280px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  /* Stand-in ground when the smoke canvas is unavailable. */
  background:
    radial-gradient(120% 80% at 50% 0%, #2b38e6 0%, #141ccc 55%, #0a0d6e 100%) fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }

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

/* The background canvas is pinned with `sticky`, not `fixed`, on purpose.
   Phone browsers treat fixed elements specially around their own bars: they
   keep them clear of the bottom bar, and may fill the strip underneath with a
   flat colour that covers the page. A sticky element is ordinary page content,
   so it runs edge to edge like everything else. It is one large-viewport tall
   and takes up no room (the negative margin gives its height back). */
#smoke {
  --under: 0px;
  position: sticky; top: 0; display: block; width: 100%;
  height: calc(100vh + var(--under)); height: calc(100lvh + var(--under));
  margin-bottom: calc(-100vh - var(--under)); margin-bottom: calc(-100lvh - var(--under));
  z-index: 0; pointer-events: none;
}

main, .nav, .foot { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- registers ---------- */

.on-deep { --ink: #fff; --ink-soft: rgb(255 255 255 / 78%); --ink-faint: rgb(255 255 255 / 52%); --rule: rgb(255 255 255 / 22%); --title: #fff; color: var(--ink); }
.on-light { --ink: var(--navy); --ink-soft: var(--slate); --ink-faint: var(--mist); --rule: rgb(29 36 64 / 12%); --title: var(--cobalt); color: var(--ink); }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 0.74rem + 0.25vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.75em;
}
.eyebrow--dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgb(250 77 46 / 60%); animation: dot 2.6s var(--ease-io) infinite;
}
@keyframes dot { 0%, 100% { box-shadow: 0 0 0 0 rgb(250 77 46 / 55%); } 60% { box-shadow: 0 0 0 9px rgb(250 77 46 / 0%); } }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.1rem, 1.2rem + 8.6vw, 9.4rem);
  line-height: 0.94;
  letter-spacing: -0.012em;
  color: var(--title);
  padding-top: 0.08em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 1.2rem + 4.7vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.008em;
  color: var(--title);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.7rem);
  line-height: 1.06;
  color: var(--title);
}
.lede { font-size: clamp(1.06rem, 0.98rem + 0.42vw, 1.36rem); line-height: 1.5; color: var(--ink-soft); max-width: 36em; }
.body { color: var(--ink-soft); max-width: 34em; }
em.hl { font-style: normal; color: var(--orange); }
.on-deep em.hl { color: #ffb4a3; }

/* Line-mask reveal. main.js splits each headline into .line rows at the
   width it actually wrapped to; until then the text is plain and balanced. */
.lines { text-wrap: balance; }
/* The mask is padded on every side and pulled back by the same amount, so tall
   ascenders, descenders and overhanging letters are never cut by it. */
.lines .line { display: block; overflow: hidden; white-space: nowrap; padding: 0.2em 0.08em 0.24em; margin: -0.2em -0.08em -0.24em; }
.lines .line > span { display: block; transform: translateY(135%); transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + var(--d, 0ms)); }
.lines.in .line > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  height: 54px; padding: 0 1.7em; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.005em; white-space: nowrap;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.4s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn .arr { display: inline-block; transition: transform 0.5s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn--white { background: #fff; color: var(--cobalt-deep); box-shadow: 0 18px 44px -18px rgb(5 8 80 / 65%); }
.btn--cobalt { background: var(--cobalt); color: #fff; box-shadow: 0 18px 40px -18px rgb(43 70 224 / 80%); }
.btn--cobalt:hover { background: var(--cobalt-deep); }
.btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--sm { height: 42px; font-size: 0.9rem; padding: 0 1.3em; }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__inner {
  max-width: var(--max); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 9px 9px 9px 26px; border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 0%);
  transition: background-color 0.5s, color 0.5s, box-shadow 0.5s, backdrop-filter 0.5s;
}
.nav.is-stuck .nav__inner {
  background: rgb(255 255 255 / 12%);
  backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
}
.nav[data-on='light'] .nav__inner { color: var(--navy); }
.nav[data-on='light'].is-stuck .nav__inner {
  background: rgb(255 255 255 / 72%);
  box-shadow: inset 0 0 0 1px rgb(29 36 64 / 6%), 0 14px 40px -24px rgb(22 32 196 / 40%);
}
.wordmark {
  font-family: var(--font-display); font-weight: 500; font-size: 1.72rem; letter-spacing: -0.005em;
  line-height: 1; padding-top: 0.16em; display: inline-flex; align-items: center; gap: 0.36em;
}
.nav[data-on='light'] .wordmark { color: var(--cobalt); }
.mark { width: 1.36em; height: 1.14em; flex: none; margin-top: -0.26em; }
/* The mark: two lobes of one oval and the seam between them. On cobalt the
   lobes are white; on a light ground they take the brand blues. */
.mark__a { fill: rgb(255 255 255 / 58%); transition: fill 0.5s; }
.mark__b { fill: #fff; transition: fill 0.5s; }
.mark__s { fill: var(--orange); }
.nav[data-on='light'] .mark__a { fill: #aeb9f7; }
.nav[data-on='light'] .mark__b { fill: var(--cobalt); }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: 0.93rem; font-weight: 500; }
.nav__links a:not(.btn) { opacity: 0.82; transition: opacity 0.3s; position: relative; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn--nav { background: #fff; color: var(--cobalt-deep); }
.nav[data-on='light'] .btn--nav { background: var(--cobalt); color: #fff; }
@media (max-width: 820px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- sections ---------- */

.s { position: relative; padding-block: clamp(110px, 17vh, 210px); }
.s__head { display: grid; gap: clamp(20px, 2.6vw, 34px); max-width: 60rem; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(150px, 24vh, 250px); padding-bottom: 0; min-height: 100svh; }
.hero__copy { position: relative; z-index: 2; display: grid; gap: clamp(26px, 3.2vw, 44px); }
.hero .lede { max-width: 31em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__stage {
  position: relative; z-index: 2;
  margin-top: clamp(64px, 10vh, 130px);
  perspective: 2200px;
}
.hero__stage .ws {
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--p, 0)) * 16deg)) scale(calc(0.93 + var(--p, 0) * 0.07));
  will-change: transform;
}
.hero__note { margin-top: 18px; text-align: center; font-size: 0.82rem; color: var(--ink-faint); }

/* ---------- the workspace (product, redrawn in HTML) ---------- */

.ws {
  --pad: clamp(16px, 2.2vw, 30px);
  position: relative; border-radius: clamp(20px, 2.6vw, 34px); overflow: hidden;
  color: var(--navy); font-size: clamp(11.5px, 0.52rem + 0.42vw, 15px); line-height: 1.4;
  background: linear-gradient(170deg, #fdfdff 0%, #f2f4ff 45%, #7f8def 100%);
  box-shadow: 0 60px 140px -50px rgb(4 6 70 / 75%), 0 0 0 1px rgb(255 255 255 / 30%);
  padding: var(--pad);
}
.ws::after { /* the cobalt pooling at the foot, as in the app */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 55% at 60% 118%, #2b46e0 0%, rgb(43 70 224 / 0%) 60%);
}
.ws > * { position: relative; z-index: 1; }
.ws__bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ws__hello { font-family: var(--font-display); font-weight: 500; font-size: 1.95em; color: var(--cobalt); line-height: 1; padding-top: 0.14em; display: flex; align-items: center; gap: 0.7em; }
.ws__burger { width: 1em; height: 0.7em; border-block: 2px solid var(--cobalt); position: relative; flex: none; font-size: 0.62em; margin-top: -0.3em; }
.ws__burger::after { content: ''; position: absolute; inset: 50% 0 auto; height: 2px; margin-top: -1px; background: var(--cobalt); }
.ws__user { display: flex; align-items: center; gap: 0.9em; color: #3a4270; font-weight: 500; }
.ws__avatar { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.9em; }
.ws__bell { position: relative; width: 2.6em; height: 2.6em; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgb(43 70 224 / 45%); }
.ws__bell svg { width: 1.15em; height: 1.15em; }
.ws__bell i { position: absolute; top: -0.2em; right: -0.2em; min-width: 1.5em; height: 1.5em; border-radius: 999px; background: var(--urgent); color: #fff; font-style: normal; font-size: 0.68em; font-weight: 700; display: grid; place-items: center; }
.ws__sub { display: flex; align-items: center; justify-content: space-between; gap: 1.5em; margin-top: 1.4em; color: #3a4270; font-size: 1.12em; }
.ws__search { flex: 0 1 46%; display: flex; align-items: center; gap: 0.8em; height: 3.2em; padding: 0 1.4em; border-radius: 999px; background: rgb(255 255 255 / 70%); box-shadow: inset 0 0 0 1px #e0e4f6; color: var(--periwinkle); font-size: 0.9em; white-space: nowrap; overflow: hidden; }
.ws__search svg { width: 1.1em; height: 1.1em; flex: none; color: var(--cobalt); }
.ws__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(10px, 1.4vw, 20px); margin-top: 1.6em; }
.ws__col { display: grid; gap: clamp(10px, 1.4vw, 20px); grid-template-rows: 1fr auto; min-width: 0; }
@media (max-width: 760px) { .ws__grid { grid-template-columns: 1fr; } .ws__user span, .ws__search { display: none; } }

.panel { background: rgb(255 255 255 / 92%); border-radius: 1.5em; padding: 1.5em 1.6em 1.6em; min-width: 0; }
.panel--tint { background: rgb(238 241 255 / 90%); }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; margin-bottom: 1.15em; }
.label { font-weight: 600; font-size: 0.78em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cobalt); }
.label--ai { color: var(--orange); display: inline-flex; align-items: center; gap: 0.6em; }
.label--ai::before { content: ''; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--orange); }
.panel__link { color: var(--cobalt); font-weight: 500; font-size: 0.95em; white-space: nowrap; }

/* day timeline */
.tl { position: relative; display: grid; grid-template-columns: 3.4em 1fr; background: #fff; border-radius: 1.1em; padding: 0.9em 0.9em 0.9em 0.4em; box-shadow: 0 10px 30px -22px rgb(43 70 224 / 50%); }
.tl__hours { display: grid; grid-auto-rows: 4.744em; color: var(--mist); font-size: 0.78em; text-align: right; padding-right: 1em; }
.tl__hours span { transform: translateY(-0.6em); }
.tl__lane { position: relative; display: grid; grid-auto-rows: 3.7em; background-image: linear-gradient(#eef0f8 1px, transparent 1px); background-size: 100% 3.7em; }
.tl__lane > * { margin: 0.22em 0; }
.ev { border-radius: 0.75em; padding: 0.55em 0.9em; display: flex; align-items: center; justify-content: space-between; gap: 0.8em; background: #eef1ff; border-left: 3px solid var(--cobalt); min-width: 0; }
.ev b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev small { display: block; font-size: 0.82em; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev > div { min-width: 0; }
.ev--screen { background: #f3f4fd; border-left-color: var(--periwinkle); }
.ev--enroll { background: var(--ok-bg); border-left-color: var(--ok); }
.ev--open { background: none; border: 1.5px dashed #c3c9e8; color: var(--mist); }
.ev__state { font-size: 0.82em; color: var(--mist); white-space: nowrap; }
.chip-urgent { font-size: 0.8em; color: #e0522f; background: var(--urgent-bg); border-radius: 999px; padding: 0.25em 0.8em; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5em; }
.chip-urgent::before { content: ''; width: 0.45em; height: 0.45em; border-radius: 50%; background: currentColor; }
.btn-mini { background: var(--cobalt); color: #fff; border-radius: 999px; padding: 0.5em 1.1em; font-weight: 600; font-size: 0.84em; white-space: nowrap; }
.now { position: absolute; left: -0.3em; right: 0; height: 0; border-top: 2px solid var(--urgent); z-index: 3; margin: 0 !important; top: 22%; animation: now 60s linear infinite; }
.now::before { content: ''; position: absolute; left: -0.3em; top: -0.42em; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--urgent); }
@keyframes now { to { top: 31%; } }

/* needs your action */
.acts { display: grid; gap: 0.75em; }
.act { display: flex; align-items: center; justify-content: space-between; gap: 1em; border-radius: 1em; padding: 0.95em 1.15em; box-shadow: inset 0 0 0 1px #e6e8f4; background: #fff; min-width: 0; }
.act > div { min-width: 0; }
.act b { font-weight: 600; font-size: 1.06em; display: block; }
.act b span { font-weight: 400; color: #3a4270; }
.act small { color: var(--slate); font-size: 0.92em; display: block; }
.act small.warn { color: #e0522f; }
.act--hidden { box-shadow: none; border: 1.5px dashed #d5d9ee; background: rgb(255 255 255 / 60%); }
.act__btn { flex: none; border-radius: 999px; padding: 0.62em 1.25em; font-weight: 500; color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); font-size: 0.95em; white-space: nowrap; }
.act--hidden .act__btn { color: var(--periwinkle); box-shadow: inset 0 0 0 1.5px var(--periwinkle); }
.act--new { position: relative; display: none; }
.act--new.in { display: flex; animation: arrive 1.1s var(--ease-out) both; box-shadow: inset 0 0 0 1.5px rgb(250 77 46 / 55%), 0 16px 34px -22px rgb(250 77 46 / 70%); }
.act--new b i { font-style: normal; font-size: 0.66em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-right: 0.7em; vertical-align: 0.12em; }
@keyframes arrive { from { opacity: 0; transform: translateY(-14px) scale(0.97); } }

/* the big picture */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75em; }
.tile { background: #f6f7fc; border-radius: 1em; padding: 1.05em 1.15em 1.1em; }
.tile b { font-family: var(--font-display); font-weight: 500; font-size: 2.3em; line-height: 1; display: block; padding-top: 0.12em; }
.tile b small { font-size: 0.5em; color: var(--slate); font-family: var(--font-ui); font-weight: 500; }
.tile span { font-size: 0.74em; letter-spacing: 0.12em; text-transform: uppercase; color: #3a4270; font-weight: 500; }
.pace { height: 0.5em; border-radius: 999px; background: rgb(43 70 224 / 14%); margin-top: 1.4em; overflow: hidden; }
.pace i { display: block; height: 100%; width: var(--w, 43%); border-radius: inherit; background: var(--cobalt); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-out) 0.3s; }
.in .pace i, .pace.in i { transform: none; }
.pace-note { margin-top: 0.8em; color: #3a4270; font-size: 0.95em; }

/* ---------- the problem ---------- */

.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 54px); margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--rule); padding-top: clamp(28px, 3.4vw, 46px); }
.stat__n { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.6rem, 2rem + 6vw, 7.8rem); line-height: 0.9; letter-spacing: -0.02em; padding-top: 0.1em; }
.stat p { margin-top: 0.9em; color: var(--ink-soft); max-width: 21em; }
.stat cite { display: block; margin-top: 1em; font-style: normal; font-size: 0.78rem; color: var(--ink-faint); }
.stat cite a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .problem__grid { grid-template-columns: 1fr; } }

/* ---------- the day: chapters with a sticky scene ---------- */

.day { padding-bottom: clamp(40px, 6vh, 90px); }
.chapters { margin-top: clamp(50px, 7vw, 110px); }
.chapter { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 90px); align-items: start; min-height: 112vh; padding-bottom: 30px; }
/* The bottom padding is the sliver of air between one pinned scene and the
   next: the incoming scene comes right up to the pinned one and pushes it off,
   without the two ever quite touching. */
.chapter__copy { position: sticky; top: 30vh; display: grid; gap: 22px; padding-bottom: 22vh; }
.chapter__n { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.2em; color: var(--ink-faint); display: flex; align-items: center; gap: 14px; }
.chapter__n::after { content: ''; height: 1px; width: 64px; background: var(--rule); }
.chapter__scene { position: sticky; top: max(96px, calc(50vh - 290px)); }
.chapter__points { display: grid; gap: 12px; margin-top: 6px; }
.chapter__points li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-soft); font-size: 0.98rem; }
.chapter__points li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); margin-top: 0.62em; }
@media (max-width: 900px) {
  .chapter { grid-template-columns: 1fr; min-height: 0; gap: 30px; margin-bottom: 96px; padding-bottom: 0; }
  .chapter__copy, .chapter__scene { position: static; padding-bottom: 0; }
}

.scene {
  --pad: clamp(18px, 2.2vw, 32px);
  position: relative; border-radius: var(--r-xl); padding: var(--pad);
  background: var(--sheet); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 50px 110px -60px rgb(22 32 196 / 70%);
  font-size: clamp(12.5px, 0.6rem + 0.36vw, 15px); line-height: 1.45; color: var(--navy);
  opacity: 0.25; transform: translateY(40px) scale(0.97); transition: opacity 0.9s var(--ease-out), transform 1.2s var(--ease-out);
}
.scene.in { opacity: 1; transform: none; }
.scene__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.3em; }
.scene__title { font-family: var(--font-display); font-size: 1.75em; font-weight: 400; line-height: 1.1; padding-top: 0.12em; }
.scene__meta { color: var(--slate); font-size: 0.92em; margin-top: 0.2em; }
.badge-ai { display: inline-flex; align-items: center; gap: 0.55em; font-size: 0.78em; font-weight: 600; color: var(--orange); background: rgb(250 77 46 / 9%); border-radius: 999px; padding: 0.42em 0.95em; white-space: nowrap; }
.badge-ai::before { content: ''; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--orange); animation: dot 2.6s var(--ease-io) infinite; }

/* scene 1: the packet */
.crits { display: grid; gap: 0.6em; }
.crit { display: grid; grid-template-columns: 1.7em 1fr auto; gap: 0.9em; align-items: start; padding: 0.85em 1em; border-radius: 0.95em; background: #f6f7fc; opacity: 0; transform: translateX(-14px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i) * 260ms + 350ms); }
.scene.in .crit { opacity: 1; transform: none; }
.crit__tick { width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; }
.crit__tick svg { width: 0.95em; height: 0.95em; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.6s var(--ease-out); transition-delay: calc(var(--i) * 260ms + 700ms); }
.scene.in .crit__tick svg { stroke-dashoffset: 0; }
.crit b { font-weight: 600; display: block; }
.crit q { display: block; quotes: none; color: var(--slate); font-size: 0.92em; margin-top: 0.15em; border-left: 2px solid #d5d9ee; padding-left: 0.75em; }
.crit__state { font-size: 0.8em; font-weight: 600; color: var(--ok); white-space: nowrap; padding-top: 0.25em; }
.crit--open { background: var(--urgent-bg); }
.crit--open .crit__tick { background: #fff; color: #e0522f; }
.crit--open .crit__state { color: #e0522f; }
.crit--open q { border-left-color: rgb(224 82 47 / 35%); }
.scene__foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 1.2em; padding-top: 1.1em; border-top: 1px solid var(--hair); color: var(--slate); font-size: 0.92em; }

/* scene 2: consent before identity */
.consent { display: grid; gap: 1.1em; }
.steps { display: flex; align-items: center; gap: 0.8em; font-size: 0.9em; color: var(--mist); }
.steps span { display: inline-flex; align-items: center; gap: 0.55em; white-space: nowrap; transition: color 0.5s; }
.steps span::before { content: ''; width: 1.35em; height: 1.35em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color 0.5s, box-shadow 0.5s; }
.steps i { flex: 1; height: 1.5px; background: #dfe3f3; position: relative; overflow: hidden; min-width: 14px; }
.steps i::after { content: ''; position: absolute; inset: 0; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-io); }
.consent[data-step='1'] .steps span:nth-of-type(1),
.consent[data-step='2'] .steps span:nth-of-type(-n + 2),
.consent[data-step='3'] .steps span { color: var(--cobalt); }
.consent[data-step='2'] .steps span:nth-of-type(1)::before,
.consent[data-step='3'] .steps span:nth-of-type(-n + 2)::before { background: var(--cobalt); box-shadow: none; }
.consent[data-step='3'] .steps span:nth-of-type(3)::before { background: var(--ok); box-shadow: none; }
.consent[data-step='3'] .steps span:nth-of-type(3) { color: var(--ok); }
.consent[data-step='2'] .steps i:nth-of-type(1)::after,
.consent[data-step='3'] .steps i::after { transform: none; }
.idcard { border-radius: 1.2em; padding: 1.3em 1.4em; background: #fff; border: 1.5px dashed #c9cfea; transition: border-color 0.8s, box-shadow 0.8s; display: grid; gap: 0.95em; }
.consent[data-step='3'] .idcard { border-color: transparent; box-shadow: inset 0 0 0 1px var(--hair), 0 24px 50px -34px rgb(43 70 224 / 60%); }
.idcard__row { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.idcard__who { display: flex; align-items: center; gap: 0.95em; min-width: 0; }
.idcard__face { width: 3.1em; height: 3.1em; border-radius: 50%; background: #e9ecfa; display: grid; place-items: center; color: var(--periwinkle); font-weight: 600; flex: none; transition: background-color 0.8s, color 0.8s; }
.consent[data-step='3'] .idcard__face { background: var(--cobalt); color: #fff; }
.veil { position: relative; display: inline-block; }
.veil > span { transition: filter 1.1s var(--ease-out), opacity 1.1s; filter: blur(7px); opacity: 0.55; user-select: none; }
.consent[data-step='3'] .veil > span { filter: none; opacity: 1; }
.idcard__name { font-weight: 600; font-size: 1.2em; }
.idcard__sub { color: var(--slate); font-size: 0.92em; }
.idcard__lock { font-size: 0.82em; font-weight: 600; color: var(--slate); background: #f1f3fb; border-radius: 999px; padding: 0.42em 0.95em; white-space: nowrap; transition: color 0.6s, background-color 0.6s; }
.consent[data-step='3'] .idcard__lock { color: var(--ok); background: var(--ok-bg); }
.idgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9em; padding-top: 0.95em; border-top: 1px solid var(--hair); }
.idgrid dt { font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); }
.idgrid dd { margin: 0.2em 0 0; font-weight: 500; }
.known { display: flex; flex-wrap: wrap; gap: 0.5em; }
.known span { font-size: 0.86em; background: #eef1ff; color: #3a4270; border-radius: 999px; padding: 0.38em 0.9em; }

/* scene 3: the week */
.week { display: grid; grid-template-columns: 2.6em repeat(5, minmax(0, 1fr)); column-gap: 0.45em; }
.week__day { text-align: center; font-size: 0.86em; color: var(--slate); padding: 0.45em 0; border-radius: 0.7em; margin-bottom: 0.6em; }
.week__day b { color: var(--navy); font-weight: 600; }
.week__day.is-today { background: #eef1ff; color: var(--cobalt); }
.week__day.is-today b { color: var(--cobalt); }
.week__hours { grid-row: 2; display: grid; grid-auto-rows: 3.5em; align-content: start; font-size: 0.72em; color: var(--mist); text-align: right; padding-right: 0.5em; }
.week__hours span { transform: translateY(-0.6em); }
.week__col { grid-row: 2; display: grid; grid-template-rows: repeat(6, 2.52em); row-gap: 0; border-left: 1px solid #eef0f8; padding-left: 0.3em; position: relative; }
.slot { border-radius: 0.6em; padding: 0.4em 0.6em; font-size: 0.8em; background: #eef1ff; border-left: 3px solid var(--cobalt); margin: 0.15em 0; overflow: hidden; min-width: 0; }
.slot b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot small { display: block; color: var(--slate); font-size: 0.9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot--screen { background: #f3f4fd; border-left-color: var(--periwinkle); }
.slot--enroll { background: var(--ok-bg); border-left-color: var(--ok); }
.slot--deadline { background: var(--urgent-bg); border-left-color: var(--urgent); }
.slot--deadline b { color: #e0522f; }
.slot--open { background: none; border: 1.5px dashed #c3c9e8; color: var(--mist); }
.slot--pick { position: relative; transition: background-color 0.7s, border-color 0.7s, box-shadow 0.7s; }
.slot--pick .a, .slot--pick .b { transition: opacity 0.5s; }
.slot--pick .b { position: absolute; inset: 0.4em 0.6em; opacity: 0; }
.slot--pick.is-booked { background: #eef1ff; border: 0; border-left: 3px solid var(--cobalt); color: var(--navy); box-shadow: 0 0 0 4px rgb(250 77 46 / 16%); }
.slot--pick.is-booked .a { opacity: 0; }
.slot--pick.is-booked .b { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 1.2em; margin-top: 1.1em; padding-top: 1em; border-top: 1px solid var(--hair); font-size: 0.86em; color: var(--slate); }
.legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.legend span::before { content: ''; width: 0.7em; height: 0.7em; border-radius: 0.2em; background: var(--c); }
.toast { position: absolute; right: calc(var(--pad) * -0.4); bottom: calc(var(--pad) * 2.2); max-width: 19em; background: #fff; border-radius: 1.1em; padding: 0.95em 1.15em; box-shadow: 0 30px 60px -28px rgb(22 32 196 / 75%), inset 0 0 0 1.5px rgb(250 77 46 / 40%); display: grid; gap: 0.2em; opacity: 0; transform: translateY(16px) scale(0.96); transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast b { font-weight: 600; }
.toast small { color: var(--slate); }
@media (max-width: 560px) { .toast { right: 8px; left: 8px; max-width: none; } .week { font-size: 0.8em; grid-template-columns: 2.4em repeat(5, minmax(0, 1fr)); column-gap: 0.2em; } .week .slot { padding: 0.35em 0.4em; } .week .slot small { display: none; } .week .slot--open { font-size: 0; } }

/* scene 4: the picture */
.trials { display: grid; gap: 0.7em; margin-top: 1.2em; }
.trial { display: grid; grid-template-columns: 1fr auto; gap: 0.3em 1em; padding: 0.95em 1.1em; background: #f6f7fc; border-radius: 1em; align-items: center; }
.trial b { font-weight: 600; }
.trial small { color: var(--slate); }
.trial .pace { grid-column: 1 / -1; margin-top: 0.5em; }
.trial__state { font-size: 0.8em; font-weight: 600; border-radius: 999px; padding: 0.3em 0.85em; color: var(--ok); background: var(--ok-bg); white-space: nowrap; }
.trial__state.is-behind { color: #e0522f; background: var(--urgent-bg); }
.trial.is-behind .pace i { background: var(--urgent); }

/* ---------- ask salp ---------- */

.ask__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
@media (max-width: 900px) { .ask__grid { grid-template-columns: 1fr; } }
.ask__copy { display: grid; gap: 26px; position: sticky; top: 22vh; }
@media (max-width: 900px) { .ask__copy { position: static; } }
.console {
  border-radius: var(--r-xl); background: rgb(255 255 255 / 10%);
  backdrop-filter: blur(30px) saturate(150%); -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%), 0 60px 120px -60px rgb(3 5 60 / 80%);
  /* One column pinned to the console's own width. Left to size itself, the
     column grows to fit its widest child and the overflow is cut off at the
     right edge, which is what clipped the visitor's bubble on phones. */
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: min(640px, 76vh); overflow: hidden;
}
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 18px 24px; border-bottom: 1px solid rgb(255 255 255 / 14%); font-size: 0.86rem; color: rgb(255 255 255 / 70%); }
.console__bar b { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 0.7em; padding-top: 0.15em; }
.console__bar b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: -0.2em; animation: dot 2.6s var(--ease-io) infinite; }
/* The bottom padding is deliberately larger than the 12px a new message rises
   through as it appears. A message that starts below its resting place would
   otherwise overflow the log for a moment and flash the scrollbar. */
.console__log { padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 16px; overflow-x: hidden; overflow-y: auto; max-height: 52vh; }
.msg { flex: none; max-width: 88%; min-width: 0; overflow-wrap: anywhere; animation: msg 0.7s var(--ease-out) both; }
@keyframes msg { from { opacity: 0; transform: translateY(12px); } }
.msg--you { align-self: flex-end; background: #fff; color: var(--cobalt-deep); border-radius: 20px 20px 6px 20px; padding: 12px 18px; font-weight: 500; }
.msg--salp { align-self: flex-start; color: #fff; font-size: 1.06rem; line-height: 1.55; }
.msg--salp p + p { margin-top: 0.8em; }
.msg--salp .caret { display: inline-block; width: 0.5em; height: 1.05em; background: var(--orange); vertical-align: -0.18em; margin-left: 2px; animation: caret 0.9s steps(2) infinite; border-radius: 2px; }
@keyframes caret { 50% { opacity: 0; } }
.msg__src { display: block; margin-top: 0.9em; font-size: 0.78rem; color: rgb(255 255 255 / 55%); }
.console__foot { padding: 2px 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; padding: 9px 16px; font-size: 0.88rem; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 34%); transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease-out); text-align: left; }
.chip:hover { background: #fff; color: var(--cobalt-deep); transform: translateY(-1px); }
.chip[disabled] { opacity: 0.35; pointer-events: none; }
.askbar { display: flex; align-items: center; gap: 8px; background: rgb(255 255 255 / 14%); border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 20%); }
/* width: 0 with flex: 1 lets the field give way first, so on a narrow phone the
   Ask button keeps its full width instead of being pushed past the edge. */
.askbar input { flex: 1 1 0; width: 0; min-width: 0; background: none; border: 0; outline: 0; color: #fff; height: 44px; }
.askbar input::placeholder { color: rgb(255 255 255 / 55%); }
.askbar button { flex: none; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--orange); color: #fff; font-weight: 600; transition: transform 0.4s var(--ease-out), background-color 0.3s; }
.askbar button:hover { transform: scale(1.04); }
.console__fine { font-size: 0.76rem; color: rgb(255 255 255 / 50%); padding: 0 6px; }

/* ---------- the chain ---------- */

.chain { text-align: center; }
.chain .s__head { margin-inline: auto; justify-items: center; }
.chain .lede { margin-inline: auto; }
.links { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(60px, 9vw, 130px); }
.link { position: relative; padding: 0 clamp(4px, 0.8vw, 14px); display: grid; justify-items: center; align-content: start; gap: 26px; min-width: 0; }
.link__body {
  position: relative; width: 100%; aspect-ratio: 1.75 / 1; border-radius: 999px;
  background: linear-gradient(160deg, rgb(255 255 255 / 26%), rgb(255 255 255 / 4%) 60%);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 55%), inset 0 -30px 60px -30px rgb(255 255 255 / 30%), 0 40px 80px -50px rgb(3 5 60 / 90%);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.link__nucleus { position: absolute; right: 9%; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: var(--orange); z-index: 2; animation: nucleus 5.2s var(--ease-io) infinite; animation-delay: calc(var(--i) * 0.65s); }
.link__role { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 0.6rem + 1.25vw, 1.9rem); margin-right: 8%; line-height: 1; padding-top: 0.14em; position: relative; z-index: 2; }
.link__n { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.2em; color: var(--ink-faint); }
.link h3 { font-weight: 600; font-size: 1.08rem; }
.link p { color: var(--ink-soft); font-size: 0.96rem; max-width: 17em; margin-top: 8px; }
.link--us .link__body { background: linear-gradient(160deg, #fff, rgb(255 255 255 / 86%)); color: var(--cobalt-deep); }
@keyframes nucleus { 0%, 100% { box-shadow: 0 0 0 0 rgb(250 77 46 / 0%); } 14% { box-shadow: 0 0 0 10px rgb(250 77 46 / 28%), 0 0 30px 8px rgb(250 77 46 / 55%); } 40% { box-shadow: 0 0 0 0 rgb(250 77 46 / 0%); } }
@media (max-width: 820px) {
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .link { align-content: start; }
}
.chain__coda { margin: clamp(70px, 9vw, 130px) auto 0; max-width: 21em; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3.1rem); line-height: 1.12; }

/* ---------- principles ---------- */

.principles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(50px, 7vw, 96px); }
@media (max-width: 760px) { .principles__grid { grid-template-columns: 1fr; } }
.principle {
  position: relative; border-radius: var(--r-xl); padding: clamp(26px, 3.2vw, 46px);
  background: var(--sheet); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  display: grid; gap: 16px; align-content: start; min-height: clamp(240px, 24vw, 330px);
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
  box-shadow: 0 40px 90px -70px rgb(22 32 196 / 80%);
}
.principle:hover { transform: translateY(-6px); box-shadow: 0 60px 110px -60px rgb(22 32 196 / 85%); }
.principle__n { font-family: var(--font-display); letter-spacing: 0.2em; font-size: 0.86rem; color: var(--cobalt); }
.principle h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.06; color: var(--navy); padding-top: 0.1em; }
.principle p { color: var(--slate); max-width: 30em; }

/* ---------- request access ---------- */

.cta { padding-bottom: clamp(70px, 10vh, 120px); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 110px); align-items: end; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }
.cta__copy { display: grid; gap: 28px; }
.form { border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 36px); background: #fff; color: var(--navy); display: grid; gap: 14px; box-shadow: 0 60px 120px -60px rgb(3 5 60 / 90%); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--cobalt); }
.field input, .field select {
  height: 54px; border-radius: 14px; border: 0; background: #f3f4fd; padding: 0 16px; outline: 0; width: 100%;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.3s, background-color 0.3s; appearance: none;
}
.field input:focus, .field select:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.field input::placeholder { color: var(--mist); }
.form .btn { justify-content: center; margin-top: 6px; }
.form__fine { font-size: 0.8rem; color: var(--mist); text-align: center; }
.form__done { display: none; gap: 10px; padding: 12px 4px; }
.form__done h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--cobalt); line-height: 1.05; }
.form.is-done > :not(.form__done) { display: none; }
.form.is-done .form__done { display: grid; animation: msg 0.8s var(--ease-out) both; }

/* ---------- foot ---------- */

.foot { padding: clamp(60px, 8vw, 110px) 0 34px; }
/* The footer signs off with the wordmark alone, large, in the same weight as
   the nav. The mark stays in the nav; repeating it here was one logo too many. */
.foot__mark { font-family: var(--font-display); font-weight: 500; font-size: clamp(6rem, 27vw, 25rem); line-height: 0.8; letter-spacing: -0.005em; color: #fff; padding-top: 0.16em; display: flex; align-items: center; gap: 0.36em; user-select: none; }
.foot__mark span { display: block; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; margin-top: clamp(30px, 4vw, 54px); padding-top: 22px; border-top: 1px solid var(--rule); font-size: 0.86rem; color: var(--ink-soft); }
.foot__row p { max-width: 34em; }
.foot__row nav { display: flex; gap: 26px; }
.foot__row a:hover { color: #fff; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .lines .line > span, [data-reveal], .scene { transform: none; opacity: 1; }
  .hero__stage .ws { transform: none; }
}

/* scene 4: ask the chart */
.qa { display: grid; gap: 0.9em; }
.qa__q { justify-self: end; max-width: 80%; background: var(--cobalt); color: #fff; border-radius: 1.2em 1.2em 0.35em 1.2em; padding: 0.7em 1.1em; font-weight: 500; }
.qa__a { max-width: 92%; background: #f6f7fc; border-radius: 1.2em 1.2em 1.2em 0.35em; padding: 0.95em 1.15em; }
.qa__src { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 0.75em; }
.qa__src span { font-size: 0.8em; font-weight: 600; color: var(--cobalt); background: #fff; box-shadow: inset 0 0 0 1px #d5dbf6; border-radius: 999px; padding: 0.28em 0.85em; }
.qa > * { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.scene.in .qa > * { opacity: 1; transform: none; }
.scene.in .qa > :nth-child(1) { transition-delay: 0.3s; }
.scene.in .qa > :nth-child(2) { transition-delay: 1s; }
.scene.in .qa > :nth-child(3) { transition-delay: 2.1s; }
.scene.in .qa > :nth-child(4) { transition-delay: 2.8s; }
@media (prefers-reduced-motion: reduce) { .qa > *, .crit { opacity: 1; transform: none; } .crit__tick svg { stroke-dashoffset: 0; } }

.idcard__lock .when-signed { display: none; }
.consent[data-step='3'] .idcard__lock .when-hidden { display: none; }
.consent[data-step='3'] .idcard__lock .when-signed { display: inline; }

/* ============ the visit: scribe, history, matching ============ */

.tabs { display: flex; gap: 0.5em; margin-top: 1.3em; flex-wrap: wrap; }
.tabs span { padding: 0.55em 1.15em; border-radius: 999px; font-weight: 500; color: #3a4270; background: rgb(255 255 255 / 55%); white-space: nowrap; position: relative; }
.tabs .is-on { background: var(--cobalt); color: #fff; box-shadow: 0 8px 20px -8px rgb(43 70 224 / 70%); }
.tabs .has-dot::after { content: ''; position: absolute; top: 0.3em; right: 0.35em; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--orange); animation: dot 2.6s var(--ease-io) infinite; }

.rec { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.5em 1em; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: 0.88em; white-space: nowrap; box-shadow: 0 6px 18px -10px rgb(43 70 224 / 55%); }
.rec i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--urgent); animation: dot 1.8s var(--ease-io) infinite; }

.meter { display: inline-flex; align-items: center; gap: 0.18em; height: 1.1em; }
.meter i { width: 0.2em; height: 100%; border-radius: 2px; background: var(--cobalt); transform-origin: center; animation: meter 1.1s ease-in-out infinite; }
.meter i:nth-child(2) { animation-delay: -0.3s; } .meter i:nth-child(3) { animation-delay: -0.6s; } .meter i:nth-child(4) { animation-delay: -0.15s; } .meter i:nth-child(5) { animation-delay: -0.75s; }
@keyframes meter { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

.note { display: grid; gap: 0.35em; }
.note h4 { margin: 0.9em 0 0; font: 600 0.74em/1.2 var(--font-ui); letter-spacing: 0.13em; text-transform: uppercase; color: var(--cobalt); }
.note h4:first-child, .note > div:first-child h4 { margin-top: 0; }
.note h4.is-wait { color: var(--mist); }
.note p { color: #2a3050; line-height: 1.55; min-height: 1.55em; }
.note .typing::after { content: ''; display: inline-block; width: 0.45em; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--orange); border-radius: 2px; animation: caret 0.9s steps(2) infinite; }
.note .typing.is-done::after { display: none; }
.skeleton { display: grid; gap: 0.5em; padding-top: 0.2em; }
.skeleton i { height: 0.7em; border-radius: 999px; background: linear-gradient(90deg, #eef0f8, #f7f8fd, #eef0f8); background-size: 200% 100%; animation: sheen 1.8s linear infinite; }
.skeleton i:last-child { width: 62%; }
@keyframes sheen { to { background-position: -200% 0; } }

.tx { display: grid; gap: 0.75em; }
.tx p { color: #2a3050; line-height: 1.5; }
.tx b { display: block; font-size: 0.72em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); font-weight: 600; margin-bottom: 0.1em; }

.screening { color: var(--slate); padding: 0.4em 0 0.2em; display: flex; align-items: center; gap: 0.5em; }
.dots { display: inline-flex; gap: 0.25em; }
.dots i { width: 0.32em; height: 0.32em; border-radius: 50%; background: var(--orange); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; } .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.2; } 40% { opacity: 1; } }
.is-matched .screening { display: none; }

/* 01 scribe */
.scribe { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.4em; }
.scribe .tx { align-content: start; padding-right: 1.4em; border-right: 1px solid var(--hair); }
.scribe .note { align-content: start; gap: 1em; }
.tx--seq p, .note--seq > div { opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i) * 620ms + 300ms); }
.scene.in .tx--seq p, .scene.in .note--seq > div { opacity: 1; transform: none; }
@media (max-width: 560px) { .scribe { grid-template-columns: 1fr; } .scribe .tx { border-right: 0; padding-right: 0; padding-bottom: 1.2em; border-bottom: 1px solid var(--hair); } }

/* 02 smart history */
.sugs { display: grid; gap: 0.6em; }
.sug { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.85em 1em; border-radius: 0.95em; background: #fff; box-shadow: inset 0 0 0 1.5px rgb(250 77 46 / 30%); opacity: 0; transform: translateX(-14px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out), box-shadow 0.6s, background-color 0.6s; transition-delay: calc(var(--i) * 240ms + 300ms), calc(var(--i) * 240ms + 300ms), 0s, 0s; }
.scene.in .sug { opacity: 1; transform: none; }
.sug > div:first-child { min-width: 0; }
.sug__kind { display: block; font-size: 0.7em; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: var(--orange); }
.sug b { display: block; font-weight: 600; }
.sug small { display: block; color: var(--slate); font-size: 0.9em; }
.sug__acts { display: flex; gap: 0.4em; flex: none; align-items: center; }
.sug__yes, .sug__no { border-radius: 999px; padding: 0.42em 0.95em; font-size: 0.86em; font-weight: 600; white-space: nowrap; }
.sug__yes { background: var(--cobalt); color: #fff; }
.sug__no { color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--hair); }
.sug__done { display: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--ok-bg); color: var(--ok); place-items: center; }
.sug__done svg { width: 1em; height: 1em; }
.sug .when-done { display: none; }
.sug.is-accepted { box-shadow: inset 0 0 0 1px var(--hair); background: #f6f7fc; }
.sug.is-accepted .sug__kind { color: var(--cobalt); }
.sug.is-accepted .sug__yes, .sug.is-accepted .sug__no, .sug.is-accepted .when-open { display: none; }
.sug.is-accepted .sug__done { display: grid; animation: msg 0.6s var(--ease-out) both; }
.sug.is-accepted .when-done { display: block; }
.keys { margin-top: 1.2em; padding-top: 1.1em; border-top: 1px solid var(--hair); display: grid; gap: 0.5em; }
.keys p { color: #2a3050; }
.src { display: inline-block; font-size: 0.8em; font-weight: 600; color: var(--cobalt); box-shadow: inset 0 0 0 1px #d5dbf6; border-radius: 999px; padding: 0.16em 0.75em; margin-left: 0.3em; white-space: nowrap; }
@media (max-width: 560px) { .sug { flex-direction: column; align-items: flex-start; } }

/* 03 trial matching */
.mts { display: grid; gap: 0.6em; }
.mt { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.9em 1.1em; border-radius: 0.95em; background: #f6f7fc; transition: opacity 0.8s var(--ease-out), max-height 0.9s var(--ease-io), padding 0.9s var(--ease-io), margin 0.9s var(--ease-io), box-shadow 0.8s, background-color 0.8s; max-height: 6em; overflow: hidden; }
.mt > div { min-width: 0; }
.mt b { font-weight: 600; }
.mt small { display: block; color: var(--slate); font-size: 0.9em; }
.mt__state { font-size: 0.86em; color: var(--slate); white-space: nowrap; }
.mt__state b { color: var(--cobalt); }
.mt--out .mt__state, .mt--out small { opacity: 0; transition: opacity 0.5s; }
.mt--fit .mt__state { opacity: 0; transition: opacity 0.6s 0.3s; }
.is-narrowed .mt--out .mt__state, .is-narrowed .mt--out small, .is-narrowed .mt--fit .mt__state { opacity: 1; }
.is-narrowed .mt--out { opacity: 0.45; }
.is-narrowed .mt--fit { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt), 0 18px 40px -26px rgb(43 70 224 / 70%); }
.scene__meta .when-narrow { display: none; }
.is-narrowed .scene__meta .when-wide { display: none; }
.is-narrowed .scene__meta .when-narrow { display: inline; }
.ask-q { margin-top: 1.1em; padding: 1.1em 1.15em; border-radius: 1.1em; background: rgb(250 77 46 / 6%); box-shadow: inset 0 0 0 1.5px rgb(250 77 46 / 26%); display: grid; gap: 0.6em; opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.ask-q .label { color: var(--orange); }
.ask-q p { font-weight: 600; font-size: 1.08em; }
.is-asking .ask-q { opacity: 1; transform: none; }
.opts { display: flex; flex-wrap: wrap; gap: 0.45em; }
.opts span { border-radius: 999px; padding: 0.5em 1.05em; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hair); font-weight: 500; font-size: 0.92em; transition: background-color 0.5s, color 0.5s, box-shadow 0.5s; }
.is-answered .opt--pick { background: var(--cobalt); color: #fff; box-shadow: none; }
.ready { opacity: 0; transition: opacity 0.7s; color: var(--ok); font-weight: 600; }
.is-answered .ready { opacity: 1; }
.scene__foot .btn-mini { opacity: 0.35; transition: opacity 0.6s; }
.is-answered .scene__foot .btn-mini, .scene:not([data-play='match']) .scene__foot .btn-mini { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .tx--seq p, .note--seq > div, .sug, .ask-q, .mt__state, .mt small, .ready { opacity: 1 !important; transform: none !important; } }

.hero .display { font-size: clamp(2.9rem, 1rem + 7.1vw, 7.6rem); }

/* ============ principles, redrawn: each one shown, not just stated ============ */

.principles__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.principle { grid-column: span 5; padding: 0; overflow: hidden; gap: 0; min-height: 0; grid-template-rows: auto 1fr; }
.principle--wide { grid-column: span 7; }
@media (max-width: 900px) { .principle, .principle--wide { grid-column: 1 / -1; } }
.principle__copy { padding: clamp(22px, 2.6vw, 38px); display: grid; gap: 14px; align-content: start; }
.principle h3 { color: var(--cobalt); }
.principle--ink { background: linear-gradient(155deg, #2b46e0, #1620c4 70%); box-shadow: 0 50px 100px -60px rgb(22 32 196 / 95%); }
.principle--ink h3, .principle--ink .principle__n { color: #fff; }
.principle--ink p { color: rgb(255 255 255 / 80%); }

.vg {
  position: relative; height: clamp(190px, 19vw, 250px); display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 90% at 78% 110%, rgb(43 70 224 / 34%), transparent 70%),
    radial-gradient(60% 80% at 8% -10%, rgb(138 151 242 / 30%), transparent 70%),
    linear-gradient(170deg, #fdfdff, #eef1ff);
  font-size: clamp(13px, 0.7rem + 0.3vw, 15.5px); color: var(--navy);
}
.principle--ink .vg { background: radial-gradient(70% 90% at 80% 110%, rgb(255 255 255 / 22%), transparent 70%), radial-gradient(60% 80% at 0% -10%, rgb(10 13 110 / 55%), transparent 70%); }

/* 01: the switch has to be on before anything listens */
.vg-consent { align-content: center; gap: 1.1em; }
.vg-consent__row { display: flex; align-items: center; gap: 1.2em; background: #fff; border-radius: 999px; padding: 0.7em 0.8em 0.7em 1.5em; box-shadow: 0 24px 50px -28px rgb(22 32 196 / 70%); font-weight: 600; }
.vg-switch { width: 3.3em; height: 1.9em; border-radius: 999px; background: #dfe3f3; position: relative; animation: sw-track 7s var(--ease-io) infinite; }
.vg-switch i { position: absolute; top: 0.22em; left: 0.22em; width: 1.46em; height: 1.46em; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(10 13 110 / 30%); animation: sw-knob 7s var(--ease-io) infinite; }
.vg-consent__live { display: flex; align-items: center; gap: 0.9em; animation: sw-live 7s var(--ease-io) infinite; }
@keyframes sw-track { 0%, 18% { background: #dfe3f3; } 26%, 92% { background: var(--cobalt); } 100% { background: #dfe3f3; } }
@keyframes sw-knob { 0%, 18% { transform: none; } 26%, 92% { transform: translateX(1.4em); } 100% { transform: none; } }
@keyframes sw-live { 0%, 28% { opacity: 0; transform: translateY(8px); } 36%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }

/* 02: a claim, wired to its source */
.vg-source { grid-auto-flow: row; align-content: center; justify-items: start; padding-inline: 12%; gap: 0; }
.vg-source p { font-family: var(--font-display); font-size: 1.7em; line-height: 1.15; }
.vg-source__claim { background: linear-gradient(rgb(250 77 46 / 22%), rgb(250 77 46 / 22%)) no-repeat 0 88% / 0% 0.42em; animation: claim 6s var(--ease-io) infinite; }
.vg-source__wire { width: 1.5px; height: 2.2em; margin-left: 1.6em; background: var(--cobalt); transform-origin: top; animation: wire 6s var(--ease-io) infinite; }
.vg-source .src { margin-left: 0; background: #fff; font-size: 0.95em; padding: 0.4em 1em; animation: chip 6s var(--ease-out) infinite; }
@keyframes claim { 0%, 8% { background-size: 0% 0.42em; } 28%, 90% { background-size: 100% 0.42em; } 100% { background-size: 0% 0.42em; } }
@keyframes wire { 0%, 26% { transform: scaleY(0); } 40%, 90% { transform: none; } 100% { transform: scaleY(0); } }
@keyframes chip { 0%, 38% { opacity: 0; transform: translateY(-6px) scale(0.94); } 48%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 03: a draft, then a person */
.vg-review__sheet { position: relative; width: min(74%, 21em); background: #fff; border-radius: 1.2em; padding: 1.2em 1.3em 1.4em; display: grid; gap: 0.6em; justify-items: start; box-shadow: 0 30px 60px -30px rgb(3 5 60 / 80%); }
.vg-review__sheet > i { height: 0.62em; border-radius: 999px; background: #e9ecfa; width: 100%; }
.vg-review__sheet > i:nth-of-type(2) { width: 86%; } .vg-review__sheet > i:nth-of-type(3) { width: 58%; }
.vg-review__stamp { position: absolute; right: -0.9em; bottom: -0.9em; display: inline-flex; align-items: center; gap: 0.5em; background: var(--ok); color: #fff; font-weight: 600; font-size: 0.9em; border-radius: 999px; padding: 0.5em 1.1em 0.5em 0.8em; box-shadow: 0 14px 30px -12px rgb(3 5 60 / 70%); animation: stamp 6.5s var(--ease-out) infinite; }
.vg-review__stamp svg { width: 1.1em; height: 1.1em; }
@keyframes stamp { 0%, 34% { opacity: 0; transform: scale(1.5) rotate(-8deg); } 42%, 90% { opacity: 1; transform: rotate(-3deg); } 100% { opacity: 0; transform: rotate(-3deg); } }

/* 04: versions sit beside each other */
.vg-versions { grid-auto-flow: column; }
.vg-ver { grid-area: 1 / 1; width: 11.5em; background: #fff; border-radius: 1em; padding: 1em 1.1em 1.2em; display: grid; gap: 0.45em; box-shadow: 0 22px 46px -26px rgb(22 32 196 / 75%), inset 0 0 0 1px #e6e8f4; transform: translateX(calc((var(--k) - 1) * 1.1em)) translateY(calc((var(--k) - 1) * -0.5em)); animation: fan 8s var(--ease-io) infinite; }
.vg-ver b { font-weight: 600; }
.vg-ver span { font-size: 0.82em; color: var(--slate); }
.vg-ver i { height: 0.5em; border-radius: 999px; background: #e9ecfa; }
.vg-ver i:last-child { width: 62%; }
.vg-ver:last-child { box-shadow: 0 22px 46px -26px rgb(22 32 196 / 75%), inset 0 0 0 1.5px var(--cobalt); }
@keyframes fan { 0%, 12% { transform: translateX(calc((var(--k) - 1) * 1.1em)) translateY(calc((var(--k) - 1) * -0.5em)); } 32%, 84% { transform: translateX(calc((var(--k) - 1) * 9.4em)) rotate(calc((var(--k) - 1) * 3deg)); } 100% { transform: translateX(calc((var(--k) - 1) * 1.1em)) translateY(calc((var(--k) - 1) * -0.5em)); } }
@media (max-width: 560px) { .vg-ver { width: 8.6em; } @keyframes fan { 0%, 12% { transform: translateX(calc((var(--k) - 1) * 0.9em)); } 32%, 84% { transform: translateX(calc((var(--k) - 1) * 6.4em)) rotate(calc((var(--k) - 1) * 3deg)); } 100% { transform: translateX(calc((var(--k) - 1) * 0.9em)); } } }

@media (prefers-reduced-motion: reduce) {
  .vg-switch { background: var(--cobalt); } .vg-switch i { transform: translateX(1.4em); }
  .vg-consent__live, .vg-source .src, .vg-review__stamp { opacity: 1; transform: none; }
  .vg-source__claim { background-size: 100% 0.42em; } .vg-source__wire { transform: none; }
  .vg-ver { transform: translateX(calc((var(--k) - 1) * 9.4em)); }
}

/* ============ the vision: one thread through four people ============ */

.thread { position: relative; margin-top: clamp(40px, 6vw, 90px); text-align: left; }
.thread__wave { display: block; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); height: auto; overflow: visible; }
.thread__rail { fill: none; stroke: url(#thread-fade); stroke-opacity: 0.2; stroke-width: 1.5; }
.thread__line { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; filter: drop-shadow(0 0 7px rgb(255 255 255 / 75%)); }
.thread__nodes circle { fill: #1a24cf; stroke: rgb(255 255 255 / 45%); stroke-width: 2; transition: fill 0.6s var(--ease-out), stroke 0.6s, r 0.6s var(--ease-out); }
.thread__nodes circle.is-on { fill: #fff; stroke: #fff; }
.thread__nodes circle.is-us.is-on { stroke: var(--orange); stroke-width: 5; }
.thread__head { fill: #fff; }
.thread__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); margin-top: clamp(8px, 1.6vw, 26px); }
.step { display: grid; gap: 12px; align-content: start; opacity: 0.32; transform: translateY(14px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); }
.step.is-on { opacity: 1; transform: none; }
.step__n { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.2em; color: var(--ink-faint); }
.step--us .step__n { color: #ffb4a3; }
.step h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.9rem, 0.9rem + 2.15vw, 3.1rem); line-height: 1; padding-top: 0.12em; }
.step p:last-child { color: var(--ink-soft); font-size: 0.98rem; max-width: 19em; }

@media (max-width: 820px) {
  .thread__wave { display: none; }
  .thread__steps { grid-template-columns: 1fr; gap: 44px; padding-left: 34px; position: relative; }
  .thread__steps::before, .thread__steps::after { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: rgb(255 255 255 / 20%); }
  .thread__steps::after { background: #fff; box-shadow: 0 0 10px rgb(255 255 255 / 70%); transform-origin: top; transform: scaleY(var(--p)); }
  .step { position: relative; }
  .step::before { content: ''; position: absolute; left: -34px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #1a24cf; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 45%); transition: background-color 0.6s, box-shadow 0.6s; z-index: 1; }
  .step.is-on::before { background: #fff; box-shadow: none; }
  .step--us.is-on::before { box-shadow: 0 0 0 4px var(--orange); }
}
@media (prefers-reduced-motion: reduce) { .step { opacity: 1; transform: none; } }

/* ============ phones ============ */
@media (max-width: 820px), (pointer: coarse) {
  /* Blurring what is behind a large panel is the most expensive thing on this
     page for a phone GPU. The sheets go nearly opaque instead; the nav keeps it. */
  .scene, .principle { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(255 255 255 / 96%); }
  .principle--ink { background: linear-gradient(155deg, #2b46e0, #1620c4 70%); }
  .console { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(20 28 190 / 72%); }
  .link__body { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero__stage .ws { transform: none; }
}
@media (max-width: 820px) {
  .s { padding-block: 96px; }
  .hero { padding-top: 132px; }
  .console__log { max-height: 46svh; }
  .foot__mark { font-size: 30vw; }
}
html { -webkit-tap-highlight-color: transparent; }

/* ============ form: the role select, drawn to match ============ */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__fine.is-error { color: #b03a30; }
.select { position: relative; }
.select__btn {
  width: 100%; height: 54px; border-radius: 14px; background: #f3f4fd; padding: 0 14px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.3s, background-color 0.3s;
}
.select__btn:focus-visible, .select.is-open .select__btn { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.select__value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select__chev { width: 20px; height: 20px; flex: none; color: var(--cobalt); transition: transform 0.45s var(--ease-out); }
.select.is-open .select__chev { transform: rotate(180deg); }
.select__list {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 5; margin: 0; padding: 6px;
  background: #fff; border-radius: 18px; display: grid; gap: 2px;
  box-shadow: 0 30px 70px -24px rgb(10 16 60 / 45%), 0 0 0 1px rgb(29 36 64 / 7%);
  transform-origin: 50% 100%; animation: select-in 0.32s var(--ease-out) both;
}
.select__list[hidden] { display: none; }
@keyframes select-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.select__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border-radius: 12px; cursor: pointer; color: var(--navy);
  transition: background-color 0.18s, color 0.18s;
}
.select__opt svg { width: 18px; height: 18px; flex: none; color: var(--cobalt); opacity: 0; }
.select__opt.is-active { background: var(--lavender); }
.select__opt[aria-selected='true'] { font-weight: 600; color: var(--cobalt); }
.select__opt[aria-selected='true'] svg { opacity: 1; }

/* ============ ask salp: a scrollbar that belongs to the console ============ */

.console__log {
  scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 34%) transparent;
  /* Messages fade out at the top and bottom edges instead of being cut by them. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 16px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 16px), transparent 100%);
}
.console__log::-webkit-scrollbar { width: 12px; }
.console__log::-webkit-scrollbar-track { background: transparent; margin-block: 10px; }
.console__log::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 30%); border-radius: 999px;
  border: 4px solid transparent; background-clip: padding-box;
}
.console__log::-webkit-scrollbar-thumb:hover { background: rgb(255 255 255 / 55%); background-clip: padding-box; border: 4px solid transparent; }
.askbar.is-busy button { opacity: 0.5; pointer-events: none; }

@media (max-width: 400px) {
  .nav { padding-inline: 12px; }
  .nav__inner { padding-left: 16px; gap: 10px; }
  .wordmark { font-size: 1.4rem; }
  .nav .btn--sm { padding: 0 1em; font-size: 0.84rem; height: 40px; }
}

/* ============ legibility where white breaks into the deep sections ============ */

/* White text keeps a soft cobalt halo, invisible on blue, so a line that
   reaches into a light patch still reads. */
.on-deep .eyebrow, .on-deep .lede, .on-deep .body, .on-deep .stat p, .on-deep .stat cite,
.on-deep .step p, .on-deep .step__n, .on-deep .hero__note, .foot__row {
  text-shadow: 0 0 18px rgb(22 32 196 / 55%), 0 0 4px rgb(22 32 196 / 35%);
}
.on-deep .display, .on-deep .h2, .on-deep .stat__n, .on-deep .step h3, .foot__mark {
  text-shadow: 0 0 46px rgb(22 32 196 / 38%);
}
/* The nav and the chat console carry their own blue, so neither depends on
   what happens to be behind them. */
.nav.is-stuck:not([data-on='light']) .nav__inner { background: rgb(26 38 204 / 46%); }
.console { background: rgb(22 32 196 / 46%); }
.btn--ghost { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.on-deep .btn--ghost { background: rgb(22 32 196 / 22%); }

/* With the canvas running, the page colour behind it only ever shows in the
   rubber-band overscroll at the very top and bottom, where the page is blue.
   Keep it one flat cobalt so that area matches instead of showing a dark band. */
html.has-smoke { background: #1a24cf; }
html.has-smoke body { background: none; }

/* ============ phones: notch and home indicator ============ */

/* With viewport-fit=cover the page runs under the notch and the home
   indicator. Keep the nav and the last line of the footer clear of them. */
.nav { padding-top: max(18px, env(safe-area-inset-top)); }
.foot { padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 18px)); }


/* ============ phones: a cobalt frame, top and bottom ============ */

/* A phone browser paints its own bars above and below the page in the page's
   base colour, and the animated background cannot reach into them. Left alone
   that reads as two flat blocks cutting the page off. So on phones the page
   meets them halfway: cobalt mist falls from the top edge and rises from the
   bottom edge, reaching full colour exactly where the browser's bars begin.
   The bars become the ends of a frame the page fades into, in every section. */
.edge { display: none; }
@media (pointer: coarse) and (max-width: 820px) {
  .edge { display: block; position: fixed; left: 0; right: 0; z-index: 40; pointer-events: none; }
  .edge--top {
    top: 0; height: calc(env(safe-area-inset-top) + 150px);
    background: linear-gradient(to bottom,
      #1a24cf 0%, rgb(26 36 207 / 98%) 40%, rgb(26 36 207 / 82%) 56%,
      rgb(26 36 207 / 44%) 74%, rgb(26 36 207 / 12%) 90%, transparent 100%);
  }
  .edge--foot {
    /* Short and steep: full colour only at the very edge, clear within about
       60px, so whatever sits low on the screen (the hero buttons on first
       load) stays fully readable. */
    bottom: 0; height: calc(env(safe-area-inset-bottom) + 64px);
    background: linear-gradient(to top,
      #1a24cf 0%, rgb(26 36 207 / 78%) 22%, rgb(26 36 207 / 38%) 50%,
      rgb(26 36 207 / 10%) 78%, transparent 100%);
  }
  /* The nav rides in the top mist, so it needs no plate of its own. */
  .nav.is-stuck .nav__inner, .nav.is-stuck:not([data-on='light']) .nav__inner {
    background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav__inner { padding-left: 6px; padding-right: 0; }
  /* Leave room at the very end of the page so the footer clears the mist. */
  .foot { padding-bottom: calc(env(safe-area-inset-bottom) + 56px); }
}

/* ============ form: the button while a request is on its way ============ */

.btn.is-loading { pointer-events: none; }
.btn.is-loading:hover { transform: none; }
.btn[disabled] { cursor: default; }
.spinner {
  width: 1.05em; height: 1.05em; flex: none; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / 35%); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
