/* Parky landing — "marquee dark": the app's own warm near-black ground, one hot
   red, a display face with real personality. Nothing here is a framework default. */

:root {
  --ground: #221e1f;          /* the app's GROUND, so the page and the app agree */
  --ground-deep: #171314;
  --surface: #2b2627;
  --surface-2: #332d2e;
  --line: #3d3637;
  --ink: #f4efee;
  --ink-2: #cfc6c4;
  --ink-3: #9a9190;
  --red: #ff5252;             /* the Play button */
  --red-deep: #e03e3e;
  --red-glow: rgba(255, 82, 82, .28);
  --display: 'Bricolage Grotesque', 'Segoe UI Variable Display', system-ui, sans-serif;
  --body: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 18px;
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font: 500 .92em/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--surface-2); padding: .15em .4em; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -.02em; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top .btn-sm { margin-left: auto; } }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #1a0d0d; text-decoration: none;
  font: 600 16px/1 var(--body);
  padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 0 0 0 var(--red-glow);
  transition: transform .18s ease, box-shadow .25s ease, background .18s ease;
}
.btn:hover, .btn:focus-visible { background: #ff6b6b; transform: translateY(-1px); box-shadow: 0 10px 34px var(--red-glow); outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--red); }
.btn-sm { padding: 10px 16px; font-size: 15px; }
.btn-lg { padding: 16px 24px 16px 20px; font-size: 18px; }
.btn-meta { font-weight: 500; font-size: 13px; opacity: .72; margin-left: 2px; padding-left: 10px; border-left: 1px solid rgba(0,0,0,.25); }
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .btn-lg { width: 100%; justify-content: center; flex-wrap: wrap; row-gap: 4px; }
  .btn-lg .btn-meta { flex-basis: 100%; text-align: center; border: 0; padding: 0; margin: 0; }
}
.link-arrow { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.link-arrow:hover { color: var(--ink); }

/* ── hero ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(24px, 5vw, 64px);
  position: relative;
  min-height: min(88vh, 900px);
}
.hero::before {
  /* one warm pool of light behind the copy — the app's ambient backdrop, quoted */
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background: radial-gradient(60% 55% at 22% 40%, rgba(255, 82, 82, .16), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
h1 { font-size: clamp(40px, 6.2vw, 82px); font-weight: 800; }
h1 em { font-style: normal; color: var(--red); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; margin: 24px 0 32px; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pills { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; }
.pills li::before { content: '✓'; color: var(--red); font-weight: 700; margin-right: 8px; }

/* The deck: three phones fanned like a hand of cards. */
.deck { position: relative; height: clamp(420px, 60vw, 700px); justify-self: end; width: 100%; max-width: 560px; }
.deck .card {
  position: absolute; bottom: 0; width: 46%;
  border-radius: 26px; border: 6px solid #0d0b0b;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform-origin: 50% 100%;
  opacity: 0;
  animation: deal .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.deck .c1 { left: 0;    transform: rotate(-12deg) translateY(30px); animation-delay: .05s; z-index: 1; filter: brightness(.82); }
.deck .c2 { left: 27%;  transform: rotate(-3deg)  translateY(8px);  animation-delay: .2s;  z-index: 2; filter: brightness(.92); }
.deck .c3 { left: 54%;  transform: rotate(7deg)   translateY(0);    animation-delay: .35s; z-index: 3; }
@keyframes deal {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .deck .card { animation: none; opacity: 1; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; overflow: clip; }
  .deck { justify-self: center; height: clamp(300px, 70vw, 520px); max-width: 400px; }
}

/* The reel: a slow marquee hairline. The page's one piece of motion after load. */
.reel {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ground-deep);
  font: 600 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.reel span { display: inline-block; padding-right: 2em; animation: reel 48s linear infinite; }
@keyframes reel { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .reel span { animation: none; } .reel span + span { display: none; } }

/* ── sections ── */
.section { padding: clamp(56px, 8vw, 120px) var(--gutter); max-width: 1240px; margin: 0 auto; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px; position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.feat::after { /* a red thread along the bottom edge that only shows on hover */
  content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.feat:hover { transform: translateY(-3px); border-color: #4a4243; }
.feat:hover::after { transform: scaleX(1); }
.fi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ground-deep); color: var(--red); font-style: normal; font-size: 18px; margin-bottom: 18px; }
.feat h3 { margin-bottom: 10px; }
.feat p { color: var(--ink-2); font-size: 15.5px; }

/* split sections with a phone */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(28px, 5vw, 80px); }
.split.flip .split-copy { order: 2; }
.split .sub { color: var(--ink-2); font-size: 18px; margin: 18px 0 26px; max-width: var(--measure); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--ink-2); }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }
.checks.cols { grid-template-columns: repeat(2, 1fr); gap: 12px 40px; margin-top: 34px; }
@media (max-width: 760px) { .checks.cols { grid-template-columns: 1fr; } }
.phone { margin: 0; justify-self: center; width: min(320px, 78vw); }
.phone img { border-radius: 30px; border: 7px solid #0d0b0b; box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip .split-copy { order: 0; } }

/* TV */
.tv .section-head { max-width: 760px; }
.tvframe { margin: 0; }
.tvframe img {
  border-radius: 14px; border: 10px solid #0d0b0b; box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06);
  background: #000;
}
.tvframe figcaption { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 16px; }

/* Windows */
.winframe { margin: 0; border-radius: 12px; overflow: hidden; background: #1a1617; box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.winframe > img { display: block; width: 100%; height: auto; }
.winbar { display: flex; align-items: center; justify-content: space-between; height: 32px; padding-left: 12px; background: #141112; font-size: 12px; color: var(--ink-2); }
.wintitle { display: flex; align-items: center; gap: 8px; }
.wincaps { display: flex; height: 100%; }
.wincaps i { font-style: normal; width: 46px; display: grid; place-items: center; color: var(--ink-3); }
.wingrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.wingrid figure { margin: 0; }
.wingrid img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06); }
.wingrid figcaption { color: var(--ink-3); font-size: 14px; margin-top: 10px; text-align: center; }
@media (max-width: 760px) { .wingrid { grid-template-columns: 1fr; } .winbar { height: 24px; } .wincaps i { width: 32px; } }
.win-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 34px; }
.win-cta span { color: var(--ink-3); font-size: 14px; max-width: 46ch; }

/* compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 18px; padding-bottom: 14px; }
.compare thead th.us { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.compare thead th.us img { border-radius: 50%; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 15%; }
.compare td { color: var(--ink-2); }
.compare td.us { color: var(--ink); background: color-mix(in srgb, var(--red) 7%, transparent); position: relative; }
.compare td.us::before { content: '✓'; color: var(--red); font-weight: 700; margin-right: 8px; }

/* install */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: grid; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 13px/1 var(--display); letter-spacing: .1em; color: var(--red); }
.steps b { font: 650 19px/1.2 var(--display); }
.steps span { color: var(--ink-2); font-size: 15.5px; }
.note { color: var(--ink-3); font-size: 15px; margin-top: 18px; }

/* final */
.final {
  text-align: center; padding: clamp(64px, 9vw, 130px) var(--gutter);
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,82,82,.18), transparent 70%), var(--ground-deep);
  border-top: 1px solid var(--line);
}
.final h2 { font-size: clamp(36px, 5.5vw, 68px); }
.final p { color: var(--ink-2); font-size: 18px; margin: 14px 0 30px; }
.final .sha { font: 400 12px/1.5 ui-monospace, Consolas, monospace; color: var(--ink-3); margin: 22px 0 0; overflow-wrap: anywhere; min-height: 1em; }

