/* Ship Name Generator landing page.
   Ported from the claude.ai Design canvas (Landing.dc.html, Landing-Mobile.dc.html) and the
   tokens in sng.css. Only the tokens and components this page uses are here, light and dark.
   Theme: assets/theme-init.js sets data-theme and the theme-dark class on <html> before paint;
   with JavaScript off the page follows prefers-color-scheme. */

/* ---------- Fonts (self-hosted, latin + latin-ext subsets, SIL OFL) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-display-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-text-400i.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/libre-caslon-text-700.woff2") format("woff2");
}

/* ---------- Tokens (from sng.css) ---------- */
:root {
  color-scheme: light;

  --rose-300: #f697ca;
  --rose-400: #ee6cb0;
  --rose-500: #e24897;
  --rose-600: #cc2f7f;
  --rose-700: #ab1f68;
  --plum-500: #9243c9;
  --plum-600: #7730aa;
  --plum-700: #5b2484;
  --plum-800: #3f1860;
  --coral-300: #ffb39b;
  --coral-500: #f56b5a;
  --ember-300: #ffb59e;
  --ember-500: #fb5f33;
  --iris-300: #bdb0ff;
  --iris-500: #7458f0;
  --iris-600: #5a3fd1;
  --gold-300: #f6cd86;
  --gold-400: #efb85f;
  --gold-500: #e3a23c;
  --ink-900: #271828;
  --ink-500: #7a6180;

  --colorAccent: var(--rose-700);
  --colorAccentLight: var(--rose-400);
  --accent-cool-ink: var(--iris-600);
  --primary_text: var(--ink-900);
  --secondary_text: var(--ink-500);
  --on-accent: #ffffff;
  --rating: var(--gold-500);
  --surface-app: #fdf7fc;
  --surface-card: #ffffff;
  --surface-alt: #faeef6;
  --hairline: #ecd0e2;
  --error: #c0264a;
  --state-hover: rgba(43, 24, 32, 0.06);
  --state-on-brand-hover: rgba(255, 255, 255, 0.12);
  --focus-ring: var(--plum-500);

  --grad-brand: linear-gradient(135deg, var(--rose-600) 0%, var(--plum-600) 100%);
  --grad-hero: radial-gradient(120% 90% at 50% 32%, var(--rose-700) 0%, var(--plum-700) 50%,
    var(--plum-800) 100%);
  --grad-cta: linear-gradient(118deg, var(--rose-600) 0%, var(--plum-600) 55%, var(--iris-600) 100%);
  --grad-merge: linear-gradient(120deg, var(--rose-600), var(--plum-500) 55%, var(--iris-500));
  --glow-rose: 0 0 48px rgba(204, 47, 127, 0.45);

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Libre Caslon Text", "Hoefler Text", "Big Caslon", Baskerville, Georgia, serif;
  --font-display-xl: "Libre Caslon Display", "Libre Caslon Text", "Big Caslon", Georgia, serif;
  --type-caption-size: 12px;
  --type-label-size: 14px;
  --type-body-size: 16px;
  --type-body-lg-size: 18px;
  --type-headline-size: 28px;
  --type-display-size: 44px;
  --type-display-lg-size: 68px;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --tracking-tight: -0.01em;
  --tracking-wide: 0.06em;
  --tracking-caps: 0.12em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --button_height: 52px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(43, 24, 32, 0.10), 0 1px 3px rgba(43, 24, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(43, 24, 32, 0.12), 0 2px 4px rgba(43, 24, 32, 0.08);
  --shadow-lg: 0 14px 38px rgba(43, 24, 32, 0.22), 0 6px 12px rgba(43, 24, 32, 0.12);

  --dur-quick: 140ms;
  --dur-base: 240ms;
  --dur-slow: 360ms;
  --dur-dramatic: 760ms;
  --ease-standard: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: linear(0, 0.063, 0.247, 0.51, 0.781 36.9%, 0.918, 1.012, 1.063, 1.077, 1.069,
    1.05, 1.032 67.1%, 1.007, 0.997, 0.994, 0.998, 1);
  --motion-shake-duration: 150ms;

  /* page-local ink: accent text that passes AA on both grounds */
  --w-ink: var(--colorAccent);
  --w-fine: rgba(255, 255, 255, 0.9); /* 4.99:1 on the lightest band stop, dark theme */
}

/* Dark theme: set by theme-init.js ... */
.theme-dark {
  color-scheme: dark;
  --colorAccent: #b82a78;
  --accent-cool-ink: var(--iris-300);
  --primary_text: #f7e8f4;
  --secondary_text: #c8a6c4;
  --rating: var(--gold-400);
  --surface-app: #150b18;
  --surface-card: #241430;
  --surface-alt: #2c1838;
  --hairline: #3c2440;
  --error: #ff7a93;
  --state-hover: rgba(255, 255, 255, 0.07);
  --focus-ring: var(--rose-300);
  --grad-hero: radial-gradient(120% 90% at 50% 32%, #b8267a 0%, #5e1768 48%, #34174e 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --w-ink: var(--rose-300);
}

/* ... or, with JavaScript off (no data-theme), by the system setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --colorAccent: #b82a78;
    --accent-cool-ink: var(--iris-300);
    --primary_text: #f7e8f4;
    --secondary_text: #c8a6c4;
    --rating: var(--gold-400);
    --surface-app: #150b18;
    --surface-card: #241430;
    --surface-alt: #2c1838;
    --hairline: #3c2440;
    --error: #ff7a93;
    --state-hover: rgba(255, 255, 255, 0.07);
    --focus-ring: var(--rose-300);
    --grad-hero: radial-gradient(120% 90% at 50% 32%, #b8267a 0%, #5e1768 48%, #34174e 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --w-ink: var(--rose-300);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0;
  background: var(--surface-app);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface-app);
  color: var(--primary_text);
  font-family: var(--font-ui);
  font-size: var(--type-body-size);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

.w-page { position: relative; overflow: clip; min-height: 100vh; }
.w-page a { color: var(--accent-cool-ink); text-decoration: none; }
.w-page a:hover { color: var(--w-ink); text-decoration: underline; text-underline-offset: 3px; }
.w-page :focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
.w-page svg { display: block; }
.w-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.w-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 var(--space-5); }

.w-page a.w-skip {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--primary_text);
  box-shadow: var(--shadow-md);
}
.w-page a.w-skip:focus { top: var(--space-3); }

/* ---------- Nav ---------- */
.w-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface-app) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.w-nav-in { display: flex; align-items: center; gap: var(--space-5); min-height: 64px; }
.w-page a.w-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-height: 44px;
  color: var(--primary_text);
}
.w-page a.w-brand:hover { text-decoration: none; color: var(--primary_text); }
.w-brand img { width: 30px; height: 30px; flex: none; display: block; }
.w-brand-name {
  font-family: var(--font-display);
  font-size: var(--type-body-lg-size);
  letter-spacing: var(--tracking-tight);
}
/* links carry their own 8px side padding (44px targets), so the gap shrinks to keep the look */
.w-navlinks { display: flex; align-items: center; gap: var(--space-2); }
.w-page .w-navlinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 var(--space-2);
  color: var(--secondary_text);
  font-size: var(--type-label-size);
}
.w-page .w-navlinks a:hover { color: var(--primary_text); text-decoration: none; }
.w-page .w-navlinks a.w-nav-cta {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: var(--on-accent);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.w-page .w-navlinks a.w-nav-cta:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
  box-shadow: var(--shadow-md);
}

