/* ============================================================
   ISAIAH MENDIOLA · v2 — slideshow funnel
   Typeform-style click-through. Each slide animates in.
   Vanilla CSS, no build step.
   ============================================================ */

@property --c-x1 { syntax: '<percentage>'; inherits: false; initial-value: 12%; }
@property --c-y1 { syntax: '<percentage>'; inherits: false; initial-value: 18%; }
@property --c-x2 { syntax: '<percentage>'; inherits: false; initial-value: 88%; }
@property --c-y2 { syntax: '<percentage>'; inherits: false; initial-value: 22%; }
@property --c-x3 { syntax: '<percentage>'; inherits: false; initial-value: 30%; }
@property --c-y3 { syntax: '<percentage>'; inherits: false; initial-value: 88%; }
@property --c-x4 { syntax: '<percentage>'; inherits: false; initial-value: 78%; }
@property --c-y4 { syntax: '<percentage>'; inherits: false; initial-value: 80%; }
@property --c-x5 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --c-y5 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --c-s1 { syntax: '<percentage>'; inherits: false; initial-value: 50%; }
@property --c-s2 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --c-s3 { syntax: '<percentage>'; inherits: false; initial-value: 60%; }
@property --c-s4 { syntax: '<percentage>'; inherits: false; initial-value: 55%; }
@property --c-s5 { syntax: '<percentage>'; inherits: false; initial-value: 65%; }

:root {
  /* Palette — warm-luxury: champagne primary, dusty lavender secondary
     (tuned to the medallions + lilac field background). */
  --ink:        #F7F5F0;
  --ink-2:      rgba(247,245,240,.84);
  --ink-3:      rgba(247,245,240,.60);
  --ink-4:      rgba(247,245,240,.36);
  --ink-line:   rgba(247,245,240,.10);
  --ink-line-2: rgba(247,245,240,.18);

  --accent:         #B9C2CE;       /* warm champagne / old gold */
  --accent-bright:  #E4E8EC;
  --accent-deep:    #7A828C;
  --accent-rgb:     185,194,206;
  --accent-2:       #9AA0B0;       /* dusty lavender — iridescent partner */
  --accent-2-rgb:   154,160,176;
  --on-accent:      #07090C;       /* dark warm text on champagne fill */
  --warning:        #E27188;

  --bg:        #07090C;
  --bg-glass:  rgba(247,245,240,.04);
  --bg-glass2: rgba(247,245,240,.07);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Inter', system-ui, sans-serif;

  --r-pill: 999px;
  --r-card: 18px;
  --r-input: 12px;

  --maxw-slide: 640px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --t-slide: 540ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: 'ss01','cv11';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

/* ============================================================
   VIDEO BACKDROP (Mux HLS)
   ============================================================ */
.bg-video {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  background: #07090C;
}
/* Darkening + warming overlay so slide text stays legible regardless
   of what frame is currently on screen. */
.bg-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,9,12,.62) 0%, rgba(7,9,12,.50) 45%, rgba(7,9,12,.72) 100%),
    radial-gradient(ellipse 70% 50% at 50% 26%, rgba(58,42,71,.42) 0%, transparent 62%);
}

.bg-grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='250' height='250'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .bg-overlay { background: #07090C; }
}

/* ============================================================
   FLOATING CREDIBILITY CHIPS (hero only)
   ============================================================ */
.float-layer {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.float-layer.show { opacity: 1; }

.float-chip {
  position: absolute;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  /* Layered glass body — soft iridescent tint top→bottom + frosted base */
  background:
    linear-gradient(180deg, rgba(185,194,206,.10) 0%, rgba(154,160,176,.06) 100%),
    rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  /* Multi-layer shadows = physical depth */
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.34),
    inset 0 -2px 6px rgba(0,0,0,.22),
    0 18px 40px rgba(0,0,0,.42),
    0 0 28px rgba(185,194,206,.10);
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink);
  white-space: nowrap;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  isolation: isolate;
}
/* Static iridescent border — cyan-to-magenta vertical sweep, masked
   to just a thin perimeter. No rotation (it ghosts under 3D parent
   transforms). The bubble feel comes from the layered shadows +
   the chip's own tilt animation. */
