/* The public score pages (landing/seo.py): the landing page's dark look, light enough to load fast. */
:root {
  color-scheme: dark;
  --ground: #05060A; --raised: #0C0E15; --sheet: #141722;
  --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .17);
  --fg: #F5F6FA; --fg-2: #B9BECE; --fg-3: #80869B;
  --paper: #F2F3F7; --on-paper: #0A0B10; --accent: #54E2E9; --warm: #FF8752;
  --f-display: "Mona Sans", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Mona Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-voice: "Newsreader", Georgia, serif;
  --f-data: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--ground); color: var(--fg); font: 400 16.5px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.cap { font: 500 11.5px/1.4 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.small { font-size: 14px; color: var(--fg-3); margin-top: 12px; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(5, 6, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 20px/1 var(--f-display); font-stretch: 118%; }
.brand img { display: block; height: 26px; width: auto; }
.top nav { display: flex; align-items: center; gap: 16px; font-size: 14.5px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--fg-2); }
.top nav a:not(.btn):hover { color: var(--fg); }
@media (max-width: 520px) { .top nav a:not(.btn):not(.keep) { display: none; } .top nav { gap: 12px; } }
@media (hover: none) { .td-q kbd { display: none; } }
.xs-show { display: none; }
@media (max-width: 420px) { .xs-hide { display: none; } .xs-show { display: inline; } .brand img { height: 22px; } }
.ring .fg { animation: ring-draw 1.3s cubic-bezier(.16, 1, .3, 1) both .1s; }
@keyframes ring-draw { from { stroke-dasharray: 0 100; } }
@media (prefers-reduced-motion: reduce) { .ring .fg { animation: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; background: var(--paper); color: var(--on-paper); font: 650 15px/1 var(--f-ui); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.shares { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.btn:disabled { opacity: .6; cursor: default; }

main { padding-block: 18px 40px; }
.crumbs { margin-bottom: 18px; overflow-wrap: anywhere; }
.crumbs a { text-decoration: none; color: var(--fg-2); }
section { margin-top: 40px; }
h1 { font: 800 clamp(30px, 5vw, 46px)/1.05 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; margin: 6px 0 14px; overflow-wrap: anywhere; }
h2 { font: 750 clamp(21px, 3vw, 26px)/1.2 var(--f-display); font-stretch: 108%; margin-bottom: 14px; }
.lede { color: var(--fg-2); font-size: 17.5px; max-width: 46em; }

/* one stock */
.hero { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 720px) { .hero { grid-template-columns: minmax(0, 1fr); } .ring-card { max-width: 320px; width: 100%; margin: 0 auto; } }
.ring-card { display: grid; justify-items: center; gap: 12px; padding: 24px; border-radius: 28px; background: radial-gradient(70% 60% at 50% 40%, rgba(84, 226, 233, .07), transparent 70%), var(--raised); border: 1px solid var(--line); }
.ring { position: relative; width: 100%; max-width: 250px; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring path { fill: none; stroke-linecap: round; }
.ring .bg { stroke: rgba(255, 255, 255, .07); }
.ring .fg { filter: drop-shadow(0 0 6px currentColor); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font: 850 84px/.9 var(--f-display); font-stretch: 125%; letter-spacing: -.04em; }
.band { color: var(--fg-2); }
.voice { font: italic 400 22px/1.35 var(--f-voice); color: var(--fg); margin-bottom: 12px; }
.facts { color: var(--fg-2); }
.facts a { color: var(--fg); }
.stamp { margin-top: 14px; }

.drivers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.drivers li { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); }
.drivers i { border-radius: 3px; }
.drivers b { font-weight: 650; }
.drivers em { font: 500 11.5px/1 var(--f-data); font-style: normal; letter-spacing: .06em; text-transform: uppercase; margin-left: 8px; color: var(--fg-3); }
.drivers p { color: var(--fg-2); margin-top: 4px; }

.trend { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); }
.spark { width: 100%; height: 90px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark circle { fill: var(--accent); }
.spark .mid { stroke: var(--line-2); stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.trend p { color: var(--fg-2); font-size: 15px; }

.table { overflow-x: auto; }
.parts { width: 100%; border-collapse: collapse; }
.parts th, .parts td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.parts th { font-weight: 600; white-space: nowrap; }
.parts th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; }
.parts td.num { white-space: nowrap; }
.parts .m { color: var(--fg-3); font-size: 14px; }
.bar { display: block; width: 90px; height: 6px; margin-top: 9px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; }
@media (max-width: 600px) {
  .parts tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .parts th, .parts td { border: 0; padding: 0; }
  .parts td:nth-child(3) { display: none; }
  .parts td.m { grid-column: 1 / -1; margin-top: 4px; }
}

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.list a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); text-decoration: none; min-width: 0; }
.list a:hover { border-color: var(--line-2); }
.rk { font: 500 13px/1 var(--f-data); color: var(--fg-3); width: 26px; flex: none; }
.who { display: grid; min-width: 0; flex: 1; }
.who span { color: var(--fg-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 650 14px/1 var(--f-data);
  background: radial-gradient(closest-side, var(--raised) 78%, transparent 80% 100%), conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.az { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 500 14px/1.6 var(--f-data); }
.az a { color: var(--fg-2); text-decoration: none; }
.az a:hover { color: var(--fg); text-decoration: underline; }
#how p { color: var(--fg-2); max-width: 46em; }
.notice { margin-top: 28px; font-size: 14px; color: var(--fg-3); }

.cta { margin-top: 48px; padding: clamp(22px, 4vw, 36px); border-radius: 28px; background: var(--sheet); border: 1px solid var(--line-2); }
.cta p { color: var(--fg-2); max-width: 40em; }
.join { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.join input[type=email] { flex: 1 1 220px; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--ground); }
.join .btn { height: 46px; }
.join-note { flex-basis: 100%; font-size: 13.5px; color: var(--fg-3); }
.join-note.err { color: var(--warm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.joined { margin-top: 18px; display: grid; gap: 8px; }
.joined b { font: 750 22px/1.2 var(--f-display); }
.joined code { font: 500 13.5px/1.4 var(--f-data); overflow-wrap: anywhere; color: var(--fg); }

footer { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: grid; gap: 12px; }
footer p { font-size: 13px; color: var(--fg-3); max-width: 70em; }
footer a { color: var(--fg-2); }

/* ---------- today ---------- */
.td-hero { position: relative; padding: clamp(28px, 6vw, 64px) 0 8px; isolation: isolate; }
.td-glow { position: absolute; inset: -60px -20vw auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 20% 30%, rgba(95, 173, 255, .16), transparent 70%), radial-gradient(35% 45% at 60% 20%, rgba(84, 226, 233, .12), transparent 70%),
              radial-gradient(30% 40% at 85% 40%, rgba(231, 110, 223, .12), transparent 70%); filter: blur(10px); animation: td-drift 14s ease-in-out infinite alternate; }
@keyframes td-drift { to { transform: translateX(3vw) translateY(10px); } }
.td-eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.td-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #79F481; box-shadow: 0 0 0 0 rgba(121, 244, 129, .6); animation: td-ping 2.2s infinite; }
@keyframes td-ping { 70% { box-shadow: 0 0 0 9px rgba(121, 244, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(121, 244, 129, 0); } }
.td-hero h1 { font-size: clamp(44px, 9vw, 92px); line-height: .95; letter-spacing: -.035em; font-stretch: 118%; margin: 14px 0 18px; }
.td-hero h1 em { font: italic 400 1.02em/1 var(--f-voice); letter-spacing: -.01em;
  background: linear-gradient(90deg, #5FADFF, #54E2E9, #79F481, #FDD343, #FF8752, #E76EDF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.td-q { margin-top: 26px; display: flex; align-items: center; gap: 12px; width: min(620px, 100%); height: 58px; padding: 0 14px 0 20px; border-radius: 999px; cursor: text;
  border: 1px solid var(--line-2); background: rgba(12, 14, 21, .7); backdrop-filter: blur(8px); color: var(--fg-3); font-size: 16.5px; text-align: left;
  box-shadow: 0 0 0 6px rgba(84, 226, 233, .04), 0 20px 60px rgba(0, 0, 0, .4); transition: border-color .2s, box-shadow .2s; }
.td-q:hover { border-color: rgba(84, 226, 233, .5); box-shadow: 0 0 0 6px rgba(84, 226, 233, .08), 0 20px 60px rgba(0, 0, 0, .4); }
.td-q span { flex: 1; }
.td-stats { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 820px) { .td-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.td-stat { padding: 16px 18px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)); border: 1px solid var(--line); }
.td-stat b { display: block; font: 800 clamp(26px, 3.6vw, 34px)/1.1 var(--f-display); font-stretch: 112%; margin: 8px 0 4px; }
.td-stat b .num { font-family: inherit; }
.td-stat p:last-child { color: var(--fg-3); font-size: 13.5px; }
.td-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.td-h h2 { margin: 0; }
.td-h a.cap { text-decoration: none; color: var(--fg-2); }
.td-h a.cap:hover { color: var(--fg); }
section.td-sec, .td section { margin-top: clamp(44px, 7vw, 72px); }

.td-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .td-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .td-cards { grid-template-columns: minmax(0, 1fr); } }
.td-card a { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 6px 16px; height: 100%; padding: 18px; border-radius: 24px;
  text-decoration: none; background: radial-gradient(120% 80% at 0% 0%, rgba(84, 226, 233, .07), transparent 60%), var(--raised); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .25s, box-shadow .35s; animation: td-rise .7s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms); }
.td-card a:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04); }
@keyframes td-rise { from { opacity: 0; transform: translateY(14px); } }
.td-ring { position: relative; grid-row: 1 / 3; width: 96px; height: 96px; }
.td-ring svg { width: 100%; height: 100%; overflow: visible; }
.td-ring path { fill: none; stroke-linecap: round; }
.td-ring .bg { stroke: rgba(255, 255, 255, .07); }
.td-ring .fg { filter: drop-shadow(0 0 4px currentColor); stroke-dashoffset: 0; animation: td-draw 1.2s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes td-draw { from { stroke-dasharray: 0 100; } }
.td-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 850 32px/1 var(--f-display); font-stretch: 122%; letter-spacing: -.03em; }
.td-id { display: grid; align-content: start; min-width: 0; }
.td-id b { font: 800 22px/1.1 var(--f-display); font-stretch: 112%; }
.td-id span:last-child { color: var(--fg-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-rk { font: 500 11.5px/1 var(--f-data); color: var(--fg-3); letter-spacing: .06em; }
.td-voice { grid-column: 2; font: italic 400 16px/1.3 var(--f-voice); color: var(--fg-2); }
.td-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.td-foot .spark { height: 34px; flex: 1; }
.td-mv { font: 600 13px/1 var(--f-data); color: var(--fg-2); white-space: nowrap; }
.td-mv.up { color: var(--fg); } .td-mv.dn { color: var(--fg-3); }
.td-mv small { font-size: 10.5px; color: var(--fg-3); margin-left: 2px; }
.td-rest { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .td-rest { grid-template-columns: minmax(0, 1fr); } }

.td-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .td-two { grid-template-columns: minmax(0, 1fr); } }
.td-colh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.td-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 10px currentColor; }
.td-dot.dn { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-3); }
.td-path { color: var(--fg-3); font-size: 13px; white-space: nowrap; }
.td-delta { flex: none; min-width: 58px; text-align: center; padding: 8px 10px; border-radius: 12px; font: 750 17px/1 var(--f-data); }
.td-delta.up { background: var(--paper); color: var(--on-paper); box-shadow: 0 0 24px rgba(255, 255, 255, .12); }
.td-delta.dn { background: transparent; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.td-bar { flex: none; width: 70px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.td-bar span { display: block; height: 100%; border-radius: 3px; box-shadow: 0 0 8px currentColor; }
.td-pv { flex: none; width: 26px; text-align: right; color: var(--fg-2); font-size: 14px; }
@media (max-width: 420px) { .td-bar { display: none; } }

.td-secs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.td-secs a { display: grid; gap: 2px; height: 100%; padding: 16px 18px; border-radius: 20px; text-decoration: none; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in oklab, #54E2E9 calc((var(--p) - 25) * .7%), transparent), transparent 70%), var(--raised); transition: border-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.td-secs a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.td-secs b { font: 850 40px/1.05 var(--f-display); font-stretch: 120%; letter-spacing: -.03em; }
.td-sub { color: var(--fg-3); font-size: 13px; }
.td-lead { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font: 600 12.5px/1.4 var(--f-data); color: var(--fg-2); }
.td-lead i { font-style: normal; color: var(--fg-3); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .td *, .q-box, .q-back { animation: none !important; transition: none !important; } }
