/* Ondaro website. One dark theme built from the app's own tokens (docs/DESIGN.md).
   Sections: tokens, base, header/nav, buttons, landing, prose (legal/help), account, footer, utilities, breakpoints. */

/* ---------- tokens ---------- */
:root {
  --ink: #040507;
  --s1: #0B0D12;
  --s2: #12151C;
  --s3: #1A1E28;
  --line: #262B37;
  --accent: #3DDCC8;
  --accent-soft: rgba(61, 220, 200, .16);
  --on-accent: #03201C;
  --hi: #F4F7FB;
  --mid: #B6C0D4;
  --low: #8792A8;
  --pulse: #FF6B5E;
  --amber: #FFC857;
  --pos: #4ADE80;
  --danger: #FF5A5F;
  --brand-teal: #12BFAE;
  --brand-mid: #1690D0;
  --brand-blue: #1F4FD6;
  --ring: 0 0 0 2px var(--ink), 0 0 0 4px var(--accent), 0 0 22px -2px rgba(61, 220, 200, .45);
  --f-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--hi);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--f-head); letter-spacing: -.015em; text-wrap: balance; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--hi); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--f-mono); font-size: .92em; color: var(--hi); overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
kbd { font-family: var(--f-head); font-size: 12px; font-weight: 700; border: 1px solid var(--line); background: var(--s2); color: var(--hi); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
mark.ph { background: var(--amber); color: #1A1200; font-weight: 700; padding: 0 .3em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 12px 18px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- header / nav ---------- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(4, 5, 7, .92);
  border-bottom: 1px solid var(--s3);
}
@supports (backdrop-filter: blur(8px)) {
  .site-head { background: rgba(4, 5, 7, .78); backdrop-filter: blur(12px); }
}
.head-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--hi); text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: -.025em; min-height: 44px; }
.logo img { width: 32px; height: 32px; }
.logo:hover { color: var(--hi); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--mid); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--hi); background: var(--s2); }
.nav a[aria-current="page"] { color: var(--hi); box-shadow: inset 0 0 0 1px var(--line); }
.head-cta { flex: none; }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
  border: 1px solid var(--line); background: var(--s2); color: var(--hi);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover, .btn:focus-visible { transform: scale(1.04); box-shadow: var(--ring); outline: none; color: var(--hi); }
