/* ============================================================
   Premura — Marketing site styles
   Sits on top of tokens.css. Marketing scale: bigger type,
   roomier spacing, retains the calm clinical foundation.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ----- Layout shell ----- */
.shell { width: 100%; }
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   Top nav — deep teal brand bar so it stands clearly off the cream content
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 76, 92, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.18);
  background: rgba(15, 76, 92, 0.96);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; letter-spacing: -.01em;
  color: #F7F2E8;
}
.nav-brand .mark {
  width: 36px; height: 36px;
}
.nav-brand .word {
  font-size: 26px;
  letter-spacing: -.018em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: rgba(247, 242, 232, 0.78);
  transition: color .12s ease;
}
.nav-links a { transition: color .12s ease; }
.nav-links a:hover { color: #F7F2E8; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  background: var(--accent); color: #F7F2E8;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--shadow-xs);
  transition: background .12s ease;
}
.nav-cta:hover { background: var(--accent-hover); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 72px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
}

.eyebrow-row {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--primary);
  margin-bottom: 24px;
}
.eyebrow-row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 169, 156, 0.18);
  animation: pulse-dot 1.8s ease-out infinite;
}
.eyebrow-row .sep {
  width: 1px; height: 12px; background: var(--border);
}
.eyebrow-row .baa {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-muted); font-size: 11px; letter-spacing: .03em;
  text-transform: uppercase;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(47, 169, 156, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(47, 169, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 169, 156, 0); }
}

h1.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.04;
  color: var(--primary);
  margin: 0 0 22px;
  text-wrap: balance;
}
h1.hero-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -.005em;
  padding: 0 2px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* Waitlist form */
/* `#waitlist` is the in-page anchor target for the nav "Request access"
   button. The nav is sticky at 64px tall, so without scroll-margin the form
   lands hidden behind it. */
#waitlist { scroll-margin-top: 96px; }
.waitlist {
  display: flex; gap: 8px;
  max-width: 460px;
}
.waitlist input {
  flex: 1; min-width: 0;
  height: 48px;
  padding: 0 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.waitlist input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--selection-ring);
}
.waitlist input::placeholder { color: var(--text-muted); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 22px;
  background: var(--primary); color: #F7F2E8;
  border: 1px solid var(--primary-hover);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 500;
  letter-spacing: -.005em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), var(--shadow-xs);
  transition: background .12s ease, transform .12s ease;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }

.waitlist-meta {
  display: flex; align-items: center; gap: 14px;
  margin-top: 14px;
  font-size: 12px; color: var(--text-muted);
}
.waitlist-meta .check {
  display: inline-flex; align-items: center; gap: 5px;
}
.waitlist-meta svg { color: var(--success); }

/* ============================================================
   Hero visual — phone-call card (VOICE first)
   ============================================================ */
.call-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.call-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -80px; width: 320px; height: 320px;
  background: radial-gradient(closest-side, rgba(15,76,92,.08), transparent);
  pointer-events: none; z-index: 0;
}
.call-card > * { position: relative; z-index: 1; }

/* Header — caller ID + live indicator */
.call-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-muted);
  background: var(--bg-sunken);
}
.call-head-left {
  display: flex; align-items: center; gap: 12px;
}
.call-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #0F4C5C 0%, #E07A66 100%);
  display: grid; place-items: center;
  color: #F7F2E8;
  font-size: 13px; font-weight: 600;
  letter-spacing: -.01em;
}
.call-meta-l1 {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text);
}
.call-meta-l1 .phone-icon {
  color: var(--success);
}
.call-meta-l2 {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-muted);
  margin-top: 3px;
  display: flex; align-items: center; gap: 8px;
}
.call-meta-l2 .sep { width: 2px; height: 2px; border-radius: 50%; background: var(--text-disabled); }
.call-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--success-subtle);
  color: #1B6E66;
  border: 1px solid var(--success-border);
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.call-status .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.8s ease-out infinite;
}

