/* CastAway, usecastaway.com. One stylesheet, mobile first. */

/* Inter, self-hosted (Latin subset, weights 400 to 800 in one variable file, SIL OFL, see
   /assets/fonts/OFL.txt). Preloaded in every page's head. font-display: optional means the page is
   laid out once: in Inter if it's there in time, otherwise in the fallback below, never a late swap. */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2?v=1") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: optional;
}

/* Arial sized to Inter's widths per weight, so the fallback takes up the same room as Inter.
   Ratios measured against the same Inter file. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  font-weight: 100 549;
  size-adjust: 106%;
  ascent-override: 91.39%;
  descent-override: 22.76%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
  font-weight: 550 649;
  size-adjust: 101%;
  ascent-override: 95.92%;
  descent-override: 23.88%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
  font-weight: 650 749;
  size-adjust: 102%;
  ascent-override: 94.98%;
  descent-override: 23.65%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold");
  font-weight: 750 900;
  size-adjust: 103%;
  ascent-override: 94.05%;
  descent-override: 23.42%;
  line-gap-override: 0%;
}

:root {
  --bg: #0B1020;
  --navy: #0D162C;
  --surface: #111C33;
  --teal-900: #0B4157;
  --teal-700: #0E6A7A;
  --accent: #40E0D0;
  --accent-soft: #9FF3EA;
  --on-accent: #062129;
  --text: #F2F7FB;
  --muted: #B3C4D1;
  --quiet: #93A6B5;
  --line: rgba(242, 247, 251, 0.12);
  --line-strong: rgba(242, 247, 251, 0.2);
  --glass: rgba(255, 255, 255, 0.045);
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 64px;
  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --section-y: clamp(52px, 7vw, 96px);
}

@media (min-width: 700px) {
  :root { --gutter: 32px; --header-h: 72px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
}

img,
svg,
video,
picture { display: block; max-width: 100%; }

img { height: auto; }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; font-weight: 700; }

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

ul, ol { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-soft); color: var(--on-accent); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.34); color: var(--text); }

.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(11, 16, 32, 0.9);
  border-bottom-color: var(--line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(11, 16, 32, 0.74);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-height: 44px;
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand picture { flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand__name { font-size: 1.125rem; font-weight: 750; letter-spacing: -0.02em; }

.site-nav { display: none; }

@media (min-width: 820px) {
  .site-nav { display: block; }
  .site-nav ul { display: flex; gap: 4px; list-style: none; }
  .site-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
  .site-header .btn--sm { margin-left: 8px; }
}

/* Hero: the words on the left, the demo playing on the right. Stacked below 1024px. */

.hero {
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(70% 70% at 82% 40%, rgba(14, 106, 122, 0.3) 0%, rgba(14, 106, 122, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--bg) 100%);
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__title {
  font-size: clamp(2.375rem, 1.1rem + 4.8vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero__lede {
  margin-top: 16px;
  max-width: 34rem;
  color: #D6E2EA;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

.hero__badges { margin-top: 28px; }

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
  }
  .hero__title { font-size: clamp(2.75rem, 0.8rem + 3.4vw, 4.25rem); }
  .hero__lede { margin-top: 20px; }
  .hero__badges { margin-top: 32px; }
}

/* The demo player: 16:9, one radius, one soft shadow. The poster paints first. */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #070B16;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-wrap { position: relative; }

/* Phones: the controls sit in a row under the frame, so they never cover the demo.
   The row's height is kept from the first paint (html.js), so showing the buttons moves nothing. */
.player__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.js .player__bar { min-height: 44px; }

.player__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 11, 22, 0.8);
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.player__btn:hover { background: rgba(7, 11, 22, 0.94); border-color: rgba(255, 255, 255, 0.42); }
.player__btn:active { transform: translateY(1px); }
.player__btn:focus-visible { outline-offset: 2px; border-radius: 999px; }

.player__btn svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player__pause { width: 44px; padding: 0; }
.player__sound { margin-left: auto; }

.player__pause .icon-play,
.is-paused .player__pause .icon-pause,
.player__sound .icon-sound,
.player__sound[aria-pressed="true"] .icon-muted { display: none; }

.is-paused .player__pause .icon-play,
.player__sound[aria-pressed="true"] .icon-sound { display: block; }

/* Wider screens: the demo has room, so the controls overlay its bottom corners */
@media (min-width: 700px) {
  .player__bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    margin: 0;
    pointer-events: none;
  }
  .js .player__bar { min-height: 0; }
  .player__bar > * { pointer-events: auto; }
}

