/* Fraunces, self-hosted (SIL Open Font License 1.1, see fonts/OFL.txt), so a
   visit to the site sends nothing to a third party. */
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_500Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_700Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_400Regular_Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces_500Medium_Italic.ttf") format("truetype"); font-weight: 500; font-style: italic; font-display: swap; }

/* Layout: wide paper page in clear bands - hero with the app on a phone,
   a figures strip, then why / how / features / names / questions, each
   band given real air. Tokens lifted from app/src/theme.ts. */
:root {
  --paper: #FBF7F3;
  --shade: #F5EEE7;
  --surface: #FFFFFF;
  --line: #EBE2DA;
  --ink: #221B2E;
  --ink-soft: #6B6379;
  --ink-faint: #A79FB5;
  --persimmon: #E2603D;
  --persimmon-deep: #C4472B;
  --persimmon-soft: #FBE6DF;
  --sage: #2E9B7C;
  --sage-soft: #DCF1EA;
  --rose: #D2547C;
  --indigo: #5A6BE0;
  --gold: #C98A1E;
  --nav-bg: rgba(251, 247, 243, 0.86);
  --device: #221B2E;
  --device-edge: #221B2E;
  --shadow-lg: 0 30px 60px -20px rgba(58, 34, 51, 0.28);
  --shadow-md: 0 14px 30px -12px rgba(58, 34, 51, 0.18);
  --shadow-sm: 0 4px 14px rgba(58, 34, 51, 0.07);

  /* The band and the buttons keep the brand's own persimmon in both themes. */
  --btn: #E2603D;
  --btn-hover: #C4472B;
  --on-btn: #FFFFFF;
  --band: #C4472B;
  --band-deep: #A93A21;
  --on-band: #FFFFFF;
  --on-band-soft: rgba(255, 255, 255, 0.78);

  /* The app itself is light-only, so the phone screen is always paper. */
  --app-paper: #FBF7F3;
  --app-surface: #FFFFFF;
  --app-line: #EFE7E0;
  --app-ink: #221B2E;
  --app-soft: #6B6379;
  --app-faint: #A79FB5;
  --app-primary: #E2603D;
  --app-primary-soft: #FBE6DF;
  --app-sage: #2E9B7C;
  --app-sage-soft: #DCF1EA;
  --app-rose: #D2547C;

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 74rem;
  --section-y: clamp(80px, 11vw, 136px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16111E;
    --shade: #1B1524;
    --surface: #221A2D;
    --line: #342A43;
    --ink: #F4EEE8;
    --ink-soft: #B9AEC6;
    --ink-faint: #857A95;
    --persimmon: #F4805D;
    --persimmon-deep: #FF9674;
    --persimmon-soft: #3B2430;
    --sage: #4FC49F;
    --sage-soft: #16332C;
    --rose: #E8769A;
    --indigo: #929EFF;
    --gold: #E0AA4A;
    --nav-bg: rgba(22, 17, 30, 0.84);
    --device: #0E0A14;
    --device-edge: #3E3350;
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    --shadow-md: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
    --band: #B5432A;
    --band-deep: #8F3220;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #16111E;
  --shade: #1B1524;
  --surface: #221A2D;
  --line: #342A43;
  --ink: #F4EEE8;
  --ink-soft: #B9AEC6;
  --ink-faint: #857A95;
  --persimmon: #F4805D;
  --persimmon-deep: #FF9674;
  --persimmon-soft: #3B2430;
  --sage: #4FC49F;
  --sage-soft: #16332C;
  --rose: #E8769A;
  --indigo: #929EFF;
  --gold: #E0AA4A;
  --nav-bg: rgba(22, 17, 30, 0.84);
  --device: #0E0A14;
  --device-edge: #3E3350;
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --band: #B5432A;
  --band-deep: #8F3220;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

img, svg { max-width: 100%; }

html { scroll-behavior: smooth; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
}

.band {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.wrap { max-width: var(--max); margin-inline: auto; }

.section { padding-block: var(--section-y); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  font-optical-sizing: auto;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a { color: var(--persimmon-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--persimmon-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head { display: grid; gap: 18px; max-width: 40rem; }
.section-head h2 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.06; }
.section-head p { color: var(--ink-soft); font-size: 18.5px; max-width: 36rem; }
.section-head.centre { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.btn svg { flex: none; }

.btn-primary { background: var(--btn); color: var(--on-btn); box-shadow: 0 10px 22px -10px rgba(226, 96, 61, 0.7); }
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-1px); }

.btn-quiet { color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink-faint); }

.btn-lg { font-size: 17.5px; padding: 18px 28px; }
.btn-sm { font-size: 14.5px; padding: 10px 16px; }

.btn-light { background: var(--on-band); color: #C4472B; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.45); }

/* Store slots: real-looking, but not links, because nothing is published yet. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  color: var(--ink-soft);
  line-height: 1.15;
  cursor: default;
}

.store svg { color: var(--ink-faint); flex: none; }
.store small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--persimmon-deep); }
.store b { font-size: 15.5px; font-weight: 600; color: var(--ink); }

.on-band .store { border-color: rgba(255, 255, 255, 0.38); color: var(--on-band-soft); }
.on-band .store svg { color: var(--on-band-soft); }
.on-band .store small { color: var(--on-band-soft); }
.on-band .store b { color: var(--on-band); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; gap: 28px; padding-block: 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand svg { color: var(--persimmon); flex: none; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy { display: grid; gap: 28px; justify-items: start; min-width: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.pill-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

.hero h1 {
  font-size: clamp(46px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.circled { position: relative; display: inline-block; white-space: nowrap; color: var(--persimmon-deep); font-style: italic; font-weight: 500; margin-inline: 0.06em 0.22em; }

.circled svg {
  position: absolute;
  left: -11%;
  top: -24%;
  width: 140%;
  height: 138%;
  overflow: visible;
  pointer-events: none;
}

.circled path { stroke-dasharray: 262; stroke-dashoffset: 0; }

.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 31rem; line-height: 1.55; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-foot { display: grid; gap: 12px; }
.hero-foot .label { font-size: 13.5px; color: var(--ink-faint); }

/* phone */

.hero-visual { position: relative; display: grid; place-items: center; padding-block: 24px; min-width: 0; }

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(440px, 92%);
  aspect-ratio: 1 / 1.08;
  border-radius: 50%;
  background: var(--persimmon-soft);
  transform: rotate(-10deg) scaleX(0.92);
}

.phone {
  position: relative;
  width: min(282px, 74vw);
  aspect-ratio: 9 / 18.6;
  background: var(--device);
  border: 1px solid var(--device-edge);
  border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.screen {
  height: 100%;
  background: var(--app-paper);
  border-radius: 36px;
  padding: 34px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}

.screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 78px;
  height: 20px;
  border-radius: 999px;
  background: var(--device);
  transform: translateX(-50%);
}

.app-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }

.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--app-soft);
  white-space: nowrap;
}