/* Voice stage — the unambiguously-audio core */
.voice-stage {
  padding: 28px 22px 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(15,76,92,.05), transparent 65%),
    var(--bg-elev);
  position: relative;
}

.speaker-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.speaker-tile {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-muted);
  background: var(--bg-elev);
  transition: border-color .12s ease, background .12s ease;
}
.speaker-tile.active {
  border-color: var(--primary-border);
  background: var(--primary-subtle);
}
.speaker-tile.active.caller {
  border-color: var(--border-strong);
  background: var(--bg-sunken);
}
.speaker-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  color: #F7F2E8;
}
.speaker-tile.agent .speaker-avatar {
  background: linear-gradient(135deg, #0F4C5C 0%, #1A6478 100%);
}
.speaker-tile.caller .speaker-avatar {
  background: linear-gradient(135deg, #B5836F 0%, #E07A66 100%);
}
.speaker-meta {
  min-width: 0;
}
.speaker-meta .name {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.speaker-meta .role {
  font-size: 10px; color: var(--text-muted);
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 2px;
}
.mic-state {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-disabled);
  flex-shrink: 0;
  transition: background .15s ease, box-shadow .15s ease;
}
.speaker-tile.active.agent .mic-state {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-subtle);
}
.speaker-tile.active.caller .mic-state {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}
.speaker-arrow {
  flex-shrink: 0;
  color: var(--text-disabled);
  transition: color .15s ease;
}

/* Waveform — bars whose heights are driven by Web Audio amplitude when
   playing, and by a gentle idle sine otherwise. Heights are set inline by JS;
   the keyframe pulse is only used as a fallback when JS can't run. */
.waveform-stage {
  position: relative;
  margin-bottom: 16px;
}
.waveform {
  display: flex; align-items: center; justify-content: center;
  gap: 3px;
  height: 64px;
  padding: 0 12px;
  position: relative;
}
.waveform .bar {
  width: 3px;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background .2s ease, height .08s linear;
}
.waveform[data-speaker="agent"] .bar { background: var(--primary); }
.waveform[data-speaker="caller"] .bar { background: var(--accent); }
.waveform[data-speaker="idle"] .bar { background: var(--border-strong); }
.waveform.amplitude .bar { transition: background .2s ease; }
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* "Hear this call" — the single primary affordance overlaid on the waveform.
   Visible while the call is auto-playing muted (preview state) and again at
   the end inviting a replay. Disappears once the user opts in. Speaker icon,
   not a play triangle, so it reads as "click for sound" not "start something". */
.hear-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border: none;
  background: var(--primary);
  color: #F7F2E8;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.005em;
  box-shadow: 0 10px 28px rgba(15,76,92,.28), 0 0 0 8px rgba(15,76,92,.06);
  transition: box-shadow .18s ease, background .18s ease, transform .15s ease;
  white-space: nowrap;
  /* Soft pulse so the eye is drawn to the unmute affordance — but slow and
     subtle so it doesn't feel desperate. Combined with a brief fade-in so
     the button enters / re-enters (replay) without popping. */
  animation: hear-pulse 2.6s ease-out infinite, hear-fade-in .25s ease-out both;
}
@keyframes hear-fade-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.hear-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 14px 34px rgba(15,76,92,.32), 0 0 0 10px rgba(15,76,92,.08);
  transform: translate(-50%, calc(-50% - 1px));
  animation-play-state: paused;
}
.hear-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hear-btn .hear-btn-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(247,242,232,.14);
  color: #F7F2E8;
}
.hear-btn .hear-btn-label {
  padding-right: 4px;
}
@keyframes hear-pulse {
  0%   { box-shadow: 0 10px 28px rgba(15,76,92,.28), 0 0 0 0 rgba(15,76,92,.18); }
  60%  { box-shadow: 0 10px 28px rgba(15,76,92,.28), 0 0 0 14px rgba(15,76,92,0); }
  100% { box-shadow: 0 10px 28px rgba(15,76,92,.28), 0 0 0 0 rgba(15,76,92,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hear-btn { animation: none; }
}

/* Caption strip — live captioning under the waveform */
.caption-strip {
  min-height: 78px;
  padding: 14px 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  position: relative;
}
.caption-eyebrow {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.caption-eyebrow .who-tag {
  color: var(--primary);
  font-weight: 600;
}
.caption-eyebrow.caller .who-tag {
  color: var(--accent-text);
}
.caption-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
}
.caption-text .cursor {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: -2px;
  animation: caret 0.9s steps(1) infinite;
}
.caption-strip.caller .caption-text .cursor { background: var(--accent); }
@keyframes caret {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Footer — appointment booked + timer + controls */
.call-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border-muted);
  background: var(--bg-elev);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.call-controls {
  display: flex; align-items: center; gap: 8px;
}
.call-ctrl {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.call-ctrl:hover {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  color: var(--text);
}
.call-ctrl:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.call-ctrl-play {
  background: var(--primary);
  border-color: var(--primary);
  color: #F7F2E8;
}
.call-ctrl-play:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #F7F2E8;
}
.call-action-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-muted);
}
.call-action-row .booked {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--success-subtle);
  color: #1B6E66;
  border: 1px solid var(--success-border);
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  animation: bubble-in .35s cubic-bezier(.2,.7,.2,1);
}
.call-action-row .booked svg { color: var(--success); }
.call-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  font-feature-settings: 'tnum';
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Hero visual — variant B: calls log mini
   ============================================================ */