/* Reduced motion (or autoplay blocked): the poster, and a clear button to start it */
.player__start {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 20px 6px 6px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
}

.player__start:hover { background: var(--accent-soft); }
.player__start:focus-visible { outline-color: #fff; border-radius: 999px; }

.player__start-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding-left: 3px;
  border-radius: 50%;
  background: var(--on-accent);
  color: var(--accent);
}

/* Store badges: official artwork, scaled only. The Play badge is cropped to its visible edge
   (no transparent padding), so both sit at exactly the same height with nothing clipped. */

.badges {
  --badge-h: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.badges--lg { --badge-h: 48px; }

@media (min-width: 700px) {
  .badges { --badge-h: 48px; }
  .badges--lg { --badge-h: 56px; }
}

.badge {
  display: block;
  flex: none;
  line-height: 0;
  text-decoration: none;
}

.badge:active { transform: translateY(1px); }

.badge img {
  display: block;
  max-width: none;
  height: var(--badge-h);
}

.badge--apple img { width: calc(var(--badge-h) * 119.66407 / 40); }
.badge--play img { width: calc(var(--badge-h) * 564 / 168); }

.is-android .badges .badge--play { order: -1; }

/* iPhone while the app is in Apple's review: a status chip where the App Store badge goes, as tall as the
   badges so the row never jumps. It is not a link, so it is never focusable and never counts as a store click.
   It sits after the Google Play badge, except on an iPhone, where it comes first.
   python tools/set_ios_availability.py live puts the badge back (docs/web/ios-availability.md). */
.badge-soon {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 12px;
  min-height: var(--badge-h);
  margin: 0;
  padding: 6px 16px 6px 13px;
  border: 1px solid rgba(64, 224, 208, 0.45);
  border-radius: 14px;
  background: rgba(64, 224, 208, 0.1);
  line-height: 1.25;
  text-align: left;
  order: 1;
}

.is-ios .badges .badge-soon { order: 0; }

.badge-soon::before { grid-row: 1 / span 2; }

.badge-soon__main { display: block; color: var(--text); font-size: 0.875rem; font-weight: 650; }

@media (min-width: 700px) {
  .badge-soon__main { font-size: 0.9375rem; }
}
.badge-soon__sub { display: block; margin-top: 1px; color: var(--accent-soft); font-size: 0.8125rem; font-weight: 600; }

/* Trust strip: three plain facts between two hairlines */

.trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  list-style: none;
  border-block: 1px solid var(--line);
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.trust__item--wide {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--line);
}

.trust__icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) {
  .trust__list {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    column-gap: 40px;
  }
  .trust__item { padding: 20px 0; font-size: 1rem; }
  .trust__item--wide { grid-column: auto; border-bottom: 0; }
}

/* Sections */