/* theme switch: the sun shows in dark, the moon in light; hidden with JavaScript off */
.w-theme {
  margin: 0 var(--space-2);
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--primary_text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-quick) var(--ease-standard),
    transform var(--dur-quick) var(--ease-spring);
}
.w-theme:hover { background: var(--surface-alt); }
.w-theme:active { transform: scale(0.94); }
.w-page .w-theme:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}
.w-theme svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w-theme .i-sun { display: none; }
.theme-dark .w-theme .i-sun { display: block; }
.theme-dark .w-theme .i-moon { display: none; }
:root:not(.js) .w-theme { display: none; }
/* with JavaScript off the generator cannot run: the noscript line takes the card's place */
:root:not(.js) .w-card,
:root:not(.js) .w-skip { display: none; }

/* ---------- Hero ---------- */
.w-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) var(--space-5) var(--space-8);
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  text-align: center;
  scroll-margin-top: 70px;
}
.w-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 120%;
  background: radial-gradient(60% 50% at 50% 0%,
    color-mix(in srgb, var(--colorAccentLight) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.w-hero > * { position: relative; }
.w-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 17ch;
  text-wrap: balance;
}
/* The kicker sits inside the H1 (it carries the primary keyword) but looks like the canvas
   kicker line above the headline; its margin stands in for the hero grid gap. */
.w-kicker {
  display: block;
  margin: 0 auto var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--type-caption-size);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--w-ink);
  font-weight: var(--font-weight-medium);
  text-wrap: balance;
}
.w-h1 em {
  font-style: normal;
  white-space: nowrap;
  background: var(--grad-merge);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w-lede { max-width: 52ch; color: var(--secondary_text); font-size: var(--type-body-lg-size); }

.w-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.w-hearts span {
  position: absolute;
  display: block;
  opacity: 0;
  animation: w-float 9s var(--ease-standard) infinite;
}
.w-hearts svg {
  width: 100%;
  height: auto;
  fill: color-mix(in srgb, var(--colorAccentLight) 34%, transparent);
}
.w-hearts span:nth-child(1) { left: 6%; top: 18%; width: 26px; animation-delay: 0ms; }
.w-hearts span:nth-child(2) { left: 14%; top: 68%; width: 18px; animation-delay: 900ms; }
.w-hearts span:nth-child(3) { left: 82%; top: 24%; width: 30px; animation-delay: 1800ms; }
.w-hearts span:nth-child(4) { left: 91%; top: 62%; width: 20px; animation-delay: 2700ms; }
.w-hearts span:nth-child(5) { left: 24%; top: 86%; width: 16px; animation-delay: 3600ms; }
.w-hearts span:nth-child(6) { left: 70%; top: 80%; width: 24px; animation-delay: 4500ms; }
.w-hearts span:nth-child(7) { left: 46%; top: 8%; width: 14px; animation-delay: 5400ms; }
.w-hearts span:nth-child(8) { left: 58%; top: 92%; width: 18px; animation-delay: 6300ms; }
@keyframes w-float {
  0%, 100% { opacity: 0; transform: translateY(14px) scale(0.85); }
  30% { opacity: 1; }
  55% { opacity: 0.85; transform: translateY(-10px) scale(1); }
  80% { opacity: 0.25; }
}

/* ---------- Generator card ---------- */
.w-card {
  width: 100%;
  max-width: 720px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: left;
  overflow: hidden;
}
.w-card [hidden] { display: none; }
.w-card:focus { outline: none; }
.w-card { scroll-margin-top: 76px; } /* clears the sticky nav when brought into view */
.w-stage {
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) var(--space-5);
  animation: w-fadeup var(--dur-slow) var(--ease-decelerate) both;
}
@keyframes w-fadeup { from { opacity: 0; transform: translateY(10px); } }
.w-thread { display: grid; gap: var(--space-3); }
.w-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: w-fadeup var(--dur-base) var(--ease-decelerate) both;
}
.w-row.is-n0 { --node: var(--rose-500); }
.w-row.is-n1 { --node: var(--iris-500); }
.w-row.is-n2 { --node: var(--ember-500); }
.w-row.is-n3 { --node: var(--plum-500); }
.w-row.is-n4 { --node: var(--coral-500); }
.w-row.is-n5 { --node: var(--gold-500); }
.w-node {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--node, var(--rose-500));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--node, var(--rose-500)) 14%, transparent);
}
.w-node svg { width: 16px; height: 16px; fill: #fff; }
.w-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1.5px solid transparent;
  border-bottom-color: var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-3);
  min-height: var(--button_height);
  transition: border-color var(--dur-quick) var(--ease-standard),
    background-color var(--dur-quick) var(--ease-standard);
}
.w-field:focus-within { border-color: var(--w-ink); background: var(--surface-card); }
.w-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-ui);
  font-size: var(--type-body-lg-size);
  color: var(--primary_text);
  padding: 12px 0;
}
.w-field input::placeholder { color: var(--secondary_text); opacity: 1; }
.w-row.is-invalid .w-field {
  border-color: var(--error);
  animation: w-shake var(--motion-shake-duration) var(--ease-standard) 3;
}
@keyframes w-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
.w-drop {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  background: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--secondary_text);
  transition: background-color var(--dur-quick) var(--ease-standard),
    color var(--dur-quick) var(--ease-standard);
}
.w-drop svg { width: 16px; height: 16px; fill: currentColor; }
.w-drop:hover { background: var(--state-hover); color: var(--error); }
.w-err {
  color: var(--error);
  font-size: var(--type-caption-size);
  min-height: 18px;
  margin-top: var(--space-2);
}
.w-add {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: var(--space-2);
  border: 1.5px dashed var(--hairline);
  background: none;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  color: var(--w-ink);
  font-family: var(--font-ui);
  font-size: var(--type-label-size);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-standard),
    background-color var(--dur-quick) var(--ease-standard);
}
.w-add svg { width: 14px; height: 14px; fill: currentColor; }
.w-add:hover { border-color: var(--w-ink); background: color-mix(in srgb, var(--w-ink) 7%, transparent); }
.w-add:disabled { opacity: 0.55; cursor: not-allowed; }
.w-cta {
  width: 100%;
  margin-top: var(--space-4);
  min-height: var(--button_height);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--grad-cta);
  color: var(--on-accent);
  font-family: var(--font-ui);
  font-size: var(--type-body-lg-size);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform var(--dur-quick) var(--ease-standard),
    box-shadow var(--dur-quick) var(--ease-standard), filter var(--dur-quick) var(--ease-standard);
}
.w-cta svg { width: 20px; height: 20px; fill: currentColor; }
.w-cta:hover { filter: brightness(1.06); box-shadow: var(--shadow-lg), var(--glow-rose); }
.w-cta:active { transform: scale(0.985); }
.w-example {
  align-self: center;
  min-height: 44px;
  margin-top: var(--space-2);
  padding: 0 var(--space-3);
  border: 0;
  background: none;
  color: var(--secondary_text);
  font-family: var(--font-ui);
  font-size: var(--type-label-size);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.w-example:hover { color: var(--w-ink); }
.w-cardnote {
  margin-top: var(--space-1);
  color: var(--secondary_text);
  font-size: var(--type-caption-size);
  text-align: center;
}
.w-noscript {
  max-width: 52ch;
  color: var(--secondary_text);
  font-size: var(--type-label-size);
}
.w-noscript b { font-family: var(--font-display); font-weight: 400; color: var(--primary_text); }

/* ---------- Reveal + results ---------- */
.w-results-stage { animation: w-fadeup var(--dur-slow) var(--ease-decelerate) both; }
.w-reveal {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  min-height: 210px;
  align-content: center;
}
.w-reveal > * { position: relative; }
.w-reveal-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--type-caption-size);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}
.w-reveal-name {
  font-family: var(--font-display-xl);
  font-weight: 400;
  color: #fff;
  font-size: clamp(40px, 8vw, var(--type-display-lg-size));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.3);
  word-break: break-word;
  animation: w-bloom var(--dur-dramatic) var(--ease-bounce) both;
}
.w-reveal-name:focus { outline: none; }
@keyframes w-bloom { from { opacity: 0; transform: scale(0.55); } to { opacity: 1; transform: scale(1); } }
.w-reveal-acts {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.w-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--type-label-size);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background-color var(--dur-quick) var(--ease-standard);
}
.w-ghost svg { width: 16px; height: 16px; fill: currentColor; }
.w-ghost:hover { background: var(--state-on-brand-hover); }
.w-page a.w-ghost, .w-page a.w-ghost:hover { color: #fff; text-decoration: none; }
.w-page .w-reveal :focus-visible { outline-color: #fff; }

/* heart burst: ten particles fly out once each time the reveal opens */
.w-p {
  position: absolute;
  left: 50%;
  top: 52%;
  width: var(--p-size);
  height: var(--p-size);
  color: var(--p-color);
  opacity: 0;
  animation: w-burst var(--p-dur) var(--ease-decelerate) var(--p-delay) both;
  pointer-events: none;
}
.w-p svg { width: 100%; height: 100%; fill: currentColor; }
.w-p:nth-child(1) { --tx: -210px; --ty: -150px; --rot: -60deg; --p-scale: 1.2; --p-size: 22px;
  --p-color: var(--rose-300); --p-delay: 0ms; --p-dur: 1900ms; }
.w-p:nth-child(2) { --tx: 180px; --ty: -200px; --rot: 40deg; --p-scale: 0.9; --p-size: 16px;
  --p-color: var(--coral-300); --p-delay: 60ms; --p-dur: 2100ms; }
.w-p:nth-child(3) { --tx: -90px; --ty: -240px; --rot: 20deg; --p-scale: 1.1; --p-size: 26px;
  --p-color: var(--gold-300); --p-delay: 120ms; --p-dur: 2000ms; }
.w-p:nth-child(4) { --tx: 230px; --ty: -130px; --rot: -80deg; --p-scale: 0.7; --p-size: 14px;
  --p-color: var(--iris-300); --p-delay: 30ms; --p-dur: 1700ms; }
.w-p:nth-child(5) { --tx: 40px; --ty: -260px; --rot: 90deg; --p-scale: 1.3; --p-size: 20px;
  --p-color: #fff; --p-delay: 200ms; --p-dur: 2300ms; }
.w-p:nth-child(6) { --tx: -160px; --ty: -220px; --rot: -30deg; --p-scale: 0.8; --p-size: 18px;
  --p-color: var(--ember-300); --p-delay: 90ms; --p-dur: 1800ms; }
.w-p:nth-child(7) { --tx: 120px; --ty: -150px; --rot: 70deg; --p-scale: 1; --p-size: 24px;
  --p-color: var(--rose-300); --p-delay: 260ms; --p-dur: 2200ms; }
.w-p:nth-child(8) { --tx: -40px; --ty: -180px; --rot: -90deg; --p-scale: 0.6; --p-size: 12px;
  --p-color: var(--gold-300); --p-delay: 150ms; --p-dur: 1600ms; }
.w-p:nth-child(9) { --tx: -240px; --ty: -90px; --rot: 50deg; --p-scale: 1; --p-size: 16px;
  --p-color: #fff; --p-delay: 300ms; --p-dur: 2000ms; }
.w-p:nth-child(10) { --tx: 210px; --ty: -250px; --rot: -20deg; --p-scale: 1.1; --p-size: 20px;
  --p-color: var(--coral-300); --p-delay: 220ms; --p-dur: 2400ms; }
@keyframes w-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  14% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot))
      scale(var(--p-scale));
  }
}
.w-results { padding: var(--space-5) var(--space-6); }
.w-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}
.w-results-label {
  font-size: var(--type-caption-size);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--secondary_text);
}
.w-names { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.w-name {
  min-height: 44px;
  border: 1.5px solid var(--hairline);
  background: var(--surface-card);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: var(--type-body-lg-size);
  color: var(--primary_text);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-standard),
    background-color var(--dur-quick) var(--ease-standard),
    transform var(--dur-quick) var(--ease-spring);
}
.w-name:hover { border-color: var(--w-ink); transform: translateY(-2px); }
.w-name.is-on { background: var(--grad-brand); border-color: transparent; color: var(--on-accent); }
.w-restart {
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--secondary_text);
  font-family: var(--font-ui);
  font-size: var(--type-label-size);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.w-restart:hover { color: var(--w-ink); }