.calls-mini {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.calls-mini-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-muted);
  background: var(--bg-sunken);
  display: flex; justify-content: space-between; align-items: center;
}
.calls-mini-head h4 {
  margin: 0; font-size: 13px; font-weight: 600; color: var(--primary);
  letter-spacing: -.005em;
}
.calls-mini-head .stat-row {
  display: flex; gap: 18px;
  font-size: 11px; color: var(--text-muted);
}
.calls-mini-head .stat-row b {
  color: var(--text); font-weight: 600; font-feature-settings: 'tnum';
}
.call-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-muted);
  font-size: 13px;
  transition: background .1s ease;
  animation: row-in .4s ease-out both;
}
.call-row:last-child { border-bottom: none; }
.call-row:hover { background: var(--bg); }
@keyframes row-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.call-row .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 56px;
}
.call-row .who-line {
  min-width: 0;
}
.call-row .who-line .name {
  font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.call-row .who-line .reason {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}
.outcome-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.outcome-pill.booked  { background: var(--success-subtle); color:#1B6E66; border:1px solid var(--success-border); }
.outcome-pill.routed  { background: var(--primary-subtle); color: var(--primary-text); border:1px solid var(--primary-border); }
.outcome-pill.info    { background: var(--bg-sunken); color: var(--text-secondary); border:1px solid var(--border); }
.outcome-pill .dot { width:5px;height:5px;border-radius:50%; background:currentColor; }
.dur {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  min-width: 40px;
}

/* ============================================================
   Hero visual — variant C: orbit / waveform
   ============================================================ */
.orbit-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  height: 520px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.orbit-stage {
  flex: 1;
  position: relative;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(15,76,92,.04) 0%, transparent 60%),
    var(--bg-elev);
}
.orbit-stage .ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-stage .ring.r1 { width: 180px; height: 180px; }
.orbit-stage .ring.r2 { width: 280px; height: 280px; opacity: .7; }
.orbit-stage .ring.r3 { width: 380px; height: 380px; opacity: .4; }
.orbit-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: orbit-pulse 3.6s ease-out infinite;
}
@keyframes orbit-pulse {
  0%   { width: 60px; height: 60px; opacity: .55; }
  100% { width: 420px; height: 420px; opacity: 0; }
}
.orbit-pulse:nth-child(2) { animation-delay: 1.2s; }
.orbit-pulse:nth-child(3) { animation-delay: 2.4s; }

