/* Rambler — one stylesheet, no build step, no framework.

   The site ships with `default-src 'none'` and a style-src that does not allow
   'unsafe-inline', so everything lives here: no <style> blocks, no style=""
   attributes. The home page shows real screenshots from
   apple/fastlane/screenshots, cut down to WebP in assets/screens.

   Colours mirror apple/Rambler/Theme/Palette.swift so the site and the app
   don't drift apart. */

:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-raised: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.08);
  --divider: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-tertiary: rgba(255, 255, 255, 0.38);
  --prompt: #a394fa;
  --alert: #f24d4d;

  --measure: 34rem;
  --wrap: 72rem;
  --wrap-narrow: 44rem;
  --pad: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

main:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i { display: block; width: 1em; height: 1em; }

/* ── layout ─────────────────────────────────────────────────────────────── */

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

.narrow { max-width: var(--wrap-narrow); }

.band { padding: 7rem 0; }

/* The heading block at the top of every home-page section. */
.intro { max-width: 42rem; margin-bottom: 4.5rem; }
.intro h2 { text-wrap: balance; margin-bottom: 1.25rem; }
.intro p { font-size: 1.1rem; }
.intro p:last-child { margin-bottom: 0; }

/* ── head / nav ─────────────────────────────────────────────────────────── */

/* Every page has nav links before the content, which is tab stops a keyboard
   visitor has to walk past to reach anything. Off-screen until it is focused,
   and above the sticky header when it is. */
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 40;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.12s ease;
}

.skip:focus { top: 0.75rem; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.85rem var(--pad);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
  cursor: pointer;
}

.nav__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav__links a {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

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

/* ── type ───────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(3.2rem, 8.5vw, 5.75rem); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.04; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }

p { margin: 0 0 1.1rem; max-width: var(--measure); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
}

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 0.9rem;
  font-weight: 500;
}

.muted { color: var(--text-secondary); }
.small { font-size: 0.9rem; }

.link {
  color: var(--text);
  text-decoration-color: var(--text-tertiary);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration-color 0.15s ease;
}

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

/* ── buttons ────────────────────────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover { background: #fff; }

.btn--small { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

.btn--quiet {
  background: transparent;
  color: var(--text-secondary);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.btn--quiet:hover { background: var(--surface); color: var(--text); }

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 5rem 0 2rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 4rem;
  align-items: center;
}

.hero h1 { margin-bottom: 1.75rem; }
.hero .lede { max-width: 31rem; }

/* What it is and where to get it, as one plain line above the headline. */
.kicker {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

/* Three facts as a line of text, separated by thin rules rather than icons. */
.facts {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.facts li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin: 0 0.9rem;
  vertical-align: -0.05em;
  background: var(--hairline);
}

/* ── screenshots ────────────────────────────────────────────────────────── */

/* A screenshot in a thin bezel. The captures are full-bleed iPhone 16 Pro Max
   screens, whose own corner radius is about an eighth of the width, so the
   image is clipped to that and the bezel follows it round. */
.shot {
  --w: 18rem;
  width: var(--w);
  max-width: 100%;
  margin: 0 auto;
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(160deg, #2a2a2e, #111113 40%, #1c1c1f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.9);
}

.shot img {
  width: 100%;
  border-radius: calc(var(--w) * 0.13);
  background: #000;
}

.shot--hero { --w: 20rem; }

/* hero.js draws the recording screen playing on a loop and puts it in place
   of the screenshot, which stays as the picture without it. */
.shot canvas {
  display: block;
  width: 100%;
  aspect-ratio: 660 / 1434;
  border-radius: calc(var(--w) * 0.13);
  background: #000;
}

.shot--live img { display: none; }

/* ── how it works ───────────────────────────────────────────────────────── */

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.row + .row { margin-top: 7rem; }

.row--flip .row__copy { order: 2; }

.row__copy { max-width: 30rem; }
.row__copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.row__copy p { color: var(--text-secondary); }
.row__copy p.muted { color: var(--text-tertiary); }

.row__art { display: flex; justify-content: center; }

/* The last three steps side by side, each a screenshot with its words under
   it, so they read as one row rather than a zig-zag down the page. */
.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 8rem;
}

.trio .shot { --w: 17rem; margin: 0 0 2.5rem; }
.trio h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: 0.75rem; }
.trio p { font-size: 0.97rem; color: var(--text-secondary); }
.trio p.muted { color: var(--text-tertiary); }

/* The follow-up and its chips, drawn in the app's own shapes: a user bubble
   on the right, Rambler's question on the left in the prompt colour, and the
   refinement chips under it. */
.convo {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.convo p { margin: 0; max-width: none; }

.convo__me {
  align-self: flex-end;
  max-width: 88%;
  padding: 0.8rem 1rem;
  border-radius: 20px 20px 6px 20px;
  background: var(--surface-raised);
  font-size: 0.95rem;
  line-height: 1.45;
}

.convo__ai {
  max-width: 88%;
  padding: 0.85rem 1rem;
  border-radius: 20px 20px 20px 6px;
  background: rgba(163, 148, 250, 0.12);
  box-shadow: inset 0 0 0 1px rgba(163, 148, 250, 0.22);
}

.convo__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prompt);
}

