/* ============================================================
   Zivug — Shidduch Database & Shadchanus Service
   Visual system: dignified, discreet, trustworthy.
   ============================================================ */

:root {
  /* palette — "Atelier": warm bone + espresso ink + oxblood (palette-driven via JS) */
  --bg:        #ECE6DB;
  --bg-2:      #E3DBCD;
  --surface:   #F6F1E8;
  --surface-2: #FFFFFF;
  --ink:       #211A16;
  --ink-soft:  #4A4039;
  --muted:     #8A7F71;
  --line:      #D7CDBC;
  --line-soft: #E4DACA;
  --primary:   #661414;   /* logo maroon */
  --primary-2: #7E1E1E;
  --primary-ink:#F7F3E0;
  --accent:    #C58473;   /* salmon */
  --accent-soft:#E2B7A8;
  --good:      #4E6B4A;
  --danger:    #9A4634;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(36,27,25,.05), 0 2px 6px rgba(36,27,25,.04);
  --shadow-md: 0 6px 20px -8px rgba(36,27,25,.18), 0 2px 6px rgba(36,27,25,.05);
  --shadow-lg: 0 24px 60px -22px rgba(76,14,14,.30), 0 6px 18px rgba(36,27,25,.07);

  --font-display: "Spectral", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { min-height: 100vh; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) calc(82% * var(--hdr-show, 1)), transparent);
  backdrop-filter: blur(calc(12px * var(--hdr-show, 1))) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--line-soft) calc(100% * var(--hdr-show, 1)), transparent);
}
/* the docking logo: same element scales up + centers at the top of the page,
   then shrinks into its header slot as you scroll (driven by JS) */
.hdr .brand { will-change: transform; }
.hdr-in { display: flex; align-items: flex-end; justify-content: space-between; height: 76px; box-sizing: border-box; padding-bottom: 13px; }
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(155deg, var(--primary-2), var(--primary));
  display: grid; place-items: center; color: var(--primary-ink);
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow-sm);
}
.brand-mark span { transform: translateY(-1px); }
.brand-mark svg { display: block; }
.brand-name { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -2px; font-family: var(--font-ui); white-space: nowrap; }
.brand-lock { align-items: flex-end; gap: 0; }
.brand-wm { font-family: var(--font-display); font-weight: 600; font-size: 36px; letter-spacing: -.01em; line-height: 1; display: flex; align-items: baseline; position: relative; z-index: 2; white-space: nowrap; }
.brand-wm .bw-b { color: var(--primary); }
.brand-wm .bw-m { color: var(--accent); }
.brand-emblem { width: 53px; height: 53px; border-radius: 50%; object-fit: cover; margin-left: -3px; position: relative; z-index: 1; transform: translateY(4px); box-shadow: 0 6px 16px -8px rgba(76,14,14,.5), 0 0 0 1px rgba(76,14,14,.07); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 9px 14px; border-radius: var(--r-sm); color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-link:hover { background: var(--bg-2); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 13px 22px; font-size: 15.5px; font-weight: 600; line-height: 1;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-2); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }
.btn-accent { background: var(--accent); color: #2a1e07; box-shadow: var(--shadow-sm); }
.btn-accent:hover { filter: brightness(1.04); }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- generic ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }

.section { padding: 86px 0; }
.section-tight { padding: 60px 0; }
.lead { font-size: 19px; color: var(--ink-soft); line-height: 1.62; }

/* ---------- intro / logo dock zone ---------- */
.intro-zone { position: relative; height: 90vh; min-height: 520px; pointer-events: none; }
.intro-tagline {
  position: absolute; left: 0; right: 0; top: 55vh; text-align: center; padding: 0 24px;
}
.intro-tagline .it-line {
  font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 32px);
  font-style: italic; color: var(--ink-soft); letter-spacing: .01em; line-height: 1.2;
}
.intro-cue {
  position: absolute; left: 0; right: 0; bottom: 6vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.intro-cue .cue-line {
  width: 1px; height: 48px; transform-origin: top;
  background: linear-gradient(var(--muted), transparent);
  animation: cuePulse 1.9s ease-in-out infinite;
}
@keyframes cuePulse {
  0%, 100% { transform: scaleY(.35); opacity: .45; }
  50%      { transform: scaleY(1);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-cue .cue-line { animation: none; transform: scaleY(1); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 92px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 88% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(55% 60% at 6% 96%, color-mix(in srgb, var(--primary) 9%, transparent), transparent 72%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); letter-spacing: -.022em; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero .lead { margin-top: 22px; max-width: 33ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 9px; }

/* hero portrait + floating counter */
.hero-figure { position: relative; }
.hero-portrait {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--bg-2);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, color-mix(in srgb, var(--primary) 42%, transparent));
  mix-blend-mode: multiply; pointer-events: none;
}
.pool-badge {
  position: absolute; left: -26px; bottom: 26px; z-index: 2; width: 270px;
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--surface-2) 70%, var(--line));
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 20px 22px;
}
.pool-badge::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px;
}
.pool-badge h3 { font-family: var(--font-ui); font-size: 12px; letter-spacing: .04em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.pool-badge .poolnum { font-family: var(--font-display); font-size: 44px; font-weight: 600; color: var(--primary); line-height: 1; margin: 6px 0 2px; }
.pool-badge .poolnum small { font-size: 17px; color: var(--muted); font-weight: 500; }
.pool-badge .progress { margin: 12px 0 8px; }
.pool-badge .goal { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* reassurance strip beneath hero */
.reassure {
  margin-top: 54px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
}
.reassure-item { display: flex; gap: 12px; align-items: flex-start; padding: 22px 24px; background: var(--surface); font-size: 14.5px; color: var(--ink-soft); }
.reassure-item .ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); color: var(--accent); }
.reassure-item b { color: var(--ink); }

