/* Palm Eye — landing page. The app's language: flat cards on a near-black ground, hairlines, one amber accent, haze only
 * on the floating chrome, continuous corners, colour for meaning (green good · amber warn · blue info). Motion is soft
 * and purposeful — and all of it stops under prefers-reduced-motion. Copyright © 2026 Palm Digitalz. All rights reserved. */

:root {
  color-scheme: dark;
  --ground: #0A0A0C;
  --surface: #111114;
  --surface2: #1B1B1F;
  --surface3: #26262B;
  --label: #F5F5F7;
  --secondary: rgba(245, 245, 247, .64);
  --tertiary: rgba(245, 245, 247, .38);
  --hairline: rgba(255, 255, 255, .12);
  --hairline-soft: rgba(255, 255, 255, .07);
  --accent: #E8A33D;
  --accent-2: #FFC46B;
  --accent-soft: rgba(232, 163, 61, .18);
  --on-accent: #1A1200;
  --green: #30D158;
  --orange: #FF9F0A;
  --blue: #0A84FF;
  --teal: #64D2FF;
  --haze: rgba(10, 10, 12, .62);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --body-hi: #4A4E57; --body-mid: #23252B; --body-lo: #0F1013;
  --glass-a: rgba(140, 170, 210, .38); --glass-b: rgba(20, 26, 36, .85);
  --floor-a: rgba(232, 163, 61, .16); --floor-b: rgba(232, 163, 61, 0);
  --r-card: 22px; --r-tile: 16px; --r-btn: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --page: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ground: #F2F2F7; --surface: #FFFFFF; --surface2: #F7F7F9; --surface3: #EBEBF0;
    --label: #111113; --secondary: rgba(17, 17, 19, .62); --tertiary: rgba(17, 17, 19, .4);
    --hairline: rgba(0, 0, 0, .1); --hairline-soft: rgba(0, 0, 0, .06);
    --accent: #A8650A; --accent-2: #D08A22; --accent-soft: rgba(168, 101, 10, .12); --on-accent: #FFFFFF;
    --green: #248A3D; --orange: #C93400; --blue: #007AFF; --teal: #0071A4;
    --haze: rgba(242, 242, 247, .72);
    --shadow: 0 24px 60px rgba(0, 0, 0, .12);
    --body-hi: #FFFFFF; --body-mid: #D9DCE2; --body-lo: #9EA3AD;
    --glass-a: rgba(120, 150, 190, .5); --glass-b: rgba(40, 50, 66, .9);
    --floor-a: rgba(0, 0, 0, .14); --floor-b: rgba(0, 0, 0, 0);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ground); color: var(--label); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code { font: 500 13px/1.4 var(--mono); color: var(--label); background: var(--surface2); border: 1px solid var(--hairline-soft); padding: 2px 6px; border-radius: 6px; white-space: normal; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sub { color: var(--secondary); font-size: 17px; max-width: 64ch; }
.note { color: var(--tertiary); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: var(--r-card); }

/* ---------- nav: the only hazed surface ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--page); background: var(--haze); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--hairline-soft); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 650; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand-eye { width: 30px; height: 30px; }
.brand-eye path { fill: none; stroke: var(--label); stroke-width: 2.6; stroke-linejoin: round; }
.brand-eye .iris { fill: none; stroke: var(--accent); stroke-width: 3.4; }
.brand-eye .pupil { fill: var(--label); transition: transform .25s var(--ease); }
.nav nav { display: flex; gap: 4px; align-items: center; }
.nav nav a { color: var(--secondary); font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--label); background: var(--surface2); text-decoration: none; }
.nav nav a.nav-cta { color: var(--on-accent); background: var(--accent); font-weight: 600; }
.nav nav a.nav-cta:hover { background: var(--accent-2); }
@media (max-width: 720px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font: 600 16px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .3s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -10px var(--accent); }
.btn.primary:hover { background: var(--accent-2); box-shadow: 0 12px 36px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--label); border-color: var(--hairline); }
.btn.ghost:hover { background: var(--surface2); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(40px, 8vw, 120px) var(--page) clamp(48px, 7vw, 96px); max-width: 1280px; margin: 0 auto; position: relative; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 80%; background: radial-gradient(closest-side, var(--accent-soft), transparent); filter: blur(30px); pointer-events: none; z-index: -1; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12) translateX(-4%); opacity: .7; } }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; }
.glow { background: linear-gradient(100deg, var(--label) 0%, var(--accent-2) 45%, var(--accent) 60%, var(--label) 100%); background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s var(--ease) infinite; }
@keyframes sheen { 0%, 20% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.lede { margin-top: 22px; color: var(--secondary); font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.hero-facts li { display: flex; flex-direction: column; font-size: 14px; }
.hero-facts b { font-weight: 600; }
.hero-facts span { color: var(--tertiary); }
.hero-copy .reveal:nth-child(2) { --d: .08s; } .hero-copy .reveal:nth-child(3) { --d: .16s; } .hero-copy .reveal:nth-child(4) { --d: .24s; } .hero-copy .reveal:nth-child(5) { --d: .32s; }

.hero-art { position: relative; --d: .2s; }
.stage { width: 100%; height: auto; display: block; overflow: visible; }
.st-hi { stop-color: var(--body-hi); } .st-mid { stop-color: var(--body-mid); } .st-lo { stop-color: var(--body-lo); }
.gl-a { stop-color: var(--glass-a); } .gl-b { stop-color: var(--glass-b); }
.fl-a { stop-color: var(--floor-a); } .fl-b { stop-color: var(--floor-b); }
.pt-a { stop-color: var(--accent); stop-opacity: .9; } .pt-b { stop-color: var(--accent); stop-opacity: 0; }
.car { animation: float 6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes float { 50% { transform: translateY(-5px); } }
.car .crease { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; }
.car .rim-light { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: rim 5s var(--ease) infinite; }
@keyframes rim { 0% { stroke-dashoffset: 520; opacity: 0; } 15% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: .9; } 100% { stroke-dashoffset: -520; opacity: 0; } }
.wheel circle { fill: #050506; stroke: #2B2D33; stroke-width: 6; }
.wheel .hub { fill: #3A3D45; stroke: #6B6F79; stroke-width: 2; }
.port { fill: var(--accent); }
.port-glow { animation: portpulse 2.6s ease-in-out infinite; transform-origin: 262px 238px; }
@keyframes portpulse { 50% { transform: scale(1.6); opacity: .35; } }
.wire { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .55; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -22; } }
.packet { fill: var(--accent-2); filter: drop-shadow(0 0 6px var(--accent)); }
.packet.p2 { fill: var(--teal); filter: drop-shadow(0 0 6px var(--teal)); }
.packet.p3 { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.phone rect { fill: var(--surface3); stroke: var(--hairline); }
.phone .screen { fill: var(--ground); }
.phone .spark { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 2.6s var(--ease) infinite; }
@keyframes draw { 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
.cloud path { fill: var(--surface2); stroke: var(--teal); stroke-width: 1.5; animation: cloudglow 2.6s ease-in-out infinite; }
@keyframes cloudglow { 50% { stroke: var(--accent); } }

.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: 13px; background: var(--haze); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--hairline); box-shadow: var(--shadow); white-space: nowrap; animation: bob 5s ease-in-out infinite; }
.chip b { font-weight: 600; transition: opacity .35s var(--ease); }
.chip b.swap { opacity: 0; }
.chip.c1 { left: 2%; top: 18%; } .chip.c2 { left: 48%; top: 2%; animation-delay: -1.2s; } .chip.c3 { right: 0; top: 54%; animation-delay: -2.4s; } .chip.c4 { left: 6%; bottom: 6%; animation-delay: -3.6s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: var(--green); } .dot.warn { background: var(--orange); } .dot.info { background: var(--blue); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) { .chip { font-size: 11px; padding: 6px 10px; } .chip.c2 { left: 38%; } }

/* ---------- sections ---------- */
section { padding: clamp(56px, 8vw, 112px) var(--page); max-width: 1280px; margin: 0 auto; }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.1; }

