/* RadioPal marketing site. Colours and fonts follow brand/brand.json. */
@font-face { font-family: Figtree; src: url(/fonts/figtree.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url(/fonts/atkinson-hyperlegible-mono.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --navy: #0f1e36;
  --navy-2: #13284a;
  --navy-3: #244070;
  --amber: #ffb21e;
  --amber-dark: #cc8a00;
  --on-amber: #1b1300;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eaeef4;
  --text: #101a2b;
  --muted: #5a6678;
  --border: #d8dee8;
  --accent: #1f8fbb;
  --ok: #1a8139;
  --bad: #c0392b;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1322;
    --surface: #121d31;
    --surface-2: #19263e;
    --text: #e7edf6;
    --muted: #8f9db3;
    --border: #25344d;
    --accent: #40bde8;
    --ok: #3cc466;
    --bad: #ff7a6b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.tel { font-weight: 800; letter-spacing: 0.02em; color: var(--accent); }
.sub { color: var(--muted); max-width: 640px; margin: 12px 0 0; }

/* Header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255,255,255,.06); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; }
.wordmark { font: 800 1.25rem/1 var(--font); letter-spacing: -0.01em; }
.wordmark span { color: var(--amber); }
.top-link { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--amber); }
.top-link:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero-copy { padding-bottom: 80px; }
.eyebrow { color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); font-weight: 800; max-width: 15ch; text-wrap: balance; }
.lede { color: #c5d1e3; font-size: 1.15rem; max-width: 34ch; margin: 20px 0 32px; }
.hero .tel { color: #6fd0f2; }

.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; padding: 0; }
.perks li { font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,178,30,.45); color: var(--amber); }
.waitlist { max-width: 480px; }
.field { display: flex; gap: 8px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1rem var(--font); padding: 12px 12px; color: #101a2b; background: transparent; }
.field button, .button { border: 0; cursor: pointer; background: var(--amber); color: var(--on-amber); font: 800 .95rem var(--font); letter-spacing: .03em; text-transform: uppercase; padding: 0 22px; border-radius: 10px; box-shadow: 0 3px 0 var(--amber-dark); white-space: nowrap; }
.field button:hover, .button:hover { filter: brightness(1.05); }
.field button:active, .button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--amber-dark); }
.field button[disabled] { opacity: .7; cursor: default; }
.field:focus-within { box-shadow: 0 0 0 3px rgba(255,178,30,.55), 0 10px 30px rgba(0,0,0,.25); }
.fine { color: #8fa1bb; font-size: .85rem; margin: 10px 2px 0; }
.status { min-height: 1.5em; margin: 8px 2px 0; font-weight: 600; }
.status.ok { color: #5fd884; }
.status.bad { color: #ff9a8f; }
.hp, .sprite { position: absolute; left: -9999px; }
.waitlist.done .field { display: none; }

.hero-visual { position: relative; align-self: end; display: flex; justify-content: center; height: 540px; overflow: hidden; padding-top: 8px; }
.phone { margin: 0; border-radius: 34px; padding: 8px; background: #050b16; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.35); }
.phone img { border-radius: 27px; }
.phone-hero { width: 300px; position: relative; flex: none; align-self: flex-start; }
.scope { position: absolute; z-index: 2; left: 0; bottom: 56px; background: rgba(13, 26, 46, .92); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 40px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.scope-row { display: grid; gap: 2px; }
.scope-row + .scope-row { margin-top: 10px; }
.scope-label { color: #8fa1bb; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.scope-code { font: 700 1.35rem var(--mono); letter-spacing: .06em; }
.scope-tel { font-weight: 800; color: #6fd0f2; font-size: .95rem; letter-spacing: .02em; }

/* Callsign strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 32px 0; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.pairs li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.pairs .code { font-size: 1.2rem; }
.pairs .tel { font-size: .95rem; }
.pairs .who { color: var(--muted); font-size: .82rem; }

/* Features */
.features, .screens, .faq { padding: 88px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.grid article::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--amber); margin-bottom: 16px; }
.grid p { color: var(--muted); margin: 10px 0 0; font-size: .98rem; }

/* Screens */
.screens { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); gap: 28px; justify-content: center; margin-top: 44px; }

/* Free and the platform plan */
.plan { padding: 88px 0 0; }
.stages { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stages li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.stages li.now { border-color: var(--amber); }
.stages p { color: var(--muted); margin: 10px 0 0; font-size: .98rem; }
.stages .stage { margin: 0 0 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stages .stage span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--amber); color: var(--on-amber); }

/* Pal */
.pal-section { padding: 72px 0 0; }
.pal-row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.pal { width: 96px; height: 96px; flex: none; padding: 10px; border: 0; display: block; background: var(--navy-2); border-radius: 26px; cursor: pointer; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.pal:hover { transform: rotate(-4deg); }
.pal:active { transform: scale(.94); }
.pal svg { width: 100%; height: 100%; display: block; }
.pal:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.pal .eye { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(.1); } }
.bubble { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; max-width: 420px; }
.bubble::before { content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: translateY(-50%) rotate(45deg); }
.bubble-name { margin: 0; font-size: .75rem; font-weight: 800; color: var(--amber-dark); text-transform: uppercase; letter-spacing: .08em; }
.bubble-text { margin: 2px 0 0; }

/* CTA */
.cta { padding: 56px 0 88px; text-align: center; }
.cta .sub { margin: 12px auto 28px; }
.cta .sub a { color: var(--accent); }
.button { display: inline-block; padding: 16px 28px; text-decoration: none; }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }
details a { color: var(--accent); }

/* Footer */
.foot { background: var(--navy); color: #c5d1e3; font-size: .9rem; padding: 28px 0; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.muted { color: #8fa1bb; }

/* Privacy page */
.doc { padding: 64px 0 88px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); max-width: none; margin-bottom: 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc a { color: var(--accent); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-visual { height: 440px; }
  .phone-hero { width: 270px; margin-left: 160px; }
  .pairs { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .field { flex-direction: column; }
  .field button { padding: 14px; }
  .hero-visual { height: 380px; }
  .scope { left: 0; right: 0; bottom: 24px; margin: 0 auto; width: fit-content; }
  .phone-hero { margin-left: 0; width: 250px; }
  .pairs { grid-template-columns: repeat(2, 1fr); }
  .grid, .stages { grid-template-columns: 1fr; }
  .plan { padding-top: 64px; }
  .shots { grid-template-columns: repeat(3, 72%); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-right: -20px; padding-right: 20px; }
  .shots .phone { scroll-snap-align: center; }
  .pal-row { flex-direction: column; text-align: center; }
  .bubble::before { left: 50%; top: -8px; transform: translateX(-50%) rotate(135deg); }
  .features, .screens, .faq { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pal .eye { animation: none; }
  .pal { transition: none; }
}
