/* ══════════════════════════════════════════════════════════
   WeTalk.ai — "Voice Field" redesign
   Dark bookends (hero + CTA) around a light working middle.
   Signature: the WeTalk crest rendered in 3D, driven by voice.
   ══════════════════════════════════════════════════════════ */

:root {
  /* Brand core */
  --navy:      #0A1628;
  --ink:       #050B16;   /* deeper than brand navy, for the dark bookends */
  --ink-soft:  #0E1A2E;
  --cyan:      #00D4FF;
  --cyan-deep: #00A6CC;
  --blue:      #2E7CF6;

  /* Light surfaces */
  --paper:       #F6F8FC;
  --paper-raised:#FFFFFF;
  --paper-sunk:  #EDF1F8;

  /* Text on light */
  --text:        #0A1628;
  --text-muted:  #4A5A75;
  --text-faint:  #8494AC;

  /* Text on dark */
  --d-text:      #F2F6FC;
  --d-muted:     #93A6C2;
  --d-faint:     #55688A;

  /* Lines */
  --line:        rgba(10, 22, 40, 0.09);
  --line-strong: rgba(10, 22, 40, 0.16);
  --d-line:      rgba(146, 178, 220, 0.14);

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(10,22,40,.05), 0 1px 2px rgba(10,22,40,.03);
  --sh-md: 0 10px 30px rgba(10,22,40,.07), 0 2px 6px rgba(10,22,40,.04);
  --sh-lg: 0 30px 70px rgba(10,22,40,.12), 0 8px 20px rgba(10,22,40,.06);

  /* Radii */
  --r-sm: 8px;
  --r:    12px;
  --r-md: 18px;
  --r-lg: 26px;

  --nav-h: 76px;
  --gutter: clamp(20px, 5vw, 40px);
  --maxw: 1180px;

  /* Type */
  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 999;
  background: var(--cyan); color: var(--ink);
  padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.section-inner { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ══ SHARED TYPE ══ */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 96, "SOFT" 0, "WONK" 1;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--cyan-deep);
}
.section-subtitle {
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 54ch;
  margin-top: 20px;
}
.section-header { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }

/* ══ BUTTONS ══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em;
  padding: 13px 22px; border-radius: 11px;
  text-decoration: none; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .2s, border-color .25s;
}
.btn-lg { padding: 16px 28px; font-size: 15.5px; border-radius: 13px; }

.btn-primary {
  background: linear-gradient(180deg, #00E0FF 0%, var(--cyan-deep) 100%);
  color: #04121C;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 26px rgba(0,166,204,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 34px rgba(0,166,204,.36); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--d-text);
  border: 1px solid var(--d-line);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(0,212,255,.5); background: rgba(0,212,255,.07); }

/* ══ NAV ══ */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s ease, border-color .4s ease, height .35s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled { backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); }
#nav[data-theme="dark"].scrolled  { background: rgba(5,11,22,.72);   border-bottom-color: var(--d-line); }
#nav[data-theme="light"].scrolled { background: rgba(246,248,252,.82); border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
  transition: height .35s ease;
}
#nav.scrolled .nav-inner { height: 64px; }

.nav-logo img { height: 32px; width: auto; transition: height .35s ease; }
#nav.scrolled .nav-logo img { height: 28px; }
#nav[data-theme="dark"]  .logo-on-light,
#nav[data-theme="light"] .logo-on-dark { display: none; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  padding: 9px 14px; border-radius: 9px;
  transition: color .2s, background .2s;
}
#nav[data-theme="dark"]  .nav-links a { color: var(--d-muted); }
#nav[data-theme="dark"]  .nav-links a:hover,
#nav[data-theme="dark"]  .nav-links a.active { color: var(--d-text); background: rgba(255,255,255,.06); }
#nav[data-theme="light"] .nav-links a { color: var(--text-muted); }
#nav[data-theme="light"] .nav-links a:hover,
#nav[data-theme="light"] .nav-links a.active { color: var(--text); background: rgba(10,22,40,.05); }
.nav-links .btn { margin-left: 12px; }

.nav-toggle { display: none; width: 40px; height: 40px; z-index: 101; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  margin: 5px auto; background: currentColor; transition: transform .3s, opacity .3s;
}
#nav[data-theme="dark"] .nav-toggle { color: var(--d-text); }
#nav[data-theme="light"] .nav-toggle { color: var(--text); }

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--d-text);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas, .hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

.hero-fallback { display: grid; place-items: center; opacity: .55; }
.hero-fallback img { width: min(42vw, 420px); height: auto; }
.hero-fallback[hidden] { display: none; }

