/* ==========================================================================
   Northearts — landing page
   Tokens first. Sections follow page order.
   ========================================================================== */

:root {
  /* Brand */
  --plum-950: #160910;
  --plum-900: #200c18;
  --plum-800: #2d1223;
  --plum-700: #3d1830;
  --burgundy: #6b1f3d;
  --wine: #8c2b4e;
  --rose: #e9b7bf;
  --rose-soft: #f6dadd;
  --coral: #f2856d;
  --coral-deep: #e2664f;
  --pink: #ff7fa8;
  --gold: #e7c28a;
  --gold-deep: #b98a4a;

  /* Neutrals */
  --cream: #faf4ee;
  --cream-2: #f3e9e0;
  --sand: #e6d6c8;
  --charcoal: #1d1a1c;
  --ink-2: #4a4046;
  --muted: #7c6f75;
  --line: rgba(29, 26, 28, .1);
  --line-light: rgba(255, 240, 244, .12);

  /* Safety palette: cooler, calmer, more institutional */
  --paper: #f2f3ef;
  --slate: #22282b;
  --slate-2: #4b5458;
  --sage: #2f6b5a;
  --sage-soft: #dcebe4;
  --line-safety: #d7dbd4;

  /* Type */
  --f-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.9rem, 1.2rem + 6.6vw, 7.4rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.3vw, 4.4rem);
  --fs-h3: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  --fs-lead: clamp(1.02rem, .95rem + .35vw, 1.2rem);

  /* Space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 168px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-soft: 0 1px 2px rgba(45, 18, 35, .05), 0 12px 32px -12px rgba(45, 18, 35, .18);
  --shadow-lift: 0 2px 4px rgba(45, 18, 35, .06), 0 30px 60px -20px rgba(45, 18, 35, .3);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--rose); color: var(--plum-900); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* Serif-italic accent inside display headlines */
h1 em, h2 em, .h3 em, .final__title em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.h2 {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  text-wrap: balance;
}
.h2 em { color: var(--wine); }
.h3 {
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 650;
  text-wrap: balance;
}
.h3 em { color: var(--wine); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; line-height: 1.65; }
.muted { color: var(--muted); font-size: .95rem; }

.index {
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.index::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
.index--light { color: var(--rose); }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(140, 43, 78, .08); color: var(--wine);
  border: 1px solid rgba(140, 43, 78, .16);
  vertical-align: middle;
}

