/* 0° Quant public site. Dark first, electric blue from the logo; light mode follows the OS. */
:root {
  --bg: #05090e;
  --surface: #0b131b;
  --surface-2: #111d27;
  --border: #1c2c39;
  --text: #c3cfd9;
  --muted: #8093a2;
  --accent: #1fb8ff;
  --accent-strong: #5ccbff;
  --accent-ink: #001421;
  --quiet: #b39dff;
  --normal: #8ea3b3;
  --busy: #ff9f5a;
  --hit: #4fd68c;
  --miss: #ff6b6b;
  --radius: 10px;
  --gap: 16px;
  --max: 1040px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f8fb;
    --surface: #ffffff;
    --surface-2: #e9f0f5;
    --border: #d3dee6;
    --text: #0a1520;
    --muted: #4b5d6b;
    --accent: #0072bc;
    --accent-strong: #005a96;
    --accent-ink: #ffffff;
    --quiet: #6a4dd6;
    --normal: #4b5d6b;
    --busy: #b8560c;
    --hit: #1d8a4a;
    --miss: #c42c2c;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.02em; }
h2 { font-size: 22px; margin-top: 8px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header and footer */
.site-head { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--text);
  text-decoration: none; letter-spacing: 0.08em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #02060a; box-shadow: 0 0 0 1px rgba(31, 184, 255, .35); }

.nav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.demo-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 14px; padding: 6px 16px; }
main { padding: 36px 0 56px; }
.site-foot { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot .risk { color: var(--text); margin-bottom: 10px; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.site-foot a { color: var(--muted); }

/* building blocks */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stack > * + * { margin-top: var(--gap); }
.section { margin-top: 40px; }
.hero { padding: 12px 0 8px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.hero-logo { width: 240px; height: 240px; border-radius: 16px; border: 1px solid var(--border); object-fit: cover; }
@media (max-width: 760px) { .hero-split { grid-template-columns: 1fr; } .hero-logo { width: 160px; height: 160px; order: -1; } }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); margin-bottom: 6px; }

.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; font: 600 15px var(--font); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--text); }