.float-chip::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.55) 0%,
    rgba(185,194,206,.45) 35%,
    rgba(154,160,176,.30) 70%,
    rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Pulsing accent dot — feels like a status indicator with breath */
.float-chip > .dot,
.float-chip::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--accent-bright), var(--accent) 55%, var(--accent-deep) 100%);
  margin-right: 9px;
  vertical-align: middle;
  transform: translateY(-1px);
  animation: dot-pulse 2.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent), 0 0 2px rgba(255,255,255,.6); }
  50%      { box-shadow: 0 0 18px var(--accent), 0 0 4px rgba(255,255,255,.8), 0 0 30px rgba(185,194,206,.45); }
}

/* 3D float keyframes — translate + tilt so each chip reads as a solid orb */
@keyframes float-bob-a { 0%,100% { transform: translate3d(0,0,0) rotateX(0) rotateY(0); }  50% { transform: translate3d(4px,-14px,0) rotateX(4deg) rotateY(-6deg); } }
@keyframes float-bob-b { 0%,100% { transform: translate3d(0,0,0) rotateX(0) rotateY(0); }  50% { transform: translate3d(-6px,10px,0) rotateX(-3deg) rotateY(5deg); } }
@keyframes float-bob-c { 0%,100% { transform: translate3d(0,0,0) rotateX(0) rotateY(0); }  50% { transform: translate3d(-3px,-10px,0) rotateX(2deg) rotateY(-4deg); } }

.float-chip.f1 { top: 14%;    left: 6%;   animation: float-bob-a  7.4s ease-in-out infinite; }
.float-chip.f2 { top: 22%;    right: 5%;  animation: float-bob-b  8.9s ease-in-out infinite .8s; }
.float-chip.f3 { top: 56%;    left: 4%;   animation: float-bob-c  9.6s ease-in-out infinite 1.5s; }
.float-chip.f4 { bottom: 22%; right: 6%;  animation: float-bob-a  8.1s ease-in-out infinite 2.2s; }
.float-chip.f5 { bottom: 12%; left: 18%;  animation: float-bob-b  7.7s ease-in-out infinite .4s; }

/* The chips are positioned in the margins around the centered content
   column. That only works on wide desktop, where there's real empty space
   on each side. Below ~1024px the content fills the width and the chips
   would overlap the headline/lede — so hide them entirely. The hero's
   inline badge + trust strip already carry the credibility cues. */
@media (max-width: 1024px) {
  .float-layer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .float-chip { animation: none; }
}

/* ============================================================
   LIQUID-GLASS UTILITY
   ============================================================ */
.glass {
  background: var(--bg-glass);
  background-blend-mode: luminosity;
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.10);
  position: relative;
  overflow: hidden;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.45) 0%,
    rgba(255,255,255,.12) 22%,
    rgba(255,255,255,0)   45%,
    rgba(255,255,255,0)   60%,
    rgba(255,255,255,.12) 82%,
    rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   TOP BAR + PROGRESS
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: linear-gradient(180deg, rgba(23,15,30,.55) 0%, rgba(23,15,30,0) 100%);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(58,42,71,.55)) drop-shadow(0 1px 6px rgba(185,194,206,.18));
}
.brand-name {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -.005em;
}
.step-counter {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em;
  color: var(--ink-3);
}
.step-counter .muted { color: var(--ink-4); }

.progress {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 99;
  height: 2px;
  background: var(--ink-line);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-bright));
  width: 0%;
  transition: width 520ms var(--ease);
  box-shadow: 0 0 12px rgba(185,194,206,.45);
}

/* ============================================================
   BOTTOM BAR (back button only)
   ============================================================ */
