/* Firstnames — firstnames-app.com
   Colours are the app's own (Resources/Assets.xcassets) plus the three bands of its icon. */

:root {
  --bg: #F6F1E8;
  --surface: #FDF9F2;
  --surface-2: #EFE8DC;
  --ink: #2C2929;
  --ink-2: #66625A;
  --ink-3: #8C877D;
  --line: rgba(44, 41, 41, 0.1);
  --terracotta: #B85E40;
  --sage: #8F957D;
  --sage-soft: #E3E5DA;
  --forest: #262A23;
  --forest-2: #31362D;
  --pearl: #F2EADC;
  --peach: #E9B99D;
  --mint: #BACDBF;

  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, "New York", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius-l: 28px;
  --radius-m: 18px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

em.mark { font-style: normal; color: var(--terracotta); }

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

.display {
  font-weight: 800;
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--ink-2);
  max-width: 34em;
  margin: 0;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- App Store badge ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 7px 18px 7px 14px;
  background: #000; color: #fff; border-radius: 12px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; margin-top: -2px; }
.badge span { display: flex; flex-direction: column; line-height: 1; }
.badge small { font-size: 10.5px; font-weight: 500; letter-spacing: 0.01em; }
.badge strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.badge:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .badge:hover { background: #1d1d1d; transform: translateY(-1px); }
  .badge:hover:active { transform: scale(0.97); }
}
.badge--small { min-height: 40px; padding: 5px 13px 5px 11px; border-radius: 10px; gap: 7px; }
.badge--small svg { width: 19px; height: 19px; }
.badge--small small { font-size: 9px; }
.badge--small strong { font-size: 15.5px; }

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 22px; width: auto; }

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

.hero { padding: clamp(32px, 6vh, 72px) 0 0; overflow: hidden; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface-2);
}
.hero-pill img { width: 24px; height: 24px; border-radius: 6px; }

