/* ==========================================================================
   Ai Broker Solutions — shared design system (v2, 2026-07 redesign)
   Edit styling here once; every page picks it up.
   Brand: deep navy #0B1D33 · teal #1D6F6A · stone #6B7280 · gold #C9A66B
   Fonts: Inter (400–800)
   Legacy pages (blog / changelog / privacy / terms / sample-report /
   thank-you) depend on: nav*, .logo*, .btn*, .container, .doc*, footer*,
   .limits — keep those selectors working.
   ========================================================================== */

:root {
  --navy: #0B1D33;
  --navy-deep: #071426;
  --navy-2: #10294a;
  --teal: #1D6F6A;
  --teal-dark: #155350;
  --teal-bright: #2BA79A;
  --teal-glow: rgba(43, 167, 154, 0.35);
  --steel: #5B6572;   /* stone gray — keeps the old variable name so every page works */
  --gold: #C9A66B;
  --cool: #E2E8EF;
  --light: #F2F5F8;
  --warm: #FAF9F7;
  --white: #FFFFFF;
  --red: #B23A2E;
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 2px 8px rgba(11, 29, 51, 0.06);
  --shadow-lift: 0 20px 48px rgba(11, 29, 51, 0.12);
  --shadow-pop: 0 32px 80px rgba(11, 29, 51, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

a { color: var(--teal); }
::selection { background: rgba(43, 167, 154, 0.25); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14.5px;
  text-decoration: none; cursor: pointer; border: none; line-height: 1.3;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
              background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(180deg, var(--teal-bright) 0%, var(--teal) 85%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(29, 111, 106, 0.30), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(29, 111, 106, 0.40), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--cool); box-shadow: var(--shadow-soft); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; border-radius: 14px; }
.text-link { color: var(--teal); font-weight: 600; font-size: 14px; text-decoration: none; }
.text-link:hover { color: var(--teal-dark); }

/* ---- Nav ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
nav.scrolled { border-bottom-color: var(--cool); background: rgba(255, 255, 255, 0.92); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; max-width: var(--maxw); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 10px; }
.logo-text {
  font-family: 'Inter', sans-serif; font-weight: 700;
  color: var(--navy); line-height: 1.05; font-size: 15px; letter-spacing: -0.01em;
}
.logo-text span {
  display: block; font-weight: 500; color: var(--steel);
  font-size: 10.5px; letter-spacing: 0.1em;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--navy); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta { padding: 10px 20px; font-size: 13.5px; border-radius: 10px; }
.nav-links a.nav-cta { color: var(--white); }
.nav-links a.nav-cta:hover { color: var(--white); }
.nav-dl { font-weight: 600; }
.hamburger { display: none; }

/* Mobile menu (opened by the hamburger) */
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 16px; right: 16px; z-index: 99;
  background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 16px; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 13px 16px; border-radius: 10px; text-decoration: none;
  color: var(--navy); font-weight: 600; font-size: 15px;
}
.mobile-menu a:hover { background: var(--light); color: var(--teal); }
.mobile-menu .btn { justify-content: center; margin-top: 8px; }

/* ---- Eyebrow / section headings ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; background: rgba(29, 111, 106, 0.08);
  border: 1px solid rgba(29, 111, 106, 0.22); border-radius: 100px;
  color: var(--teal); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 26px;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--teal-bright); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--teal-glow);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 3.8vw, 44px); color: var(--navy); margin-bottom: 20px; max-width: 780px; font-weight: 700; }
.section-lead { font-size: 17.5px; color: var(--steel); max-width: 680px; margin-bottom: 56px; }
section.block { padding: 104px 0; }
.center { text-align: center; }
.center .section-title, .center .section-lead { margin-left: auto; margin-right: auto; }

/* ---- Hero ---- */
.hero {
  padding: 168px 0 110px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(43, 167, 154, 0.14), transparent 60%),
    radial-gradient(900px 480px at -10% 25%, rgba(201, 166, 107, 0.10), transparent 55%),
    linear-gradient(180deg, var(--warm) 0%, var(--light) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,29,51,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,29,51,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 480px at 70% 10%, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 70% 10%, rgba(0,0,0,0.9), transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 22px; color: var(--navy); font-weight: 800; }
.hero h1 .accent {
  color: var(--teal);
  background: linear-gradient(120deg, var(--teal) 30%, var(--teal-bright) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 18.5px; color: var(--steel); margin-bottom: 32px; max-width: 560px; }
.hero .lead strong { color: var(--navy); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--steel); margin-top: 18px; }
.hero-note strong { color: var(--navy); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--steel); }
.hero-points svg { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; }
.hero-visual { position: relative; }

