/* California Speed Cameras: speedcam.cc
   One stylesheet for every page. System fonts only; no external resources. */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #636366;
  --border: rgba(0, 0, 0, 0.09);
  --accent: #4338d8;
  --accent-hover: #2f24b8;
  --accent-soft: rgba(84, 76, 245, 0.09);
  --focus: #4f46e5;
  --nav-bg: rgba(255, 255, 255, 0.78);

  /* Icon gradient: periwinkle, indigo, violet. */
  --grad-text: linear-gradient(100deg, #5b67f5 0%, #4b3ade 50%, #7a35c9 100%);
  --grad-brand: linear-gradient(160deg, #7e8bff 0%, #5546e6 42%, #4a2fb8 74%, #5f2aa3 100%);
  --stage: linear-gradient(160deg, #eef0ff 0%, #e8e4ff 55%, #f1e6fb 100%);
  --glow: radial-gradient(60% 55% at 50% 0%, rgba(111, 124, 255, 0.2), rgba(111, 124, 255, 0) 70%);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(40, 30, 120, 0.08);
  --shadow-device: 0 28px 60px rgba(30, 20, 110, 0.28);
  --shadow-icon: 0 18px 40px rgba(70, 50, 210, 0.3), 0 4px 10px rgba(70, 50, 210, 0.18);

  --radius: 22px;
  --radius-lg: 32px;
  --max: 1080px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 2.75rem + 5vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #0e0e11;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --border: rgba(255, 255, 255, 0.13);
    --accent: #a5adff;
    --accent-hover: #c5caff;
    --accent-soft: rgba(140, 150, 255, 0.14);
    --focus: #a5adff;
    --nav-bg: rgba(22, 22, 24, 0.78);

    --grad-text: linear-gradient(100deg, #aab4ff 0%, #9384ff 50%, #c99bff 100%);
    --stage: linear-gradient(160deg, #15183a 0%, #19133f 55%, #221338 100%);
    --glow: radial-gradient(60% 55% at 50% 0%, rgba(111, 124, 255, 0.24), rgba(111, 124, 255, 0) 70%);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-device: 0 28px 60px rgba(0, 0, 0, 0.55);
    --shadow-icon: 0 18px 46px rgba(90, 80, 255, 0.35), 0 4px 10px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.53;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

/* <picture> only picks the file; the <img> inside is what gets laid out. */
picture {
  display: contents;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

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

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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Links inside running text are underlined, so they are not told apart by color alone. */
.prose p a,
.prose li a,
.lead a,
.muted a,
.callout a,
.footer-small a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.prose p a:hover,
.prose li a:hover,
.lead a:hover,
.muted a:hover,
.callout a:hover,
.footer-small a:hover {
  text-decoration-thickness: 2px;
}

.footer-small a {
  color: inherit;
}

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

::selection {
  background: rgba(99, 102, 241, 0.25);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--bg);
  text-decoration: none;
}

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

.container--narrow {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

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

.brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 22.37%;
  flex: none;
}

.brand-short {
  display: none;
}

.nav-links {
  display: flex;
  gap: clamp(0.85rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  color: var(--text-2);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  font-weight: 600;
}

@media (max-width: 26rem) {
  .brand-long {
    display: none;
  }

  .brand-short {
    display: inline;
  }
}

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

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (forced-colors: active) {
  .grad {
    background: none;
    color: CanvasText;
  }
}

.display {
  font-size: clamp(2.5rem, 1.55rem + 4.6vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.headline {
  font-size: clamp(2rem, 1.4rem + 2.9vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead {
  color: var(--text-2);
  font-size: clamp(1.1875rem, 1.02rem + 0.75vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

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

.muted {
  color: var(--text-2);
}

/* ---------- Buttons and pills ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
}

.button:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  .button,
  .button:hover {
    color: #0b0b1a;
  }
}

.button--quiet {
  background: var(--accent-soft);
  color: var(--accent);
}

.button--quiet:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

@media (prefers-color-scheme: dark) {
  .button--quiet,
  .button--quiet:hover {
    color: var(--accent);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ff9f0a;
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.22);
  flex: none;
}

.arrow-link {
  font-weight: 500;
}

.arrow-link::after {
  content: " \203A";
}

/* ---------- Sections ---------- */

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

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem);
  text-align: center;
}

.section-head .lead {
  margin-top: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
  text-align: center;
  background: var(--glow);
}

.hero-icon {
  width: clamp(6.5rem, 5rem + 6vw, 9rem);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 1.75rem;
  border-radius: 22.37%;
  box-shadow: var(--shadow-icon);
}

.hero .eyebrow {
  margin-bottom: 0.5rem;
}

.hero .lead {
  max-width: 38rem;
  margin: 1.25rem auto 0;
}

.hero-promise {
  margin: 1rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.hero-note {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.hero-status {
  margin-top: 1.75rem;
}

.hero .actions {
  margin-top: 1.5rem;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(3rem, 2rem + 4vw, 4.5rem);
  padding: clamp(2rem, 1.25rem + 5vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  overflow: hidden;
  overflow: clip;
  text-align: left;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 15% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(255, 159, 10, 0.18), rgba(255, 159, 10, 0) 70%);
}

.stage-dial {
  position: absolute;
  z-index: -1;
  right: -6rem;
  bottom: -9rem;
  width: 26rem;
  max-width: none;
  opacity: 0.22;
  pointer-events: none;
}

.stage-caption {
  margin-top: 0.4rem;
  color: #fff;
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 54rem) {
  .stage-dial {
    right: -11rem;
    bottom: -13rem;
    opacity: 0.12;
  }
}

@media (max-width: 30rem) {
  .stage-dial {
    display: none;
  }
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 1.5rem + 3vw, 4.5rem);
  align-items: center;
}

.feature + .feature {
  margin-top: var(--section);
}

.feature-copy {
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
}

.feature-copy .lead {
  margin-top: 1.1rem;
}

.feature-copy .headline + .lead {
  margin-top: 1.1rem;
}

.checks {
  display: grid;
  gap: 0.8rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.checks svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.feature-copy .arrow-link {
  display: inline-block;
  margin-top: 1.5rem;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: 1.25rem;
  min-height: 22rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem) clamp(1rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--stage);
  overflow: hidden;
  overflow: clip;
}

@media (min-width: 54rem) {
  .feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature--reverse .feature-media {
    order: -1;
  }

  .stage {
    min-height: 30rem;
  }
}

/* ---------- Device mockups (always dark, like the real surfaces) ---------- */

.mock {
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.mock svg {
  display: block;
}

/* Dynamic Island, expanded */
.island {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 25rem);
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border-radius: 2.4rem;
  background: #000;
  color: #fff;
  box-shadow: 0 22px 50px rgba(15, 8, 70, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.island-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffd34d, #ff8a1f);
  color: #1b1d5e;
}

.island-badge svg {
  width: 1.5rem;
  height: 1.5rem;
}

.island-body,
.la-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.22;
}

.island-kicker {
  color: #ffb340;
  font-size: 0.75rem;
  font-weight: 600;
}

.island-street,
.la-street {
  overflow: hidden;
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.island-cross,
.la-cross {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.island-dist,
.la-dist {
  flex: none;
  font-family: var(--font-rounded);
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.island-dist small,
.la-dist small {
  margin-left: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* Notification banner */
.notif {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(100%, 25rem);
  padding: 0.8rem 1rem 0.85rem 0.8rem;
  border-radius: 1.4rem;
  background: rgba(250, 250, 252, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  color: #1d1d1f;
  box-shadow: 0 16px 40px rgba(20, 10, 80, 0.25);
}

.notif img {
  flex: none;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 22.37%;
}

.notif-body {
  min-width: 0;
  flex: 1;
}

.notif-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.notif-time {
  flex: none;
  color: #545458;
  font-size: 0.8125rem;
}

.notif-text {
  margin-top: 0.1rem;
  font-size: 0.875rem;
  line-height: 1.32;
}

@media (prefers-color-scheme: dark) {
  .notif {
    background: rgba(36, 36, 40, 0.82);
    color: #f5f5f7;
  }

  .notif-time {
    color: #a1a1a6;
  }
}

/* Phone in Drive mode */
.phone {
  width: min(100%, 16.5rem);
  aspect-ratio: 9 / 19;
  padding: 0.55rem;
  border-radius: 2.9rem;
  background: #111114;
  box-shadow: 0 0 0 1.5px #3a3a40, var(--shadow-device);
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.7rem 1rem 1rem;
  border-radius: 2.4rem;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.phone-island {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 6.9rem;
  height: 1.85rem;
  padding: 0 0.6rem;
  border-radius: 1rem;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  color: #ffb340;
  font-size: 0.6875rem;
  font-weight: 700;
}

.phone-island svg {
  width: 0.95rem;
  height: 0.95rem;
}

.drive-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.drive-top span:first-child {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.drive-end {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 700;
}

.drive-alert {
  margin-top: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.9rem;
  background: #ffd60a;
  color: #000;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
}

.drive-alert span {
  display: block;
  font-weight: 500;
}

.drive-speed {
  margin-top: auto;
  font-family: var(--font-rounded);
  font-size: 4.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.drive-speed small {
  margin-left: 0.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.drive-next {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.drive-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  font-weight: 600;
}

.drive-dist {
  font-family: var(--font-rounded);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.drive-street {
  font-size: 1.0625rem;
  font-weight: 700;
}

.drive-cross {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
}

.drive-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  line-height: 1.3;
}

/* Lock Screen Live Activity */
.live-activity {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 25rem);
  padding: 0.95rem 1.1rem;
  border-radius: 1.6rem;
  background: rgba(16, 16, 22, 0.88);
  color: #fff;
  box-shadow: 0 16px 40px rgba(20, 10, 80, 0.3);
}

.la-kicker {
  color: #ffb340;
  font-size: 0.75rem;
  font-weight: 600;
}

.island-kicker,
.la-kicker {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 24rem) {
  .island,
  .live-activity {
    gap: 0.6rem;
    padding: 0.7rem 0.9rem 0.7rem 0.7rem;
  }

  .island-badge {
    width: 2.1rem;
    height: 2.1rem;
  }

  .island-badge svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .island-street,
  .la-street {
    font-size: 0.9375rem;
  }

  .island-dist,
  .la-dist {
    font-size: 1.375rem;
  }

  .island-cross,
  .la-cross {
    white-space: normal;
    text-overflow: clip;
  }
}

.stage-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.5rem;
  width: 100%;
}

/* Apple Watch */
.watch {
  position: relative;
  width: 11.5rem;
  max-width: 100%;
  aspect-ratio: 46 / 55;
  padding: 0.7rem;
  border-radius: 3.1rem;
  background: linear-gradient(160deg, #3a3a42, #17171b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--shadow-device);
}

.watch::after {
  content: "";
  position: absolute;
  top: 28%;
  right: -0.45rem;
  width: 0.55rem;
  height: 1.9rem;
  border-radius: 0.3rem;
  background: linear-gradient(90deg, #2b2b31, #4a4a52);
}

.watch-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0.9rem 0.85rem;
  border-radius: 2.5rem;
  background: #000;
  color: #fff;
  line-height: 1.2;
}

.watch-kicker {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #ffb340;
  font-size: 0.75rem;
  font-weight: 600;
}

.watch-kicker svg {
  width: 0.85rem;
  height: 0.85rem;
}

.watch-dist {
  margin-top: 0.15rem;
  font-family: var(--font-rounded);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.watch-street {
  font-size: 0.9375rem;
  font-weight: 700;
}

.watch-cross {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
}

.tap-ring {
  position: absolute;
  inset: -0.9rem;
  border: 2px solid rgba(124, 136, 255, 0.45);
  border-radius: 3.9rem;
  pointer-events: none;
}

.tap-ring + .tap-ring {
  inset: -1.9rem;
  border-color: rgba(124, 136, 255, 0.22);
  border-radius: 4.7rem;
}

@media (prefers-reduced-motion: no-preference) {
  .tap-ring {
    animation: tap 2.8s ease-out infinite;
  }

  .tap-ring + .tap-ring {
    animation-delay: 0.25s;
  }

  @keyframes tap {
    0%,
    55%,
    100% {
      opacity: 0;
      transform: scale(0.96);
    }
    62% {
      opacity: 1;
      transform: scale(1);
    }
    85% {
      opacity: 0;
      transform: scale(1.04);
    }
  }
}

/* Settings-style data card */
.settings-card {
  width: min(100%, 22rem);
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 0.9375rem;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .settings-card {
    box-shadow: 0 0 0 1px var(--border);
  }
}

.settings-title {
  padding: 0.9rem 1.1rem 0.4rem;
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-left: 1.1rem;
  padding: 0.7rem 1.1rem 0.7rem 0;
  border-top: 1px solid var(--border);
}

.settings-title + .settings-row {
  border-top: 0;
}

.settings-row span:last-child {
  color: var(--text-2);
  text-align: right;
}

.settings-row--action span:last-child {
  color: var(--accent);
  text-align: left;
}

.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  .offline-badge {
    box-shadow: 0 0 0 1px var(--border);
  }
}

.offline-badge svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--accent);
}

/* App Privacy label */
.privacy-label {
  width: min(100%, 22rem);
  padding: 1.5rem 1.4rem;
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  .privacy-label {
    box-shadow: 0 0 0 1px var(--border);
  }
}

.privacy-label-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-2);
}

.privacy-label svg {
  width: 2.75rem;
  height: 2.75rem;
  margin: 1rem auto 0.6rem;
  color: var(--accent);
}

.privacy-label-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.privacy-label p {
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.privacy-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-chips li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  .privacy-chips li {
    box-shadow: 0 0 0 1px var(--border);
  }
}

/* ---------- Cards grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.section--alt .card {
  background: var(--surface);
}

@media (prefers-color-scheme: dark) {
  .card {
    box-shadow: 0 0 0 1px var(--border);
  }
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: var(--grad-brand);
  color: #fff;
}

.card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.card p {
  margin-top: 0.45rem;
  color: var(--text-2);
  font-size: 1rem;
}

/* ---------- Safety note and closing ---------- */

.note {
  display: grid;
  gap: 1rem;
  justify-items: center;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.note-icon svg {
  width: 1.6rem;
  height: 1.6rem;
}

.note h2 {
  font-size: clamp(1.625rem, 1.25rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.closing {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.closing img {
  width: 5.5rem;
  border-radius: 22.37%;
  box-shadow: var(--shadow-icon);
}

.closing .lead {
  max-width: 36rem;
}

/* ---------- Subpages: privacy, support, 404 ---------- */

.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--glow);
}

.page-hero .lead {
  margin-top: 1rem;
}

.meta {
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.summary {
  margin-top: 0.5rem;
  padding: clamp(1.4rem, 1rem + 2vw, 2rem);
  border-radius: var(--radius);
  background: var(--stage);
}

.summary h2,
.prose .summary h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.summary .checks {
  margin-top: 1rem;
}

.toc {
  margin-top: 2.5rem;
}

.toc h2,
.prose .toc h2 {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toc ul,
.prose .toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.prose .toc li + li {
  margin-top: 0;
}

.toc a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9375rem;
}

@media (prefers-color-scheme: dark) {
  .toc a {
    background: var(--surface);
  }
}

.toc a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.prose .toc a,
.prose .toc a:hover {
  text-decoration: none;
}

.prose {
  padding-bottom: var(--section);
}

.prose > section {
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.prose h2 {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.016em;
}

.prose h2 + p,
.prose h2 + ul,
.prose h3 + p,
.prose h3 + ul,
.prose h3 + ol {
  margin-top: 0.6rem;
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose p + ol,
.prose ol + p {
  margin-top: 0.9rem;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose li::marker {
  color: var(--text-2);
}

.prose strong {
  font-weight: 600;
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
  background: var(--bg-alt);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

@media (prefers-color-scheme: dark) {
  .prose code {
    background: var(--surface);
  }
}

.prose .checks {
  padding-left: 0;
}

.prose .checks li + li {
  margin-top: 0;
}

.callout {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 0.9rem 0.9rem 0;
  background: var(--accent-soft);
}

.qa {
  margin-top: 1.25rem;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

@media (prefers-color-scheme: dark) {
  .qa {
    background: var(--surface);
  }
}

.prose .qa h3 {
  margin-top: 0;
}

.path {
  font-weight: 600;
  white-space: normal;
}

.contact-card {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  margin-top: 1.25rem;
  padding: clamp(1.4rem, 1rem + 2vw, 2rem);
  border-radius: var(--radius);
  background: var(--stage);
}

.contact-card .button {
  margin-top: 0.25rem;
}

/* 404 */
.not-found {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
  text-align: center;
}

.not-found img {
  width: 5rem;
  border-radius: 22.37%;
  box-shadow: var(--shadow-icon);
}

.not-found .actions {
  margin-top: 0.75rem;
}

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

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-small {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-small p + p {
  margin-top: 0.6rem;
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .skip-link,
  .toc,
  .hero-stage,
  .feature-media {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .grad {
    background: none;
    color: #000;
  }

  .section,
  .prose {
    padding-block: 1rem;
  }
}

/* Coverage table */
.coverage-wrap { overflow-x: auto; margin: 1.75rem 0 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-card); }
.coverage { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.coverage th, .coverage td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.coverage thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); font-weight: 600; }
.coverage tbody tr:last-child th, .coverage tbody tr:last-child td { border-bottom: 0; }
.coverage tbody th { font-weight: 600; color: var(--text); }
.coverage td { color: var(--text-2); }
.cov { display: inline-block; white-space: nowrap; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.cov--now { background: var(--accent); color: #fff; }