/* radial darkening so type always wins over the 3D behind it */
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 18% 50%, rgba(5,11,22,.94) 0%, rgba(5,11,22,.72) 38%, rgba(5,11,22,0) 72%),
    linear-gradient(to bottom, rgba(5,11,22,.85) 0%, rgba(5,11,22,0) 22%, rgba(5,11,22,0) 72%, var(--ink) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 96px;
}
.hero-copy { max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--d-muted);
  border: 1px solid var(--d-line); border-radius: 100px;
  padding: 7px 14px 7px 9px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(6px);
  margin-bottom: 30px;
}
.nz-flag { width: 18px; height: 11px; border-radius: 2px; overflow: hidden; display: block; flex: none; }
.nz-flag svg { width: 100%; height: 100%; display: block; }

.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 8.2vw, 104px);
  line-height: .96;
  letter-spacing: -0.038em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.hero-title .line { display: block; }
.hero-title em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6; color: var(--d-muted);
  max-width: 50ch; margin-top: 26px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* the "Hear Jenny" equaliser icon */
.listen-icon { display: inline-flex; align-items: center; gap: 2.5px; height: 15px; }
.listen-icon span {
  width: 2.5px; border-radius: 2px; background: var(--cyan); height: 5px;
  transition: height .2s ease;
}
#listenBtn[aria-pressed="true"] .listen-icon span { animation: eq .9s ease-in-out infinite; }
#listenBtn[aria-pressed="true"] .listen-icon span:nth-child(2) { animation-delay: .12s; }
#listenBtn[aria-pressed="true"] .listen-icon span:nth-child(3) { animation-delay: .26s; }
#listenBtn[aria-pressed="true"] .listen-icon span:nth-child(4) { animation-delay: .38s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 15px; } }
#listenBtn[aria-pressed="true"] { border-color: rgba(0,212,255,.55); background: rgba(0,212,255,.09); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px);
  margin-top: clamp(48px, 7vw, 76px);
  padding-top: 30px;
  border-top: 1px solid var(--d-line);
}
.hero-stat-value {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px); line-height: 1;
  letter-spacing: -0.03em;
  color: var(--d-text);
  font-variation-settings: "opsz" 96;
}
.hero-stat-value span { color: var(--cyan); }
.hero-stat-label {
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--d-faint); margin-top: 10px;
}

.hero-scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--d-faint);
}
.hero-scroll-hint .rule {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--d-faint), transparent);
}

/* ══ LEDGER ══ */
.ledger {
  background: var(--paper);
  padding-block: 0 clamp(80px, 10vw, 140px);
}
.ledger-sticky { padding-top: clamp(80px, 10vw, 130px); }

.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ledger-copy .section-title em { display: inline; }

.ledger-toggle {
  display: inline-flex; padding: 4px; margin-top: 32px;
  background: var(--paper-sunk); border-radius: 12px; border: 1px solid var(--line);
}
.lt-btn {
  font-size: 13.5px; font-weight: 600; padding: 9px 18px; border-radius: 9px;
  color: var(--text-muted); transition: background .25s, color .25s, box-shadow .25s;
}
.lt-btn.is-active { background: var(--paper-raised); color: var(--text); box-shadow: var(--sh-sm); }

.ledger-tally { display: flex; gap: 36px; margin-top: 34px; }
.tally-num {
  display: block;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(40px, 5vw, 60px); line-height: 1;
  letter-spacing: -0.03em; color: var(--cyan-deep);
  font-variation-settings: "opsz" 96;
}
.tally-lost .tally-num { color: var(--text-faint); }
.tally-lbl {
  display: block; margin-top: 9px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .11em; text-transform: uppercase; color: var(--text-faint);
}
.ledger-note {
  margin-top: 26px; font-size: 13px; line-height: 1.6;
  color: var(--text-faint); max-width: 46ch;
  padding-left: 14px; border-left: 2px solid var(--line-strong);
}

/* the call log itself */
.ledger-log {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.log-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  background: var(--paper-sunk);
  font-family: var(--f-mono); font-size: 11.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}
.log-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-deep);
  box-shadow: 0 0 0 4px rgba(0,166,204,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(0,166,204,.16); } 50% { box-shadow: 0 0 0 7px rgba(0,166,204,.04); } }
.log-title { color: var(--text); font-weight: 500; }
.log-count { margin-left: auto; }