/* ---- Animated app mockup ---- */
.app-win {
  background: var(--white); border: 1px solid var(--cool); border-radius: 20px;
  box-shadow: var(--shadow-pop); overflow: hidden; position: relative;
  animation: appFloat 7s ease-in-out infinite;
}
@keyframes appFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.app-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: linear-gradient(180deg, #FDFDFC, #F5F6F7); border-bottom: 1px solid var(--cool);
}
.app-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cool); }
.app-bar .dot:nth-child(1) { background: #E8A5A0; }
.app-bar .dot:nth-child(2) { background: #EFD49B; }
.app-bar .dot:nth-child(3) { background: #A8D5B4; }
.app-bar .app-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--steel); }
.app-bar .app-status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--teal); letter-spacing: 0.06em; text-transform: uppercase;
}
.app-body { padding: 18px 20px 20px; }
.app-rows { list-style: none; }
.app-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 9px 4px; border-bottom: 1px solid var(--light); font-size: 12.5px;
}
.app-row:last-child { border-bottom: none; }
.app-row .m { color: var(--navy); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .a { color: var(--steel); font-variant-numeric: tabular-nums; }
.chip {
  font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap;
  opacity: 0; transform: translateX(10px);
  animation: chipIn 9s var(--ease-out) infinite;
}
.chip.income { background: rgba(11,29,51,0.08); color: var(--navy); }
.chip.committed { background: rgba(29,111,106,0.12); color: var(--teal-dark); }
.chip.discretionary { background: rgba(91,101,114,0.12); color: var(--steel); }
.chip.flag { background: rgba(178,58,46,0.10); color: var(--red); }
@keyframes chipIn {
  0%, 6% { opacity: 0; transform: translateX(10px); }
  12%, 86% { opacity: 1; transform: translateX(0); }
  94%, 100% { opacity: 0; transform: translateX(10px); }
}
.app-row:nth-child(1) .chip { animation-delay: 0.30s; }
.app-row:nth-child(2) .chip { animation-delay: 0.55s; }
.app-row:nth-child(3) .chip { animation-delay: 0.80s; }
.app-row:nth-child(4) .chip { animation-delay: 1.05s; }
.app-row:nth-child(5) .chip { animation-delay: 1.30s; }
.app-row:nth-child(6) .chip { animation-delay: 1.55s; }
.app-summary {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center;
  opacity: 0; animation: sumIn 9s var(--ease-out) infinite; animation-delay: 1.9s;
}
@keyframes sumIn {
  0%, 4% { opacity: 0; transform: translateY(8px); }
  10%, 86% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(8px); }
}
.app-summary .k { font-size: 15px; font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.app-summary .k.hl { color: #7FD6CB; }
.app-summary .l { font-size: 9.5px; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.app-progress { height: 4px; border-radius: 4px; background: var(--light); overflow: hidden; margin: 12px 0 2px; }
.app-progress i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform-origin: left; animation: prog 9s var(--ease-out) infinite;
}
@keyframes prog {
  0% { transform: scaleX(0); }
  20% { transform: scaleX(1); }
  90% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0.4; }
}

/* Floating badges around the mockup */
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--cool); border-radius: 14px;
  box-shadow: var(--shadow-lift); padding: 11px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--navy); white-space: nowrap;
}
.float-chip svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.float-chip.fc-1 { top: -46px; left: -10px; animation: appFloat 6s ease-in-out infinite reverse; }
.float-chip.fc-2 { bottom: -46px; right: -10px; animation: appFloat 8s ease-in-out infinite; }
.float-chip .sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--steel); }

/* ---- Bank marquee ---- */
.bankband { padding: 34px 0; border-top: 1px solid var(--cool); border-bottom: 1px solid var(--cool); background: var(--white); overflow: hidden; }
.bankband p { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bank-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border: 1px solid var(--cool); border-radius: 100px;
  font-size: 13.5px; font-weight: 600; color: var(--navy); background: var(--warm);
}
.bank-chip svg { width: 14px; height: 14px; color: var(--teal); }