.convo__ai p { font-size: 1.02rem; line-height: 1.4; font-weight: 500; }

.convo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.convo__chips button {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 148, 250, 0.3);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.convo__chips button:hover { border-color: rgba(163, 148, 250, 0.6); color: var(--text); }

.convo__chips button:focus-visible {
  outline: 2px solid var(--prompt);
  outline-offset: 2px;
}

.convo__chips button[aria-pressed="true"] {
  background: rgba(163, 148, 250, 0.2);
  border-color: var(--prompt);
  color: var(--text);
}

/* the style in the prompt colour, its focus after it in grey, as in the app */
.convo__chips b { font-weight: 600; color: var(--prompt); }

/* rambler.js stacks every question the demo can show in one cell, so the
   bubble keeps the height of the longest; only the live one is visible */
.convo__q { display: grid; }
.convo__q > p { grid-area: 1 / 1; }
.convo__ai p.convo__sizer { visibility: hidden; }

.convo__ai p { transition: opacity 0.14s ease; }
.convo__ai p.is-swapping { opacity: 0; }

.convo p.convo__hint { font-size: 0.8rem; color: var(--text-tertiary); }

/* ── versus ─────────────────────────────────────────────────────────────── */

/* Four rows, each a moment in a ramble: what a chat does then, in grey, and
   what Rambler does, in full white. No boxes: the columns are held by the grid
   and the rows by a rule. Purple is kept for the one word that names Rambler,
   as it is Rambler's colour in the app. On a phone the header row goes and each
   cell carries its own label, so the rows still read once they stack. */
.versus__head,
.versus__row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.3fr);
  column-gap: 3rem;
}

.versus__head {
  padding-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.versus__rambler { color: var(--prompt); }

.versus__row {
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
}

.versus__when {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.versus__them p,
.versus__us p { margin: 0; max-width: none; line-height: 1.55; }

.versus__them p { color: var(--text-tertiary); font-size: 1rem; }
.versus__us p { color: var(--text); font-size: 1.1rem; }

.versus__who { display: none; }

/* ── uses ───────────────────────────────────────────────────────────────── */

/* Six openings, each set large as the thing you might say, with what the
   follow-ups then do under it in grey. A rule above each, no boxes. */
.uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 3rem;
}

.use { padding-top: 1.5rem; border-top: 1px solid var(--hairline); }

.use p.use__say {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}

.use h3 { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; margin-bottom: 0.4rem; color: var(--text-secondary); }
.use p { margin: 0; max-width: none; font-size: 0.95rem; color: var(--text-tertiary); }

/* ── take it anywhere ────────────────────────────────────────────────────── */

.export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.export__copy h2 { text-wrap: balance; }

.export__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.export__list li {
  padding-left: 1rem;
  border-left: 1px solid var(--hairline);
  color: var(--text-secondary);
}

.export__list b { color: var(--text); font-weight: 600; }

/* A shared file as it looks in any text editor: the raw Markdown, not a
   rendering of it, because the point is that it is plain text. Cut off with a
   fade, since the real file carries on into the transcript. */
.file {
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: #0c0c0e;
  overflow: hidden;
}

.file__name {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  font: 0.78rem/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text-tertiary);
  overflow-wrap: anywhere;
}

.file__body {
  margin: 0;
  padding: 1.25rem;
  max-height: 36rem;
  overflow: hidden;
  font: 0.8rem/1.6 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text-secondary);
  white-space: pre-wrap;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent);
  mask-image: linear-gradient(180deg, #000 75%, transparent);
}

.file__body .md-h { color: var(--text); }
.file__body b { font-weight: 400; color: var(--text-tertiary); }

