/* TodPlayer Broadcast: site styles (theme 2.0).
   Tokens mirror the saved Novamira design "TodPlayer Broadcast". */

@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #05070D; --bg-raise: #0A0F1D; --surface: #10162A; --surface-high: #161E36;
  --line: #222B45; --line-soft: #1A2238;
  --ink: #F3F5FB; --ink-soft: #BCC3D6; --muted: #7E88A5;
  --accent: #FF5A1F; --accent-light: #FF7B3A; --on-accent: #FFFFFF;
  --code: #FFB547; --ok: #34D399; --warn: #FBBF24; --bad: #F87171; --link: #7CB4FF;
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --wrap: 1200px; --gutter: 24px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shadow: 0 24px 60px -24px rgba(2, 4, 12, 0.85);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
/* Layered screens may reach past the edge: never let the page pan sideways on phones. */
html:has(body.todp), body.todp { overflow-x: hidden; }
@supports (overflow: clip) { html:has(body.todp), body.todp { overflow-x: clip; } }
body.todp {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.todp img { max-width: 100%; height: auto; display: block; }
body.todp a { color: inherit; }
::selection { background: rgba(255, 90, 31, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 12px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-md); }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.mono, .code { font-family: var(--mono); font-weight: 600; letter-spacing: 0.01em; }
.code { color: var(--code); }

/* ---------------------------------------------------------- type */
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); margin: 0; }
.display { font-size: clamp(42px, 5.4vw, 74px); font-weight: 780; line-height: 1.02; letter-spacing: -0.04em; }
.display .line { display: block; white-space: nowrap; }
.h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 760; line-height: 1.06; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 720; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 21px; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-soft); line-height: 1.6; max-width: 34em; margin: 20px 0 0; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--accent); }
p { margin: 0 0 1em; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 28px -12px rgba(255,90,31,.7); }
.btn-primary:hover { background: var(--accent-light); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #3A4566; background: rgba(255,255,255,.02); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(34, 43, 69, 0.6);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .tile { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.brand .tile svg { width: 22px; height: 22px; }
.brand .tile svg path:last-child { fill: var(--accent); }
.brand .word { font-weight: 760; font-size: 19px; letter-spacing: -0.03em; }
.brand .word b { color: var(--accent); font-weight: 760; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .nav .drop > button {
  font: 500 15px/1 var(--sans); color: var(--ink-soft); text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer;
}
.nav > a:not(.btn):hover, .nav .drop > button:hover, .nav > a[aria-current="page"] { color: var(--ink); }
.nav > a[aria-current="page"] { background: rgba(255,255,255,.04); }
.nav .btn { margin-left: 8px; color: #fff; }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 340px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.drop:hover .drop-menu, .drop:focus-within .drop-menu, .drop.open .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 10px; border-radius: var(--r-md); text-decoration: none; }
.drop-menu a:hover { background: var(--surface-high); }
.drop-menu .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-high); display: grid; place-items: center; color: var(--accent); }
.drop-menu .ic svg { width: 18px; height: 18px; }
.drop-menu strong { font-size: 15px; font-weight: 600; }
.drop-menu small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-md); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; } .nav-toggle .bars::after { position: absolute; top: 6px; }

/* ---------------------------------------------------------- sections */
.section { padding: 112px 0; position: relative; }
.section.tight { padding: 72px 0; }
.band { background: var(--bg-raise); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 16px; }

/* ---------------------------------------------------------- hero */
.hero { padding: 72px 0 132px; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), rgba(255, 90, 31, 0) 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: 48px; align-items: center; position: relative; }
.hero-copy .lead { max-width: 30em; }
.hero-note { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: 15px; }
.hero-note .code { font-size: 16px; }
.stage { position: relative; margin-right: -140px; }
.screen {
  border-radius: var(--r-lg); overflow: hidden; background: #000;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 8px #0E1427, 0 0 0 9px #283357;
}
.stage .screen.tv { width: 100%; max-width: 880px; }
.stage .screen.phone {
  position: absolute; width: 22%; left: -8%; bottom: -18%; border-radius: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 6px #0c1124, 0 0 0 7px #2a3458;
}

