/* Sputnik Radio — shared styles for the landing, support, and privacy pages.
   Colors come from the app icon: the navy background, the planet, the
   radio-wave blue, and the app's accent. Dark only, on purpose — it's the
   icon's night sky. */

:root {
  --space: #050d1a;
  --navy: #07172d;
  --planet: #16375b;
  --wave: #4f8cff;
  --accent: #3bc9f0;
  --silver: #f7f8f2;
  --text: #edf2fa;
  --muted: #9fb6d9;
  --faint: #6f86a8;
  --line: rgba(159, 182, 217, 0.16);
  --card: rgba(22, 55, 91, 0.28);
  --card-strong: rgba(22, 55, 91, 0.5);
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--space);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7fdcf6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--navy);
  padding: 8px 14px;
  border-radius: 10px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 3;
  background: var(--navy);
}

/* On the landing page the header floats over the hero's sky. */
.site-header.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 600 18px/1 var(--font-display);
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--card);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--muted);
}

.fine {
  font-size: 14px;
  color: var(--faint);
}

/* ---------- Landing: hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(79, 140, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--space) 100%);
  padding-top: 72px;
  padding-bottom: clamp(48px, 8vw, 96px);
}

/* The icon's planet: a big curve rising from the lower left. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1500px;
  height: 1500px;
  left: -900px;
  bottom: -1180px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 30%, #1d4675 0%, var(--planet) 45%, #0c2342 100%);
  box-shadow: 0 0 120px rgba(79, 140, 255, 0.18);
}

.waves {
  position: absolute;
  z-index: -1;
  right: -160px;
  top: 40px;
  width: 760px;
  height: 760px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(24px, 5vw, 64px);
}

.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.hero-copy .lede {
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 6px;
}

.badge img {
  height: 54px;
  width: auto;
}

.cta .fine {
  max-width: 18em;
  line-height: 1.4;
}

/* Two phones, overlapping. */
.phones {
  position: relative;
  height: clamp(460px, 56vw, 640px);
}

/* Every dimension follows --w, the phone's width: percentage padding would
   follow the container instead, leaving the screen area narrower than an
   iPhone screen, so the capture got its sides cropped. */
.phone {
  --w: clamp(210px, 25vw, 290px);
  position: absolute;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #3b4c63, #141c28 40%, #0c121b);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 20px 40px -20px rgba(79, 140, 255, 0.35);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * 0.131);
  background: #fff;
}

.phone.front {
  right: 4%;
  top: 0;
  z-index: 2;
}

.phone.back {
  right: 46%;
  top: 11%;
  transform: rotate(-6deg);
  filter: brightness(0.82);
}

/* ---------- Landing: sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 40em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Text beside a picture, for CarPlay and the bigger screens. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split .copy {
  display: grid;
  gap: 18px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.checks strong {
  color: var(--text);
  font-weight: 600;
}

/* A spoken Siri request, set as a quote card. */
.siri {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(79, 140, 255, 0.35), transparent 60%),
    radial-gradient(80% 120% at 100% 100%, rgba(59, 201, 240, 0.22), transparent 60%),
    var(--card-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
}

.siri blockquote {
  margin: 0;
  font: 600 clamp(24px, 3vw, 34px)/1.2 var(--font-display);
  letter-spacing: -0.015em;
}

.siri figcaption {
  color: var(--muted);
}

.siri .divider {
  height: 1px;
  background: var(--line);
}

.devices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.device {
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.device svg {
  width: 44px;
  height: 44px;
  color: var(--silver);
  opacity: 0.9;
}

.device span {
  font-size: 15px;
  color: var(--muted);
}

.closing {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.closing img.icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 24px 60px -20px rgba(79, 140, 255, 0.55);
}

.closing .cta {
  justify-content: center;
}

/* ---------- Document pages (support, privacy) ---------- */

.doc-hero {
  background: linear-gradient(180deg, var(--navy), var(--space));
  padding: clamp(32px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.doc-hero .wrap {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.doc {
  max-width: 760px;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.doc h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 48px 0 16px;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.doc p,
.doc ul {
  color: var(--muted);
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 8px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc code {
  font: 0.92em ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--card);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  color: var(--text);
}

.callout {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--card-strong);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.contact h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.contact p {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #04202b;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: #7fdcf6;
  color: #04202b;
}

.doc .toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.doc .toc li {
  margin: 0;
}

.doc .toc a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.doc .toc a:hover {
  color: var(--text);
}

.qa {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}

.qa:last-child {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  position: relative;
  font-weight: 600;
  color: var(--text);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.qa[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.qa > div {
  padding: 0 0 12px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 14px;
  color: var(--faint);
}

.site-footer .wrap {
  display: grid;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .phones {
    height: clamp(420px, 110vw, 560px);
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .phone {
    --w: clamp(190px, 46vw, 260px);
  }

  .phone.front {
    right: 2%;
  }

  .phone.back {
    right: auto;
    left: 2%;
  }

  .waves {
    width: 520px;
    height: 520px;
    right: -220px;
    top: 280px;
  }
}

@media (max-width: 520px) {
  .site-nav a {
    padding: 8px 9px;
  }

  .brand span {
    display: none;
  }

  .devices {
    grid-template-columns: minmax(0, 1fr);
  }

  .device {
    grid-template-columns: auto 1fr;
    text-align: left;
    justify-items: start;
    align-items: center;
    column-gap: 16px;
  }

  .device svg {
    grid-row: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qa summary::after {
    transition: none;
  }
}