form .row { display: flex; gap: 10px; flex-wrap: wrap; }
label { display: block; font-size: 14px; color: var(--muted); margin: 0 0 6px; }
input[type=email], input[type=text], select, textarea {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font: 15px var(--font); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 10px 0 12px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* labels and verdicts */
.tag { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.04em; padding: 3px 9px;
  border-radius: 999px; border: 1px solid currentColor; }
.tag-QUIET { color: var(--quiet); }
.tag-NORMAL, .tag-UNTESTED, .tag-NOT-BUSY { color: var(--normal); }
.tag-BUSY { color: var(--busy); }
.tag-HIT { color: var(--hit); }
.tag-MISS { color: var(--miss); }
.tag-NO_CALL { color: var(--normal); }

.read-big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.read-big .label { font-size: clamp(34px, 7vw, 56px); font-weight: 800; letter-spacing: -0.02em; }
.label-QUIET { color: var(--quiet); }
.label-NORMAL, .label-UNTESTED, .label-NOT-BUSY { color: var(--normal); }
.label-BUSY { color: var(--busy); }
.stat { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar.rate > span { background: var(--busy); }
.status { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.status.unlocked { color: var(--hit); }
details summary { cursor: pointer; color: var(--accent-strong); font-weight: 600; }
details[open] summary { margin-bottom: 12px; }
.notice { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--surface); border-radius: 0 8px 8px 0; }
.pager { display: flex; justify-content: space-between; margin-top: 24px; }
.mail { white-space: pre-wrap; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* session clock */
.clock { margin: 6px 0 14px; }
.clock-track { position: relative; height: 26px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.clock-window { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.clock-mark { position: absolute; top: 3px; bottom: 3px; width: 2px; margin-left: -1px; background: var(--muted); }
.clock-event { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--surface); }
.clock-scale { display: flex; justify-content: space-between; margin-top: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.impact-high { background: var(--miss); }
.impact-medium { background: var(--busy); }
.impact-low { background: var(--normal); }
.clock-list td { padding: 7px 8px; }
.ref-banner { background: var(--surface-2); border-bottom: 1px solid var(--border); text-align: center; font-size: 14px; padding: 8px 16px; }


/* markets page */
.jump-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.up { color: var(--hit); }
.down { color: var(--miss); }
.diverge { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; border: 1px solid var(--border); }
.diverge::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); }
.diverge span { position: absolute; top: 0; bottom: 0; }
.diverge .pos { background: var(--hit); }
.diverge .neg { background: var(--miss); }

/* Thesis */
.lean { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 9px;
  border: 1px solid var(--border); border-radius: 6px; }
.lean { color: var(--accent); text-transform: none; }
a.thesis-row { display: block; color: var(--text); text-decoration: none; margin-bottom: 12px; }
a.thesis-row:hover { border-color: var(--accent); }
.thesis-body { max-width: 720px; position: relative; }
.thesis-body p { line-height: 1.65; }
.thesis-body .fade { height: 60px; margin-top: -60px; position: relative;
  background: linear-gradient(to bottom, transparent, var(--bg)); }
.paywall { border-color: var(--accent); max-width: 720px; }
.disclosure { max-width: 720px; border-top: 1px solid var(--border); padding-top: 12px; }
@media (max-width: 640px) {
  .site-head .wrap { gap: 8px 16px; padding-top: 10px; padding-bottom: 6px; }
  .brand { order: 1; } .nav-right { order: 2; margin-left: auto; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
}


/* ===== Design layer v2: depth, glow, data-first components ===== */
:root {
  --glow: color-mix(in srgb, var(--accent) 38%, transparent);
  --hairline: color-mix(in srgb, var(--text) 9%, transparent);
  --card-top: color-mix(in srgb, var(--surface) 90%, white 6%);
  --shadow: 0 1px 0 color-mix(in srgb, white 5%, transparent) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --radius: 14px;
}
@media (prefers-color-scheme: light) {
  :root {
    --glow: color-mix(in srgb, var(--accent) 18%, transparent);
    --card-top: #ffffff;
    --shadow: 0 1px 2px rgba(10, 21, 32, 0.05), 0 14px 32px -20px rgba(10, 21, 32, 0.25);
  }
}
body {
  background:
    radial-gradient(1000px 520px at 88% -8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(800px 460px at -8% 4%, color-mix(in srgb, var(--quiet) 11%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font-feature-settings: "tnum" 1, "ss01" 1;
}
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; margin-top: 0; }
h3 { letter-spacing: -0.01em; }
.lead { font-size: 19px; line-height: 1.55; }

/* header: glass, sticky */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--hairline); }
.nav a { position: relative; padding: 6px 2px; transition: color .15s; }
.nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.btn.nav-cta { padding: 7px 14px; font-size: 14px; }

/* cards */
.card { background: linear-gradient(180deg, var(--card-top), var(--surface)); border: 1px solid var(--hairline);
  box-shadow: var(--shadow); border-radius: var(--radius); padding: 22px; }
a.card, a.thesis-row { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.card:hover, a.thesis-row:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), 0 16px 40px -18px var(--glow); }
.card.feature { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--accent) 30%, var(--hairline)); }
.card.feature::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 420px; height: 420px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent); }
.card.feature > * { position: relative; }

/* buttons */
.btn { background: linear-gradient(180deg, var(--accent-strong), var(--accent)); border-color: transparent; border-radius: 10px;
  box-shadow: 0 8px 24px -10px var(--glow), 0 1px 0 rgba(255, 255, 255, 0.35) inset; transition: transform .12s, box-shadow .12s; }
.btn:hover { background: linear-gradient(180deg, var(--accent-strong), var(--accent-strong)); transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px var(--glow), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
.btn.ghost { background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--hairline); box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--text) 8%, transparent); border-color: var(--muted); transform: none; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 12px; }

/* tags, labels */
.tag { background: color-mix(in srgb, currentColor 12%, transparent); border-color: color-mix(in srgb, currentColor 45%, transparent);
  letter-spacing: 0.05em; font-size: 12px; }
.read-big .label { letter-spacing: -0.04em; line-height: 1; }
@media (prefers-color-scheme: dark) {
  .read-big .label { text-shadow: 0 0 34px color-mix(in srgb, currentColor 55%, transparent); }
}
.eyebrow { letter-spacing: 0.12em; font-size: 11.5px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid var(--hairline); color: var(--muted);
  background: color-mix(in srgb, var(--text) 4%, transparent); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hit); box-shadow: 0 0 10px var(--hit); }

