/* Clearward — clearward.app
   Palette and type follow the iOS app (App/Design.swift).
   Motion lives in assets/js/motion.js; everything here renders complete without it. */

:root {
  --blue: #2958ef;
  --blue-strong: #1f47d1;
  --blue-bright: #3d6bff;
  --brand: #1f5bff;
  --navy: #152137;
  --navy-2: #1d2c48;
  --muted: #5b6678;
  --muted-2: #8a94a6;
  --pale: #eef3ff;
  --pale-2: #f6f8ff;
  --line: #e4e8ef;
  --soft: #f7f9fc;
  --green: #16875a;
  --green-pale: #e7f5ee;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius: 17px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(21, 33, 55, 0.06), 0 2px 8px rgba(21, 33, 55, 0.04);
  --shadow: 0 2px 4px rgba(21, 33, 55, 0.04), 0 12px 32px -8px rgba(21, 33, 55, 0.14);
  --shadow-lg: 0 4px 10px rgba(21, 33, 55, 0.05), 0 40px 80px -24px rgba(21, 33, 55, 0.32);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.6, 0.5, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-strong); }
button, input, select { font: inherit; color: inherit; }
::selection { background: rgba(41, 88, 239, 0.18); }

:focus-visible { outline: 3px solid rgba(41, 88, 239, 0.45); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nowrap { white-space: nowrap; }

/* SplitText line masks: a little room so descenders aren't clipped mid-animation. */
.sl-mask, .sw-mask { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
h1 { font-size: clamp(46px, 7.4vw, 92px); letter-spacing: -0.048em; line-height: 0.98; }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h3 { font-size: clamp(21px, 2.1vw, 25px); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--blue { color: var(--blue); }

.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); line-height: 1.5; max-width: 34em; }

.section { padding: clamp(88px, 12vw, 150px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 + p { margin-top: 22px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin: 22px auto 0; }

/* ---------- Intro ---------- */

.intro { display: none; }
.motion:not(.intro-seen):not(.motion-failed) .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
}
.intro-cols { position: absolute; inset: 0; display: flex; }
.intro-cols i { flex: 1; background: var(--navy); box-shadow: 0 0 0 1.5px var(--navy); transform-origin: 50% 100%; }
.intro-mark { position: relative; width: min(300px, 58vw); color: #3a6dff; overflow: visible; }
.intro-mark .im-c, .intro-mark .im-w { stroke: currentColor; }
.intro-mark .im-a { fill: currentColor; }

/* Before motion.js takes over, hide only the hero pieces the intro will reveal. */
.motion:not(.motion-failed) .intro-hide { visibility: hidden; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer; position: relative;
  transition: background-color 0.2s, box-shadow 0.3s, color 0.2s;
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 11px; }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(31, 71, 209, 0.3), 0 10px 28px -10px rgba(41, 88, 239, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover { background: var(--blue-strong); color: #fff; box-shadow: 0 1px 2px rgba(31, 71, 209, 0.3), 0 16px 36px -10px rgba(41, 88, 239, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn--secondary { background: var(--pale); color: var(--blue); }
.btn--secondary:hover { background: #e2eaff; color: var(--blue-strong); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(238, 243, 255, 0.9); color: var(--blue); font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(41, 88, 239, 0.12);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(41, 88, 239, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(41, 88, 239, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(41, 88, 239, 0.06); } }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header); gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  color: var(--navy); font-size: 15px; font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--soft); color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6b8fff 60%, #52cd97); transform: scaleX(0); transform-origin: 0 50%; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--soft); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy);
  position: relative; transition: transform 0.25s var(--ease), background-color 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: min(940px, calc(100svh - var(--header)));
  display: flex; align-items: center;
  padding: clamp(40px, 6vw, 72px) 0 clamp(88px, 9vw, 120px);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.orb-1 { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(closest-side, rgba(41, 88, 239, 0.32), rgba(41, 88, 239, 0)); }
.orb-2 { width: 520px; height: 520px; left: -220px; bottom: -240px; background: radial-gradient(closest-side, rgba(143, 176, 255, 0.42), rgba(143, 176, 255, 0)); }
.orb-3 { width: 340px; height: 340px; right: 22%; bottom: 4%; background: radial-gradient(closest-side, rgba(82, 205, 151, 0.22), rgba(82, 205, 151, 0)); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 74% 42%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 60% at 74% 42%, #000 0%, transparent 75%);
  opacity: 0.6;
}
.hero-glow {
  position: absolute; left: 0; top: 0; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 88, 239, 0.14), rgba(41, 88, 239, 0));
  opacity: 0; transition: opacity 0.6s;
}
.hero-glow.is-on { opacity: 1; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(40px, 6vw, 80px);
}
.hero-copy .pill { margin-bottom: 28px; }
.hero-title-wrap { position: relative; }
.hero-title { max-width: 9.2em; }
.hero-title .accent { color: var(--blue); }
.swoosh { position: absolute; left: 0; top: 0; width: 0; height: auto; overflow: visible; pointer-events: none; }
.swoosh path { stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.no-js .swoosh, .motion-failed .swoosh, html:not(.motion) .swoosh { display: none; }
.hero-copy .lede { margin-top: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-assurances {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 36px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 15px; font-weight: 500;
}
.hero-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.hero-assurances svg { width: 18px; height: 18px; color: var(--green); flex: none; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone-stage { position: relative; transform-style: preserve-3d; }

.phone {
  position: relative; width: min(330px, 76vw); aspect-ratio: 0.486; overflow: hidden;
  padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #2a3650, #0d1526 40%, #1a2438);
  box-shadow: var(--shadow-lg), 0 60px 120px -40px rgba(41, 88, 239, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 26px; border-radius: 20px; background: #05080f; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 44px; background: #fff; }
.phone-sheen {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 42%; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) rotate(10deg); mix-blend-mode: soft-light;
}

.float-card {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(228, 232, 239, 0.9); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.float-card strong { display: block; font-size: 22px; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.float-card strong.sm { font-size: 17px; }
.float-card .tag { font-size: 13px; color: var(--muted); margin-top: 2px; }
.float-card--a { left: -96px; top: 7%; }
.float-card--b { right: -84px; bottom: 15%; }
.float-card--b strong { color: var(--green); }
.float-card .row { display: flex; align-items: center; gap: 12px; }
.float-card .icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--green-pale); color: var(--green);
}
.float-card .icon--blue { background: var(--pale); color: var(--blue); }
.float-card .icon svg { width: 20px; height: 20px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid #c3cad8; border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */

.marquee { padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--white); }
.mq-row { overflow: hidden; }
.mq-row + .mq-row { margin-top: clamp(4px, 1vw, 12px); }
.mq-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.mq-track > * { margin-right: clamp(22px, 3vw, 44px); flex: none; }
.mq-track span { font-size: clamp(38px, 6.4vw, 86px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; white-space: nowrap; color: var(--navy); }
.mq-row--outline .mq-track span { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.mq-sep { width: clamp(26px, 3.4vw, 48px); height: clamp(26px, 3.4vw, 48px); fill: none; stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Steps ---------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-line { position: absolute; z-index: 2; top: 50px; left: 48px; width: calc((100% - 40px) * 2 / 3 + 40px); height: 4px; pointer-events: none; }
.steps-line path { fill: none; stroke-width: 2; }
.steps-line-base { stroke: var(--line); stroke-dasharray: 6 8; }
.steps-line-fill { stroke: var(--blue); }
html:not(.motion-ready) .steps-line { display: none; }
.step {
  position: relative; padding: 32px 28px 30px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
}
.step:hover { box-shadow: var(--shadow); border-color: #d6ddea; }
.step-num {
  position: relative; z-index: 3;
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 24px;
  box-shadow: 0 0 0 6px var(--white), 0 8px 18px -6px rgba(41, 88, 239, 0.6);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

.demo { margin-top: auto; padding-top: 22px; }
.demo > * { }
.demo-type, .demo-budget, .demo-horizon { position: relative; }
.demo-type { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); min-height: 104px; }
.demo-field {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 15px;
  box-shadow: 0 0 0 4px rgba(41, 88, 239, 0.08);
}
.demo-label { color: var(--muted); font-size: 13px; font-weight: 500; }
.demo-value { font-weight: 600; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; min-height: 1.3em; }
.caret { width: 2px; height: 1.15em; background: var(--blue); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-parsed {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--green-pale); color: var(--green); font-size: 13px; font-weight: 600;
}
.demo-parsed svg { width: 14px; height: 14px; }

.demo-budget { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); min-height: 104px; }
.budget-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); font-weight: 500; }
.budget-top strong { color: var(--navy); font-size: 17px; letter-spacing: -0.01em; }
.budget-bar { display: flex; gap: 3px; height: 12px; margin: 12px 0; }
.seg { display: block; border-radius: 999px; height: 100%; }
.seg-min { width: 69.7%; background: var(--navy); }
.seg-extra { width: 30.3%; background: linear-gradient(90deg, var(--blue), #6b8fff); position: relative; overflow: hidden; }
.seg-extra::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%); animation: sweep 2.6s ease-in-out 1.6s infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.budget-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.budget-legend span { display: inline-flex; align-items: center; gap: 6px; }
.budget-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; }
.k-min { background: var(--navy); }
.k-extra { background: var(--blue); }

.demo-horizon {
  margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--navy); color: #fff;
  display: flex; align-items: center; gap: 16px; min-height: 104px; overflow: hidden;
}
.demo-horizon::after { content: ""; position: absolute; right: -40px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(closest-side, rgba(41, 88, 239, 0.6), transparent); }
.ring { width: 52px; height: 52px; flex: none; overflow: visible; position: relative; z-index: 1; }
.ring circle { fill: none; stroke-width: 4; }
.ring-base { stroke: rgba(255, 255, 255, 0.14); }
.ring-fill { stroke: #6b8fff; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transform-box: fill-box; }
.ring-check { fill: none; stroke: #52cd97; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demo-horizon small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.62); font-weight: 500; }
.demo-horizon strong { display: inline-block; font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transform-origin: 0 50%; position: relative; z-index: 1; }
.demo-horizon > div { position: relative; z-index: 1; }

/* ---------- Journey (pinned scene) ---------- */

.journey { position: relative; background: linear-gradient(180deg, var(--white) 0%, var(--pale-2) 100%); overflow: hidden; }
.journey-inner { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header) + 24px) 0 40px; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.journey-copy h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 16px; }
.journey-captions { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.jcap-step {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); background: var(--pale); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px;
}
.jcap p { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); line-height: 1.5; max-width: 28em; }
.journey-live .journey-captions { grid-template-areas: "cap"; min-height: 150px; align-items: start; }
.journey-live .jcap { grid-area: cap; opacity: 0; transform: translateY(-12px); transition: opacity 0.2s, transform 0.3s ease-in; }
.journey-live .jcap.is-active { opacity: 1; transform: none; transition: opacity 0.5s 0.18s, transform 0.75s 0.12s var(--ease); }
.journey-live .jcap:not(.is-active) { transform: translateY(-12px); }
.journey-live .jcap.is-active ~ .jcap:not(.is-active) { transform: translateY(18px); }
.journey-live .jcap p { color: var(--navy); font-size: clamp(17px, 1.7vw, 21px); }
.journey-live .jcap[data-phase="3"] .jcap-step { background: var(--green-pale); color: var(--green); }
.journey-rail { margin-top: 26px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 420px; }
.journey-rail i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #52cd97); transform: scaleX(0); transform-origin: 0 50%; border-radius: 4px; }
.journey-note { margin-top: 18px; font-size: 13px; color: var(--muted-2); }

.journey-board {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: var(--shadow-lg); padding: clamp(18px, 2.4vw, 30px);
}
.jb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.jb-head small { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.jb-total strong {
  display: block; font-size: clamp(38px, 4.8vw, 62px); letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--navy); transition: color 0.5s; transform-origin: 0 60%;
}
.journey-board.is-done .jb-total strong { color: var(--green); }
.jb-month { text-align: right; }
.jb-month strong { font-size: clamp(16px, 1.6vw, 20px); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.jb-chart { margin-top: 16px; }
.jb-svg { width: 100%; height: auto; overflow: visible; }
.jb-grid { stroke: var(--line); stroke-width: 1; }
.jb-axis { font-size: 11px; fill: var(--muted-2); font-family: var(--font); }
.jb-ghost { fill: none; stroke: #ccd5e6; stroke-width: 2; stroke-dasharray: 4 6; }
.jb-line { fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.jb-dot { fill: var(--blue); stroke: #fff; stroke-width: 3; transition: fill 0.4s; }
.jb-halo { fill: rgba(41, 88, 239, 0.16); transition: fill 0.4s; }
.is-done .jb-dot { fill: var(--green); }
.is-done .jb-halo { fill: rgba(22, 135, 90, 0.18); }
.jb-marker { opacity: 0; transition: opacity 0.4s; }
.jb-marker.is-on { opacity: 1; }
.jb-marker-line { stroke: var(--green); stroke-opacity: 0.4; stroke-dasharray: 3 4; }
.jb-marker-dot { fill: #fff; stroke: var(--green); stroke-width: 3; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform 0.5s var(--spring); }
.jb-marker.is-on .jb-marker-dot { transform: scale(1); }
.jb-marker-label { font-size: 12px; font-weight: 600; fill: var(--green); font-family: var(--font); }

.jb-debts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.jb-debts li {
  position: relative; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line);
  transition: background-color 0.45s, border-color 0.45s;
}
.jb-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; transition: opacity 0.4s; }
.jb-name em { font-style: normal; color: var(--muted-2); font-weight: 500; margin-left: 6px; }
.jb-amt { font-variant-numeric: tabular-nums; }
.jb-bar { margin-top: 8px; height: 6px; border-radius: 6px; background: #e3e8f2; overflow: hidden; transition: opacity 0.4s; }
.jb-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), #6b8fff); transform-origin: 0 50%; }
.jb-done {
  position: absolute; right: 12px; top: 50%; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
  opacity: 0; transform: translateY(-50%) scale(0.6); transition: opacity 0.3s, transform 0.5s var(--spring);
  box-shadow: 0 6px 16px -6px rgba(22, 135, 90, 0.7);
}
.jb-done svg { width: 14px; height: 14px; }
.jb-debts li.is-paid { background: var(--green-pale); border-color: rgba(22, 135, 90, 0.22); }
.jb-debts li.is-paid .jb-done { opacity: 1; transform: translateY(-50%) scale(1); }
.jb-debts li.is-paid .jb-row, .jb-debts li.is-paid .jb-bar { opacity: 0.3; }
.jb-burst { position: absolute; left: clamp(70px, 9vw, 120px); top: clamp(56px, 6vw, 76px); width: 0; height: 0; pointer-events: none; z-index: 5; }
.jb-burst i { position: absolute; left: 0; top: 0; display: block; }

/* ---------- Calculator ---------- */

.calc {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 32px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.calc-inputs { padding: clamp(24px, 3.4vw, 40px); border-right: 1px solid var(--line); }
.calc-output { padding: clamp(24px, 3.4vw, 40px); background: linear-gradient(180deg, var(--pale-2), var(--white) 70%); display: flex; flex-direction: column; }

.calc-label { display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.calc-block + .calc-block { margin-top: 30px; }
fieldset.calc-block { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }

.debt-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin: -8px 0 0; table-layout: fixed; }
.debt-table th:nth-child(1) { width: 32%; }
.debt-table th:nth-child(5) { width: 40px; }
.debt-table th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); padding: 0 4px 2px;
}
.debt-table td { padding: 0 3px; }
.debt-table td:first-child { padding-left: 0; }
.debt-table td:last-child { padding-right: 0; }
.field {
  width: 100%; height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--white); font-size: 15px; font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s; font-variant-numeric: tabular-nums;
}
.field:hover { border-color: #cfd6e2; }
.field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41, 88, 239, 0.14); }
.field[aria-invalid="true"] { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
.icon-btn {
  width: 36px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--muted-2); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--soft); color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; }
.add-debt {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px;
  background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 15px; cursor: pointer;
}
.add-debt:hover { color: var(--blue-strong); }
.add-debt[disabled] { color: var(--muted-2); cursor: not-allowed; }
.add-debt svg { width: 18px; height: 18px; }

.slider-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider-value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.slider-value small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.slider-hint { font-size: 14px; color: var(--muted); margin-top: 6px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 10px 0 0; cursor: pointer;
  --pct: 20%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) var(--pct), var(--line) var(--pct));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; margin-top: -10px;
  background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(21, 33, 55, 0.08), 0 3px 10px rgba(21, 33, 55, 0.22);
  transition: transform 0.15s;
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 1px rgba(21, 33, 55, 0.08), 0 3px 10px rgba(21, 33, 55, 0.22);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(41, 88, 239, 0.25), 0 3px 10px rgba(21, 33, 55, 0.22); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: block; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
  cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.segmented label:hover { transform: translateY(-2px); }
.segmented label strong { display: block; font-size: 15px; }
.segmented label span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.segmented input:checked + label { border-color: var(--blue); background: var(--pale-2); box-shadow: 0 0 0 1px var(--blue); }
.segmented input:focus-visible + label { box-shadow: 0 0 0 1px var(--blue), 0 0 0 5px rgba(41, 88, 239, 0.2); }

.pay-now { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pay-now li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; font-size: 15px; }
.pay-now li + li { border-top: 1px solid var(--line); }
.pay-now strong { font-variant-numeric: tabular-nums; font-size: 16px; letter-spacing: -0.01em; }
.focus-tag {
  display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--pale); color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px;
}

.horizon { border-radius: 22px; padding: 26px 28px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.horizon::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(41, 88, 239, 0.55), transparent);
}
.horizon-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 1; }
.horizon-top span { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85);
}
.horizon-date { font-size: clamp(38px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.04em; margin-top: 14px; position: relative; z-index: 1; line-height: 1.05; }
.horizon-sub { margin-top: 10px; color: rgba(255, 255, 255, 0.7); font-size: 15px; position: relative; z-index: 1; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.stat { padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.stat small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.stat strong { display: block; font-size: 24px; letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat strong.good { color: var(--green); }

.chart-card { margin-top: 14px; padding: 18px 18px 12px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-head strong { font-size: 15px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; background: var(--blue); }
.legend i.dash { background: repeating-linear-gradient(90deg, #64708a 0 4px, transparent 4px 7px); }
.chart { position: relative; margin-top: 10px; flex: 1; min-height: 220px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chart-tip {
  position: absolute; top: 0; z-index: 2; pointer-events: none; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 10px;
  white-space: nowrap; opacity: 0; transition: opacity 0.15s; box-shadow: var(--shadow);
}
.chart-tip.is-visible { opacity: 1; }
.chart-tip b { font-weight: 600; }

.payoff-order { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.payoff-order li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 14px; padding: 10px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line);
}
.payoff-order li span:first-child { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.payoff-order li em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.payoff-order .n {
  width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center;
  background: var(--pale); color: var(--blue); font-size: 12px; font-weight: 700;
}
.calc-note { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; line-height: 1.5; }
.calc-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--green); }
.calc-warning { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff4e5; color: #8a4b00; font-size: 14px; display: none; }
.calc-warning.is-visible { display: block; }

/* ---------- Features ---------- */

.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center;
}
.feature + .feature { margin-top: clamp(104px, 13vw, 176px); }
.feature--flip .feature-media { order: -1; }
.feature-copy .eyebrow { margin-bottom: 16px; }
.feature-copy h2 { font-size: clamp(32px, 4vw, 50px); }
.feature-copy .lede { margin-top: 20px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--navy); }
.checks li svg { width: 22px; height: 22px; flex: none; color: var(--blue); margin-top: 1px; }
.checks li span { color: var(--muted); }
.checks li b { font-weight: 600; color: var(--navy); }

.feature-media { position: relative; display: flex; justify-content: center; }
.media-stage {
  position: relative; width: 100%; padding: clamp(32px, 5vw, 64px); border-radius: 36px;
  background: linear-gradient(160deg, var(--pale) 0%, #f5f8ff 55%, #e8efff 100%);
  display: flex; justify-content: center; overflow: hidden; perspective: 1000px;
}
.media-stage::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(41, 88, 239, 0.16) 1px, transparent 1px);
  background-size: 20px 20px; opacity: 0.7;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.media-stage--navy { background: radial-gradient(120% 90% at 80% 0%, #24366a 0%, var(--navy) 50%, #0e182b 100%); }
.media-stage--navy::before { background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px); }
.screen {
  position: relative; z-index: 1; width: min(420px, 100%); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); background: #fff; border: 1px solid rgba(228, 232, 239, 0.8);
  will-change: transform;
}
.screen img { width: 100%; height: auto; }
.media-caption { position: absolute; z-index: 2; left: 20px; bottom: 18px; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.8); padding: 4px 10px; border-radius: 999px; }
.media-stage--navy .media-caption { color: rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); }

/* What-if widget */
.whatif {
  --t: 1;
  position: absolute; z-index: 3; right: clamp(14px, 4%, 32px); bottom: clamp(14px, 6%, 36px); width: min(276px, 72%);
  background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 13px; box-shadow: var(--shadow-lg);
}
.whatif-q { font-size: 14px; font-weight: 600; color: var(--navy); }
.whatif-q b { color: var(--blue); font-variant-numeric: tabular-nums; }
.whatif-slider { position: relative; height: 18px; margin: 10px 0 8px; }
.whatif-slider i { position: absolute; display: block; }
.wi-track, .wi-fill { left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.wi-track { background: var(--line); }
.wi-fill { background: var(--blue); transform: scaleX(var(--t)); transform-origin: 0 50%; }
.wi-thumb { top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(21, 33, 55, 0.1), 0 3px 8px rgba(21, 33, 55, 0.25); left: calc(var(--t) * (100% - 18px)); }
.whatif-a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 13px; color: var(--muted); }
.whatif-a s { color: var(--muted-2); }
.whatif-a strong { display: inline-block; color: var(--green); font-size: 15px; font-variant-numeric: tabular-nums; transform-origin: 0 50%; }
.whatif.is-same s { display: none; }
.whatif.is-same strong { color: var(--navy); }

/* On-device card */
.ai-card {
  position: relative; z-index: 1; width: min(420px, 100%); border-radius: 24px; padding: 24px; overflow: hidden;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ai-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 14%; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(143, 176, 255, 0), rgba(143, 176, 255, 0.28), rgba(143, 176, 255, 0));
  border-bottom: 1px solid rgba(143, 176, 255, 0.5);
}
.ai-card h4 { color: #fff; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.ai-card h4 svg { width: 20px; height: 20px; color: #8fb0ff; }
.ai-rows { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ai-rows li {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); font-size: 14px; min-height: 46px;
}
.ai-rows li.is-pending::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 88px; height: 22px; margin-top: -11px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%; animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ai-rows .merchant { color: rgba(255, 255, 255, 0.92); font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-rows .cat { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(143, 176, 255, 0.16); color: #b7cbff; }
.ai-rows .cat--rule { background: rgba(82, 205, 151, 0.14); color: #8fe3bd; }
.ai-rows .cat--none { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.ai-foot { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.6); display: flex; gap: 8px; align-items: center; }
.ai-foot svg { width: 16px; height: 16px; color: #8fe3bd; flex: none; }

/* ---------- Privacy ---------- */

.privacy-wrap { background: var(--white); }
.privacy-section { background: var(--navy); color: #fff; overflow: hidden; will-change: clip-path; }
.privacy-section::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 1200px; height: 1200px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(41, 88, 239, 0.38), transparent 70%); pointer-events: none;
}
.privacy-section .wrap { position: relative; }
.privacy-section h2 { color: #fff; }
.privacy-section .eyebrow { color: #8fb0ff; }
.privacy-section .lede { color: rgba(255, 255, 255, 0.72); }

.vault { position: relative; width: 300px; height: 300px; margin: -40px auto 8px; display: grid; place-items: center; }
.vault-core {
  position: relative; z-index: 2; width: 112px; height: 112px; border-radius: 32px;
  display: grid; place-items: center; background: linear-gradient(160deg, #4675ff, var(--blue-strong));
  box-shadow: 0 30px 60px -20px rgba(41, 88, 239, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.vault-core svg { width: 52px; height: 52px; color: #fff; }
.vault-ring {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border-radius: 36px; border: 1.5px solid rgba(143, 176, 255, 0.55); opacity: 0;
}
.vault-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vault-orbit circle:first-child { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; stroke-dasharray: 2 7; }
.orbit-dot { fill: #8fb0ff; }
.orbit-dot--b { fill: #52cd97; }

.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.privacy-item {
  padding: 30px; border-radius: 24px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.privacy-item:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); transform: translateY(-4px); }
.privacy-item svg { width: 28px; height: 28px; color: #8fb0ff; margin-bottom: 18px; }
.privacy-item h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.privacy-item p { color: rgba(255, 255, 255, 0.66); font-size: 15px; }
.never-list {
  margin: clamp(40px, 5vw, 56px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0;
}
.never-list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.82);
}
.never-list svg { width: 14px; height: 14px; color: #ff9b9b; }

/* ---------- Honesty ---------- */

.honest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.honest {
  padding: 28px 30px; border-radius: 24px; border: 1px solid var(--line); background: var(--white);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.honest:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.honest .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--pale); color: var(--blue); display: grid; place-items: center; }
.honest .ico svg { width: 22px; height: 22px; }
.honest h3 { font-size: 19px; margin-bottom: 6px; }
.honest p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--navy); transition: color 0.2s;
}
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white); flex: none; position: relative;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, transform 0.5s var(--ease);
}
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--navy);
  transform: translate(-50%, -50%);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.4s var(--ease); }
.faq details[open]:not(.is-closing) summary .plus { background: var(--blue); transform: rotate(180deg); box-shadow: none; }
.faq details[open]:not(.is-closing) summary .plus::before, .faq details[open]:not(.is-closing) summary .plus::after { background: #fff; }
.faq details[open]:not(.is-closing) summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 56px 26px 0; color: var(--muted); font-size: 16px; }
.faq-more { text-align: center; margin: 36px auto 0; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  position: relative; border-radius: 40px; overflow: hidden; padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 80px);
  background: var(--navy); color: #fff; text-align: center; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(41, 88, 239, 0.55), transparent 70%),
    radial-gradient(500px 300px at 90% 110%, rgba(41, 88, 239, 0.4), transparent 70%);
}
.cta-spot {
  position: absolute; left: 0; top: 0; z-index: -1; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(107, 143, 255, 0.32), rgba(107, 143, 255, 0));
  opacity: 0; transition: opacity 0.5s;
}
.cta-spot.is-on { opacity: 1; }
.cta-bars { position: absolute; z-index: -1; inset: auto 0 0 0; height: 58%; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 1.4vw, 16px); padding: 0 8%; }
.cta-bars i { flex: 1; max-width: 96px; border-radius: 16px 16px 0 0; background: rgba(143, 176, 255, 0.12); }
.cta-bars i:nth-child(1) { height: 100%; }
.cta-bars i:nth-child(2) { height: 86%; }
.cta-bars i:nth-child(3) { height: 72%; }
.cta-bars i:nth-child(4) { height: 58%; }
.cta-bars i:nth-child(5) { height: 44%; }
.cta-bars i:nth-child(6) { height: 30%; }
.cta-bars i:nth-child(7) { height: 14%; background: rgba(61, 107, 255, 0.6); }
.cta-inner { position: relative; }
.cta h2 { color: #fff; font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.045em; max-width: 12em; margin: 0 auto; }
.cta p { color: rgba(255, 255, 255, 0.72); margin: 24px auto 0; max-width: 32em; font-size: clamp(17px, 1.6vw, 20px); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px; min-height: 56px; border-radius: 14px;
  background: #fff; color: var(--navy); text-align: left; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5);
}
.store-soon svg { width: 26px; height: 26px; }
.store-soon small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); line-height: 1.2; }
.store-soon strong { display: block; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.cta .cta-fine { margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Footer ---------- */

.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.footer-brand img { height: 24px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 26em; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--navy); font-size: 15px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 14px;
}

/* ---------- Document pages (privacy, support) ---------- */

.doc-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); background: linear-gradient(180deg, var(--pale-2), var(--white)); border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.doc-hero .lede { margin-top: 18px; }
.doc-meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); padding-top: clamp(40px, 6vw, 64px); }
main > .doc-layout:last-child { margin-bottom: clamp(80px, 10vw, 120px); }
.toc { position: sticky; top: 100px; align-self: start; }
.toc h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--navy); border-left-color: var(--muted-2); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin: 56px 0 16px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 32px 0 10px; }
.prose p, .prose li { color: #3d485c; font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 14px 0; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--navy); }
.prose code { font-family: var(--mono); font-size: 14px; background: var(--soft); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--navy); }
.prose pre { background: var(--navy); color: #e6ecff; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; }
.callout {
  margin: 24px 0; padding: 20px 22px; border-radius: 16px; background: var(--pale); color: var(--navy);
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
}
.callout svg { width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
.callout p { color: var(--navy) !important; font-size: 16px !important; }
.callout--green { background: var(--green-pale); }
.callout--green svg { color: var(--green); }

/* ---------- 404 ---------- */

.lost { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .big { font-size: clamp(96px, 18vw, 180px); font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--pale); -webkit-text-stroke: 2px var(--blue); }
.lost h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 16px; }
.lost p { margin: 16px auto 0; color: var(--muted); max-width: 28em; }
.lost .hero-actions { justify-content: center; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .float-card--a { left: -40px; }
  .float-card--b { right: -36px; }
}

@media (max-width: 1040px) {
  .calc { grid-template-columns: 1fr; }
  .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--header); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(21, 33, 55, 0.25);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links a { display: block; padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: transparent; color: var(--blue); }
  .nav-links li:last-child a { border-bottom: 0; }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .float-card--a { left: 0; top: 8%; }
  .float-card--b { right: 0; bottom: 10%; }
  .scroll-cue { display: none; }

  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }

  .journey-grid { grid-template-columns: 1fr; gap: 20px; }
  .journey-inner { padding: calc(var(--header) + 8px) 0 20px; }
  .journey-live .journey-copy .eyebrow, .journey-live .journey-note { display: none; }
  .journey-live .journey-copy h2 { margin-top: 0; font-size: clamp(26px, 6.4vw, 34px); }
  .journey-live .journey-captions { margin-top: 14px; min-height: 104px; }
  .journey-live .jcap-step { margin-bottom: 6px; }
  .journey-live .journey-rail { margin-top: 10px; max-width: none; }

  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature-media { order: 0; }
  .feature-media { margin-top: 8px; }
  .honest-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .privacy-grid { grid-template-columns: 1fr; }
  .float-card { padding: 11px 13px; border-radius: 14px; }
  .float-card strong { font-size: 17px; }
  .float-card strong.sm { font-size: 15px; }
  .float-card .tag { font-size: 12px; }
  .float-card .icon { width: 32px; height: 32px; }
  .segmented { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 20px; }
  .field { padding: 0 10px; font-size: 16px; }
  .debt-table, .debt-table tbody { display: block; margin: 0; }
  .debt-table thead { display: none; }
  .debt-table tr {
    display: grid; grid-template-columns: 1fr 1fr 1fr 36px; gap: 8px; padding: 12px; margin-bottom: 10px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--soft);
  }
  .debt-table td { display: block; padding: 0 !important; }
  .debt-table td:nth-child(1) { grid-column: 1 / 4; }
  .debt-table td:nth-child(5) { grid-column: 4; grid-row: 1; }
  .debt-table td:nth-child(n + 2):nth-child(-n + 4)::before {
    content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
  }
  .horizon-top span:first-child { font-size: 15px; }
  .faq summary { font-size: 17px; }
  .faq .answer p { padding-right: 0; }
  .cta { border-radius: 28px; }
  .footer-bottom { flex-direction: column; }

  .journey-board { padding: 14px; border-radius: 22px; }
  .jb-total strong { font-size: 34px; }
  .jb-chart { margin-top: 8px; }
  .jb-debts { gap: 6px; margin-top: 10px; }
  .jb-debts li { padding: 8px 12px; border-radius: 12px; }
  .jb-row { font-size: 13px; }
  .jb-name em { display: none; }
  .jb-bar { margin-top: 6px; height: 5px; }
  .jb-done { padding: 4px 10px; font-size: 11px; }
  .journey-live .jcap p { font-size: 15px; }

  .vault { width: 240px; height: 240px; margin-top: -24px; }
  .whatif { width: min(240px, 80%); padding: 12px 14px; }
}
