﻿/* Layout and typography for the receiver landing page. */
:root {
  --copy: #c2cdd6;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --space: clamp(42px, 5.4vw, 78px);
}

.wrap { max-width: 1280px; padding-inline: clamp(16px, 4vw, 56px); }
header { background: var(--bg); }
header .wrap { height: 72px; }
header nav { gap: clamp(16px, 2.4vw, 34px); }
header nav a { padding-block: 8px; }
main section { padding-block: var(--space); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
main h2 {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.3vw, 46px);
  letter-spacing: -.045em;
  line-height: 1.1;
  text-align: left;
  text-wrap: balance;
}
main h3 { font-size: 20px; line-height: 1.3; }
main img { display: block; width: 100%; height: auto; }
p, dd, li { color: var(--copy); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.section-head, .download-foot, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}
.section-head { justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-intro { margin: -12px 0 24px; }
.text-link { font-weight: 650; }
.text-link span { margin-inline-start: 4px; }

.receiver-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 82% 48%, rgb(56 189 248 / 11%), transparent 53%),
    linear-gradient(115deg, var(--bg) 34%, #14232c);
}
.receiver-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 76% 50%, transparent 0 77px, rgb(99 187 220 / 9%) 78px, transparent 79px 80px),
    linear-gradient(rgb(100 183 220 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(100 183 220 / 5%) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
  mask-image: linear-gradient(90deg, transparent 15%, black 80%);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(28px, 2.8vw, 44px) clamp(48px, 6.2vw, 92px);
}
.version-badge, .pill {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 100px;
  font: 600 12px/1.5 var(--mono);
}
.version-badge { border: 1px solid #35515a; color: #c3e4e5; background: #192a30; }
.signal-dot, .version-badge i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 9px rgb(34 197 94 / 35%);
}
h1 {
  margin: 20px 0;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 1.01;
  letter-spacing: -.055em;
}
h1 em { color: var(--accent); font-style: normal; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.hero-actions { margin-top: 26px; }
.hero-actions .primary { padding: 14px 23px; box-shadow: 0 5px 24px rgb(56 189 248 / 14%); }
.hero-actions .primary span { margin-left: 16px; }
.platforms { margin-top: 18px; color: var(--muted); font-size: 14px; }
.console {
  padding: 0 10px;
  border: 1px solid #435967;
  border-radius: 16px;
  background: linear-gradient(150deg, #243541, #182129);
  box-shadow: 0 28px 50px -16px rgb(0 0 0 / 65%), 0 0 75px rgb(56 189 248 / 14%);
}
.console figcaption, .dial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 4px;
  color: #aec6d1;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.console figcaption > :first-child { color: var(--fg); }
.console img { border: 1px solid #40515c; border-radius: 7px; }
.dial { font-size: 10px; padding-block: 9px; }
.dial i {
  flex: 1;
  height: 6px;
  background: repeating-linear-gradient(90deg, #60808e 0 1px, transparent 1px 7px);
}
.facts, .mode-grid, .scanner-grid, .metrics, .pair-grid, .spec-grid, .downloads { display: grid; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts {
  grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}
.facts li { padding-inline: 20px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts strong { display: block; color: var(--fg); font-size: 19px; letter-spacing: -.025em; }
.mode-grid, .scanner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-grid, .pair-grid, .spec-grid { gap: clamp(14px, 1.6vw, 24px); }
.media-card, .spec-card, .scanner-grid > div, .metrics > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.media-card { overflow: hidden; box-shadow: 0 10px 24px rgb(0 0 0 / 18%); }
.media-card img { background: #11171d; border-bottom: 1px solid var(--line); }
.mode-grid img { aspect-ratio: 1.95; object-fit: contain; }
.media-card > div, .media-card figcaption { padding: clamp(18px, 2vw, 26px); }
.media-card p { margin-top: 12px; }
.pill { text-transform: uppercase; letter-spacing: .12em; }
.pill span { margin-right: 4px; }
.listen { color: #a0e3ff; background: #173e52; }
.map { color: #9de9b8; background: #1a392d; }
.messages { color: #ffda96; background: #433521; }
.signup-section { border: 0; padding-top: 0; }
.signup-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  text-align: left;
  margin: 0;
  box-shadow: 0 0 60px rgba(56, 189, 248, .12);
  gap: 28px;
  padding: clamp(22px, 3.4vw, 44px);
  border: 1px solid #344b54;
  border-radius: 16px;
  background: linear-gradient(110deg, #1e3037, var(--panel) 72%);
}
.signup-band h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.signup-band h2 em { color: var(--accent); font-style: normal; }
.signup-band p { color: var(--copy); font-size: 16px; }
.highlights, .included { margin: 0; padding-left: 1.3em; }
.highlights li + li, .tv-install li + li { margin-top: 8px; }
.highlights li::marker, .included li::marker, .tv-install li::marker { color: var(--accent); }
.highlights strong, .highlights b, .tv-install strong { color: var(--fg); }
.scanner-grid { gap: 14px; }
.scanner-grid > div, .metrics > div { padding: clamp(18px, 2vw, 28px); }
.scanner-grid dt, .spec-card dt { margin-bottom: 4px; font-weight: 650; }
.scanner-grid dt { color: #cae4ef; }
.driver-section, #specs { background: linear-gradient(140deg, #19232c, var(--bg) 76%); }
.metrics { gap: 12px; }
.metrics dt {
  margin-bottom: 10px;
  color: var(--accent);
  font: 550 clamp(36px, 3.5vw, 52px)/1.12 var(--mono);
  letter-spacing: -.07em;
}
.metrics small { font-size: .48em; letter-spacing: -.03em; }
.pair-grid, .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair-grid strong { font: 650 13px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #a9e2f8; }
.pair-grid p { margin-top: 4px; }
.spec-card { padding: clamp(20px, 2.5vw, 32px); }
.spec-card h3 { margin-bottom: 16px; color: #a8def4; letter-spacing: -.02em; }
.spec-card dt { padding-top: 14px; border-top: 1px solid var(--line); }
.spec-card dd + dt { margin-top: 14px; }

#download { border: 0; }
.download-panel {
  padding: clamp(20px, 4vw, 52px);
  border: 1px solid #446d80;
  border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0, #22495c, transparent 62%), linear-gradient(130deg, #1b3441, #18232b);
  box-shadow: 0 18px 44px rgb(0 0 0 / 20%);
}
.download-panel h2 { font-size: clamp(38px, 4.4vw, 64px); }
.download-panel .section-head { margin-bottom: 18px; }
.included li { padding-left: 3px; }
.downloads { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-block: 26px; }
.downloads a {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 10px;
  background: #b2e7fc;
  color: #102e3b;
  font-weight: 700;
  line-height: 1.35;
}
.downloads a:nth-last-child(-n+2) { grid-column: span 3; }
.downloads .android-button { background: #a4e8c0; }
.downloads small { display: block; font-size: 13px; margin-top: 4px; font-weight: 500; }
.download-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 19px;
}
.downloads a:hover { filter: brightness(1.07); text-decoration: none; }
.tv-install { padding: clamp(16px, 2vw, 26px); border: 1px solid #3a525e; border-radius: 12px; background: #19272f; }
.tv-install ol { margin: 14px 0; padding-left: 1.5em; }
.tv-install li { padding-left: 4px; }
.tv-install p { padding-top: 12px; border-top: 1px solid #344751; }
.tv-install strong { margin-right: 5px; }
.download-foot { justify-content: space-between; margin-top: 20px; }
.download-foot .ghost { border-color: #567481; }
#developer, #support, #developer h2, #support h2 { text-align: center; }
#developer .sub, #support .sub { margin-bottom: 22px; }
#developer b { color: var(--fg); }
#support .small { margin-top: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .downloads a, .hero-actions .btn { transition: transform .16s ease, filter .16s ease; }
  @media (hover: hover) {
    .downloads a:hover, .hero-actions .btn:hover { transform: translateY(-2px); }
  }
}

@media (max-width: 920px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .scanner-grid, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .wrap { padding-inline: 16px; }
  header .wrap { height: auto; gap: 8px; flex-wrap: wrap; padding-block: 12px 4px; }
  header nav { width: 100%; justify-content: space-between; gap: 10px; }
  .hero-layout { padding-block: 20px 36px; }
  main h2 { margin-bottom: 22px; }
  .facts, .mode-grid, .scanner-grid, .metrics, .pair-grid, .spec-grid, .signup-band, .downloads { grid-template-columns: minmax(0, 1fr); }
  .facts { padding-block: 10px; gap: 0; }
  .facts li { padding: 10px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
  .signup-band { gap: 18px; }
  .downloads a, .downloads a:nth-last-child(-n+2) { grid-column: auto; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .version-badge { font-size: 11px; }
  .console figcaption { font-size: 10px; }
}

/* Email sign-up forms */
.signup { text-align: left; border-color: #3a6a7c; }
.signup .updates .row { margin-top: 12px; }
.signup .updates input[type=email] { font-size: 16px; padding: 15px 16px; background: #10151a; }
.signup .updates button { white-space: nowrap; padding-inline: 22px; }
.signup .small a { color: var(--accent); }
.signup-title { margin: 0; color: var(--fg) !important; font-weight: 650; font-size: 17px; }
.signup-hero { margin-top: 24px; padding: 18px 20px; background: rgba(23, 31, 38, .85); }
.signup-download { margin-top: 24px; padding: 22px 24px; background: #15232a; }
.legal { margin-top: 14px; text-align: right; }
@media (max-width: 680px) { .legal { text-align: left; } .signup-hero, .signup-download { padding: 18px 16px; } }

/* Why it's different */
.diff-section { padding-bottom: 0; }
.diff-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 2fr);
  gap: 16px;
}
.diff-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 2.5vw, 38px);
  padding-bottom: 230px;
  border: 1px solid #344c59;
  border-radius: 20px;
  background: linear-gradient(155deg, #203945, #16262e 52%, #111e25);
}
.diff-head .diff-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #9de2fa;
  font: 650 12px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.diff-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.diff-head h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
}
.diff-head h2 em { color: #82d9ff; font-style: normal; }
.diff-head p { color: #d0dde4; line-height: 1.65; }

/* A radar face clipped by the edge of the intro panel. */
.diff-radar {
  position: absolute;
  z-index: -1;
  left: -19%;
  bottom: -68px;
  width: 112%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  color: rgb(111 201 229 / 24%);
  background:
    radial-gradient(circle at 64% 29%, #a2ebd4 0 2px, #72cbb24a 3px 5px, transparent 6px),
    radial-gradient(circle at 37% 60%, #6ebcae 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 49.8%, currentColor 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, currentColor 50%, transparent 50.2%),
    repeating-radial-gradient(closest-side, transparent 0 calc(25% - 1px), currentColor 25%),
    conic-gradient(from -30deg, transparent, #44cbb22b 64deg, #72ddbd77 65deg, transparent 65.5deg);
}
.diff-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-conic-gradient(currentColor 0 .5deg, transparent .5deg 6deg);
  mask-image: radial-gradient(closest-side, transparent 96%, black 96%);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.diff-tile {
  --diff-tone: #85d5fb;
  padding: clamp(20px, 1.65vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--diff-tone) 7%, var(--panel)), var(--panel) 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}
.diff-channels { border-color: #395462; }
.diff-messages, .diff-layers { --diff-tone: #c3b4f3; }
.diff-driver { --diff-tone: #efc483; }
.diff-voice { --diff-tone: #8cdabb; }
.diff-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.diff-icon {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--diff-tone) 32%, var(--panel));
  border-radius: 13px;
  color: var(--diff-tone);
  background: linear-gradient(140deg, color-mix(in srgb, var(--diff-tone) 17%, var(--panel)), var(--panel));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}
.diff-icon svg { width: 24px; height: 24px; }
.diff-label h3 {
  color: var(--fg);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.24;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.diff-tile p { color: var(--copy); font-size: 16px; line-height: 1.6; }
.diff-proof {
  padding: 0 .42em;
  border: 1px solid color-mix(in srgb, var(--diff-tone) 25%, var(--panel));
  border-radius: 99px;
  color: var(--diff-tone);
  background: rgb(0 0 0 / 13%);
  font: 600 .83em/1.4 var(--mono);
  white-space: nowrap;
}
@media (hover: hover) {
  .diff-tile:hover { border-color: color-mix(in srgb, var(--diff-tone) 50%, var(--line)); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .diff-tile { transition: transform .18s ease, border-color .18s ease; }
  .diff-tile:hover { transform: translateY(-2px); }
}
@media (max-width: 980px) {
  .diff-layout { grid-template-columns: minmax(0, 1fr); }
  .diff-head { padding: 26px; }
  .diff-radar { left: auto; right: -65px; bottom: auto; top: -58px; width: 300px; opacity: .3; }
}
@media (max-width: 640px) {
  .diff-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .diff-layout { gap: 10px; }
  .diff-head { padding: 24px 20px; }
  .diff-head .diff-kicker { margin-bottom: 14px; }
  .diff-head h2 { margin-bottom: 12px; }
  .diff-radar { right: -146px; }
}

/* Language switcher */
header .language-switcher {
  flex: none;
  align-items: center;
  gap: 0;
  width: fit-content;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.language-switcher a {
  padding: 6px 9px;
  border-radius: inherit;
  white-space: nowrap;
}
.language-switcher a[aria-current="page"] {
  background: #17384a;
  color: #8cdbff;
  font-weight: 700;
}
@media (max-width: 680px) {
  header .language-switcher { margin: 0 auto 8px; }
}

/* Phones: compact header, sticky download bar, bigger tap areas */
.m-dl-bar { display: none; }
@media (max-width: 680px) {
  header .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 10px; padding-block: 12px; }
  header .name { font-size: 16px; }
  header nav:not(.language-switcher) { display: none; }
  header .language-switcher { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin: 0; padding: 3px; }
  header .language-switcher span { display: none; }
  header .language-switcher a { display: grid; place-items: center; min-height: 40px; padding: 0 4px; font-size: 14px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .facts li, .facts li + li { padding: 12px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:nth-child(-n+2) { border-top: 0; }
  .facts strong { font-size: 17px; }
  .diff { padding: 20px 16px; border-radius: 16px; }
  .diff-list li { padding: 14px; gap: 12px; }
  .diff-list li > span { width: 36px; height: 36px; font-size: 18px; }
  .text-link, footer nav a, .signup .small a, #support .small a, .driver-section a { display: inline-block; padding-block: 11px; }
  .hero-actions { gap: 4px 18px; }
  .hero-actions .primary { flex: 1 1 100%; justify-content: center; text-align: center; padding-block: 16px; font-size: 17px; }
  body.has-dl-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .m-dl-bar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(17, 22, 28, .94); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform .22s ease;
  }
  .m-dl-bar.show { transform: none; }
  .m-dl-bar .btn { display: flex; justify-content: center; width: 100%; min-height: 52px; align-items: center; font-size: 17px; }
}
@media (max-width: 680px) and (prefers-reduced-motion: reduce) { .m-dl-bar { transition: none; } }

/* Hero bits-and-bytes background */
.receiver-hero > .hero-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.receiver-hero > .hero-layout {
  position: relative;
  z-index: 1;
}

.m-dl-bar .btn span { margin-left: 12px; }

/* Phones: screenshot frame labels a touch larger */
@media (max-width: 680px) { .console figcaption, .dial span { font-size: 11px; } }
