/* ============================================================
   nexi — landing page styles
   editorial black canvas. heavy reliance on type, whitespace,
   and the three mode tints (mint / rose / sky).
   ============================================================ */

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-card: #0e0e0e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --fg: #FAFAF9;
  --fg-muted: rgba(250, 250, 249, 0.62);
  --fg-dim: rgba(250, 250, 249, 0.42);
  --fg-faint: rgba(250, 250, 249, 0.22);

  --friends: #A8D5BA;
  --dating: #F5C5D4;
  --business: #A8C5E2;

  --friends-soft: rgba(168, 213, 186, 0.10);
  --dating-soft: rgba(245, 197, 212, 0.10);
  --business-soft: rgba(168, 197, 226, 0.10);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

/* SEO mirror — hidden from sighted users (visually offscreen) but indexable
   by crawlers and AI bots that don't run our JS. React replaces it on hydrate. */
.seo-mirror {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  font-family: var(--sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

::selection { background: rgba(168, 213, 186, 0.35); color: #000; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ----- shared layout ----- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--fg-faint);
}

html, body {
  overflow-x: hidden;
}

.section {
  padding: clamp(80px, 12vw, 160px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: clamp(48px, 8vw, 96px);
}

.section-head h2 {
  font-size: clamp(32px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 52ch;
  text-wrap: pretty;
}

@media (min-width: 880px) {
  .section-head {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 64px;
  }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.04em;
  font-size: 22px;
  font-weight: 700;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-links {
  display: none;
  gap: 22px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.nav-cta .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--friends);
  box-shadow: 0 0 10px rgba(168, 213, 186, 0.6);
}
@media (min-width: 980px) {
  .nav-links { display: flex; }
}

/* hamburger button — mobile only */
.nav-burger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-burger:hover { background: rgba(255,255,255,0.04); }
.nav-burger .burger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.32s cubic-bezier(.7,.1,.3,1.3), opacity 0.2s ease;
}
.nav-burger.open .burger-line-1 {
  transform: translateY(3.25px) rotate(45deg);
}
.nav-burger.open .burger-line-2 {
  transform: translateY(-3.25px) rotate(-45deg);
}
@media (min-width: 980px) {
  .nav-burger { display: none; }
}

/* mobile CTA visibility — hide nav cta button on tight widths to leave
   room for brand + burger; bring it back inside the drawer instead */
@media (max-width: 539px) {
  .nav .nav-cta:not(.nav-cta-mobile) { display: none; }
}

/* mobile drawer ----------------------------------------------------- */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(.4,.0,.2,1), opacity 0.24s ease;
  overflow-y: auto;
  padding-top: 80px;
  padding-bottom: 32px;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 980px) {
  .nav-mobile { display: none; }
}

.nav-mobile-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nav-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-mobile-list li {
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  transition-delay: calc(var(--i) * 32ms);
}
.nav-mobile-list li:last-child { border-bottom: 1px solid var(--line); }
.nav-mobile.open .nav-mobile-list li {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(80ms + var(--i) * 36ms);
}

.nav-mobile-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  color: var(--fg);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-list .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.nav-mobile-list .arrow {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-faint);
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav-mobile-list a:hover .arrow,
.nav-mobile-list a:active .arrow {
  color: var(--fg);
  transform: translateX(4px);
}

.nav-mobile-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 8px;
}
.nav-cta-mobile {
  align-self: stretch;
  justify-content: center;
  padding: 14px 22px 15px;
  font-size: 14px;
}
.nav-mobile-mail {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: clamp(110px, 14vh, 160px);
  padding-bottom: clamp(60px, 8vw, 120px);
  overflow: hidden;
}

/* Mobile-only thematic backdrop in the hero — mirrors the mode cards.
   Hidden on desktop because the hero canvas (phone preview / map) takes
   over visual duty there. The SVG uses var(--tint), which we wire to the
   active mode color via [data-mode]. */
.hero-bg-mobile {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  transition: opacity 0.5s ease;
}
.hero-bg-mobile .mode-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-bg-mobile::after {
  /* readability scrim: keep type and email form crisp without crushing the art */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 95%, rgba(0,0,0,0.78) 100%);
}
.hero[data-mode="friends"]  .hero-bg-mobile { --tint: var(--friends);  }
.hero[data-mode="dating"]   .hero-bg-mobile { --tint: var(--dating);   }
.hero[data-mode="business"] .hero-bg-mobile { --tint: var(--business); }
.hero .container { position: relative; z-index: 1; }
@media (min-width: 980px) {
  .hero-bg-mobile { display: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 80px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(48px, 5vw, 80px);
  }
}

