/*
 * Vybe — public site.
 *
 * Colour and type are transcribed from frontend/mobile/src/theme/tokens.ts: the site exists to be
 * recognised by someone who has just installed the app, so it borrows the app's identity rather
 * than inventing a second one. If a token changes there, it changes here.
 *
 * Written mobile-first. Every layout starts as one column at 320px and only gains columns at a
 * min-width breakpoint, so a phone never receives a desktop grid it has to squeeze.
 *
 * Icons: Phosphor (MIT), as one sprite at /assets/icons.svg — see scripts/build-web-icons.py.
 * Photography: commissioned for Vybe, self-hosted under /assets/img/.
 *
 * Cache: pages reference this file as vybe.css?v=N. Bump N on every change — assets are cached
 * for an hour, and a phone holding the old stylesheet against new HTML is exactly what a "broken
 * on mobile" report looks like.
 */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-var.woff2") format("woff2");
}

:root {
  color-scheme: light;

  --canvas: #F3EEEA;
  --canvas-deep: #E7DFD8;
  --surface: #FFFCFA;
  --surface-warm: #FFF4EF;
  --fill: #F4ECE7;
  --hairline: #EFE6E0;
  --border: #E2D8D0;

  --ink: #2A2320;
  --ink-strong: #3A322E;
  --ink-2: #5E544E;
  --ink-3: #7D726C;
  --ink-4: #9A8E86;
  --night: #241D1A;

  --brand-from: #FF8A6B;
  --brand-to: #FF6F86;
  --primary: #FF6F71;
  --primary-ink: #D9485A;

  --dating: #FF6F71;
  --dating-tint: #FFE3DB;
  --friends: #B7740A;
  --friends-tint: #FEF1D9;
  --events: #6C63F6;
  --events-tint: #ECEAFE;
  --success: #13B7A6;
  --success-ink: #0E8679;
  --success-tint: #E3F7F4;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r-card: 20px;
  --r-card-lg: 24px;
  --r-photo: 28px;
  --shadow-soft: 0 1px 2px rgba(42, 35, 32, .04), 0 8px 24px rgba(42, 35, 32, .06);
  --shadow-lift: 0 2px 6px rgba(42, 35, 32, .06), 0 24px 48px rgba(42, 35, 32, .14);
  --gutter: 20px;
  --head-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;   /* fallback */
  overflow-x: clip;     /* a stray wide element can never make the page side-scroll on a phone */
}

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

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

a { color: var(--ink); text-decoration-color: var(--border); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--primary); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.i { width: 24px; height: 24px; flex: none; fill: currentColor; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── Type ─────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 10.5vw, 80px);
  line-height: 1; letter-spacing: -.025em;
  margin: 0 0 20px;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 7.2vw, 52px);
  line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 14px;
}
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(17px, 2.2vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.kicker { font-size: 15px; font-weight: 700; color: var(--primary-ink); margin: 0 0 12px; }
/* Kept for sub-pages that still use it; sentence case, no tracking. */
.eyebrow { font-size: 15px; font-weight: 700; color: var(--primary-ink); margin: 0 0 12px; }
.grad { color: inherit; }
code, .mono {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--fill); padding: 2px 7px; border-radius: 6px; color: var(--ink-strong);
}

section { padding: 64px 0; }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.band { background: var(--surface); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  box-shadow: 0 10px 24px -6px rgba(255, 111, 113, .55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn .i { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -6px rgba(255, 111, 113, .6); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: none; }
.btn.ghost:hover { transform: none; border-color: var(--ink-4); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.inert { background: var(--fill); color: var(--ink-3); border: 1px solid var(--border); box-shadow: none; cursor: default; }
.btn.inert:hover { transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.env-banner {
  background: var(--ink); color: #F3EDE9; font-size: 13px;
  padding: 8px var(--gutter); text-align: center;
}
.env-banner strong { font-weight: 700; }

.head-bar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 238, 234, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(226, 216, 208, .7);
}
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--head-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: 0 4px 12px rgba(255, 111, 113, .35); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: none; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255, 252, 250, .7); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
  color: var(--ink); cursor: pointer; padding: 0;
}
.menu-btn .i { width: 20px; height: 20px; }
.menu-btn .when-open { display: none; }
.menu-btn[aria-expanded="true"] .when-open { display: block; }
.menu-btn[aria-expanded="true"] .when-closed { display: none; }

.menu-panel {
  display: none;
  border-top: 1px solid var(--hairline);
  padding: 8px 0 18px;
}
.menu-panel.open { display: block; }
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}
.menu-panel a .i { width: 18px; height: 18px; color: var(--ink-4); }

