/* ============================================================
   Investwizz, design system
   Premium fintech, deep-purple scheme, gold accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Purple system (brand-fixed) */
  --violet-700: #5B21B6;
  --violet-600: #6D28D9;
  --violet-500: #7C3AED;
  --violet-400: #8B5CF6;
  --lilac:      #A78BFA;
  --lilac-200:  #C4B5FD;

  /* Gold accent (market-tested hero highlight) */
  --gold:        #F0A24A;
  --gold-bright: #F8C074;
  --gold-deep:   #E8732A;

  /* Surfaces (deep purple ink) */
  --ink-900: #06031a;
  --ink-800: #0a041e;
  --ink-700: #0e0726;
  --ink-600: #14092e;
  --ink-card: rgba(255,255,255,0.035);
  --ink-card-2: rgba(255,255,255,0.06);

  /* Text */
  --text:      #F4F2FB;
  --text-80:   rgba(244,242,251,0.80);
  --text-65:   rgba(244,242,251,0.62);
  --text-45:   rgba(244,242,251,0.55);
  --text-30:   rgba(244,242,251,0.50);

  /* Semantic */
  --emerald: #4ADE80;
  --emerald-soft: rgba(74,222,128,0.12);
  --rose: #FB7185;

  /* Lines & borders */
  --line:    rgba(255,255,255,0.09);
  --line-2:  rgba(255,255,255,0.14);
  --line-lilac: rgba(167,139,250,0.22);

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadows */
  --sh-sm: 0 4px 16px rgba(0,0,0,0.25);
  --sh-md: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 40px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(167,139,250,0.06);
  --sh-lg: inset 0 1px 0 rgba(255,255,255,0.12), 0 30px 70px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(167,139,250,0.10);
  --sh-glow: 0 0 40px rgba(124,58,237,0.35);
  --sh-btn: inset 0 1px 0 rgba(255,255,255,0.35), 0 8px 24px rgba(124,58,237,0.4);

  /* Type */
  --font-sans: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", "Fraunces Fallback", "Playfair Display", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--ink-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select { font: inherit; }
::selection { background: var(--violet-500); color: #fff; }

/* ---------- Page background (ambient mesh) ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-color: #06031a;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,3,26,0.3) 0%, rgba(6,3,26,0.1) 50%, rgba(6,3,26,0.4) 100%);
}

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Prevent CSS grid/flex min-width blowout clipping text */
.hero-grid > *, .stat-grid > *, .planner > *, .versus > *, .steps > *, .price-grid > *, .footer-top > * { min-width: 0; }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.06; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: break-word; text-wrap: balance; }
.display {
  font-size: clamp(2.3rem, 6.4vw, 4.7rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
.h-xl { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.h-lg { font-size: clamp(1.7rem, 3.3vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; }
.h-md { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--text-80); line-height: 1.6; font-weight: 400; }
.muted { color: var(--text-65); }
.fine { font-size: 1rem; color: var(--text-65); line-height: 1.6; }
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; }

.text-gold {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-bright) 60%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.text-lilac {
  background: linear-gradient(100deg, var(--lilac) 0%, #fff 50%, var(--lilac) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}

/* Eyebrow / kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lilac-200);
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(167,139,250,0.08); border: 1px solid var(--line-lilac);
}
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 10px var(--lilac); }

.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 0.98rem; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet-400) 0%, var(--violet-500) 50%, var(--violet-600) 100%);
  box-shadow: var(--sh-btn);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 14px 36px rgba(124,58,237,0.5); }
.btn-ghost {
  color: var(--text); background: var(--ink-card-2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Cards & surfaces ---------- */
.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  backdrop-filter: blur(12px);
}
.card-pad { padding: clamp(22px, 3vw, 34px); }
.card-hover { transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-5px); border-color: var(--line-lilac); box-shadow: var(--sh-lg); }
.glass {
  background: linear-gradient(135deg, rgba(30,12,60,0.55), rgba(50,22,90,0.4));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-lg);
}

/* Badge / pill */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 0.78rem; font-weight: 600;
  background: var(--ink-card-2); border: 1px solid var(--line);
  color: var(--text-80);
}
.badge--ok { background: var(--emerald-soft); border-color: rgba(74,222,128,0.25); color: #86efac; }
.badge--ok .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px rgba(74,222,128,0.6); }
.badge--lilac { background: rgba(167,139,250,0.1); border-color: var(--line-lilac); color: var(--lilac-200); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 39px; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(17,6,37,0.78);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1220px; margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 46px; } }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 0.95rem; font-weight: 500; color: var(--text-80);
  transition: background .2s, color .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: var(--ink-card-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; padding: 8px; color: var(--text-80); }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  display: none;
  margin: 0 var(--gutter) 8px;
  padding: 14px; border-radius: var(--r-lg);
  background: rgba(17,6,37,0.96); border: 1px solid var(--line); backdrop-filter: blur(18px);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 14px; border-radius: var(--r-md); font-weight: 500; color: var(--text-80); }
.mobile-menu a:hover { background: var(--ink-card-2); color: #fff; }
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Risk ribbon (FCA prominence) ---------- */
.risk-strip {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 9px 16px; font-size: 1rem; color: var(--text-80); font-weight: 500;
  background: rgba(255,255,255,0.03); border-block: 1px solid var(--line);
  text-align: center;
}
.risk-strip svg { flex: none; color: var(--gold); }
.risk-inline { font-size: 1rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 7px; }
/* Risk statement sitting beside a headline projection figure. COBS 4.5A.3R
   requires prominence comparable to the figure it qualifies, so this is
   boxed, full-contrast and never collapsed. */
.risk-prominent {
  margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--gold-deep); border-radius: var(--r-md);
  background: rgba(232,115,42,0.10);
  font-size: 1.06rem; font-weight: 700; line-height: 1.45; color: var(--text);
  display: flex; align-items: flex-start; gap: 10px;
}
.risk-prominent::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-deep); flex: none; margin-top: 0.5em; }
.risk-inline::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-deep); flex: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 70px); position: relative; }
/* hero-bg-img: contained upper-right background photo */
.hero-bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: min(62vh, 540px);
  background-image: url('../img/home/hero-background.jpg');
  background-size: cover;
  background-position: 78% center;
  pointer-events: none;
  z-index: 0;
  mask-image:
    linear-gradient(to right, transparent 0%, black 55%, black 100%),
    linear-gradient(to top, transparent 0%, black 18%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 55%, black 100%),
    linear-gradient(to top, transparent 0%, black 18%);
  -webkit-mask-composite: destination-in;
}
@media (max-width: 880px) { .hero-bg-img { display: none; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -0.038em; line-height: 1.08; }
.hero .lede { margin-top: 22px; max-width: 46ch; color: #ffffff; font-weight: 500; }
.hero .lede strong.hl { color: var(--lilac-200); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 0.82rem; color: var(--text-65); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lilac); flex: none; }
.hero-visual { position: relative; }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: clamp(20px, 4vw, 36px); }
  .hero-visual { max-width: 380px; margin-inline: auto; }
  .hero .lede { max-width: none; }
}

/* Floating product frame (raster, used on product page) */
.phone-shot { position: relative; max-width: 440px; margin-inline: auto; }
.phone-shot img { width: 100%; height: auto; border-radius: var(--r-xl); }
.phone-glow {
  position: absolute; inset: -8% -6%; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.45), transparent 65%);
  filter: blur(34px);
}