.hero-mark {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 32px;
}
.hero-mark img {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.06));
}
.hero-mark .word {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero-mark .pron {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
  align-self: center;
  padding-left: 4px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 4px;
}

.hero h1 {
  font-size: clamp(34px, 8.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 24px 0 28px 0;
  text-wrap: balance;
}
.hero h1 .accent-row {
  display: block;
  position: relative;
  white-space: normal;
}
@media (min-width: 600px) {
  .hero h1 .accent-row { white-space: nowrap; }
}
.hero h1 .underline {
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}
.hero h1 .underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--mode-active, var(--friends));
  transform-origin: left center;
  animation: underlineEnter 1.4s cubic-bezier(.2,.7,.1,1) 0.5s both;
}
@keyframes underlineEnter {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

.hero-sub {
  margin: 0 0 40px;
  color: var(--fg-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 46ch;
  text-wrap: pretty;
  line-height: 1.5;
}

/* mode toggle pills (in hero) */
.mode-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 32px;
  position: relative;
}
.mode-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
  position: relative;
  z-index: 2;
  letter-spacing: -0.005em;
}
.mode-toggle button .pill-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
  transition: opacity 0.25s ease, box-shadow 0.25s ease;
}
.mode-toggle button.active { color: #0a0a0a; }
.mode-toggle button.active .pill-dot { opacity: 1; }
.mode-toggle .pill-bg {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 999px;
  background: var(--mode-active, var(--friends));
  transition: left 0.45s cubic-bezier(.4,.1,.2,1.2), width 0.45s cubic-bezier(.4,.1,.2,1.2), background 0.4s ease;
  z-index: 1;
}

/* email capture */
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.cta-meta .ios-glyph {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1px solid currentColor;
  border-radius: 4px;
  position: relative;
}
.cta-meta .ios-glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 1px;
}

.email-form {
  margin-top: 20px;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 5px 5px 22px;
  max-width: 460px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.email-form:focus-within {
  border-color: var(--mode-active, var(--friends));
  background: rgba(255,255,255,0.05);
}
.email-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 0;
}
.email-form input::placeholder { color: var(--fg-faint); }
.email-form button {
  flex-shrink: 0;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--fg);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  padding: 0 22px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, background 0.2s ease;
}
.email-form button:hover { transform: translateY(-1px); background: #fff; }
.email-form button:active { transform: translateY(0); }
.email-status {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  min-height: 16px;
  color: var(--fg-faint);
  transition: color 0.3s ease;
}
.email-status.ok { color: var(--mode-active, var(--friends)); }
.email-status.err { color: #E07A7A; }

/* hero mockup — phone screenshot, desktop only. The image already has its
   own bezel; we let it stand on its own with a soft drop shadow + a faint
   mode-tinted glow behind. */
.hero-mock {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 580px;
}
.hero-mock::before {
  /* mode-tinted glow disc behind the device */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(45% 50% at 55% 48%, var(--mode-active, var(--friends)) 0%, transparent 65%);
  opacity: 0.12;
  filter: blur(20px);
  pointer-events: none;
  transition: background 0.4s ease;
}
@media (min-width: 980px) {
  .hero-mock { display: flex; }
}

/* ---------- iPhone frame ---------- */
.phone-frame {
  --phone-tint: var(--mode-active, var(--friends));
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 2.05;
  filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.55));
}
.phone-bezel {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a1a1c 0%, #0c0c0e 50%, #050506 100%);
  border-radius: 52px;
  padding: 9px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    inset 0 0 0 3px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}
.phone-bezel::before {
  /* highlight rim along the top edge */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 18%);
  pointer-events: none;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: rgb(15, 15, 15);
}
.phone-screen-img {
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 54px);
  object-fit: contain;
  object-position: top center;
  display: block;
}
.phone-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 36px;
  color: #ffffff;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  z-index: 4;
  pointer-events: none;
}
.phone-status-glyphs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-home { display: none; }

/* ============================================================
   THREE MODES
   ============================================================ */
.modes-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px)  { .modes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .modes-grid { grid-template-columns: repeat(3, 1fr); } }

.mode-card {
  position: relative;
  border-radius: 22px;
  padding: 28px 28px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 460px;
  transition: transform 0.45s cubic-bezier(.2,.7,.1,1), border-color 0.3s ease;
  isolation: isolate;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

/* full-card thematic background — mode-tinted artwork behind content */
.mode-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.7,.1,1);
}
.mode-card-bg .mode-bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* readability scrim — keeps chips/tier dots legible without killing the art */
.mode-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.30) 80%, rgba(0,0,0,0.45) 100%);
}
.mode-card:hover .mode-card-bg {
  transform: scale(1.03);
}

.mode-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}
.mode-card:hover { transform: translateY(-3px); }
.mode-card[data-mode="friends"]  { --tint: var(--friends);  --tint-soft: var(--friends-soft); }
.mode-card[data-mode="dating"]   { --tint: var(--dating);   --tint-soft: var(--dating-soft); }
.mode-card[data-mode="business"] { --tint: var(--business); --tint-soft: var(--business-soft); }