.bottombar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 18px;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(23,15,30,.55) 0%, rgba(23,15,30,0) 100%);
}
.btn-back {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  color: var(--ink-3);
  font-size: 12.5px; font-weight: 500;
  border-radius: var(--r-pill);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.btn-back:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.btn-back[hidden] { display: none; }

/* ============================================================
   STAGE + SLIDES
   ============================================================ */
.stage {
  position: relative;
  width: 100%; height: 100dvh;
  overflow: hidden;
  z-index: 5;
}
.slide {
  position: absolute; inset: 0;
  display: flex; align-items: safe center; justify-content: safe center;
  padding: 80px 24px 80px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(12px);
  pointer-events: none;
  transition:
    opacity var(--t-slide) var(--ease),
    transform var(--t-slide) var(--ease),
    filter var(--t-slide) var(--ease);
  will-change: opacity, transform, filter;
}
.slide.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.slide.leaving {
  /* When leaving via "next", lift up + blur */
  opacity: 0;
  transform: translateY(-22px);
  filter: blur(8px);
}
.slide.leaving-back {
  /* When leaving via "back", drop down + blur */
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
}

.slide-inner {
  width: 100%;
  max-width: var(--maxw-slide);
  display: flex; flex-direction: column;
  gap: 18px;
}
.book-inner { max-width: 880px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 9.5vw, 96px);
  line-height: .94;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance; /* distribute lines evenly — avoids orphan words */
}
.display em {
  font-style: italic;
  color: var(--accent);
}
.heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.02;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: balance; /* distribute lines evenly — avoids orphan words */
}
.heading em {
  font-style: italic;
  color: var(--accent-bright);
}
.lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
}
.lede.small { font-size: 13.5px; color: var(--ink-3); }
.step-meta {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}
.micro-trust {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-align: center;
  padding-top: 4px;
}
.privacy-link { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.privacy-link:hover { color: var(--ink); }

/* Subtle persistent privacy link, bottom-right corner */
.privacy-fixed {
  position: fixed; right: 14px; bottom: 12px; z-index: 90;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--ink-4); text-decoration: none;
  padding: 4px 6px;
}
.privacy-fixed:hover { color: var(--ink-2); }
@media (max-width: 600px) { .privacy-fixed { font-size: 10px; right: 10px; bottom: 8px; } }

/* ============================================================
   CHIPS, PILLS, BUTTONS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  color: var(--ink);
  letter-spacing: .02em;
  transition: background .25s var(--ease), transform .15s var(--ease);
}
.chip:hover { background: var(--bg-glass2); }
.chip.selected {
  background: rgba(185,194,206,.18);
  color: var(--accent-bright);
}
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.chip-group {
  display: flex; flex-wrap: wrap; gap: 10px;
}

.pill-group {
  display: flex; flex-direction: column; gap: 10px;
}
.pill {
  text-align: left;
  padding: 16px 20px;
  font-size: 15px; font-weight: 500;
  border-radius: 14px;
  color: var(--ink);
  transition: background .25s var(--ease), transform .12s var(--ease);
}
.pill:hover { background: var(--bg-glass2); }
.pill.selected {
  background: rgba(185,194,206,.16);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(185,194,206,.55), inset 0 1px 1px rgba(255,255,255,.10);
}
.pill.selected::before { background: linear-gradient(180deg, rgba(185,194,206,.6), rgba(185,194,206,.2) 30%, rgba(185,194,206,0) 50%, rgba(185,194,206,0) 70%, rgba(185,194,206,.6)); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: var(--on-accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(185,194,206,.30), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .15s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(185,194,206,.40), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:active { transform: translateY(0); }

.cta-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 6px;
}
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  margin-top: 4px;
}
.trust-strip .sep { color: var(--ink-4); }

/* ============================================================
   OPTION CARDS (interest grid)
   ============================================================ */
.card-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.card-grid.one-col { grid-template-columns: 1fr !important; }