/* Vector dashboard mockup (used on home hero, crisp at any size) */
.mock { position: relative; max-width: 430px; margin-inline: auto; }
.mock-glow {
  position: absolute; inset: -12% -10%; z-index: -1;
  background: radial-gradient(ellipse at 60% 40%, rgba(124,58,237,0.5), transparent 65%);
  filter: blur(42px);
}
.mock-card {
  background: linear-gradient(165deg, rgba(44,20,82,0.92), rgba(20,7,44,0.97));
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 26px); box-shadow: var(--sh-lg);
  backdrop-filter: blur(10px);
}
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mock-app { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; font-size: 1rem; }
.mock-app .glyph { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--lilac), var(--violet-500)); display: grid; place-items: center; }
.mock-goal { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.mock-goal-ico { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--violet-400), var(--violet-600)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
.mock-goal-name { font-weight: 700; font-size: 1.02rem; }
.mock-goal-sub { font-size: 0.8rem; color: var(--text-45); margin-top: 2px; }
.mock-proj { padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,0.045); border: 1px solid var(--line); margin-bottom: 18px; }
.mock-proj-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-45); font-weight: 700; }
.mock-proj-value { font-size: clamp(1.9rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 3px; }
.mock-spark { display: block; width: 100%; height: 50px; margin-top: 6px; }
.mock-mix { display: grid; gap: 13px; }
.mock-mix-row .t { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-80); margin-bottom: 6px; }
.mock-fee {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--text-65); font-weight: 500;
}
.mock-fee strong { font-size: 1.25rem; font-weight: 800; color: #86efac; letter-spacing: -0.02em; }
.mock-fee strong span { font-size: 0.78rem; color: var(--text-45); font-weight: 600; }

/* ---------- Stat / metric cards ---------- */
.stat-grid { display: grid; gap: 18px; align-items: stretch; }
.stat-grid > * { height: 100%; }
.cols-1 { grid-template-columns: 1fr; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.stat .num { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .num.gold { color: var(--gold-bright); }
.stat .num.emerald { color: #86efac; }
.stat .lbl { margin-top: 10px; color: var(--text-65); font-size: 0.92rem; }
.stat .src { margin-top: 10px; font-size: 1rem; color: var(--text-80); }

/* ---------- Feature cards ---------- */
.feat-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(124,58,237,0.12));
  border: 1px solid var(--line-lilac); color: var(--lilac-200);
}
.feat h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat p { color: var(--text-65); font-size: 0.95rem; }

/* ---------- Trust section cards ---------- */
.trust-card {
  background: rgba(8, 4, 28, 0.92) !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(120,80,200,0.07), 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(167,139,250,0.1) !important;
  display: flex;
  flex-direction: column;
  min-height: 290px;
}
.trust-ava {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  margin-bottom: 18px;
  display: block;
  flex-shrink: 0;
}
.trust-card .muted { flex-grow: 1; }
@media (max-width: 560px) { .trust-card { min-height: 0; } }

/* ---------- Comparison table ---------- */
.compare { overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-45); font-weight: 700; }
.compare tbody th { font-weight: 600; color: var(--text-80); font-size: 0.95rem; }
.compare td { color: var(--text-65); font-size: 0.92rem; }
.compare .col-iw { background: linear-gradient(180deg, rgba(124,58,237,0.16), rgba(124,58,237,0.05)); color: var(--text); font-weight: 600; position: relative; }
.compare thead .col-iw { color: var(--lilac-200); }
.compare .tick { color: var(--emerald); font-weight: 700; }
.compare .cross { color: var(--text-30); }
.compare-scroll { overflow-x: auto; }
@media (max-width: 720px) { .compare th, .compare td { padding: 13px 12px; font-size: 0.84rem; } }

/* ---------- "Old way vs better way" ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 820px) { .versus { grid-template-columns: 1fr; } }
.versus .old { opacity: 0.92; }
.vs-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.vs-row:last-child { border-bottom: none; }
.vs-row h4 { font-size: 1rem; margin-bottom: 4px; }
.vs-row p { font-size: 0.88rem; color: var(--text-65); }
.vs-list { list-style: none; padding: 0; }
.vs-list li { display: flex; gap: 12px; padding: 12px 0; align-items: flex-start; font-size: 0.97rem; color: var(--text-80); }
.vs-list li svg { flex: none; margin-top: 2px; color: var(--emerald); }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step .n { font-family: var(--font-mono); font-size: 0.8rem; color: var(--lilac); font-weight: 700; letter-spacing: 0.1em; }
.step h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.step p { font-size: 0.9rem; color: var(--text-65); }

/* ---------- Trust bar ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text-80); font-weight: 600; }
.trust-item svg { color: var(--lilac); flex: none; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-grid > * { height: 100%; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price { display: flex; flex-direction: column; }
.price.featured { border-color: var(--line-lilac); box-shadow: 0 0 0 1px var(--line-lilac), var(--sh-lg); position: relative; }
.price .tier { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-45); font-weight: 700; }
.price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; line-height: 1; }
.price .amt small { font-size: 0.95rem; font-weight: 500; color: var(--text-45); }
.price .sub { font-size: 0.85rem; color: var(--text-65); min-height: 1.2em; }
.price ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 8px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--text-80); align-items: flex-start; }
.price li svg { flex: none; margin-top: 2px; color: var(--lilac); }
.ribbon {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--violet-400), var(--violet-600)); color: #fff;
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--ink-card); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; text-align: left; font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.faq-q .pm { flex: none; transition: transform .3s; color: var(--lilac); }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-item.open .faq-q { border-bottom: 1px solid var(--line); }
.faq-item.open .faq-a { max-height: 600px; }

/* ===== how-grid (two-column section) ===== */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.how-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.how-copy .kicker { margin-bottom: 4px; }
.how-copy h2 {
  font-size: clamp(3.2rem, 6.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.how-copy .lede {
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-70);
  margin: 0;
}
.how-copy .btn {
  margin-top: 12px;
  align-self: flex-start;
}
.how-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
}.how-visual img {
  border-radius: 20px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
/* ===== step-grid (4-step cards) ===== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-grid .card.step {
  background: var(--ink-900);
  border-color: rgba(167, 139, 250, 0.15);
  padding: 28px 24px;
}
.step-grid .card.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 8px;
  color: var(--text-100);
}
.step-grid .card.step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-50);
  margin: 0;
}
.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac-200);
}
/* ===== choice-grid (4-box grid) ===== */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== section-soft (lighter band) ===== */
.section-soft {
  background: var(--ink-900);
}

/* responsive */
@media (max-width: 900px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 22px 22px; color: var(--text-65); font-size: 0.95rem; line-height: 1.65; }

/* ---------- Interactive planner ---------- */
.planner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; max-width: 1800px; margin-inline: auto; border: 1px solid var(--line-lilac); box-shadow: var(--sh-lg); }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } }
.planner-controls { padding: clamp(22px, 3vw, 36px); border-right: 1px solid var(--line); }
.planner-output { padding: clamp(22px, 3vw, 36px); background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(6,3,26,0.3)); }
@media (max-width: 860px) { .planner-controls { border-right: none; border-bottom: 1px solid var(--line); } }
.field { margin-bottom: 24px; }
.slider-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.slider-row .field { margin-bottom: 0; }
.slider-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-45); font-weight: 700; white-space: nowrap; }
.slider-val { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; margin: 4px 0 10px; }
@media (max-width: 600px) { .slider-row { grid-template-columns: 1fr; } }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-45); font-weight: 700; margin-bottom: 12px; }
.field-label .val { font-size: 1.1rem; font-weight: 800; color: var(--text); letter-spacing: -0.01em; text-transform: none; }
.field-label [data-out="yearsInline"] { color: var(--text-80); text-transform: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600;
  background: var(--ink-card-2); border: 1px solid var(--line); color: var(--text-65);
  transition: all .18s; min-width: 0; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.active { background: linear-gradient(135deg, var(--violet-500), var(--violet-600)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(124,58,237,0.4); }
/* Equal-width comfort-zone chips so all 5 are the same size */
.chip-row--equal .chip { min-width: auto; flex: 1 1 0; text-align: center; padding: 7px 8px; font-size: 0.78rem; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.12); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac), var(--violet-500));
  box-shadow: 0 0 0 4px rgba(124,58,237,0.25), 0 4px 10px rgba(0,0,0,0.4); cursor: pointer;
}
input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--lilac), var(--violet-500));
  box-shadow: 0 0 0 4px rgba(124,58,237,0.25); cursor: pointer;
}
.proj-big { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
/* A result that is worse for the customer must not borrow the colour used
   for a better one. Set by the fee calculator from the sign of the figure. */
.proj-big.bl-pos { color: #86efac; }
.proj-big.bl-neg { color: var(--rose); }
.proj-range { color: var(--text-65); font-size: 0.92rem; margin-top: 8px; }
.donut-wrap { display: flex; align-items: center; gap: 26px; margin-top: 10px; }
.donut-legend { display: grid; gap: 10px; font-size: 0.92rem; }
.donut-legend .li { display: flex; align-items: center; gap: 9px; color: var(--text-80); }
.donut-legend .sw { width: 13px; height: 13px; border-radius: 3px; flex: none; }

/* ---------- Risk warning box (dynamic, per comfort zone) ---------- */
.risk-warning { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,0.03); }
.risk-warning h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.risk-warning .rw-section { margin-bottom: 6px; border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.risk-warning .rw-section:last-child { margin-bottom: 0; }
.risk-warning .rw-section-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: 0; padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.risk-warning .rw-section-title::-webkit-details-marker { display: none; }
.risk-warning .rw-section-body { font-size: 1rem; color: var(--text-80); line-height: 1.5; padding: 0 12px 10px; }
.risk-warning .rw-section-body strong { color: var(--text); }
.risk-warning .rw-toggle { flex: none; width: 14px; height: 14px; position: relative; }
.risk-warning .rw-toggle::before { content: ""; position: absolute; top: 5px; left: 2px; width: 7px; height: 7px; border-right: 2px solid var(--text-45); border-bottom: 2px solid var(--text-45); transform: rotate(45deg); transition: transform 0.2s; }
.risk-warning .rw-section[open] .rw-toggle::before { transform: rotate(-135deg); top: 8px; }
.risk-warning .rw-section[open] .rw-section-title { background: rgba(255,255,255,0.03); }

/* ---------- Planner disclosure collapsibles ---------- */
.disclosure-item { border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.disclosure-title { font-size: 1rem; font-weight: 700; color: var(--text-80); padding: 9px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; text-transform: uppercase; letter-spacing: 0.06em; }
.disclosure-title::-webkit-details-marker { display: none; }
.disclosure-title::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--text-45); border-bottom: 2px solid var(--text-45); transform: rotate(45deg); transition: transform 0.2s; flex: none; }
.disclosure-item[open] .disclosure-title::after { transform: rotate(-135deg); }
.disclosure-item[open] .disclosure-title { background: rgba(255,255,255,0.03); }


/* ---------- Comfort zone description (mirrors the app's approved wording) ---------- */
.zone-copy { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.zone-one { font-size: 1.06rem; font-weight: 700; color: var(--text); margin: 0 0 10px; line-height: 1.4; }
.zone-line { font-size: 1rem; color: var(--text-80); margin: 0 0 6px; line-height: 1.5; }
.zone-line strong { color: var(--text); font-weight: 700; }
.zone-list { margin: 2px 0 10px; padding-left: 18px; font-size: 1rem; color: var(--text-80); line-height: 1.5; }
.zone-list li { margin-bottom: 3px; }
.zone-expect { list-style: none; padding-left: 0; }
.zone-expect li { position: relative; padding-left: 22px; }
.zone-expect li::before { position: absolute; left: 0; font-weight: 700; }
.zone-expect .ze-yes::before { content: "\2713"; color: var(--emerald); }
.zone-expect .ze-no::before { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='8' fill='none' stroke='%23E24B4A' stroke-width='2'/%3E%3Cline x1='5' y1='9' x2='13' y2='9' stroke='%23E24B4A' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); color: inherit; font-weight: 400; top: 2px; }

/* ---------- Planner / calculator disclaimer panel ----------
   These blocks carry risk and cost disclosures and can sit over section
   photography, so they get their own opaque backing rather than relying on
   whatever happens to be behind them. */
.planner-disclaimer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 16px 18px 14px;
  background: rgba(6,3,26,0.82);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.planner-disclaimer > .fine:first-child { margin-top: 0 !important; }

/* Cost disclosures must not sit below body size (WealthKernel). */
.badge[data-out="breakeven"] { font-size: 1rem; font-weight: 500; color: var(--text); }

/* ---------- Greyed-out cash ISA comparison ---------- */
.cash-comp.disabled { opacity: 0.4; }
.cash-comp.disabled .cash-comp-val { visibility: hidden; }

/* ---------- Donut ETF labels ---------- */
.donut-legend .li-etf { font-size: 0.76rem; color: var(--text-45); margin-left: 20px; }
.bars { display: grid; gap: 14px; margin-top: 20px; }
.bar-row .bar-top { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-65); margin-bottom: 6px; }
.bar-track { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet-500), var(--lilac)); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.bar-fill.cash { background: linear-gradient(90deg, #475569, #64748b); }

/* ---------- Founders / about ---------- */
.founder-card h3 { font-size: 1.15rem; }
.founder-card .role { color: var(--lilac-200); font-size: 0.85rem; font-weight: 600; margin: 2px 0 14px; }
.founder-card ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.founder-card li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--text-65); }
.founder-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lilac); flex: none; margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/home/cta-card-texture.webp") center center / cover no-repeat;
  background-color: #1b0746;
  border: 1px solid var(--line-lilac); border-radius: var(--r-xl);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, rgba(6,3,26,0.72) 0%, rgba(6,3,26,0.55) 52%, rgba(6,3,26,0.34) 100%);
  border-radius: var(--r-xl);
}
/* Cost of waiting — full-bleed photo with text overlay */
.cta-band--split { padding: 0; text-align: left; min-height: 380px; display: flex; align-items: stretch; }
.cta-band--split .cta-band-content {
  position: relative; z-index: 2;
  padding: clamp(32px, 4vw, 52px);
  max-width: 54%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.cta-band--split .cta-band-img {
  position: absolute; inset: 0; overflow: hidden;
}
.cta-band--split .cta-band-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center; display: block;
}
.cta-band--split .cta-band-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, #1b0746 0%, #1b0746 25%, rgba(27,7,70,0.85) 45%, rgba(27,7,70,0.3) 65%, transparent 80%);
}
@media (max-width: 720px) {
  .cta-band--split { min-height: auto; }
  .cta-band--split .cta-band-content { max-width: 100%; padding-bottom: 220px; }
  .cta-band--split .cta-band-img { position: absolute; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink-900); padding-block: 56px 32px; position: relative; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }
.footer h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-45); margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--text-65); font-size: 0.9rem; }
.footer a:hover { color: var(--text); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--text-45); font-size: 0.88rem; max-width: 30ch; }
.reg-box { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.reg-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-text { font-size: 1rem; color: var(--text-80); line-height: 1.6; }
.reg-text strong { color: var(--text); font-weight: 600; }
.footer-bottom { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 1rem; color: var(--text-80); }


/* ---------- Reveal animation ---------- */
/* Reveals only start hidden when JS is active (html.js is set by an inline
   script in <head>). Without JS, or before JS runs, content is fully visible —
   this protects LCP/CLS for cold paid traffic and is a no-JS fallback. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
/* Above-the-fold content never waits on JS to paint (LCP-critical). */
html.js .hero .reveal,
html.js .trust-strip.reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: none; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 200; background: var(--violet-600); color: #fff; padding: 10px 16px; border-radius: 8px; }
.eyebrow-line { display: flex; align-items: center; gap: 12px; }
.eyebrow-line::before, .eyebrow-line::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line-2)); }
a:focus-visible, button:focus-visible, input:focus-visible, .chip:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.nowrap { white-space: nowrap; }

/* ============================================================
   v2, sales-optimization components
   ============================================================ */

/* ISA deadline banner (slim, above nav content) */
.isa-banner {
  position: sticky; top: 0; z-index: 101;
  display: flex; align-items: center; justify-content: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 9px 16px; text-align: center;
  font-size: 0.82rem; font-weight: 600; color: var(--text-80);
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-lilac);
}
.isa-banner strong { color: var(--gold-bright); }
.isa-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* Equal, side-by-side hero buttons */
.hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; max-width: 560px; }
.hero-btns .btn { white-space: normal; text-align: center; font-size: 0.96rem; padding: 15px 16px; line-height: 1.25; }
@media (max-width: 560px) { .hero-btns { grid-template-columns: 1fr; max-width: none; } }

