/* ============================================================
   באדג'ט homepage v2. Loaded after styles.css; adds only.
   ============================================================ */

.page-home-v2,
.page-v2 {
  --blue: #1a6dff;
  --blue-2: #0a57e0;
  --blue-3: #6aa5ff;
  --blue-tint: #eaf2ff;
  --navy: #06163a;
  --navy-2: #0b2a6b;
  --ink: #0b1020;
  --ink-2: #1c2338;
  --muted: #5d6680;
  --paper: #f5f6fa;
  --gold-1: #f6e3ae;
  --gold-2: #d9b25e;
  --gold-3: #a8823a;
  --chrome-1: #ffffff;
  --chrome-2: #c9cfda;
  --indigo: #4f46e5;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Heebo', system-ui, sans-serif;
}

.page-home-v2 main { overflow-x: clip; }

/* styles.css caps every section at 1200px. Here sections run edge to edge
   and their inner wrappers set the reading width. */
.page-home-v2 main > section { max-width: none; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(11, 16, 32, 0.08);
  backdrop-filter: blur(10px);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-3), var(--blue));
  box-shadow: 0 0 0 3px rgba(26, 109, 255, 0.18);
}

.eyebrow--dark { background: #fff; }

.accent-text {
  background: linear-gradient(100deg, var(--blue-2) 0%, var(--blue) 30%, #5aa0ff 50%, var(--blue) 70%, var(--blue-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-sheen 6s ease-in-out infinite;
}

.accent-text .wi {
  background: linear-gradient(100deg, var(--blue-2) 0%, var(--blue) 30%, #5aa0ff 50%, var(--blue) 70%, var(--blue-2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-sheen 6s ease-in-out infinite;
}

@keyframes accent-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* word split wrappers */
.hero3d-title .accent-text { display: inline-block; text-wrap: balance; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }

.section-h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 auto 14px;
  max-width: 18ch;
}

.section-h2--light { color: #fff; }

.section-lead {
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  color: var(--muted);
  margin: 0 auto 48px;
  max-width: 52ch;
  line-height: 1.7;
}

.section-lead--light { color: rgba(255, 255, 255, 0.66); }

/* ---------- 1. HERO ---------- */

.hero3d {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 13vw, 150px) var(--section-pad-x) 72px;
  background:
    radial-gradient(55% 50% at 22% 48%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 55% at 92% 0%, rgba(26, 109, 255, 0.22) 0%, rgba(26, 109, 255, 0) 70%),
    radial-gradient(40% 45% at 0% 100%, rgba(106, 165, 255, 0.22) 0%, rgba(106, 165, 255, 0) 70%),
    linear-gradient(180deg, #dbe8ff 0%, #eef4ff 55%, var(--paper) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero3d-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 109, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 109, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 30% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero3d-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.hero3d-title {
  font-size: clamp(2.4rem, 4.6vw, 3.95rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
  color: var(--ink);
}

.hero3d-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 30px;
  max-width: 46ch;
}

.hero3d-visual {
  position: relative;
  align-self: stretch;
  min-height: clamp(380px, 52vw, 640px);
}

.hero3d-scene {
  position: absolute;
  inset: -8% -12% -4% -12%;
}

.hero3d-scene canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero3d-fallback { display: none; }
.hero3d-scene.is-fallback .hero3d-fallback {
  display: block;
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 90%;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(11, 16, 32, 0.18);
}

.scene-caption {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11, 16, 32, 0.07);
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 10px 30px rgba(11, 16, 32, 0.08);
}

.scene-caption [data-phase] { display: inline-block; }

.scene-caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 109, 255, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(26, 109, 255, 0); }
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(11, 16, 32, 0.22);
  border-radius: 14px;
  z-index: 2;
}

.scroll-cue-line {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ink-2);
  animation: cue 1.8s var(--ease-out) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- signup form (both themes) ---------- */

.signup { max-width: 500px; position: relative; }

.signup-fields {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 18px;
}

.signup--light .signup-fields {
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 50px rgba(11, 16, 32, 0.1), 0 0 0 1px rgba(11, 16, 32, 0.06);
}