/* device rail */
.rail { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-raise); }
.rail-row { display: flex; align-items: center; gap: 12px 34px; flex-wrap: wrap; padding: 22px 0; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.rail-row .lbl { color: var(--muted); font-size: 13px; }
.rail-row span { display: inline-flex; align-items: center; gap: 10px; }
.rail-row svg { width: 18px; height: 18px; color: var(--muted); }
.rail-row .soon { color: var(--muted); }

/* split flow */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; color: var(--ink-soft); }
.steps li::before {
  content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 650 15px/1 var(--mono); color: var(--ink); background: var(--surface-high); border: 1px solid var(--line);
}
.steps strong { color: var(--ink); font-weight: 600; display: block; }
.tilt { transform: perspective(1600px) rotateY(9deg) rotateX(2deg); transform-origin: right center; }
.mac-strip {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-size: 14px; color: var(--muted);
}
.mac-strip .code { font-size: 18px; }

.feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; }
.feature-list li { padding: 18px 0; border-top: 1px solid var(--line-soft); color: var(--ink-soft); }
.feature-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.feature-list strong { display: block; color: var(--ink); font-weight: 600; font-size: 18px; margin-bottom: 2px; }
.faq-aside { margin-top: 16px; }
.faq-aside a, .faq a, .dl-steps a { color: var(--link); }
.closer-title { font-size: clamp(36px, 5vw, 64px); }

/* tools bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.cell {
  position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-soft);
  padding: 28px; text-decoration: none; display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
a.cell:hover { border-color: #33406A; transform: translateY(-2px); }
.cell h3 { font-size: 22px; font-weight: 680; letter-spacing: -0.02em; }
.cell p { color: var(--ink-soft); font-size: 15.5px; margin: 10px 0 0; max-width: 32em; }
.cell .go { margin-top: auto; padding-top: 20px; font-weight: 600; font-size: 15px; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.cell .go::after { content: "\2192"; color: var(--accent); transition: transform .2s; }
a.cell:hover .go::after { transform: translateX(4px); }
.cell.c-4 { grid-column: span 4; } .cell.c-3 { grid-column: span 3; } .cell.c-2 { grid-column: span 2; }
.cell.r-2 { grid-row: span 2; }
.cell.warmth { background: radial-gradient(120% 120% at 100% 0%, rgba(255,90,31,.20), rgba(255,90,31,0) 55%), var(--surface); }
.cell.deep { background: linear-gradient(180deg, var(--surface) 0%, var(--bg-raise) 100%); }
.cell .art { margin: 24px -28px -28px; border-top: 1px solid var(--line-soft); }
.mini-check { margin-top: 22px; display: grid; gap: 10px; max-width: 520px; }
.mini-check .fake-input { height: 48px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); display: flex; align-items: center; padding: 0 14px; font: 500 14px var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap; }
.mini-result { display: flex; gap: 10px; flex-wrap: wrap; }
.report-keys { margin: auto 0 0; padding-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-soft); }
.report-keys div { padding: 18px 16px 0 0; }
.report-keys div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.report-keys dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.report-keys dd { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 860px) { .report-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } .report-keys div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* cookie banner (CookieAdmin) in the site's style */
body.todp .cookieadmin_law_container { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: var(--shadow) !important; color: var(--ink-soft) !important; font-family: var(--sans) !important; }
body.todp .cookieadmin_law_container #cookieadmin_notice_title { color: var(--ink) !important; font-family: var(--sans) !important; font-weight: 650 !important; }
body.todp .cookieadmin_law_container #cookieadmin_notice, body.todp .cookieadmin_law_container #cookieadmin_notice b { color: var(--ink-soft) !important; font-family: var(--sans) !important; }
body.todp .cookieadmin_law_container .cookieadmin_btn { border-radius: var(--r-md) !important; font-family: var(--sans) !important; font-weight: 600 !important; border: 1px solid var(--line) !important; background: var(--surface-high) !important; color: var(--ink) !important; }
body.todp .cookieadmin_law_container .cookieadmin_accept_btn { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
body.todp .cookieadmin-poweredby, body.todp .cookieadmin-poweredby * { color: var(--muted) !important; }
body.todp .cookieadmin_re_consent { background: var(--surface-high) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow) !important; width: 44px !important; height: 44px !important; opacity: .85; }
body.todp .cookieadmin_re_consent:hover { opacity: 1; border-color: var(--accent) !important; }
body.todp .cookieadmin_re_consent img { width: 22px !important; height: 22px !important; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.pill .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pill.warn .d { background: var(--warn); } .pill.bad .d { background: var(--bad); }
.gauge { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.gauge b { font: 700 56px/1 var(--sans); letter-spacing: -0.04em; }
.gauge span { color: var(--muted); font-size: 15px; }
.bars-viz { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin-top: 12px; }
.bars-viz i { flex: 1; background: var(--surface-high); border-radius: 3px; }
.bars-viz i.on { background: var(--accent); }

/* downloader band */
.dl-band { padding: 104px 0; }
.dl-band .giant { font: 700 clamp(64px, 12vw, 164px)/0.9 var(--mono); color: var(--code); letter-spacing: -0.02em; display: block; margin: 22px 0 10px; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink-soft); font-size: 15.5px; }
.dl-steps li { padding-left: 28px; position: relative; }
.dl-steps li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: var(--accent); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 26px/1 var(--sans); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details > div, .faq details > p { color: var(--ink-soft); margin: -6px 0 22px; max-width: 62ch; }

/* closer */
.closer { padding: 120px 0; position: relative; overflow: hidden; }
.closer::before { content: ""; position: absolute; right: -10%; bottom: -60%; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(255,90,31,.14), transparent 70%); pointer-events: none; }
.closer .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; }