.btn.pri { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.pri:hover, .btn.pri:focus-visible { color: var(--on-accent); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.btn.danger { color: var(--danger); border-color: rgba(255, 90, 95, .5); }
.btn.danger:hover, .btn.danger:focus-visible { color: var(--danger); box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--danger); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- landing: hero ---------- */
.eyebrow { font-family: var(--f-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 5vw, 64px) clamp(48px, 6vw, 72px); }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; margin: 12px 0 16px; }
.lead { color: var(--mid); font-size: 18px; max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.fine { font-size: 14px; color: var(--low); max-width: 52ch; }
.player-only { display: inline-flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); font-size: 15px; color: var(--mid); max-width: 52ch; }
.player-only svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.player-only b { color: var(--hi); }

/* TV mock: decorative, fictional channels only */
.tv { border-radius: 18px; padding: 10px; background: linear-gradient(160deg, #1A1E28, #0B0D12); border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 90px -40px rgba(61, 220, 200, .35); }
.screen { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ink); display: grid; grid-template-columns: clamp(22px, 4.5%, 40px) minmax(0, 1fr); font-size: clamp(8px, 1.05vw, 12.5px); line-height: 1.3; }
.rail { background: var(--s1); display: flex; flex-direction: column; align-items: center; gap: 1.4em; padding-top: 1.4em; }
.rail span { width: 1.5em; height: 1.5em; border-radius: .4em; background: var(--s3); }
.rail span.on { background: var(--accent); }
.tv-main { display: grid; grid-template-rows: 42% minmax(0, 1fr); min-width: 0; }
.tv-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1em; padding: 1em; min-height: 0; }
.preview { position: relative; border-radius: .7em; overflow: hidden; background: radial-gradient(120% 90% at 70% 30%, #2A5F8F 0%, #163352 40%, #0B1424 100%); }
.preview::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(4, 5, 7, .85)); }
.live { position: absolute; left: .7em; top: .7em; z-index: 1; background: var(--pulse); color: #fff; font-weight: 700; font-size: .85em; padding: .15em .55em; border-radius: 999px; letter-spacing: .04em; }
.pv-t { position: absolute; left: .8em; bottom: .6em; z-index: 1; font-weight: 700; }
.info { display: flex; flex-direction: column; gap: .35em; min-width: 0; }
.info .ch { font-family: var(--f-head); font-weight: 700; font-size: 1.35em; }
.info .next { color: var(--low); }
.bar { height: .35em; background: var(--s3); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; background: var(--accent); }
.chips { display: flex; gap: .4em; flex-wrap: wrap; margin-top: auto; }
.chip { border: 1px solid var(--line); border-radius: .4em; padding: .05em .45em; color: var(--mid); font-weight: 700; font-size: .85em; }
.chip.fhd { background: var(--hi); color: var(--ink); border-color: var(--hi); }
.epg { display: grid; grid-template-rows: auto repeat(5, minmax(0, 1fr)); padding: 0 1em 1em; gap: .3em; min-height: 0; }
.times { display: grid; grid-template-columns: 22% repeat(4, minmax(0, 1fr)); color: var(--low); font-variant-numeric: tabular-nums; }
.erow { display: grid; grid-template-columns: 22% minmax(0, 1fr); gap: .3em; min-height: 0; }
.chn { background: var(--s2); border-radius: .45em; padding: .2em .5em; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.chn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chn small { color: var(--low); font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chn small.rw { color: var(--accent); }
.progs { display: flex; gap: .3em; min-width: 0; }
.p { background: var(--s2); border-radius: .45em; padding: .2em .5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mid); display: flex; align-items: center; min-width: 0; }
.p.past { background: var(--s1); color: var(--low); }
.p.cur { background: rgba(61, 220, 200, .16); color: var(--hi); }
.p.focus { outline: 2px solid var(--accent); outline-offset: -2px; box-shadow: 0 0 1.4em -.2em rgba(61, 220, 200, .6); background: rgba(61, 220, 200, .22); color: var(--hi); }
.f1 { flex: 1; } .f2 { flex: 2; } .f3 { flex: 3; }
.keys { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--low); }
.keys kbd { margin-right: 6px; }

/* ---------- landing: sections ---------- */
.sec { padding-block: clamp(48px, 7vw, 80px); border-top: 1px solid var(--s3); }
.sec-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.sec-h h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 22ch; }
.sec-h p { color: var(--mid); max-width: 52ch; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.card { background: var(--s1); border: 1px solid var(--s3); border-radius: var(--radius); padding: 20px; min-width: 0; }
.feat { display: flex; flex-direction: column; gap: 10px; }
.feat h3 { font-size: 19px; }
.feat p { color: var(--mid); font-size: 15px; }
.feat .vis { margin-top: auto; padding-top: 8px; }
.big, .feat p.big { font-family: var(--f-head); font-weight: 700; font-size: 44px; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.big small { font-size: 18px; color: var(--mid); letter-spacing: 0; }
.seek, .feat .vis.seek { position: relative; padding-top: 44px; }
.seek .track { height: 6px; border-radius: 9px; background: var(--s3); position: relative; }
.seek .fill { position: absolute; inset: 0 auto 0 0; width: 58%; background: var(--accent); border-radius: 9px; }
.seek .start { position: absolute; left: 34%; top: -4px; width: 2px; height: 14px; background: var(--mid); }
.seek .knob { position: absolute; left: 58%; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--hi); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(61, 220, 200, .35); }
.seek .balloon { position: absolute; left: 58%; top: 0; transform: translateX(-50%); background: var(--hi); color: var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 15px; border-radius: 8px; padding: 3px 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.seek .row { display: flex; justify-content: space-between; gap: 8px; color: var(--low); font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--line); color: var(--mid); background: var(--s2); }
.tag svg { width: 14px; height: 14px; }
.tag.acc { color: var(--accent); border-color: rgba(61, 220, 200, .4); }
.tag.amb { color: var(--amber); border-color: rgba(255, 200, 87, .45); }
.tag.pos { color: var(--pos); border-color: rgba(74, 222, 128, .45); }
.tag.live { color: #fff; background: #C93A2F; border-color: #C93A2F; }
.msg { border-radius: 12px; background: var(--s2); padding: 12px 14px; font-size: 14px; color: var(--mid); border: 1px solid var(--s3); }
.msg b { display: block; color: var(--hi); font-family: var(--f-head); font-size: 15px; margin-bottom: 2px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: st; }
.step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px 20px 20px; }
.step::before { counter-increment: st; content: counter(st); font-family: var(--f-head); font-weight: 700; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); color: var(--accent); }
.step h3 { font-size: 19px; }
.step p { color: var(--mid); font-size: 15px; }
.field-demo { margin-top: 6px; border: 2px solid var(--accent); border-radius: 10px; padding: 9px 12px; font-family: var(--f-mono); font-size: 13px; color: var(--hi); background: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detect { font-size: 14px; color: var(--pos); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.plan { border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.prem { background: linear-gradient(165deg, rgba(18, 191, 174, .16), rgba(31, 79, 214, .14) 60%, var(--s1)); border-color: rgba(61, 220, 200, .45); }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--mid); }
.checks li svg { width: 20px; height: 20px; color: var(--pos); margin-top: 2px; }
.checks li.no, .checks li.no svg { color: var(--low); }
.price-note { font-size: 15px; color: var(--mid); padding: 10px 12px; border-radius: 10px; background: rgba(4, 5, 7, .5); margin-top: auto; }
.trial { margin-top: 18px; padding: 22px; border-radius: 18px; }
.trial h3 { font-size: 19px; margin-bottom: 14px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 2.4fr); gap: 4px; list-style: none; margin: 0; padding: 0; }
.day { background: rgba(61, 220, 200, .18); border-radius: 6px; padding: 8px 4px; text-align: center; font-size: 13px; color: var(--hi); font-variant-numeric: tabular-nums; }
.day.end { background: var(--s3); display: grid; gap: 2px; text-align: left; padding: 8px 10px; color: var(--mid); }
.day.end b { color: var(--hi); }
.trial p { color: var(--mid); font-size: 15px; margin-top: 14px; max-width: 80ch; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.dl-card { display: grid; gap: 10px; align-content: start; }
.dl-card h3 { font-size: 19px; }
.dl-card p, .dl-card li { color: var(--mid); font-size: 15px; }
.dl-card ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--s1); border: 1px solid var(--s3); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; min-height: 52px; padding: 12px 0; font-family: var(--f-head); font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 20px; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { color: var(--mid); padding-bottom: 16px; font-size: 15px; max-width: 70ch; }

/* ---------- prose pages (legal, help) ---------- */
.page-head { padding-block: clamp(32px, 6vw, 64px) 8px; }
.page-head h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.025em; margin-top: 10px; }
.page-head .lead { margin-top: 12px; max-width: 62ch; }
.draft-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .08); color: var(--hi); font-size: 15px; max-width: 72ch; }
.draft-note svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 2px; }
.prose { max-width: 76ch; padding-block: 16px 72px; font-size: 17px; line-height: 1.65; color: var(--mid); }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--hi); font-size: clamp(22px, 2.6vw, 28px); margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 90px; }
.prose h3 { color: var(--hi); font-size: 19px; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong { color: var(--hi); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--s3); margin-block: 2.4em; }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--s2); border: 1px solid var(--s3); border-radius: 6px; padding: .05em .35em; color: var(--hi); overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--s3); border-radius: 14px; background: var(--s1); }
.table-wrap:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--s3); }
.prose thead th { border-top: 0; background: var(--s2); color: var(--hi); font-family: var(--f-head); font-weight: 600; font-size: 14px; }
.toc { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: var(--s1); border: 1px solid var(--s3); max-width: 76ch; }
.toc h2 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--low); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding-left: 0; columns: 2 220px; column-gap: 28px; font-size: 15px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--mid); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; }
.toc a:hover { color: var(--hi); text-decoration: underline; }