.log-rows { list-style: none; }
.log-row {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr) auto;
  align-items: center; gap: 14px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: background .3s, opacity .4s;
}
.log-row:last-child { border-bottom: none; }
.log-time { font-family: var(--f-mono); font-size: 12px; color: var(--text-faint); }
.log-who { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-what { display: block; font-size: 12.5px; color: var(--text-faint); font-weight: 400; margin-top: 2px; }
.log-state {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; white-space: nowrap;
}
.log-row[data-state="booked"] .log-state { color: var(--cyan-deep); background: rgba(0,166,204,.1); }
.log-row[data-state="lost"]   .log-state { color: var(--text-faint); background: var(--paper-sunk); }
.log-row[data-state="lost"] { opacity: .5; }
.log-row[data-state="lost"] .log-who { text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* ══ HOW IT WORKS ══ */
.how { padding-block: clamp(80px, 10vw, 140px); background: var(--paper); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.step {
  position: relative; padding: 34px 30px 32px;
  background: var(--paper-raised);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(0,166,204,.28); }
.step-idx {
  display: block; font-family: var(--f-mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; color: var(--cyan-deep); margin-bottom: 18px;
}
.step h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 21px;
  line-height: 1.22; letter-spacing: -0.015em; margin-bottom: 12px;
  font-variation-settings: "opsz" 40;
}
.step p { font-size: 14.8px; line-height: 1.62; color: var(--text-muted); }

/* ══ FEATURES ══ */
.features { padding-block: clamp(80px, 10vw, 140px); background: var(--paper-sunk); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 26px); }

.feature {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: box-shadow .4s, border-color .4s, transform .5s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.feature:hover { box-shadow: var(--sh-lg); border-color: rgba(0,166,204,.3); }
/* cursor-tracked sheen — the only decorative gloss on the page */
.feature-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0,212,255,.16), transparent 62%);
  opacity: 0; transition: opacity .45s ease; pointer-events: none;
}
.feature:hover .feature-glow { opacity: 1; }
.feature-body { position: relative; padding: 34px 32px 34px; transform: translateZ(38px); }

.feature-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  color: var(--cyan-deep);
  background: linear-gradient(160deg, rgba(0,212,255,.14), rgba(46,124,246,.09));
  border: 1px solid rgba(0,166,204,.2);
  margin-bottom: 22px;
}
.feature h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(19px, 2vw, 23px); line-height: 1.2;
  letter-spacing: -0.018em; margin-bottom: 12px;
  font-variation-settings: "opsz" 40;
}
.feature p { font-size: 15px; line-height: 1.64; color: var(--text-muted); max-width: 44ch; }

/* ══ FOUNDERS ══ */
.founders { padding-block: clamp(70px, 9vw, 120px); background: var(--paper); }
.founders-inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px); align-items: center;
}
.founders-quote p {
  font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: clamp(19px, 2.4vw, 27px); line-height: 1.42;
  letter-spacing: -0.018em; color: var(--text);
  padding-left: 26px; border-left: 2px solid var(--cyan);
  font-variation-settings: "opsz" 72, "WONK" 1;
}
.founders-people { display: flex; flex-direction: column; gap: 20px; }
.founder { display: flex; align-items: center; gap: 15px; }
.founder img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper-raised); box-shadow: var(--sh-sm);
}
.founder-name { display: block; font-weight: 600; font-size: 15.5px; }
.founder-title {
  display: block; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px;
}

/* ══ CTA ══ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--d-text);
  padding-block: clamp(90px, 12vw, 160px);
  text-align: center;
}
.cta-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }
.cta-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.cta::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(90% 70% at 50% 50%, rgba(5,11,22,.86) 0%, rgba(5,11,22,.55) 50%, rgba(5,11,22,.9) 100%);
}
.cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta .eyebrow { color: var(--cyan); }
.cta .section-title { color: var(--d-text); }
.cta .section-subtitle { color: var(--d-muted); margin-bottom: 38px; text-align: center; }
.cta-fine {
  margin-top: 22px; font-family: var(--f-mono);
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--d-faint);
}

/* ══ FOOTER ══ */
footer { background: var(--ink); color: var(--d-muted); padding-top: clamp(56px, 7vw, 84px); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 52px;
}
.footer-logo { height: 30px; width: auto; }
.footer-tagline {
  font-family: var(--f-display); font-style: italic; font-size: 15px;
  color: var(--cyan); margin-top: 16px;
}
.footer-desc { font-size: 14px; line-height: 1.6; margin-top: 10px; max-width: 32ch; color: var(--d-faint); }
.footer-col h4 {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--d-text); margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; text-decoration: none; color: var(--d-muted); transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-block: 24px 30px; border-top: 1px solid var(--d-line);
  font-size: 12.5px; color: var(--d-faint);
}
.made-in { display: inline-flex; align-items: center; gap: 8px; }