/* ---------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line-soft); background: #05070E; padding: 72px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 40px; }
.foot-grid h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: var(--ink-soft); text-decoration: none; }
.foot-grid ul a:hover { color: var(--ink); }
.foot-note { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: 14px; line-height: 1.6; }
.foot-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------- page heads */
.page-hero { padding: 64px 0 44px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto 40%; height: 600px; background: radial-gradient(closest-side, rgba(255,90,31,.10), transparent 70%); pointer-events: none; }
.page-hero .lead { max-width: 40em; }
.page-hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.updated { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------------------------------------------------------- download page */
.dl-cards { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 32px; }
.panel h2 { font-size: 24px; font-weight: 680; letter-spacing: -0.02em; margin-bottom: 10px; }
.panel p { color: var(--ink-soft); }
.panel .meta { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.panel-primary { background: radial-gradient(130% 130% at 100% 0%, rgba(255,90,31,.18), transparent 55%), var(--surface); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 18px 20px; border-radius: var(--r-md); background: var(--bg); border: 1px dashed #36416A; flex-wrap: wrap; }
.code-box .code { font-size: 34px; }
.code-box .label { display: block; margin-bottom: 4px; }
.plat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.plat-row .panel { padding: 24px; }
.plat-row h3 { font-size: 18px; font-weight: 650; }
.plat-row p { font-size: 15px; margin: 8px 0 0; }
.status-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--code); margin-bottom: 10px; }

/* ---------------------------------------------------------- long-form (pages, guides) */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 72px; align-items: start; padding-bottom: 104px; }
.article-grid.solo { grid-template-columns: minmax(0, 760px); }
.article-grid.wide { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 96px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 18px; }
.toc .label { display: block; margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; line-height: 1.4; }
.toc a:hover, .toc a.on { color: var(--ink); }
.prose { max-width: 720px; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin-top: 2.2em; color: var(--ink); }
.prose h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; margin-top: 1.8em; color: var(--ink); }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.75; }
.prose p { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(124,180,255,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--link); }
.prose a.btn { color: #fff; text-decoration: none; }
.prose a.btn-ghost { color: var(--ink); }
.prose .faq { margin-top: 8px; }
.prose .faq summary { font-size: 17px; color: var(--ink); }
.prose .dev-grid, .prose .hub-grid { margin-top: 8px; }
.prose .dev-grid a, .prose .hub-grid a { text-decoration: none; color: var(--ink); }
.prose th[scope="row"] { width: 34%; }
.prose th a { color: var(--link); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 0; }
.prose li + li { margin-top: .45em; }
.prose code { font-family: var(--mono); font-size: .9em; color: var(--code); background: rgba(255,181,71,.08); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; font-size: 14px; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); color: var(--ink); }
.prose-wide { max-width: none; }
.answer { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1.6; }
.answer .label { display: block; margin-bottom: 8px; color: var(--accent); }
.prose ol.howto { list-style: none; padding: 0; counter-reset: h; }
.prose ol.howto > li { counter-increment: h; position: relative; padding: 0 0 0 52px; min-height: 36px; }
.prose ol.howto > li + li { margin-top: 18px; }
.prose ol.howto > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-high); border: 1px solid var(--line); font: 650 14px/1 var(--mono); color: var(--ink); }
.callout { border-radius: var(--r-md); padding: 16px 18px; background: rgba(255,181,71,.07); border: 1px solid rgba(255,181,71,.25); color: var(--ink); font-size: 16px; }
.callout.info { background: rgba(124,180,255,.06); border-color: rgba(124,180,255,.22); }