/* ---- Trust band (dark strip of key facts) ---- */
.statband { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%); color: var(--white); padding: 58px 0; position: relative; overflow: hidden; }
.statband::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-bright), transparent); opacity: 0.7; }
.statband-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { display: flex; gap: 15px; align-items: flex-start; text-align: left; }
.stat .t-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px;
  background: rgba(43,167,154,0.14); border: 1px solid rgba(43,167,154,0.35); color: #7FD6CB;
  display: inline-flex; align-items: center; justify-content: center;
}
.stat .t-icon svg { width: 21px; height: 21px; }
.stat .num { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16.5px; color: var(--white); line-height: 1.25; }
.stat .lbl { font-size: 13px; color: rgba(255,255,255,0.68); margin-top: 5px; }

/* ---- Cards ---- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card {
  padding: 32px 30px; background: var(--white); border: 1px solid var(--cool);
  border-radius: var(--radius); text-align: left; box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.card:hover { border-color: rgba(29,111,106,0.45); transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; color: var(--navy); font-weight: 700; }
.card p { font-size: 14.5px; color: var(--steel); }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: var(--white);
  font-weight: 700; font-size: 16px; margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(29,111,106,0.30);
}
.card-icon { width: 42px; height: 42px; color: var(--teal); margin-bottom: 18px; }
.flag-card { border-left: 3px solid var(--teal); }
.flag-card .card-icon { width: 28px; height: 28px; margin-bottom: 12px; color: var(--gold); }
.flag-card h3 { font-size: 16.5px; }
.flag-card p { font-size: 13.5px; }
.value-card { text-align: left; }
.value-icon {
  width: 50px; height: 50px; border-radius: 15px;
  background: linear-gradient(135deg, var(--teal), var(--teal-bright)); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(29,111,106,0.28);
}
.value-icon svg { width: 23px; height: 23px; }

/* ---- Steps with connector ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; counter-reset: step; }
.steps::before {
  content: ''; position: absolute; top: 53px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--cool) 0 8px, transparent 8px 16px);
}
.steps .card { position: relative; z-index: 1; }

/* ---- Feature grid ---- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius);
  padding: 30px 28px; text-align: left; box-shadow: var(--shadow-soft); position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(29,111,106,0.4); }
.feat::after {
  content: ''; position: absolute; top: 0; left: 28px; right: auto; width: 44px; height: 3px;
  border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  opacity: 0; transition: opacity 0.3s ease;
}
.feat:hover::after { opacity: 1; }
.feat .f-icon {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 18px;
  background: rgba(29,111,106,0.09); border: 1px solid rgba(29,111,106,0.18); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
}
.feat .f-icon svg { width: 21px; height: 21px; }
.feat h3 { font-size: 17px; margin-bottom: 9px; font-weight: 700; }
.feat p { font-size: 14px; color: var(--steel); }

/* ---- Dark section ---- */
.dark { background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%); color: var(--white); position: relative; overflow: hidden; }
.dark::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.dark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 85% 15%, rgba(43,167,154,0.12), transparent 65%);
}
.dark .container { position: relative; z-index: 1; }
.dark .section-title { color: var(--white); }
.dark .section-lead { color: rgba(255,255,255,0.75); }

/* ---- Comparison table ---- */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.compare th, .compare td { padding: 18px 22px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--cool); }
.compare thead th { font-weight: 700; font-size: 13.5px; color: var(--navy); background: var(--light); text-transform: uppercase; letter-spacing: 0.04em; }
.compare thead th.us { color: var(--teal); }
.compare td.row-label { color: var(--steel); font-weight: 500; }
.compare td.them { color: var(--steel); }
.compare td.us { color: var(--navy); font-weight: 600; background: rgba(29,111,106,0.035); }
.compare tr:last-child td { border-bottom: none; }