.orbit-core {
  position: relative; z-index: 2;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1A6478 0%, #0F4C5C 70%);
  display: grid; place-items: center;
  box-shadow:
    0 12px 32px -8px rgba(15,76,92,.35),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.orbit-core .heart {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(224, 122, 102, .25);
  animation: heart-pulse 1.6s ease-in-out infinite;
}
@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.85); }
}

/* Floating chips orbiting the core */
.float-chip {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm);
  animation: chip-float 6s ease-in-out infinite;
}
.float-chip .iconwrap {
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--primary-subtle);
  color: var(--primary);
}
.float-chip.success .iconwrap { background: var(--success-subtle); color: #1B6E66; }
.float-chip.accent  .iconwrap { background: var(--accent-subtle);  color: var(--accent-text); }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.orbit-foot {
  border-top: 1px solid var(--border-muted);
  padding: 12px 18px;
  background: var(--bg-sunken);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-muted);
}

/* ============================================================
   Section: Problem
   ============================================================ */
section.section {
  padding: 96px 0;
  position: relative;
}
section.alt {
  background: linear-gradient(180deg, var(--bg) 0%, #F0EAE0 100%);
  border-top: 1px solid var(--border-muted);
  border-bottom: 1px solid var(--border-muted);
}
@media (max-width: 720px) {
  section.section { padding: 64px 0; }
}

.section-head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section-head .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--primary);
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-head h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-head p.lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0;
  text-wrap: pretty;
}

/* Problem grid — three problem cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 980px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.problem-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.problem-stat {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 14px;
  font-feature-settings: 'tnum';
}
.problem-stat .unit {
  font-size: 22px; color: var(--text-muted); font-weight: 500; margin-left: 2px;
}
.problem-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.problem-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
.problem-card .cite {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   Section: Customize / pillars
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 820px) {
  .pillar-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pillar-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.pillar-eyebrow {
  align-self: flex-start;
  padding: 4px 9px;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  letter-spacing: .05em;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 600;
}
.pillar-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.pillar-card > p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  text-wrap: pretty;
}
.pillar-visual {
  margin-top: 6px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border-muted);
  background: var(--bg-sunken);
  min-height: 140px;
  display: flex; flex-direction: column; gap: 8px;
  justify-content: center;
}

/* Voices */
.pillar-voices { gap: 8px; }
.voice-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}
.voice-chip .vd {
  width: 18px; height: 8px;
  background: linear-gradient(90deg,
    var(--border-strong) 0 20%,
    var(--primary) 20% 45%,
    var(--border-strong) 45% 60%,
    var(--primary) 60% 85%,
    var(--border-strong) 85% 100%);
  border-radius: 2px;
  opacity: .7;
}
.voice-chip.selected {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary-text);
  font-weight: 500;
}
.voice-chip.selected .vd { opacity: 1; }
.voice-chip.custom {
  border-style: dashed;
  color: var(--text-muted);
  font-style: italic;
}
.voice-chip.custom .vd { display: none; }

/* Tone sliders */
.pillar-sliders {
  gap: 20px;
  justify-content: center;
}
.slider-row {
  display: grid;
  grid-template-columns: 76px 1fr 64px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.slider-row .srk { color: var(--text-muted); font-weight: 500; }
.slider-row .srv {
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
  font-feature-settings: 'tnum';
}
.slider-row .track {
  position: relative;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
}
.slider-row .track-fill {
  position: absolute;
  inset: 0;
  right: auto;
  background: var(--primary);
  border-radius: 2px;
  transition: width .9s cubic-bezier(.4,.0,.2,1);
}
.slider-row .track input[type="range"] {
  position: absolute;
  inset: -10px 0;
  width: 100%;
  height: 24px;
  opacity: 0;
  cursor: grab;
  margin: 0;
}
.slider-row .track input[type="range"]:active { cursor: grabbing; }
.slider-row .thumb {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  background: var(--bg-elev);
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  transition: left .9s cubic-bezier(.4,.0,.2,1), transform .12s ease, box-shadow .12s ease;
}
.slider-row .track:hover .thumb {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px var(--primary-subtle), var(--shadow-sm);
}

/* Rules */
.pillar-rules { gap: 8px; }
.rule {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}
.rule .rd {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rule .rd.ok { background: var(--success); box-shadow: 0 0 0 3px var(--success-subtle); }
.rule .rd.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-subtle); }