.w-page a.w-scrollcue {
  min-height: 44px;
  color: var(--secondary_text);
  font-size: var(--type-label-size);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.w-page a.w-scrollcue:hover { color: var(--w-ink); text-decoration: none; }
.w-scrollcue svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  animation: w-nudge 1800ms var(--ease-standard) infinite;
}
@keyframes w-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- Official store badges ---------- */
.w-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.w-page a.w-store {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  transition: transform var(--dur-quick) var(--ease-standard);
}
.w-page a.w-store:hover { transform: translateY(-2px); }
/* max-width none: the global img max-width resolves against the anchor, which the Play
   badge's negative margins make narrower than the image, and that squashed it */
.w-store img { display: block; flex: none; height: 44px; width: auto; max-width: none;
  aspect-ratio: auto 646 / 250; }
.w-store:not(.w-store-play) img { aspect-ratio: auto 120 / 40; }
/* the Google Play artwork carries its own transparent margin: crop it to the badge height */
.w-store-play img { height: 64px; margin: -10px; }
/* on Android the Play badge comes first (theme-init.js sets data-platform) */
:root[data-platform="android"] .w-store-play { order: -1; }
.w-herostores { display: grid; justify-items: center; gap: var(--space-2); }
.w-herostores p { color: var(--secondary_text); font-size: var(--type-caption-size); }