/* ---- Privacy split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.split-card { border-radius: var(--radius); padding: 34px; }
.split-card.them { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); }
.split-card.us { background: rgba(29,111,106,0.20); border: 1px solid rgba(105,190,183,0.45); box-shadow: 0 0 60px rgba(43,167,154,0.12) inset; }
.split-card h3 { font-size: 18px; color: var(--white); margin-bottom: 18px; }
.split-card ul { list-style: none; }
.split-card li { display: flex; gap: 12px; padding: 9px 0; font-size: 14px; color: rgba(255,255,255,0.85); }
.split-card .mark { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.split-card.us .mark { color: #7FD6CB; }
.split-card.them .mark { color: #d98a8a; }

/* ---- Calculator ---- */
.calc { background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius); padding: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow-lift); }
.calc-controls label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin: 20px 0 8px; }
.calc-controls label:first-child { margin-top: 0; }
.calc-controls input[type=range] { width: 100%; accent-color: var(--teal); cursor: pointer; }
.calc-controls .val { color: var(--teal); font-weight: 800; }
.calc-result { background: linear-gradient(150deg, var(--navy-deep), var(--navy-2)); color: var(--white); border-radius: 16px; padding: 34px; text-align: center; position: relative; overflow: hidden; }
.calc-result::before { content: ''; position: absolute; inset: 0; background: radial-gradient(300px 180px at 80% 0%, rgba(43,167,154,0.22), transparent 70%); }
.calc-result > * { position: relative; }
.calc-result .big { font-weight: 800; font-size: 46px; color: var(--gold); line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-result .big.sub { font-size: 32px; margin-top: 16px; color: #7FD6CB; }
.calc-result .cap { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 6px; }

/* ---- Demo ---- */
.demo-box { background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius); padding: 30px; max-width: 880px; margin: 0 auto; box-shadow: var(--shadow-pop); }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.demo-timer { font-weight: 800; color: var(--teal); font-size: 15px; font-variant-numeric: tabular-nums; }
.demo-rows { list-style: none; }
.demo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 11px 4px; border-bottom: 1px solid var(--light); font-size: 14px; }
.demo-row:last-child { border-bottom: none; }
.demo-merchant { color: var(--navy); font-weight: 500; }
.demo-amt { color: var(--steel); font-variant-numeric: tabular-nums; }
.demo-cat { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 100px; opacity: 0; transform: translateX(8px); transition: all 0.3s var(--ease-out); white-space: nowrap; }
.demo-cat.show { opacity: 1; transform: translateX(0); }
.demo-cat.committed { background: rgba(29,111,106,0.12); color: var(--teal-dark); }
.demo-cat.discretionary { background: rgba(91,101,114,0.12); color: var(--steel); }
.demo-cat.income { background: rgba(11,29,51,0.08); color: var(--navy); }
.demo-cat.flag { background: rgba(178,58,46,0.10); color: var(--red); }
.demo-summary { display: none; margin-top: 22px; padding-top: 22px; border-top: 2px solid var(--cool); grid-template-columns: repeat(3,1fr); gap: 18px; text-align: center; }
.demo-summary.show { display: grid; animation: fadeUp 0.5s var(--ease-out); }
.demo-summary .s-num { font-weight: 800; font-size: 23px; color: var(--navy); }
.demo-summary .s-num.teal { color: var(--teal); }
.demo-summary .s-lbl { font-size: 12px; color: var(--steel); margin-top: 4px; }
.demo-flagged { grid-column: 1/-1; border-top: 1px solid var(--cool); padding-top: 14px; color: var(--red); font-size: 13px; font-weight: 600; }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.tier { background: var(--white); border: 1.5px solid var(--cool); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease; }
.tier:hover { border-color: rgba(29,111,106,0.5); box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.tier.featured { border-color: var(--teal); box-shadow: 0 12px 36px rgba(29,111,106,0.16); }
.tier-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--gold), #DAB97F); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 14px; border-radius: 100px; white-space: nowrap; box-shadow: 0 4px 12px rgba(201,166,107,0.4); }
.tier-name { font-weight: 700; font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.tier-price { font-weight: 800; font-size: 32px; color: var(--teal); line-height: 1.1; margin-bottom: 2px; letter-spacing: -0.02em; }
.tier-price span { font-size: 14px; font-weight: 500; color: var(--steel); }
.tier-price.custom { font-size: 24px; }
.tier-percase { font-size: 12.5px; font-weight: 600; color: var(--steel); margin-bottom: 16px; }
.tier-percase strong { color: var(--teal); font-weight: 700; }
.tier-licences { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.tier-desc { font-size: 13px; color: var(--steel); margin-bottom: 20px; min-height: 36px; }
.tier-caps { list-style: none; margin-bottom: 24px; flex: 1; }
.tier-caps li { font-size: 13px; color: var(--steel); padding: 7px 0; border-bottom: 1px solid var(--light); display: flex; gap: 8px; }
.tier-caps li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.tier-cta { display: block; text-align: center; padding: 13px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; background: linear-gradient(180deg, var(--teal-bright) 0%, var(--teal) 85%); color: var(--white); box-shadow: 0 4px 12px rgba(29,111,106,0.28); transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.tier-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,111,106,0.36); }
.tier-cta.outline { background: transparent; color: var(--navy); border: 1.5px solid var(--cool); box-shadow: none; }
.tier-cta.outline:hover { border-color: var(--teal); color: var(--teal); }
.pricing-foot { text-align: center; margin-top: 26px; font-size: 13px; color: var(--steel); }
.pricing-foot a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.trial-flag { display: inline-flex; align-items: center; gap: 8px; background: rgba(29,111,106,0.10); border: 1px solid rgba(29,111,106,0.3); color: var(--teal-dark); font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 100px; margin: 0 auto 34px; }
.dark .trial-flag { background: rgba(255,255,255,0.08); border-color: rgba(105,190,183,0.45); color: #9ED4CE; }

/* ---- Testimonial / quote card (kept for future use) ---- */
.quote-card { max-width: 760px; margin: 0 auto; background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius); padding: 44px 48px; text-align: left; box-shadow: var(--shadow-soft); position: relative; }
.quote-card::before { content: '\201C'; position: absolute; top: 8px; left: 24px; font-size: 84px; line-height: 1; color: var(--gold); font-family: Georgia, serif; opacity: 0.85; }
.quote-card blockquote { font-size: 20px; font-weight: 500; color: var(--navy); line-height: 1.55; margin: 0 0 18px; padding-left: 36px; }
.quote-card cite { display: block; font-style: normal; font-size: 14px; color: var(--steel); padding-left: 36px; }
.quote-card cite strong { color: var(--navy); font-weight: 600; }

/* ---- Download panel ---- */
.download-card { max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--cool); border-radius: var(--radius); padding: 42px 40px; text-align: center; box-shadow: var(--shadow-lift); }
.download-card h3 { font-size: 23px; color: var(--navy); margin-bottom: 10px; }
.download-card p { font-size: 15px; color: var(--steel); margin-bottom: 24px; }
.download-meta { font-size: 12.5px; color: var(--steel); margin-top: 18px; }
.download-meta code { background: var(--light); padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--navy); }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--cool); border-radius: 14px; margin-bottom: 12px; background: var(--white); overflow: hidden; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq details[open] { border-color: var(--teal); box-shadow: var(--shadow-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 16px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 22px; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform 0.25s ease; }
.faq details[open] summary::after { content: '+'; transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--steel); font-size: 15px; line-height: 1.7; }