@media (min-width: 900px) {
  .nav-links { display: flex; gap: 2px; margin-right: 10px; }
  .menu-btn, .menu-panel, .menu-panel.open { display: none; }
}
@media (max-width: 349px) {
  .nav .btn { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 36px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero .lede { margin-bottom: 28px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  list-style: none; padding: 0; margin: 28px 0 0;
}
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink-strong); }
.hero-proof .i { width: 20px; height: 20px; color: var(--success-ink); }

.hero-visual { position: relative; }
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-photo);
  background: var(--canvas-deep); isolation: isolate;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift); }

/* Glass cards laid over the photograph — they sit INSIDE its frame on every width, so nothing
   overhangs the viewport on a phone. */
.glass {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 252, 250, .88);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: 0 12px 32px -8px rgba(42, 35, 32, .3);
  font-size: 14px; line-height: 1.3; color: var(--ink);
}
.glass b { display: block; font-size: 14.5px; }
.glass small { display: block; color: var(--ink-3); font-size: 12.5px; }
.glass .tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.glass .tile .i { width: 22px; height: 22px; }
.tile.ok { background: var(--success-tint); color: var(--success-ink); }
.tile.ev { background: var(--events-tint); color: var(--events); }
.tile.dt { background: var(--dating-tint); color: var(--primary-ink); }
.glass.g1 { top: 16px; left: 16px; }
.glass.g2 { bottom: 16px; right: 16px; left: 16px; }
.glass.g2 .who { flex: 1; min-width: 0; }
.glass.g2 .heart {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}
.glass.g2 .heart .i { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .hero { padding: 56px 0 88px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 64px; }
  .glass.g1 { top: 28px; left: -28px; }
  .glass.g2 { bottom: 32px; right: -28px; left: auto; width: 300px; }
}

/* ── Section heads ────────────────────────────────────────────────────────── */
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ── Modes: one photograph each ───────────────────────────────────────────── */
.modes { display: grid; gap: 20px; }
.mode-card {
  background: var(--canvas); border-radius: var(--r-card-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.mode-card .photo { aspect-ratio: 5 / 4; border-radius: 0; }
.mode-card .body { padding: 22px 22px 26px; }
.mode-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; padding: 6px 12px 6px 8px; border-radius: 999px;
}
.mode-label .i { width: 20px; height: 20px; }
.dating .mode-label  { color: var(--primary-ink); background: var(--dating-tint); }
.friends .mode-label { color: var(--friends); background: var(--friends-tint); }
.events .mode-label  { color: var(--events); background: var(--events-tint); }
.mode-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 10px; }
.mode-card p { color: var(--ink-2); font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks .i { width: 20px; height: 20px; margin-top: 2px; color: var(--success-ink); }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(3, 1fr); } }

/* ── How it works (a real sequence, so it is numbered) ────────────────────── */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.step {
  counter-increment: s; position: relative;
  background: var(--surface); border-radius: var(--r-card); padding: 22px 22px 24px 76px;
  box-shadow: var(--shadow-soft);
}
.step::before {
  content: counter(s);
  position: absolute; left: 22px; top: 22px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 21px; line-height: 1; color: var(--primary-ink);
  background: var(--dating-tint);
}
.step p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 26px 24px 28px; }
  .step::before { position: static; margin-bottom: 18px; }
}