.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.help-col h3 { font-size: 18px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.help-col h3 svg { color: var(--accent); width: 22px; height: 22px; }
.qa { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qa li { background: var(--s2); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--mid); }
.qa li b { display: block; color: var(--hi); margin-bottom: 2px; }
.setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.setup > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.setup > li::before { counter-increment: st; content: counter(st); font-family: var(--f-head); font-weight: 700; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); color: var(--accent); }
.setup h3 { font-size: 19px; margin-bottom: 6px; }
.setup p, .setup li li { color: var(--mid); font-size: 16px; }
.setup p + p { margin-top: 8px; }
.setup ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.keys-table { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 14px; margin-top: 10px; color: var(--mid); font-size: 15px; }
.keys-table dt { text-align: right; }
.keys-table dd { margin: 0; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.copy-row .mono { font-size: 18px; user-select: all; -webkit-user-select: all; padding: 6px 10px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line); }

/* ---------- account (dashboard) ---------- */
.preview-banner { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 20px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 200, 87, .5); background: rgba(255, 200, 87, .08); font-size: 15px; }
.preview-banner p { display: flex; gap: 10px; align-items: flex-start; color: var(--hi); }
.preview-banner p svg { width: 20px; height: 20px; color: var(--amber); flex: none; margin-top: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--s1); }
.seg button { border: 0; background: transparent; min-height: 44px; min-width: 44px; padding: 4px 12px; border-radius: 9px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--mid); }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--hi); box-shadow: inset 0 0 0 2px var(--accent); }
.seg-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--low); }