/* App-store download block */
.store-head { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-45); margin-bottom: 16px; }
.store-row { display: grid; gap: 14px; }
.store-item { display: flex; align-items: center; gap: 14px; }
.store-qr { width: 88px; height: 88px; flex: none; background: #fff; border-radius: 12px; padding: 7px; box-shadow: var(--sh-sm); }
.store-qr img { width: 100%; height: 100%; display: block; }
.store-badge { display: inline-flex; align-items: center; gap: 11px; padding: 12px 40px; border-radius: 13px; background: #000; border: 1px solid rgba(255,255,255,0.22); color: #fff; flex: 1; transition: transform .2s, border-color .2s; }
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.45); }
.store-badge svg { flex: none; }
.store-badge .bt { display: flex; flex-direction: column; line-height: 1.12; }
.store-badge .bt small { font-size: 0.62rem; opacity: 0.85; letter-spacing: 0.02em; white-space: nowrap; }
.store-badge .bt strong { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 560px) { .store-item { flex-direction: column; align-items: stretch; } .store-qr { align-self: center; } }

/* Sub-hero proof line (the killer fee number) */
.proof-line {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 20px; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(124,58,237,0.16), rgba(124,58,237,0.05));
  border: 1px solid var(--line-lilac);
}
.proof-line .big { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.proof-line .big .em { color: var(--gold-bright); }

/* Founder credibility strip */
.founder-strip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding: 14px 18px; border-radius: var(--r-md);
  background: var(--ink-card); border: 1px solid var(--line);
}
.founder-strip .ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; border: 1.5px solid var(--line-lilac); }
.founder-strip .ft { font-size: 0.88rem; color: var(--text-80); line-height: 1.45; }
.founder-strip .ft strong { color: #fff; font-weight: 700; }
.founder-strip a { color: var(--lilac-200); font-weight: 600; white-space: nowrap; }

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px);
  background: rgba(12,4,32,0.92); border-top: 1px solid var(--line-2); backdrop-filter: blur(16px);
}
.sticky-cta .btn { width: 100%; }
@media (max-width: 880px) { .sticky-cta { display: block; } body { padding-bottom: 76px; } }

/* CTA risk-reversal microcopy that travels with buttons */
.cta-reassure { margin-top: 14px; font-size: 0.8rem; color: var(--text-45); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.cta-reassure span { display: inline-flex; align-items: center; gap: 6px; }
.cta-reassure span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lilac); }
.cta-reassure.center { justify-content: center; }

/* Comparison kill-shot verdict row */
.compare .verdict td, .compare .verdict th { font-size: 0.84rem; color: var(--text-65); font-style: italic; background: rgba(255,255,255,0.015); }
.compare .verdict .col-iw { color: var(--lilac-200); font-style: normal; font-weight: 700; }

/* Copilot nudge cards (show, don't tell) */
.nudge { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); background: var(--ink-card); border: 1px solid var(--line); }
.nudge .ico { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(124,58,237,0.12)); border: 1px solid var(--line-lilac); color: var(--lilac-200); }
.nudge .nt { font-size: 0.94rem; color: var(--text); font-weight: 600; }
.nudge .ns { font-size: 0.82rem; color: var(--text-45); margin-top: 3px; }

/* Safety / never-locked-in block */
.safety { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; margin-top: 22px; }
@media (max-width: 600px) { .safety { grid-template-columns: 1fr; } }
.safety li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 0.92rem; color: var(--text-80); }
.safety li svg { flex: none; margin-top: 2px; color: var(--emerald); }

/* Video embed ("see it in action") */
.video-frame {
  position: relative; margin-top: 32px; aspect-ratio: 16 / 9; width: 100%; max-width: 920px; margin-inline: auto;
  border-radius: var(--r-xl); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(40,18,75,0.6), rgba(20,7,44,0.85));
  box-shadow: var(--sh-lg); overflow: hidden;
}
.video-frame iframe,
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.video-frame video { object-fit: cover; }

/* Content / legal pages */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 32px); }
.prose { max-width: 800px; margin-inline: auto; }
.prose .updated { color: var(--text-45); font-size: 0.85rem; margin-bottom: 26px; }
.prose h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--text); font-weight: 700; }
.prose p { color: var(--text-80); margin-bottom: 14px; line-height: 1.7; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--text-80); }
.prose li { margin-bottom: 7px; line-height: 1.6; }
.prose a { color: var(--lilac-200); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: 0.9rem; }
.prose th, .prose td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); color: var(--text-80); vertical-align: top; }
.prose thead th { color: var(--text); background: var(--ink-card); font-weight: 700; }
.contact-card { margin-top: 26px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--ink-card); border: 1px solid var(--line); }
.contact-card a { font-weight: 700; }

/* Legal page hero */
.legal-hero {
  padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.legal-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(124,58,237,0.32), transparent 60%),
    radial-gradient(ellipse 40% 45% at 85% 15%, rgba(167,139,250,0.12), transparent 50%);
}
.legal-hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--line-lilac) 50%, transparent 95%);
}
.legal-hero .display { margin-top: 18px; }