/* ── Feature split (photo + copy) ─────────────────────────────────────────── */
.split { display: grid; gap: 40px; align-items: center; }
.split-visual { position: relative; }
.split-visual .photo { aspect-ratio: 4 / 5; }
.chat-card {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(255, 252, 250, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 20px; padding: 16px; box-shadow: 0 16px 40px -10px rgba(42, 35, 32, .35);
}
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chat-head .tile { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.chat-head .tile .i { width: 20px; height: 20px; }
.chat-head b { display: block; font-size: 14.5px; line-height: 1.2; }
.chat-head small { color: var(--ink-3); font-size: 12.5px; }
.chat { display: grid; gap: 8px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.42; }
.bubble.them { background: var(--fill); border-bottom-left-radius: 6px; }
.bubble.me { justify-self: end; color: #fff; background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); border-bottom-right-radius: 6px; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--ink-2); font-size: 15.5px; }
.feature-list strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.feature-list .tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.feature-list .tile .i { width: 24px; height: 24px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.reverse .split-visual { order: 2; }
  .chat-card { left: auto; right: -24px; bottom: 32px; width: 340px; }
}

/* ── Trust grid — icon rows, not a wall of identical cards ────────────────── */
.trust-grid { display: grid; gap: 28px 40px; }
.trust-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.trust-item .tile {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface); box-shadow: var(--shadow-soft); color: var(--primary-ink);
}
.trust-item .tile .i { width: 28px; height: 28px; }
.trust-item p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 700; text-decoration: none; color: var(--primary-ink); }
.more-link .i { width: 18px; height: 18px; transition: transform .15s ease; }
.more-link:hover .i { transform: translateX(3px); }

/* ── Free ─────────────────────────────────────────────────────────────────── */
.free { display: grid; gap: 32px; align-items: center; }
.free-panel {
  background: var(--canvas); border-radius: var(--r-card-lg); padding: 28px 24px;
}
.free-panel .ticks { margin: 0; gap: 14px; }
.free-panel .ticks li { font-size: 16px; color: var(--ink-strong); }
@media (min-width: 560px) { .free-panel .ticks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .free { grid-template-columns: .9fr 1.1fr; gap: 64px; } .free-panel { padding: 36px; } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-soft); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 60px 20px 22px; font-weight: 700; font-size: 16.5px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i {
  position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  color: var(--ink-3); transition: transform .2s ease;
}
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--ink-2); font-size: 15.5px; }

/* ── Closing band (photographic) ──────────────────────────────────────────── */
.cta-photo {
  position: relative; overflow: hidden; border-radius: var(--r-photo);
  min-height: 480px; display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.cta-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36, 29, 26, .05) 20%, rgba(36, 29, 26, .82) 100%);
}
.cta-photo .inner { padding: 32px 24px; max-width: 640px; }
.cta-photo h2 { color: #fff; font-size: clamp(36px, 8vw, 60px); }
.cta-photo p { color: rgba(255, 255, 255, .9); font-size: 17px; margin-bottom: 24px; }
@media (min-width: 760px) { .cta-photo { min-height: 560px; } .cta-photo .inner { padding: 56px; } }

/* ── Cards (sub-pages) ────────────────────────────────────────────────────── */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-soft); }
.card .tile {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 16px; background: var(--dating-tint); color: var(--primary-ink);
}
.card .tile .i { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: 15px; }

