/* Built from the app's own parts: divider rows, navy, big plain numerals. System fonts so it loads on one bar of signal. */
:root {
  --bg: #fff;
  --ink: #0d1f3d;
  --muted: #47546b;
  --line: #d8dde7;
  --band: #0d1f3d;
  --band-ink: #fff;
  --band-muted: #c3cde0;
  --band-line: #33466b;
  --mark: #fff7ef;
  --mark-line: #b84c00;
  --mark-ink: #8f3b00;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1c; --ink: #f4f6fb; --muted: #aeb8cb; --line: #2a3550;
    --band: #16264a; --band-line: #3a4c74;
    --mark: #2a1a0d; --mark-line: #ff9a4d; --mark-ink: #ffc08f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1c; --ink: #f4f6fb; --muted: #aeb8cb; --line: #2a3550;
  --band: #16264a; --band-line: #3a4c74;
  --mark: #2a1a0d; --mark-line: #ff9a4d; --mark-ink: #ffc08f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
::selection { background: var(--mark-line); color: var(--bg); }
a:focus-visible { outline: 3px solid var(--mark-line); outline-offset: 3px; border-radius: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter-l) + var(--gutter-r));
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.bar-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; padding-top: 1rem; }
.hero-copy { display: grid; gap: 1.25rem; align-content: start; min-width: 0; }
h1 { font-size: clamp(2.6rem, 11.5vw, 4.75rem); line-height: 1.05; letter-spacing: -.022em; font-weight: 800; }
.lede { color: var(--band-muted); max-width: 32em; }
.get { display: grid; gap: .2rem; margin-top: .25rem; }
.store-status { font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.store-link {
  display: inline-flex; align-items: center; justify-self: start;
  min-height: 56px; padding: .5rem 1.5rem; margin-bottom: .4rem;
  background: var(--band-ink); color: var(--band); border-radius: 12px;
  font-size: 1.25rem; font-weight: 700; text-decoration: none;
}
.store-link:hover { background: var(--band-muted); }
.get-note { font-size: 1.125rem; color: var(--band-muted); }
.hero-shot { width: 100%; max-width: 27rem; justify-self: center; }
.hero-shot img {
  width: 100%; aspect-ratio: 804 / 805; object-fit: cover; object-position: top;
  border-radius: 22px 22px 0 0;
}

/* Sections */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2rem, 7.5vw, 3.25rem); line-height: 1.1; letter-spacing: -.018em; font-weight: 800; }
h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }
.muted { color: var(--muted); }

.shot {
  width: 100%; aspect-ratio: 804 / 900; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: 18px;
}

/* Steps: a real sequence, so they are numbered */
.steps { display: grid; gap: 3rem; margin-top: 2.5rem; }
.step { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.step-shot { aspect-ratio: 804 / 540; }
.step-head { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.step-n { font-size: 3rem; line-height: .95; font-weight: 800; letter-spacing: -.03em; }
.step-text { display: grid; gap: .4rem; min-width: 0; }

/* Fix it */
.fix { border-top: 1px solid var(--line); }
.fix-grid { display: grid; gap: 2rem; }
.fix-copy { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.fix-shots { display: grid; gap: 2rem; min-width: 0; }
.fix-shots figure { margin: 0; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.fix-shots .shot { aspect-ratio: 804 / 840; }
.fix-shots figcaption { font-size: 1.0625rem; line-height: 1.35; color: var(--muted); }

/* Divider rows, as in the app */
.rows > li { display: flex; align-items: baseline; padding-block: .85rem; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.covers { border-top: 1px solid var(--line); }
.covers-grid { display: grid; gap: 2.5rem; margin-top: 2.25rem; }
.covers-grid > div { display: grid; gap: .8rem; align-content: start; min-width: 0; }
.note { margin-top: 2.25rem; max-width: 38em; color: var(--muted); }

/* Privacy band */
.keep { background: var(--band); color: var(--band-ink); }
.keep-grid { display: grid; gap: 2rem; }
.keep-copy { display: grid; gap: 1.25rem; align-content: start; }
.keep-links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; font-weight: 600; }
.keep-links a { display: inline-flex; align-items: center; min-height: 44px; }
.keep .rows > li { border-color: var(--band-line); font-weight: 600; }

/* Footer */
.foot { padding-block: 2rem 2.5rem; font-size: 1.0625rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; }
.foot nav { display: flex; gap: 1.5rem; color: var(--ink); font-weight: 600; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a[aria-current] { color: var(--muted); text-decoration: none; }

/* Privacy and Support */
.doc-head { background: var(--band); color: var(--band-ink); }
.doc-head h1 { font-size: clamp(2.4rem, 9vw, 3.75rem); padding-block: 1.25rem 2.5rem; }
.doc { display: grid; gap: 2.5rem; max-width: 42rem; padding-block: 2.5rem 4rem; }
.doc section { display: grid; gap: .6rem; }
.doc h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.doc-lead { font-size: 1.5rem; line-height: 1.35; font-weight: 600; }
.doc ul { display: grid; gap: .4rem; list-style: disc; padding-left: 1.3em; }
.placeholder {
  display: inline-block; padding: .35rem .7rem;
  background: var(--mark); color: var(--mark-ink);
  border: 2px dashed var(--mark-line); border-radius: 8px; font-weight: 600;
}

@media (min-width: 760px) {
  .covers-grid { grid-template-columns: 3fr 2fr; gap: 4rem; }
  .keep-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .fix-shots { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
}
@media (min-width: 960px) {
  .fix-grid { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .step { grid-template-rows: 1fr auto; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; padding-top: 2.5rem; }
  .hero-copy { padding-bottom: 5rem; }
  .hero-shot { align-self: end; }
  .hero-shot img { aspect-ratio: 804 / 998; }
}

/* Only light screenshots exist for these; dim them so they don't glare on a night break. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot { filter: brightness(.82); }
}
:root[data-theme="dark"] .shot { filter: brightness(.82); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