.how h2 { text-align: center; margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: var(--r-card); padding: 28px; position: relative; transition: transform .4s var(--spring), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--hairline); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; right: 24px; font: 700 13px var(--mono); color: var(--tertiary); }
.step:nth-child(2) { --d: .1s; } .step:nth-child(3) { --d: .2s; }
.step svg { width: 56px; height: 56px; margin-bottom: 18px; fill: none; stroke: var(--label); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step svg .pulse { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 40; }
.step.in svg .pulse { animation: draw 3s var(--ease) infinite .4s; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--secondary); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- estimate ---------- */
.est-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .est-grid { grid-template-columns: 1fr; } }
.inputs { padding: 8px 24px 24px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; scrollbar-width: thin; }
@media (max-width: 1000px) { .inputs { position: static; max-height: none; } }
fieldset { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: .06em; padding: 0; margin-bottom: 10px; }
legend small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--tertiary); }
.fields { display: grid; gap: 10px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 15px; }
.field.wide { grid-template-columns: 1fr; gap: 6px; }
.field.slider { grid-template-columns: 1fr; gap: 8px; }
.field.slider span { display: flex; justify-content: space-between; gap: 12px; }
output { font: 600 15px var(--mono); color: var(--accent); }
.unit-in { display: inline-flex; align-items: center; gap: 6px; background: var(--surface2); border: 1px solid var(--hairline-soft); border-radius: 12px; padding: 0 10px; height: 40px; transition: border-color .2s, box-shadow .2s; }
.unit-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.unit-in em { font-style: normal; color: var(--tertiary); font-size: 13px; white-space: nowrap; }
.unit-in em.pre { color: var(--secondary); }
input[type="number"], input[type="text"] { font: 500 16px var(--font); color: var(--label); background: transparent; border: 0; outline: 0; width: 88px; text-align: right; -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field.wide input[type="text"] { width: 100%; text-align: left; height: 44px; padding: 0 14px; background: var(--surface2); border: 1px solid var(--hairline-soft); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.field.wide input[type="text"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 40%), var(--surface3) var(--p, 40%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform .2s var(--spring); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.assume { border-top: 1px solid var(--hairline-soft); padding-top: 16px; }

.types { display: grid; gap: 8px; }
.type-head, .type-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 108px 108px; gap: 8px; align-items: center; }
.type-head { font-size: 12px; color: var(--tertiary); }
.type-head span:nth-child(n+3) { text-align: center; }
.type-row svg { width: 34px; height: 22px; fill: none; stroke: var(--secondary); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.type-row .name { font-size: 15px; }
.stepper { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; height: 38px; background: var(--surface2); border: 1px solid var(--hairline-soft); border-radius: 12px; overflow: hidden; }
.stepper:focus-within { border-color: var(--accent); }
.stepper button { height: 100%; border: 0; background: transparent; color: var(--secondary); font: 500 18px var(--font); cursor: pointer; transition: background .15s, color .15s; }
.stepper button:hover { background: var(--surface3); color: var(--label); }
.stepper button:active { transform: scale(.9); }
.stepper input { width: 100%; text-align: center; font-size: 15px; padding: 0; }
.stepper.bump { animation: bump .35s var(--spring); }
@keyframes bump { 40% { transform: scale(1.06); } }
@media (max-width: 420px) { .type-head, .type-row { grid-template-columns: 26px minmax(0, 1fr) 92px 92px; } .type-row svg { width: 26px; } }

.seg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.seg-label { font-size: 15px; }
.seg { position: relative; display: inline-flex; background: var(--surface2); border: 1px solid var(--hairline-soft); border-radius: 12px; padding: 3px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; color: var(--secondary); font: 500 14px var(--font); padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: color .25s; }
.seg button[aria-checked="true"] { color: var(--label); }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--surface3); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .35s var(--spring), width .35s var(--spring); }
.pains, .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pain, .pills button { border: 1px solid var(--hairline); background: transparent; color: var(--secondary); font: 500 14px var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .25s var(--spring); }
.pain:hover, .pills button:hover { color: var(--label); border-color: var(--tertiary); }
.pain[aria-pressed="true"], .pills button[aria-checked="true"] { background: var(--accent-soft); color: var(--label); border-color: var(--accent); }
.pain:active, .pills button:active { transform: scale(.95); }

.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .outcomes { grid-template-columns: 1fr; } }
.outcome, .total { padding: 24px; display: grid; gap: 10px; align-content: start; transition: transform .4s var(--spring), border-color .3s, box-shadow .4s; }
.outcome:hover { transform: translateY(-3px); border-color: var(--hairline); box-shadow: var(--shadow); }
.outcome header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.outcome h3 { font-size: 19px; }
.tag { font-size: 12px; color: var(--tertiary); border: 1px solid var(--hairline-soft); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.outcome[data-key="downtime"] .tag { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.big { font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.big small { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--secondary); margin-top: 4px; }
.line { color: var(--secondary); font-size: 15px; }
.line b { color: var(--label); font-weight: 600; font-variant-numeric: tabular-nums; }
.formula { font-size: 13px; color: var(--tertiary); line-height: 2.1; }
.formula code { margin-right: 4px; }
.cite { font-size: 13px; color: var(--tertiary); border-top: 1px solid var(--hairline-soft); padding-top: 10px; }
.total { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 60%); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.total .big { font-size: clamp(34px, 4.4vw, 54px); display: flex; flex-wrap: wrap; align-items: baseline; }
.total .big span[data-out] { white-space: nowrap; }
.outcome.focus { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.outcome.focus h3::after { content: " ·  you said this hurts"; font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.total .dash { color: var(--tertiary); margin: 0 .15em; font-weight: 400; }
.total .sub { font-size: 15px; }
.bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface3); margin-top: 6px; }
.bar i { display: block; height: 100%; width: 0; transition: width .9s var(--ease); }
.bar i[data-bar="idle"], .k.idle { background: var(--accent); }
.bar i[data-bar="down"], .k.down { background: var(--teal); }
.bar i[data-bar="maint"], .k.maint { background: var(--green); }
.legend { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; font-size: 13px; color: var(--secondary); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 6px; }
.k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.flash { animation: flash .6s var(--ease); }
@keyframes flash { 30% { color: var(--accent-2); } }

.ring-row { display: flex; align-items: center; gap: 20px; }
.ring { width: 96px; height: 96px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--surface3); }
.ring .arc { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease); }