/* ── privacy route ──────────────────────────────────────────────────────── */

/* DataRouteList from the app, laid across the page: a dot per stop on one line,
   white for what stays on the phone, the prompt colour for the one stop that
   leaves it. On a phone the line runs down the left instead. */
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}

.route__stop { position: relative; padding-top: 2.75rem; }

.route__stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--text);
}

.route__stop::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: -2.25rem;
  top: 0.35rem;
  height: 1px;
  background: var(--hairline);
}

.route__stop:last-child::after { display: none; }

.route__stop--out::before {
  background: var(--prompt);
  box-shadow: 0 0 0 5px rgba(163, 148, 250, 0.18);
}

.route__place {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.route__stop--out .route__place { color: var(--prompt); }

.route h3 { font-size: 1.3rem; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.route p { margin: 0; font-size: 0.97rem; color: var(--text-secondary); }

.route__more { margin: 3.5rem 0 0; font-size: 0.95rem; }

/* ── pricing ────────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem;
}

.plan { padding-top: 2rem; border-top: 1px solid var(--hairline); }
.plan--main { border-top-color: var(--text); }

.plan__kind {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.plan h3 { font-size: 2rem; letter-spacing: -0.035em; margin-bottom: 0.9rem; }
.plan p { color: var(--text-secondary); }

.plan ul {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.97rem;
}

.plan li {
  position: relative;
  padding-left: 1.5rem;
}

.plan li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

/* ── providers (support page) ───────────────────────────────────────────── */

.providers {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.5rem 0 0;
}

.providers a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 1.25rem 1.25rem 1.15rem;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  text-decoration: none;
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.providers a:hover {
  background: var(--surface-raised);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.providers strong { font-weight: 600; }

.providers__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text);
}

.providers__mark svg { width: 1rem; height: 1rem; }

.providers__host {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  word-break: break-all;
}

.providers__go {
  position: absolute;
  top: 1.35rem;
  right: 1.25rem;
  width: 0.8rem;
  height: 0.8rem;
  color: var(--text-tertiary);
}

/* ── faq ────────────────────────────────────────────────────────────────── */

/* a grid rather than CSS columns: opening one answer must not shuffle the
   other questions between the columns */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
  align-content: start;
  border-top: 1px solid var(--hairline);
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-weight: 400;
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
  margin: 0.9rem 0 0;
  color: var(--text-secondary);
  font-size: 0.97rem;
  max-width: none;
}

/* Twenty-nine proper nouns in a row read better set apart and a shade quieter,
   so the eye can scan for one name. */
.faq details p.faq__langs {
  color: var(--text-tertiary);
  line-height: 1.65;
  padding-left: 1rem;
  border-left: 1px solid var(--divider);
}

/* ── beta signup ────────────────────────────────────────────────────────── */

.signup-band { padding-bottom: 10rem; }

.signup {
  max-width: 40rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signup__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 2rem;
}

/* logo.js draws the promo's opening here, a line that becomes the logo, and
   puts it in place of the icon, which stays as the picture without it. */
.signup__mark {
  display: block;
  width: min(26rem, 100%);
  aspect-ratio: 1100 / 440;
  margin-bottom: 1.5rem;
}

.signup--live .signup__icon { display: none; }

.signup h2 { margin-bottom: 1rem; }
.signup__lede { color: var(--text-secondary); max-width: 30rem; }

.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  max-width: 30rem;
  margin-top: 2rem;
}

.signup__field {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.signup__field::placeholder { color: var(--text-tertiary); }

.signup__field:focus-visible {
  outline: none;
  border-color: var(--prompt);
  background: var(--surface-raised);
}

.signup__form .btn { flex: 0 0 auto; }

/* Off-screen rather than display:none, because a field that is not rendered at
   all is one a form-filler can also tell to skip. */
.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: 0;
}

/* The Turnstile widget, injected by rambler.js. The form is a flex row of
   field plus button, so the widget claims a row of its own rather than
   squeezing between them. It reserves its height before the iframe arrives, so
   the button underneath does not jump once it does. */
.signup__check {
  flex: 1 0 100%;
  min-height: 65px;
  margin: 0.25rem 0;
}

.signup__note { margin: 1.25rem auto 0; }

/* ── support form ───────────────────────────────────────────────────────── */