/* tables */
th { text-transform: uppercase; letter-spacing: 0.07em; font-size: 11.5px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--text) 3.5%, transparent); }
td, th { border-bottom-color: var(--hairline); }
tbody tr:last-child td { border-bottom: 0; }

/* stats */
.stat { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-feature-settings: "tnum" 1; }
.stat-label { line-height: 1.4; }
.bar { height: 8px; border: 0; background: color-mix(in srgb, var(--text) 8%, transparent); }
.bar > span { background: linear-gradient(90deg, var(--accent), var(--accent-strong)); box-shadow: 0 0 12px var(--glow);
  border-radius: 999px; }

/* hero */
.hero2 { position: relative; padding: 18px 0 6px; }
.hero2::before { content: ""; position: absolute; inset: -80px -16px auto; height: 360px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 100% at 50% 0%, #000, transparent 75%); opacity: 0.7; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr); gap: 40px; align-items: center; }
.hero2 h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; margin: 14px 0 16px; }
.grad { background: linear-gradient(100deg, var(--text) 10%, var(--accent-strong) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 6px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 320px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: #02060a;
  border: 1px solid var(--hairline); box-shadow: 0 30px 80px -30px var(--glow), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent); }
@media (prefers-color-scheme: dark) {
  .hero-art img { mix-blend-mode: screen; border: 0; box-shadow: none; border-radius: 0;
    -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
}
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; gap: 8px; } .hero-art { order: -1; } .hero-art img { width: 180px; height: 180px; } }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; max-width: 560px; }
.stat-strip > div { border-left: 2px solid var(--hairline); padding: 2px 0 2px 14px; }
.stat-strip .n { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat-strip .n.q { color: var(--quiet); } .stat-strip .n.b { color: var(--busy); }
.stat-strip .l { font-size: 13px; color: var(--muted); line-height: 1.35; }
.strip-cap { font-size: 12px; color: var(--muted); margin-top: 8px; max-width: 560px; }

/* meter: overnight activity against normal */
.meter { margin: 18px 0 6px; }
.meter-track { position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--quiet), color-mix(in srgb, var(--normal) 70%, var(--bg)) 33%, var(--busy)); opacity: 0.9; }
.meter-normal { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); opacity: 0.55; border-radius: 2px; }
.meter-pin { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 14%, transparent), 0 0 18px var(--glow); }
.meter-val { position: absolute; bottom: 20px; transform: translateX(-50%); font-weight: 800; font-size: 15px; white-space: nowrap; }
.meter-scale { position: relative; height: 18px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.meter-scale span { position: absolute; white-space: nowrap; }

/* odds bars */
.odds { display: grid; gap: 10px; margin-top: 4px; }
.odds-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 44px; gap: 12px; align-items: center; font-size: 14px; }
.odds-row .odds-bar { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 8%, transparent); overflow: hidden; }
.odds-row .odds-bar span { display: block; height: 100%; border-radius: 999px; background: var(--normal); }
.odds-row .odds-bar span.hot { background: var(--busy); box-shadow: 0 0 14px color-mix(in srgb, var(--busy) 55%, transparent); }
.odds-row .odds-bar span.cool { background: var(--quiet); }
.odds-row strong { text-align: right; font-variant-numeric: tabular-nums; }

/* history strip: one cell per Night Read, colour = call, ring = result */
.hist { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; margin-top: 8px; }
.hist a { position: relative; display: block; height: 46px; border-radius: 8px; text-decoration: none;
  background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); transition: transform .12s; }
.hist a:hover { transform: translateY(-2px); }
.hist a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  border: 2px solid var(--muted); }
.hist a.v-HIT::after { background: var(--hit); border-color: var(--hit); box-shadow: 0 0 8px var(--hit); }
.hist a.v-MISS::after { background: var(--miss); border-color: var(--miss); }
.hist a.v-NO_CALL::after { border-color: var(--muted); }
.hist .c-QUIET { --c: var(--quiet); } .hist .c-BUSY { --c: var(--busy); } .hist .c-NORMAL, .hist .c-UNTESTED, .hist .c-NOT-BUSY { --c: var(--normal); }
.hist-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.hist-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* event chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chips .chip2 { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--hairline); }
.chips .chip2 .dot { margin-right: 6px; }