.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--lilac-200); font-weight: 600;
  margin-bottom: 22px; transition: color .2s, gap .2s;
}
.legal-back:hover { color: #fff; gap: 10px; }
.legal-back svg { transition: transform .2s; }
.legal-back:hover svg { transform: translateX(-2px); }

.legal-meta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(167,139,250,0.08); border: 1px solid var(--line-lilac);
  font-size: 0.78rem; color: var(--text-65); font-weight: 600;
}
.legal-meta svg { color: var(--lilac); flex: none; }

.legal-body { padding-block: clamp(40px, 5vw, 64px); }

.legal-card {
  max-width: 860px; margin-inline: auto;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--sh-md);
  backdrop-filter: blur(8px);
}
.legal-card .prose { max-width: none; }
.legal-card .prose h2 {
  padding-left: 18px;
  border-left: 3px solid var(--lilac);
  margin-top: 44px;
}
.legal-card .prose h2:first-child { margin-top: 0; }
.legal-card .prose h3 {
  padding-left: 18px;
  border-left: 2px solid var(--line-2);
}

/* Legal tables */
.legal-card .prose table {
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); margin: 16px 0 28px;
}
.legal-card .prose th, .legal-card .prose td { border-color: var(--line); }
.legal-card .prose thead th {
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(124,58,237,0.05));
  color: var(--lilac-200); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.legal-card .prose tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.legal-card .prose tbody tr { transition: background .15s; }
.legal-card .prose tbody tr:hover { background: rgba(167,139,250,0.06); }

/* Legal contact cards */
.legal-card .contact-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(124,58,237,0.03));
  border: 1px solid var(--line-lilac);
  padding: 26px 30px; margin: 28px 0;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.legal-card .contact-card strong {
  font-size: 1.08rem; color: var(--lilac-200); display: block; margin-bottom: 8px;
}

/* Legal TOC (terms page) */
.legal-toc {
  padding: 24px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(124,58,237,0.02));
  border: 1px solid var(--line-lilac);
  margin-bottom: 40px;
}
.legal-toc-title {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-45); font-weight: 700; margin-bottom: 16px;
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 24px;
}
.legal-toc li { counter-increment: toc; }
.legal-toc li a {
  font-size: 0.86rem; color: var(--text-80); font-weight: 500;
  padding: 5px 0; display: flex; align-items: baseline; gap: 10px;
  transition: color .15s;
  text-decoration: none;
}
.legal-toc li a::before {
  content: counter(toc) "."; color: var(--lilac); font-weight: 700;
  font-size: 0.8rem; min-width: 20px;
}
.legal-toc li a:hover { color: var(--lilac-200); }
@media (max-width: 600px) { .legal-toc ol { grid-template-columns: 1fr; } }

/* Legal help grid */
.help-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0;
}
@media (max-width: 640px) { .help-grid { grid-template-columns: 1fr; } }
.help-item {
  padding: 22px 24px; border-radius: var(--r-lg);
  background: var(--ink-card); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.help-item:hover { border-color: var(--line-lilac); transform: translateY(-2px); }
.help-item h3 {
  font-size: 0.98rem; margin: 0 0 6px; padding: 0; border: none;
  color: var(--text);
}
.help-item p { font-size: 0.88rem; color: var(--text-65); margin: 0; }

/* Footer social row */
.footer-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }

/* Sign-up endpoint (the conversion terminus) */
.signup { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 60px); }
.signup::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-xl);
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(167,139,250,0.32), transparent 60%), linear-gradient(135deg, rgba(124,58,237,0.28), rgba(76,29,149,0.4)); border: 1px solid var(--line-lilac); }
.signup-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (max-width: 820px) { .signup-grid { grid-template-columns: 1fr; } }
.signup-form { background: rgba(12,4,32,0.6); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 30px); backdrop-filter: blur(10px); }
.signup-form label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-45); margin: 0 0 7px; }
.signup-form .row + .row { margin-top: 16px; }
.signup-form input[type=text], .signup-form input[type=email] {
  width: 100%; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem;
}
.signup-form input::placeholder { color: var(--text-30); }
.signup-form input:focus { outline: none; border-color: var(--lilac); background: rgba(255,255,255,0.07); }
.signup-form .btn { margin-top: 18px; }
.signup-form .err { color: var(--rose); font-size: 0.82rem; margin-top: 8px; min-height: 1em; }
.signup-success { display: none; text-align: center; padding: 10px 0; }
.signup-success.show { display: block; }
.signup-success .tick { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-soft); border: 1px solid rgba(74,222,128,0.3); color: #86efac; }
.signup-form.done .signup-fields { display: none; }

/* ============================================================
   v2 conversion additions
   ============================================================ */

/* P0-2 — Trust strip under hero (compact single bar) */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124,58,237,0.05), transparent); padding: 16px 0;
  position: relative; }
.trust-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px;
  font-size: 1rem; color: var(--text-65); text-align: center; }
.trust-bar-logo { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.trust-bar-logo img { display: block; width: 90px; height: auto; background: transparent; filter: brightness(1.5); }
@media (max-width: 900px) { .trust-bar-logo { display: none; } }
.trust-bar strong { color: var(--text); font-weight: 700; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.tb-item svg { color: var(--lilac); flex: none; }
.tb-risk { color: var(--text-80); }
.tb-risk::before { content: ""; }
@media (max-width: 640px) { .trust-bar { gap: 8px 16px; font-size: 0.78rem; } }

/* Inline arrow link */
.link-arrow { color: var(--lilac-200); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.link-arrow:hover { color: var(--text); border-bottom-color: var(--lilac-200); }

/* P1-4 — Hero audience segmenter */
.hero-seg { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.hero-seg-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-45); font-weight: 700; }
.hero-seg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 14px; }
.seg-pill { cursor: pointer; padding: 9px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--text-80);
  font-size: 0.86rem; font-weight: 600; font-family: inherit; transition: all .18s; }
.seg-pill:hover { border-color: var(--line-lilac); color: var(--text); }
.seg-pill.active { background: linear-gradient(135deg, var(--violet-500), var(--violet-600));
  border-color: transparent; color: #fff; box-shadow: var(--sh-btn); }
.hero-seg-note { font-size: 0.9rem; color: var(--text-65); line-height: 1.5; margin: 0; }

/* P1-6 — Control vs black box */
.vs-box { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.vs-col { padding: 24px 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-card); }
.vs-them { opacity: 0.82; }
.vs-us { border-color: var(--line-lilac); background: linear-gradient(160deg, rgba(124,58,237,0.16), rgba(124,58,237,0.04)); }
.vs-tag { display: inline-block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  color: var(--text-45); margin-bottom: 12px; }
.vs-us .vs-tag { color: var(--lilac-200); }
.vs-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vs-col li { font-size: 0.9rem; color: var(--text-80); display: flex; gap: 8px; align-items: flex-start; }
.vs-col .tick { color: var(--emerald); font-weight: 700; flex: none; }
.vs-mid { font-family: var(--ff-display, serif); font-size: 1.1rem; color: var(--text-45); font-style: italic; }
@media (max-width: 820px) { .vs-box { grid-template-columns: 1fr; } .vs-mid { display: none; } }

/* P2-8 — Testimonials / founding members */
.quote { display: flex; flex-direction: column; }
.quote-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 12px; }
.quote blockquote { margin: 0 0 16px; font-size: 0.98rem; line-height: 1.55; color: var(--text); flex: 1; }
.quote figcaption { font-size: 0.85rem; color: var(--text-80); }
.quote figcaption strong { color: var(--text); }
.quote figcaption .muted { color: var(--text-45); }
.members-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 28px; }
.founding-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(240,162,74,0.16), rgba(240,162,74,0.04));
  border: 1px solid rgba(240,162,74,0.35); color: var(--gold-bright); font-size: 0.86rem; font-weight: 700; }