/* phase banner */
.phase {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; color: var(--ink-soft); font-weight: 500;
}
.phase b { color: var(--ink); font-weight: 600; }
.phase .tag {
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  background: var(--accent-soft); color: #6a4d18; padding: 5px 11px; border-radius: 999px;
}

/* hero card — the counter / honesty card */
.poolcard {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 30px; position: relative; overflow: hidden;
}
.poolcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.poolcard h3 { font-family: var(--font-ui); font-size: 14px; letter-spacing: .04em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.poolnum { font-family: var(--font-display); font-size: 62px; font-weight: 600; color: var(--primary); line-height: 1; margin: 8px 0 2px; }
.poolnum small { font-size: 22px; color: var(--muted); font-weight: 500; }
.progress { height: 9px; border-radius: 999px; background: var(--bg-2); overflow: hidden; margin: 16px 0 10px; border: 1px solid var(--line-soft); }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-2), var(--accent)); border-radius: 999px; }
.poolcard .goal { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.poolcard .divider { height: 1px; background: var(--line-soft); margin: 22px 0; }
.minilist { display: grid; gap: 13px; }
.minirow { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.minirow .ic { width: 26px; height: 26px; border-radius: 7px; flex: none; display: grid; place-items: center; background: var(--bg-2); color: var(--primary); }

/* ---------- steps / how it works ---------- */
.sec-head { max-width: 660px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 14px; }
.sec-head .lead { margin-top: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; position: relative; box-shadow: var(--shadow-sm);
}
.step-n {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--accent);
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 20px; background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.step .later { margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- trust band ---------- */
.band { background: var(--primary); color: var(--primary-ink); }
.band .eyebrow { color: var(--accent-soft); }
.band .eyebrow::before { background: var(--accent-soft); }
.band h2 { color: var(--primary-ink); }
.trust-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; align-items: center; }
.trust-figure {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; position: relative;
  border: 1px solid color-mix(in srgb, var(--primary-ink) 14%, transparent);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.trust-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trust-content .eyebrow { margin-bottom: 16px; }
.trust-content h2 { font-size: clamp(28px, 3.4vw, 42px); }
.trust-list { margin-top: 34px; display: grid; gap: 22px; }
.trust-row { display: flex; gap: 16px; align-items: flex-start; }
.trust-row .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 80%, white); color: #2a1e07;
}
.trust-row h3 { font-size: 19px; color: var(--primary-ink); margin-bottom: 6px; }
.trust-row p { font-size: 14.5px; color: color-mix(in srgb, var(--primary-ink) 78%, var(--primary)); max-width: 52ch; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.trust {
  background: color-mix(in srgb, var(--primary-ink) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-ink) 16%, transparent);
  border-radius: var(--r-lg); padding: 26px;
}
.trust .ic { width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 80%, white); color: #2a1e07; display: grid; place-items: center; margin-bottom: 16px; }
.trust h3 { font-size: 19px; color: var(--primary-ink); margin-bottom: 8px; }
.trust p { font-size: 14.5px; color: color-mix(in srgb, var(--primary-ink) 78%, var(--primary)); }

/* ---------- referral ---------- */
.refer {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.refer h2 { font-size: 34px; }
.refamt { font-family: var(--font-display); font-size: 19px; }
.refrules { margin-top: 22px; display: grid; gap: 12px; }
.refrule { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.refrule .ic { color: var(--good); flex: none; margin-top: 2px; }
.refcard { background: linear-gradient(160deg, var(--primary-2), var(--primary)); color: var(--primary-ink); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-md); }
.refcard .big { font-family: var(--font-display); font-size: 50px; font-weight: 600; line-height: 1; }
.refcard .big small { font-size: 18px; opacity: .7; }
.refstep { display: flex; gap: 13px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; }
.refstep .num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #2a1e07; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.warn-illegal { margin-top: 22px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 16px; }

/* ---------- closing CTA with portrait ---------- */
.closing {
  display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 14px; overflow: hidden;
}
.closing-figure { border-radius: calc(var(--r-xl) - 6px); overflow: hidden; aspect-ratio: 4 / 5; position: relative; background: var(--bg-2); }
.closing-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.closing-figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 60%, color-mix(in srgb, var(--primary) 30%, transparent));
  mix-blend-mode: multiply; pointer-events: none;
}
.closing-copy { padding: 24px 40px 24px 0; }
.closing-copy h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 14px 0 0; }
.closing-copy .lead { margin-top: 16px; max-width: 44ch; }
.closing-copy .hero-cta { margin-top: 30px; }