/* ---------- Sections ---------- */
.w-sec { padding: var(--space-8) 0; scroll-margin-top: 70px; }
.w-sec-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.w-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, var(--type-display-size));
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  max-width: 24ch;
  text-wrap: balance;
}
.w-sublede { margin-top: var(--space-3); color: var(--secondary_text); max-width: 56ch; }
.w-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}
.w-step { display: flex; flex-direction: column; gap: 10px; }
.w-step-rose { --step: var(--rose-600); }
.w-step-plum { --step: var(--plum-600); }
.w-step-iris { --step: var(--iris-600); }
.w-step .w-step-n {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: var(--step, var(--rose-600));
  box-shadow: var(--shadow-sm);
}
.w-step h3 { font-size: var(--type-body-lg-size); font-weight: var(--font-weight-semibold); }
.w-step p { color: var(--secondary_text); font-size: var(--type-label-size); }
.w-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  margin-top: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--hairline);
}
.w-stat { display: flex; flex-direction: column; gap: 2px; }
.w-stat b {
  font-family: var(--font-display);
  font-size: var(--type-headline-size);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}
.w-stat span {
  font-size: var(--type-caption-size);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--secondary_text);
}
.w-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.w-quote {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.w-stars { display: flex; gap: 3px; }
.w-stars svg { width: 15px; height: 15px; fill: var(--rating); }
.w-quote blockquote { margin: 0; font-size: var(--type-label-size); }
.w-quote figcaption { color: var(--secondary_text); font-size: var(--type-caption-size); }

/* ---------- FAQ ---------- */
.w-faq-list { display: grid; gap: var(--space-3); margin-top: var(--space-6); max-width: 820px; }
.w-faq-item {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.w-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
}
.w-faq-item summary::-webkit-details-marker { display: none; }
.w-faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-right: 2px solid var(--w-ink);
  border-bottom: 2px solid var(--w-ink);
  transform: rotate(45deg);
  transition: transform var(--dur-quick) var(--ease-standard);
}
.w-faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.w-faq-q {
  font-family: var(--font-ui);
  font-size: var(--type-body-lg-size);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}