.signin { display: grid; gap: 22px; padding-block: 32px 72px; }
.signin h1 { font-size: clamp(28px, 3.6vw, 40px); }
.signin > div > p { color: var(--mid); margin-top: 8px; }
.signin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.signin-grid .card { display: grid; gap: 12px; align-content: start; padding: 22px; }
.signin-grid h2 { font-size: 19px; }
.signin-grid p { color: var(--mid); font-size: 15px; }
.lbl { font-weight: 700; font-size: 15px; color: var(--hi); }
.input { width: 100%; max-width: 360px; min-height: 48px; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--ink); color: var(--hi); }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(61, 220, 200, .2); }
.input.code { font-family: var(--f-mono); font-size: 22px; letter-spacing: .3em; text-transform: uppercase; max-width: 240px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; font-weight: 700; }
.form-stack { display: grid; gap: 8px; }
.signin-notice { padding: 12px 14px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); color: var(--hi); }

.dash-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-block: 24px 18px; }
.dash-bar h1 { font-size: clamp(26px, 3.2vw, 34px); }
.who { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--low); font-size: 15px; min-width: 0; }
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 72px; }
.dash-tabs { position: sticky; top: 84px; display: grid; gap: 4px; padding: 10px; border-radius: var(--radius); background: var(--s1); border: 1px solid var(--s3); }
.dtab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; text-align: left; border: 0; background: transparent; color: var(--mid); padding: 10px 14px; border-radius: 12px; cursor: pointer; font-family: var(--f-head); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .12s ease-out; }
.dtab svg { width: 20px; height: 20px; flex: none; }
.dtab:hover { color: var(--hi); background: var(--s2); }
.dtab[aria-selected="true"] { background: var(--s3); color: var(--hi); box-shadow: inset 0 0 0 2px var(--accent); }
.dtab:focus-visible { outline: none; transform: scale(1.03); box-shadow: inset 0 0 0 2px var(--accent), 0 0 22px -4px rgba(61, 220, 200, .5); }
.panel { display: grid; gap: 18px; min-width: 0; }
.panel:focus { outline: none; }
.panel-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; }
.panel-h h2 { font-size: clamp(22px, 2.6vw, 28px); }
.panel-h p { color: var(--mid); font-size: 15px; margin-top: 4px; }
.over { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.over .card { display: grid; gap: 4px; align-content: start; }
.over .k { font-size: 13px; color: var(--low); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.over b { font-family: var(--f-head); font-size: 19px; font-weight: 700; }
.over small { font-size: 14px; color: var(--mid); }
.over a.more { margin-top: 6px; font-size: 14px; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.meter { display: flex; gap: 5px; margin-top: 6px; }
.meter i { flex: 1; height: 10px; border-radius: 9px; background: var(--s3); }
.meter i.on { background: var(--accent); }

.devtable-wrap { padding: 0; overflow: hidden; }
.devtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.devtable th { font-size: 13px; color: var(--low); font-weight: 700; text-align: left; padding: 12px 16px; background: var(--s2); letter-spacing: .03em; }
.devtable td { padding: 14px 16px; border-top: 1px solid var(--s3); vertical-align: middle; color: var(--mid); }
.devtable td.name b { display: block; color: var(--hi); font-family: var(--f-head); font-size: 16px; overflow-wrap: anywhere; }
.devtable td.name small { display: block; color: var(--low); font-size: 13px; }
.devtable tr.idle td.name b { color: var(--mid); }
.devtable .acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.devtable .input { min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 15px; max-width: 260px; }
.confirm-row td { background: rgba(255, 90, 95, .08); border-top: 1px solid rgba(255, 90, 95, .35); }
.confirm-in { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; color: var(--hi); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px 3px 4px; white-space: nowrap; }
.st i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st i svg { width: 12px; height: 12px; }
.st.on { color: var(--pos); background: rgba(74, 222, 128, .12); }
.st.on i { background: var(--pos); color: var(--ink); }
.st.off { color: var(--low); background: var(--s2); }
.st.off i { border: 2px solid var(--low); }
.st.acc { color: var(--accent); background: var(--accent-soft); padding-left: 10px; }
.hint { font-size: 14px; color: var(--low); display: flex; gap: 8px; align-items: flex-start; }
.hint svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }

.subcard { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 0; overflow: hidden; }
.subcard > div { padding: 22px; display: grid; gap: 10px; align-content: start; }
.subcard > div + div { border-left: 1px solid var(--s3); background: var(--s2); }
.subcard h3 { font-size: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.subcard p, .subcard li { color: var(--mid); font-size: 15px; }
.subcard ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.trialbar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.trialbar i { height: 12px; border-radius: 4px; background: var(--accent); }
.trialbar i.left { background: var(--s3); box-shadow: inset 0 0 0 1px rgba(61, 220, 200, .5); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 4px 0 0; font-size: 15px; }
.kv dt { color: var(--low); }
.kv dd { margin: 0; color: var(--hi); font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }

.rows { padding: 0; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--s3); }
.arow:first-child { border-top: 0; }
.arow b { font-family: var(--f-head); color: var(--hi); }
.arow p { color: var(--mid); font-size: 15px; max-width: 60ch; margin-top: 2px; }
.arow.confirm { background: rgba(255, 90, 95, .08); border-top-color: rgba(255, 90, 95, .35); }
.arow.confirm .form-stack { min-width: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); width: max-content; background: var(--hi); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 700; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); }

