/* Namesake website. Look matches the app's "gallery white" (namesake-spec.md,
   Theme.swift): white page, near-black ink, serif names (ui-serif is Apple's
   New York, the app's own face), pastel tag pills, one pink accent used only
   where the app uses it (agreement badges, hearts).

   Systems, so nothing drifts:
   - Spacing: sections are separated by --section (88px phone, 128px desktop).
     Inside a section: 12 / 20 / 32 / 48.
   - Radius: cards and panels 24px, buttons, pills and chips fully round.
   - Text: --ink headings, --body paragraphs, --muted only for small notes. */

:root {
  --ink: #161616;
  --body: #474747;
  --muted: #6e6e6e;
  --faint: #9a9a9a;
  --hairline: #ebebeb;
  --paper: #ffffff;
  --card: #ffffff;
  --pill: #f3f3f3;
  --pink: #f7a8c2;
  --pink-deep: #d65a82;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --max: 1100px;
  --section: 88px;
  --shadow-card: 0 2px 4px rgba(30, 20, 40, .04), 0 14px 36px rgba(30, 20, 40, .12);
  --stage: linear-gradient(160deg, #efedf8 0%, #f6eef0 55%, #f7ece7 100%);
  --shadow-soft: 0 1px 2px rgba(40, 30, 50, .04), 0 8px 20px rgba(40, 30, 50, .06);
}
@media (min-width: 960px) { :root { --gutter: 32px; --section: 128px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 6.6vw, 42px); max-width: 18em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 680px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section-sub { color: var(--body); margin-top: 12px; max-width: 34em; }

/* ---------- header ---------- */
/* Sticky header: slides away while you scroll down, comes back as soon as you
   scroll up (site.js toggles .hidden). */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  max-width: none; margin: 0; height: 64px;
  padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.site-header.raised { box-shadow: 0 1px 0 var(--hairline); }
.site-header.hidden { transform: translateY(-100%); }
.wordmark { font: 600 22px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.header-link { display: none; font: 600 15px/1 var(--sans); text-decoration: none; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(22,22,22,.14); }
.header-link:hover { border-color: var(--ink); }
@media (min-width: 960px) { .header-link { display: inline-block; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  background: var(--ink); color: #fff;
  font: 600 17px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(.98); }
.btn-note { margin-top: 10px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-block; margin-top: 32px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link::after { content: " \2192"; }

/* ---------- hero ---------- */
.hero { padding-top: 24px; }
.hero h1 { font-size: clamp(40px, 10.5vw, 72px); line-height: 1.04; letter-spacing: -0.025em; max-width: 11em; padding-bottom: 4px; }
.hero h1 em { font-style: italic; font-weight: 400; }
/* Headlines and the card lines are serif (the app's writing face). Everything
   you read in a paragraph is Wix Madefor Text, a clean, readable sans. */
.hero .lede { margin-top: 22px; font: 400 clamp(20px, 5vw, 23px)/1.45 var(--sans); color: var(--ink); max-width: 27em; }
.cta { margin-top: 28px; }
/* A name card, as on the back of the card in the app. */
/* App look: 24px corners, a faint hairline and a soft shadow. App things sit
   on the blush "stage" (the App Store screenshots' background); words sit on
   white. That contrast is what makes the white cards read as cards. */
.namecard {
  background: var(--card); border: 1px solid rgba(0, 0, 0, .05); border-radius: 24px;
  box-shadow: var(--shadow-card); padding: 28px 24px;
}
.nc-short { font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nc-name { font: 500 40px/1 var(--serif); letter-spacing: -0.02em; margin-top: 10px; }
.nc-short + .nc-name { margin-top: 12px; }
.nc-line { font: italic 400 18px/1.5 var(--serif); color: var(--body); margin-top: 14px; }
/* Phones: one row you swipe sideways, the next card peeking in from the right.
   The row runs to the screen edges; padding keeps the first card on the gutter. */
.hero-cards {
  list-style: none; margin: 40px calc(-1 * var(--gutter)) 0; padding: 32px var(--gutter) 44px;
  background: var(--stage);
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hero-cards::-webkit-scrollbar { display: none; }
.hero-cards .namecard { scroll-snap-align: start; }
@media (min-width: 960px) {
  .hero-cards { margin: 64px 0 0; padding: 48px; border-radius: 32px; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; gap: 24px; overflow: visible; }
}

/* ---------- the App Store preview video ----------
   A full-width band whose gradient copies the video's own background
   (sampled: peach #ebd5ca bottom left, pink #f3e7ea, lavender #efedfd top
   right), so the video sits in its world instead of floating on white. */
.watch {
  margin-top: var(--section); padding: 72px 0 80px; text-align: center;
  background: linear-gradient(to top right, #ebd5ca 0%, #f3e7ea 50%, #efedfd 100%);
}
.watch h2 { margin: 0 auto; }
.watch .section-sub { margin: 12px auto 0; max-width: 28em; }
.watch-video { width: min(270px, 72vw); margin: 40px auto 0; }
.watch-video video { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 2px 6px rgba(80,40,60,.06), 0 24px 60px rgba(80,40,60,.16); background: #f3eef2; }
@media (min-width: 960px) { .watch { padding: 96px 0 104px; } .watch-video { width: 320px; margin-top: 48px; } }

/* ---------- real names ----------
   One blush panel, centered, the two numbers side by side with a hairline
   between, like a stat strip. */
.real { padding-top: var(--section); }
.real-box { background: var(--stage); border-radius: 28px; padding: 40px 24px; text-align: center; }
.real-box h2 { margin: 0 auto; }
.real-box .section-sub { margin: 12px auto 0; max-width: 30em; }
.stats { margin: 32px auto 0; display: grid; grid-template-columns: 1fr 1fr; max-width: 640px; }
.stats > div { padding: 0 12px; }
.stats > div + div { border-left: 1px solid rgba(22,22,22,.12); }
.stats dt { font: 500 clamp(36px, 10vw, 56px)/1 var(--serif); letter-spacing: -0.02em; }
.stats dd { margin: 10px auto 0; color: var(--body); font-size: 15px; line-height: 1.45; max-width: 15em; }
@media (min-width: 960px) {
  .real-box { padding: 64px 48px; border-radius: 32px; }
  .stats dd { font-size: 17px; max-width: 19em; }
}

/* ---------- feature sections: words left, the thing itself right ---------- */
.feature { padding-top: var(--section); display: grid; gap: 32px; }
.feature-text p { color: var(--body); margin-top: 16px; max-width: 30em; }
.feature-text .aside { font: italic 400 19px/1.4 var(--serif); color: var(--ink); }
.feature-visual { width: 100%; background: var(--stage); border-radius: 28px; padding: 32px 20px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 500px; gap: 80px; align-items: center; }
  .feature-visual { padding: 48px 40px; border-radius: 32px; }
  .feature-text { max-width: 30em; }
}
.defs { margin: 24px 0 0; display: grid; gap: 16px; }
.defs dt { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.defs dd { margin: 4px 0 0; color: var(--body); }

.label { margin: 22px 0 10px; font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.namecard.back { text-align: center; }
.namecard.back .nc-name { margin-top: 0; }
.chart { margin: 20px 0 0; }
.chart svg { width: 100%; height: 56px; display: block; }
.chart path { fill: none; stroke: var(--ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); margin-top: 6px; }
.chart figcaption { font: italic 400 15px/1.3 var(--serif); color: var(--muted); margin-top: 8px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill { display: inline-block; padding: 7px 14px; background: var(--pill); border-radius: 999px; font: 500 14px/1.2 var(--sans); }

/* Panels: drawn versions of app screens, no screenshots. */
.panel { background: var(--card); border: 1px solid rgba(0, 0, 0, .05); border-radius: 24px; box-shadow: var(--shadow-card); padding: 24px; }
.panel-title { font: 500 22px/1 var(--serif); text-align: center; margin-bottom: 12px; }
.ranking ol { list-style: none; margin: 0; padding: 0; }
.ranking li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.rk-name { font: 500 21px/1 var(--serif); flex: 1; }
.grip { width: 10px; height: 14px; flex: none; background: radial-gradient(circle, #c4c4c4 1.2px, transparent 1.6px) 0 0 / 5px 5px; }
.badge { font: 600 12px/1 var(--sans); padding: 5px 10px; border-radius: 999px; color: var(--pink-deep); box-shadow: inset 0 0 0 1px var(--pink-deep); white-space: nowrap; }
.badge.topFive, .badge.topTen { color: rgba(214, 90, 130, .65); box-shadow: inset 0 0 0 1px rgba(214, 90, 130, .65); }
.badge.one { font: italic 500 14px/1 var(--serif); padding: 5px 12px; }

.filters .chips { justify-content: center; }
.filter-names { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font: 500 24px/1.15 var(--serif); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--pill); font: 500 13px/1.2 var(--sans); }
.chip.on { background: var(--ink); color: #fff; }

.namecard.sign { text-align: center; padding-top: 32px; }
.constellation { width: 96px; height: 64px; display: block; margin: 0 auto 16px; }
.constellation line { stroke: var(--ink); stroke-width: .8; opacity: .55; }
.constellation circle { fill: var(--ink); }

/* ---------- the rest ---------- */
.more { padding-top: var(--section); }
.grid { margin: 32px 0 0; display: grid; gap: 28px; }
.grid dt { font: 500 22px/1.2 var(--serif); }
.grid dd { margin: 6px 0 0; color: var(--body); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 40px 48px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- closing ---------- */
.closing { padding-top: var(--section); text-align: center; }
.closing h2 { font-size: clamp(36px, 8.4vw, 58px); line-height: 1.06; margin: 0 auto; max-width: 12em; padding-bottom: 4px; }
.closing h2 em { font-style: italic; font-weight: 400; }
.closing .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: var(--section); padding: 40px 0 120px; color: var(--muted); font-size: 15px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 16px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { text-decoration: underline; }

/* ---------- QR dialog (computers only, opened from any App Store button) ---------- */
.qr-dialog {
  width: min(340px, calc(100vw - 32px)); padding: 40px 32px 32px; border: 0; border-radius: 24px;
  background: var(--card); color: var(--ink); text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.qr-dialog::backdrop { background: rgba(22, 22, 22, .35); }
.qr-dialog[open] { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qr-title { font: 500 24px/1.15 var(--serif); letter-spacing: -0.01em; }
.qr-dialog img { width: 200px; height: 200px; margin: 24px auto 0; }
.qr-hint { margin-top: 16px; color: var(--body); font-size: 15px; }
.qr-link { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--muted); }
.qr-link:hover { color: var(--ink); }
.qr-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.qr-close:hover { background: var(--pill); }
.qr-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; fill: none; }

/* ---------- sticky phone CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 72%, rgba(255,255,255,0));
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* ---------- text pages (FAQ, privacy, support, lists) ---------- */
.page { padding-top: 40px; }
.page h1 { font-size: clamp(38px, 8.6vw, 54px); line-height: 1.04; }
.page .sub { color: var(--body); margin-top: 14px; font-size: 19px; }
.prose { margin-top: 40px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.faq-item { border-top: 1px solid var(--hairline); padding: 24px 0; }
.faq-item h2 { font-size: 22px; margin: 0 0 8px; }
.inline-cta { margin-top: 56px; padding: 36px 24px; text-align: center; background: var(--pill); border-radius: 24px; }
.inline-cta p { font: italic 400 22px/1.3 var(--serif); margin-bottom: 20px; }
.entry { border-top: 1px solid var(--hairline); padding: 32px 0; }
.entry-name { font-size: 40px; line-height: 1; }
.entry-line { font: italic 400 19px/1.45 var(--serif); color: var(--body); margin-top: 14px; }
.entry .chart { margin: 20px 0 0; max-width: 420px; }

:focus-visible { outline: 2px solid var(--pink-deep); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.caps { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