/* ---- Trusted by ---- */
.trusted { text-align: center; }
.trusted p { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 22px; }
.trusted-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.trusted-logos .slot { height: 34px; min-width: 120px; border: 1px dashed var(--cool); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--steel); font-size: 12px; opacity: 0.7; }
.trust-logo { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 18px; color: var(--navy); padding: 14px 24px; border: 1px solid var(--cool); border-radius: 14px; line-height: 1.1; transition: all 0.25s var(--ease-out); background: var(--white); box-shadow: var(--shadow-soft); }
.trust-logo span { font-weight: 600; font-size: 11px; letter-spacing: 0.14em; color: var(--steel); margin-top: 3px; }
.trust-logo:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.trust-logo:hover span { color: var(--teal); }

/* ---- Signup / demo form ---- */
.signup-form { max-width: 540px; margin: 0 auto 18px; background: var(--white); border-radius: var(--radius); padding: 32px; text-align: left; box-shadow: 0 24px 60px rgba(0,0,0,0.28); }
.signup-form .field { margin-bottom: 14px; }
.signup-form label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.signup-form input { display: block; width: 100%; padding: 13px 15px; border: 1.5px solid var(--cool); border-radius: 11px; font-family: 'Inter', sans-serif; font-size: 15px; color: var(--navy); background: var(--white); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.signup-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(29,111,106,0.14); }
.signup-form button { width: 100%; margin-top: 8px; }
.signup-form .hp { position: absolute; left: -9999px; }
.form-reassure { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: rgba(255,255,255,0.65); }
.form-reassure span { display: inline-flex; align-items: center; gap: 6px; }
.form-reassure svg { width: 14px; height: 14px; color: #7FD6CB; }

/* ---- CTA band ---- */
.cta-band { background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-2) 100%); color: var(--white); text-align: center; padding: 104px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.cta-band::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 360px at 50% 0%, rgba(43,167,154,0.16), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); color: var(--white); margin-bottom: 16px; font-weight: 800; }
.cta-band p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto 32px; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* ---- Footer ---- */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.55); padding: 60px 0 32px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-col h5 { font-weight: 700; font-size: 12px; color: var(--white); margin-bottom: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.9; text-decoration: none; display: block; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { display: inline-flex; }
.footer-social svg { width: 20px; height: 20px; color: rgba(255,255,255,0.55); transition: color 0.2s ease; }
.footer-social a:hover svg { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Long-form (terms / privacy / changelog) ---- */
.doc { padding: 140px 0 90px; }
.doc-inner { max-width: 820px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); color: var(--navy); margin-bottom: 8px; }
.doc .updated { color: var(--steel); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; color: var(--navy); margin: 40px 0 14px; }
.doc h3 { font-size: 17px; color: var(--navy); margin: 26px 0 10px; }
.doc p, .doc li { color: var(--steel); font-size: 16px; line-height: 1.75; }
.doc ul, .doc ol { margin: 0 0 18px 22px; }
.doc li { margin-bottom: 8px; }
.doc table.limits { width: 100%; border-collapse: collapse; margin: 20px 0; border: 1px solid var(--cool); border-radius: 10px; overflow: hidden; }
.doc table.limits th, .doc table.limits td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--cool); }
.doc table.limits th { font-weight: 600; background: var(--light); color: var(--navy); }
.doc table.limits td { color: var(--steel); }
.doc table.limits tr:last-child td { border-bottom: none; }