.founding-pill svg { color: var(--gold); }
.tp-coming { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--text-65); }

/* Pricing tile honesty note + start-section extras */
.tier-note { font-size: 0.82rem; line-height: 1.5; color: var(--text-65);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; margin: 4px 0 6px; }
.tier-note strong { color: var(--lilac-200); }

/* Original promotional pricing styles */
.tier-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-45); font-weight: 700; }
.price-name { font-size: 1.5rem; font-weight: 800; margin: 6px 0 16px; color: var(--text); }
.amt-promo { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 2px; }
.amt-big { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1; }
.amt-upfront { font-size: 1rem; color: var(--text-65); font-weight: 500; }
.promo-renews { font-size: 1rem; color: var(--text-80); margin: 0 0 10px; }
.promo-tagline { font-size: 0.95rem; font-weight: 700; color: var(--emerald); margin: 0 0 6px; }
.promo-note { font-size: 1rem; color: var(--text-80); margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.promo-soon { font-size: 0.88rem; font-weight: 700; color: var(--gold); margin: 4px 0 10px; }
.price-divider { border: none; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.start-roadmap { font-size: 1rem; color: var(--text-80); margin-top: 14px; }
.start-roadmap strong { color: var(--text); }
.start-support { font-size: 0.88rem; margin-top: 8px; }
.start-support a { color: var(--lilac-200); font-weight: 600; }

/* ============================================================
   Choices section — two-column mockup layout
   ============================================================ */
.choices-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .choices-main-grid { grid-template-columns: 1fr; }
  .choices-visual { order: -1; }
}
.choices-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.choices-2x2 .choice {
  display: flex;
  flex-direction: column;
  padding: 36px 30px 32px;
  border-radius: 20px;
  min-height: 280px;
}
.choices-2x2 .choice-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.choices-2x2 .choice-icon svg {
  width: 28px;
  height: 28px;
}
.choices-2x2 .choice h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 700;
}
.choices-2x2 .choice p {
  margin: 0;
  line-height: 1.75;
  font-size: 0.95rem;
  color: var(--text-75);
}
@media (max-width: 900px) {
  .choices-main-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .choices-2x2 { grid-template-columns: 1fr; gap: 16px; }
  .choices-2x2 .choice { min-height: auto; padding: 24px 22px 22px; }
}
.choices-visual {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--line-2);
}
.choices-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Overlay cards on the woman image
   ============================================================ */
.visual-with-cards {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  line-height: 0;
}
.visual-with-cards img {
  display: block;
  width: 100%;
  height: auto;
}
.ov-card {
  position: absolute;
  background: linear-gradient(160deg, rgba(28,12,58,0.95), rgba(17,6,37,0.97));
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 2;
  max-width: 240px;
}
.ov-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.ov-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ov-step {
  font-size: 0.82rem;
  color: var(--text-45);
  font-weight: 600;
}
.ov-step.ov-active {
  color: #7c3aed;
  font-weight: 700;
}
.ov-connector {
  width: 28px;
  height: 2px;
  background: #ddd;
  border-radius: 1px;
}
.ov-connector + .ov-step, .ov-step + .ov-connector { margin-left: 2px; }

/* Your plan — top left */
.ov-plan {
  top: 10%;
  left: 4%;
}

/* Portfolio mix — middle left */
.ov-portfolio {
  top: 44%;
  left: 4%;
}
.ov-pie-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.ov-pie {
  transform: rotate(-90deg);
}
.ov-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ov-leg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-70);
}
.ov-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ov-pct {
  font-weight: 700;
  color: var(--text);
  margin-left: auto;
}

/* Risk profile — right side */
.ov-risk {
  top: 28%;
  right: 2%;
  max-width: 160px;
}
.ov-risk-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-45);
  font-weight: 600;
  margin-bottom: 6px;
}
.ov-risk-level {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.ov-bars {
  display: flex;
  gap: 3px;
}
.ov-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #374151;
}

/* Checkmark badge — bottom right */
.ov-badge {
  position: absolute;
  bottom: 8%;
  right: 4%;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(124,58,237,0.35);
  z-index: 3;
}

/* Responsive — hide overlays on mobile, show full image */
@media (max-width: 640px) {
  .ov-card, .ov-badge { display: none; }
}

/* ============================================================
   v3 — Premium UX layer (Stripe/Linear/Ramp-grade polish)
   ============================================================ */

/* ---------- Ambient orbs (animated background depth) ---------- */
.ambient-orbs {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden;
}
.ambient-orbs .orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.28;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; top: -15%; left: 5%;
  background: radial-gradient(circle, rgba(124,58,237,0.45), transparent 70%);
  animation-delay: 0s; animation-duration: 16s;
}
.orb-2 { width: 500px; height: 500px; top: 40%; right: -8%;
  background: radial-gradient(circle, rgba(167,139,250,0.3), transparent 70%);
  animation-delay: -6s; animation-duration: 20s;
}
.orb-3 { width: 450px; height: 450px; bottom: -10%; left: 30%;
  background: radial-gradient(circle, rgba(240,162,74,0.2), transparent 70%);
  animation-delay: -12s; animation-duration: 22s;
}
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.94); }
  100% { transform: translate(20px, -15px) scale(1.04); }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--violet-400), var(--lilac), var(--gold));
  border-radius: 0 3px 3px 0;
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* ---------- Card 3D tilt (JS-driven) ---------- */
.card-tilt {
  transform-style: preserve-3d; perspective: 1000px;
  transition: transform 0.5s cubic-bezier(.23,1,.32,1), box-shadow 0.5s ease;
  will-change: transform;
}
.card-tilt-inner {
  transform-style: preserve-3d;
}
.card-tilt:hover { transition: transform 0.15s ease-out, box-shadow 0.15s ease-out; }
.card-tilt .tilt-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card-tilt:hover .tilt-shine { opacity: 1; }

/* ---------- Gradient border glow (rotating) ---------- */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--border-angle, 0deg),
    var(--violet-500), var(--lilac), var(--gold), var(--lilac), var(--violet-500));
  animation: borderSpin 6s linear infinite;
  opacity: 0; transition: opacity 0.4s;
}
.gradient-border:hover::before { opacity: 1; }
@keyframes borderSpin { to { --border-angle: 360deg; } }

/* ---------- Shimmer button sweep ---------- */
.btn-shimmer {
  position: relative; overflow: hidden;
}
.btn-shimmer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 30%, rgba(255,255,255,0.15) 45%, rgba(255,255,255,0.25) 50%,
    rgba(255,255,255,0.15) 55%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmerSweep 3s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* ---------- Floating animation (hero mockup) ---------- */