/* ══ SCROLL REVEAL ══ */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }

/* ══ POPUP ══ */
.popup-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,11,22,.62); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-modal {
  position: fixed; z-index: 201;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(.97);
  width: min(560px, calc(100vw - 32px));
  max-height: min(88vh, 860px); overflow-y: auto;
  background: var(--paper-raised); border-radius: var(--r-lg);
  box-shadow: 0 40px 100px rgba(5,11,22,.4);
  padding: 38px 34px 32px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility .35s, transform .4s cubic-bezier(.2,.7,.3,1);
}
.popup-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.popup-close {
  position: absolute; top: 16px; right: 18px;
  font-size: 26px; line-height: 1; color: var(--text-faint);
  width: 34px; height: 34px; border-radius: 9px; transition: background .2s, color .2s;
}
.popup-close:hover { background: var(--paper-sunk); color: var(--text); }
.popup-header h2 {
  font-family: var(--f-display); font-weight: 600; font-size: 25px;
  letter-spacing: -0.02em; font-variation-settings: "opsz" 48;
}
.popup-header p { font-size: 14.5px; color: var(--text-muted); margin-top: 8px; }
.form-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { position: relative; display: flex; flex-direction: column; }
.form-group label {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px;
}
.form-group input, .form-group select {
  font-family: var(--f-body); font-size: 14.5px; color: var(--text);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--cyan-deep); background: var(--paper-raised);
  box-shadow: 0 0 0 3px rgba(0,166,204,.14);
}
.form-error { display: none; font-size: 12px; color: #C9422F; margin-top: 6px; }
.form-group.error input, .form-group.error select { border-color: #C9422F; }
.form-group.error .form-error { display: block; }
.form-hint { display: none; font-size: 12px; color: var(--cyan-deep); margin-top: 6px; }
.popup-submit {
  margin-top: 8px; padding: 15px; border-radius: 12px;
  font-weight: 600; font-size: 15px; color: #04121C;
  background: linear-gradient(180deg, #00E0FF, var(--cyan-deep));
  box-shadow: 0 10px 26px rgba(0,166,204,.28);
  transition: transform .2s, box-shadow .25s, opacity .2s;
}
.popup-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,166,204,.34); }
.popup-submit:disabled { opacity: .6; cursor: wait; }
.popup-fine-print { font-size: 12.5px; color: var(--text-faint); text-align: center; }
.popup-success { display: none; text-align: center; padding: 26px 0 12px; }
.popup-success.show { display: block; }
.check-circle {
  width: 62px; height: 62px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(0,212,255,.16), rgba(46,124,246,.1));
  border: 1px solid rgba(0,166,204,.3);
}
.check-circle svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan-deep); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.popup-success h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.popup-success p { font-size: 14.5px; color: var(--text-muted); margin-top: 10px; max-width: 40ch; margin-inline: auto; line-height: 1.6; }

