/* 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: #F3F1FA; --muted: #A3A8C8; --soft: #D3D5EA; --hairline: #3B4373; --divider: #2E3560;
  --champagne: #DFB76C; --sage: #6FD8BF; --lavender: #B9A6E0; --rose: #E3A99B; --ice: #8DB8E0;
  --card-text: #0F172A; --card-text-2: #334155; --frame: #1E2538; --inner: #9AA5B6; --input: #F1F4F8;
  --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: linear-gradient(180deg, var(--canvas) 0, var(--canvas-mid) 900px, var(--canvas-deep) 2400px) var(--canvas-deep); 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.17; }
body::after {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(185,166,224,0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(141,184,224,0.07), 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; }
.wrap { width: 100%; max-width: 1160px; }
.eyebrow { display: inline-block; color: var(--champagne); 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.ghost { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--hairline); box-shadow: none; }
.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(19,22,42,0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(59,67,115,0.5); }
.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; }
.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: rgba(255,255,255,0.05); border: 1px solid var(--hairline); border-radius: 999px; padding: 4px 10px; }
.chip:hover, .chip.on { border-color: var(--champagne); 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(--champagne); 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; opacity: 0.38; transition: opacity 0.4s ease; }
.step.active { opacity: 1; }
.step .num { font: 800 0.8rem/1 Manrope, sans-serif; letter-spacing: 0.2em; color: var(--champagne); 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(--champagne); 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: #475569; }
.steel.dark .kicker { color: var(--champagne); }
.panel ul { list-style: none; padding: 0; margin: 18px 0 0; }
.panel li { padding: 11px 0; border-top: 1px solid rgba(154,165,182,0.6); color: var(--card-text-2); display: flex; gap: 12px; }
.steel.dark li { border-top-color: var(--divider); color: var(--muted); }
.panel li b { color: var(--card-text); display: block; }
.steel.dark li b { color: var(--text); }
.panel li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; stroke: #1E2538; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.steel.dark li svg { stroke: var(--champagne); }

/* Directive */
.eco { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; }
.eco > * { min-width: 0; }
@media (max-width: 860px) { .eco { grid-template-columns: minmax(0, 1fr); } .eco-link { height: 44px; } .eco-link span { width: 2px !important; height: 100% !important; margin: 0 auto; } }
.eco-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.eco-stratum { padding: 20px; }
.eco-stratum .eco-label { color: #475569; }
.eco-stratum h4 { margin: 4px 0 12px; font-size: 1.12rem; }
.eco-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 520px) { .eco-stats { grid-template-columns: repeat(2, 1fr); } }
.eco-stats div { background: rgba(241,244,248,0.75); border: 1px solid var(--inner); border-radius: 10px; padding: 8px 10px; }
.eco-stats b { display: block; font-size: 1rem; }
.eco-stats span { font-size: 0.72rem; color: #334155; }
.eco-bars { display: flex; gap: 3px; margin-top: 12px; font-size: 0.7rem; font-weight: 800; color: #F3F1FA; }
.eco-bars span { background: #1E2538; padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eco-bars span:nth-child(2) { background: #3B4373; } .eco-bars span:nth-child(3) { background: #5A6596; }
.eco-handed { margin-top: 12px; font-size: 0.8rem; font-weight: 800; color: #1E2538; }
.eco-link { display: grid; place-items: center; height: 100%; }
.eco-link span { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, var(--lavender), var(--rose), var(--champagne), var(--rose), var(--ice)); box-shadow: 0 0 14px rgba(223,183,108,0.55); }
.eco-directive { padding: 20px; border-radius: 14px; border: 1px solid var(--divider); background: rgba(5,8,22,0.88); box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.mono { font: 0.72rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--soft); margin-top: 6px; letter-spacing: 0.04em; }
.eco-big { font-size: 1.9rem; font-weight: 800; margin-top: 2px; }
.eco-credit { color: var(--muted); }
.eco-credit b { color: var(--champagne); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; }
@media (max-width: 860px) { .cols2 { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.cols2 h3 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 12px; }
ol.loop { list-style: none; padding: 0; margin: 0; counter-reset: l; }
ol.loop li { counter-increment: l; position: relative; padding: 0 0 14px 44px; color: var(--muted); }
ol.loop li::before { content: counter(l); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; color: var(--text); background: #1E2538; box-shadow: 0 0 0 1px var(--hairline); }
ol.loop li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: var(--divider); }
ol.loop li:last-child::after { display: none; }
ol.loop b { color: var(--text); }
.ttable { padding: 16px 18px; margin-top: 8px; }
.trow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--inner); font-size: 0.9rem; color: #334155; }
.trow:first-of-type { border-top: 0; }
.trow b { color: #0F172A; white-space: nowrap; }
.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(--champagne); 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(--champagne); 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(--divider); background: var(--grain-dark) 0 0 / 300px 300px repeat, linear-gradient(160deg, rgba(44,52,102,0.92), rgba(28,33,64,0.92) 50%, rgba(20,24,48,0.95)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 50px rgba(5,8,20,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);
  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.6), 0 0 100px rgba(185,166,224,0.08); }
.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.8); }
.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(4, minmax(0, 1fr)); gap: 28px; }
.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; }
}
