/* ============================================================
   BRAINZIE MONEY — DESIGN SYSTEM
   A focused sub-brand of Brainzie. Inherits Brainzie's magenta
   identity, Space Grotesk / Inter type and rounded shapes; adds
   the two semantic hues a money product needs (gain / loss) and
   a calm "growth" accent. Self-contained — the landing + style
   guide ship without depending on the parent brainzie repo.
   ============================================================ */

:root {
  /* ---- Brainzie signature (unchanged — this is the parent brand) ---- */
  --brand:        #D81B72;   /* magenta — the one hue people remember */
  --brand-deep:   #A8155A;   /* hovers / pressed / text-on-light      */
  --brand-tint:   #FCE4F0;   /* soft fills, badges, selection         */
  --secondary:    #6D28D9;   /* violet — depth, supporting headings   */
  --accent-orange:#FB8B24;   /* a spark — highlights only             */

  /* ---- Money semantics (the sub-brand's own dimension) ---- */
  --gain:      #0FA678;      /* growth / positive net worth / "up"    */
  --gain-deep: #0B7E5B;      /* gain on light text, hovers            */
  --gain-tint: #DCF5EC;      /* soft positive fills, badges           */
  --loss:      #E5484D;      /* drawdowns / negative / "down"         */
  --loss-tint: #FCE3E4;      /* soft negative fills                   */

  /* ---- Neutrals (warm, slightly violet — never cold grey) ---- */
  --ink:      #18122B;
  --ink-soft: #4A4361;
  --muted:    #847B9C;
  --line:     #ECE7F2;
  --paper:    #FDFBFE;
  --paper-2:  #F6F1FB;
  --white:    #FFFFFF;

  /* ---- Gradients: a flourish, not the identity ---- */
  --grad-brand:  linear-gradient(135deg, #6D28D9 0%, #D81B72 60%, #FB8B24 120%);
  --grad-growth: linear-gradient(135deg, #6D28D9 0%, #D81B72 55%, #0FA678 110%);

  /* ---- Type ---- */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ---- Shape & depth ---- */
  --radius:   18px;
  --radius-s: 11px;
  --shadow:   0 20px 54px -24px rgba(46,16,101,.42);
  --shadow-s: 0 10px 26px -16px rgba(46,16,101,.38);
  --maxw: 1140px;
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--brand-tint); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { color: var(--ink-soft); }

.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
section { padding: 92px 0; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 600; color: var(--secondary); margin-bottom: 14px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ============================ BUTTONS ============================ */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1.6px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { background: var(--brand-tint); }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* ============================ NAV ============================ */
header.nav { position: sticky; top: 0; z-index: 50; background: rgba(253,251,254,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: 0 0 40px; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.03em; color: var(--ink); }
.brand .name b { color: var(--brand); font-weight: 700; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-family: var(--font-display); color: var(--ink-soft); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-deep); text-decoration: none; }
.nav-cta { padding: 9px 20px; }

/* ============================ HERO ============================ */
.hero { position: relative; overflow: hidden; background: var(--paper-2); padding: 108px 0 92px; }
.hero::after { content:""; position:absolute; right:-160px; top:-150px; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(216,27,114,.16), transparent 65%); pointer-events:none; }
.hero::before { content:""; position:absolute; left:-180px; bottom:-180px; width:480px; height:480px; border-radius:50%; background: radial-gradient(circle, rgba(15,166,120,.13), transparent 65%); pointer-events:none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.26rem; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-sub { margin-top: 18px; font-size: .92rem; color: var(--muted); display:flex; align-items:center; gap:8px; }
.hero-sub .dot { width:7px; height:7px; border-radius:50%; background: var(--gain); box-shadow: 0 0 0 4px var(--gain-tint); }

/* ============================ HERO ART: net-worth card ============================ */
.nw-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 26px 26px 8px; position: relative; }
.nw-head { display:flex; align-items:baseline; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.nw-label { font-family: var(--font-display); font-size:.8rem; text-transform:uppercase; letter-spacing:.14em; color: var(--muted); }
.nw-val { font-family: var(--font-display); font-weight:700; font-size: 2.5rem; color: var(--ink); letter-spacing:-.02em; margin-top:2px; }
.nw-delta { display:inline-flex; align-items:center; gap:5px; font-family: var(--font-display); font-weight:600; font-size:.9rem; color: var(--gain-deep); background: var(--gain-tint); padding:4px 11px; border-radius:999px; white-space:nowrap; }
.nw-chart { display:block; width:100%; height:140px; margin-top:6px; }
.nw-legend { display:flex; gap:18px; padding: 12px 2px 16px; flex-wrap:wrap; }
.nw-legend .k { display:flex; align-items:center; gap:7px; font-size:.84rem; color: var(--ink-soft); }
.nw-legend .k i { width:10px; height:10px; border-radius:3px; display:inline-block; }

/* ============================ TRUST STRIP ============================ */
.stats { background: var(--ink); color: var(--white); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: #FF7FB4; }
.stat .n.g { color: #41D6A2; }
.stat .l { color: #C9C2DE; font-size: .94rem; margin-top: 2px; }

/* ============================ CARDS / FEATURES ============================ */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.cards.two { grid-template-columns: repeat(2,1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
a.card:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-tint); color: var(--brand-deep); }
.card .ico.violet { background:#EEE7FB; color: var(--secondary); }
.card .ico.green  { background: var(--gain-tint); color: var(--gain-deep); }
.card .ico svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .99rem; }

/* ============================ HOW IT WORKS ============================ */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 46px; counter-reset: step; }
.step { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding: 28px; position:relative; }
.step .n { counter-increment: step; font-family: var(--font-display); font-weight:700; color: var(--brand-deep); background: var(--brand-tint); width:40px; height:40px; border-radius:11px; display:grid; place-items:center; font-size:1.1rem; margin-bottom:16px; }
.step .n::before { content: counter(step); }
.step h4 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .96rem; }

/* ============================ SPLIT FEATURE ============================ */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items:center; }
.feat { display:grid; gap:14px; margin-top: 22px; }
.feat .row { display:flex; gap:13px; align-items:flex-start; }
.feat .row .tick { flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:var(--gain-tint); color:var(--gain-deep); display:grid; place-items:center; font-weight:700; font-size:.8rem; margin-top:2px; }
.feat .row b { font-family: var(--font-display); color: var(--ink); }

/* ============================ PRIVACY PANEL ============================ */
.panel { background: var(--ink); color:#E7E2F2; border-radius: 26px; padding: 52px 48px; display:grid; grid-template-columns: 64px 1fr; gap: 26px; align-items:start; }
.panel .shield { width:64px; height:64px; color:#FF7FB4; }
.panel h2 { color: var(--white); margin-bottom: 12px; }
.panel p { color:#C9C2DE; max-width: 64ch; }
.panel p + p { margin-top: 12px; }

/* ============================ PRICING ============================ */
.prices { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 46px; max-width: 760px; margin-inline:auto; }
.price { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; display:flex; flex-direction:column; }
.price.feature { border-color: var(--brand); box-shadow: var(--shadow); position:relative; }
.price.feature .tag { position:absolute; top:-13px; left:30px; background: var(--brand); color:var(--white); font-family:var(--font-display); font-weight:600; font-size:.74rem; letter-spacing:.08em; text-transform:uppercase; padding:5px 13px; border-radius:999px; }
.price .pname { font-family: var(--font-display); font-weight:700; font-size:1.2rem; }
.price .cost { font-family: var(--font-display); font-weight:700; font-size:2.4rem; margin:10px 0 2px; color: var(--ink); letter-spacing:-.02em; }
.price .cost small { font-size:1rem; font-weight:500; color: var(--muted); }
.price .note { color: var(--muted); font-size:.9rem; margin-bottom:18px; }

/* Two billing cadences, each at an introductory price anchored against the struck-through regular price. */
.price .cadences { display:grid; gap:12px; margin:10px 0 16px; }
.price .cadence { position:relative; border:1px solid var(--line); border-radius: var(--radius-s); padding:12px 14px; }
.price .cadence--best { border-color: var(--brand); }
.price .cadence__flag { position:absolute; top:-10px; right:12px; background:var(--brand); color:var(--white); font-family:var(--font-display); font-weight:600; font-size:.62rem; letter-spacing:.07em; text-transform:uppercase; padding:3px 9px; border-radius:999px; }
.price .cadence__price { font-family:var(--font-display); font-weight:700; font-size:1.6rem; color:var(--ink); letter-spacing:-.02em; }
.price .cadence__price small { font-size:.9rem; font-weight:500; color:var(--muted); }
.price .cadence__anchor { margin-top:3px; font-size:.88rem; color:var(--muted); display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.price .cadence__save { color:var(--brand-deep); font-weight:600; background:var(--brand-tint); border-radius:999px; padding:2px 9px; font-size:.76rem; }

.price ul { list-style:none; display:grid; gap:10px; margin: 4px 0 24px; }
.price li { display:flex; gap:10px; font-size:.97rem; color: var(--ink-soft); }
.price li svg { flex:0 0 18px; width:18px; height:18px; color: var(--gain); margin-top:3px; }
.price .btn { margin-top:auto; justify-content:center; }

.value-note { max-width: 760px; margin: 30px auto 0; background: var(--brand-tint); border: 1px solid var(--brand); border-radius: var(--radius); padding: 28px 32px; text-align: center; }
.value-note h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--brand-deep); margin-bottom: 12px; }
.value-note p { color: var(--ink-soft); max-width: 62ch; margin: 0 auto; }
.value-note p + p { margin-top: 12px; }

/* ============================ COMPARE TABLE ============================ */
.tablewrap { overflow-x: auto; margin-top: 46px; -webkit-overflow-scrolling: touch; }
.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 720px; font-size: .96rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s); }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-weight: 600; font-size: .95rem; background: var(--paper-2); color: var(--ink); }
.compare thead th.me, .compare tbody td.me { background: var(--brand-tint); }
.compare thead th.me { color: var(--brand-deep); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare td small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; line-height: 1.4; }
.compare .y { color: var(--gain-deep, #0B7A57); font-weight: 700; }
.compare .n { color: var(--muted); font-weight: 600; }
.compare .p { color: var(--secondary); font-weight: 600; }
.compare-note { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 16px; max-width: 64ch; margin-inline: auto; }

/* ============================ REAL QUESTIONS ============================ */
.rq { background: var(--ink); }
.rq-copy { color: #C9C2DE; max-width: 62ch; margin: 16px 0 36px; font-size: 1.05rem; }
.rq-qs { display: grid; gap: 14px; max-width: 60ch; }
.rq-q { color: #E7E2F2; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding-left: 20px; border-left: 3px solid rgba(216,27,114,.5); }
.rq-sub { color: #847B9C; font-size: .94rem; margin-top: 28px; font-style: italic; }

/* ============================ CTA BAND ============================ */
.ctaband { background: var(--grad-growth); color: var(--white); border-radius: 28px; padding: 62px 44px; text-align:center; box-shadow: var(--shadow); }
.ctaband h2 { color: var(--white); margin-bottom: 12px; }
.ctaband p { color: rgba(255,255,255,.92); max-width: 56ch; margin: 0 auto 28px; font-size:1.08rem; }

/* ============================ FOOTER ============================ */
footer { background: var(--ink); color: #C9C2DE; padding: 52px 0 30px; }
.foot-grid { display:flex; justify-content:space-between; gap:30px; flex-wrap:wrap; }
.foot-brand { display:flex; align-items:center; gap:11px; color:var(--white); }
.foot-brand .name { font-family:var(--font-display); font-weight:700; font-size:1.2rem; }
.foot-brand .name b { color:#FF7FB4; }
.foot-col h5 { font-family:var(--font-display); color:var(--white); font-size:.92rem; margin-bottom:10px; }
.foot-col a { display:block; color:#C9C2DE; font-size:.92rem; margin-bottom:7px; }
.foot-col a:hover { color:var(--white); }
.foot-note { width:100%; border-top:1px solid rgba(255,255,255,.12); margin-top:30px; padding-top:20px; font-size:.84rem; color:var(--muted); }

/* ============================ STYLE-GUIDE PAGE ============================ */
.pagehead { background: var(--paper-2); padding: 76px 0 60px; border-bottom:1px solid var(--line); }
.crumbs { font-family: var(--font-display); font-size:.85rem; color: var(--muted); margin-bottom:16px; }
.sg-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.sg-section h2 { margin-bottom: 8px; }
.swatches { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap:16px; margin-top:28px; }
.sw { border:1px solid var(--line); border-radius: var(--radius-s); overflow:hidden; }
.sw .chip { height:84px; }
.sw .meta { padding:12px 14px; }
.sw .meta .nm { font-family: var(--font-display); font-weight:600; font-size:.95rem; }
.sw .meta .hex { font-family: var(--font-body); font-size:.84rem; color: var(--muted); text-transform:uppercase; }
.sw .meta .use { font-size:.8rem; color: var(--ink-soft); margin-top:4px; }
.icongrid { display:grid; grid-template-columns: repeat(auto-fill, minmax(118px,1fr)); gap:14px; margin-top:28px; }
.icell { border:1px solid var(--line); border-radius: var(--radius-s); padding:20px 10px 12px; text-align:center; background: var(--white); }
.icell svg { width:30px; height:30px; color: var(--brand-deep); }
.icell .lbl { font-size:.8rem; color: var(--ink-soft); margin-top:12px; font-family: var(--font-display); }
.typ-row { display:flex; align-items:baseline; gap:18px; flex-wrap:wrap; padding:14px 0; border-bottom:1px dashed var(--line); }
.typ-row .tag { font-family: var(--font-body); font-size:.8rem; color: var(--muted); min-width:120px; }
.do-dont { display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-top:28px; }
.dd { border-radius: var(--radius-s); padding:20px 22px; border:1px solid var(--line); }
.dd h4 { font-size:1rem; margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.dd.do  { background: var(--gain-tint); border-color:#B9E8D6; }
.dd.do h4 { color: var(--gain-deep); }
.dd.dont { background: var(--loss-tint); border-color:#F3C7C9; }
.dd.dont h4 { color: var(--loss); }
.dd ul { margin: 0 0 0 1.1rem; font-size:.94rem; color: var(--ink-soft); }
.dd li { margin-bottom:5px; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-sub { justify-content:center; }
  .split { text-align:left; }
  .hero-art { order:-1; }
  .cards, .cards.two, .steps, .stats-grid, .prices, .do-dont { grid-template-columns: 1fr 1fr; }
  .panel { grid-template-columns: 1fr; }
  .nav-links { display:none; }
}
@media (max-width: 600px) {
  section { padding: 60px 0; }
  .cards, .cards.two, .steps, .stats-grid, .prices, .do-dont, .split { grid-template-columns: 1fr; }
}