/* Knowledge tags */
.pillar-kb {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-content: flex-start;
}
.kb-tag {
  padding: 6px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ============================================================
   Section: How it works
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}
@media (max-width: 980px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-step {
  position: relative;
  padding: 28px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 14px;
}
.how-step .step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
}
.how-step h3 {
  font-size: 17px; font-weight: 600;
  color: var(--text); margin: 0;
  letter-spacing: -.01em;
}
.how-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}
.how-visual {
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-muted);
  background: var(--bg-sunken);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  min-height: 110px;
}
.how-visual .line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 3px 0;
  align-items: start;
}
.how-visual .line .t {
  color: var(--text-muted); min-width: 40px;
}
.how-visual .line .ag { color: var(--primary); }
.how-visual .line .ca { color: var(--text); }

/* Step "ribbon" arrow — drawn in CSS as a faint line */
.how-grid::before {
  content: '';
  display: none;
  position: absolute;
  top: 50px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(
    to right, var(--border-strong) 0 4px, transparent 4px 8px
  );
  z-index: 0;
}
@media (min-width: 981px) { .how-grid::before { display: block; } }

/* ============================================================
   Footer
   ============================================================ */
.cta-band {
  margin-top: 0;
  padding: 80px 0;
  background: var(--primary);
  color: #F7F2E8;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(224,122,102,.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(47,169,156,.14), transparent 45%);
  pointer-events: none;
}
.cta-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .cta-band-inner { grid-template-columns: 1fr; }
}
.cta-band h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.08;
  margin: 0 0 16px;
  color: #F7F2E8;
}
.cta-band h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #F4B8AA;
}
.cta-band p {
  color: rgba(247, 242, 232, 0.78);
  font-size: 16px;
  margin: 0;
  max-width: 460px;
}

.waitlist.dark input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: #F7F2E8;
}
.waitlist.dark input::placeholder { color: rgba(247, 242, 232, .5); }
.waitlist.dark input:focus {
  border-color: #F4B8AA;
  box-shadow: 0 0 0 3px rgba(244, 184, 170, .18);
}
.waitlist.dark .btn-primary {
  background: #F7F2E8;
  color: var(--primary);
  border-color: rgba(255,255,255,.4);
}
.waitlist.dark .btn-primary:hover { background: #fff; }

/* ============================================================
   Site footer
   ============================================================ */
footer.site-foot {
  background: var(--bg);
  border-top: 1px solid var(--border-muted);
  padding: 48px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
.foot-brand .copy {
  font-size: 13px; color: var(--text-muted);
  max-width: 260px; line-height: 1.55; margin: 12px 0 0;
}
.foot-col h5 {
  font-size: 11px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
  margin: 0 0 12px;
}
.foot-col a {
  display: block; padding: 4px 0;
  font-size: 13px; color: var(--text-secondary);
}
.foot-col a:hover { color: var(--primary); }
.foot-col a .badge-soft {
  display: inline-flex; align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px; font-weight: 500;
  border-radius: 4px;
  background: var(--success-subtle);
  color: #1B6E66;
  border: 1px solid var(--success-border);
}
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-muted);
  font-size: 12px; color: var(--text-muted);
}
.foot-bottom .legal-links {
  display: flex; gap: 18px;
}
.foot-bottom .legal-links a:hover { color: var(--primary); }

/* ============================================================
   Tiny utilities
   ============================================================ */
.spin-icon { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
