/* Played — one stylesheet for the whole site. No build step, no JavaScript.
   The palette is the app's own: iOS system colours, system blue for anything
   you can act on, and the two greys iOS uses for label and secondary label. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-sunken: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --text-dim: #6c6c70;
  --line: rgba(60, 60, 67, 0.16);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.1);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.22);

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --rhythm: clamp(4.5rem, 11vw, 9rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-sunken: #0e0e10;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-dim: #98989f;
    --line: rgba(84, 84, 88, 0.55);
    --accent: #0a84ff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem)/1.55 -apple-system, BlinkMacSystemFont,
        "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

/* --- Rhythm ---------------------------------------------------------------- */

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

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

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

h1, h2, h3 { letter-spacing: -0.022em; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { margin-bottom: 1.15rem; }
h3 + p, .eyebrow + h2 { margin-top: 0; }

h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); font-weight: 650; }
h3 { font-size: clamp(1.1875rem, 1.4vw, 1.375rem); font-weight: 600; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(1.1875rem, 1.1vw + 1rem, 1.5rem); line-height: 1.45; color: var(--text-dim); }
.dim { color: var(--text-dim); }
.small { font-size: 0.9375rem; line-height: 1.5; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.75rem;
}

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

.masthead {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 3.5rem; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 27px; height: 27px; border-radius: 7px; }

.masthead nav { margin-left: auto; display: flex; gap: clamp(0.875rem, 2vw, 1.75rem); font-size: 0.9375rem; }
.masthead nav a { color: var(--text-dim); }
.masthead nav a:hover { color: var(--text); text-decoration: none; }
.masthead nav a[aria-current="page"] { color: var(--text); }

/* On a narrow screen the row does not fit, and a header wider than the
   viewport drags the whole page out with it. The section shortcuts are the
   part worth losing: everything they point at is further down the same page. */
@media (max-width: 30rem) {
  .masthead nav .jump { display: none; }
}

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

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) 0; border-top: 0; text-align: center; }
.hero .icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); margin: 0 auto 2rem; }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero .lead { margin: 1.5rem auto 0; max-width: 44ch; }

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 1.5rem; margin-top: 2.5rem;
}

.badge {
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  padding: 0.8125rem 1.375rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem;
}
.badge:hover { text-decoration: none; filter: brightness(1.07); }
.badge[aria-disabled="true"] { background: var(--accent-soft); color: var(--accent); cursor: default; }
.badge[aria-disabled="true"]:hover { filter: none; }

/* --- Stage: the screenshot that closes the hero --------------------------- */

.stage { margin-top: clamp(3rem, 7vw, 5rem); display: flex; justify-content: center; }
.phone {
  width: min(21rem, 78vw);
  border-radius: 2rem; overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.frame {
  width: 100%; border-radius: 1rem; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* --- Claims --------------------------------------------------------------- */

.claims { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.claims h3 { margin-bottom: 0.5rem; }
.claims p { color: var(--text-dim); max-width: 34ch; }

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

.feature { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
.feature + .feature { margin-top: var(--rhythm); }
.feature .shot { display: flex; justify-content: center; }

@media (min-width: 46rem) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature:nth-of-type(even) .shot { order: -1; }
  .feature.wide { grid-template-columns: 1fr; }
  .feature.wide .copy { max-width: 46rem; margin-inline: auto; }
}

/* --- Plain fact grid ------------------------------------------------------ */

.facts { display: grid; gap: 1.75rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.facts dt { font-weight: 600; margin-bottom: 0.3rem; }
.facts dd { margin: 0; color: var(--text-dim); font-size: 1rem; }

/* --- Plans ---------------------------------------------------------------- */

.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2.5rem; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.plan.premium { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.plan h3 { margin-bottom: 0.25rem; }
.plan .price { font-size: 1.0625rem; color: var(--text-dim); margin-bottom: 1.25rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: 1rem; }
.plan li { padding-left: 1.5rem; position: relative; color: var(--text-dim); }
.plan li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.52em;
  width: 0.72rem; height: 0.4rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- Long-form legal pages ------------------------------------------------ */

.doc { padding-block: clamp(3rem, 7vw, 5rem) var(--rhythm); }
.doc h1 { font-size: clamp(2.125rem, 4.5vw, 3rem); }
.doc h2 { font-size: clamp(1.3125rem, 1.8vw, 1.625rem); margin-top: 3rem; margin-bottom: 0.875rem; }
.doc h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.doc p, .doc li { max-width: 42rem; }
.doc ul, .doc ol { padding-left: 1.35rem; display: grid; gap: 0.5rem; margin: 0 0 1.1em; }
.doc .updated { color: var(--text-dim); font-size: 0.9375rem; margin-top: 1rem; }
.doc .note {
  background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 0.875rem;
  padding: 1.125rem 1.25rem; margin: 1.5rem 0; font-size: 1rem;
}
.doc .note p { max-width: none; }
.doc dl { display: grid; gap: 1.1rem; margin: 0 0 1.1em; max-width: 42rem; }
.doc dt { font-weight: 600; }
.doc dd { margin: 0.2rem 0 0; color: var(--text-dim); }

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

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.9375rem;
}
footer .wrap { display: grid; gap: 1.25rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
footer .fine { color: var(--text-dim); max-width: 52ch; }