.section-head { margin-bottom: clamp(48px, 6vw, 80px); display: grid; gap: 22px; }
.section-head .index { margin-bottom: 0; }
.section-head--split {
  grid-template-columns: 1.4fr 1fr; align-items: end; gap: 40px;
}
.section-head--split > div { display: grid; gap: 22px; }
.section-head--split .lead { justify-self: end; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 24px;
  border-radius: 999px;
  font-weight: 650; font-size: .96rem; letter-spacing: -.005em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  isolation: isolate;
  overflow: hidden;
}
.btn--sm { --bh: 40px; padding: 0 18px; font-size: .9rem; }
.btn--lg { --bh: 58px; padding: 0 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn__icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn:active { transform: scale(.97); }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral) 0%, #e05a79 55%, var(--wine) 100%);
  box-shadow: 0 10px 30px -10px rgba(226, 90, 121, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px 60px at var(--bx, 50%) var(--by, 50%), rgba(255, 255, 255, .35), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(226, 90, 121, .8), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn--primary:hover::after { opacity: 1; }

.btn--glass {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.btn--outline { border: 1px solid rgba(29, 26, 28, .2); color: var(--charcoal); }
.btn--outline:hover { border-color: var(--charcoal); background: var(--charcoal); color: var(--cream); }

.btn--gold {
  color: var(--plum-950);
  background: linear-gradient(135deg, #f7ddb0, var(--gold) 45%, #c9955a);
  box-shadow: 0 10px 30px -12px rgba(231, 194, 138, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(231, 194, 138, .8); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--wine);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  pointer-events: none;
  transition: inset .4s var(--ease);
}
.nav__inner {
  pointer-events: auto;
  width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto;
  height: 64px; padding: 0 10px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 999px;
  background: rgba(32, 12, 24, .38);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: #fff;
  transition: background-color .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.nav.is-scrolled { inset-block-start: 10px; }
.nav.is-scrolled .nav__inner {
  height: 58px;
  background: rgba(24, 9, 18, .78);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 20px 50px -20px rgba(10, 3, 8, .6);
}
.nav.is-hidden .nav__inner { transform: translateY(-120%); }
.nav__inner { transition: transform .45s var(--ease), background-color .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; }
.brand__mark {
  width: 36px; height: 36px; flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25));
  transition: transform .5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-120deg); }
.brand__mark--lg { width: 56px; height: 56px; filter: none; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 14px; border-radius: 99px;
  font-size: .9rem; font-weight: 550; color: rgba(255, 255, 255, .72);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--coral); transform: translateX(-50%);
}
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  width: min(1240px, 100% - var(--gutter) * 2); margin: 8px auto 0;
  padding: 14px; border-radius: 26px;
  background: rgba(24, 9, 18, .92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  display: grid; gap: 2px;
  animation: menuIn .35s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { color: #fff; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 1.05rem; }
.mobile-menu a:hover { background: rgba(255, 255, 255, .06); }
.mobile-menu .btn { margin-top: 8px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 110px;
  color: #fff;
  background:
    radial-gradient(1200px 700px at 78% 40%, rgba(140, 43, 78, .55), transparent 60%),
    radial-gradient(800px 600px at 10% 110%, rgba(242, 133, 109, .18), transparent 60%),
    linear-gradient(180deg, var(--plum-950) 0%, #1c0a15 60%, var(--plum-900) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__grain, .culture__bg::after, .final::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__grain { z-index: 0; }
.hero__glow {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -12vw; top: 5%;
  background: radial-gradient(closest-side, rgba(255, 127, 168, .16), transparent);
  filter: blur(20px);
  animation: breathe 9s var(--ease-in-out) infinite alternate;
}
@keyframes breathe { to { transform: scale(1.12) translate(-3%, 4%); opacity: .7; } }

.hero__map {
  position: absolute; z-index: 0;
  top: 0; bottom: 0; right: -4%;
  width: min(62vw, 980px);
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__map canvas { width: 100%; height: 100%; }
.hero__map {
  /* fade the map into the text column */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.hero__chips { position: absolute; inset: 0; pointer-events: none; }
.map-chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 99px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  color: #fff;
  background: rgba(45, 18, 35, .55);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  transform: translate(-50%, calc(-100% - 16px)) scale(.9);
  opacity: 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.map-chip.is-in { opacity: 1; transform: translate(-50%, calc(-100% - 20px)) scale(1); }
.map-chip__av { display: flex; }
.map-chip__av i {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(140deg, var(--h1), var(--h2));
  border: 2px solid rgba(45, 18, 35, .9);
}
.map-chip__av i + i { margin-left: -8px; }
.map-chip small { display: block; font-weight: 500; color: rgba(255, 255, 255, .6); font-size: .7rem; line-height: 1.2; }
.map-chip span { line-height: 1.25; }

.hero__content { position: relative; z-index: 2; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 99px;
  font-size: .84rem; font-weight: 550; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(242, 133, 109, .2); }

.hero__title {
  margin-top: 28px;
  font-family: var(--f-display);
  font-size: var(--fs-hero);
  line-height: .95;
  letter-spacing: -.045em;
  font-weight: 700;
  max-width: 11ch;
  text-wrap: balance;
}
.hero__title em {
  color: var(--rose);
  background: linear-gradient(100deg, #ffd2c4 0%, var(--rose) 40%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .08em;
}
.hero__sub {
  margin-top: 28px;
  max-width: 50ch;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 240, 244, .74);
}
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { margin-top: 48px; display: flex; align-items: center; gap: 16px; }
.hero__meta p { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .9); line-height: 1.4; }
.hero__meta p span { display: block; font-weight: 500; color: rgba(255, 240, 244, .55); font-size: .82rem; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, var(--h1), var(--h2));
  border: 2px solid var(--plum-950);
}
.avatars span + span { margin-left: -12px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 32px; z-index: 2;
  width: 26px; height: 42px; border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: #fff; animation: scrollDot 2.2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- 2. Proof ---------- */
.proof {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0;
  background: var(--cream);
}
.proof__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.proof__head .h3 { max-width: 20ch; }
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  position: relative;
  padding: 28px 26px 26px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stat__num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  letter-spacing: -.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--plum-800);
}
.stat__num sup { font-size: .42em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; color: var(--coral-deep); letter-spacing: 0; }
.stat p { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.stat__viz { margin-top: auto; padding-top: 22px; height: 58px; display: flex; align-items: flex-end; gap: 6px; }
.stat__bars i {
  flex: 1; height: calc(var(--v) * 100%); border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, var(--coral), rgba(242, 133, 109, .25));
  transform-origin: bottom; transform: scaleY(0);
  transition: transform 1.1s var(--ease);
}
.stat__bars i:nth-child(n) { transition-delay: calc(var(--i, 0) * 70ms); }
.is-counted .stat__bars i { transform: scaleY(1); }
.stat__dots { align-items: center; flex-wrap: wrap; gap: 8px; }
.stat__dots i {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--rose-soft);
  border: 1px solid rgba(140, 43, 78, .2);
  transition: background-color .4s, transform .4s var(--ease);
}
.is-counted .stat__dots i { background: var(--wine); transform: scale(1); }
.stat__ring { align-items: center; gap: 12px; }
.stat__ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.stat__ring circle { fill: none; stroke: var(--rose-soft); stroke-width: 4; }
.stat__ring .stat__ring-fill { stroke: var(--wine); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s var(--ease); }
.is-counted .stat__ring-fill { stroke-dashoffset: 28; }
.stat__ring span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat__stars { align-items: center; gap: 4px; }
.stat__stars svg { width: 20px; height: 20px; color: var(--sand); transition: color .4s; }
.is-counted .stat__stars svg { color: var(--coral); }
.stat__stars svg:nth-child(2) { transition-delay: .1s; } .stat__stars svg:nth-child(3) { transition-delay: .2s; }
.stat__stars svg:nth-child(4) { transition-delay: .3s; } .stat__stars svg:nth-child(5) { transition-delay: .4s; }

/* ---------- 3. Region ---------- */
.region {
  padding: var(--section) 0;
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(233, 183, 191, .35), transparent 60%),
    var(--cream-2);
}
.region .section-head { max-width: 900px; }
.region__layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.region__map {
  position: relative;
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 400px at 60% 40%, rgba(140, 43, 78, .5), transparent 70%),
    linear-gradient(160deg, var(--plum-800), var(--plum-950));
  padding: clamp(16px, 2.5vw, 28px);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  color: #fff;
}
.region__map svg { width: 100%; height: auto; overflow: visible; }
.region-dot { fill: rgba(233, 183, 191, .25); }
.region-link { stroke: rgba(233, 183, 191, .25); stroke-width: 1; stroke-dasharray: 3 5; fill: none; }
.region-outline { fill: rgba(233, 183, 191, .05); stroke: rgba(233, 183, 191, .35); stroke-width: 1; }
.state-node { cursor: pointer; outline: none; }
.state-node .halo { fill: rgba(242, 133, 109, .0); transition: fill .4s, r .4s var(--ease); }
.state-node .core { fill: var(--rose); transition: fill .3s, r .3s var(--ease); }
.state-node text {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  fill: rgba(255, 240, 244, .6); transition: fill .3s;
  pointer-events: none;
}
.state-node:hover .core, .state-node:focus-visible .core { fill: #fff; }
.state-node:hover text, .state-node:focus-visible text { fill: #fff; }
.state-node:focus-visible .halo { stroke: var(--coral); stroke-width: 1.5; }
.state-node.is-active .halo { fill: rgba(242, 133, 109, .22); r: 22; }
.state-node.is-active .core { fill: var(--coral); r: 7; }
.state-node.is-active text { fill: #fff; font-weight: 500; }
.state-node .pulse { fill: none; stroke: var(--coral); stroke-width: 1.2; opacity: 0; }
.state-node.is-active .pulse { animation: nodePulse 2.4s var(--ease) infinite; }
@keyframes nodePulse { 0% { r: 8; opacity: .8; } 100% { r: 34; opacity: 0; } }

.region__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.region__tabs button {
  font-size: .78rem; font-weight: 600; padding: 7px 12px; border-radius: 99px;
  color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .14);
  transition: all .25s;
}
.region__tabs button:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
.region__tabs button[aria-selected="true"] { background: #fff; color: var(--plum-900); border-color: #fff; }

.region__side { display: grid; gap: 16px; }
.state-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  min-height: 300px;
  overflow: hidden;
}
.state-card__inner { animation: cardSwap .55s var(--ease); }
@keyframes cardSwap { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.state-card__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.state-card__eyebrow { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.state-card h3 { font-family: var(--f-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); letter-spacing: -.035em; line-height: 1.02; margin-top: 8px; }
.state-card__line { margin-top: 14px; font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; line-height: 1.35; color: var(--wine); }
.state-card__grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.state-card__grid div { padding: 14px 16px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.state-card__grid small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.state-card__grid b { display: block; font-size: .95rem; margin-top: 2px; line-height: 1.35; }
.state-card__num { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.state-card .link { margin-top: 22px; }

.prefs {
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.prefs__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.prefs h3 { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.02em; }
.prefs__hint { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 99px;
  font-size: .88rem; font-weight: 600;
  border: 1px solid rgba(29, 26, 28, .14);
  background: var(--cream);
  transition: all .3s var(--ease);
}
.chip::before { content: "+"; font-weight: 500; opacity: .5; transition: transform .3s var(--ease); }
.chip:hover { border-color: var(--wine); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--plum-800); color: #fff; border-color: var(--plum-800); }
.chip[aria-pressed="true"]::before { content: "✓"; opacity: 1; color: var(--rose); }
.prefs__result { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .93rem; color: var(--ink-2); min-height: 3.2em; }
.prefs__result strong { color: var(--wine); }

/* ---------- 4. How ---------- */
.how { padding: var(--section) 0; background: var(--cream); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps__line {
  position: absolute; left: 0; right: 0; top: 44px; height: 1px;
  background: var(--line);
}
.steps__line span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--coral), var(--wine));
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.step {
  position: relative;
  padding: 0 4px;
}
.step__icon {
  width: 88px; height: 88px; border-radius: 28px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin-bottom: 30px;
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.step:hover .step__icon { transform: translateY(-6px) rotate(-3deg); box-shadow: var(--shadow-lift); }
.step__icon svg { width: 46px; height: 46px; fill: none; stroke: var(--wine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step__icon svg * { stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0) * 150ms + 300ms); }
.step.is-in .step__icon svg * { stroke-dashoffset: 0; }
.step__num { font-family: var(--f-mono); font-size: .78rem; color: var(--coral-deep); letter-spacing: .06em; }
.step h3 { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -.025em; line-height: 1.15; margin-top: 8px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: .97rem; max-width: 30ch; }

/* ---------- 5. Showcase ---------- */
.showcase {
  position: relative;
  padding: var(--section) 0 calc(var(--section) - 20px);
  background: var(--plum-950);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.showcase__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 50% 70%, rgba(140, 43, 78, .6), transparent 70%),
    radial-gradient(500px 300px at 15% 20%, rgba(242, 133, 109, .15), transparent 70%),
    radial-gradient(500px 300px at 85% 30%, rgba(255, 127, 168, .12), transparent 70%);
}
.showcase .h2 em { color: var(--rose); }
.showcase .lead { color: rgba(255, 240, 244, .65); }
.showcase__tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px; padding: 4px; margin: 0 auto 28px; width: max-content; max-width: 100%;
  border-radius: 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.showcase__tabs button { padding: 9px 16px; border-radius: 99px; font-size: .88rem; font-weight: 600; color: rgba(255, 255, 255, .65); transition: all .3s var(--ease); }
.showcase__tabs button:hover { color: #fff; }
.showcase__tabs button[aria-selected="true"] { background: #fff; color: var(--plum-900); }

/* Six screens: a snap carousel at every width, bleeding to the viewport edges. */
.phones {
  display: flex; align-items: flex-start;
  gap: clamp(18px, 2.2vw, 36px);
  margin-inline: calc(50% - 50vw);
  padding: 10px max(var(--gutter), calc((100vw - 1240px) / 2)) 40px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - 1240px) / 2));
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.phones::-webkit-scrollbar { display: none; }
.phones-nav { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 18px; }
.phones-nav__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05);
  transition: background-color .3s, transform .3s var(--ease), opacity .3s;
}
.phones-nav__btn:first-child svg { transform: rotate(180deg); }
.phones-nav__btn svg { width: 18px; height: 18px; }
.phones-nav__btn:hover { background: #fff; color: var(--plum-900); }
.phones-nav__btn:disabled { opacity: .3; pointer-events: none; }
.phone { margin: 0; flex: 0 0 auto; display: grid; justify-items: center; gap: 22px; scroll-snap-align: start; scroll-margin-top: 120px; }
.phone:nth-child(2) { margin-top: 70px; }
.phone:nth-child(3) { margin-top: 24px; }
.phone:nth-child(4) { margin-top: 90px; }
.phone:nth-child(5) { margin-top: 36px; }
.phone:nth-child(6) { margin-top: 80px; }
.phone figcaption { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 240, 244, .55); }
.phone__frame {
  --pw: 262px;
  position: relative;
  width: var(--pw); aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(145deg, #3a2a33, #120a0f 40%, #2a1d24);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    inset 0 0 0 4px #0b0609,
    0 50px 80px -30px rgba(0, 0, 0, .75),
    0 30px 60px -30px rgba(140, 43, 78, .6);
  animation: float 7s var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--d, 0) * -1.7s);
  transition: box-shadow .5s var(--ease);
}
.phone:hover .phone__frame { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 4px #0b0609, 0 60px 90px -30px rgba(0, 0, 0, .8), 0 40px 80px -30px rgba(255, 127, 168, .5); }
@keyframes float { from { transform: translateY(-8px) rotate(-.4deg); } to { transform: translateY(10px) rotate(.4deg); } }
.phone__island { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 82px; height: 24px; border-radius: 99px; background: #050304; z-index: 5; }
.screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--cream);
  color: var(--charcoal);
  padding: 50px 14px 14px;
  display: flex; flex-direction: column;
  font-size: 12px;
}
.screen::before { /* status bar */
  content: "9:41"; position: absolute; top: 18px; left: 28px; font-size: 11px; font-weight: 700;
}
.screen::after { content: ""; position: absolute; top: 22px; right: 26px; width: 34px; height: 9px; border-radius: 3px;
  background: linear-gradient(90deg, var(--charcoal) 70%, rgba(29, 26, 28, .25) 70%); }

.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.app-logo { display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.app-logo img { width: 20px; height: 20px; }
.app-title { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.app-bar__icons { display: flex; gap: 6px; }
.app-bar__icons i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.badge { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: var(--coral); color: #fff; }

/* Placeholder photo: layered gradients. Replace .photo with <img> for real imagery. */
.photo, .deck-card {
  background:
    radial-gradient(70% 55% at 50% 36%, color-mix(in srgb, var(--h2) 85%, #fff) 0%, transparent 60%),
    radial-gradient(90% 60% at 20% 100%, var(--h1) 0%, transparent 70%),
    linear-gradient(170deg, var(--h2) 0%, var(--h1) 55%, var(--h3, #1d0b16) 100%);
}
.deck { position: relative; flex: 1; margin: 16px 0 14px; }
.deck-card {
  position: absolute; inset: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(45, 18, 35, .45);
  transform-origin: 50% 0%;
  transition: transform .5s var(--ease), opacity .4s;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.deck-card:active { cursor: grabbing; }
.deck-card[data-pos="1"] { transform: translateY(-8px) scale(.94); }
.deck-card[data-pos="2"] { transform: translateY(-16px) scale(.88); opacity: .6; }
.deck-card.is-dragging { transition: none; }
.deck-card::before { /* subtle silhouette light */
  content: ""; position: absolute; left: 50%; top: 22%; width: 46%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent);
}
.deck-card__info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 14px 14px;
  background: linear-gradient(180deg, transparent, rgba(22, 9, 16, .85));
  color: #fff;
}
.deck-card__info strong { font-family: var(--f-display); font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.deck-card__info strong svg { width: 14px; height: 14px; color: #7dd3fc; }
.deck-card__info span { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: .8; margin-top: 2px; }
.deck-card__info span svg { width: 12px; height: 12px; }
.deck-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.deck-card__tags em { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.stamp {
  position: absolute; top: 20px; padding: 4px 10px; border-radius: 8px; border: 2px solid; font-weight: 800; font-size: 14px; letter-spacing: .08em;
  opacity: 0; transition: opacity .15s;
}
.stamp--like { left: 16px; color: #9ff0c8; border-color: #9ff0c8; transform: rotate(-12deg); }
.stamp--pass { right: 16px; color: #ffb3b3; border-color: #ffb3b3; transform: rotate(12deg); }
.deck__actions { display: flex; justify-content: center; align-items: center; gap: 14px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 8px 18px -8px rgba(45, 18, 35, .35); border: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.round svg { width: 20px; height: 20px; }
.round:hover { transform: scale(1.1); }
.round:active { transform: scale(.92); }
.round--pass { color: var(--muted); }
.round--star { width: 38px; height: 38px; color: var(--gold-deep); }
.round--star svg { width: 16px; height: 16px; }
.round--like { width: 54px; height: 54px; color: #fff; background: linear-gradient(135deg, var(--coral), #e05a79); border: 0; }

.photo--tall { position: relative; height: 56%; margin: -50px -14px 0; border-radius: 0; }
.photo__meta { position: absolute; left: 16px; bottom: 14px; color: #fff; }
.photo__meta strong { font-family: var(--f-display); font-size: 21px; letter-spacing: -.02em; display: block; }
.photo__meta span { display: flex; gap: 4px; align-items: center; font-size: 11px; opacity: .85; }
.photo__meta svg { width: 12px; height: 12px; }
.screen--profile { padding-top: 50px; }
.screen--profile::before, .screen--profile::after { z-index: 2; color: #fff; }
.screen--profile::after { background: linear-gradient(90deg, #fff 70%, rgba(255, 255, 255, .35) 70%); }
.profile__body { display: grid; gap: 8px; padding-top: 12px; overflow: hidden; }
.prompt { padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.prompt small { font-size: 10px; color: var(--muted); font-weight: 600; }
.prompt p { font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin-top: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px; }
.facts span { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 99px; background: var(--rose-soft); color: var(--burgundy); }

.screen__label { font-size: 11px; font-weight: 700; color: var(--muted); margin: 6px 4px 8px; }
.matches { display: flex; gap: 8px; padding: 0 2px; }
.match { display: grid; justify-items: center; gap: 4px; font-size: 10px; }
.match i { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(140deg, var(--h1), var(--h2)); box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--coral); }
.match b { font-weight: 600; }
.likes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.like-tile { position: relative; border-radius: 16px; background: linear-gradient(160deg, var(--h2), var(--h1)); overflow: hidden; }
.like-tile em { position: absolute; left: 10px; bottom: 8px; color: #fff; font-weight: 700; font-size: 12px; }
.like-tile.is-blur::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .1); }
.gold-nudge { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 14px; font-size: 11px; font-weight: 700; color: var(--plum-900); background: linear-gradient(135deg, #f7ddb0, var(--gold)); }
.gold-nudge svg { width: 14px; height: 14px; }

.chat-head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; border-bottom: 1px solid var(--line); }
.chat-head__av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, var(--h1), var(--h2)); }
.chat-head strong { display: block; font-size: 14px; }
.chat-head small { font-size: 10px; color: #3a9a6d; font-weight: 600; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 2px; overflow: hidden; }
.chat__day { align-self: center; font-size: 10px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.bubble {
  max-width: 80%;
  padding: 8px 12px; border-radius: 16px;
  font-size: 12px; line-height: 1.4;
  box-sizing: content-box;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.is-in .bubble { opacity: 1; transform: none; }
.is-in .bubble:nth-of-type(3) { transition-delay: .4s; } .is-in .bubble:nth-of-type(4) { transition-delay: .9s; }
.is-in .bubble:nth-of-type(5) { transition-delay: 1.4s; } .is-in .bubble:nth-of-type(6) { transition-delay: 1.9s; }
.bubble--them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--wine), var(--burgundy)); border-bottom-right-radius: 5px; }
.chat__typing { display: flex; gap: 3px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; opacity: 0; transition: opacity .4s 2.4s; }
.is-in .chat__typing { opacity: 1; }
.chat__typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.chat__typing span:nth-child(2) { animation-delay: .15s; } .chat__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
.chat-input { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.chat-input i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), #e05a79); }

/* ---------- 6. Features (bento) ---------- */
.features { padding: var(--section) 0; background: var(--cream); }
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "disc disc prof loc"
    "comm comm like loc"
    "msg  priv prem prem";
  gap: 16px;
}
.card--disc { grid-area: disc; } .card--prof { grid-area: prof; } .card--loc { grid-area: loc; }
.card--comm { grid-area: comm; } .card--like { grid-area: like; } .card--msg { grid-area: msg; }
.card--priv { grid-area: priv; } .card--prem { grid-area: prem; }

.card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.card::before { /* cursor glow */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(242, 133, 109, .13), transparent 45%);
}
.card::after { /* gradient border follows cursor */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(226, 90, 121, .75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--rose-soft), #fff);
  border: 1px solid rgba(140, 43, 78, .14);
  box-shadow: 0 8px 20px -8px rgba(226, 90, 121, .5), inset 0 1px 0 #fff;
  margin-bottom: 22px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); box-shadow: 0 10px 26px -6px rgba(226, 90, 121, .7), inset 0 1px 0 #fff; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--wine); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--f-display); font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.15; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; max-width: 42ch; }
.card .link { margin-top: auto; padding-top: 18px; align-self: flex-start; border: 0; }

.card--disc { background: linear-gradient(160deg, #fff 30%, var(--rose-soft)); }
.viz-sliders { margin-top: 26px; display: grid; gap: 14px; }
.viz-sliders div { display: grid; grid-template-columns: 90px 1fr 80px; align-items: center; gap: 14px; font-size: .82rem; }
.viz-sliders span { color: var(--muted); font-weight: 600; }
.viz-sliders b { text-align: right; font-weight: 700; }
.viz-sliders i { position: relative; height: 6px; border-radius: 6px; background: rgba(140, 43, 78, .12); }
.viz-sliders i::before {
  content: ""; position: absolute; top: 0; bottom: 0; border-radius: inherit;
  left: calc(var(--a) * 100%); right: calc((1 - var(--b)) * 100%);
  background: linear-gradient(90deg, var(--coral), var(--wine));
  transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .3s;
}
.viz-sliders i::after {
  content: ""; position: absolute; top: 50%; left: calc(var(--b) * 100%);
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--wine);
  transform: translate(-50%, -50%) scale(0); transition: transform .5s var(--ease) 1.2s;
}
.card.is-in .viz-sliders i::before { transform: scaleX(1); }
.card.is-in .viz-sliders i::after { transform: translate(-50%, -50%) scale(1); }

.card--loc { background: var(--plum-900); color: #fff; border-color: transparent; }
.card--loc p { color: rgba(255, 240, 244, .7); }
.card--loc .card__icon { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); box-shadow: 0 0 30px -4px rgba(242, 133, 109, .5); }
.card--loc .card__icon svg { stroke: var(--rose); }
.viz-radar { position: relative; margin-top: auto; padding-top: 24px; aspect-ratio: 1; width: 100%; max-width: 260px; align-self: center; }
.viz-radar .r { position: absolute; border-radius: 50%; border: 1px solid rgba(233, 183, 191, .2); inset: 0; margin: auto; }
.viz-radar .r1 { width: 100%; height: 100%; } .viz-radar .r2 { width: 66%; height: 66%; } .viz-radar .r3 { width: 33%; height: 33%; }
.viz-radar .sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(242, 133, 109, .35), transparent 25%);
  animation: sweep 5s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.viz-radar i { position: absolute; left: var(--x); top: var(--y); width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--coral); transform: translate(-50%, -50%); }
.viz-radar b { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); border: 3px solid var(--plum-900); box-shadow: 0 0 0 1px var(--coral); transform: translate(-50%, -50%); }

.viz-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.viz-tags span { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--cream); border: 1px solid var(--line); transition: all .3s var(--ease); }
.viz-tags span:hover { background: var(--plum-800); color: #fff; border-color: var(--plum-800); }
.viz-tags span:last-child { background: none; border-style: dashed; color: var(--muted); }

.card--prem { background: linear-gradient(135deg, var(--plum-800), var(--burgundy)); color: #fff; border-color: transparent; }
.card--prem p { color: rgba(255, 240, 244, .75); }
.card--prem .card__icon { background: linear-gradient(145deg, #f7ddb0, var(--gold)); border-color: transparent; box-shadow: 0 8px 26px -6px rgba(231, 194, 138, .7); }
.card--prem .card__icon svg { stroke: var(--plum-900); }
.card--prem .link { color: var(--gold); }

/* ---------- 7. Culture ---------- */
.culture {
  position: relative;
  padding: var(--section) 0 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.culture__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(242, 133, 109, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 80%, rgba(255, 127, 168, .12), transparent 60%),
    linear-gradient(170deg, var(--burgundy) 0%, #4a1530 45%, var(--plum-900) 100%);
}
.culture__bg::after { z-index: 0; }
.culture__statement {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1rem + 3.3vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  max-width: 22ch;
}
.culture__statement .w { opacity: .18; transition: opacity .35s linear; }
.culture__statement .w.is-lit { opacity: 1; }
.culture__statement .w--accent { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--rose); letter-spacing: -.01em; }
.vignettes { margin-top: clamp(64px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.vignettes article { padding: 36px 28px 40px 0; background: transparent; }
.vignettes article + article { padding-left: 28px; }
.vignettes { background: none; }
.vignettes article + article { border-left: 1px solid var(--line-light); }
.vignettes span { font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; color: var(--coral); }
.vignettes h3 { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: -.025em; margin-top: 10px; line-height: 1.2; }
.vignettes p { margin-top: 8px; color: rgba(255, 240, 244, .68); font-size: .97rem; max-width: 34ch; }

.ribbon { margin-top: clamp(56px, 7vw, 96px); padding: 26px 0; border-top: 1px solid var(--line-light); overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ribbon__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon span { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); white-space: nowrap; color: rgba(255, 240, 244, .9); display: flex; align-items: baseline; gap: 10px; }
.ribbon small { font-family: var(--f-mono); font-style: normal; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Safety (deliberately calmer, institutional) ---------- */
.safety {
  padding: var(--section) 0;
  background: var(--paper);
  color: var(--slate);
  background-image:
    linear-gradient(var(--line-safety) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-safety) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  position: relative;
}
.safety::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 40%, var(--paper) 30%, rgba(242, 243, 239, .75) 80%); pointer-events: none; }
.safety .container { position: relative; }
.safety__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.index--safety { color: var(--sage); }
.h2--safety { font-family: var(--f-body); font-weight: 700; letter-spacing: -.04em; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.05; max-width: 16ch; }
.safety .lead { color: var(--slate-2); margin-top: 22px; }
.safety__list { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line-safety); }
.safety__list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-safety); }
.safety__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-safety); }
.safety__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--sage); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.safety__list h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.safety__list p { color: var(--slate-2); font-size: .95rem; margin-top: 2px; }
.link--safety { color: var(--sage); margin-top: 28px; }

.safety__panel { display: grid; gap: 16px; position: sticky; top: 110px; }
.panel { background: #fff; border: 1px solid var(--line-safety); border-radius: 18px; padding: 8px 22px; box-shadow: 0 1px 2px rgba(34, 40, 43, .04), 0 20px 40px -24px rgba(34, 40, 43, .2); }
.panel__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-safety); font-size: .95rem; }
.panel__status { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--sage-soft); color: var(--sage); transition: all .3s; }
.panel__status.is-strict { background: var(--sage); color: #fff; }
.muted-sm { font-size: .8rem; color: var(--slate-2); }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; }
.toggle + .toggle { border-top: 1px solid #eceee9; }
.toggle b { display: block; font-size: .93rem; font-weight: 650; }
.toggle small { display: block; font-size: .8rem; color: var(--slate-2); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { flex: 0 0 auto; position: relative; width: 44px; height: 26px; border-radius: 99px; background: #d5d9d3; transition: background-color .3s var(--ease); }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .35s var(--ease); }
.toggle input:checked + i { background: var(--sage); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--sage); outline-offset: 3px; }
.report-steps { display: grid; gap: 0; padding: 12px 0 14px; }
.report-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .92rem; color: var(--slate-2); }
.report-steps span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border: 1px solid var(--line-safety); }
.report-steps .is-done { color: var(--slate); }
.report-steps .is-done span { background: var(--sage); border-color: var(--sage); color: #fff; }

/* ---------- 9. Premium ---------- */
.premium { padding: var(--section) 0; background: var(--cream); }
.billing {
  position: relative; display: inline-flex; padding: 4px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); margin-top: 8px;
}
.billing button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 99px; font-weight: 650; font-size: .9rem; color: var(--ink-2); transition: color .3s; display: flex; align-items: center; gap: 8px; }
.billing button[aria-pressed="true"] { color: #fff; }
.billing button span { font-size: .7rem; padding: 2px 7px; border-radius: 99px; background: rgba(242, 133, 109, .18); color: var(--coral-deep); }
.billing button[aria-pressed="true"] span { background: rgba(255, 255, 255, .2); color: #fff; }
.billing__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 99px; background: var(--plum-800); transition: transform .45s var(--ease), width .45s var(--ease); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.plan h3 { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -.025em; }
.plan__desc { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.plan__price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.plan__amt { font-family: var(--f-display); font-size: 3rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__amt.is-changing { animation: priceSwap .45s var(--ease); }
@keyframes priceSwap { 0% { opacity: 0; transform: translateY(8px); } }
.plan__per { color: var(--muted); font-size: .92rem; }
.plan__note { font-size: .8rem; color: var(--muted); margin-top: 6px; min-height: 1.3em; }
.plan ul { margin: 26px 0 30px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--wine); }
.plan .btn { margin-top: auto; width: 100%; }

.plan--plus {
  border: 1px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, var(--coral), var(--pink) 40%, var(--wine)) border-box;
  box-shadow: 0 30px 60px -30px rgba(226, 90, 121, .45);
}
.plan__badge { position: absolute; top: -13px; left: 30px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--coral), #e05a79); }

.plan--gold {
  color: #fff;
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(231, 194, 138, .22), transparent 60%),
    linear-gradient(160deg, var(--plum-800), var(--plum-950));
  border-color: rgba(231, 194, 138, .28);
}
.plan--gold h3 { background: linear-gradient(100deg, #f7ddb0, var(--gold) 50%, #d9a866); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.plan--gold .plan__desc, .plan--gold .plan__per, .plan--gold .plan__note { color: rgba(255, 240, 244, .6); }
.plan--gold ul { border-color: rgba(255, 255, 255, .12); }
.plan--gold li svg { color: var(--gold); }

.compare { margin-top: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.compare summary { list-style: none; cursor: pointer; padding: 20px 28px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .35s var(--ease); }
.compare[open] summary svg { transform: rotate(-90deg); }
.compare__wrap { overflow-x: auto; padding: 0 28px 20px; }
.compare table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .93rem; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font-size: .8rem; color: var(--muted); font-weight: 650; }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--ink-2); }

/* ---------- 10. Stories ---------- */
.stories { padding: var(--section) 0; background: var(--cream-2); overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; padding: 10px 0 20px; animation: marquee 55s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.story {
  margin: 0;
  width: clamp(300px, 34vw, 440px);
  padding: 32px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  transition: transform .5s var(--ease), background-color .3s;
}
.story:hover { transform: translateY(-4px); background: #fff; }
.story blockquote { margin: 0; font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.35; color: var(--plum-800); }
.story figcaption { display: flex; align-items: center; gap: 12px; }
.story b { display: block; font-size: .95rem; }
.story small { display: block; font-size: .82rem; color: var(--muted); }
.av { display: flex; }
.av i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(140deg, var(--h1), var(--h2)); border: 2px solid #fff; }
.av i + i { margin-left: -12px; }

/* ---------- 11. Final CTA ---------- */
.final {
  position: relative;
  padding: clamp(120px, 14vw, 200px) 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(900px 500px at 50% 110%, rgba(242, 133, 109, .35), transparent 60%),
    radial-gradient(1000px 600px at 50% 30%, rgba(140, 43, 78, .5), transparent 70%),
    var(--plum-950);
  overflow: hidden;
  isolation: isolate;
}
.final::after { z-index: 0; }
.final__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.final__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 26px; }
.final__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.6rem, 1.2rem + 5.2vw, 6.2rem);
  line-height: .98; letter-spacing: -.045em;
  max-width: 17ch; text-wrap: balance;
}
.final__title em { color: var(--rose); }
.final .lead { color: rgba(255, 240, 244, .7); }
.final__actions { margin-top: 6px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.store {
  display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.1; text-align: left;
  transition: all .35s var(--ease);
}
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: .68rem; font-weight: 500; opacity: .7; letter-spacing: 0; }
.store:hover { background: #fff; color: var(--plum-950); transform: translateY(-2px); }

/* ---------- 12. Footer ---------- */
.footer { background: var(--plum-950); color: rgba(255, 240, 244, .7); padding: 80px 0 36px; border-top: 1px solid var(--line-light); }
.footer .brand { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer__brand p { margin-top: 18px; max-width: 32ch; font-size: .95rem; }
.socials { display: flex; gap: 8px; margin-top: 24px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-light); color: #fff; transition: all .3s var(--ease); }
.socials a:hover { background: #fff; color: var(--plum-950); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__cols h3 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 240, 244, .45); font-weight: 500; margin-bottom: 16px; }
.footer__cols a { display: block; padding: 10px 0; font-size: .95rem; transition: color .2s; }
.footer__cols a:hover, .footer__bottom a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: .85rem; }
.footer__bottom div { display: flex; flex-wrap: wrap; column-gap: 22px; }
.footer__bottom a { display: inline-block; padding: 11px 0; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: calc(100% - 32px); width: 460px; color: var(--charcoal); overflow: visible; }
.modal::backdrop { background: rgba(22, 9, 16, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] .modal__card { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.modal__card { position: relative; background: var(--cream); border-radius: 30px; padding: 36px 32px 32px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .6); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; transition: background-color .2s; }
.modal__close:hover { background: rgba(29, 26, 28, .06); }
.modal__close svg { width: 18px; height: 18px; }
.modal h2 { font-family: var(--f-display); font-size: 1.9rem; letter-spacing: -.035em; line-height: 1.1; margin-top: 18px; }
.modal__sub { color: var(--ink-2); margin-top: 8px; margin-bottom: 22px; font-size: .95rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: .82rem; font-weight: 650; }
.field input, .field select {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(29, 26, 28, .16); background: #fff;
  font: inherit; font-size: 1rem; color: var(--charcoal); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237c6f75' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(140, 43, 78, .12); }
.field .is-invalid, .field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c0392b; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin: 6px 0 4px; cursor: pointer; }
.check a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--wine); }
.form-error { color: #b0302a; font-size: .85rem; min-height: 1.4em; margin: 6px 0 10px; }
.modal__done { text-align: center; padding: 20px 0 4px; }
.modal__done .btn { margin-top: 8px; }
.done-ring { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--coral), var(--wine)); animation: pop .6s var(--ease); box-shadow: 0 0 0 10px rgba(242, 133, 109, .15); }
.done-ring svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300;
  padding: 12px 20px; border-radius: 99px; font-size: .9rem; font-weight: 600;
  color: #fff; background: rgba(24, 9, 18, .92); backdrop-filter: blur(10px);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  transition: all .4s var(--ease);
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.phone[data-reveal] { transform: translateY(60px); }
.phone[data-reveal].is-in { transform: translateY(var(--py, 0px)); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.phone.is-in.is-settled { transition: transform .1s linear; transition-delay: 0s; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Edit mode (?edit) */
.is-editing [data-editable] { outline: 1px dashed rgba(242, 133, 109, .6); outline-offset: 6px; border-radius: 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 10px; font-size: .86rem; }
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }

  .hero__map { width: 90%; right: -38%; opacity: .7; }
  .hero__map { -webkit-mask-image: linear-gradient(90deg, transparent 5%, #000 60%); mask-image: linear-gradient(90deg, transparent 20%, #000 65%); }

  .proof__grid { grid-template-columns: repeat(2, 1fr); }
  .region__layout { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; gap: 22px; }
  .section-head--split .lead { justify-self: start; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps__line { display: none; }

  .phones-nav { display: none; }
  .phone { scroll-snap-align: center; margin-top: 0 !important; }
  .phone__frame { --pw: 250px; }
  .phone[data-parallax] { --py: 0px !important; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "disc disc" "prof loc" "like loc" "comm comm" "msg priv" "prem prem"; }

  .safety__grid { grid-template-columns: 1fr; }
  .safety__panel { position: static; }

  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--gold { order: -1; }

  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav { inset-block-start: 10px; }
  .nav__inner { height: 58px; padding: 0 6px 0 14px; }
  .nav__cta .btn { display: none; }

  .hero { min-height: auto; padding: calc(var(--nav-h) + 70px) 0 120px; align-items: flex-start; }
  .hero { flex-direction: column; align-items: stretch; padding-bottom: 72px; }
  .hero__map {
    position: relative; order: 2; inset: auto; right: auto;
    width: 118%; height: 380px; margin: 8px -9% 0; opacity: .9;
    -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent);
    mask-image: radial-gradient(closest-side, #000 60%, transparent);
  }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(3rem, 13vw, 3.6rem); }
  .hero__title { max-width: 9ch; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { margin-top: 36px; }

  .proof__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .proof__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px 18px; }
  .stat__viz { padding-top: 14px; height: 44px; }
  .stat__ring span { display: none; }

  .state-card__grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; }
  .step__icon { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 0; grid-row: span 3; }
  .step__icon svg { width: 38px; height: 38px; }
  .step h3 { margin-top: 2px; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "disc" "prof" "loc" "comm" "like" "msg" "priv" "prem"; }
  .viz-sliders div { grid-template-columns: 76px 1fr 64px; gap: 10px; }
  .viz-radar { max-width: 200px; }

  .vignettes { grid-template-columns: 1fr; }
  .vignettes article, .vignettes article + article { padding: 28px 0; border-left: 0; }
  .vignettes article + article { border-top: 1px solid var(--line-light); }

  .plan { padding: 30px 24px 24px; }
  .story { width: 82vw; padding: 26px; }
  .story blockquote { font-size: 1.25rem; }

  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__bottom { flex-direction: column; }

  .modal__card { padding: 30px 22px 24px; }
}

@media (max-width: 380px) {
  .proof__grid { grid-template-columns: 1fr; }
  .stores .store { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ribbon__track, .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .culture__statement .w { opacity: 1; }
}
.deck-card[data-pos="3"], .deck-card[data-pos="4"] { transform: translateY(-16px) scale(.88); }

/* QA pass fixes */
.tag, .viz-sliders b { white-space: nowrap; }
.prefs__head { flex-wrap: wrap; }
@media (max-width: 720px) {
  .viz-sliders div { grid-template-columns: 72px 1fr auto; }
  .hero__map { height: 420px; }
}


/* ---------- Showcase: Events screen ---------- */
.pill-btn { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 99px; color: #fff; background: var(--plum-800); }
.seg { display: flex; padding: 3px; border-radius: 99px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { flex: 1; padding: 6px 0; border-radius: 99px; font-size: 10.5px; font-weight: 700; color: var(--muted); transition: all .25s var(--ease); }
.seg button.is-on { background: var(--rose-soft); color: var(--burgundy); }
.ev-list { display: grid; gap: 8px; flex: 1; align-content: start; }
.ev-list.is-swapping { animation: cardSwap .45s var(--ease); }
.ev { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.ev strong { display: block; font-size: 12px; line-height: 1.2; }
.ev span { display: block; font-size: 10px; color: var(--muted); }
.ev__thumb { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(140deg, var(--h1), var(--h2)); }
.ev__tag { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 3px 7px; border-radius: 99px; background: var(--cream); color: var(--ink-2); }
.ev--feature {
  position: relative; display: block; padding: 0; overflow: hidden; border: 0;
  height: 196px; color: #fff;
  background:
    radial-gradient(80% 60% at 70% 30%, color-mix(in srgb, var(--h2) 80%, #fff) 0%, transparent 60%),
    linear-gradient(160deg, var(--h2), var(--h1) 60%, #1d0b16);
}
.ev__date { position: absolute; top: 10px; left: 10px; width: 40px; padding: 5px 0; border-radius: 10px; text-align: center; background: rgba(255, 255, 255, .92); color: var(--plum-900) !important; font-size: 8.5px !important; font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.ev__date b { display: block; font-family: var(--f-display); font-size: 16px; letter-spacing: -.02em; }
.ev__cat { position: absolute; top: 12px; right: 10px; font-size: 9.5px !important; font-weight: 700; padding: 4px 8px; border-radius: 99px; color: #fff !important; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.ev__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(180deg, transparent, rgba(22, 9, 16, .85)); }
.ev__body strong { font-family: var(--f-display); font-size: 17px; letter-spacing: -.02em; }
.ev__body > span { color: rgba(255, 255, 255, .78); }
.ev__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ev__going { display: flex !important; align-items: center; }
.ev__going i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #2a0f1f; background: linear-gradient(140deg, var(--h1), var(--h2)); }
.ev__going i + i { margin-left: -6px; }
.ev__going em { font-style: normal; font-size: 10px; font-weight: 700; color: #fff; margin-left: 6px; }
.ev__join { font-size: 11px; font-weight: 800; padding: 7px 14px; border-radius: 99px; color: var(--plum-900); background: #fff; transition: all .3s var(--ease); }
.ev__join.is-going { background: var(--coral); color: #fff; }
.ev__note { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); margin-top: 8px; }
.ev__note svg { width: 11px; height: 11px; }

/* ---------- Showcase: Blind Date screen ---------- */
.screen--blind { background: linear-gradient(180deg, #2a0f1f, var(--plum-950)); color: #fff; }
.screen--blind::before { color: #fff; }
.screen--blind::after { background: linear-gradient(90deg, #fff 70%, rgba(255, 255, 255, .3) 70%); }
.blind-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.blind-av { position: relative; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(233, 183, 191, .5); }
.blind-av__photo { position: absolute; inset: 0; background: linear-gradient(140deg, var(--h1), var(--h2)); filter: blur(10px); opacity: .55; transition: filter .9s var(--ease), opacity .9s; }
.blind-av b { position: relative; font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--rose); transition: opacity .5s; }
.blind-head strong { display: block; font-size: 13.5px; }
.blind-head small { font-size: 10px; color: var(--rose); font-weight: 600; }
.blind-match { display: flex; align-items: center; gap: 8px; margin: 12px 2px 0; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: 10.5px; color: rgba(255, 240, 244, .75); }
.blind-match__score { font-family: var(--f-display); font-size: 16px; font-weight: 700; color: var(--coral); }
.chat--blind .bubble--them { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .08); color: #fff; }
.chat--blind .bubble--me { background: linear-gradient(135deg, var(--coral), #d9577a); }
.reveal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; }
.reveal__state { display: flex; justify-content: space-between; font-size: 10px; color: rgba(255, 240, 244, .6); margin-bottom: 8px; }
.reveal__state .is-yes { color: #9ff0c8; font-weight: 700; }
.reveal__btn { width: 100%; padding: 11px; border-radius: 99px; font-size: 12px; font-weight: 800; color: var(--plum-900); background: linear-gradient(135deg, #ffd2c4, var(--rose)); transition: all .3s var(--ease); }
.reveal__btn:disabled { opacity: .6; cursor: default; }
.screen--blind.is-revealed .blind-av { border-style: solid; border-color: var(--coral); }
.screen--blind.is-revealed .blind-av__photo { filter: none; opacity: 1; }
.screen--blind.is-revealed .blind-av b { opacity: 0; }

/* ---------- Discover deck: event + blind date cards ---------- */
.deck-card__kicker {
  position: absolute; top: 12px; left: 12px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 99px; color: #fff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px);
}
.deck-card--blind { background: radial-gradient(70% 50% at 50% 38%, rgba(242, 133, 109, .35), transparent 70%), linear-gradient(170deg, #3d1830, #160910) !important; }
.deck-card--blind::before { display: none; }
.deck-card__q { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed rgba(233, 183, 191, .6); font-family: var(--f-serif); font-style: italic; font-size: 48px; color: var(--rose); }
.deck-card__date { position: absolute; top: 12px; right: 12px; width: 44px; padding: 5px 0; border-radius: 12px; text-align: center; background: rgba(255, 255, 255, .92); color: var(--plum-900); font-size: 9px; font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.deck-card__date b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: -.02em; }
.deck-card__cta { display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: #fff; color: var(--plum-900); }

.ev[hidden] { display: none; }
.ev-empty { padding: 22px 12px; border-radius: 14px; border: 1px dashed rgba(29, 26, 28, .18); text-align: center; font-size: 11px; color: var(--muted); }

/* design-review fixes (2026-09-27) */
input, select, textarea, button { font: inherit; }                      /* FINDING-004: controls fell back to Arial */
.check input { width: 20px; height: 20px; flex: 0 0 auto; }            /* FINDING-002: 13px checkbox */
.hero__scroll::before { content: ""; position: absolute; inset: -10px; } /* FINDING-002: 44px hit area */
.tag { font-size: .75rem; }                                             /* FINDING-003: labels under 12px */
.state-card__grid small, .state-card__eyebrow { font-size: .78rem; }
.viz-tags span { font-size: .82rem; }
.chat--blind { justify-content: flex-end; }                             /* FINDING-005: blind chat floated mid-screen */
.ribbon small { font-size: .75rem; }                                   /* FINDING-003 (ribbon labels) */
.footer__bottom { align-items: center; }                                /* FINDING-006: baseline after 44px link targets */
@media (max-width: 720px) {                                             /* FINDING-007: six tabs wrapped to two rows */
  .showcase__tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-radius: 99px; }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .showcase__tabs button { flex: 0 0 auto; }
}
.deck-card.has-photo::before { display: none; }                         /* real photos skip the placeholder light */
.like-tile.has-photo { background-color: #2a0f1f; background-position: center 22%; background-size: cover; background-repeat: no-repeat; }  /* image set inline so its URL resolves against the page */
.like-tile.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22, 9, 16, .72)); }

/* Event imagery (image URLs set inline so they resolve against the page) */
.ev--feature.has-photo { background-color: #2a0f1f; background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
.ev__thumb.has-photo { background-color: #1d3b33; background-size: cover; background-position: center 72%; background-repeat: no-repeat; }
.ev--feature.has-photo .ev__cat, .deck-card.has-photo .deck-card__kicker { background: rgba(22, 9, 16, .62); }  /* readable over poster art */

.match i.has-photo { background-color: #2a0f1f; background-size: cover; background-repeat: no-repeat; }  /* photo + position set inline */

/* Profile + chat photos (image URLs set inline so they resolve against the page) */
.photo.has-photo { background-color: #2a0f1f; background-size: cover; background-repeat: no-repeat; }
.photo.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(22, 9, 16, .75)); }
.photo.has-photo .photo__meta { z-index: 1; }
.chat-head__av.has-photo { background-size: cover; background-repeat: no-repeat; }

/* Events: poster shown whole, details in a panel below it */
.ev--poster { height: auto; display: block; background: #2a0f1f; color: #fff; }
.ev--poster .ev__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.ev--poster .ev__body { position: static; padding: 9px 10px 10px; background: none; display: grid; grid-template-columns: 38px 1fr; align-items: center; column-gap: 9px; }
.ev--poster .ev__date { position: static; width: 38px; }
.ev--poster .ev__info strong { font-family: var(--f-display); font-size: 15px; letter-spacing: -.02em; color: #fff; }
.ev--poster .ev__info span { color: rgba(255, 255, 255, .72); }
.ev--poster .ev__foot { grid-column: 1 / -1; margin-top: 8px; }

/* Gold is the most popular plan: it carries the badge and the emphasis */
.plan--plus { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.plan--gold { box-shadow: 0 30px 60px -30px rgba(185, 138, 74, .55); }
.plan--gold .plan__badge { color: var(--plum-950); background: linear-gradient(135deg, #f7ddb0, var(--gold)); }
/* Events screen: tighter rhythm so the full-height poster and the location note both fit */
.screen--events .seg { margin-bottom: 6px; }
.screen--events .ev-list { gap: 6px; }
.screen--events .ev:not(.ev--poster) { padding: 6px 8px; }
.ev--poster .ev__body { padding: 7px 10px 8px; }
.ev--poster .ev__foot { margin-top: 5px; }
.screen--events .ev__note { margin-top: 6px; }
