/* stratummetrics.com. The look is the app's own: src/theme/tokens.ts (colours, `surfaces`), src/ui/Starfield.tsx (canvas,
   hex lattice, lavender glow; no stars on the site), src/ui/SteelFill.tsx (brushed steel) and src/ui/Dock.tsx (dock, gold mic dial). */
:root {
  --canvas: #1C2140; --canvas-mid: #171B33; --canvas-deep: #13162A;
  --text: #F1F5F9; --muted: #94A3B8; --soft: #E2E8F0; --hairline: #3A4357; --divider: #232A3A;
  --champagne: #DFB76C; --sage: #6FD8BF; --lavender: #B9A6E0; --rose: #E3A99B; --ice: #8DB8E0;
  --card-text: #0F172A; --card-text-2: #334155; --frame: #1E2538; --inner: #9AA5B6; --input: #F1F4F8;
  /* Ray's Nov 5 landing spec: obsidian canvas, brushed-slate and vault bands, brass accent, solid dark chassis. */
  --obsidian: #0A0C10; --slate: #0E121A; --vault: #07080B;
  --brass: #D4AF37; --brass-text: #E5B842; --steel-blue: #4A6B94; --steel-blue-text: #8FB0D6;
  --chassis: #11141D; --chassis-line: #1E2333; --surface: #181C26; --surface-line: #2A3142;
  --grain: url("grain-light.png");
  --grain-dark: url("grain-dark.png");
  /* The app's lattice (Starfield.tsx: 20.785 x 36, #B9B4E0), drawn 1.25x for desktop distance. */
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25.98' height='45' viewBox='0 0 20.785 36'%3E%3Cpath d='M10.392 0 20.785 6v12l-10.393 6L0 18V6zM10.392 24v12' fill='none' stroke='%23B9B4E0' stroke-width='0.75'/%3E%3C/svg%3E");
}
@supports (background-image: image-set(url("a.png") 1x)) {
  :root {
    --grain: image-set(url("grain-light.png") 1x, url("grain-light-3x.png") 3x);
    --grain-dark: image-set(url("grain-dark.png") 1x, url("grain-dark-3x.png") 3x);
  }
}
* { box-sizing: border-box; }
html { background: var(--obsidian); scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 0 20px;
  color: var(--text); font: 17px/1.6 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* The canvas sits on fixed layers (iOS ignores background-attachment: fixed), so the lattice and glow cover
   every screen of the page. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before { background: var(--hex) 0 0 / 25.98px 45px repeat; opacity: 0.12; }
body::after {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(74,107,148,0.12), transparent 70%);
}
svg, img { max-width: 100%; }
img { height: auto; }
::selection { background: rgba(223,183,108,0.35); }
a { color: var(--champagne); }
p { margin: 0 0 10px; color: var(--muted); }
strong { color: var(--text); }
h1, h2, h3, h4 { letter-spacing: -0.015em; color: #FFFFFF; }
.wrap { width: 100%; max-width: 1160px; }
.eyebrow { display: inline-block; color: var(--brass-text); font-size: 0.75rem; letter-spacing: 0.2em; font-weight: 800; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- Brushed steel (SteelFill): 160deg light-to-dark, light-then-shadow sheen, grain, bevel ---------- */
.steel, .card {
  position: relative; isolation: isolate; color: var(--card-text);
  border: 1px solid var(--frame); border-radius: 14px;
  background:
    var(--grain) 0 0 / 300px 300px repeat,
    linear-gradient(112deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.3) 34%, rgba(255,255,255,0.06) 42%, rgba(30,37,56,0) 56%, rgba(30,37,56,0.05) 68%, rgba(30,37,56,0) 82%),
    linear-gradient(160deg, #F8FAFC 0%, #D8DEE9 50%, #B4BFCE 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), inset 0 -1px 0 rgba(30,37,56,0.2), 0 10px 28px rgba(5,8,20,0.45);
}
.card p, .steel p { color: var(--card-text-2); }
.steel.row {
  border-radius: 12px; border-color: rgba(30,37,56,0.45);
  background: var(--grain) 0 0 / 300px 300px repeat, linear-gradient(160deg, #E9EDF3 0%, #CBD5E1 50%, #BFC9D6 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), inset 0 -1px 0 rgba(30,37,56,0.15);
}
.steel.sage { background: var(--grain) 0 0 / 300px 300px repeat, linear-gradient(160deg, #ECF7F3 0%, #D3EAE5 50%, #BFDDD4 100%); }
.steel.pr { background: var(--grain) 0 0 / 300px 300px repeat, linear-gradient(160deg, #FBF9F4 0%, #EDEBE4 50%, #D6C9AB 100%); }
.steel.dark {
  color: var(--text); border-color: var(--divider);
  background: var(--grain-dark) 0 0 / 300px 300px repeat, linear-gradient(160deg, #2C3466 0%, #1C2140 50%, #141830 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 40px rgba(5,8,20,0.5);
}
.steel.dark p { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  font: inherit; font-size: 1rem; font-weight: 800; text-decoration: none; padding: 14px 24px; border-radius: 14px;
  color: var(--card-text); border: 1px solid var(--frame);
  background: var(--grain) 0 0 / 300px 300px repeat, linear-gradient(160deg, #F8FAFC 0%, #D8DEE9 50%, #B4BFCE 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 rgba(30,37,56,0.25), 0 6px 18px rgba(5,8,20,0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn.solid, .btn.ghost { color: #FFFFFF; background: var(--surface); border-color: rgba(255,255,255,0.18); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.btn.solid:hover, .btn.ghost:hover { filter: none; background: #1E2330; }
.btn.navy { color: var(--text); border-color: #0B0E1C; background: var(--grain-dark) 0 0 / 300px 300px repeat, linear-gradient(160deg, #2C3466, #1C2140 60%, #141830); }
.btn.small { padding: 9px 16px; font-size: 0.875rem; border-radius: 11px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.tag { display: inline-block; font-size: 0.7rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; vertical-align: 2px; white-space: nowrap; }
.tag.pr { background: #DFB76C; color: #6B4E12; }
.tag.rehab { background: #CFE9E1; color: #125A4C; border: 1px solid #9ACFC2; }
.tag.ask { background: var(--input); color: #334155; border: 1px solid var(--inner); }
.tag.line { background: transparent; color: var(--soft); border: 1px solid var(--hairline); }

/* ---------- Nav ---------- */
.topnav { position: sticky; top: 0; z-index: 20; width: calc(100% + 40px); margin: 0 -20px; display: flex; justify-content: center; padding: 0 20px; background: rgba(10,12,16,0.86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--chassis-line); }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.24em; font-size: 0.95rem; }
.brand img { width: 34px; height: 34px; }
.navlinks { display: flex; gap: 26px; }
.navlinks a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.navlinks a:hover { color: var(--text); }
@media (max-width: 860px) { .navlinks { display: none; } }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.02; margin: 0 0 20px; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .gold { background: linear-gradient(100deg, #F6E3A8, #DFB76C 45%, #B08A44 70%, #E8C97E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eco-badge { display: inline-block; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px; font: 600 0.75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--brass-text); background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.3); }
.eco-badge:hover { border-color: rgba(212,175,55,0.6); }
.hero .eyebrow { display: block; }
.hero .lede { font-size: 1.2rem; color: var(--soft); max-width: 540px; margin-bottom: 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.hero .fine b { color: var(--soft); font-weight: 600; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; text-align: center; } .hero .lede { margin-left: auto; margin-right: auto; } .hero .actions { justify-content: center; } }

/* ---------- Phone (device frame + the app's own canvas and dock) ---------- */
.device {
  position: relative; width: 320px; max-width: 100%; margin: 0 auto; aspect-ratio: 320 / 660; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #5A6178, #2A3044 30%, #151A28 60%, #3B4258);
  box-shadow: 0 0 0 1px #0A0D18, inset 0 0 0 1px rgba(255,255,255,0.18), 0 40px 80px rgba(3,5,14,0.65), 0 0 120px rgba(185,166,224,0.08);
}
.device::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #05060B; z-index: 5; }
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
  background: radial-gradient(ellipse 120% 55% at 100% 0%, rgba(185,166,224,0.16), transparent 60%), linear-gradient(180deg, var(--canvas), var(--canvas-mid) 55%, var(--canvas-deep));
}
/* As in the app: the lattice fades down from the top of the screen. The site leaves out the stars (Ray, Oct 31). */
.screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hex) 0 0 / 20.785px 36px repeat; opacity: 0.2; -webkit-mask-image: linear-gradient(180deg, #000, transparent 55%); mask-image: linear-gradient(180deg, #000, transparent 55%); pointer-events: none; }
.screen .status { display: flex; justify-content: space-between; padding: 16px 28px 0; font-size: 0.72rem; font-weight: 700; color: var(--text); height: 44px; position: relative; z-index: 1; }
.screen .body { position: relative; z-index: 1; flex: 1; overflow: hidden; padding: 6px 14px 10px; display: flex; flex-direction: column; gap: 9px; font-size: 0.82rem; line-height: 1.45; }
.screen .apptitle { display: flex; justify-content: space-between; align-items: baseline; }
.screen .apptitle h4 { margin: 0; font-size: 1.15rem; }
.screen .apptitle span { font-size: 0.72rem; color: var(--muted); }
.screen .label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.dock {
  position: relative; z-index: 1; height: 74px; flex: none; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px 6px 14px;
  background: var(--grain-dark) 0 0 / 300px 300px repeat, linear-gradient(160deg, #2C3466, #1C2140 50%, #141830);
}
.dock::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: 0.8; background: linear-gradient(90deg, transparent, var(--lavender) 16%, var(--rose) 32%, var(--champagne) 50%, var(--rose) 68%, var(--ice) 84%, transparent); }
.dock .tab { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 0.6rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.dock .tab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dock .tab.on { color: var(--champagne); font-weight: 800; }
.dial { position: relative; width: 58px; height: 58px; margin: -26px auto 0; border-radius: 50%; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; color: #fff; }
.dial::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: repeating-conic-gradient(rgba(163,168,200,0.6) 0 3deg, transparent 3deg 11.25deg); -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%); mask: radial-gradient(circle, transparent 62%, #000 63%, #000 68%, transparent 69%); }
.dial::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 36% 28%, #2E3446, #1C212B 45%, #161A22 75%) content-box, conic-gradient(from 210deg, #F6E3A8, #DFB76C 50deg, #8E6C2C 120deg, #D9B162 175deg, #F6E3A8 215deg, #B08A44 280deg, #E8C97E 330deg, #F6E3A8); padding: 4px; box-shadow: 0 0 0 3px rgba(185,166,224,0.18), 0 6px 16px rgba(0,0,0,0.5); }
.dial svg { position: relative; z-index: 1; width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.1; stroke-linecap: round; }
.dial.listening::after { animation: glow 1.3s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 3px rgba(185,166,224,0.25), 0 0 18px rgba(185,166,224,0.35); } 50% { box-shadow: 0 0 0 7px rgba(227,169,155,0.18), 0 0 36px rgba(223,183,108,0.5); } }

/* In-phone UI */
.say { display: flex; gap: 6px; }
.say input { flex: 1; min-width: 0; font: inherit; font-size: 0.82rem; color: var(--card-text); background: var(--input); border: 1px solid var(--inner); border-radius: 10px; padding: 8px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 0.7rem; font-weight: 600; cursor: pointer; color: var(--soft); background: var(--surface); border: 1px solid var(--surface-line); border-radius: 999px; padding: 4px 10px; }
.chip:hover, .chip.on { border-color: var(--brass); color: var(--text); }
.heard { font-size: 0.78rem; color: var(--soft); font-style: italic; min-height: 1.2em; }
.heard .caret { display: inline-block; width: 1px; height: 1em; background: var(--champagne); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mic-status { font-size: 0.7rem; color: var(--muted); }
.result { display: flex; flex-direction: column; gap: 8px; }
.entry { padding: 10px 12px; animation: pop 0.35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.entry .name { font-weight: 800; font-size: 0.88rem; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.entry .sub { color: var(--card-text-2); font-size: 0.72rem; margin-top: 3px; }
.sets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.set { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 700; padding: 3px 8px 3px 3px; border-radius: 8px; background: var(--input); border: 1px solid var(--inner); color: var(--card-text); }
.set .n { width: 18px; height: 18px; border-radius: 50%; background: #1E2538; color: #F3F1FA; font-size: 0.62rem; display: grid; place-items: center; }
.q { color: #991B1B; font-weight: 800; }
.choices { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.choice { font: inherit; font-size: 0.7rem; font-weight: 700; cursor: pointer; padding: 4px 9px; border-radius: 999px; background: var(--input); border: 1px solid #1E2538; color: var(--card-text); }
.choice:hover, .choice.on { background: #1E2538; color: #F3F1FA; }
.empty { color: var(--muted); font-size: 0.78rem; text-align: center; padding: 14px 0; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 34px; }
.wave i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--champagne), var(--rose)); height: 6px; }
.wave.on i { animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -0.3s; } .wave i:nth-child(3n) { animation-delay: -0.6s; } .wave i:nth-child(5n) { animation-delay: -0.15s; }
@keyframes wave { 0%,100% { height: 5px; } 50% { height: 28px; } }
textarea.paste { width: 100%; min-height: 128px; resize: none; font: 0.72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--card-text); background: var(--input); border: 1px solid var(--inner); border-radius: 10px; padding: 9px; }
.irows { display: flex; flex-direction: column; gap: 6px; }
.irow { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; align-items: center; padding: 7px 10px; animation: pop 0.35s ease both; }
.irow .nm { font-weight: 800; font-size: 0.8rem; }
.irow .tgt { font-size: 0.7rem; color: var(--card-text-2); }
.irow .st { font-size: 0.62rem; font-weight: 800; border-radius: 999px; padding: 2px 7px; background: #1E2538; color: #F3F1FA; grid-row: span 2; }
.irow .st.ask { background: var(--input); color: #991B1B; border: 1px solid #991B1B; }
.caution { font-size: 0.72rem; color: #991B1B; padding: 6px 10px; border-radius: 10px; background: #FBEAEA; border: 1px solid #E8B4B4; }
.paper { position: relative; overflow: hidden; background: #FDFCF7; color: #1d1d1d; border-radius: 4px; padding: 14px 14px 16px; font: 0.7rem/1.75 "Courier New", ui-monospace, monospace; box-shadow: 0 12px 26px rgba(0,0,0,0.5); transform: rotate(-1.5deg); white-space: pre-wrap; }
.paper .beam { position: absolute; left: 0; right: 0; height: 30px; top: -34px; background: linear-gradient(180deg, transparent, rgba(111,216,191,0.55), transparent); }
.paper.scanning .beam { animation: beam 1.6s ease-in-out forwards; }
@keyframes beam { to { top: 100%; } }
.corner { position: absolute; width: 14px; height: 14px; border: 2.5px solid var(--sage); }
.corner.tl { top: 5px; left: 5px; border-right: 0; border-bottom: 0; } .corner.tr { top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 5px; left: 5px; border-right: 0; border-top: 0; } .corner.br { bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.notify { display: flex; gap: 9px; align-items: center; padding: 9px 11px; opacity: 0; transform: translateY(-12px); transition: all 0.45s ease; }
.notify.show { opacity: 1; transform: none; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; color: #0F172A; background: #D8DEE9; box-shadow: 0 0 0 2px #1C2140, 0 0 0 3.5px var(--champagne); }
.plan { padding: 11px; transition: opacity 0.45s ease; }
.plan.dim { opacity: 0.3; }
.plan h5 { margin: 0; font-size: 0.92rem; }
.plan .meta { font-size: 0.68rem; color: var(--card-text-2); margin-bottom: 4px; }
.pitem { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-top: 5px; }
.pitem .what { flex: 1; font-weight: 700; font-size: 0.76rem; }
.pitem .t { font-size: 0.68rem; color: var(--card-text-2); white-space: nowrap; }
.check { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--inner); display: grid; place-items: center; transition: all 0.25s ease; flex: none; background: var(--input); }
.check.done { background: #1E2538; border-color: #1E2538; }
.check.done::after { content: ""; width: 8px; height: 4px; border: 2px solid #F3F1FA; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.toast { font-size: 0.74rem; padding: 8px 10px; opacity: 0; transition: opacity 0.4s ease; }
.toast.show { opacity: 1; }
.prb { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.trophy { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #DFB76C; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); }
.trophy svg { width: 18px; height: 18px; stroke: #6B4E12; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prb .big { font-weight: 800; color: #6B4E12; font-size: 0.82rem; }
.prb .small { color: #6B4E12; font-size: 0.72rem; }
.chart { padding: 10px 12px; }
.chart svg { width: 100%; height: 92px; display: block; }
.chart .line { stroke-dasharray: 500; stroke-dashoffset: 500; }
.chart.drawn .line { animation: draw 1.6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.vol { padding: 10px 12px; }
.vbar { display: grid; grid-template-columns: 54px 1fr 40px; gap: 8px; align-items: center; font-size: 0.7rem; color: var(--card-text-2); margin-top: 5px; }
.vbar i { height: 8px; border-radius: 4px; background: #1E2538; width: 0; transition: width 1.2s ease; }
.vbar b { color: var(--card-text); text-align: right; }

/* ---------- Sections ---------- */
.section { padding: 110px 0 0; scroll-margin-top: 70px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.025em; }
.section-head p { font-size: 1.1rem; color: var(--soft); }

.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.principles div { padding: 22px 18px; display: flex; gap: 12px; align-items: flex-start; }
.principles div + div { border-left: 1px solid var(--divider); }
.principles svg { width: 24px; height: 24px; flex: none; stroke: var(--brass); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.principles b { display: block; font-size: 0.98rem; color: var(--text); }
.principles span { font-size: 0.86rem; color: var(--muted); }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr 1fr; } .principles div:nth-child(3) { border-left: 0; } .principles div:nth-child(n+3) { border-top: 1px solid var(--divider); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } .principles div + div { border-left: 0; border-top: 1px solid var(--divider); } }

/* Scrollytelling: the steps scroll, the phone stays and changes screen */
.story { display: grid; grid-template-columns: 1fr 380px; gap: 64px; }
.story .steps { display: flex; flex-direction: column; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
/* Ray, Nov 5: each step sits in its own chassis; the active one lights brass with a 2 px left bar. */
.step-card { position: relative; background: rgba(18,22,31,0.65); border: 1px solid rgba(255,255,255,0.09); border-radius: 16px; padding: 24px; margin-bottom: 20px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0.7; transition: opacity 0.4s ease, border-color 0.4s ease; }
.step-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--brass); opacity: 0; transition: opacity 0.4s ease; }
.step.active .step-card { opacity: 1; border-color: var(--brass); }
.step.active .step-card::before { opacity: 1; }
.step .num { font: 800 0.8rem/1 Manrope, sans-serif; letter-spacing: 0.2em; color: var(--brass-text); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; margin: 0 0 14px; font-weight: 800; }
.step > p { font-size: 1.08rem; color: var(--soft); max-width: 520px; }
.step ul { list-style: none; padding: 0; margin: 10px 0 0; max-width: 520px; }
.step li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--muted); }
.step li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #1E2538; box-shadow: 0 0 0 1px var(--hairline); }
.step li::after { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 3px; border: 1.6px solid var(--text); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.step .try { margin-top: 18px; font-size: 0.9rem; color: var(--brass-text); font-weight: 700; }
.story .stage { position: sticky; top: 84px; height: calc(100vh - 110px); max-height: 720px; display: flex; align-items: center; }
.story .stage .device { width: 340px; }
.screen-set { position: relative; flex: 1; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s; }
.scr.active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.step .inline-phone { display: none; }
@media (max-width: 980px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story .stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; }
  .step .inline-phone { display: block; margin-top: 28px; }
  .step .inline-phone .scr { position: static; opacity: 1; visibility: visible; transform: none; }
}

/* Audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: 34px; border-radius: 20px; }
.panel h3 { font-size: 1.6rem; margin: 6px 0 10px; }
.panel .kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.panel ul { list-style: none; padding: 0; margin: 18px 0 0; }
.panel li { padding: 11px 0; border-top: 1px solid var(--chassis-line); color: var(--muted); display: flex; gap: 12px; }
.panel li b { color: var(--text); display: block; }
.panel li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* Uniform dark chassis for both audience cards; only the top highlight stroke differs. */
.chassis { position: relative; color: var(--text); background: var(--chassis); border: 1px solid var(--chassis-line); box-shadow: 0 14px 40px rgba(0,0,0,0.45); overflow: hidden; }
.chassis::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.chassis p { color: var(--muted); }
.athletes::before { background: var(--steel-blue); }
.athletes .kicker { color: var(--steel-blue-text); }
.athletes li svg { stroke: var(--steel-blue-text); }
.directors::before { background: var(--brass); }
.directors .kicker { color: var(--brass-text); }
.directors li svg { stroke: var(--brass); }

/* Directive */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.pillars div { padding: 22px 20px; }
.pillars div + div { border-left: 1px solid var(--divider); }
.pillars b { display: block; color: var(--brass-text); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.pillars p { margin: 0; font-size: 0.95rem; color: var(--soft); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillars div + div { border-left: 0; border-top: 1px solid var(--divider); } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 48px auto 0; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.cmp { padding: 24px; border-radius: 14px; border: 1px solid var(--chassis-line); background: var(--chassis); }
.cmp-eco { border-color: rgba(212,175,55,0.45); box-shadow: 0 0 30px rgba(212,175,55,0.08); }
.cmp-kicker { font: 0.7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cmp-eco .cmp-kicker { color: var(--brass-text); }
.cmp h3 { font-size: 1.15rem; margin: 4px 0 14px; color: var(--soft); }
.cmp-eco h3 { color: var(--text); }
.cmp ul { list-style: none; margin: 0; padding: 0; font: 0.84rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.cmp-eco ul { color: var(--soft); }
.cmp li { position: relative; padding-left: 22px; margin-top: 8px; }
.cmp li::before { content: "×"; position: absolute; left: 0; color: var(--muted); }
.cmp-eco li::before { content: "✓"; color: var(--brass); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--divider); }
@media (max-width: 900px) { .points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } }
.points h4 { margin: 0 0 6px; font-size: 1rem; }
.points p { font-size: 0.92rem; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 860px) { .who { grid-template-columns: minmax(0, 1fr); } }
.who > div { padding: 16px 18px; }
.who b { font-size: 0.98rem; }
.who p { margin: 4px 0 0; font-size: 0.92rem; }
.center { text-align: center; }

/* Everything list */
.everything { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
@media (max-width: 900px) { .everything { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .everything { grid-template-columns: 1fr; } }
.everything div { padding: 14px 0; border-top: 1px solid var(--divider); display: flex; gap: 12px; }
.everything svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: var(--brass); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.everything b { display: block; color: var(--text); font-size: 0.98rem; }
.everything span { color: var(--muted); font-size: 0.88rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.08rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--brass); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 18px 0; margin: 0; }

/* Final CTA */
.final { margin: 110px 0 0; padding: 0; overflow: hidden; border-radius: 24px; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.final .plate { background: #0B183B; display: grid; place-items: center; }
.final .plate img { width: 100%; height: auto; display: block; }
.final .copy { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.final h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; }
.final .copy p { font-size: 1.05rem; margin-bottom: 22px; }
@media (max-width: 860px) { .final { grid-template-columns: minmax(0, 1fr); } .final .copy { padding: 32px 24px; text-align: center; align-items: center; } }

/* Footer */
footer { width: 100%; max-width: 1160px; margin-top: 80px; padding: 32px 0 40px; border-top: 1px solid var(--divider); font-size: 0.875rem; color: var(--muted); display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; align-content: flex-start; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--champagne); }
footer .badges { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; color: var(--soft); }
footer .badges span::before { content: "✓ "; color: var(--sage); }
@media (max-width: 760px) { footer { grid-template-columns: minmax(0, 1fr); text-align: center; } footer .links, footer .badges { justify-content: center; } }

/* Plain pages (support, delete account) */
main.page { flex: 1; width: 100%; max-width: 720px; padding: 48px 0; }
main.page h1 { font-size: 2rem; margin: 0 0 16px; }
main.page h2 { font-size: 1.15rem; margin: 32px 0 8px; color: var(--text); }
main.page p, main.page li { color: var(--muted); }
main.page ol, main.page ul { padding-left: 20px; margin: 0 0 8px; }
main.page li { margin-bottom: 6px; }
main.page .brand { margin-bottom: 32px; }
main.page + footer { display: block; text-align: center; }
main.page + footer a { margin: 0 8px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Autoplay voice: words arrive, numbers turn gold, the card drops in set by set ---------- */
.heard.big { font-size: 0.95rem; line-height: 1.4; color: var(--text); font-style: normal; font-weight: 600; text-align: center; min-height: 2.8em; }
.heard b { color: var(--soft); font-weight: 800; transition: color 0.3s ease; }
.heard.parsed b { color: var(--champagne); }
.entry.arrive { animation: drop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.entry.arrive .set { animation: pop 0.3s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Try it yourself ---------- */
.tryit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: start; margin: 8px 0 56px; padding: 36px; border-radius: 22px; border: 1px solid var(--chassis-line); background: var(--chassis); box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.tryit h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tryit .say { margin: 22px 0 14px; align-items: center; gap: 10px; }
.tryit .say input { font-size: 1rem; padding: 13px 14px; border-radius: 12px; }
.tryit .say .btn { padding: 12px 18px; }
.tryit .chips { gap: 8px; }
.tryit .chip { font-size: 0.82rem; padding: 7px 13px; }
.tryit .mic-status { margin-top: 14px; font-size: 0.8rem; }
.dial.solo { margin: 0; flex: none; width: 52px; height: 52px; }
.tryit-screen { position: relative; isolation: isolate; overflow: hidden; padding: 18px; border-radius: 20px; border: 1px solid #0B0E1C; display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; line-height: 1.45;
  background: radial-gradient(ellipse 120% 55% at 100% 0%, rgba(185,166,224,0.16), transparent 60%), linear-gradient(180deg, var(--canvas), var(--canvas-mid) 55%, var(--canvas-deep)); }
.tryit-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hex) 0 0 / 20.785px 36px repeat; opacity: 0.2; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.tryit-screen .apptitle { display: flex; justify-content: space-between; align-items: baseline; }
.tryit-screen .apptitle h4 { margin: 0; font-size: 1.15rem; }
.tryit-screen .apptitle span { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 900px) { .tryit { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 24px; } }

/* ---------- Phones and small tablets: no sticky phone. Each step stacks phone, then its text. ---------- */
@media (max-width: 980px) {
  .step { display: flex; flex-direction: column; }
  .step .inline-phone { order: -1; margin: 0 0 24px; }
  .step .inline-phone .screen-set { display: flex; flex-direction: column; }
  .step .inline-phone .scr { flex: 1; }
}
.hero .screen { text-align: left; }
.hero .screen .heard { text-align: center; }

/* ---------- Real app screens in a phone frame ---------- */
.phone { position: relative; margin: 0; width: 300px; max-width: 100%; padding: 9px; border-radius: 48px;
  background: linear-gradient(145deg, #5A6178, #2A3044 30%, #151A28 60%, #3B4258);
  border: 1px solid rgba(255,255,255,0.16);
  /* Ray, Nov 5: a cobalt backlight separates the dark phone from the obsidian page (box-shadow, so no blur filter and no overflow). */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 70px 6px rgba(56,189,248,0.2), 0 0 160px 30px rgba(56,189,248,0.1); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 39px; background: #171B33; }

.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; }
.hero-phones .back { width: 270px; right: 0; top: 0; transform: rotate(5deg); filter: brightness(0.94); }
.hero-phones .front { width: 300px; left: 4%; top: 48px; z-index: 1; }
@media (max-width: 900px) {
  .hero-phones { height: 560px; max-width: 420px; margin: 8px auto 0; width: 100%; }
  .hero-phones .back { width: 58%; right: 0; }
  .hero-phones .front { width: 64%; left: 0; top: 40px; }
}

.story .stage .stage-phone { width: 340px; }
.stage-phone { display: grid; }
.stage-phone .scr { grid-area: 1 / 1; position: static; transform: none; }
.step .inline-phone .phone { width: 280px; margin: 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 980px; margin: 0 auto; }
.gallery .shot { margin: 0; }
.gallery .phone { width: 100%; }
.gallery figcaption { margin-top: 18px; color: var(--muted); font-size: 0.92rem; text-align: center; }
.gallery figcaption b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
@media (max-width: 980px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding: 4px 4px 12px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .gallery .shot { flex: 0 0 68%; scroll-snap-align: center; }
}
/* Drop sets, as on the app's compact cards: indented under the top set, steel, no set number. */
.droprow { display: flex; align-items: center; gap: 8px; margin: 6px 0 0 4px; font-size: 0.78rem; font-weight: 700; color: var(--card-text); }
.droprow span { color: #475569; font-weight: 800; }
.droprow b { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #475569; }

/* Ecosystem bridge (behaviour and video frame in /media/ecosystem-bridge.css; this is only the site's type) */
.eb { text-align: center; padding: 72px 0 8px; scroll-margin-top: 70px; }
.eb h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.025em; }
.eb .sub { color: var(--text); font-weight: 700; font-size: 1.1rem; margin: 0 auto 10px; }
.eb p { color: var(--soft); max-width: 680px; margin: 0 auto 28px; }
.eb .eb-stage { margin-bottom: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.eb .eb-cta { margin-bottom: 22px; font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif; }
.eb p:last-of-type { margin-bottom: 0; }
.eb .small { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.eb .eb-arrival { font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif; }
/* Ray's Nov 5 section spec: the section headline sits directly above the video, so the bridge's own headline,
   subhead and intro are hidden on this page (the Block 2 markup itself is unchanged). */
#directive .section-head { margin-bottom: 0; }
#directive .eb { padding-top: 28px; scroll-margin-top: 72px; }
#directive .eb > h2, #directive .eb > .sub, #directive .eb > .sub + p { display: none; }

/* ---------- Section bands (Ray, Nov 5): full-bleed colour behind a section. The band sits under the fixed hex layer
   (z-index -2 vs -1, no stacking context on the section), so the faint lattice runs across every band. ---------- */
.band { position: relative; padding-bottom: 110px; }
.band::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -2; border-top: 1px solid #161A24; border-bottom: 1px solid #161A24; }
.band-slate::before { background: var(--slate); }
.band-vault::before {
  background:
    radial-gradient(ellipse 55% 38% at 22% 100%, rgba(74,107,148,0.24), transparent 70%),
    radial-gradient(ellipse 55% 38% at 78% 100%, rgba(212,175,55,0.15), transparent 70%),
    var(--vault);
}

/* Body copy at full luminance (Ray, Nov 5): primary text #E2E8F0, meta #94A3B8, never darker. */
.chassis p, .points p, .pillars p, .cmp h3 { color: var(--soft); }
/* Directive's video stage gets the warm brass backlight. */
#directive .eb-stage { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 80px 8px rgba(229,184,66,0.16), 0 0 180px 40px rgba(229,184,66,0.08); }
@media (max-width: 980px) { .step-card { opacity: 1; } }
/* Ray, Nov 5: "Explore Directive" is a solid Directive-gold button with black text, not an outline
   (site override; /media/ecosystem-bridge.css stays as shipped from directive-ecosystem). */
#directive .eb .eb-cta[data-card="directive"], #directive .btn.directive-gold {
  background: #D4AF37; color: #0A0C10; border: 1px solid #D4AF37; border-radius: 12px; font-weight: 800; box-shadow: 0 8px 22px rgba(212,175,55,0.22);
}
#directive .eb .eb-cta[data-card="directive"]:hover, #directive .eb .eb-cta[data-card="directive"]:focus-visible,
#directive .btn.directive-gold:hover { background: #E5B842; border-color: #E5B842; filter: none; }

/* Ray, Nov 5: the line under the gold button is body-size white, centred. */
#directive .eb p.eb-local { color: #FFFFFF; font-size: 1.05rem; text-align: center; max-width: 680px; margin: 22px auto 0; }
#directive .eb .eb-cta { margin-bottom: 0; }
/* "Who it's for" cards: the same dark chassis as the audience cards, brass top line (sage for the rehab one). */
.who .who-card { position: relative; overflow: hidden; padding: 22px 22px 20px; border-radius: 14px; background: var(--chassis); border: 1px solid var(--chassis-line); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }
.who-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass); }
.who-card.rehab::before { background: var(--sage); }
.who-card svg { display: block; margin-bottom: 12px; fill: none; stroke: var(--brass); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.who-card.rehab svg { stroke: var(--sage); }
.who-card b { display: block; color: #FFFFFF; font-size: 1.02rem; line-height: 1.3; }
.who-card p { margin: 6px 0 0; color: var(--soft); font-size: 0.93rem; }
/* Ray, Nov 5: nav jumps land with the section's eyebrow just under the sticky bar (section padding 110 - nav 64 - 6 gap). */
.section { scroll-margin-top: -40px; }

/* ---------- Nov 5: parser block + earlier pin + two-beat step 01 ---------- */
.tryit .eyebrow { letter-spacing: 0.16em; }
.tryit .tryit-sub { font-size: 1.12rem; color: var(--soft); margin: 0; }
.story-head { text-align: left; margin: 0 0 8px; max-width: 560px; }
.story-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
/* The phone column starts level with the section title, so it pins as soon as the title reaches the top of the screen. */
.story .stage { top: 72px; height: calc(100vh - 96px); }
/* Nov 6 (Ray): the phone is not a button; only the step 01 demo's own app buttons answer a tap. */
.stage-phone { cursor: default; }
@media (max-width: 980px) {
  .story-head { text-align: center; margin: 0 auto 8px; }
}

/* ---------- Nov 6 (Ray): the parser block is information only, nothing to click ---------- */
.tryit .tryit-note { font-size: 0.95rem; color: var(--muted); margin: 16px 0 0; max-width: 460px; }
.parse-list { margin: 0; display: flex; flex-direction: column; }
.parse-list > div { padding: 14px 0; border-top: 1px solid var(--chassis-line); display: grid; gap: 4px; cursor: default; }
.parse-list > div:first-child { border-top: 0; padding-top: 0; }
.parse-list dt { font-size: 0.95rem; color: var(--soft); font-style: italic; }
.parse-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.parse-list dd b { font-size: 1rem; color: var(--text); font-weight: 800; }
.parse-list dd span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Nov 6 (Ray): step 01's phone runs the real app ----------
   /app/ (the stratum web export) in an iframe drawn at 390 x 844 and scaled to the phone; a screenshot shows until it
   is ready. A gold "Press me" points at the mic on the home screen; "Start over" sits under the phone once it's used. */
.vdemo { position: relative; }
.vd-screen { position: relative; border-radius: 39px; overflow: hidden; aspect-ratio: 390 / 844; background: #171B33; }
.vd-screen .vd-base { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 39px; transition: opacity 0.3s ease; }
.vd-app { position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity 0.3s ease; background: #171B33; }
.vd-screen.live .vd-app { opacity: 1; }
.vd-screen.live .vd-base { opacity: 0; }
.vd-again { display: none; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 22px; white-space: nowrap; z-index: 2; font: 800 0.85rem/1 Manrope, sans-serif; color: #111; background: #D4AF37; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.vd-again.on { display: block; }
.vd-again:focus-visible { outline: 3px solid #F3F1FA; outline-offset: 2px; }
.story .stage .stage-phone { width: 320px; }
.vd-cue { position: absolute; z-index: 2; display: none; pointer-events: none; transform: translate(-50%, -100%); flex-direction: column; align-items: center; gap: 2px; }
.vd-cue.below { transform: translate(-50%, 0); flex-direction: column-reverse; }
.vd-cue.on { display: flex; }
.vd-cue span { font: 800 0.82rem/1 Manrope, sans-serif; letter-spacing: 0.02em; color: #111; background: #D4AF37; padding: 7px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.vd-cue i { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid #D4AF37; animation: vd-nudge 1.1s ease-in-out infinite; }
.vd-cue.below i { border-top: 0; border-bottom: 10px solid #D4AF37; }
.vd-cue.above { animation: vd-bob 1.1s ease-in-out infinite; }
.vd-cue.below { animation: vd-bob-up 1.1s ease-in-out infinite; }
@keyframes vd-bob { 0%, 100% { margin-top: -4px; } 50% { margin-top: -10px; } }
@keyframes vd-bob-up { 0%, 100% { margin-top: 4px; } 50% { margin-top: 10px; } }
@keyframes vd-nudge { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
.vd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .vd-cue.above, .vd-cue.below, .vd-cue i { animation: none; }
}
.tryit h2 { line-height: 1.12; text-wrap: balance; }
.step .inline-phone .vdemo { margin-bottom: 58px; }

/* ---------- Nov 6 (Ray): step 04's Scratchpad phone scrolls to the whole sorted workout ----------
   import-full.webp is the app's Import screen top to bottom (390 x 1540 pt); the action bar (160 pt) stays put at the bottom.
   Scrolled to the end = 1540 - (844 - 160) = 856 pt up = 55.6% of the tall image. */
.scrollshot { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 39px; background: #171B33; }
.phone .scrollshot img { border-radius: 0; aspect-ratio: auto; background: none; }
.scrollshot .ss-full { position: absolute; left: 0; top: 0; width: 100%; height: auto; transform: translateY(0); transition: transform 0.8s ease; }
.scrollshot.down .ss-full { transform: translateY(-55.6%); transition: transform 4.2s cubic-bezier(0.45, 0.05, 0.3, 1); }
.scrollshot .ss-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.stage-phone .scr .scrollshot { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .scrollshot .ss-full, .scrollshot.down .ss-full { transition: none; }
}

/* Nov 6 (Ray): the Spec Room gallery's middle phone is a looping clip of the app (assets/screens/spec-room-531.mp4). */
.phone .gallery-video { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 39px; background: #171B33; object-fit: cover; }