.float-anim {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.float-anim-slow { animation-duration: 8s; }
.float-anim-subtle { animation-duration: 10s; transform-range: -8px; }

/* ---------- Magnetic hover zone ---------- */
.magnetic { transition: transform 0.3s cubic-bezier(.23,1,.32,1); }

/* ---------- Cursor glow (follows mouse on dark bg) ---------- */
.cursor-glow {
  position: fixed; pointer-events: none; z-index: 150;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(167,139,250,0.12), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
  opacity: 0;
}

/* ---------- Section dividers ---------- */
.section-divider {
  height: 1px; border: none; margin: 0;
  background: linear-gradient(90deg, transparent 5%, var(--line-lilac) 50%, transparent 95%);
}
.section-divider-wide {
  background: linear-gradient(90deg, transparent 2%, var(--line-lilac) 30%, var(--line-lilac) 70%, transparent 98%);
}

/* ---------- Counter animation (number reveal) ---------- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---------- Staggered list reveal ---------- */
.stagger-list > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.23,1,.32,1);
}
.stagger-list.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger-list.revealed > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.stagger-list.revealed > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.stagger-list.revealed > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
.stagger-list.revealed > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }
.stagger-list.revealed > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ---------- Enhanced card depth ---------- */
.card-depth {
  transition: transform 0.4s cubic-bezier(.23,1,.32,1),
              box-shadow 0.4s cubic-bezier(.23,1,.32,1),
              border-color 0.3s ease;
}
.card-depth:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--line-lilac);
  border-color: var(--line-lilac);
}

/* ---------- Testimonial carousel ---------- */
.quote-track {
  display: flex; transition: transform 0.6s cubic-bezier(.23,1,.32,1);
}
.quote-slide { flex: 0 0 100%; padding: 0 4px; }
.quote-dots { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.quote-dot {
  width: 8px; height: 8px; border-radius: 50%; cursor: pointer;
  background: var(--text-30); transition: background 0.3s, transform 0.3s;
}
.quote-dot.active { background: var(--lilac); transform: scale(1.4); }

/* ---------- Pulse ring (on CTA buttons) ---------- */
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: ''; position: absolute; inset: -4px; border-radius: inherit;
  border: 2px solid var(--violet-400);
  animation: pulseRing 2.5s ease-out infinite;
  opacity: 0;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.08); opacity: 0; }
}

/* ---------- Glass depth enhancement ---------- */
.glass-deep {
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Section transition fades ---------- */
.section-fade {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.23,1,.32,1);
}
.section-fade:not(.in-view) { opacity: 0.3; transform: translateY(30px); }

/* ---------- Enhanced step cards (connecting line) ---------- */
.step-connected { position: relative; }
.step-connected::after {
  content: ''; position: absolute; top: 32px; right: -14px;
  width: 28px; height: 1.5px;
  background: linear-gradient(90deg, var(--line-lilac), transparent);
}
.step-connected:last-child::after { display: none; }
@media (max-width: 900px) {
  .step-connected:nth-child(even)::after { display: none; }
}
@media (max-width: 520px) {
  .step-connected::after { display: none; }
}

/* ---------- Stat glow (live numbers) ---------- */
.stat-glow {
  text-shadow: 0 0 20px rgba(167,139,250,0.3);
}

/* ---------- Hero text stagger ---------- */
.hero-stagger .kicker, .hero-stagger h1, .hero-stagger .lede {
  opacity: 0; transform: translateY(24px);
}
.hero-stagger.revealed .kicker { animation: fadeUp 0.7s cubic-bezier(.23,1,.32,1) 0.05s forwards; }
.hero-stagger.revealed h1 { animation: fadeUp 0.7s cubic-bezier(.23,1,.32,1) 0.2s forwards; }
.hero-stagger.revealed .lede { animation: fadeUp 0.7s cubic-bezier(.23,1,.32,1) 0.35s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Number roll (odometer-style for counters) ---------- */
.num-roll {
  display: inline-flex; overflow: hidden; vertical-align: bottom;
}

/* ---------- Mobile menu enhancement ---------- */
.mobile-menu {
  transform-origin: top;
  transform: scaleY(0); opacity: 0;
  transition: transform 0.3s cubic-bezier(.23,1,.32,1), opacity 0.25s ease;
}
.mobile-menu.open { transform: scaleY(1); opacity: 1; }

/* ---------- Lazy image fade in ---------- */
img.lazy-img { opacity: 0; transition: opacity 0.5s ease; }
img.lazy-img.loaded { opacity: 1; }

/* ---------- Hover scale (subtle zoom on images) ---------- */
.hover-scale { transition: transform 0.5s cubic-bezier(.23,1,.32,1); }
.hover-scale:hover { transform: scale(1.03); }

/* ---------- Trust badge pulse ---------- */
.tb-item svg { animation: softPulse 3s ease-in-out infinite; }
.tb-item:nth-child(2) svg { animation-delay: 0.5s; }
.tb-item:nth-child(3) svg { animation-delay: 1s; }
.tb-item:nth-child(4) svg { animation-delay: 1.5s; }
@keyframes softPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ---------- Enhanced focus ring ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--lilac); outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(167,139,250,0.15);
}

/* ---------- Chip active pop ---------- */
.chip {
  transition: all 0.22s cubic-bezier(.23,1,.32,1);
}
.chip.active {
  transform: scale(1.04);
}

/* ---------- Better button press ---------- */
.btn:active {
  transform: scale(0.97) translateY(1px);
  transition: transform 0.1s ease;
}

/* ---------- Planner number animation ---------- */
.proj-big {
  transition: color 0.3s;
}
.proj-big.pulse-once {
  animation: numPop 0.5s cubic-bezier(.23,1,.32,1);
}
@keyframes numPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ---------- Video play button enhancement ---------- */
.video-frame {
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.video-frame:hover {
  box-shadow: 0 0 60px rgba(124,58,237,0.3), var(--sh-lg);
  transform: scale(1.01);
}
.video-frame video { object-fit: cover; }

/* ---------- Logo bounce on brand hover ---------- */
.brand img { transition: transform 0.3s cubic-bezier(.23,1,.32,1); }
.brand:hover img { transform: scale(1.06); }

/* ---------- Nav link underline animation ---------- */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 1px;
  background: var(--lilac);
  transition: width 0.3s cubic-bezier(.23,1,.32,1);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }

/* ---------- Store badge lift ---------- */
.store-badge { transition: transform 0.3s cubic-bezier(.23,1,.32,1), border-color 0.3s, box-shadow 0.3s; }
.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* ---------- Quote card hover lift ---------- */
.quote { transition: transform 0.35s cubic-bezier(.23,1,.32,1), box-shadow 0.35s ease; }
.quote:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* ---------- Scrollbar styling ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb {
  background: rgba(167,139,250,0.25); border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(167,139,250,0.45); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ambient-orbs { display: none; }
  .cursor-glow { display: none; }
}

/* ============================================================
   PDF redesign – sections 2-5
   ============================================================ */