.related { margin-top: 56px; }
.prose .related h2, .related h2 { font-size: 22px; margin: 0 0 16px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link-grid a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; background: var(--surface); transition: border-color .15s; }
.prose .link-grid a { color: var(--ink); text-decoration: none; }
.link-grid a small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 4px; line-height: 1.45; }
.link-grid a:hover { border-color: #3A4566; }

/* hub grids (pillar pages) */
.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hub-grid a { padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 120px; transition: border-color .15s, transform .15s; }
.hub-grid a:hover { border-color: #33406A; transform: translateY(-2px); }
.hub-grid strong { font-size: 17px; font-weight: 650; color: var(--ink); }
.hub-grid small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.hub-grid .code { font-size: 22px; }

/* ---------------------------------------------------------- tools (shared) */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.tool-tabs { display: inline-flex; padding: 4px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); margin-bottom: 22px; }
.tool-tabs button { height: 40px; padding: 0 16px; border-radius: 9px; border: 0; background: none; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; }
.tool-tabs button[aria-selected="true"] { background: var(--surface-high); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field small { color: var(--muted); font-size: 13px; }
.input, .select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 500 16px var(--sans); transition: border-color .15s, box-shadow .15s;
}
.input.mono { font-family: var(--mono); font-size: 15px; }
.input::placeholder { color: #55607E; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.tool-foot small { color: var(--muted); font-size: 13px; }
.result { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.result[hidden] { display: none; }
.result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.result-head .big { font-size: 26px; font-weight: 720; letter-spacing: -0.02em; }
.state { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; box-shadow: 0 0 0 5px rgba(126,136,165,.15); }
.state.ok { background: var(--ok); box-shadow: 0 0 0 5px rgba(52,211,153,.15); }
.state.warn { background: var(--warn); box-shadow: 0 0 0 5px rgba(251,191,36,.15); }
.state.bad { background: var(--bad); box-shadow: 0 0 0 5px rgba(248,113,113,.15); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 0; }
.facts div { background: var(--bg-raise); padding: 14px 16px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 600; color: var(--ink); word-break: break-word; }
.advice { margin: 18px 0 0; padding-left: 1.2em; color: var(--ink-soft); font-size: 16px; }
.advice li + li { margin-top: 6px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-high), #1D2744, var(--surface-high)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
.skeleton + .skeleton { margin-top: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.err { color: var(--bad); font-size: 15px; margin-top: 12px; }

/* speed test */
.speed-dial { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.speed-dial .m { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; background: var(--bg-raise); }
.speed-dial .m b { display: block; font: 700 40px/1 var(--sans); letter-spacing: -0.03em; margin-top: 8px; }
.speed-dial .m b small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.progress { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 18px; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.verdict-list { display: grid; gap: 8px; margin-top: 18px; }
.verdict-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 15px; color: var(--ink-soft); }
.verdict-list b { color: var(--ink); font-weight: 600; }

/* problem solver */
.solver-q { font-size: 22px; font-weight: 680; letter-spacing: -0.02em; margin-bottom: 18px; color: var(--ink); }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices button { text-align: left; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--ink); font: 600 16px var(--sans); cursor: pointer; transition: border-color .15s, background .15s; }
.choices button small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 4px; }
.choices button:hover { border-color: var(--accent); background: var(--bg-raise); }
.solver-trail { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fixes { counter-reset: f; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fixes li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-raise); color: var(--ink-soft); font-size: 16px; }
.fixes li::before { content: counter(f); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-high); font: 650 14px var(--mono); color: var(--ink); }
.fixes strong { color: var(--ink); }

/* tips explorer */
.tips-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.tips-bar .input { max-width: 340px; height: 46px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: none; color: var(--ink-soft); font: 500 14px var(--sans); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tip { border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px; background: var(--surface); }
.tip h3 { font-size: 18px; font-weight: 650; margin-top: 6px; }
.tip p { color: var(--ink-soft); font-size: 15.5px; margin: 8px 0 0; }
.tip .path { margin-top: 12px; font: 500 13px/1.5 var(--mono); color: var(--code); }
.tip .tag { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tips-empty { color: var(--muted); padding: 24px 0; }

/* device picker (setup pillar) */
.dev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dev-grid a { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: border-color .15s, transform .15s; }
.dev-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.dev-grid svg { width: 26px; height: 26px; color: var(--accent); }
.dev-grid strong { font-size: 17px; font-weight: 650; color: var(--ink); }
.dev-grid small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1240px) { .stage { margin-right: -24px; } }
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .dev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - 68px); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a:not(.btn), .nav .drop > button { padding: 14px 4px; font-size: 17px; text-align: left; width: 100%; }
  .drop-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: 4px 0 8px; }
  .drop.open .drop-menu { display: block; }
  .nav .btn { margin: 12px 0 0; }
  .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 860px) {
  body.todp { font-size: 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 36px 0 84px; }
  .hero-grid, .split, .dl-grid, .faq-grid, .dl-cards, .article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stage { margin-right: 0; padding-left: 10%; }
  .stage .screen.phone { left: 0; width: 25%; bottom: -12%; }
  .tilt { transform: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell.c-4, .cell.c-3, .cell.c-2 { grid-column: auto; } .cell.r-2 { grid-row: auto; }
  .toc { display: none; }
  .plat-row, .hub-grid, .link-grid, .tips, .choices, .facts, .speed-dial { grid-template-columns: minmax(0, 1fr); }
  .dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2 { grid-template-columns: minmax(0, 1fr); }
  .tool { padding: 22px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-box .code { font-size: 26px; }
  .prose h2 { font-size: 26px; }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .display { font-size: clamp(36px, 11vw, 48px); }
  .display .line { white-space: normal; }
  .hero-grid { gap: 32px; }
  .stage { padding-left: 14%; }
  .stage .screen.phone { width: 30%; }
  .actions .btn { width: 100%; }
  .hero-note { font-size: 14px; }
  .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}