/* referral pair tracker */
.pairtrack {
  max-width: 480px; margin: 30px auto 0; padding: 22px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  border: 1px solid var(--accent-soft); border-radius: var(--r-lg); text-align: left;
}
.pairtrack-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
.pairtrack-head b { color: var(--primary); font-size: 16px; }
.pairslots { display: flex; gap: 12px; margin: 16px 0 14px; }
.pairslot {
  flex: 1; min-height: 60px; border-radius: var(--r-md); cursor: pointer;
  display: grid; place-items: center; transition: .18s;
  background: var(--surface-2); border: 1.5px dashed var(--line); color: var(--muted);
}
.pairslot:hover { border-color: var(--accent); color: var(--accent); }
.pairslot.filled {
  background: var(--good); border: 1.5px solid var(--good); color: #fff;
  box-shadow: var(--shadow-sm);
}
.pairnote { font-size: 14px; color: var(--ink-soft); margin: 0; }
.pairnote b { color: var(--primary); }

/* ---------- cinematic feature bands ---------- */
.feature-band {
  position: relative; overflow: hidden; display: flex; align-items: center;
  height: clamp(420px, 56vh, 560px); background: var(--ink);
}
.feature-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-scrim { position: absolute; inset: 0; z-index: 1; }
.side-left .feature-scrim {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 86%, transparent) 0%,
    color-mix(in srgb, var(--ink) 52%, transparent) 40%,
    transparent 68%);
}
.side-right .feature-scrim {
  background: linear-gradient(270deg,
    color-mix(in srgb, var(--ink) 86%, transparent) 0%,
    color-mix(in srgb, var(--ink) 52%, transparent) 40%,
    transparent 68%);
}
.feature-wrap { position: relative; z-index: 2; width: 100%; display: flex; }
.side-right .feature-wrap { justify-content: flex-end; }
.feature-copy { max-width: 470px; }
.side-right .feature-copy { text-align: right; }
.feature-copy .eyebrow { color: var(--accent-soft); }
.feature-copy .eyebrow::before { background: var(--accent-soft); }
.side-right .feature-copy .eyebrow { flex-direction: row-reverse; }
.feature-copy h2 { color: #fff; font-size: clamp(30px, 3.8vw, 46px); margin-top: 16px; letter-spacing: -.015em; }
.feature-copy h2 em { font-style: italic; color: var(--accent-soft); }
.feature-copy p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: color-mix(in srgb, #fff 82%, var(--primary)); }

/* ---------- about / founders ---------- */
.about {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center;
}
.about-figure {
  position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--bg-2);
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photos { position: absolute; inset: 0; }
.about-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.about-photo.on { opacity: 1; }
.about-cap {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  padding: 13px 18px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--primary) 78%, transparent);
  backdrop-filter: blur(8px); color: var(--primary-ink);
  border: 1px solid color-mix(in srgb, var(--primary-ink) 16%, transparent);
}
.about-cap-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.about-cap-role { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--primary-ink) 70%, transparent); font-weight: 600; }
.about-copy h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 0; }
.about-copy .lead { margin-top: 18px; }
.about-sign { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.about-sign-names { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--primary); font-style: italic; }
.about-sign-role { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.ft { background: var(--bg-2); border-top: 1px solid var(--line); padding: 46px 0 40px; margin-top: auto; }
.ft-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.ft small { color: var(--muted); font-size: 13.5px; }
.ft-b2b { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 6px 0; transition: color .15s; }
.ft-b2b span { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.ft-b2b:hover { color: var(--primary); }
.ft-b2b:hover span { border-color: var(--muted); }

/* ============================================================
   INTAKE FORM  (screen)
   ============================================================ */
.form-screen { padding: 48px 0 90px; }
.form-shell { max-width: 720px; margin: 0 auto; }
.fbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; padding: 8px 12px; border-radius: var(--r-sm); }
.back-link:hover { background: var(--bg-2); }

.stepper { display: flex; align-items: center; gap: 0; margin: 26px 0 34px; }
.stepper .s { display: flex; align-items: center; gap: 11px; flex: 1; }
.stepper .s:last-child { flex: none; }
.stepdot { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 700; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); transition: .2s; }
.stepper .s.active .stepdot { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.stepper .s.done .stepdot { background: var(--good); border-color: var(--good); color: #fff; }
.steplabel { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.stepper .s.active .steplabel { color: var(--ink); }
.stepbar { height: 2px; background: var(--line); flex: 1; margin: 0 12px; border-radius: 2px; }
.stepper .s.done .stepbar, .stepper .s.active .stepbar { background: color-mix(in srgb, var(--primary) 50%, var(--line)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 40px;
}
.card h2 { font-size: 30px; }
.card .sub { color: var(--ink-soft); margin-top: 10px; font-size: 15.5px; }

.field { margin-top: 22px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.req { color: var(--danger); }
.inp, .sel, .ta {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); font-family: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus, .sel:focus, .ta:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.ta { min-height: 110px; resize: vertical; line-height: 1.55; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface-2); font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: .15s;
}
.choice:hover { border-color: var(--muted); }
.choice.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

.note-box {
  display: flex; gap: 13px; padding: 16px 18px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid var(--accent-soft);
  font-size: 14px; color: var(--ink-soft); margin-top: 26px;
}
.note-box .ic { color: var(--accent); flex: none; }
.note-box b { color: var(--ink); }

.form-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.consent label { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* review */
.review-grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; margin-top: 22px; }
.review-row { display: grid; grid-template-columns: 200px 1fr; background: var(--surface-2); padding: 14px 18px; gap: 16px; }
.review-row .k { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.review-row .v { font-size: 15px; color: var(--ink); }

/* ============================================================
   VERIFY / CONFIRM screen
   ============================================================ */
.confirm-screen { padding: 70px 0 90px; min-height: 70vh; display: grid; place-items: center; }
.confirm { max-width: 600px; text-align: center; }
.seal {
  width: 92px; height: 92px; border-radius: 26px; margin: 0 auto 28px;
  background: linear-gradient(160deg, var(--primary-2), var(--primary)); color: var(--primary-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.confirm h1 { font-size: 40px; }
.confirm .lead { margin-top: 16px; }
.verify-steps { text-align: left; margin: 36px auto 0; max-width: 480px; display: grid; gap: 14px; }
.vstep { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.vstep .vn { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--bg-2); color: var(--primary); border: 1.5px solid var(--line); }
.vstep.pending .vn { border-style: dashed; }
.vstep h4 { font-family: var(--font-ui); font-size: 16px; margin-bottom: 3px; }
.vstep p { font-size: 14px; color: var(--ink-soft); }

/* phone confirm mock */
.phone-mock {
  max-width: 320px; margin: 30px auto 0; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow-lg); padding: 14px; text-align: left;
}
.sms { background: var(--bg-2); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--ink); line-height: 1.5; }
.sms .from { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 7px; }
.sms a { color: var(--primary); font-weight: 600; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-figure { max-width: 420px; }
  .pool-badge { left: auto; right: 16px; width: 240px; }
  .reassure { grid-template-columns: 1fr; margin-top: 40px; }
  .steps, .trust-grid { grid-template-columns: 1fr; }
  .trust-layout { grid-template-columns: 1fr; gap: 36px; }
  .trust-figure { max-width: 380px; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about-figure { max-width: 380px; }
  .feature-band { height: auto; min-height: 420px; padding: 56px 0; }
  .side-left .feature-scrim, .side-right .feature-scrim {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 38%, transparent), color-mix(in srgb, var(--ink) 84%, transparent));
  }
  .feature-copy, .side-right .feature-copy { max-width: 100%; text-align: left; }
  .side-right .feature-wrap { justify-content: flex-start; }
  .side-right .feature-copy .eyebrow { flex-direction: row; }
  .refer { grid-template-columns: 1fr; gap: 30px; padding: 32px; }
  .closing { grid-template-columns: 1fr; gap: 0; }
  .closing-figure { max-width: 360px; margin: 0 auto; }
  .closing-copy { padding: 30px 26px 8px; text-align: center; }
  .closing-copy .lead { margin-left: auto; margin-right: auto; }
  .closing-copy .hero-cta { justify-content: center; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .card { padding: 26px 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .review-row { grid-template-columns: 1fr; gap: 4px; }
  .steplabel { display: none; }
  .section { padding: 60px 0; }
}

/* entrance for screen swaps — transform only, so content is NEVER hidden
   even if the animation fails to tick (e.g. backgrounded tab) */
.screen-enter { animation: fadeUp .5s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .screen-enter { animation: none; } }
@keyframes fadeUp { from { transform: translateY(12px); } to { transform: none; } }
