:root {
  --paper: #FCF9F7;     /* Palette.paper, Palette.swift:17 */
  --card: #FFFFFF;      /* Palette.card, Palette.swift:20 */
  --ink: #121212;       /* Palette.ink, white 0.07, Palette.swift:49 */
  --muted: #6B6B6B;     /* Palette.secondary, white 0.42, Palette.swift:63; 5.0:1 on paper */
  --coral-fill: #BC5650; /* Palette.coralDeep, Palette.swift:100: fill under white words, 4.59:1 */
  --coral-text: #8E3E39; /* Palette.coralText = Tone.coral.deep, Palette.swift:106; 6.92:1 on paper */
  --serif: "Source Serif", "Source Serif 4", "New York", Georgia, serif; /* Typeface.display, Typography.swift:94 */
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --shadow: 0 2px 4px rgb(0 0 0 / 0.06), 0 12px 24px -8px rgb(0 0 0 / 0.16), 0 40px 70px -24px rgb(0 0 0 / 0.28);
  color-scheme: light;
}
@font-face {
  font-family: "Source Serif";
  src: url("/source-serif.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 1.0625rem/1.6 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}
.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* Header: the icon small, the name beside it */
.site { margin-bottom: clamp(4rem, 9vw, 7rem); }
.name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.name img { width: 1.75rem; height: 1.75rem; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.18)); }

/* Home */
.intro { max-width: 46rem; }
.home .page { padding-top: clamp(3rem, 7vw, 5.5rem); }
.identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 clamp(2.25rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}
.wordmark { display: block; height: 2.6rem; width: auto; margin-bottom: 0.2rem; overflow: visible; }
.app-icon {
  display: block;
  width: clamp(4.75rem, 7vw, 6rem);
  height: auto;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.12)) drop-shadow(0 14px 22px rgb(0 0 0 / 0.2));
}
.hero {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 5.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 1.75rem;
}
.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 33ch;
  margin: 0 0 2.25rem;
}
.cta {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--coral-fill);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.15), 0 8px 18px -8px rgb(188 86 80 / 0.5);
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:active { transform: translateY(0) scale(0.98); }

/* The screens, on the paper */
.stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: clamp(4.5rem, 9vw, 7.5rem) calc(var(--gutter) * -1) 0;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) 1rem;
}
.stage figure { margin: 0; flex: 0 1 17rem; margin-top: 4rem; }
.stage figure.lead { flex-basis: 19rem; margin-top: 0; }
.phone {
  position: relative;
  aspect-ratio: 600 / 1304;
  padding: 3.2%;
  border-radius: 13.5% / 6.2%;
  background: #1A1A1A;
  box-shadow: var(--shadow);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10.5% / 4.85%;
  background: var(--paper);
}
.phone::after { /* the Dynamic Island */
  content: "";
  position: absolute;
  top: 4.6%;
  left: 50%;
  width: 29%;
  height: 2.75%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #000;
}
figcaption {
  margin-top: 1.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

@media (min-width: 1080px) {
  .home main {
    display: grid;
    grid-template-columns: minmax(0, 29rem) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
  }
  .home .hero { font-size: clamp(3.5rem, 4.4vw, 4rem); }
  .home .page { max-width: 86rem; }
  .stage { margin: 0 calc(var(--gutter) * -1) 0 0; padding: 2rem var(--gutter) 1rem 0; gap: 1.75rem; }
  .stage figure { flex-basis: 13.5rem; margin-top: 3.5rem; }
  .stage figure.lead { flex-basis: 15.5rem; }
}
@media (max-width: 720px) {
  .stage {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    gap: 1.25rem;
    padding-bottom: 2rem;
  }
  .stage figure, .stage figure.lead { flex: 0 0 15.5rem; margin-top: 0; scroll-snap-align: start; }
  .stage figure.lead { order: -1; }
  .stage::after { content: ""; flex: 0 0 1px; }
}

/* Text pages: privacy, support, 404 */
.text main { max-width: 40rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.text h1 { font-size: clamp(2.25rem, 5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: 1.3125rem; margin: 2.75rem 0 0.5rem; }
p, ul { margin: 0 0 1.25rem; }
main ul { padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }
.text .lede { color: var(--ink); max-width: none; font-size: 1.1875rem; margin-bottom: 1.25rem; }
.date { color: var(--muted); margin-bottom: 2.5rem; }
a { color: var(--coral-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 3px solid var(--coral-text); outline-offset: 3px; border-radius: 4px; }

footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; }
footer li, footer p { margin: 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }
