/*
 * meettheparents.io
 *
 * The look is the designer's final design (`docs/design/v4`): Outfit
 * throughout, coral #FE5A3D for every action and headline accent, peach for
 * the softer fills, the cream and the coral-over-peach waves of the social
 * banners. Someone who installs the app after reading this site should not
 * feel they have arrived somewhere else.
 *
 * Contrast rules that shape the layout:
 *   - Coral on white is 3.1:1, so coral type is only ever large (headline
 *     accents). On cream it drops under 3:1, so cream sections set headlines
 *     in ink and let the hearts and waves carry the colour.
 *   - White on coral is 3.1:1: white type on coral is bold and at least
 *     19px. Small type on coral is ink (4.6:1).
 *   - Small coral type (links, eyebrows) uses coral-deep, 4.8:1 on white.
 *
 * No framework, no build step for the styles, no inline styles anywhere (the
 * content security policy forbids them).
 */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/v2/fonts/outfit-400.woff2") format("woff2"),
       url("/assets/v2/fonts/outfit-400.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/v2/fonts/outfit-500.woff2") format("woff2"),
       url("/assets/v2/fonts/outfit-500.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/v2/fonts/outfit-600.woff2") format("woff2"),
       url("/assets/v2/fonts/outfit-600.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/v2/fonts/outfit-700.woff2") format("woff2"),
       url("/assets/v2/fonts/outfit-700.ttf") format("truetype");
}

/* ---------- tokens ---------- */
:root {
  --ink: #2F2930;
  --ink-deep: #111111;
  --muted: #6A635C;
  --coral: #FE5A3D;
  --coral-deep: #CA4429;
  --coral-soft: #F9B9B1;
  --peach: #FDC8B6;
  --petal: #FFB6A6;
  --peach-soft: #FFF1EC;
  --cream: #FEEECD;
  --cream-soft: #FDF7EF;
  --beige: #EBDAB6;
  --sand: #EFE7DE;
  --line: #E7DFD6;
  --white: #FFFFFF;

  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 136px);

  --r-tile: 20px;
  --r-card: 28px;
  --r-sheet: 44px;

  --shadow-soft: 0 1px 2px rgba(47, 41, 48, 0.06), 0 8px 24px -12px rgba(47, 41, 48, 0.18);
  --shadow-lift: 0 2px 6px rgba(47, 41, 48, 0.06), 0 24px 48px -24px rgba(47, 41, 48, 0.35);
  --shadow-phone: 0 50px 80px -40px rgba(47, 41, 48, 0.55), 0 18px 36px -18px rgba(47, 41, 48, 0.35);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

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

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible { outline-color: var(--cream); }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons, badges, links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font: 700 1.1875rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 10px 24px -12px rgba(254, 90, 61, 0.8);
}
.btn:hover { background: #F04E32; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--coral-soft); box-shadow: none; cursor: progress; }

.btn-ink {
  min-height: 44px;
  padding: 0 20px;
  background: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: none;
}
.btn-ink:hover { background: var(--ink-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--cream-soft); }

.btn-wide { width: 100%; }

.store-badge {
  display: inline-block;
  border-radius: 12px;
  line-height: 0;
  transition: transform 160ms ease;
}
.store-badge img { width: 168px; height: auto; }
.store-badge:hover { transform: translateY(-1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 160ms ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(47, 41, 48, 0.08);
}
.site-header.on-cream { background: rgba(254, 238, 205, 0.88); border-bottom-color: rgba(47, 41, 48, 0.06); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand img { width: 92px; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin-left: auto;
  font-size: 1rem;
  font-weight: 500;
}
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--coral); }
.header-cta { margin-left: 8px; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- shared section pieces ---------- */
.section { padding-block: var(--section); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--coral-deep);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 16px;
  background: url("/assets/v2/heart.svg") center / contain no-repeat;
}

h2 { font-size: clamp(2.15rem, 4.3vw, 3.5rem); }
h2 .accent, .accent { color: var(--coral); }
h2 > span { display: block; }

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  max-width: 36em;
}
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/*
 * The phone the screens are framed in: an iPhone in ink. The screens are the
 * app's own screenshots (iPhone 17 Pro, 1206 x 2622), island and all, so the
 * frame only adds the bezel; the corners are kept in proportion at any size.
 */
.phone {
  position: relative;
  width: 100%;
  max-width: 264px;
  padding: 9px;
  border-radius: 16.2% / 7.8%;
  background: #1B1718;
  box-shadow: var(--shadow-phone), inset 0 0 0 2px #3A3336;
}
.phone picture, .phone img { width: 100%; }
.phone img {
  height: auto;
  border-radius: 13.7% / 6.3%;
  background: var(--white);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}
.hero-hearts {
  position: absolute;
  z-index: -1;
  right: -60px; top: 40px;
  width: clamp(260px, 30vw, 440px);
  height: auto;
  transform: rotate(-30deg);
  opacity: 0.9;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: clamp(16px, 4vw, 56px);
}
.hero-copy {
  padding-top: clamp(48px, 7vw, 104px);
  padding-bottom: clamp(150px, 15vw, 240px);
}
.hero .eyebrow { color: var(--ink); }
.hero h1 {
  font-size: clamp(3.1rem, 7.2vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
@media (max-width: 420px) {
  /* "Make Love a" and its heart on one line, down to a 320px screen. */
  .hero h1 { font-size: 12.4vw; }
}
.hero h1 .line { display: block; }
.hero h1 .line-a { font-weight: 500; display: flex; align-items: flex-end; gap: 0.12em; }
.hero h1 .h1-heart { width: 0.86em; height: auto; flex: none; transform: translateY(-0.08em) rotate(-12deg); }
.hero .lead { color: var(--ink); max-width: 30em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 34px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  list-style: none;
}
.hero-meta li {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(47, 41, 48, 0.1);
  font-size: 0.9375rem;
  font-weight: 500;
}
.hero-visual {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 540px);
  margin-bottom: clamp(28px, 3.5vw, 52px);
}
/* The parents' film, standing in front of the waves. */
.hero-film {
  position: relative;
  z-index: 3;
  width: min(100%, 340px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-phone);
}
.hero-film-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-toggle {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(47, 41, 48, 0.55);
  color: var(--white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.film-toggle[hidden] { display: none; }
.film-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.film-toggle .icon-play, .is-paused .film-toggle .icon-pause { display: none; }
.is-paused .film-toggle .icon-play { display: block; }
.film-toggle:hover { background: rgba(47, 41, 48, 0.75); }
/* The ink line that loops behind the phone in the banners. */
.hero-loop {
  position: absolute;
  z-index: -1;
  left: -10%; top: -27%;
  width: 139%;
  height: auto;
  overflow: visible;
}
.waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(96px, 12.5vw, 196px);
  background: url("/assets/v2/waves.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.hero .waves { z-index: 2; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-visual {
    width: min(78%, 320px);
    margin-top: 16px;
    margin-bottom: 40px;
  }
  .hero-hearts { right: -150px; top: auto; bottom: 170px; width: 300px; opacity: 0.7; }
  .hero-loop { display: none; }
}

/* ---------- facts band ---------- */
.facts {
  background: var(--coral);
  color: var(--white);
  padding-block: 8px 44px;
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 32px;
  list-style: none;
}
.facts-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}
.facts-list svg {
  flex: none;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  stroke: var(--white);
}
@media (max-width: 1000px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .facts-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(44px, 6vw, 72px);
  list-style: none;
  counter-reset: step;
}
.step { display: grid; justify-items: center; align-content: start; gap: 28px; }
.step .phone { max-width: 252px; }
.step:nth-child(even) .phone { margin-top: 48px; }
.step-text { max-width: 300px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.step h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 64px; }
  .step:nth-child(even) .phone { margin-top: 0; }
}
@media (max-width: 640px) {
  /* A row to swipe through, each step peeking at the next. */
  .steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 28px;
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: center; justify-items: start; }
  .step .phone { max-width: 230px; justify-self: center; }
}
.swipe-hint { display: none; }
@media (max-width: 640px) {
  .swipe-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9375rem;
    text-align: center;
  }
}

/* ---------- the two audiences ---------- */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; margin: 0; }
.split-media::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 10%;
  z-index: -1;
  border-radius: var(--r-sheet);
  background: var(--peach-soft);
}
.split.reverse .split-media::before { inset: 8% 10% -6% -6%; background: var(--cream-soft); }
.split-media picture img {
  width: 100%;
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-lift);
}
.split { isolation: isolate; overflow-x: clip; }
.float-chip {
  position: absolute;
  left: -18px; bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-lift);
  font-weight: 600;
  font-size: 1rem;
}
.split.reverse .float-chip { left: auto; right: -18px; }
.float-chip svg, .float-chip img { width: 26px; height: auto; flex: none; }
.ticks {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 40px;
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.12em;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: var(--coral) url("/assets/v2/tick.svg") center / 14px no-repeat;
}
.how + .split, .split + .split { padding-top: 0; }
@media (max-width: 860px) {
  .split-grid { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 520px; }
  .float-chip, .split.reverse .float-chip { left: 12px; right: auto; bottom: 16px; }
}

/* ---------- safety ---------- */
.safety {
  background: var(--ink);
  color: var(--cream-soft);
}
.safety .eyebrow { color: var(--peach); }
.safety .eyebrow::before { background-image: url("/assets/v2/heart-light.svg"); }
.safety h2 .accent { color: var(--peach); }
.safety .lead { color: rgba(253, 247, 239, 0.78); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 5vw, 60px);
  list-style: none;
}
.card {
  padding: 30px 28px 32px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card svg {
  width: 48px; height: 48px;
  padding: 11px;
  border-radius: 16px;
  background: var(--coral);
  stroke: var(--white);
}
.card h3 { margin-top: 22px; font-size: 1.3125rem; color: var(--white); letter-spacing: -0.01em; }
.card p { margin-top: 10px; color: rgba(253, 247, 239, 0.78); font-size: 1.0625rem; }
.safety-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 44px;
}
.safety-links a { color: var(--white); }
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- questions ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: 120px; }
.faq-contact { margin-top: 28px; color: var(--muted); }
.faq-contact a { color: var(--coral-deep); font-weight: 600; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--peach-soft) url("/assets/v2/plus.svg") center / 14px no-repeat;
  transition: transform 200ms ease, background-color 200ms ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--peach); }
.faq-list summary:hover { color: var(--coral-deep); }
.faq-answer { padding: 0 56px 26px 4px; color: var(--muted); }
.faq-answer a { color: var(--coral-deep); font-weight: 500; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { position: static; }
  .faq-answer { padding-right: 4px; }
}