/* steps and product tiles */
.how-steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.how-step { position: relative; padding-top: 52px; }
.how-step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; left: 22px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent)); box-shadow: 0 0 16px var(--glow); }
.tile { display: block; color: var(--text); text-decoration: none; }
.tile svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; filter: drop-shadow(0 0 8px var(--glow)); }
.tile h3 { margin-bottom: 6px; }
.tile .status { display: inline-block; margin-top: 4px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head p { margin: 0; }
.join-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
@media (max-width: 760px) { .join-band { grid-template-columns: 1fr; gap: 12px; } }
.join-band h2 { margin-bottom: 8px; }

/* session clock, richer */
.clock-track { height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--hairline); }
.clock-window { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
  border-radius: 6px; box-shadow: 0 0 22px -4px var(--glow); }
.clock-mark { background: var(--text); opacity: 0.45; }
.clock-event { box-shadow: 0 0 12px currentColor; }

/* footer */
.site-foot { border-top: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 22px; }
.foot-grid h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); }
.foot-grid a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.foot-grid a:hover { color: var(--text); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
a { text-underline-offset: 3px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.hist a span { position: absolute; top: 5px; left: 0; right: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.hist a:hover span { color: var(--text); }

/* Activity score */
.score { display: flex; align-items: center; gap: 16px; margin: 16px 0 34px; }
.score-num { font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.score-num span { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.score-band { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.score-calm { color: var(--quiet); } .score-normal { color: var(--muted); }
.score-active { color: var(--busy); } .score-very-active { color: var(--miss); }

/* Story sections (home): big headline, one floating product card each */
.story { text-align: center; padding: 88px 0 8px; }
.story h2.big { font-size: clamp(42px, 9vw, 92px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; margin: 0 auto; }
.story h2.big .grad { display: inline-block; }
.story .lead { max-width: 560px; margin: 18px auto 0; font-size: 18px; }
.float-card { --text: #c3cfd9; --muted: #8093a2; --border: #1c2c39; --accent: #1fb8ff; --quiet: #b39dff; --normal: #8093a2;
  --busy: #ff9f5a; --hit: #4fd68c; --miss: #ff6b6b;
  position: relative; max-width: 540px; margin: 32px auto 0; padding: 20px 22px; text-align: left; color: var(--text);
  background: linear-gradient(180deg, #0e1a24, #070e15); border: 1px solid #1c2c39; border-radius: 22px;
  box-shadow: 0 30px 60px -28px rgba(0, 20, 40, .55), 0 0 0 1px rgba(31, 184, 255, .08), 0 -30px 80px -50px rgba(31, 184, 255, .5) inset; }
.float-card a { color: var(--accent); }
.float-card .eyebrow { color: var(--muted); }
.fc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fc-head a { font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.fc-text { margin: 12px 0 4px; font-size: 17px; }
.fc-sep { height: 1px; background: #1c2c39; margin: 18px 0 14px; }
.fc-foot { margin: 14px 0 0; }
.fc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 11px 12px; margin-top: 6px;
  border-radius: 12px; background: rgba(255, 255, 255, .03); }
.fc-row .fc-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
.fc-row:has(.fc-time) { grid-template-columns: 62px 1fr auto; }
.fc-total { display: flex; justify-content: space-between; gap: 14px; padding: 14px 12px 4px; margin-top: 8px;
  border-top: 1px solid #1c2c39; font-weight: 700; }
.fc-total .neg { font-size: 24px; }
.float-card .neg { color: var(--miss); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.story-note { max-width: 560px; margin: 44px auto 0; }
.float-card .stat-strip { margin: 0; justify-content: space-between; }
@media (max-width: 760px) { .story { padding-top: 60px; } .float-card { padding: 16px; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { transform: translateY(48px) scale(.96); } to { transform: none; } }
    .story .float-card { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
    @keyframes headline { from { transform: translateY(22px); } to { transform: none; } }
    .story h2.big { animation: headline linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