/* ---- Scroll-reveal ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }

/* ---- Entrance animation (hero) ---- */
.fade-up { opacity: 0; transform: translateY(22px); animation: fadeUp 0.9s var(--ease-out) forwards; }
.fade-up:nth-child(2) { animation-delay: 0.10s; }
.fade-up:nth-child(3) { animation-delay: 0.20s; }
.fade-up:nth-child(4) { animation-delay: 0.30s; }
.fade-up:nth-child(5) { animation-delay: 0.40s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---- Sticky mobile CTA ---- */
.mcta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 98;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--cool); gap: 10px;
}
.mcta .btn { flex: 1; padding: 13px 10px; font-size: 14px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-win, .float-chip, .chip, .app-summary, .app-progress i, .eyebrow-dot,
  .fade-up, .marquee-track { animation: none !important; }
  .fade-up { opacity: 1; transform: none; }
  .chip, .app-summary { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-4, .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .statband-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; background: none; border: none; color: var(--navy); cursor: pointer; padding: 6px; }
  .hero { padding: 130px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 46px auto; }
  .float-chip.fc-1 { left: 0; }
  .float-chip.fc-2 { right: 0; }
  .cards-3, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section.block { padding: 72px 0; }
  .cta-band { padding: 72px 0; }
  .container { padding: 0 22px; }
  .nav-inner { padding: 12px 22px; }
  .quote-card { padding: 36px 28px; }
  .quote-card blockquote, .quote-card cite { padding-left: 24px; }
  .mcta { display: flex; }
  body { padding-bottom: 74px; }
}
@media (max-width: 560px) {
  .pricing-grid, .cards-4, .cards-5, .statband-grid, .feat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 1fr auto; }
  .demo-row .demo-cat { grid-column: 1 / -1; justify-self: start; }
  .compare th, .compare td { padding: 13px; font-size: 13px; }
  .download-card { padding: 28px 22px; }
  .hero-ctas .btn { width: 100%; }
  .float-chip { font-size: 11.5px; padding: 9px 12px; }
  .app-row .a { display: none; }
}