.signup--dark .signup-fields {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.signup-fields input[type='text'],
.signup-fields input[type='email'] {
  flex: 1 1 140px;
  min-width: 0;
  border: none;
  background: transparent;
  border-radius: 13px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  transition: background 0.25s;
}

.signup--light .signup-fields input { color: var(--ink); }
.signup--light .signup-fields input::placeholder { color: #98a0b5; }
.signup--light .signup-fields input:focus-visible { outline: none; background: #f1f3f8; }

.signup--dark .signup-fields input { color: #fff; }
.signup--dark .signup-fields input::placeholder { color: rgba(255, 255, 255, 0.5); }
.signup--dark .signup-fields input:focus-visible { outline: none; background: rgba(255, 255, 255, 0.1); }

.signup-submit {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  border: none;
  border-radius: 13px;
  padding: 14px 26px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(160deg, #2d7bff, var(--blue-2));
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.signup-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.signup-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(10, 87, 224, 0.35); }
.signup-submit:hover::after { transform: translateX(120%); }
.signup-submit:disabled { opacity: 0.6; cursor: progress; }

.signup--dark .signup-submit {
  color: var(--blue-2);
  background: #fff;
}

.signup-note { font-size: 0.875rem; line-height: 1.6; margin: 12px 4px 0; }
.signup--light .signup-note { color: var(--muted); }
.signup--dark .signup-note { color: rgba(255, 255, 255, 0.66); }

.signup-consent { font-size: 0.75rem; line-height: 1.65; margin: 10px 4px 0; max-width: 58ch; }
.signup--light .signup-consent { color: #8a92a8; }
.signup--light .signup-consent a { color: var(--ink-2); text-decoration: underline; }
.signup--dark .signup-consent { color: rgba(255, 255, 255, 0.45); }
.signup--dark .signup-consent a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }

.signup-message { margin: 10px 4px 0; font-size: 0.9375rem; font-weight: 600; min-height: 1.2em; }
.waitlist-form-message--success { color: #16a34a; }
.waitlist-form-message--error { color: #dc2626; }
.signup--dark .waitlist-form-message--success { color: #4ade80; }
.signup--dark .waitlist-form-message--error { color: #fca5a5; }

.signup-honeypot { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-thanks { border-radius: 20px; padding: 22px 24px; max-width: 500px; }
.signup-thanks h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 800; }
.signup-thanks p { margin: 0; font-size: 0.9375rem; line-height: 1.7; }
.signup-thanks--light { background: #fff; box-shadow: 0 18px 50px rgba(11, 16, 32, 0.1); }
.signup-thanks--light p { color: var(--muted); }
.signup-thanks--dark { background: rgba(255, 255, 255, 0.08); color: #fff; margin-inline: auto; text-align: start; }
.signup-thanks--dark p { color: rgba(255, 255, 255, 0.75); }

/* ---------- 2. PHONE STORY ---------- */

.story {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px var(--section-pad-x) 60px;
  background: linear-gradient(180deg, var(--paper) 0%, #e4eeff 100%);
}

.story-inner {
  width: 100%;
  max-width: var(--layout-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
}

.story-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 34px;
  max-width: 14ch;
}

.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.story-step {
  display: flex;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  opacity: 0.38;
  transition: opacity 0.5s var(--ease-out), background 0.5s, transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.story-step.is-active {
  opacity: 1;
  background: #fff;
  transform: translateX(-6px);
  box-shadow: 0 16px 40px rgba(11, 16, 32, 0.08);
}

.story-step-num {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--blue);
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.story-step h3 { margin: 0 0 4px; font-size: 1.1875rem; font-weight: 800; }
.story-step p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }

.story-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.story-glow {
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(26, 109, 255, 0.26) 0%, rgba(106, 165, 255, 0.12) 35%, transparent 65%);
  pointer-events: none;
}

.story-phone {
  position: relative;
  width: min(330px, 78vw);
  transform-style: preserve-3d;
  will-change: transform;
}

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19.3;
  border-radius: 52px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2f3d, #0d1018 45%, #22273a);
  box-shadow:
    0 0 0 1.5px #3b4152 inset,
    0 50px 100px rgba(11, 16, 32, 0.32),
    0 18px 40px rgba(11, 16, 32, 0.2);
}

.phone-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
}

.phone-status {
  position: absolute;
  top: 24px;
  inset-inline: 36px;
  display: flex;
  justify-content: space-between;
  font: 600 13px/1 -apple-system, 'Heebo', sans-serif;
  color: #0b1020;
  z-index: 2;
  direction: ltr;
}

.phone-status-icons { font-size: 9px; letter-spacing: 1px; }

.phone-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 41px;
  overflow: hidden;
  background: #f2f3f7;
}

.screen-track {
  display: flex;
  height: 100%;
  width: 100%;
}

.app-screen {
  flex: 0 0 100%;
  height: 100%;
  padding: 58px 14px 14px;
  overflow: hidden;
  font-size: 12px;
  color: #0b1020;
  direction: rtl;
}

.app-hero-card {
  background: linear-gradient(160deg, #2d7bff, #0a63f0);
  color: #fff;
  border-radius: 18px;
  padding: 14px 14px 12px;
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(10, 99, 240, 0.28);
}

.app-hero-card--center { text-align: center; padding: 18px 14px; }
.app-hero-title { margin: 0 0 10px; font-weight: 800; font-size: 13px; }
.app-hero-cols { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
.app-hero-cols div + div { border-inline-start: 1px solid rgba(255, 255, 255, 0.3); }
.app-hero-cols span { display: block; font-size: 10px; opacity: 0.85; }
.app-hero-cols b { font-size: 16px; font-weight: 800; }
.app-hero-bar { height: 6px; background: rgba(255, 255, 255, 0.3); border-radius: 6px; margin: 12px 0 6px; overflow: hidden; }
.app-hero-bar .bar-fill { background: #fff; }
.app-hero-foot { margin: 0; text-align: center; font-size: 10px; opacity: 0.9; }
.app-hero-kicker { display: block; font-size: 11px; opacity: 0.85; }
.app-hero-big { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }

.app-section-title { margin: 0 2px 8px; font-weight: 800; font-size: 13px; }

.b-card { background: #fff; border-radius: 14px; padding: 11px 12px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(11, 16, 32, 0.04); }
.b-row { display: flex; align-items: center; gap: 8px; }
.b-row b { font-size: 13px; flex: 1; }
.b-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 auto; }
.ico-food { background: #ffe9e9; }
.ico-shop { background: #fff3df; }
.ico-car { background: #e7f0ff; }
.ico-home { background: #efeaff; }
.b-pct { font-size: 11px; font-weight: 800; }
.is-over { color: #ef4444; }
.is-warn { color: #f59e0b; }
.b-amt { margin: 7px 0 6px; font-weight: 800; font-size: 13px; }
.b-amt small { font-weight: 500; color: #8a92a8; font-size: 10px; }
.b-bar { height: 5px; background: #eef0f4; border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: #2d7bff; }
.bar-fill.is-red { background: #ef4444; }
.bar-fill.is-orange { background: #f59e0b; }
.b-note { margin: 5px 0 0; font-size: 10px; color: #8a92a8; }

.chips { display: flex; gap: 6px; margin-bottom: 14px; overflow: hidden; }
.chip { flex: 0 0 auto; font-size: 11px; padding: 6px 11px; border-radius: 999px; background: #e7e9ef; color: #5d6680; }
.chip.is-on { background: #0a63f0; color: #fff; }

.tx { display: flex; align-items: center; gap: 9px; background: #fff; padding: 10px; border-radius: 13px; margin-bottom: 7px; }
.tx > div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tx b { font-size: 12.5px; }
.tx-cat { align-self: flex-start; font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cat-food { background: #ffe9e9; color: #d63b3b; }
.cat-shop { background: #fff3df; color: #c07a07; }
.cat-car { background: #e7f0ff; color: #2563eb; }
.cat-home { background: #efeaff; color: #6d4ae8; }
.tx-amt { font-weight: 800; font-size: 12.5px; }

.ai-head { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.ai-head b { display: block; font-size: 13px; }
.ai-avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6366f1, #0a63f0); color: #fff; }
.ai-online { font-size: 10px; color: #16a34a; }
.bubble { max-width: 84%; padding: 9px 12px; border-radius: 16px; margin-bottom: 8px; font-size: 12px; line-height: 1.5; }
.bubble--me { margin-inline-start: auto; background: #0a63f0; color: #fff; border-end-start-radius: 4px; }
.bubble--ai { background: #fff; color: #0b1020; border-end-end-radius: 4px; box-shadow: 0 1px 2px rgba(11, 16, 32, 0.05); }
.ai-input { position: absolute; bottom: 14px; inset-inline: 14px; display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 999px; padding: 8px 8px 8px 14px; color: #98a0b5; font-size: 11px; }
.s-ai { position: relative; }
.ai-send { width: 24px; height: 24px; border-radius: 50%; background: #0a63f0; color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.pop {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 24px 50px rgba(11, 16, 32, 0.18), 0 0 0 1px rgba(11, 16, 32, 0.05);
  opacity: 0;
  font-size: 13px;
}

.pop--a { top: 36%; right: -40px; }
.pop--b { top: 26%; left: -40px; }
.pop b { display: block; font-size: 14px; }
.pop-sub { font-size: 11px; font-weight: 600; }
.pop-big { font-size: 22px; font-weight: 900; color: #ef4444; margin-inline-start: 8px; }
.pop-pills { display: grid; gap: 6px; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1.5px solid; white-space: nowrap; }
.pill-food { color: #ef4444; border-color: #fecaca; background: #fff5f5; }
.pill-shop { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.pill-car { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }

/* Without pinning (mobile, reduced motion): show screen 1 and lay steps flat. */
.story.is-static .story-step { opacity: 1; }
.story.is-static .pop { display: none; }

/* ---------- 3. CALCULATOR ---------- */

.calc-section {
  padding: clamp(80px, 11vw, 150px) var(--section-pad-x);
  background:
    radial-gradient(50% 60% at 80% 40%, rgba(106, 165, 255, 0.22), transparent 70%),
    #f4f8ff;
}

.calc-inner { max-width: 1100px; margin-inline: auto; }
.calc-copy { text-align: center; margin-bottom: 40px; }
.calc-copy .eyebrow { margin-inline: auto; }
.calc-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 auto 14px; max-width: 16ch; }
.calc-lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.7; margin: 0 auto; max-width: 50ch; }

.calc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  background: #fff;
  border-radius: 32px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 40px 90px rgba(10, 87, 224, 0.12), 0 0 0 1px rgba(11, 16, 32, 0.05);
}

.calc-field { margin-bottom: 26px; }
.calc-field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-field-head label { font-weight: 700; font-size: 1.0625rem; }
.calc-field-head output { font-weight: 900; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

.calc-field input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 10px;
  background: linear-gradient(to left, var(--blue-2) 0%, var(--blue-3) var(--fill, 50%), #e6ebf3 var(--fill, 50%));
  outline: none;
  cursor: pointer;
}

.calc-field input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e8ecf3 60%, #c9cfda);
  box-shadow: 0 4px 12px rgba(11, 16, 32, 0.25), 0 0 0 4px #fff;
  transition: transform 0.2s;
}

.calc-field input[type='range']::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e8ecf3 60%, #c9cfda);
  box-shadow: 0 4px 12px rgba(11, 16, 32, 0.25), 0 0 0 4px #fff;
}

.calc-field input[type='range']:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-field input[type='range']:focus-visible { box-shadow: 0 0 0 4px rgba(26, 109, 255, 0.3); }

.calc-result { margin-top: 8px; padding-top: 22px; border-top: 1px solid #eef0f4; }
.calc-result-label { font-weight: 600; color: var(--muted); }
.calc-result-big {
  display: block;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 4px 0 18px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, var(--blue-2), var(--blue) 50%, var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result-row div { background: var(--paper); border-radius: 16px; padding: 12px 16px; }
.calc-result-row span { display: block; font-size: 0.875rem; color: var(--muted); }
.calc-result-row b { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.calc-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.coin-stack { position: relative; width: 150px; height: 100%; }

.coin {
  position: absolute;
  bottom: calc(var(--i) * 12px + 20px);
  left: 50%;
  width: 150px;
  height: 44px;
  margin-left: -75px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 46% 40% at 50% 42%, #f7e6b3 0%, #e6c77f 55%, transparent 56%),
    linear-gradient(180deg, #c99c47 0%, #a8823a 50%, #8a6a2c 100%);
  box-shadow:
    0 6px 0 #8a6a2c,
    0 8px 14px rgba(80, 55, 10, 0.22),
    inset 0 2px 2px rgba(255, 255, 255, 0.6);
}

.coin:nth-child(odd) { filter: brightness(1.04); }

.coin-shadow {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 190px;
  height: 30px;
  margin-left: -95px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(80, 55, 10, 0.25), transparent 70%);
}

.calc-punch {
  text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  margin: 40px auto 0;
  max-width: 36ch;
}

/* ---------- 4. STEPS ---------- */

.steps-section { padding: clamp(80px, 10vw, 140px) var(--section-pad-x); background: #fff; }
.steps { position: relative; max-width: 1100px; margin: 56px auto 0; perspective: 1000px; }

.steps-line {
  position: absolute;
  top: 34px;
  inset-inline: 16%;
  height: 2px;
  background: #eceef3;
}

.steps-line-fill {
  display: block;
  height: 100%;
  background: linear-gradient(to left, var(--blue-3), var(--blue-2));
  transform-origin: right center;
}

.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 12px; transform-style: preserve-3d; }

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(160deg, #3d8bff, var(--blue-2));
  box-shadow: 0 14px 30px rgba(10, 87, 224, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.step h3 { font-size: 1.375rem; font-weight: 800; margin: 0 0 8px; }
.step p { color: var(--muted); line-height: 1.65; margin: 0; }

/* ---------- 5. HIDDEN THINGS (dark) ---------- */

.hidden-section {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 160px) var(--section-pad-x);
  background: linear-gradient(180deg, var(--navy) 0%, #071d4d 100%);
  color: #fff;
}

.hidden-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  top: -300px;
  left: 50%;
  margin-left: -450px;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.35), rgba(106, 165, 255, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

.hidden-grid {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  perspective: 1200px;
}

.hidden-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 34px 32px;
  border-radius: 26px;
  background:
    radial-gradient(400px circle at var(--mx) var(--my), rgba(106, 165, 255, 0.18), transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform-style: preserve-3d;
  will-change: transform;
}

.hidden-num {
  display: inline-block;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #ffffff, #9cc4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  direction: ltr;
}

.hidden-unit { display: inline-block; margin-inline-start: 10px; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.hidden-card h3 { font-size: 1.375rem; font-weight: 800; margin: 22px 0 6px; }
.hidden-card p { color: rgba(255, 255, 255, 0.62); line-height: 1.65; margin: 0; }

/* ---------- 6. FINAL CTA ---------- */

.final-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(100px, 12vw, 170px) var(--section-pad-x);
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #2d7bff 0%, var(--blue-2) 55%, #0846b8 100%);
  color: #fff;
}

.final-title { font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; margin: 0 auto 16px; max-width: 16ch; }
.final-lead { color: rgba(255, 255, 255, 0.7); font-size: clamp(1rem, 1.6vw, 1.1875rem); line-height: 1.7; margin: 0 auto 34px; max-width: 50ch; }
.final-cta .signup { margin-inline: auto; text-align: start; }
.final-cta .signup-note, .final-cta .signup-consent { text-align: center; }

.coin3d {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 34px;
  transform-style: preserve-3d;
  animation: coin-spin 6s linear infinite;
}

.coin3d-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  font-weight: 900;
  color: #8a6a2c;
  background: radial-gradient(circle at 35% 30%, #fff4cf, #e6c77f 45%, #b88d3e 80%);
  box-shadow: inset 0 0 0 6px rgba(168, 130, 58, 0.55), inset 0 0 0 9px rgba(255, 240, 200, 0.5), 0 20px 50px rgba(217, 178, 94, 0.35);
  backface-visibility: hidden;
}

.coin3d-back { transform: rotateY(180deg); }

@keyframes coin-spin {
  from { transform: rotateY(0deg) rotateX(12deg); }
  to { transform: rotateY(360deg) rotateX(12deg); }
}

/* ---------- header tweak on this page ---------- */

.page-home-v2 .btn-nav-cta,
.page-v2 .btn-nav-cta { background: linear-gradient(160deg, #2d7bff, var(--blue-2)); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero3d { padding-top: 104px; min-height: auto; }
  .hero3d-inner { grid-template-columns: 1fr; }
  .hero3d-visual { order: -1; min-height: 340px; margin: -10px -16px 0; }
  .hero3d-scene { inset: 0; }
  .hero3d-copy { text-align: start; }
  .scroll-cue { display: none; }

  .story { padding-top: 80px; }
  .story-inner { grid-template-columns: 1fr; }
  .story-title { max-width: none; }
  .story-stage { margin-top: 20px; }
  .story-step.is-active { transform: none; }
  .pop--a { right: -4px; }

  .calc-card { grid-template-columns: 1fr; }
  .calc-visual { height: 240px; order: -1; }
  .coin { bottom: calc(var(--i) * 7px + 20px); height: 34px; width: 120px; margin-left: -60px; }

  .steps-line { display: none; }
  .steps-list { grid-template-columns: 1fr; gap: 40px; }

  .hidden-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .signup-fields input[type='text'],
  .signup-fields input[type='email'],
  .signup-submit { flex-basis: 100%; }
  .hero3d-visual { min-height: 300px; }
  .scene-caption { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .accent-text, .scene-caption-dot, .scroll-cue-line, .coin3d { animation: none; }
}

.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }

/* Footer in the brand's navy instead of near-black. */
.page-home-v2 .footer,
.page-v2 .footer { background: var(--navy); }

/* The privacy-settings link and button only exist when analytics is configured. */
[data-open-consent][hidden] { display: none !important; }

.calc-more { text-align: center; margin: 18px 0 0; }
.calc-more a { color: var(--blue-2); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(26, 109, 255, 0.25); }
.calc-more a:hover { border-color: var(--blue); }