/* ---------- download band ---------- */
.download {
  position: relative;
  overflow: hidden;
  padding-top: clamp(96px, 12.5vw, 196px);
  isolation: isolate;
}
.download .waves { top: 0; bottom: auto; z-index: 0; }
.download-body {
  position: relative;
  background: var(--coral);
  color: var(--white);
}
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 32px;
}
.download-copy { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 112px); }
.download h2 { color: var(--white); font-size: clamp(2.4rem, 5vw, 4rem); }
.download-copy p {
  margin-top: 18px;
  font-size: 1.3125rem;
  font-weight: 700;
  max-width: 26em;
}
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.download-actions .link-arrow { color: var(--white); }
.download-media {
  justify-self: center;
  width: min(100%, 300px);
  /* The phone rises into the waves, never past the top of the section. */
  margin-top: clamp(-150px, -10vw, -56px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.download-media .phone { max-width: none; }
@media (max-width: 860px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); }
  .download-copy { padding-bottom: 8px; }
  .download-media { width: min(64%, 260px); margin-top: 8px; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--cream);
  padding-block: clamp(56px, 7vw, 88px) 36px;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand img.logo { width: 140px; }
.footer-brand p { margin-top: 18px; max-width: 22em; color: var(--ink); }
.footer-brand .store-badge { margin-top: 22px; }
.footer-title {
  margin-bottom: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-links { display: grid; gap: 10px; list-style: none; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-base::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  border-top: 1px solid rgba(47, 41, 48, 0.14);
}
.footer-base .fine { font-size: 0.8125rem; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- legal documents ---------- */
/*
 * Read by two audiences with nothing in common: somebody deciding whether to
 * trust us with their child's photograph, and a reviewer checking a box. Both
 * want a readable measure and headings to scan.
 */
.doc-page { background: var(--white); }
.doc {
  max-width: 46rem;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 104px);
}
.doc-kicker { color: var(--coral-deep); font-weight: 600; font-size: 0.9375rem; margin-bottom: 14px; }
.doc h1 { font-size: clamp(2.4rem, 5.2vw, 3.4rem); letter-spacing: -0.03em; }
.doc .effective {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.doc h2 {
  margin: 2.3em 0 0.6em;
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}
.doc p, .doc li { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.35em; margin: 0 0 1.3em; }
.doc li { margin-bottom: 0.55em; padding-left: 0.2em; }
.doc li::marker { color: var(--coral); }
.doc a { color: var(--coral-deep); text-underline-offset: 2px; }
.doc code {
  padding: 0.12em 0.45em;
  border-radius: 6px;
  background: var(--peach-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 3.2rem 0 1.6rem; }
.doc .contact { color: var(--muted); font-size: 0.96rem; }
.docnav, .doc .docnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.doc .docnav li { margin: 0; padding: 0; }
.docnav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.docnav a:hover { border-color: var(--ink); }
.docnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- small pages: waitlist, sign-in link, QR, not found ---------- */
.plain-page { background: var(--cream); min-height: 100vh; display: flex; flex-direction: column; }
.plain-page main { flex: 1; }
.plain-main {
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(140px, 16vw, 220px);
  position: relative;
}
.plain-main > .waves { z-index: 0; }
.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--r-sheet);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}
.panel.center { text-align: center; }
.panel-mark { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 16px; }
.panel h1 { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -0.03em; }
.panel .lead { margin-top: 12px; font-size: 1.125rem; }
.panel.center .lead { margin-inline: auto; }

.form { margin-top: 30px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 0.96rem; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 1.5px solid #CFC8C0;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem var(--font);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: #8D8580; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(254, 90, 61, 0.22); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 26px; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--coral); }
.consent label { color: var(--muted); }
.status { margin-top: 16px; min-height: 1.5em; font-size: 0.98rem; }
.status.err { color: #B3261E; }
.done { display: none; text-align: center; padding: 24px 0 8px; }
.done.shown { display: grid; gap: 14px; justify-items: center; }
.done p { color: var(--muted); }
.form-view.hidden { display: none; }
.iphone-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.iphone-note p { font-weight: 600; max-width: 15em; }

.qr-code {
  width: 100%;
  max-width: 300px;
  margin: 26px auto 10px;
  border-radius: 18px;
}
.qr-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.96rem;
  color: var(--muted);
  word-break: break-all;
}
.qr-actions { display: grid; gap: 12px; margin-top: 26px; }

.signin-actions { margin-top: 28px; display: grid; justify-items: center; gap: 18px; }
.signin-actions p { color: var(--muted); font-size: 0.96rem; }

.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .waves, .skip, .no-print, .docnav { display: none !important; }
  body, .plain-page { background: #fff; }
  .panel { box-shadow: none; padding: 0; }
  .doc { padding: 0; max-width: none; }
  .doc a { color: inherit; }
}