/* ══ RESPONSIVE ══ */
@media (max-width: 940px) {
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-log { order: 2; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .founders-inner { grid-template-columns: 1fr; }
  .founders-people { flex-direction: row; flex-wrap: wrap; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: calc(var(--nav-h) + 16px) var(--gutter) 26px;
    background: rgba(5,11,22,.97);
    backdrop-filter: blur(20px);
    transform: translateY(-102%);
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
  }
  #nav[data-theme="light"] .nav-links { background: rgba(246,248,252,.98); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .nav-links .btn { margin: 8px 0 0; width: 100%; }

  .hero-vignette {
    background:
      radial-gradient(140% 70% at 50% 42%, rgba(5,11,22,.9) 0%, rgba(5,11,22,.7) 45%, rgba(5,11,22,.3) 75%),
      linear-gradient(to bottom, rgba(5,11,22,.9) 0%, rgba(5,11,22,.2) 30%, var(--ink) 100%);
  }
  .hero-stats { gap: 24px 32px; }
  .hero-scroll-hint { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .popup-modal { padding: 32px 22px 26px; }
  .ledger-tally { gap: 28px; }
}

/* ══ REDUCED MOTION ══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-scroll-hint { display: none; }
}

/* ══════════════════════════════════════════════════════════
   SUB-PAGES — About & FAQ
   Same dark-bookend rhythm as the homepage, but the header band is
   a fraction of the viewport rather than the whole of it.
   ══════════════════════════════════════════════════════════ */

.page-head {
  position: relative;
  background: var(--ink);
  color: var(--d-text);
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px);
}
.page-head-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-head-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.page-head::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(115% 95% at 20% 55%, rgba(5,11,22,.95) 0%, rgba(5,11,22,.74) 40%, rgba(5,11,22,0) 76%),
    linear-gradient(to bottom, rgba(5,11,22,.9) 0%, rgba(5,11,22,0) 26%, rgba(5,11,22,0) 66%, var(--ink) 100%);
}
.page-head-inner { position: relative; z-index: 2; max-width: 700px; }
.page-head .eyebrow { color: var(--cyan); }
.page-head h1 {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.page-head h1 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.page-head p {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.6; color: var(--d-muted);
  max-width: 52ch; margin-top: 22px;
}

/* ── the story ─────────────────────────────────────────────── */
.story { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.story-grid > .eyebrow { margin: 0; padding-top: 8px; }
.story-body p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.72; color: var(--text-muted);
  margin-bottom: 20px;
}
.story-body p:last-child { margin-bottom: 0; }
.story-body strong { color: var(--text); font-weight: 600; }
/* Opening line carries the weight — set it larger, in the display face. */
.story-body p:first-child {
  font-family: var(--f-display);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45; letter-spacing: -0.018em;
  color: var(--text); margin-bottom: 28px;
  font-variation-settings: "opsz" 72, "WONK" 1;
}

/* ── team ──────────────────────────────────────────────────── */
.team { background: var(--paper-sunk); padding-block: clamp(72px, 9vw, 120px); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.team-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 32px 30px 28px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(0,166,204,.28); }
.team-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.team-card img {
  width: 66px; height: 66px; border-radius: 50%;
  object-fit: cover; object-position: center 25%;
  border: 2px solid var(--paper-raised); box-shadow: var(--sh-sm);
  flex: none;
}
.team-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.team-card .role {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan-deep); margin-top: 5px;
}
.team-card > p { font-size: 14.8px; line-height: 1.65; color: var(--text-muted); }
/* ── values ────────────────────────────────────────────────── */
.values { background: var(--paper); padding-block: clamp(72px, 9vw, 120px); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 26px); }
.value {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 32px 28px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(0,166,204,.28); }
.value-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  color: var(--cyan-deep);
  background: linear-gradient(160deg, rgba(0,212,255,.14), rgba(46,124,246,.09));
  border: 1px solid rgba(0,166,204,.2);
  margin-bottom: 20px;
}
.value h3 {
  font-family: var(--f-display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.018em; margin-bottom: 11px;
  font-variation-settings: "opsz" 40;
}
.value p { font-size: 14.8px; line-height: 1.65; color: var(--text-muted); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq { background: var(--paper); padding-block: clamp(64px, 8vw, 104px); }
.faq + .faq { padding-top: 0; }
.faq-group {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.faq-group > .eyebrow { margin: 0; padding-top: 10px; position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: clamp(17px, 1.8vw, 20px); font-weight: 600;
  line-height: 1.35; letter-spacing: -0.015em;
  color: var(--text);
  transition: color .2s;
  font-variation-settings: "opsz" 40;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--cyan-deep); }
.qa summary::after {
  content: ''; flex: none; margin-left: auto; margin-top: 7px;
  width: 9px; height: 9px;
  border-right: 1.7px solid var(--cyan-deep);
  border-bottom: 1.7px solid var(--cyan-deep);
  transform: rotate(45deg);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.qa[open] summary::after { transform: rotate(-135deg); }
.qa-body { padding: 0 44px 26px 0; }
.qa-body p {
  font-size: 15.5px; line-height: 1.7; color: var(--text-muted);
  max-width: 62ch;
}
.qa-body p + p { margin-top: 14px; }

/* ── "still have questions" ────────────────────────────────── */
.ask {
  background: var(--paper-sunk);
  padding-block: clamp(56px, 7vw, 88px);
}
.ask-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(28px, 4vw, 44px);
}
.ask h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
}
.ask p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; max-width: 46ch; }
.ask a { color: var(--cyan-deep); font-weight: 600; text-decoration: none; }
.ask a:hover { text-decoration: underline; }

@media (max-width: 940px) {
  .story-grid, .faq-group { grid-template-columns: 1fr; }
  .faq-group > .eyebrow { position: static; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* CRM "other" field — shown by toggling [hidden], not an inline style,
   so the Content-Security-Policy can forbid inline styles. */
.crm-other { margin-top: 8px; }
.footer-link { font-size: 14px; text-align: left; color: var(--d-muted); transition: color .2s; }
.footer-link:hover { color: var(--cyan); }
