/* RoadtripRadar — roadtripradar.magnus.tech

   Colours come from the app icon: its night background, the radar's blue and
   the pins' orange. The header, the start page's hero and the privacy band
   are dark in both themes, like the icon; everything else follows the
   visitor's light or dark setting. Text keeps at least 4.5:1 contrast.

   The system font on purpose: it is the app's own font on Apple devices, and
   loading one from a font service would send every visitor's address there,
   which the privacy policy doesn't cover. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --rule: #e3e3e8;
  --card: #ffffff;
  --card-border: #e5e5ea;
  --accent: #0066cc;
  --pin: #d55a00;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.12);

  --night: #0b0d12;
  --night-2: #15171c;
  --night-3: #1d2027;
  --night-text: #f5f5f7;
  --night-muted: #a9afbc;
  --night-rule: rgba(255, 255, 255, 0.1);
  --blue: #2f8cff;
  --cyan: #5ac8fa;
  --orange: #ff8a2a;
  --button: #0071e3;

  --wide: 72rem;
  --narrow: 44rem;
  --gutter: 1.25rem;
  --radius: 22px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0e0f12;
    --text: #f5f5f7;
    --muted: #a1a1aa;
    --rule: #26272c;
    --card: #16171b;
    --card-border: #26272c;
    --accent: #4da3ff;
    --pin: #ff8a2a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  }
}

@media (max-width: 30rem) {
  :root { --gutter: 1rem; }
}

/* Base */

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  background: var(--button);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}
.skip:focus { left: 0.5rem; }

/* Header: dark everywhere, translucent over the page as it scrolls. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--night-rule);
  color: var(--night-text);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

/* The icon's artwork is square; iOS rounds it, so the page does too. */
.brand img, .app-icon { border-radius: 22.5%; }

.site-header nav { display: flex; gap: 0.25rem; }

.site-header nav a {
  color: var(--night-muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  transition: color 0.15s, background-color 0.15s;
}

.site-header nav a:hover { color: var(--night-text); background: rgba(255, 255, 255, 0.08); }
.site-header nav a[aria-current="page"] { color: var(--night-text); background: rgba(255, 255, 255, 0.12); }

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

/* Buttons and small type */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--button);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  transition: background-color 0.15s, transform 0.15s;
}
.button:hover { background: #0062c4; }
.button:active { transform: scale(0.98); }

.button.secondary {
  background: transparent;
  color: var(--night-text);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}
.button.secondary:hover { background: rgba(255, 255, 255, 0.08); }

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--night-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  border-radius: 999px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 42, 0.2);
}

/* ===== Start page ===== */

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 40rem at 78% 30%, rgba(47, 140, 255, 0.22), transparent 60%),
    radial-gradient(40rem 30rem at 10% 110%, rgba(255, 138, 42, 0.1), transparent 60%),
    var(--night);
  color: var(--night-text);
}

/* The radar's rings, spreading from behind the phone. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 76% 46%, transparent 0 89px, rgba(90, 200, 250, 0.09) 89px 90px);
  -webkit-mask-image: radial-gradient(circle at 76% 46%, #000 0, transparent 70%);
  mask-image: radial-gradient(circle at 76% 46%, #000 0, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 5rem;
}

@media (min-width: 58rem) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; padding-top: 5.5rem; padding-bottom: 6rem; }
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin: 1.4rem 0 1.4rem;
}

.hero h1 .highlight {
  background: linear-gradient(100deg, #ffb066, var(--orange) 55%, #ff6a3d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--night-muted);
  max-width: 34rem;
  margin: 0 0 2.2rem;
}

.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--night-muted);
  font-size: 0.92rem;
}

.hero-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-facts svg { width: 18px; height: 18px; color: var(--cyan); }

/* The phone */

.phone-wrap { display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 320 / 660;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2b2f38, #0d0f13 40%, #23262e);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 50px 100px -30px rgba(0, 0, 0, 0.8),
    0 0 140px -20px rgba(47, 140, 255, 0.45);
}