/* ---------- footer ---------- */
.site-foot { background: var(--s1); border-top: 1px solid var(--s3); padding-block: 40px; }
.foot-in { display: grid; gap: 24px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 22px; }
.foot-grid h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--low); margin: 0 0 8px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; font-size: 15px; }
.foot-grid a { color: var(--mid); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.foot-grid a:hover { color: var(--hi); text-decoration: underline; }
.foot-grid .mono { display: inline-flex; align-items: center; min-height: 44px; }
.foot-tag { margin-top: 10px; font-size: 14px; color: var(--low); max-width: 30ch; }
.disc { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--mid); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.disc svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.disc b { color: var(--hi); }
.legal-line { font-size: 13px; color: var(--low); }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 16px; padding-block: 64px; }
.nf .code { font-family: var(--f-head); font-weight: 700; font-size: clamp(64px, 14vw, 140px); line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.nf h1 { font-size: clamp(26px, 3.4vw, 38px); }
.nf p { color: var(--mid); max-width: 52ch; }

/* ---------- breakpoints ---------- */
@media (max-width: 960px) {
  .js .menu-btn { display: inline-flex; margin-left: auto; }
  .js .head-cta { display: none; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none; background: var(--s1); border-bottom: 1px solid var(--s3); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
  .js .nav.open { display: block; }
  .js .nav ul { flex-direction: column; gap: 2px; padding: 10px var(--gutter) 16px; }
  .js .nav a { min-height: 48px; width: 100%; border-radius: 12px; font-size: 17px; padding: 0 14px; }
  .js .nav .nav-cta { display: block; padding-top: 8px; }
  .js .nav .nav-cta a { justify-content: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dash-tabs { position: sticky; top: 68px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 14px; background: rgba(11, 13, 18, .96); }
  .dash-tabs::-webkit-scrollbar { display: none; }
  .dtab { width: auto; min-height: 44px; padding: 8px 14px; flex: none; }
  .over { grid-template-columns: minmax(0, 1fr); }
  .subcard { grid-template-columns: minmax(0, 1fr); }
  .subcard > div + div { border-left: 0; border-top: 1px solid var(--s3); }
  .days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .day.end { grid-column: 1 / -1; }
}
.nav .nav-cta { display: none; }
.menu-btn { align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--s2); color: var(--hi); font-weight: 700; font-size: 15px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn:focus-visible { outline: none; box-shadow: var(--ring); }

@media (max-width: 720px) {
  .devtable thead { display: none; }
  .devtable, .devtable tbody, .devtable tr, .devtable td { display: block; width: 100%; }
  .devtable tr { padding: 10px 0; border-top: 1px solid var(--s3); }
  .devtable tr:first-child { border-top: 0; }
  .devtable td { border-top: 0; padding: 4px 16px; }
  .devtable td[data-label]::before { content: attr(data-label) ": "; color: var(--low); font-size: 13px; }
  .devtable td.name::before, .devtable td.state::before, .devtable td.acts-cell::before { content: none; }
  .devtable td.acts-cell { padding-top: 10px; }
  .devtable .acts { justify-content: flex-start; }
  .confirm-row { padding: 0 !important; }
  .confirm-row td { padding: 14px 16px; }
  .arow { grid-template-columns: minmax(0, 1fr); }
  .arow .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .tv-top { grid-template-columns: minmax(0, 1fr); }
  .info { display: none; }
  .lead { font-size: 17px; }
  .ctas .btn { flex: 1 1 100%; }
  .keys-table { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .keys-table dt { text-align: left; margin-top: 8px; }
  .preview-banner { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:focus-visible, .dtab:focus-visible { transform: none; }
}
@media (forced-colors: active) {
  .btn, .dtab, .seg button { border: 1px solid ButtonText; }
  .dtab[aria-selected="true"], .seg button[aria-pressed="true"] { outline: 2px solid Highlight; }
}
@media print {
  .site-head, .site-foot, .skip, .toast, .preview-banner { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose strong, .prose h2, .prose h3 { color: #000; }
}

/* device count next to the Devices heading */
[data-device-count] { display: grid; gap: 6px; width: min(220px, 100%); }