.app-chip.code { letter-spacing: 0.12em; }
.app-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--app-sage); }

.app-progress { height: 4px; border-radius: 4px; background: var(--app-line); overflow: hidden; }
.app-progress span { display: block; width: 38%; height: 100%; background: var(--app-primary); border-radius: 4px; }

.app-card {
  flex: 1;
  margin-top: 6px;
  background: var(--app-surface);
  border-radius: 22px;
  border: 1px solid var(--app-line);
  box-shadow: 0 12px 26px -10px rgba(58, 34, 51, 0.2);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: rotate(-3deg) translateX(6px);
}

.app-card .stamp {
  position: absolute;
  top: 18px;
  left: 14px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--app-sage);
  border: 2.5px solid var(--app-sage);
  border-radius: 8px;
  padding: 2px 8px;
  transform: rotate(-14deg);
}

.app-card .gender { align-self: flex-end; display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--app-rose); }
.app-card .gender i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-rose); }

.app-card .body { flex: 1; display: grid; place-content: center; text-align: center; gap: 6px; }
.app-card .name { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; color: var(--app-ink); }
.app-card .origin { font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--app-faint); }
.app-card .meaning { font-size: 12.5px; line-height: 1.35; color: var(--app-soft); }

.app-actions { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 6px; }

.app-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  color: var(--app-faint);
}

.app-btn.small { width: 32px; height: 32px; }
.app-btn.like { background: var(--app-sage-soft); border-color: transparent; color: var(--app-sage); }

.app-hint { text-align: center; font-size: 10px; color: var(--app-faint); }

.float {
  position: absolute;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  color: var(--app-ink);
}