/* footer */
.foot { padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); display: grid; gap: 18px; color: var(--ink-3); font-size: 14px; max-width: 1240px; margin: 0 auto; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); color: var(--ink); }
.foot-brand img { border-radius: 50%; }
.foot p { max-width: 78ch; }
.foot a { color: var(--ink-2); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* ── install guide (/install/) ── */
.hero-slim { grid-template-columns: 1fr; min-height: 0; padding-bottom: clamp(16px, 3vw, 40px); }
.hero-slim .hero-copy { max-width: 820px; }
kbd { font: 500 .92em/1.3 var(--body); white-space: normal; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: .1em .45em; color: var(--ink); }

/* The code card: the one thing a Fire TV owner came here for. */
.codecard {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  margin: 32px 0 30px; padding: 24px 28px;
  background: var(--ground-deep); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255,82,82,.12), 0 30px 60px rgba(0,0,0,.35);
}
.codecard-label { display: block; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.codecard-code { display: block; font: 800 clamp(44px, 7vw, 76px)/1 var(--display); letter-spacing: .06em; color: var(--red); font-variant-numeric: tabular-nums; }
.codecard-note { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 12px; max-width: 46ch; }
.codecard-alt { border-left: 1px solid var(--line); padding-left: 24px; }
.codecard-alt strong { font: 650 clamp(18px, 2vw, 24px)/1.2 var(--display); letter-spacing: -.01em; }
@media (max-width: 640px) { .codecard { grid-template-columns: 1fr; } .codecard-alt { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }
.inline-code { color: var(--red); font-family: var(--display); font-weight: 800; letter-spacing: .06em; font-size: 1.15em; }

.guide .section-head .eyebrow { margin-bottom: 14px; }
.walk { list-style: none; counter-reset: w; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 860px; }
.walk li {
  counter-increment: w; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 22px 76px;
}
.walk li::before {
  content: counter(w); position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #1a0d0d; font: 700 16px/1 var(--display);
}
.walk b { display: block; font: 650 19px/1.25 var(--display); letter-spacing: -.01em; margin-bottom: 8px; }
.walk p { color: var(--ink-2); font-size: 15.5px; }
.walk p + p { margin-top: 8px; }
.walk .hint, .hint { color: var(--ink-3); font-size: 14.5px; border-left: 2px solid var(--line); padding-left: 12px; }
.walk.compact li { padding: 18px 20px 18px 62px; }
.walk.compact li::before { left: 16px; top: 16px; width: 30px; height: 30px; font-size: 14px; }
.walk.compact b { font-size: 17px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two h3 { margin-bottom: 14px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.section .hint { margin-top: 20px; }

.faq { max-width: 860px; margin: 0; display: grid; gap: 6px; }
.faq dt { font: 650 18px/1.3 var(--display); letter-spacing: -.01em; padding: 18px 0 8px; border-top: 1px solid var(--line); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; max-width: var(--measure); }
.final strong[data-code] { color: var(--red); font-family: var(--display); font-weight: 800; letter-spacing: .06em; }
/* until a Downloader code exists, the slots show the address at a size that fits */
.codecard-code.no-code { font-size: clamp(22px, 3.4vw, 40px); letter-spacing: -.01em; }
.inline-code.no-code, strong.no-code { letter-spacing: 0; font-size: 1em; }

/* ─── FAQ details (added 2026-10-09): plain <details> so the text is in the
   HTML for answer engines even when collapsed. The base `.faq` grid above
   (dt/dd era) still governs layout; these style the disclosure rows. ─── */
.faq { gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 22px;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: 19px; color: var(--ink);
  padding: 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-weight: 400; font-size: 26px; color: var(--ink-3); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: none; color: var(--red); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: var(--measure); }
.faq details a { color: var(--ink); }

/* ─── /vs/ comparison pages (added 2026-10-10, generated by
   scripts/build-vs-pages.py) ─── */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verdict > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.verdict h3 { margin-bottom: 16px; font-size: 21px; }
.verdict .verdict-us { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }
.verdict > div:not(.verdict-us) .checks li::before { content: '•'; color: var(--ink-3); }
@media (max-width: 760px) { .verdict { grid-template-columns: 1fr; } }

.prose > * { max-width: 860px; }
.prose p { color: var(--ink-2); font-size: 17px; max-width: var(--measure); }
.prose p + p { margin-top: 14px; }
.prose h3 { font-size: 24px; margin: 36px 0 14px; }
.prose b { color: var(--ink); }

.vs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .vs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vs-grid { grid-template-columns: 1fr; } }
.vs-card {
  display: grid; gap: 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 24px; transition: transform .2s ease, border-color .2s ease;
}
.vs-card b { font: 700 20px/1.15 var(--display); letter-spacing: -.02em; }
.vs-card span { color: var(--ink-2); font-size: 15px; }
.vs-card:hover, .vs-card:focus-visible { transform: translateY(-3px); border-color: var(--red); outline: none; }

.compare-wide { min-width: 1100px; font-size: 14.5px; }
.compare-wide tbody th { width: auto; min-width: 120px; }
.final .note a { color: var(--ink); }