.mode-card::before {
  /* tinted wash, top-right falloff */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, var(--tint-soft), transparent 70%),
    linear-gradient(180deg, transparent, transparent 60%, var(--tint-soft));
  z-index: -1;
  pointer-events: none;
}
.mode-card .mode-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.mode-card .mode-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.mode-card .mode-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.18em;
}
.mode-card .mode-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 28ch;
}
.mode-card .mode-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.mode-card .mode-foot .tier-dots {
  display: inline-flex; gap: 4px;
}
.mode-card .mode-foot .tier-dots span {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--tint);
  opacity: 0.35;
}
.mode-card .mode-foot .tier-dots span:last-child { opacity: 1; box-shadow: 0 0 8px var(--tint); }

.interest-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.interest-chips span {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: var(--fg-muted);
  background: rgba(255,255,255,0.02);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  padding: 36px 0 36px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .step {
    grid-template-columns: 1fr;
    padding: 40px 36px 40px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .step:last-child { border-right: 0; padding-right: 0; }
  .step:not(:first-child) { padding-left: 36px; }
}
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.18em;
}
.step h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.step p {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 32ch;
}
.step-art {
  margin-top: 24px;
  height: 92px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  position: relative;
  overflow: hidden;
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 880px) {
  .privacy-grid { grid-template-columns: repeat(3, 1fr); }
}
.privacy-cell {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 880px) {
  .privacy-cell {
    padding: 40px 36px 40px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .privacy-cell:not(:first-child) { padding-left: 36px; }
  .privacy-cell:last-child { border-right: 0; padding-right: 0; }
}
.privacy-cell h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
}
.privacy-cell p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.privacy-cell .icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 110px) 0 40px;
  position: relative;
}
.footer-mark {
  font-size: clamp(80px, 22vw, 280px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.10);
  margin: 0 0 60px;
  user-select: none;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .footer-row { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  color: var(--fg-muted);
  font-size: 14px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover { color: var(--fg); }
.footer-col a .handle {
  font-family: var(--mono);
  color: var(--fg-faint);
  font-size: 12px;
}
.footer-meta {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.footer-meta a:hover { color: var(--fg-muted); }

/* ============================================================
   HERO H1 — softened third line ("Nexi is putting it back.")
   ============================================================ */
.hero h1 .hero-h1-soft {
  color: var(--fg-muted);
  font-weight: 500;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto .manifesto-head {
  margin-bottom: clamp(48px, 7vw, 80px);
}
.manifesto .manifesto-head .eyebrow { max-width: 24ch; }
.manifesto h2 {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 18px 0 0;
  text-wrap: balance;
  max-width: 18ch;
}
.manifesto h2 .dim { color: var(--fg-muted); font-weight: 500; }

.manifesto-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 64ch;
  margin: 0 0 clamp(48px, 7vw, 80px);
}
@media (min-width: 880px) {
  .manifesto-body { margin-left: auto; }
}
.manifesto-body p {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--fg);
  text-wrap: pretty;
}
.manifesto-body .lede {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--fg);
}
.manifesto-body em {
  font-style: italic;
  color: var(--fg);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
}

.manifesto-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .manifesto-rules { grid-template-columns: repeat(3, 1fr); }
}
.manifesto-rules li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0 28px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) {
  .manifesto-rules li {
    padding: 32px 28px 36px 0;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .manifesto-rules li:last-child { border-right: 0; padding-right: 0; }
  .manifesto-rules li:not(:first-child) { padding-left: 28px; }
}
.manifesto-rules .strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.35);
  color: var(--fg-dim);
  font-size: 17px;
}
.manifesto-rules .kicker {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--mode-active, var(--friends));
}

/* ============================================================
   CALLOUT (mid-page transition for "Less swiping. More showing up.")
   ============================================================ */
