/*
  Reelhost website. Same design system as the app (src/styles.css, docs/DESIGN.md):
  a broadcast test pattern. The eight colour bars are the only loud element; the rest is
  calibration grey, ink and one typeface (Archivo).
*/

:root {
  --ink: #1b1f2e;
  --ink-2: #2a3044;
  --ink-3: #141724;
  --paper: #eceef2;
  --paper-2: #f5f6f8;
  --panel: #ffffff;
  --line: #d6dae1;
  --muted: #596075;
  --faint: #8a90a1;

  --bar-1: #e5c400; /* yellow  - web port */
  --bar-2: #00a7c4; /* cyan    - discovery */
  --bar-3: #2fa84f; /* green   - DLNA */
  --bar-4: #c0369a; /* magenta - artwork */
  --bar-5: #d2342b; /* red     - firewall */
  --bar-6: #2446c8; /* blue    - away from home */
  --bar-7: #6b3fa0; /* violet  - antenna TV */
  --bar-8: #e07b1f; /* orange  - network drives */
  --bar-9: #1f6f78; /* petrol  - sleep settings */
  --bar-10: #8dc63f; /* lime    - video speed */
  --no-signal: #c6cad2;

  --issue: #b8322a;
  --ok: #1f7a48;
  --suggest: #2446c8;
  --focus: #2446c8;

  --radius: 6px;
  --strip10: linear-gradient(90deg, var(--bar-1) 0 10%, var(--bar-2) 10% 20%, var(--bar-3) 20% 30%, var(--bar-4) 30% 40%, var(--bar-5) 40% 50%, var(--bar-6) 50% 60%, var(--bar-7) 60% 70%, var(--bar-8) 70% 80%, var(--bar-9) 80% 90%, var(--bar-10) 90%);
  --wrap: 1160px;
  --gutter: 20px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--panel);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--suggest); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: #fbe98a; color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 750; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Brand mark: the eight bars ---------- */
.mark { display: inline-flex; height: 22px; border-radius: 3px; overflow: hidden; flex: none; }
.mark i { width: 4px; display: block; }
.mark i:nth-child(1) { background: var(--bar-1); }
.mark i:nth-child(2) { background: var(--bar-2); }
.mark i:nth-child(3) { background: var(--bar-3); }
.mark i:nth-child(4) { background: var(--bar-4); }
.mark i:nth-child(5) { background: var(--bar-5); }
.mark i:nth-child(6) { background: var(--bar-6); }
.mark i:nth-child(7) { background: var(--bar-7); }
.mark i:nth-child(8) { background: var(--bar-8); }
.mark i:nth-child(9) { background: var(--bar-9); }
.mark i:nth-child(10) { background: var(--bar-10); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--ink-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--paper); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--paper); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn.ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn.block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 760; font-stretch: 115%; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover { background: var(--paper); }
.head-cta { margin-left: 8px; gap: 0; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); height: 40px; padding: 0 12px; font-weight: 600; font-size: 15px; cursor: pointer; align-items: center; gap: 8px; }
.menu-btn svg { width: 18px; height: 18px; }