/* Stacked rather than the signup's row: a message needs the width. The fields
   share the signup's surface and focus colour, with a smaller radius, because a
   pill-shaped box several lines tall reads as a mistake. The honeypot reuses
   .signup__trap, and the Turnstile widget .signup__check. */
.contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: var(--measure);
  margin: 1.75rem 0 1.25rem;
}

.contact__label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contact__field {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 0.875rem;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.contact__message {
  min-height: 10rem;
  resize: vertical;
  line-height: 1.55;
}

.contact__field::placeholder { color: var(--text-tertiary); }

.contact__field:focus-visible {
  outline: none;
  border-color: var(--prompt);
  background: var(--surface-raised);
}

.contact .btn { align-self: flex-start; }

@media (max-width: 420px) {
  .contact .btn { align-self: stretch; }
}

/* Reachable by a screen reader, invisible to everyone else. */
.a11y-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The page a form post lands on. Nothing on the page renders a result in
   place, so the answer is a whole page and it needs room around it. */
.result { padding-top: 6rem; }
.result .actions { margin-top: 2.5rem; }
/* `.prose a` outranks `.btn` on specificity, so without this the button on the
   result page comes out looking like a link that happens to have a pill round it. */
.result a.btn { color: var(--bg); }

/* ── prose (privacy, support) ───────────────────────────────────────────── */

.prose { padding-top: 4rem; padding-bottom: 6rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { margin-top: 3rem; font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { max-width: var(--measure); color: var(--text-secondary); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose p { color: var(--text-secondary); }
.prose p strong, .prose li strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); text-decoration-color: var(--text-tertiary); text-underline-offset: 4px; cursor: pointer; }
.prose .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .providers a { color: var(--text); }
.prose .spaced { margin-top: 1.5rem; }

.stamp {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 0 3rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer__brand p { margin: 0.75rem 0 0; color: var(--text-tertiary); }
.footer__brand .nav__brand { margin-right: 0; color: var(--text); }

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer a { text-decoration: none; color: var(--text-secondary); cursor: pointer; }
.footer a:hover { color: var(--text); }

.footer__made {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  max-width: none;
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .band { padding: 6rem 0; }

  .hero { padding: 3.5rem 0 1rem; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }

  .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { gap: 2rem; }
  .trio .shot { --w: 14rem; }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* two narrow nav columns side by side, with the brand across the top, rather
     than the second nav dropping into the gap under the brand */
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav { gap: 1.1rem; }
  .nav__links { gap: 1.1rem; font-size: 0.88rem; }
  /* The links say for themselves which ones may go; Support and Privacy
     never do. */
  .nav__links .nav__hide-md { display: none; }

  /* One column, copy first, then the picture, whichever side it sat on. */
  .row { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .row + .row { margin-top: 5rem; }
  .row--flip .row__copy { order: 0; }
  .row__copy { justify-self: start; }

  .export { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

  .versus__head { display: none; }
  .versus__row { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; padding: 2rem 0; }
  .versus__when { color: var(--text); font-weight: 600; }
  .versus__who {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
  }
  .versus__us .versus__who { color: var(--prompt); }
  .shot { --w: 16rem; }
  .shot--hero { --w: 17rem; }

  .trio { grid-template-columns: minmax(0, 1fr); gap: 5rem; margin-top: 6rem; }
  .trio .shot { --w: 16rem; margin: 0 auto 2.5rem; }

  .route { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .route__stop { padding: 0 0 0 2.25rem; }
  .route__stop::before { top: 0.35rem; }
  .route__stop::after { left: 0.37rem; right: auto; top: 1.6rem; bottom: -1.9rem; width: 1px; height: auto; }

  .plans { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .faq { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .band { padding: 4.5rem 0; }
  .intro { margin-bottom: 3rem; }
  .use p.use__say { font-size: 1.25rem; }

  .nav__links .nav__hide-sm { display: none; }

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

  /* Stacked, so a wrapped line never starts with a rule. */
  .facts { flex-direction: column; gap: 0.35rem; }
  .facts li + li::before { display: none; }

  .signup__form { flex-direction: column; }
  .signup__field { flex: 0 0 auto; }

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

@media (max-width: 420px) {
  :root { --pad: 1rem; }
  /* The home page carries a beta button in the nav, and at this width it and
     the brand are all that fit. Its Privacy and Support links are in the
     footer too. The prose pages have no button, so theirs stay. */
  .nav__links .nav__hide-xs { display: none; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}

/* ── motion ─────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
