/* ScreenNamer — one stylesheet, no frameworks, no external requests. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --ink: #14141a;
  --ink-soft: #5b5b66;
  --ink-faint: #8a8a95;
  --line: #e4e4e8;
  --accent: #0a84ff;
  --radius: 14px;
  --max: 1000px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101013;
    --bg-soft: #17171c;
    --ink: #f2f2f5;
    --ink-soft: #a4a4b0;
    --ink-faint: #7a7a86;
    --line: #26262e;
    --accent: #4da3ff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

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

/* ---------- header ---------- */

header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  z-index: 10;
}

.bar { display: flex; align-items: center; gap: 12px; height: 62px; }
.bar .mark { width: 26px; height: 26px; display: block; color: var(--ink); flex: none; }
.bar .name { font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; }
.bar nav a { color: var(--ink-soft); }
.bar nav a:hover { color: var(--ink); text-decoration: none; }

/* Phones: the four links cannot share a row with the wordmark without wrapping
   mid-label ("How it / works") and pushing Support off the screen. Give them a
   row of their own, spread across the full width, each label unbreakable. */
@media (max-width: 700px) {
  .bar {
    flex-wrap: wrap;
    height: auto;
    padding-top: 11px;
    padding-bottom: 9px;
    row-gap: 9px;
  }
  .bar nav {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    /* A narrow phone in a large text size can still overflow: let it scroll
       rather than wrap, and keep the scrollbar out of the design. */
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar nav a { white-space: nowrap; }
}

/* ---------- hero ---------- */

/* Vertical padding as longhand on purpose: `padding: 78px 0 44px` is a shorthand,
   so it would reset .wrap's horizontal padding to 0 and let the hero video run
   edge to edge. Same reason for .legal below. */
.hero { padding-top: 78px; padding-bottom: 44px; text-align: center; }
.hero img.icon { width: 104px; height: 104px; margin-bottom: 22px; }

h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.lede {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 30px;
}

.cta { display: inline-flex; flex-direction: column; align-items: center; gap: 18px; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
}
.button:hover { text-decoration: none; opacity: 0.88; }

.meta { font-size: 13px; color: var(--ink-faint); }

/* Apple's badge, unmodified: no hover effect, no filters, no rounding of our own.
   54px tall, so its required clear space is a quarter of that, 14px. The only
   neighbour is the line of text below, and the .cta gap keeps it further off. */
.store-badge { display: inline-block; line-height: 0; }
.store-badge:hover { text-decoration: none; }
.store-badge img { height: 54px; width: auto; }

figure.shot { margin: 52px 0 0; }
figure.shot img,
figure.shot video {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  background: var(--bg-soft);
}

/* ---------- sections ---------- */

section { padding: 62px 0; border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(24px, 3.4vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.sub { color: var(--ink-soft); margin: 0 0 34px; max-width: 620px; }

.pull {
  font-size: clamp(19px, 3vw, 25px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
  color: var(--ink);
}
.pull code {
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  color: var(--ink-faint);
}

/* Eight cards, two rows of four. Below the breakpoint auto-fit takes over and lets
   them reflow to three, two, then one — 8 divides evenly by all of those. */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 940px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 26px; grid-template-columns: 1fr; }
.step { position: relative; padding-top: 40px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
}
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* The three steps are a sequence, not a set, so the gaps carry arrows. They sit in the
   grid gap as pseudo-elements on the first two steps, and only once three columns are
   guaranteed: stacked on a narrow screen an arrow pointing right points at nothing. */
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 56px; }
  .step:not(:last-child)::after {
    content: "\27F6";
    position: absolute;
    top: 25px;
    right: -42px;
    width: 28px;
    text-align: center;
    font-size: 22px;
    line-height: 1;
    color: var(--ink-soft);
  }
}

.steps-coda {
  margin: 34px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ---------- privacy banner ---------- */

.banner {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
}
.banner h2 { margin: 0 0 12px; }
/* One gap between paragraphs, a wider one before the link, and `balance` so a two-line
   paragraph splits evenly instead of leaving one word hanging on the first line, which
   is what made the spacing look uneven. */
.banner p {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 8px;
  text-wrap: balance;
}
.banner p:last-child { margin-bottom: 0; }
.banner .banner-link { margin-top: 20px; }

/* ---------- faq ---------- */

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--ink-faint); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-soft); margin: 10px 0 0; }

/* ---------- legal pages ---------- */

.legal { padding-top: 56px; padding-bottom: 24px; max-width: 720px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.legal .stamp { color: var(--ink-faint); font-size: 14px; margin: 0 0 34px; }
.legal h2 { font-size: 20px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 7px; }

.summary {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 30px;
}
.summary p { margin: 0; color: var(--ink); }

/* ---------- support ---------- */

.support-note {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 0 10px;
}
.support-note:last-child { margin: 0; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 52px;
  font-size: 14px;
  color: var(--ink-faint);
}
.footrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footrow nav { margin-left: auto; display: flex; gap: 18px; }
.footrow nav a { color: var(--ink-soft); }