/* Seven links plus the Download button need about 1100px on one line; below that, the Menu button. */
@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .head-cta { margin-left: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(27,31,46,0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .head-cta .long { display: none; }
  .head-in { gap: 10px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: 88px 0; }
.sec.tint { background: var(--paper-2); border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; }
.sec.dark { background: var(--ink); color: #e7e9ef; --focus: #9db4ff; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark .lede, .sec.dark .muted { color: #b3b8c6; }
.sec.dark a:not(.btn) { color: #b6c6ff; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--muted); margin-bottom: 18px; }
.label::before { content: ""; width: 22px; height: 12px; border-radius: 2px; background: var(--c, var(--ink)); flex: none; }
.sec.dark .label { color: #b3b8c6; }
.h2 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 770; font-stretch: 116%; letter-spacing: -0.022em; line-height: 1.04; max-width: 20ch; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 60ch; margin-top: 18px; line-height: 1.5; }
.muted { color: var(--muted); }
.sec-head { margin-bottom: 48px; }

@media (max-width: 640px) {
  .sec { padding: 64px 0; }
  .sec-head { margin-bottom: 32px; }
  body { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff 55%, var(--paper-2) 100%); }
.hero-copy { max-width: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin-bottom: 26px; }
.eyebrow .mark { height: 14px; border-radius: 2px; }
.eyebrow .mark i { width: 3px; }
.h1 { font-size: clamp(44px, 7.4vw, 88px); font-weight: 790; font-stretch: 118%; letter-spacing: -0.03em; line-height: 0.98; }
.h1 span { display: block; }
.hero .lede { max-width: 58ch; margin-top: 24px; }
.hero .cta-row { margin-top: 34px; }
.hero-visual { margin-top: 56px; position: relative; }
.replay {
  position: absolute; right: 12px; bottom: -44px;
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 4px;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
}
.replay:hover { color: var(--ink); }
.replay[hidden] { display: none; }
.replay svg { width: 16px; height: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 76px; border-top: 1px solid var(--line); }
.facts li { list-style: none; padding: 18px 20px 0 0; font-size: 15px; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: 16px; font-weight: 680; margin-bottom: 2px; }
.facts ul, ul.facts { padding: 0; margin: 76px 0 0; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 8px; } }
@media (max-width: 640px) { .eyebrow { font-size: 13.5px; } .hero .cta-row .btn { flex: 1 1 auto; } .hero { padding: 36px 0 56px; } .hero-visual { margin-top: 40px; } .facts { margin-top: 64px !important; } }

/* ---------- App window recreation (hero) ---------- */
.win {
  background: var(--paper); border: 1px solid #c9ced8; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 30px 60px -20px rgba(27,31,46,0.28), 0 12px 24px -12px rgba(27,31,46,0.18);
  font-size: 14px; line-height: 1.45; color: var(--ink); user-select: none;
}
.win-bar { display: flex; align-items: center; height: 36px; background: #fff; border-bottom: 1px solid var(--line); padding-left: 14px; font-size: 13px; color: var(--muted); }
.win-bar .mark { height: 12px; border-radius: 2px; margin-right: 8px; }
.win-bar .mark i { width: 2px; }
.win-ctl { margin-left: auto; display: flex; height: 100%; }
.win-ctl i { width: 44px; display: grid; place-items: center; position: relative; }
.win-ctl i::before { content: ""; width: 10px; height: 10px; border: 1.2px solid #7d8496; }
.win-ctl i:first-child::before { height: 0; border-width: 1.2px 0 0; }
.win-ctl i:last-child::before { border: 0; background: linear-gradient(45deg, transparent 46%, #7d8496 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #7d8496 46% 54%, transparent 54%); width: 11px; height: 11px; }
.win-body { display: grid; grid-template-columns: 196px 1fr; min-height: 520px; }
.win-rail { background: var(--ink); color: #c3c7d3; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.win-brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 750; font-stretch: 115%; font-size: 16px; padding: 0 8px 18px; }
.win-brand .mark { height: 18px; }
.win-brand .mark i { width: 4px; }
.wnav { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--radius); font-size: 13.5px; }
.wnav.cur { background: #fff; color: var(--ink); font-weight: 600; }
.wcount { font-size: 11px; font-weight: 650; background: var(--issue); color: #fff; border-radius: 10px; padding: 0 7px; min-width: 20px; text-align: center; transition: opacity 0.3s; }
.win-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--ink-2); font-size: 12px; color: #9aa0b1; }
.win-main { padding: 26px 30px 26px; min-width: 0; }

.strip-bars { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); height: 120px; border-radius: 4px; overflow: hidden; }
.bar { position: relative; background: var(--no-signal); overflow: hidden; }
.bar::before { content: ""; position: absolute; inset: 0; background: var(--c); transform-origin: bottom; opacity: 1; }
.bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent); transform: translateX(-100%); opacity: 0; }
.strip-labels { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-top: 7px; font-size: 11.5px; color: var(--muted); }
.strip-labels span { padding-right: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt::before { opacity: 0.28 !important; transform: none !important; animation: none !important; }

.verdict { font-size: 30px; line-height: 1.05; font-weight: 780; font-stretch: 118%; letter-spacing: -0.02em; margin: 22px 0 4px; }
.verdict-sub { color: var(--muted); margin: 0 0 16px; font-size: 13.5px; min-height: 1.45em; }
.wchecks { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.wchecks li { display: grid; grid-template-columns: 22px 1fr; gap: 2px 10px; padding: 11px 14px; transition: opacity 0.3s; }
.wchecks li + li { border-top: 1px solid var(--line); }
.wchecks b { font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wchecks p { grid-column: 2; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb { width: 16px; height: 16px; border-radius: 3px; margin-top: 2px; background: var(--ink); position: relative; }
.cb::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cb.off { background: #fff; border: 1.5px solid #9aa0b1; }
.cb.off::after { display: none; }
.sw { width: 16px; height: 16px; border-radius: 3px; margin-top: 2px; background: var(--c); }
.tag { font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.tag.issue { background: #f6e1df; color: var(--issue); }
.tag.ok { background: #dff0e6; color: var(--ok); }
.tag.suggested { background: #e1e6f8; color: var(--suggest); }
.tag.wait { background: var(--paper); color: var(--muted); }
.wactions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.wbtn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius); padding: 7px 14px; font-weight: 600; font-size: 13.5px; transition: transform 0.15s, box-shadow 0.2s; }
.wbtn.ghost { background: transparent; color: var(--ink); }
.wbtn.press { transform: scale(0.97); box-shadow: 0 0 0 4px rgba(36,70,200,0.25); }
.wnote { font-size: 12.5px; color: var(--muted); }
.wsuccess { background: #dff0e6; color: #14502f; border-radius: var(--radius); padding: 7px 12px; font-size: 13px; font-weight: 550; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Phases: data-phase on .demo = scan | found | apply | done. Elements with data-show list the phases they appear in. */
.demo [data-show] { display: none !important; }
.demo[data-phase="scan"] [data-show~="scan"],
.demo[data-phase="found"] [data-show~="found"],
.demo[data-phase="apply"] [data-show~="apply"],
.demo[data-phase="done"] [data-show~="done"] { display: revert !important; }
.demo .wactions [data-show] { display: none !important; }
.demo[data-phase="found"] .wactions [data-show~="found"],
.demo[data-phase="apply"] .wactions [data-show~="apply"],
.demo[data-phase="done"] .wactions [data-show~="done"] { display: inline-flex !important; }

.demo[data-phase="scan"] .bar::before { opacity: 0; }
.demo[data-phase="scan"] .bar::after { opacity: 1; animation: sweep 1.1s linear infinite; animation-delay: calc(var(--i) * 110ms); }
.demo[data-phase="scan"] .wchecks li { opacity: 0.35; }
.demo[data-phase="scan"] .wcount { opacity: 0; }
.demo[data-phase="found"] .fx, .demo[data-phase="apply"] .fx {
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(27,31,46,0.1) 7px 9px), var(--no-signal);
}
.demo[data-phase="found"] .fx::before, .demo[data-phase="apply"] .fx::before { opacity: 0; }
.demo[data-phase="found"] .sg::before, .demo[data-phase="apply"] .sg::before { opacity: 0.28; }
.demo[data-phase="done"] .wcount { opacity: 0; }
.demo.animate[data-phase="done"] .fx::before, .demo.animate[data-phase="done"] .sg::before { animation: light-up 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 150ms); }
@keyframes light-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 860px) {
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-rail { display: none; }
  .win-main { padding: 18px 16px 18px; }
  .strip-bars { height: 84px; }
  .strip-labels { font-size: 9.5px; }
  .verdict { font-size: 24px; margin-top: 16px; }
  .wchecks li:nth-child(n+4) { display: none; }
  .wchecks p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 420px) {
  .strip-labels span { overflow: visible; }
  .strip-labels span:nth-child(even) { visibility: hidden; }
  .win-ctl i { width: 34px; }
}

/* ---------- Problem ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); font-size: 18px; max-width: 56ch; }
.prose strong { color: var(--ink); font-weight: 650; }
.chores { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.chores-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 650; background: var(--paper-2); }
.chores-head span { color: var(--muted); font-weight: 500; }
.chores ol { list-style: none; margin: 0; padding: 0; }
.chores li { display: grid; grid-template-columns: 6px 1fr; gap: 14px; padding: 12px 18px; font-size: 15.5px; align-items: stretch; }
.chores li + li { border-top: 1px solid var(--line); }
.chores li::before { content: ""; background: var(--c); border-radius: 2px; }
.chores-sub { padding: 10px 18px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14px; font-weight: 650; color: var(--muted); }
.chores-foot { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; font-weight: 650; }
.chores-foot .mark { height: 18px; }

/* ---------- Fixes ---------- */
.fix-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.fix-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .fix-grid, .fix-grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fix-grid, .fix-grid.three { grid-template-columns: 1fr; gap: 16px; } }
.sub-head { margin: 64px 0 24px; max-width: 60ch; }
@media (max-width: 600px) { .fix-grid.emby .fix-art { height: 6px; overflow: hidden; border-bottom: 0; } .fix-grid.emby .fix-art svg { display: none; } }
.sub-head h3 { font-size: clamp(22px, 3vw, 28px); font-stretch: 112%; letter-spacing: -0.015em; }
.sub-head p { color: var(--muted); margin-top: 6px; }
.fix-grid.more .fix-art { background: #fff; }
.fix-grid.more .fix-art::before { background: var(--strip10); }
.fix { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; color: var(--c); }
.fix-art { background: var(--paper-2); background: color-mix(in srgb, var(--c) 9%, #fff); border-bottom: 1px solid var(--line); position: relative; }
.fix-art::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.fix-art svg { width: 100%; height: auto; aspect-ratio: 240 / 150; }
.fix-body { padding: 18px 20px 22px; color: var(--ink); }
.fix-num { font-size: 13px; color: var(--muted); font-weight: 600; }
.fix h3 { font-size: 20px; margin: 2px 0 10px; font-stretch: 110%; }
.fix p { font-size: 15px; color: var(--muted); }
.fix p + p { margin-top: 10px; }
.fix p strong { color: var(--ink); font-weight: 650; }
.fix a { font-weight: 600; }

/* Illustration classes (inline SVG). currentColor = the card's bar colour. */
.il { font-family: var(--font); }
.il .s { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il .w { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.il .a { fill: currentColor; }
.il .as { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.il .aw { fill: currentColor; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.il .g { fill: var(--no-signal); }
.il .gs { fill: none; stroke: #a7adb9; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 5; }
.il .k { fill: var(--ink); }
.il .t { fill: var(--ink); font-size: 13px; font-weight: 650; }
.il .tw { fill: #fff; font-size: 13px; font-weight: 650; }
.il .tm { fill: var(--muted); font-size: 11px; font-weight: 550; }
.il .big { font-size: 19px; font-weight: 780; font-stretch: 112%; }

.soon { margin-top: 40px; padding: 22px 24px; border: 1.5px dashed #b9bfca; border-radius: 8px; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: start; }
.soon h3 { font-size: 17px; font-stretch: 105%; white-space: nowrap; }
.soon h3 span { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 650; background: var(--paper); color: var(--muted); border-radius: 10px; padding: 1px 9px; vertical-align: 2px; }
.soon ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 15.5px; }
.soon li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 1px; background: var(--no-signal); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 700px) { .soon { grid-template-columns: 1fr; } .soon h3 { white-space: normal; } .soon ul { flex-direction: column; } }

/* ---------- Watch anywhere ---------- */
.away { overflow: hidden; }
.away::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--strip10); }
.addr-bar { margin-top: 40px; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 999px; padding: 14px 22px; max-width: 640px; box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6); font-size: clamp(17px, 3.6vw, 26px); font-weight: 650; font-stretch: 108%; letter-spacing: -0.01em; overflow: hidden; }
.addr-bar svg { width: 22px; height: 22px; flex: none; color: var(--ok); }
.addr-bar .proto { color: var(--faint); font-weight: 500; }
.addr-bar .name { color: var(--bar-6); }
.addr-bar .url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--bar-6); vertical-align: -0.15em; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.provide { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 56px; background: #343a50; border: 1px solid #343a50; border-radius: 8px; overflow: hidden; list-style: none; padding: 0; }
.provide li { background: var(--ink); padding: 22px 20px 24px; }
.provide svg { width: 28px; height: 28px; color: #9db4ff; margin-bottom: 14px; }
.provide strong { display: block; color: #fff; font-size: 17px; font-weight: 680; margin-bottom: 4px; }
.provide span { color: #b3b8c6; font-size: 15px; }
@media (max-width: 1000px) { .provide { grid-template-columns: repeat(2, 1fr); } .provide li:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .provide { grid-template-columns: 1fr; } }
.nothing { margin-top: 28px; font-size: clamp(20px, 3vw, 26px); font-weight: 720; font-stretch: 110%; color: #fff; letter-spacing: -0.01em; }

.flow { margin-top: 64px; display: grid; grid-template-columns: 1fr 72px 1fr 72px 1fr; align-items: center; }
.node { background: var(--ink-2); border: 1px solid #3c4360; border-radius: 10px; padding: 18px; text-align: left; }
.node svg { width: 40px; height: 40px; color: #fff; margin-bottom: 10px; }
.node strong { display: block; color: #fff; font-weight: 680; }
.node span { color: #b3b8c6; font-size: 14.5px; }
.pipe { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bar-6), #6f8cff); position: relative; }
.pipe::after { content: ""; position: absolute; right: -2px; top: 50%; width: 12px; height: 12px; border: solid #6f8cff; border-width: 3px 3px 0 0; transform: translateY(-50%) rotate(45deg); }
.flow-cap { grid-column: 1 / -1; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: #b3b8c6; }
.flow-cap span { display: inline-flex; align-items: center; gap: 10px; }
.flow-cap i { width: 28px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--bar-6), #6f8cff); }
.flow-cap i.dash { height: 0; border-top: 2px dashed #8a90a1; border-radius: 0; background: none; }
.name-svc { grid-column: 1 / -1; justify-self: center; margin-bottom: 18px; display: inline-flex; gap: 10px; align-items: center; border: 1.5px dashed #59607a; border-radius: 999px; padding: 8px 16px; font-size: 14.5px; color: #c9cdd8; }
.name-svc .mark { height: 14px; }
.name-svc .mark i { width: 3px; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .pipe { width: 6px; height: 34px; margin: 0 0 0 28px; background: linear-gradient(180deg, var(--bar-6), #6f8cff); }
  .pipe::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
  .name-svc { justify-self: start; }
}

.routes { display: grid; grid-template-columns: 1fr 1fr; margin-top: 64px; border: 1px solid #3c4360; border-radius: 10px; overflow: hidden; }
.route { padding: 28px 28px 30px; }
.route + .route { border-left: 1px solid #3c4360; }
.route.pick { background: #fff; color: var(--ink); }
.route.pick h3 { color: var(--ink); }
.route.pick p, .route.pick li { color: var(--muted); }
.route h3 { font-size: 22px; margin-bottom: 6px; }
.route .sub { font-size: 15px; color: #b3b8c6; margin-bottom: 14px; }
.route ul { margin: 0; padding: 0; list-style: none; }
.route li { padding: 7px 0 7px 28px; position: relative; font-size: 15.5px; color: #cfd3dd; }
.route li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); color: #7fd3a3; }
.route.pick li::before { color: var(--ok); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } .route + .route { border-left: 0; border-top: 1px solid #3c4360; } .route { padding: 22px 20px 24px; } }


@media (max-width: 560px) {
  .addr-bar .proto { display: none; }
  .provide li { display: grid; grid-template-columns: 28px 1fr; gap: 0 14px; padding: 18px 18px 20px; }
  .provide svg { margin: 2px 0 0; grid-row: span 2; }
  .stat-row { display: grid; grid-template-columns: repeat(3, auto); gap: 16px; justify-content: start; }
  .stat b { font-size: 32px; }
  .stat span { font-size: 13px; display: block; max-width: 12ch; }
}

/* ---------- Antenna TV ---------- */
.guide { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13.5px; }
.guide-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 650; }
.guide-top .tag { margin-left: auto; }
.g-row { display: grid; grid-template-columns: 64px 1fr; border-top: 1px solid var(--line); }
.g-row:first-of-type { border-top: 0; }
.g-ch { padding: 10px 12px; font-weight: 700; font-variant-numeric: tabular-nums; border-right: 1px solid var(--line); background: var(--paper-2); }
.g-ch.times { background: #fff; }
.g-prog { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 4px; }
.g-prog span { background: var(--paper); border-radius: 4px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.g-prog span.now { background: color-mix(in srgb, var(--bar-7) 16%, #fff); box-shadow: inset 3px 0 0 var(--bar-7); }
.g-times span { background: none; color: var(--muted); font-weight: 600; padding: 6px 8px; }
.g-row.head { background: #fff; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; }
.stat-row { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.stat b { display: block; font-size: 44px; font-weight: 790; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14.5px; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 56ch; }
@media (max-width: 520px) { .g-prog span { padding: 6px 5px; font-size: 12px; } .g-row { grid-template-columns: 50px 1fr; } }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 28px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 750; font-size: 18px; margin-bottom: 20px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.steps h3 { font-size: 22px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding: 0 0 28px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { left: 21px; right: auto; top: 44px; bottom: 0; width: 2px; height: auto; }
  .steps h3 { padding-top: 8px; }
}

/* ---------- Safety ---------- */
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 26px 22px; box-shadow: 0 24px 48px -24px rgba(27,31,46,0.3); font-size: 14.5px; }
.sheet h3 { font-size: 22px; font-stretch: 112%; }
.sheet .note { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.changes { list-style: none; margin: 18px 0; padding: 0; }
.changes li { padding: 11px 0 11px 18px; border-top: 1px solid var(--line); position: relative; }
.changes li:last-child { border-bottom: 1px solid var(--line); }
.changes li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.changes code { display: block; font-family: inherit; font-size: 12px; color: var(--muted); word-break: break-all; margin-top: 2px; }
.sheet-foot { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.promises li { display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises svg { width: 28px; height: 28px; color: var(--ok); margin-top: 2px; }
.promises strong { display: block; font-size: 17.5px; font-weight: 680; }
.promises span { color: var(--muted); font-size: 15.5px; }

/* ---------- Pricing ---------- */
.guarantee { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: center; background: #dff0e6; color: #14502f; border-radius: 10px; padding: 22px 26px; margin-bottom: 36px; }
.guarantee svg { width: 40px; height: 40px; color: var(--ok); }
.guarantee strong { display: block; font-size: clamp(18px, 2.4vw, 22px); font-weight: 720; font-stretch: 108%; color: #0f3f25; letter-spacing: -0.01em; }
.guarantee .mb { font-weight: 650; background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 15px; white-space: nowrap; }
@media (max-width: 760px) { .guarantee { grid-template-columns: 1fr; padding: 20px; } .guarantee .mb { justify-self: start; white-space: normal; } }

.plans { display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 26px 26px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 22px; font-stretch: 110%; }
.plan .for { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.price b { font-size: 54px; font-weight: 800; font-stretch: 118%; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); font-size: 16px; }
.price-note { font-size: 14px; color: var(--muted); min-height: 1.5em; }
.plan ul { list-style: none; margin: 22px 0 24px; padding: 0; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 12px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan.best { border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(27,31,46,0.45); }
.badge { position: absolute; top: -14px; left: 24px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 650; padding: 4px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; }
.badge .mark { height: 11px; border-radius: 2px; }
.badge .mark i { width: 2px; }
.plan-msg { margin-top: 12px; font-size: 14px; background: #fbf1cf; color: #5a4700; border-radius: var(--radius); padding: 10px 12px; }
.plan-msg[hidden] { display: none; }
.plan-fine { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan.best { order: -1; margin-top: 14px; }
  .plan .for { min-height: 0; }
}

.compare-wrap { margin-top: 72px; }
.compare-wrap h3 { font-size: clamp(24px, 3.4vw, 32px); font-stretch: 114%; letter-spacing: -0.02em; margin-bottom: 8px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; background: var(--paper-2); font-size: 15px; font-weight: 700; }
.compare thead th:nth-child(2) { background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 650; width: 22%; }
.compare td:nth-child(2) { background: #f8faf9; font-weight: 550; }
.compare td { color: var(--muted); }
.compare td:nth-child(2) { color: var(--ink); }
@media (max-width: 760px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { border-top: 1px solid var(--line); padding: 6px 0 10px; }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th { border-top: 0; padding: 14px 16px 6px; font-size: 16px; width: auto; }
  .compare td { border-top: 0; padding: 6px 16px 6px; display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
  .compare td::before { content: attr(data-label); font-weight: 650; color: var(--ink); font-size: 14px; }
  .compare td:nth-child(2) { background: none; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-size: clamp(18px, 2.2vw, 20px); font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--ink-2); }
.faq .ans { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }
.faq .ans p + p { margin-top: 12px; }

/* ---------- Find my key ---------- */
.findkey { margin-top: 56px; max-width: 860px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px 32px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px; }
.findkey h3 { font-size: 22px; font-stretch: 110%; margin-bottom: 6px; }
.findkey p { color: var(--muted); font-size: 15.5px; }
.findkey label { display: block; font-weight: 650; font-size: 14.5px; margin-bottom: 6px; }
.findkey-row { display: flex; gap: 10px; }
.findkey input { flex: 1; min-width: 0; min-height: 48px; border: 1.5px solid #b9bfca; border-radius: var(--radius); padding: 10px 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.findkey input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.findkey input[aria-invalid="true"] { border-color: var(--issue); }
.findkey .btn[disabled] { opacity: 0.6; cursor: default; }
.findkey-msg { margin-top: 10px; font-size: 15px; min-height: 1.5em; }
.findkey-msg.ok { color: var(--ok); }
.findkey-msg.bad { color: var(--issue); }
@media (max-width: 760px) { .findkey { grid-template-columns: 1fr; padding: 22px 20px; } }
@media (max-width: 420px) { .findkey-row { flex-direction: column; } }

/* ---------- Thank-you page ---------- */
.keybox { margin-top: 28px; background: var(--ink); color: #fff; border-radius: 10px; padding: 24px 26px; --focus: #9db4ff; }
.keybox .k-label { color: #b3b8c6; font-size: 14.5px; margin: 0; }
.keybox .k-row { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; margin-top: 8px; }
.keybox code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: clamp(15px, 4.4vw, 28px); font-weight: 600; letter-spacing: 0.02em; overflow-wrap: anywhere; user-select: all; color: #fff; }
.keybox .k-meta { margin-top: 12px; color: #b3b8c6; font-size: 14.5px; }
.pending { margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.pending .spinner { width: 20px; height: 20px; flex: none; margin-top: 3px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
.pending.stopped .spinner { display: none; }
.pending p { margin: 0; color: var(--ink); }
.pending p + p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.doc ol.next { padding-left: 22px; margin-top: 12px; }
.doc ol.next li { margin: 8px 0; }
[hidden] { display: none !important; }

/* ---------- Final CTA ---------- */
.final { text-align: left; }
.final-strip { display: grid; grid-template-columns: repeat(10, 1fr); height: 14px; border-radius: 3px; overflow: hidden; margin-bottom: 44px; max-width: 520px; }
.final-strip i { background: var(--c); transform-origin: bottom; }
.final .h2 { max-width: 18ch; }
.final .cta-row { margin-top: 32px; }
.dl-meta { margin-top: 16px; color: #b3b8c6; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.dl-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dl-meta svg { width: 16px; height: 16px; color: #7fd3a3; }
.dl-msg { margin-top: 18px; background: var(--ink-2); border: 1px solid #3c4360; color: #e7e9ef; border-radius: var(--radius); padding: 12px 16px; max-width: 560px; font-size: 15px; }
.dl-msg[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: #9aa0b1; padding: 56px 0 40px; font-size: 14.5px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #2a3044; }
.site-footer .brand { color: #fff; }
.site-footer p { max-width: 46ch; margin-top: 12px; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-links h2 { font-size: 14px; color: #fff; font-weight: 650; font-stretch: 100%; letter-spacing: 0; margin-bottom: 10px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { padding: 4px 0; }
.site-footer a { color: #c9cdd8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer { --focus: #9db4ff; }
.legal-line { padding-top: 24px; font-size: 13.5px; line-height: 1.6; }
.legal-line p { max-width: none; margin-top: 8px; }

/* ---------- Document pages (terms, privacy, refund, 404) ---------- */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: calc(760px + var(--gutter) * 2); }
.draft { background: #fbf1cf; color: #5a4700; border: 1px solid #ecd98d; border-radius: 8px; padding: 14px 18px; margin-bottom: 32px; font-size: 15px; }
.draft strong { color: #3e3100; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 780; font-stretch: 116%; letter-spacing: -0.025em; }
.doc .updated { color: var(--muted); margin-top: 10px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; font-stretch: 108%; }
.doc p, .doc li { color: #3a4053; }
.doc p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--paper-2); }
.doc .tbl { overflow-x: auto; }
.nf { min-height: 70vh; display: flex; align-items: center; padding: 64px 0; }
.nf-strip { display: grid; grid-template-columns: repeat(10, 1fr); height: 140px; border-radius: 4px; overflow: hidden; max-width: 560px; margin-bottom: 36px; }
.nf-strip i { background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(27,31,46,0.1) 7px 9px), var(--no-signal); }

/* ---------- Header links on document pages ---------- */
.nav a[aria-current="page"] { background: var(--paper); }
.head-link { margin-left: auto; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius); }
.head-link:hover { background: var(--paper); }
.head-link[aria-current="page"] { background: var(--paper); }
.head-link + .head-cta { margin-left: 4px; }

/* ---------- Help center (help.html) ---------- */
.help-hero { padding: 52px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%); border-bottom: 1px solid #e4e7ec; }
.help-hero h1 { font-size: clamp(38px, 6.4vw, 64px); font-weight: 780; font-stretch: 116%; letter-spacing: -0.026em; line-height: 1; }
.help-hero .lede { margin-top: 16px; }
.help-search { margin-top: 30px; max-width: 660px; }
.help-search .field { position: relative; }
.help-search input {
  width: 100%; min-height: 58px; padding: 14px 52px 14px 50px;
  border: 1.5px solid #b9bfca; border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-size: 17px; box-shadow: 0 14px 30px -20px rgba(27,31,46,0.4);
  -webkit-appearance: none; appearance: none;
}
.help-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.help-search input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.help-search .glass { position: absolute; left: 19px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.help-search .clear { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.help-search .clear:hover { background: var(--paper); color: var(--ink); }
.help-search .clear svg { width: 18px; height: 18px; }
.help-search .kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 0 7px; line-height: 22px; pointer-events: none; }
.search-status { margin-top: 10px; padding-left: 4px; font-size: 14.5px; color: var(--muted); min-height: 1.5em; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.quick a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.quick a::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c, var(--ink)); flex: none; }
.quick a:hover { border-color: #b9bfca; background: var(--paper-2); }
.help-search:not([hidden]) + .quick { margin-top: 4px; }

.help-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 44px; padding-bottom: 96px; }

/* Table of contents: sticky on desktop, a collapsible list on phones. */
.toc { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 12px 2px; font-size: 15px; }
.toc summary { display: none; }
.toc-label { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.toc a:hover { background: var(--paper); }
.toc .sec-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-weight: 650; }
.toc .sec-link::before { content: ""; width: 8px; height: 16px; border-radius: 2px; background: var(--c, var(--ink)); flex: none; }
.toc .sec-link[aria-current] { background: var(--paper); }
.toc ol ol { margin: 2px 0 8px 14px; padding-left: 12px; border-left: 1px solid var(--line); }
.toc ol ol a { padding: 4px 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.toc ol ol a:hover { color: var(--ink); }
.toc ol ol a[aria-current] { color: var(--ink); font-weight: 650; background: var(--paper); }
/* With help.js, only the section being read shows its topics (and every topic while searching). */
.toc.js ol ol { display: none; }
.toc.js li.current > ol, .toc.js.searching ol ol { display: block; }

.help-main { min-width: 0; max-width: 780px; }
.help-sec { margin-bottom: 72px; }
.help-sec > h2 { position: relative; padding-top: 22px; font-size: clamp(28px, 4.2vw, 40px); font-weight: 770; font-stretch: 116%; letter-spacing: -0.02em; line-height: 1.06; }
.help-sec > h2::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 6px; border-radius: 2px; background: var(--c, var(--ink)); }
.help-sec > .intro { margin-top: 14px; font-size: 18px; color: var(--muted); max-width: 62ch; }
.help-sec.searching > .intro { display: none; }
.topic { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.topic h3 { font-size: 22px; font-stretch: 110%; line-height: 1.2; }
.topic.check h3::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--c); margin-right: 10px; vertical-align: 1px; }
.topic p, .topic li, .topic dd { color: #3a4053; }
.topic p { margin-top: 10px; max-width: 68ch; }
.topic ul, .topic ol { margin: 10px 0 0; padding-left: 22px; max-width: 68ch; }
.topic li { margin: 6px 0; padding-left: 2px; }
.topic li::marker { color: var(--muted); }
.topic strong { color: var(--ink); font-weight: 650; }
.topic code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.86em; background: var(--paper); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; color: var(--ink); }
/* A label exactly as it appears in the app: a button, a tab or a heading. */
.ui { font-weight: 650; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; font-size: 0.94em; white-space: nowrap; }
.anchor { margin-left: 10px; color: var(--faint); font-weight: 500; text-decoration: none; opacity: 0; transition: opacity 0.15s; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--suggest); }
@media (hover: none) { .anchor { opacity: 0.55; } }

.facts-dl { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 10px 20px; margin: 14px 0 0; max-width: 68ch; }
.facts-dl dt { font-weight: 650; font-size: 15px; color: var(--ink); padding-top: 1px; }
.facts-dl dd { margin: 0; }
.facts-dl dd p:first-child { margin-top: 0; }

.callout { margin-top: 16px; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--suggest)); border-radius: 8px; background: var(--paper-2); max-width: 68ch; }
.callout p { margin-top: 0; }
.callout p + p { margin-top: 8px; }
.callout.warn { background: #fbf6e1; border-color: #ecd98d; border-left-color: #b88a00; }
.callout.warn p { color: #4a3d0a; }

.two-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.two-ways > div { border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; background: #fff; }
.two-ways h4 { font-size: 17px; font-stretch: 108%; margin: 0; }
.two-ways .sub { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.two-ways ul { margin-top: 8px; font-size: 15.5px; }

.results { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.results th, .results td { text-align: left; vertical-align: top; padding: 11px 14px; border: 1px solid var(--line); }
.results thead th { background: var(--paper-2); font-weight: 700; }
.results td:first-child { width: 46%; color: var(--ink); }
.results td { color: #3a4053; }

.no-results { margin-top: 8px; padding: 26px 24px; border: 1.5px dashed #b9bfca; border-radius: 10px; }
.no-results h2 { font-size: 22px; }
.no-results p { color: var(--muted); margin-top: 8px; }

@media (max-width: 960px) {
  .help-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .toc { position: static; max-height: none; overflow: visible; padding: 0; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
  .toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 650; font-size: 16px; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { content: ""; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-30%) rotate(45deg); transition: transform 0.2s; }
  .toc details[open] summary::after { transform: translateY(20%) rotate(-135deg); }
  .toc details[open] summary { border-bottom: 1px solid var(--line); }
  .toc details > ol { padding: 8px; }
  .toc-label { display: none; }
  .toc ol ol, .toc.js li.current > ol { display: none; }
  .toc .sec-link { padding: 11px 10px; }
}
@media (max-width: 640px) {
  .help-hero { padding: 36px 0 30px; }
  .help-search .kbd { display: none; }
  .help-sec { margin-bottom: 56px; }
  .topic h3 { font-size: 20px; }
  .facts-dl { grid-template-columns: 1fr; gap: 2px; }
  .facts-dl dd { margin-bottom: 10px; }
  .two-ways { grid-template-columns: 1fr; }
  .results, .results tbody, .results tr, .results td { display: block; width: 100%; }
  .results thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .results tr { border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; overflow: hidden; }
  .results td { border: 0; padding: 10px 14px; }
  .results td:first-child { width: 100%; background: var(--paper-2); font-weight: 600; }
  .ui { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