/* --- Feature cards with photo panels --- */
.feat--img {
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0;
  min-height: 320px;
  overflow: hidden;
}
.feat--img .feat-body {
  flex: 0 0 52%;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, rgba(7,3,22,1) 55%, rgba(7,3,22,0.7) 80%, transparent 100%);
}
.feat--img .feat-body .feat-ico { margin-bottom: 16px; }
.feat--img .feat-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feat--img .feat-body p { color: var(--text-80); font-size: 0.95rem; line-height: 1.55; }
.feat--img .feat-body p + p { margin-top: 8px; }
.feat--img .feat-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  mask-image: linear-gradient(to right, transparent 0%, black 16%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%, black 100%);
  z-index: 1;
}
#difference .stat-grid .feat--img:nth-child(4) .feat-img {
  mask-image: linear-gradient(to right, transparent 0%, transparent 10%, black 36%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 10%, black 36%, black 100%);
}
@media (max-width: 600px) {
  .feat--img { flex-direction: column; }
  .feat--img .feat-body { flex: none; max-width: 100%; background: none; }
  .feat--img .feat-img {
    position: relative;
    right: auto; top: auto;
    width: 100%; height: 200px; min-height: 0;
    background-size: cover;
    background-position: center center;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
  }
}

/* --- Video poster (4.png as click-to-play cover) --- */
.video-poster-wrap {
  margin-top: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.video-poster {
  line-height: 0;
  display: block;
  transition: opacity 0.2s;
}
.video-poster:hover { opacity: 0.9; }
.video-poster img { width: 100%; display: block; }
#hero-video { display: none; width: 100%; }
#hero-video.playing { display: block; }

/* --- Section: How it works (#how) background --- */
#how {
  position: relative;
}
#how::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/home/how-it-works-background.webp') center center / cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}
#how > .wrap { position: relative; z-index: 1; }

/* --- Section: Testimonials (#customers) background --- */
#customers {
  position: relative;
  overflow: hidden;
}
.customers-bg {
  position: absolute;
  inset: 0;
  background: url('../img/home/members-background.webp') center center / cover no-repeat;
  z-index: 0;
}
.customers-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6,3,26,0.66);
}
#customers > .wrap { position: relative; z-index: 1; }
#customers .stat-grid { grid-auto-rows: 1fr; }
#customers .card { height: 100%; box-sizing: border-box; }
#customers .card {
  background:
    linear-gradient(160deg, rgba(8,4,28,0.82), rgba(14,7,44,0.74)) padding-box,
    linear-gradient(135deg,
      rgba(255,255,255,1)   0%,
      rgba(255,255,255,1)   2%,
      rgba(200,160,255,0.3) 12%,
      rgba(100,60,200,0.06) 35%,
      rgba(100,60,200,0.06) 65%,
      rgba(200,160,255,0.3) 88%,
      rgba(255,255,255,1)   98%,
      rgba(255,255,255,1)   100%
    ) border-box;
  border: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    -4px -4px 18px rgba(255,255,255,0.28),
    4px  4px  18px rgba(170,110,255,0.30),
    0 8px 30px rgba(0,0,0,0.45);
}

/* --- Section: Protection (#trust) background --- */
#trust {
  position: relative;
}
#trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/home/trust-background.webp') center center / cover no-repeat;
  opacity: 0.6;
  z-index: 0;
}
#trust > .wrap { position: relative; z-index: 1; }

/* --- Section: Pricing (#pricing) background --- */
#pricing {
  position: relative;
}
#pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/home/pricing-background.webp') center top / cover no-repeat;
  opacity: 0.85;
  z-index: 0;
}
#pricing > .wrap { position: relative; z-index: 1; }

/* Scrim between a section's background photograph and its copy. WealthKernel
   asked for text over images to be fully readable; these sit above the image
   layer (z-index 0) and below .wrap (z-index 1). */
#how::after, #trust::after, #pricing::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,3,26,0.42) 0%, rgba(6,3,26,0.58) 100%);
}
#pricing { overflow: hidden; }


/* --- Section: Final CTA (#start) photo background --- */
#start {
  position: relative;
  overflow: hidden;
  padding-block: 0;
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/home/cta-background.webp');
  background-size: cover;
  background-position: 82% 50%;
  z-index: 0;
}
.cta-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(6,3,26,0.62) 0%,
    rgba(6,3,26,0.48) 45%,
    rgba(6,3,26,0.60) 100%
  );
}
#start > .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 892px;
  padding-top: 28px;
  padding-bottom: 28px;
  padding-left: 56px;
  padding-right: 20px;
}
#start .signup {
  max-width: 792px;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  padding: clamp(14px, 2vw, 24px);
}
#start .h-xl { line-height: 1.15; font-size: clamp(1.85rem, 3.9vw, 2.9rem); }
#start .lede { font-size: clamp(0.78rem, 0.95vw, 0.88rem); margin-top: 8px !important; }
#start .fine { font-size: 0.78rem; }
#start .cta-reassure { margin-top: 8px !important; }
#start .signup-grid { gap: clamp(14px, 2vw, 24px); }
#start .signup::before {
  background: none;
  border: 1.5px solid rgba(210,180,255,0.65);
  box-shadow: 0 0 28px rgba(167,139,250,0.5), 0 0 60px rgba(124,58,237,0.2), inset 0 0 20px rgba(167,139,250,0.08);
}
@media (max-width: 900px) {
  #start > .wrap { justify-content: center; }
  #start .signup { max-width: 100%; }
  .cta-photo-bg { opacity: 0.45; }
}

/* ============================================================
   About page — hero
   ============================================================ */
.ahero {
  position: relative;
  padding-top: clamp(60px, 8vw, 120px);
  padding-bottom: clamp(80px, 10vw, 150px);
  overflow: hidden;
}
.ahero-rhs {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(460px, 64vw, 860px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
/* Two-layer overlay: fade left edge + bottom edge to bg colour, late-starting so no hard line */
.ahero::after {
  content: "";
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(460px, 64vw, 860px);
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(to right, #06031a 0%, transparent 22%),
    linear-gradient(to top,   #06031a 0%, transparent 22%);
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .ahero-rhs { width: 80vw; right: -5%; opacity: 0.35; }
  .ahero::after { display: none; }
}
/* Dark overlay so left-side text stays readable */
.ahero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6,3,26,0.85) 0%, rgba(6,3,26,0.60) 45%, rgba(6,3,26,0.10) 75%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* Push text flush-left — no centre offset */
.ahero > .wrap {
  position: relative;
  z-index: 2;
  margin-left: 48px;
  padding-left: clamp(20px, 3vw, 48px);
}
.ahero-h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.ahero-lede {
  margin-top: 22px;
  max-width: 39ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--text-80);
  line-height: 1.65;
  font-weight: 400;
}
.ahero-lede p { margin: 0; }
.ahero-lede strong { font-weight: 700; color: var(--text); }
.ahero-bullets { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; max-width: max-content; font-size: 0.92em; }
.ahero-bullets li { position: relative; padding-left: 1.1em; white-space: nowrap; }
.ahero-bullets li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-400); }
/* "Investwizz" in the hero heading: rich violet gradient, no white */
.ahero-h1 .text-lilac {
  background: linear-gradient(100deg, var(--violet-600) 0%, var(--violet-500) 45%, var(--violet-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
/* Risk disclaimer: bullet top-aligned so text wraps cleanly beneath it */
.ahero .risk-inline { align-items: flex-start; }
.ahero .risk-inline::before { margin-top: 0.38em; flex-shrink: 0; }
html.js .ahero .reveal { opacity: 1; transform: none; transition: none; }
@media (max-width: 768px) {
  .ahero { background-size: cover; background-position: right center; }
  .ahero > .wrap { margin-left: auto; padding-left: clamp(20px, 5vw, 40px); }
  .ahero-lede { max-width: none; }
}