.w-faq-item p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  color: var(--secondary_text);
  max-width: 64ch;
}

/* ---------- Get the app ---------- */
.w-get { background: var(--grad-hero); color: #fff; text-align: center; position: relative;
  overflow: hidden; }
.w-get .w-wrap { display: flex; flex-direction: column; align-items: center; }
.w-get .w-h2 { max-width: 100%; }
.w-get .w-sublede { color: rgba(255, 255, 255, 0.86); margin-top: var(--space-4); }
.w-appfeats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}
.w-appfeats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: var(--type-label-size);
}
.w-appfeats svg { width: 14px; height: 14px; fill: var(--gold-300); flex: none; }
.w-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-5);
  font-size: var(--type-label-size);
  color: rgba(255, 255, 255, 0.9);
}
.w-pro b { font-weight: var(--font-weight-semibold); color: #fff; }
.w-get .w-stores { margin-top: var(--space-6); }
.w-get .w-store img { height: 52px; }
.w-get .w-store-play img { height: 76px; margin: -12px; }
.w-fine { margin-top: var(--space-5); color: var(--w-fine); font-size: var(--type-caption-size); }
.w-page .w-get :focus-visible { outline-color: #fff; }

/* ---------- Footer ---------- */
.w-foot { padding: var(--space-6) 0; border-top: 1px solid var(--hairline); }
.w-foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  color: var(--secondary_text);
  font-size: var(--type-caption-size);
}
.w-foot-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); margin-left: auto; }
.w-page .w-foot a { display: inline-flex; align-items: center; min-height: 44px;
  color: var(--secondary_text); }