.section { position: relative; padding-block: var(--section-y); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head--left { margin-left: 0; text-align: left; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head__lede {
  margin-top: 18px;
  text-wrap: balance;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* How it works */

.steps {
  display: grid;
  gap: 40px;
  list-style: none;
}

.step {
  --dw: 160px;
  display: grid;
  grid-template-columns: var(--dw) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

/* Button names are kept whole with non-breaking spaces; only if the text is enlarged far enough
   that one would not fit does it break, instead of pushing the page sideways */
.step__text { overflow-wrap: break-word; }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(64, 224, 208, 0.45);
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.step h3 { font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem); }
.step p { margin-top: 8px; color: var(--muted); }

@media (max-width: 379px) {
  .step { --dw: 136px; gap: 18px; }
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
  .step {
    --dw: clamp(180px, 22vw, 250px);
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    align-content: start;
    text-align: center;
    gap: 32px;
  }
  .step__text { max-width: 18rem; }
}

/* Drawn phone frame around a real screenshot. Inner radius = outer radius minus the bezel. */
.device {
  position: relative;
  flex: none;
  width: var(--dw);
  padding: calc(var(--dw) * 0.03);
  border-radius: calc(var(--dw) * 0.16);
  background: #04070E;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
}

.device img {
  width: 100%;
  border-radius: calc(var(--dw) * 0.13);
  background: var(--navy);
}

/* iPhone: the Dynamic Island */
.device::after {
  content: "";
  position: absolute;
  top: calc(var(--dw) * 0.055);
  left: 50%;
  width: calc(var(--dw) * 0.265);
  height: calc(var(--dw) * 0.078);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

/* Android: slimmer corners and a punch-hole camera */
.device--android {
  padding: calc(var(--dw) * 0.026);
  border-radius: calc(var(--dw) * 0.1);
}

.device--android img { border-radius: calc(var(--dw) * 0.074); }

.device--android::after {
  top: calc(var(--dw) * 0.044);
  width: calc(var(--dw) * 0.034);
  height: calc(var(--dw) * 0.034);
}

/* Features: two spotlights, then the rest as a plain two-column list */

.spots {
  display: grid;
  gap: clamp(56px, 8vw, 104px);
}

.spot {
  display: grid;
  gap: 24px;
  align-items: center;
}

.spot__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.spot__copy p {
  margin-top: 14px;
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* The phone rises into a quiet panel, cropped at the top so the part that matters
   (the pill, the list of videos) sits in view. */
.spot__media {
  --dw: 232px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 330px;
  padding-bottom: 28px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

@media (min-width: 900px) {
  .spot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 88px);
  }
  .spot--flip .spot__copy { order: 2; }
  .spot__media { --dw: 280px; height: 460px; padding-bottom: 40px; }
}

.more-features {
  display: grid;
  column-gap: 56px;
  margin-top: clamp(64px, 9vw, 112px);
  list-style: none;
}

.more-features li {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}

.more-features h3 {
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.more-features p {
  margin-top: 6px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .more-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* What you can cast */

.formats__inner { display: grid; gap: 36px; align-items: center; }

@media (min-width: 1024px) {
  .formats__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; }
}

.formats h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.formats__kinds {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 4px;
  color: var(--accent);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 650;
}

.formats__kinds li + li::before { content: "\00B7"; margin: 0 0.5em; color: var(--quiet); }

.formats__line {
  max-width: 34rem;
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}

.formats__note {
  max-width: 34rem;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9375rem;
}

.formats__note a { color: var(--accent-soft); }

.formats__visual { margin: 0; }
.formats__visual img { display: block; width: 100%; height: auto; }

/* Coming in the next update: audio under the heading (the formats section's type), then the smaller new
   bits as a row of short items between hairlines, like the list under Features */

.next__top { display: grid; row-gap: 28px; }

.next .section-head { margin-bottom: 0; }

.next__audio { max-width: 46rem; }

.next__kinds { margin-top: 0; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); }

.next__also { margin-top: clamp(48px, 7vw, 80px); }

.next__group {
  color: var(--quiet);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next__list {
  display: grid;
  column-gap: 32px;
  margin-top: 16px;
  list-style: none;
}

.next__list li {
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
}

.next__list h4 { margin: 0; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; text-wrap: balance; }

.next__list p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; line-height: 1.55; }

.next__plus {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.next__plus a { color: var(--accent-soft); }

@media (min-width: 640px) {
  .next__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .next__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .next__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.status-pill { width: fit-content; margin-bottom: 18px; }
.section-head:not(.section-head--left) .status-pill { margin-inline: auto; }

/* Free vs Plus: two plan panels, the free one on the page's own surface and Plus in the download
   panel's teal. Stacked on phones; side by side from 860px, where subgrid lines up the name, price,
   terms and list rows of both panels. The ticks are drawn with borders, so forced colours keep them. */

.pricing__plans {
  display: grid;
  gap: 16px;
}

.plan {
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plan--plus {
  border-color: rgba(64, 224, 208, 0.3);
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(64, 224, 208, 0.14) 0%, rgba(64, 224, 208, 0) 65%),
    linear-gradient(160deg, #0B4157 0%, #0D162C 78%);
}

.plan__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  min-height: 32px;
}

.plan__name { font-size: 1.1875rem; font-weight: 750; letter-spacing: -0.015em; }

/* "Coming in the next update": a pill with a lit dot, so it reads as a status, not a button.
   .status-pill is the same pill above a section heading. */
.plan__badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(64, 224, 208, 0.45);
  border-radius: 999px;
  background: rgba(64, 224, 208, 0.1);
  color: var(--accent-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.plan__badge::before,
.status-pill::before,
.badge-soon::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(64, 224, 208, 0.2);
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.plan__amount {
  font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

/* The currency sits small against the top of the figures */
.plan__cur {
  margin-right: 0.1em;
  font-size: 0.42em;
  font-weight: 750;
  letter-spacing: 0;
  vertical-align: 1em;
}

.plan__per { color: var(--muted); font-size: 1.0625rem; font-weight: 600; }

.plan__terms { margin-top: 12px; max-width: 30rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.plan__body { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

.plan--plus .plan__body { border-top-color: rgba(64, 224, 208, 0.22); }

.plan__group {
  color: var(--quiet);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan--plus .plan__group { color: var(--accent-soft); }

.plan__list + .plan__group { margin-top: 24px; }

.plan__list { margin-top: 12px; list-style: none; }

.plan__list li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  line-height: 1.5;
}

.plan__list li + li { margin-top: 10px; }

/* A soft disc, and a tick drawn with two borders, both centred on the first line of the item */
.plan__list li::before,
.plan__list li::after {
  content: "";
  position: absolute;
}

.plan__list li::before {
  left: 0;
  top: calc(0.75em - 10px);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(64, 224, 208, 0.14);
}

.plan__list li::after {
  left: 7px;
  top: calc(0.75em - 6px);
  width: 6px;
  height: 10px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan__aside { color: var(--muted); }

.plan__fine { margin-top: 18px; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }

.pricing__foot {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.pricing__note {
  max-width: 44rem;
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9375rem;
}

.pricing__note a { color: var(--accent-soft); }

.pricing__foot .btn { justify-self: start; }

@media (min-width: 860px) {
  .pricing__plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .pricing__foot { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 860px) {
    .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  }
}

/* Privacy band */

.privacy-band { padding-top: 0; }

.privacy-band__panel {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.privacy-band h2 { font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.375rem); }
.privacy-band p { margin-top: 12px; color: #CCDAE3; max-width: 44rem; }
.privacy-band .btn { justify-self: start; }

@media (min-width: 900px) {
  .privacy-band__panel { grid-template-columns: 1fr auto; gap: 40px; }
}

/* FAQ */

.faq__inner { max-width: 60rem; }

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

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}

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

.faq__q {
  text-wrap: balance;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq__item summary:hover .faq__q { color: var(--accent-soft); }

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--accent);
}

.faq__icon::after { transform: rotate(90deg); }

.faq__item[open] .faq__icon { transform: rotate(45deg); background: rgba(64, 224, 208, 0.12); border-color: rgba(64, 224, 208, 0.4); }

.faq__a { padding: 0 52px 26px 4px; color: #C9D7E1; }
.faq__a p { max-width: 40rem; }

@media (max-width: 599px) { .faq__a { padding-right: 4px; } }


/* Download */

.download { padding-top: 0; }

.download__panel {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0B4157 0%, #0D162C 72%);
  overflow: hidden;
  text-align: center;
}

.download__copy { display: flex; flex-direction: column; align-items: center; }

.download__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.65);
}

.download h2 { margin-top: 24px; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }

.download__sub { margin-top: 14px; text-wrap: balance; color: #D6E2EA; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }

.download .badges { justify-content: center; margin-top: 32px; }

@media (max-width: 419px) {
  .download__panel { padding-inline: 16px; }
  .badges--lg { --badge-h: 44px; }
}

.download__req { margin-top: 28px; max-width: 40rem; color: var(--muted); font-size: 0.9375rem; }

.download__qr { display: none; margin: 0; }

@media (min-width: 960px) {
  .download__panel { grid-template-columns: 1fr auto; text-align: left; gap: 56px; }
  .download__copy { align-items: flex-start; }
  .download .badges { justify-content: flex-start; }
  .download__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 220px;
  }
  .download__qr img {
    width: 188px;
    height: 188px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  }
  .download__qr figcaption { color: var(--muted); font-size: 0.875rem; text-align: center; line-height: 1.45; }
}

/* Footer */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  background: #080C19;
  font-size: 0.9375rem;
}

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

.site-footer__brand p { margin-top: 10px; color: var(--muted); }

/* "Made by" and the Spruik logo, sitting on the logo's word, not its megaphone */
.made-by {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  line-height: 1;
}

.site-footer__brand .made-by { margin-top: 16px; }

.made-by__link {
  display: block;
  flex: none;
  padding-block: 9px;
  margin-block: -9px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}

.made-by__link:hover { opacity: 0.8; }

.made-by__link img {
  width: auto;
  height: 30px;
  margin-bottom: -3px;
}

.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.site-footer__nav a { display: inline-block; padding-block: 10px; color: var(--text); text-decoration: none; font-weight: 550; }
.site-footer__nav a:hover { color: var(--accent); text-decoration: underline; }

.site-footer__legal {
  margin-top: 32px;
  color: var(--quiet);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.site-footer__legal::before {
  content: "";
  display: block;
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
}

.site-footer__legal p + p { margin-top: 8px; }

/* Sub pages */

.page {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 88px));
  padding-bottom: var(--section-y);
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(14, 106, 122, 0.45) 0%, rgba(14, 106, 122, 0) 70%),
    radial-gradient(40% 60% at 5% 10%, rgba(64, 224, 208, 0.1) 0%, rgba(64, 224, 208, 0) 70%);
  pointer-events: none;
}

.page__inner { max-width: 46rem; }

.crumbs { margin-bottom: 20px; font-size: 0.875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(179, 196, 209, 0.5); }
.crumbs a { display: inline-block; padding-block: 13px; margin-block: -13px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.page h1 { font-size: clamp(2.375rem, 1.6rem + 3.4vw, 3.75rem); letter-spacing: -0.035em; }

.page__meta { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

.page__lede { margin-top: 20px; color: #D6E2EA; font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; }

.toc {
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
}
.toc__title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.toc ul { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.toc a {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}
.toc a:hover { border-color: rgba(64, 224, 208, 0.5); color: var(--accent-soft); }

.prose { margin-top: 12px; }
.prose h2 {
  margin-top: 56px;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.025em;
}
.prose h2.prose__platform {
  padding-top: 40px;
  border-top: 1px solid var(--line);
  margin-top: 72px;
}
.prose h3 { margin-top: 32px; font-size: 1.1875rem; color: var(--accent-soft); }
.prose p,
.prose ul,
.prose ol { margin-top: 14px; color: #D3DFE8; }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent); }
.prose ol li::marker { font-weight: 700; }
.prose strong { color: var(--text); font-weight: 650; }
.prose .muted { color: var(--muted); font-size: 0.9375rem; }
.prose a { overflow-wrap: anywhere; }

.note {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid rgba(64, 224, 208, 0.28);
  border-radius: 16px;
  background: rgba(64, 224, 208, 0.07);
  color: #D3DFE8;
  font-size: 0.9875rem;
}

.contact-card {
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 65, 87, 0.45) 0%, rgba(13, 22, 44, 0.5) 100%);
}
.contact-card p { margin: 0; color: #D3DFE8; }
.contact-card p + p { margin-top: 10px; }

.test-video { margin-top: 12px; }
.test-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.test-video audio { display: block; width: 100%; }
.test-video__url { margin-top: 10px; color: var(--muted); font-size: 0.8125rem; overflow-wrap: anywhere; }

.page-cta {
  margin-top: 56px;
  padding: 28px;
  border: 1px solid rgba(64, 224, 208, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 100% at 100% 100%, rgba(64, 224, 208, 0.16) 0%, rgba(64, 224, 208, 0) 60%),
    linear-gradient(160deg, #0B4157 0%, #0D162C 75%);
}
.page-cta h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.page-cta p { margin-top: 10px; color: #D6E2EA; }
.page-cta .badges { margin-top: 22px; }

.not-found { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.not-found .page__lede { max-width: 32rem; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }


/* Forced colours (Windows High Contrast): the FAQ icon's bars are backgrounds, which forced colours
   would remove, so draw them in the system text colour */
@media (forced-colors: active) {
  .faq__icon::before,
  .faq__icon::after { forced-color-adjust: none; background: CanvasText; }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Test page: download block under the intro, QR code for computer visitors */
.page-get { margin-top: 24px; display: grid; gap: 14px; }
.page-get .badges { margin: 0; }
.page-get__hint { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.page-get .download__qr img { width: 112px; height: 112px; }
@media (min-width: 900px) {
  .page-get { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
  .page-get > .download__qr { grid-column: 2; grid-row: 1 / span 2; }
}
.page-cta--qr { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .page-cta--qr { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; }
  .page-cta--qr > .download__qr { grid-column: 2; grid-row: 1 / span 3; }
}

/* Phone banner: Google Play on Android; on iPhone, the App Store in browsers other than Safari once the app is live
   (Safari shows Apple's own Smart App Banner), or a "coming soon" note with no link while it is in review (site.js) */
.app-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(13, 22, 44, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.app-banner__icon { flex: none; width: 44px; height: 44px; border-radius: 11px; }
.app-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.app-banner__text strong { font-size: 0.9375rem; }
.app-banner__text span { color: var(--muted); font-size: 0.8125rem; }
.app-banner__get {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.app-banner__close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.app-banner__close:focus-visible, .app-banner__get:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.has-app-banner body { padding-bottom: 88px; }