.float small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.float-match { right: 0; bottom: 14%; display: flex; gap: 12px; align-items: center; transform: rotate(-2deg); }
.float-match small { color: var(--app-sage); }
.float-match .heart { width: 36px; height: 36px; border-radius: 50%; background: var(--app-sage-soft); color: var(--app-sage); display: grid; place-items: center; flex: none; }
.float-match .n { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.1; }

.float-code { left: 0; top: 16%; transform: rotate(-4deg); }
.float-code small { color: var(--app-faint); }
.float-code .code { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.2em; line-height: 1.3; }

/* ---------- figures strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--shade); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.fig { padding: 34px 28px; display: grid; gap: 6px; align-content: start; }
.fig + .fig { border-left: 1px solid var(--line); }
.fig .n { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 50px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.fig .what { font-size: 15px; color: var(--ink-soft); line-height: 1.4; max-width: 15rem; }

/* ---------- why ---------- */

.why-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.why-copy { display: grid; gap: 22px; min-width: 0; }
.why-copy h2 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.06; }
.why-copy p { color: var(--ink-soft); font-size: 18px; }
.why-copy strong { color: var(--ink); font-weight: 600; }

.venn-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 16px;
  min-width: 0;
}

.venn { width: 100%; height: auto; display: block; }
.venn text { font-family: var(--display); }
.venn .side { fill: var(--ink-soft); font-size: 28px; font-weight: 500; }
.venn .both { fill: var(--sage); font-size: 30px; font-weight: 700; }
.venn .tag { font-family: var(--body); font-size: 14px; font-weight: 800; letter-spacing: 0.1em; fill: var(--ink-faint); }
.venn .tag.mid { fill: var(--sage); }

.venn-caption { font-size: 15px; color: var(--ink-soft); text-align: center; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }

.principle { display: grid; gap: 10px; padding-top: 22px; border-top: 2px solid var(--line); align-content: start; }
.principle h3 { font-size: 22px; line-height: 1.2; }
.principle p { color: var(--ink-soft); font-size: 16px; }

/* ---------- how ---------- */

.how { background: var(--shade); }

.steps { list-style: none; padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: clamp(44px, 6vw, 72px); }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vignette {
  height: 176px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

.step-text { padding: 22px 22px 26px; display: grid; gap: 8px; align-content: start; }
.step-num { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--persimmon-deep); }
.step h3 { font-size: 22px; line-height: 1.2; }
.step p { color: var(--ink-soft); font-size: 15.5px; }

/* vignette 1: choices */
.choices { display: grid; gap: 10px; width: 100%; max-width: 220px; }
.choice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.choice { font-size: 12px; font-weight: 700; text-align: center; padding: 9px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.choice.on { border-color: var(--persimmon); background: var(--persimmon-soft); color: var(--persimmon-deep); }

/* vignette 2: code */
.codebox { display: flex; align-items: center; gap: 14px; }
.codebox .code { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.18em; box-shadow: var(--shadow-sm); }
.codebox .or { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--ink-faint); font-weight: 600; }

/* vignette 3: swipe */
.mini-stack { position: relative; width: 112px; height: 136px; }
.mini-card { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); display: grid; place-content: center; text-align: center; gap: 3px; }
.mini-card.under { transform: rotate(-6deg) translateX(-14px); opacity: 0.7; }
.mini-card.top { transform: rotate(9deg) translateX(22px); }
.mini-card .n { font-family: var(--display); font-weight: 600; font-size: 25px; }
.mini-card .o { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-faint); text-transform: uppercase; }
.mini-card .yes { position: absolute; top: 10px; left: 9px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--sage); border: 2px solid var(--sage); border-radius: 6px; padding: 1px 5px; transform: rotate(-12deg); }