/* entrance, once on load */
.enter { opacity: 0; transform: translateY(14px); filter: blur(6px); animation: enter 900ms var(--ease-out) forwards; }
.display .word { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(8px); animation: enter 900ms var(--ease-out) forwards; }
@keyframes enter { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Try it: the swipe deck ---------- */

.hero { text-align: left; padding-bottom: clamp(56px, 9vh, 104px); }
.hero-grid { display: grid !important; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.hero-copy .lede { margin: 0; }

.try { display: grid; gap: 16px; width: 100%; max-width: 400px; justify-self: center; }
.try-field { display: grid; gap: 7px; }
.try-field span { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.try-field input {
  font: inherit; font-size: 17px; font-weight: 500; color: var(--ink);
  min-height: 52px; padding: 0 18px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.try-field input::placeholder { color: var(--ink-3); }
.try-field input:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(184, 94, 64, 0.14); }

.tdeck { position: relative; aspect-ratio: 4 / 4.6; border-radius: 30px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tdeck:focus-visible { outline-offset: 6px; border-radius: 30px; }
.tdeck-cards { position: absolute; inset: 0; }

.tcard {
  position: absolute; inset: 0; border-radius: 28px; padding: 24px 24px 22px;
  display: flex; flex-direction: column; background: var(--surface);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 24px 50px -28px rgba(44, 41, 41, 0.45);
  transform-origin: 50% 90%;
  transition: transform 420ms var(--ease-out), opacity 300ms ease, background-color 300ms ease;
  will-change: transform;
}
.tcard[data-depth="1"] { transform: translateY(14px) scale(0.95); background: var(--surface-2); box-shadow: none; }
.tcard[data-depth="2"] { transform: translateY(28px) scale(0.9); background: var(--surface-2); box-shadow: none; opacity: 0.7; }
.tcard[data-depth="3"] { transform: translateY(28px) scale(0.9); opacity: 0; }
.tcard[data-depth="1"] > *, .tcard[data-depth="2"] > *, .tcard[data-depth="3"] > * { visibility: hidden; }
.tcard.is-dragging { transition: none; cursor: grabbing; }
.tcard[data-depth="0"] { cursor: grab; }

.tcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tcard .meta { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.speak {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.speak svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.speak:active { transform: scale(0.94); }
.speak.is-playing { background: var(--terracotta); color: #fff; }
@media (hover: hover) and (pointer: fine) { .speak:hover { color: var(--terracotta); } }

.tcard .full { margin-top: auto; font-family: var(--serif); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; font-size: var(--fs, 64px); overflow-wrap: anywhere; }
.tcard .full .last { color: var(--ink-3); display: inline; }
.tcard .full .last:empty { display: none; }
.tcard .say { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; color: var(--ink-3); margin-top: 10px; }
.tcard .chips { margin-top: 14px; }
.tcard .chip { padding: 6px 11px; font-size: 13px; }
.tcard .chip[hidden] { display: none; }
.tcard .means { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }

.tcard .stamp { top: 76px; left: 22px; }
.tcard .stamp.no { left: auto; right: 22px; border-color: var(--terracotta); color: var(--terracotta); transform: rotate(12deg) scale(0.9); }
.tcard .stamp { opacity: var(--yes, 0); transform: rotate(-12deg) scale(calc(0.9 + 0.1 * var(--yes, 0))); transition: none; }
.tcard .stamp.no { opacity: var(--no, 0); transform: rotate(12deg) scale(calc(0.9 + 0.1 * var(--no, 0))); }

.tdeck-actions { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 18px; }
.act {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface);
  box-shadow: 0 8px 20px -10px rgba(44, 41, 41, 0.35);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.act svg { width: 24px; height: 24px; }
.act.no svg { fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; }
.act.yes { background: var(--sage); }
.act.yes svg { fill: #fff; }
.act:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .act:hover { transform: translateY(-2px); } .act:hover:active { transform: scale(0.92); } }
.act:disabled { opacity: 0.35; cursor: default; transform: none; }
.tdeck-count { min-width: 56px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tdeck-done {
  position: absolute; inset: 0; border-radius: 28px; padding: 30px;
  background: var(--forest); color: var(--pearl);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  animation: done-in 600ms var(--ease-out) both;
}
.tdeck-done[hidden] { display: none; }
@keyframes done-in { from { opacity: 0; transform: scale(0.96); } }
.done-title { margin: 0; font-family: var(--serif); font-size: clamp(30px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.02em; }
.done-title em { font-style: normal; color: var(--peach); }
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.tdeck-done .badge { background: #000; }
.tdeck-actions.is-finished { visibility: hidden; }
.done-text { margin: 0; color: color-mix(in srgb, var(--pearl) 72%, transparent); }
.again {
  min-height: 48px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--pearl) 35%, transparent); background: transparent; color: var(--pearl); font-weight: 700;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.again:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .again:hover { background: rgba(242, 234, 220, 0.1); } }

/* ---------- How it works: pinned steps ---------- */

.how { position: relative; height: 320vh; background: var(--bg); transition: background-color 700ms ease; }
.how.is-dark { background: var(--forest); color: var(--pearl); }
.how-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: 68px; }
@media (min-width: 901px) { .how-pin .phone { height: min(680px, calc(100svh - 140px)); width: auto; max-width: none; } }
.how-grid { display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: clamp(32px, 7vw, 120px); align-items: center; }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; max-width: 30em; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 16px; align-items: start; font-size: 18px; line-height: 1.45; opacity: 0.4; transition: opacity 400ms ease; }
.steps li.is-on { opacity: 1; }
.steps .num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: color-mix(in srgb, currentColor 14%, transparent);
  transition: background-color 400ms ease, color 400ms ease;
}
.steps li.is-on .num { background: var(--terracotta); color: #fff; }

/* the phone, drawn in HTML */
.phone {
  position: relative; width: 100%; max-width: 330px; aspect-ratio: 9 / 19; margin: 0 auto;
  border-radius: 52px; padding: 11px; background: #121411;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 40px 80px -30px rgba(0,0,0,0.45);
}
.screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--bg); color: var(--ink);
  display: flex; flex-direction: column; padding: 54px 18px 22px;
}
.screen::before { /* the island */
  content: ""; position: absolute; top: 12px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #121411;
}
.screen-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.screen-head .who { display: inline-flex; align-items: center; gap: 7px; }
.screen-head .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--sage); transition: background-color 400ms ease; }
.screen-head .who-b { display: none; }
.how[data-step="2"] .screen-head .dot { background: var(--terracotta); }
.how[data-step="2"] .who-a, .how[data-step="3"] .who-a { display: none; }
.how[data-step="2"] .who-b { display: inline; }

.deck { position: relative; flex: 1; margin-top: 18px; }
.deck-card {
  position: absolute; inset: 0; border-radius: 26px; padding: 22px;
  background: var(--surface); box-shadow: 0 18px 40px -22px rgba(44,41,41,0.35);
  display: flex; flex-direction: column;
  transition: transform 700ms var(--ease-out), opacity 500ms ease;
}
.deck-card.under { transform: scale(0.94) translateY(14px); background: var(--surface-2); box-shadow: none; }
.deck-card .meta { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.deck-card .nm { font-family: var(--serif); font-weight: 500; font-size: 58px; line-height: 1; letter-spacing: -0.02em; margin-top: auto; }
.deck-card .say { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 8px; }
.deck-card .means { font-size: 14px; color: var(--ink-2); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.stamp {
  position: absolute; top: 56px; left: 20px; padding: 4px 12px; border-radius: 10px;
  border: 2.5px solid var(--sage); color: var(--sage); font-weight: 800; font-size: 20px; letter-spacing: 0.04em;
  transform: rotate(-12deg) scale(0.9); opacity: 0; transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.how[data-step="1"] .top-card, .how[data-step="2"] .top-card { transform: translateX(18%) rotate(7deg); }
.how[data-step="1"] .top-card .stamp, .how[data-step="2"] .top-card .stamp { opacity: 1; transform: rotate(-12deg) scale(1); }

.deck-actions { display: flex; justify-content: center; gap: 22px; margin-top: 18px; }
.deck-actions span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 6px 16px -8px rgba(44,41,41,0.3); }
.deck-actions svg { width: 22px; height: 22px; }
.deck-actions .yes { background: var(--sage); }
.deck-actions .yes svg { fill: #fff; }
.deck-actions .no svg { stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; fill: none; }

.match {
  position: absolute; inset: 0; z-index: 4; border-radius: 42px;
  background: var(--forest-2); color: var(--pearl);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px;
  opacity: 0; transform: scale(1.04); transition: opacity 500ms ease, transform 700ms var(--ease-out);
}
.how[data-step="3"] .match { opacity: 1; transform: none; }
.match .pill { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--terracotta); color: #fff; }
.match .nm { font-family: var(--serif); font-size: 72px; line-height: 1; letter-spacing: -0.02em; margin-top: 8px; }
.match p { margin: 0; font-size: 15px; opacity: 0.75; }
.match .hearts { display: flex; gap: 6px; margin-top: 10px; }
.match .hearts span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff; }
.match .hearts span:first-child { background: var(--sage); }
.match .hearts span:last-child { background: var(--terracotta); }

/* ---------- Sections ---------- */

.section { padding: clamp(96px, 14vh, 160px) 0; }
.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head .lede { margin: 0 auto; }

/* everywhere they go */
.scenes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scene { margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.scene img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.scene:nth-child(even) { transform: translateY(40px); }
@media (hover: hover) and (pointer: fine) {
  .scene:hover img { transform: scale(1.03); }
}

/* features */
.features { background: var(--surface-2); }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--surface); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 10px; min-height: 380px;
}
.card h3 { margin: 0; font-size: clamp(22px, 2vw, 26px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.card p { margin: 0; color: var(--ink-2); max-width: 30em; }
.card .visual { margin-top: auto; padding-top: 28px; }

.v-lastname { display: grid; gap: 14px; }
.v-lastname .full { font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.v-lastname .full span { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; padding: 8px 13px; border-radius: 999px; background: var(--sage-soft); color: #4E5340; }
.chip svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.v-chart svg { width: 100%; height: auto; overflow: visible; }
.v-chart .axis { font-size: 12px; fill: var(--ink-3); font-family: var(--sans); font-weight: 600; }
.v-chart .label { font-size: 13px; font-family: var(--sans); font-weight: 700; fill: var(--ink); }
.v-chart .line { fill: none; stroke: var(--terracotta); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.v-chart.is-drawn .line { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms var(--ease-in-out); }
.v-chart .area { fill: url(#fade); opacity: 0; transition: opacity 800ms ease 900ms; }
.v-chart.is-drawn .area { opacity: 1; }

.v-say { display: flex; align-items: center; gap: 18px; }
.play {
  flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--terracotta); color: #fff; display: grid; place-items: center;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.play:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .play:hover { background: #a65236; } }
.play.is-playing { animation: pulse 1.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(184,94,64,0.45); } 100% { box-shadow: 0 0 0 18px rgba(184,94,64,0); } }
.v-say .full { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.v-say .resp { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); margin-top: 6px; }

.v-family { display: grid; gap: 10px; }
.fam-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.fam-row .nm { font-family: var(--serif); font-size: 26px; line-height: 1; }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; border: 2px solid var(--bg); margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.a1 { background: var(--sage); } .a2 { background: var(--terracotta); } .a3 { background: #9C8B6E; } .a4 { background: #6F7C8A; }
.fam-row .heart { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--terracotta); }
.fam-row .heart svg { width: 15px; height: 15px; fill: currentColor; }

/* privacy band */
.private { background: var(--forest); color: var(--pearl); }
.private-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.private .lede { color: color-mix(in srgb, var(--pearl) 72%, transparent); margin-top: 22px; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.facts svg { width: 20px; height: 20px; flex: none; stroke: var(--mint); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.private-photo { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; }
.private-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .h2 { position: sticky; top: 110px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--terracotta), var(--terracotta)) center / 100% 2px no-repeat,
              linear-gradient(var(--terracotta), var(--terracotta)) center / 2px 100% no-repeat;
  transition: transform 260ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; color: var(--ink-2); }
.faq .answer p { margin: 0; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--terracotta); } }

/* close */
.close { text-align: center; padding: clamp(110px, 18vh, 200px) 0; }
.close .wrap { display: grid; justify-items: center; gap: 28px; }
.close .fine { font-size: 14px; color: var(--ink-3); margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-top .about { max-width: 30em; display: grid; gap: 14px; }
.foot-top .about img { height: 20px; width: auto; }
.foot-top .about p { margin: 0; }
.foot-links { display: flex; gap: 6px 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; align-items: flex-start; }
.foot-links a, .foot-bottom a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat; transition: background-size 260ms var(--ease-out), color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover, .foot-bottom a:hover { color: var(--ink); background-size: 100% 1px; } }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); align-items: center; }

/* ---------- Legal pages ---------- */

.doc { padding: clamp(48px, 9vh, 96px) 0 clamp(80px, 12vh, 140px); }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { font-weight: 800; font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.04; margin: 0 0 12px; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc a { color: var(--terracotta); text-underline-offset: 3px; }
.doc .todo { background: #F4DCCB; color: #7A3A24; padding: 2px 6px; border-radius: 6px; font-weight: 600; }
.doc address { font-style: normal; color: var(--ink-2); line-height: 1.7; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .lede { margin: 0 auto; }
  .how { height: auto; }
  .how-pin { position: static; height: auto; padding: 96px 0; }
  .how-grid { grid-template-columns: 1fr; }
  .how .phone { max-width: 290px; }
  .scenes { grid-template-columns: repeat(2, 1fr); }
  .scene:nth-child(even) { transform: none; }
  .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .private-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .h2 { position: static; }
  .private-photo { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 60px; }
  .brand img { height: 19px; }
  .tcard { padding: 20px 20px 18px; }
  .scenes { gap: 10px; }
  .scene { border-radius: var(--radius-m); }
  .faq .answer { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .enter, .display .word { animation: none; opacity: 1; transform: none; filter: none; }
  .tcard { transition: none; }
  .deck-card, .stamp, .match, .how, .steps li, .v-chart .line, .v-chart .area, .scene img { transition: none !important; }
  .v-chart .line { stroke-dashoffset: 0; }
  .v-chart .area { opacity: 1; }
}

/* very narrow phones: keep the header on one line */
.badge span { white-space: nowrap; }
.hero-pill { white-space: nowrap; }
@media (max-width: 360px) {
  .brand img { height: 17px; }
  .badge--small { padding: 5px 11px 5px 9px; }
  .badge--small small { display: none; }
  .hero-pill { font-size: 13px; }
}