/* ---------- live fleet ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: var(--r-tile); padding: 20px; display: grid; gap: 4px; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(closest-side, var(--accent-soft), transparent); opacity: 0; transition: opacity .5s; }
.tile:hover::after { opacity: 1; }
.tile .v { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--secondary); font-size: 14px; }
.tile .live { position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.tiles .empty { grid-column: 1 / -1; color: var(--tertiary); font-size: 15px; padding: 24px; text-align: center; border: 1px dashed var(--hairline); border-radius: var(--r-tile); }
.makes { margin-top: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-size: 22px; font-weight: 650; color: var(--tertiary); letter-spacing: -.01em; white-space: nowrap; transition: color .3s; }
.marquee span:hover { color: var(--label); }
.makes:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.protocols { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.protocols .proto { font: 500 13px var(--mono); color: var(--secondary); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 12px; opacity: 0; transform: scale(.9); transition: opacity .4s var(--ease), transform .4s var(--spring); transition-delay: var(--d, 0s); }
.protocols.in .proto { opacity: 1; transform: none; }
.honest { margin-top: 20px; color: var(--tertiary); font-size: 14px; max-width: 72ch; }
.sample-flag { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--orange); border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; vertical-align: middle; }

/* ---------- talk ---------- */
.talk-card { padding: clamp(24px, 4vw, 48px); display: grid; gap: 14px; position: relative; overflow: hidden; }
.talk-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -260px; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.composer { display: grid; gap: 22px; margin-top: 10px; }
.q { display: grid; gap: 10px; opacity: .45; transition: opacity .4s var(--ease); }
.q.active, .q.done { opacity: 1; }
.q-title { font-size: 15px; font-weight: 600; }
.q .field.wide + .field.wide { margin-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hold-row { display: grid; gap: 10px; justify-items: start; }
.hold { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 22px 6px 8px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface2); color: var(--label); font: 600 16px var(--font); cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; transition: background .2s, border-color .2s, transform .2s var(--spring), opacity .3s; }
.hold svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.hold circle { fill: none; stroke-width: 3.5; }
.hold .hold-track { stroke: var(--surface3); }
.hold .hold-arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--hold, 0) 100; }
.hold:disabled { opacity: .45; cursor: not-allowed; }
.hold:not(:disabled):hover { border-color: var(--accent); }
.hold.pressing { transform: scale(.98); background: var(--accent-soft); }
.hold.ok { border-color: var(--green); }
.hold.ok .hold-arc { stroke: var(--green); }
.draft { display: grid; gap: 14px; margin-top: 8px; animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.draft-head { display: grid; gap: 6px; font-size: 15px; }
.draft-head .k { display: inline-block; width: 72px; color: var(--tertiary); }
.draft-body { margin: 0; white-space: pre-wrap; font: 400 14px/1.6 var(--mono); color: var(--secondary); background: var(--surface2); border: 1px solid var(--hairline-soft); border-radius: 14px; padding: 18px; max-height: 360px; overflow: auto; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copied { font-size: 14px; color: var(--green); }

/* ---------- sources + footer ---------- */
.sources h2 { font-size: 22px; margin-bottom: 14px; }
.sources ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--secondary); font-size: 14px; max-width: 90ch; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 32px var(--page) 48px; max-width: 1280px; margin: 0 auto; color: var(--tertiary); font-size: 13px; border-top: 1px solid var(--hairline-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .car .rim-light, .phone .spark, .step svg .pulse { stroke-dashoffset: 0; }
}