/* vignette 4: matches */
.matches { width: 100%; max-width: 210px; display: grid; gap: 8px; }
.matches .hd { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.match-row { display: flex; align-items: center; justify-content: space-between; background: var(--sage-soft); color: var(--sage); border-radius: 12px; padding: 9px 12px; font-family: var(--display); font-weight: 600; font-size: 18px; }

.how-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.how-cta p { font-family: var(--display); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.25; }
.how-cta p span { color: var(--ink-soft); font-family: var(--body); font-size: 16px; display: block; margin-top: 4px; }

/* ---------- features (bento) ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(44px, 6vw, 72px); }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.tile .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--persimmon-soft); color: var(--persimmon-deep); }
.tile h3 { font-size: 23px; line-height: 1.2; }
.tile p { color: var(--ink-soft); font-size: 16px; }
.tile.wide { grid-column: span 2; }

.tile.big { background: var(--persimmon-soft); border-color: transparent; gap: 18px; }
.tile.big .n { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 8vw, 96px); line-height: 0.9; letter-spacing: -0.03em; color: var(--persimmon-deep); font-variant-numeric: lining-nums; }
.tile.big h3 { font-size: 26px; }
.tile.big p { color: var(--ink); opacity: 0.78; max-width: 32rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 7px 13px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); }
.chip span { color: var(--ink-soft); font-weight: 500; font-variant-numeric: tabular-nums; }

.tile.go { background: var(--ink); color: var(--paper); border-color: transparent; align-content: space-between; gap: 22px; }
.tile.go h3 { font-size: clamp(26px, 3vw, 32px); }
.tile.go p { color: var(--paper); opacity: 0.72; }

/* ---------- names ---------- */

.names { background: var(--shade); }

.names-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); margin-top: clamp(44px, 6vw, 72px); align-items: start; }

.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 8px 26px 18px; min-width: 0; }
.table-scroll { overflow-x: auto; }

.registers { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.registers .abbr { display: none; font-size: 13px; font-weight: 500; color: var(--ink-faint); }
.table-note { color: var(--ink-soft); font-size: 14.5px; padding-top: 8px; line-height: 1.5; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.registers th, .registers td { text-align: left; padding: 15px 14px 15px 0; border-top: 1px solid var(--line); vertical-align: top; }
.registers thead th { border-top: 0; font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 20px; }
.registers .num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.registers tbody th { font-weight: 650; }
.registers .src { color: var(--ink-soft); }
.registers tfoot td, .registers tfoot th { font-weight: 700; border-top: 2px solid var(--line); }

.licence { display: grid; gap: 16px; font-size: 16px; color: var(--ink-soft); }
.licence h3 { font-size: 24px; color: var(--ink); }
.licence .ogl { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: grid; gap: 10px; color: var(--ink); }
.licence .ogl small { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.licence .ogl p { color: var(--ink-soft); }
.licence .ogl p.ogl-statement { color: var(--ink); }

/* ---------- band ---------- */

.cta-band { background: var(--band); color: var(--on-band); position: relative; overflow: hidden; }

.cta-band .ring-deco { position: absolute; right: -6%; top: 50%; width: min(620px, 80vw); transform: translateY(-50%); color: var(--band-deep); pointer-events: none; }

.cta-inner { position: relative; display: grid; gap: 28px; justify-items: start; padding-block: clamp(72px, 10vw, 120px); }
.cta-inner h2 { font-size: clamp(36px, 6vw, 66px); line-height: 1.02; max-width: 15ch; letter-spacing: -0.025em; }
.cta-inner p { color: var(--on-band-soft); font-size: 19px; max-width: 32rem; }

/* ---------- faq ---------- */

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vw, 64px); }
.qa { padding-block: 26px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.qa h3 { font-size: 21px; line-height: 1.3; }
.qa p { color: var(--ink-soft); font-size: 16px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); }

.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 64px 40px; }
.foot-grid h4 { margin: 0 0 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid li, .foot-grid li a { color: var(--ink-soft); font-size: 15.5px; text-decoration: none; }
.foot-grid li a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand p { color: var(--ink-soft); font-size: 15.5px; max-width: 22rem; }

.foot-legal { border-top: 1px solid var(--line); padding-block: 24px 48px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.foot-legal .pub { color: var(--ink); font-weight: 600; }

/* ---------- narrower screens ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 460px; width: 100%; justify-self: center; }
  .why-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .names-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide { grid-column: span 2; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig { padding: 26px 18px; }
  .fig:nth-child(3) { border-left: 0; }
  .fig:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
  .tile { padding: 24px; }
  .cta-row .btn { flex: 1 1 100%; }
  .float { padding: 10px 12px; }
  .float-code .code { font-size: 18px; }
  .float-match .n { font-size: 19px; }
  .how-cta { padding: 22px; }
  .how-cta .btn { flex: 1 1 100%; }
  .table-card { padding: 4px 18px 18px; }
  .registers thead th:nth-child(2), .registers .src { display: none; }
  .registers .abbr { display: block; }
}

@media (max-width: 400px) {
  .hide-xs { display: none; }
  .brand { font-size: 16.5px; }
  .nav-inner { gap: 12px; }
}