@media (min-width: 58rem) {
  .phone { transform: rotate(2deg); }
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: #0b1320;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.screen .wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; }

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

.sweep {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  /* Clockwise, like the icon: the bright edge leads and the fade trails it. */
  background: conic-gradient(from 0deg, transparent 0deg 290deg, rgba(90, 200, 250, 0) 290deg, rgba(90, 200, 250, 0.42) 359deg, rgba(90, 200, 250, 0.9) 360deg);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  transform: rotate(40deg);
}

.lock {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 52px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.lock .date { font-size: 16px; font-weight: 600; opacity: 0.9; }
.lock .time { font-size: 80px; font-weight: 650; line-height: 1; letter-spacing: -0.02em; margin-top: 2px; }

.notifications {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 96px;
  display: grid;
  gap: 8px;
}

.note {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 2px 10px;
  padding: 11px 13px 12px 11px;
  border-radius: 22px;
  background: rgba(32, 36, 44, 0.66);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
}

.note img { grid-row: 1 / span 4; width: 38px; height: 38px; border-radius: 9px; align-self: center; }
.note .label { grid-column: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.note .when { grid-column: 3; grid-row: 1; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.note .title { grid-column: 2 / span 2; font-weight: 650; }
.note .subtitle { grid-column: 2 / span 2; font-weight: 500; }
.note .body { grid-column: 2 / span 2; color: rgba(255, 255, 255, 0.88); }

.note.older { transform: scale(0.95); opacity: 0.75; margin-top: -2px; }

.lock-buttons {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 36px;
  display: flex;
  justify-content: space-between;
}

.lock-buttons span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(30, 34, 42, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
}

.lock-buttons svg { width: 20px; height: 20px; color: #fff; }

.home-indicator {
  position: absolute;
  z-index: 2;
  bottom: 9px;
  left: 50%;
  width: 120px;
  height: 5px;
  margin-left: -60px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: no-preference) {
  .sweep { animation: sweep 5s linear infinite; }
  .note { animation: arrive 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
  .note:first-child { animation-delay: 0.9s; }
  .note.older { animation-name: arrive-older; animation-delay: 0.4s; }

  @keyframes sweep { to { transform: rotate(400deg); } }
  @keyframes arrive { from { opacity: 0; transform: translateY(-24px) scale(0.96); } }
  @keyframes arrive-older { from { opacity: 0; transform: translateY(-24px) scale(0.9); } }
}

/* Sections */

.section { padding: 6rem 0; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 42rem; margin: 0 0 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section h2 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
}

.section-head p { font-size: 1.2rem; color: var(--muted); margin: 0; }

/* How it works */

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.step .number {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.step h3 { font-size: 1.3rem; margin: 1.1rem 0 0.5rem; }
.step p { color: var(--muted); margin: 0; }

/* Feature rows: text beside an illustration, alternating sides. */

.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.feature-row + .feature-row { margin-top: 6rem; }

@media (min-width: 56rem) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .feature-row.flip .feature-text { order: 2; }
}

.feature-text h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.feature-text p { font-size: 1.12rem; color: var(--muted); margin: 0 0 1rem; }
.feature-text p:last-child { margin-bottom: 0; }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.checks li { display: flex; gap: 0.7rem; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 0.1rem; color: var(--accent); }

.visual {
  position: relative;
  border-radius: 28px;
  background: var(--night-2);
  border: 1px solid var(--night-rule);
  box-shadow: 0 30px 80px -30px rgba(10, 30, 70, 0.55);
  overflow: hidden;
  color: var(--night-text);
}

/* By road, not as the crow flies */

.route-map { width: 100%; height: auto; }
.route-map .land { fill: #121722; }
.route-map .grid { stroke: rgba(255, 255, 255, 0.035); stroke-width: 1; }
.route-map .water { fill: #0f2b4a; }
.route-map .minor { fill: none; stroke: #1f2a3b; stroke-width: 3; stroke-linecap: round; }
.route-map .road { fill: none; stroke: #2a3950; stroke-width: 9; stroke-linecap: round; }
.route-map .route { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(47, 140, 255, 0.7)); }
.route-map .crow { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; }
.route-map .pill { fill: rgba(11, 13, 18, 0.85); stroke: rgba(255, 255, 255, 0.14); }
.route-map .pill-text { fill: #f5f5f7; font: 600 15px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.route-map .pill-muted { fill: #a9afbc; font: 500 15px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.route-map .pill-strong { fill: #ffffff; font: 700 15px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

@media (prefers-reduced-motion: no-preference) {
  .route-map .route { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s 0.3s ease-in-out forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Place the pin */

.placer { padding: 1.5rem; }

.placer .sheet-title { text-align: center; font-weight: 650; font-size: 1.05rem; margin: 0 0 1rem; }

.placer .notice {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 138, 42, 0.12);
  border: 1px solid rgba(255, 138, 42, 0.3);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.placer .notice svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 1px; }
.placer .notice strong { display: block; margin-bottom: 0.15rem; }
.placer .notice span { color: var(--night-muted); }

.placer .mini-map { position: relative; margin-top: 1rem; border-radius: 18px; overflow: hidden; }
.placer .mini-map svg { width: 100%; height: auto; }

.placer .mini-map .crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
}

.placer .confirm {
  display: block;
  margin: 1rem auto 0;
  text-align: center;
  background: var(--button);
  color: #fff;
  font-weight: 600;
  border-radius: 14px;
  padding: 0.8rem;
}

/* Shared collection */

.collection { padding: 1.5rem; }

.collection .head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.collection .name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.collection .sub { color: var(--night-muted); font-size: 0.9rem; }

.avatars { display: flex; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--night-2);
}
.avatar + .avatar { margin-left: -8px; }
.avatar.a { background: linear-gradient(135deg, #2f8cff, #1d5fd1); }
.avatar.b { background: linear-gradient(135deg, #ff9a3d, #e5631a); }
.avatar.small { width: 26px; height: 26px; font-size: 0.72rem; border-width: 0; }

.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.places li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  background: var(--night-3);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
}

.places .marker {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
}
.places .marker svg { width: 20px; height: 20px; }
.places .what { line-height: 1.3; }
.places .what strong { display: block; font-weight: 600; }
.places .what span { color: var(--night-muted); font-size: 0.88rem; }

.places .new { box-shadow: inset 0 0 0 1.5px rgba(255, 138, 42, 0.55); }
.places .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); }

/* Smaller features */

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.tile h3 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
.tile p { color: var(--muted); margin: 0; font-size: 1rem; }

.icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.orange { background: color-mix(in srgb, var(--pin) 13%, transparent); color: var(--pin); }

/* Privacy band */

.privacy-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 50% 120%, rgba(47, 140, 255, 0.22), transparent 60%),
    var(--night);
  color: var(--night-text);
}

.privacy-band .section-head p { color: var(--night-muted); }
.privacy-band .eyebrow { color: var(--cyan); }

.promises { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) {
  .promises { grid-template-columns: repeat(3, 1fr); }
}

.promise {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--night-rule);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.promise svg { width: 28px; height: 28px; color: var(--cyan); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font-size: 1.15rem; margin: 1rem 0 0.4rem; }
.promise p { color: var(--night-muted); margin: 0; font-size: 1rem; }

.privacy-band .more { text-align: center; margin: 2.75rem 0 0; }
.privacy-band .more a { color: var(--cyan); font-weight: 600; }

/* Closing call to action */

.closing { text-align: center; }
.closing .app-icon { width: 104px; height: 104px; margin: 0 auto 1.75rem; box-shadow: 0 20px 50px -15px rgba(47, 140, 255, 0.55); }
.closing h2 { max-width: 40rem; margin-left: auto; margin-right: auto; }
.closing p { color: var(--muted); font-size: 1.2rem; max-width: 34rem; margin: 0 auto 2rem; }
.closing .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.closing .button.secondary { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); }
.closing .button.secondary:hover { background: var(--bg-soft); }

/* ===== Reading pages: manual, support, privacy ===== */

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(40rem 22rem at 85% 0%, rgba(47, 140, 255, 0.25), transparent 60%),
    var(--night);
  color: var(--night-text);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 92% 0%, transparent 0 69px, rgba(90, 200, 250, 0.08) 69px 70px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
  pointer-events: none;
}

.page-hero .inner {
  position: relative;
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 3.75rem var(--gutter) 3.25rem;
}

.page-hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 0.9rem;
}

.page-hero p { color: var(--night-muted); font-size: 1.15rem; margin: 0; }

.prose {
  max-width: var(--narrow);
  margin: 0 auto;
  padding: 2.75rem var(--gutter) 4.5rem;
}

.prose h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 3rem 0 0.75rem;
  padding-top: 0.25rem;
}

.prose h3 { font-size: 1.15rem; margin: 1.9rem 0 0.4rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { font-weight: 650; }
.prose code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 6px; padding: 0.08em 0.35em; overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

.box {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}
.box > :last-child { margin-bottom: 0; }
.prose > .box:first-child { margin-top: 0; }

/* The manual's contents, as chips. */
.box.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem; }
.box.toc a {
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 550;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}
.box.toc a:hover { border-color: var(--accent); }

.box.contact { display: flex; align-items: center; gap: 1rem; font-size: 1.15rem; font-weight: 600; }
.box.contact svg { flex: none; width: 26px; height: 26px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.box.contact a { overflow-wrap: anywhere; }

/* ===== Footer ===== */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer .top {
  display: grid;
  gap: 2.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 48rem) {
  .site-footer .top { grid-template-columns: 1.4fr 2fr; }
}

.site-footer .brand { color: var(--text); }
.site-footer .about p { margin: 0.9rem 0 0; max-width: 22rem; }

.site-footer nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.site-footer h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin: 0 0 0.85rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }

.site-footer .bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 30rem) {
  .site-footer nav { grid-template-columns: 1fr 1fr; }
}

.page-hero a { color: var(--cyan); }

/* Screenshots in the manual: the iPhone's own corners, two side by side
   where they fit, with a caption saying what to look at. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 15rem));
  justify-content: center;
  gap: 1.75rem 1.5rem;
  margin: 2rem 0 2.5rem;
}

.shot { margin: 0; }

.shot img {
  width: 100%;
  height: auto;
  border-radius: 13.7% / 6.3%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: #000;
}

.shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-top: 0.8rem;
  text-align: center;
}