.notice {
  background: var(--friends-tint); border: 1px solid #F0DEB4; border-radius: var(--r-card);
  padding: 20px 24px; color: #6B4A08;
}
.notice strong { color: #4A340A; }

/* ── Sub-page scaffolding ─────────────────────────────────────────────────── */
.page-hero { padding: 40px 0 36px; }
.page-hero h1 { font-size: clamp(40px, 8.6vw, 64px); }
.page-hero-photo { display: grid; gap: 32px; align-items: center; }
.page-hero-photo .photo { aspect-ratio: 16 / 11; }
@media (min-width: 960px) { .page-hero-photo { grid-template-columns: 1.1fr .9fr; gap: 56px; } .page-hero-photo .photo { aspect-ratio: 4 / 5; max-height: 520px; } }

.prose { max-width: 740px; }
.prose h2 { margin-top: 8px; font-size: clamp(30px, 6vw, 42px); }
.prose h3 { margin-top: 30px; font-size: 17.5px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li strong, .prose p strong { color: var(--ink); }

.toc { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 24px 0 0; list-style: none; }
.toc a {
  display: inline-block; text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 9px 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.toc a:hover { color: var(--ink); border-color: var(--ink-4); }

.callout {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  background: var(--surface); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-soft);
}
.callout .tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #FDE7E7; color: #C2302F; }
.callout .tile .i { width: 24px; height: 24px; }
.callout h3 { margin-top: 0; }

.helplines { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .helplines { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .helplines { grid-template-columns: repeat(3, 1fr); } }
.helpline { background: var(--surface); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-soft); }
.helpline b { display: block; font-size: 15.5px; }
.helpline span { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.helpline a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--primary-ink); }
.helpline a .i { width: 18px; height: 18px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-foot { background: var(--night); color: #CFC4BD; padding: 56px 0 32px; margin-top: 64px; }
.site-foot .wordmark { color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { font-size: 15px; color: #B3A79F; max-width: 32ch; margin-top: 14px; }
.foot-cols h4 { font-size: 14px; font-weight: 700; color: #fff; margin: 4px 0 14px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-cols a { font-size: 15px; color: #CFC4BD; text-decoration: none; }
.foot-cols a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--primary); }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px; color: #9C9089;
}
@media (min-width: 900px) {
  .foot-cols { grid-template-columns: 1.6fr repeat(4, 1fr); }
  .foot-brand { grid-column: auto; }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; --head-h: 72px; }
  section { padding: 96px 0; }
}

/* ── The matching engine (the page's one dark moment) ─────────────────────── */
.night { background: var(--night); color: #EFE7E2; }
.night h2, .night h3 { color: #fff; }
.night .lede, .night p { color: #CDBFB8; }
.night .kicker { color: #FF9A86; }
.engine { display: grid; gap: 40px; align-items: center; }
.engine-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; counter-reset: e; }
.engine-steps li { counter-increment: e; display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.engine-steps li::before {
  content: counter(e); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 21px; color: #fff;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
}
.engine-steps h3 { font-size: 17px; margin-bottom: 4px; }
.engine-steps p { font-size: 15px; }

.signals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.signals span {
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #EFE7E2;
}
.signals span.hot { background: rgba(255, 138, 107, .18); border-color: rgba(255, 138, 107, .45); color: #FFD2C6; }

.engine-visual { position: relative; }
.engine-visual .photo { aspect-ratio: 4 / 5; }
.compat {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(255, 252, 250, .95); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 20px; padding: 18px; box-shadow: 0 20px 44px -12px rgba(0, 0, 0, .5);
}
.compat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.compat-top b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.badge-score {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--success-tint); color: var(--success-ink); font-size: 13.5px; font-weight: 800; white-space: nowrap;
}
.badge-score .i { width: 16px; height: 16px; }
.meter { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; margin-bottom: 12px; }
.meter i { display: block; height: 100%; width: 87%; border-radius: inherit; background: linear-gradient(90deg, var(--success), #4FD1C1); }
.compat small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.compat .signals { margin: 0; }
.compat .signals span { background: var(--fill); border-color: var(--hairline); color: var(--ink-strong); font-size: 12.5px; padding: 5px 10px; }

.private {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; margin-top: 34px; padding: 20px;
  border-radius: var(--r-card); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.private .tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(19, 183, 166, .16); color: #5FE0D2; }
.private .tile .i { width: 28px; height: 28px; }
.private b { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.private p { font-size: 14.5px; }
@media (min-width: 960px) {
  .engine { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .compat { left: -40px; right: auto; bottom: 40px; width: 330px; }
}

/* ── The difference — paired statements ───────────────────────────────────── */
.diff { display: grid; gap: 12px; }
.diff-row {
  display: grid; gap: 4px 24px; padding: 20px 22px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.diff-row .them { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-3); font-size: 15px; }
.diff-row .us { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; font-weight: 600; }
.diff-row .them .i { width: 20px; height: 20px; margin-top: 2px; color: var(--ink-4); }
.diff-row .us .i { width: 20px; height: 20px; margin-top: 2px; color: var(--success-ink); }
.diff-head { display: none; }
@media (min-width: 760px) {
  .diff-row { grid-template-columns: 1fr 1fr; align-items: center; padding: 22px 28px; }
  .diff-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 28px 4px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
  .diff-head span:last-child { color: var(--primary-ink); }
}

/* ── Extras ───────────────────────────────────────────────────────────────── */
.extras { display: grid; gap: 16px; }
.extra { background: var(--canvas); border-radius: var(--r-card-lg); padding: 26px 24px; }
.extra .tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.extra .tile .i { width: 28px; height: 28px; }
.extra h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; margin-bottom: 8px; }
.extra p { color: var(--ink-2); font-size: 15px; }
.tile.fr { background: var(--friends-tint); color: var(--friends); }
@media (min-width: 640px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .extras { grid-template-columns: repeat(4, 1fr); } }