/* Path cards (life-flow Ethos/Call split) */
.path-card { gap: 14px; padding: 22px; }
.path-card .opt-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.path-card .opt-title { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.path-card .opt-sub   { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.path-card .opt-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-size: 13px; font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: .01em;
}

/* Ethos fallback on the book slide — life + college flows */
.ethos-fallback { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }
.ethos-fallback[hidden] { display: none; }
.ethos-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .ethos-grid { grid-template-columns: 1fr 1fr; } }
.ethos-divider {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--ink-4);
}
.ethos-divider::before,
.ethos-divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--ink-line);
}

.option-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 20px;
  border-radius: var(--r-card);
  text-align: left;
  transition: transform .15s var(--ease), background .25s var(--ease);
}
.option-card:hover { background: var(--bg-glass2); transform: translateY(-1px); }
.option-card.selected {
  background: rgba(185,194,206,.12);
  box-shadow: inset 0 0 0 1.5px rgba(185,194,206,.55), inset 0 1px 1px rgba(255,255,255,.10);
}
.option-card.selected::before { background: linear-gradient(180deg, rgba(185,194,206,.6), rgba(185,194,206,.2) 30%, rgba(185,194,206,0) 50%, rgba(185,194,206,0) 70%, rgba(185,194,206,.6)); }
.opt-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(185,194,206,.10);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.opt-title {
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
}
.opt-sub {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-3);
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field .hint {
  text-transform: none; letter-spacing: 0;
  color: var(--ink-4);
}
.field input, .field select {
  padding: 13px 14px;
  /* Dark, blurred fill so the field reads as a clear input box over the
     light/busy background video (not a faint outline that disappears). */
  background: rgba(12,8,18,.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  border: 1px solid rgba(247,245,240,.24);
  border-radius: var(--r-input);
  /* 16px min: iOS Safari zooms the whole page when you focus an input
     smaller than 16px — that lurch reads as broken right at the PII step. */
  font-size: 16px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus {
  border-color: rgba(185,194,206,.65);
  background: rgba(12,8,18,.6);
  box-shadow: 0 0 0 3px rgba(185,194,206,.14);
}
.field input::placeholder { color: rgba(247,245,240,.5); }
.field select option { background: #0B0C11; color: var(--ink); }

/* Visible keyboard-focus ring on every interactive control. The funnel
   force-focuses a control when each slide enters (app.js), so keyboard and
   screen-reader users MUST be able to see where they landed — without this
   they're navigating blind, and it's an ADA/WCAG gap on a page collecting PII.
   :focus-visible keeps mouse clicks ring-free. */
.btn-primary:focus-visible,
.pill:focus-visible,
.chip:focus-visible,
.option-card:focus-visible,
.path-card:focus-visible,
.btn-back:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}
.option-card:focus-visible,
.path-card:focus-visible { border-radius: var(--r-card); }

.state-error {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-input);
  background: rgba(255,94,110,.08);
  color: #ffd6dc;
  font-size: 12.5px;
  line-height: 1.5;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.state-error.glass::before {
  background: linear-gradient(180deg, rgba(255,94,110,.55), rgba(255,94,110,.15) 30%, rgba(255,94,110,0) 50%, rgba(255,94,110,0) 70%, rgba(255,94,110,.55));
}
.state-error[hidden] { display: none; }

/* Honeypot — invisible to humans */
.honeypot {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ============================================================
   SLIDER (debt)
   ============================================================ */
.slider-card {
  padding: 20px;
  border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 14px;
}
.slider-display {
  display: flex; justify-content: space-between; align-items: baseline;
}
.slider-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.slider-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  letter-spacing: -.02em;
  color: var(--accent);
}
input[type="range"] {
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--p, 10%), var(--ink-line) var(--p, 10%));
  border-radius: 999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 0 4px rgba(185,194,206,.18), 0 4px 14px rgba(185,194,206,.45);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 0 0 4px rgba(185,194,206,.18), 0 4px 14px rgba(185,194,206,.45);
  cursor: pointer;
}
.slider-scale {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .05em;
  color: var(--ink-4);
}