.w-page .w-foot a:hover { color: var(--w-ink); }
.w-legal { flex-basis: 100%; display: grid; gap: var(--space-1); margin-top: var(--space-3); }

/* ---------- Sticky store bar: phone width only ---------- */
.w-sticky { display: none; }
.w-sticky .w-store img { height: 40px; }
.w-sticky .w-store-play img { height: 58px; margin: -9px; }

/* ---------- Phone width ---------- */
@media (max-width: 720px) {
  .w-navlinks a:not(.w-nav-cta) { display: none !important; }
  .w-hero { padding: var(--space-6) var(--space-5) var(--space-7); }
  .w-h1 { font-size: 40px; }
  /* these four land on the kicker, headline, lede or scroll cue at phone width */
  .w-hearts span:nth-child(1), .w-hearts span:nth-child(3),
  .w-hearts span:nth-child(7), .w-hearts span:nth-child(8) { display: none; }
  .w-hearts span:nth-child(6) { left: 90%; }
  .w-h2 { font-size: 30px; }
  .w-stage { padding: var(--space-5) var(--space-4); }
  .w-results { padding: var(--space-4); }
  .w-reveal-name { font-size: 48px; }
  .w-sec { padding: var(--space-7) 0; }
  .w-stats { gap: var(--space-4) var(--space-6); }
  .w-foot-links { margin-left: 0; }
  /* In flow at the end of the page, so at the bottom it sits below the footer, never over it. */
  .w-sticky {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 20;
    justify-content: center;
    padding: 10px var(--space-4) calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface-app) 90%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline);
  }
}
@media (max-width: 380px) {
  .w-wrap { padding: 0 var(--space-4); }
  .w-hero { padding-left: var(--space-4); padding-right: var(--space-4); }
  .w-nav-in { gap: var(--space-3); }
  .w-page .w-navlinks a.w-nav-cta { padding: 0 14px; }
  .w-theme { margin: 0 var(--space-1); }
}
@media (max-width: 360px) {
  /* the brand keeps its heart mark; the name stays for screen readers */
  .w-brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w-page *, .w-page *::before, .w-page *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* shared heart and star symbols, referenced with <use> */
.w-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