.callout-section { padding: clamp(60px, 9vw, 120px) 0; }
.callout-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.callout-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: clamp(40px, 7.4vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}
.callout-line .callout-tint { color: var(--mode-active, var(--friends)); }
.callout-sub {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================================
   PRIVACY (six-primitive grid, replaces the older 3-col layout)
   ============================================================ */
.privacy-six {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px)  { .privacy-six { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .privacy-six { grid-template-columns: repeat(3, 1fr); } }

.privacy-primitive {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 760px) {
  .privacy-primitive {
    padding: 36px 32px 44px 0;
    border-right: 1px solid var(--line);
  }
  .privacy-primitive:nth-child(2n) { padding-right: 0; border-right: 0; }
  .privacy-primitive:not(:nth-child(2n+1)) { padding-left: 32px; }
}
@media (min-width: 1080px) {
  .privacy-primitive {
    padding: 36px 32px 44px 0;
    border-right: 1px solid var(--line);
  }
  .privacy-primitive:nth-child(2n) { padding-right: 32px; border-right: 1px solid var(--line); }
  .privacy-primitive:nth-child(3n) { padding-right: 0; border-right: 0; }
  .privacy-primitive:not(:nth-child(3n+1)) { padding-left: 32px; }
}
.privacy-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
}
.privacy-primitive h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.privacy-primitive p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-row {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  appearance: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 26px 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  color: var(--fg);
  font-family: inherit;
  transition: padding 0.3s ease;
}
.faq-q:hover { color: var(--mode-active, var(--friends)); }
.faq-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
}
.faq-q-text {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq-toggle {
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.faq-row.open .faq-toggle {
  border-color: var(--mode-active, var(--friends));
  color: var(--mode-active, var(--friends));
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(.2,.7,.1,1);
}
.faq-row.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.6;
  padding: 0 50px 4px;
  max-width: 72ch;
  text-wrap: pretty;
}
.faq-row.open .faq-a-inner { padding-bottom: 28px; }

/* ============================================================
   FOUNDER NOTE
   ============================================================ */
.founder { padding-bottom: clamp(80px, 12vw, 160px); }
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
}
@media (min-width: 920px) {
  .founder-grid { grid-template-columns: minmax(220px, 280px) 1fr; gap: clamp(48px, 7vw, 96px); }
}
.founder-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
@media (min-width: 920px) {
  .founder-aside {
    position: sticky;
    top: 100px;
    align-self: start;
    height: fit-content;
  }
}
.founder-portrait {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(168,213,186,0.10), rgba(245,197,212,0.08), rgba(168,197,226,0.10));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.founder-portrait::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px dashed var(--line);
  pointer-events: none;
}
.founder-portrait-inner {
  width: 110px; height: 110px;
  border-radius: 999px;
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}
.founder-portrait-inner span {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #A8D5BA, #F5C5D4 60%, #A8C5E2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.founder-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.founder-meta strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.founder-meta span { color: var(--fg-muted); }
.founder-meta a {
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 6px;
  transition: color 0.2s ease;
}
.founder-meta a:hover { color: var(--fg); }

.founder-letter h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 36px;
  text-wrap: balance;
  max-width: 28ch;
}
.founder-letter p {
  margin: 0 0 22px;
  color: var(--fg);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}
.founder-letter em { font-style: italic; color: var(--fg); }
.founder-pull {
  font-size: clamp(22px, 2.6vw, 30px) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  padding: 18px 0 !important;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 32px 0 32px !important;
  color: var(--mode-active, var(--friends)) !important;
}
.founder-sign {
  margin-top: 36px !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
}
.founder-sign span {
  display: inline-block;
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 16px;
  font-weight: 400;
}

/* ============================================================
   utility / motion
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.1,1), transform 0.9s cubic-bezier(.2,.7,.1,1);
}
.fade-in.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   FEATURES — "What Nexi can do"
   Vertical rail of 7 numbered groups, each one paragraph.
   At wide widths: number | title | body in a 3-col grid.
   At narrow widths: number on top, then title, then body.
   ============================================================ */

.features-section {
  position: relative;
}

.features-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line);
}

.features-list {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex;
  flex-direction: column;
}

.feature-group {
  --feat-accent: #FAFAF9;
  --feat-soft: rgba(255, 255, 255, 0.06);
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: clamp(32px, 4.5vw, 48px) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.feature-group:first-child {
  border-top: none;
  padding-top: clamp(8px, 2vw, 16px);
}

@media (min-width: 880px) {
  .feature-group {
    grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.4fr);
    column-gap: clamp(28px, 3.5vw, 56px);
    row-gap: 0;
  }
}

.feature-num {
  font-family: var(--mono);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1;
  color: var(--feat-accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  align-self: baseline;
}

.feature-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-wrap: balance;
}

.feature-body {
  margin: 0;
  color: var(--fg-muted);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  max-width: 56ch;
}

/* "And:" one-liner that catalogs the deferred features */

.features-and {
  margin: clamp(56px, 7vw, 80px) 0 0 0;
  padding: clamp(20px, 2.5vw, 28px) clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-muted);
  font-size: clamp(14px, 1.15vw, 15.5px);
  line-height: 1.6;
  max-width: 80ch;
}

.features-and span {
  color: var(--fg);
  font-weight: 600;
  margin-right: 6px;
}

/* closing beat */

.features-close {
  margin-top: clamp(64px, 9vw, 104px);
  padding-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line-strong);
  text-align: left;
}

.features-close p {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--fg);
  max-width: 22ch;
  text-wrap: balance;
}

.features-close p span {
  color: var(--fg-muted);
}