/* ============================================================
   ESTIMATE CARD
   ============================================================ */
.estimate-card {
  padding: 30px 24px;
  border-radius: var(--r-card);
  text-align: center;
  display: flex; flex-direction: column; gap: 8px;
}
.estimate-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em;
  color: var(--ink-3);
}
.estimate-price {
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
}
.estimate-price .dash,
.estimate-price .per {
  font-size: .45em;
  color: var(--accent-bright);
}
.estimate-term {
  font-size: 13px;
  color: var(--ink-2);
}
.estimate-term em { color: var(--accent-bright); font-style: italic; }
.estimate-anchor {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3);
  margin-top: 6px;
}
.estimate-anchor .sep { color: var(--ink-4); }

/* ============================================================
   CALENDLY MOUNT
   ============================================================ */
.calendly-mount {
  width: 100%;
  min-height: 600px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

/* ============================================================
   ENTRANCE STAGGER (per-element on the active slide)
   ============================================================ */
.slide.active .slide-inner > * {
  animation: stagger-in 720ms var(--ease) both;
}
.slide.active .slide-inner > *:nth-child(1) { animation-delay:  60ms; }
.slide.active .slide-inner > *:nth-child(2) { animation-delay: 140ms; }
.slide.active .slide-inner > *:nth-child(3) { animation-delay: 220ms; }
.slide.active .slide-inner > *:nth-child(4) { animation-delay: 300ms; }
.slide.active .slide-inner > *:nth-child(5) { animation-delay: 380ms; }
.slide.active .slide-inner > *:nth-child(6) { animation-delay: 460ms; }
.slide.active .slide-inner > *:nth-child(7) { animation-delay: 540ms; }
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* Shake on validation fail */
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
.shake { animation: shake .3s ease; }

/* Honor the OS "Reduce Motion" setting. The slide blur+slide, the per-element
   stagger, and the shake can trigger motion sickness for some users (often
   older buyers — squarely your audience). Respecting the setting is both a
   courtesy and an accessibility expectation. We keep a calm opacity fade
   (no movement, no blur) so slides still transition, just gently. */
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: opacity .2s ease;
    transform: none !important;
    filter: none !important;
  }
  .slide.leaving, .slide.leaving-back { transform: none !important; filter: none !important; }
  .slide.active .slide-inner > * { animation: none !important; }
  .shake { animation: none !important; }
}

/* Inline validation hint — tells the user what to fix when an advance is
   blocked, instead of a silent shake that reads as "broken." Sits above the
   bottom bar; auto-dismisses. */
.slide-hint {
  position: fixed; left: 50%; bottom: 74px; z-index: 120;
  transform: translateX(-50%) translateY(8px);
  max-width: min(92vw, 460px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(40,12,20,.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255,94,110,.5), 0 12px 30px rgba(0,0,0,.42);
  color: #ffd9de;
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  text-align: center; line-height: 1.4;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.slide-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .slide-hint { transition: opacity .2s ease; transform: translateX(-50%) !important; }
}

/* ============================================================
   MOBILE TWEAKS
   ============================================================ */
@media (max-width: 420px) {
  .topbar { padding: 0 14px; }
  .brand-name { display: none; }
  .slide { padding: 68px 16px 84px; }
  .slide-inner { gap: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .option-card { padding: 14px 16px; gap: 6px; }
  .opt-icon { width: 34px; height: 34px; border-radius: 10px; }
  .opt-title { font-size: 15.5px; }
  .opt-sub { font-size: 12px; }
  .heading { font-size: clamp(28px, 7.5vw, 40px); }
  .display { font-size: clamp(36px, 9.6vw, 60px); }
}

/* NOVR: hide floating hero chips (overlapped the serif hero) */
.float-layer{display:none!important}
