/* 18 palette: deep navy, warm ivory, soft gold, muted sage. Token names kept for re-branding. */
:root { --paper: #F4EFE4; --ivory: #EBE3D1; --ink: #13203A; --ink-2: #1C2E50; --mute: #646A74; --mute-d: #A9B3C8;
  --line: rgba(19,32,58,.14); --line-d: rgba(244,239,228,.16); --green: #4A7A60; --green-2: #86B196;
  --brass: #D4A85A; --brass-l: #E8C98C; --gold-d: #946D22; --goldtint: #F0DFB4; }
/* 18 Cards: bento of self-contained mini explainers. Tokens only from ../shared/brand.css */
html { scroll-behavior: auto; }
body { padding-bottom: 72px; overflow-x: hidden; }
main { display: block; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.35rem); color: var(--mute); margin: 0; max-width: 34ch; }

.card {
  --fg: var(--ink); --soft: rgba(15,20,23,.2); --acc: var(--green); --hi: var(--brass);
  --cardbg: var(--paper); --tint: rgba(29,90,76,.16); --mutec: var(--mute); --pa: var(--paper);
  position: relative; background: var(--ivory); color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; box-shadow: none;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card.dark {
  --fg: var(--paper); --soft: rgba(244,239,228,.26); --acc: var(--green-2); --cardbg: var(--ink-2);
  --tint: rgba(134,177,150,.28); --mutec: var(--mute-d); --pa: var(--ink);
  background: var(--ink); color: var(--paper); border-color: var(--line-d);
}
.card[data-demo]:hover { transform: translateY(-2px); border-color: rgba(19,32,58,.34); }
.dark[data-demo]:hover { border-color: rgba(246,243,236,.34); }
.card h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); margin: 18px 0 6px; }
.card p { margin: 0; font-size: 1.125rem; color: var(--mute); max-width: 30ch; line-height: 1.4; }
.card.dark p { color: var(--mute-d); }

.rp { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--mutec); cursor: pointer; transition: background .3s, color .3s; z-index: 2; }
.dark .rp { border-color: var(--line-d); }
.rp:hover { background: var(--fg); color: var(--cardbg); }
.rp:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.rp svg { width: 100%; height: 100%; }

/* diagrams */
.dg { width: 100%; height: 170px; overflow: visible; }
.dg .t { font-family: var(--mono); font-size: 10.5px; fill: var(--mutec); letter-spacing: .02em; }
.dg .t-fg { fill: var(--fg); } .dg .t-pa { fill: var(--pa); } .dg .t-bg { fill: var(--cardbg); font-weight: 500; }
.ln { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.st-soft { stroke: var(--soft); } .st-fg { stroke: var(--fg); } .st-acc { stroke: var(--acc); } .st-hi { stroke: var(--hi); }
.f-acc { fill: var(--acc); } .f-hi { fill: var(--hi); } .f-tint { fill: var(--tint); } .f-soft { fill: var(--soft); } .f-pa { fill: var(--pa); }
.chk { stroke: var(--pa); stroke-width: 1.8; } .chk-d { stroke: var(--ink); stroke-width: 1.8; }
.fld, .base { fill: var(--cardbg); stroke: var(--soft); stroke-width: 1; }
.tint { fill: var(--tint); stroke: var(--acc); stroke-width: 1; }
.box { fill: var(--cardbg); }
.warn { fill: none; }
.rng { fill: var(--acc); opacity: .22; }
.ln-b { opacity: .9; }
.fld + .fill { stroke: none; }

/* hero: full-bleed navy; headline interlocks with one big report card assembled from documents */
.hero { background: var(--ink); color: var(--paper); overflow: clip; padding: clamp(84px, 11vh, 110px) 0 clamp(40px, 6vh, 72px); min-height: 100svh; display: flex; align-items: center; }
.hero-in { display: grid; grid-template-columns: 100%; width: min(100% - 2 * var(--gutter), var(--max)); }
.hero h1 { display: contents; }
.hero h1 span { display: block; font-size: clamp(2.7rem, 7.6vw, 8.8rem); line-height: .92; position: relative; z-index: 2; }
.hero h1 .l1 { color: var(--paper); margin-bottom: -.04em; }
.hero h1 .l2 { text-align: right; color: var(--brass); margin-top: -.06em; }
.hero-card { z-index: 1; display: grid; grid-template-columns: minmax(250px, 31%) 1fr; gap: clamp(20px, 3vw, 48px); padding: clamp(24px, 2.8vw, 40px); background: transparent; border-color: transparent; margin: clamp(10px, 1.6vh, 20px) 0; perspective: 1200px; }
.hero-card:hover { transform: none !important; border-color: transparent !important; }
.hero-card .panel { position: absolute; inset: 0; background: var(--ink-2); border: 1px solid rgba(246,243,236,.14); border-radius: 22px; z-index: -1; box-shadow: inset 0 1px 0 rgba(246,243,236,.14), inset 0 60px 80px -60px rgba(212,168,90,.14), 0 40px 80px -30px rgba(0,0,0,.6); }
.docs { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.doc { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 3px; align-items: baseline; position: relative; background: var(--paper) repeating-linear-gradient(transparent 0 17px, rgba(19,32,58,.045) 17px 18px); color: var(--ink); padding: 12px 16px; min-height: 64px; border-radius: 6px; font-family: var(--mono); line-height: 1.2; box-shadow: 0 8px 16px -6px rgba(0,0,0,.45), inset 0 0 0 1px rgba(19,32,58,.07); will-change: transform; }
.doc b { font-weight: 500; font-size: 1.08rem; letter-spacing: -.01em; text-align: right; }
.d-k { text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; color: var(--mute); }
.doc i { grid-column: 1 / -1; font-style: normal; color: var(--mute); font-size: .74rem; }
.receipt { border-radius: 3px 3px 0 0; padding-bottom: 18px; box-shadow: none; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 12px 100%; }
.bank { border-left: 4px solid var(--green); } .bank .pos { color: var(--green); }
.pay::after { content: ""; position: absolute; right: 16px; top: 38px; width: 64px; height: 3px; border-radius: 2px; background: rgba(19,32,58,.2); box-shadow: 0 -6px 0 -0px rgba(19,32,58,.12); }
.f1099 { box-shadow: 0 8px 16px -6px rgba(0,0,0,.45), inset 0 0 0 1.5px var(--ink); } .f1099 b { border: 1px solid var(--ink); padding: 1px 7px; }
.inv { border-top: 4px solid var(--brass); }
.rcol { display: flex; flex-direction: column; min-width: 0; }
.rep-head { display: flex; align-items: center; justify-content: space-between; margin-right: 40px; }
.rep-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: clamp(10px, 2vh, 22px) 0 16px; }
.rep-nums div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rep-nums b { font-family: var(--mono); font-weight: 500; font-size: clamp(1.4rem, 3.5vw, 3.5rem); letter-spacing: -.03em; line-height: 1; font-feature-settings: "tnum" 1; white-space: nowrap; }
.rep-nums b.hi { color: var(--brass); }
.live { height: 30px; margin-top: clamp(8px, 1.6vh, 16px); overflow: hidden; }
.lv { display: inline-block; font-family: var(--mono); font-size: .8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-d); color: var(--paper); opacity: 0; }
.lv.in { color: var(--paper); } .lv b { font-weight: 500; color: var(--green-2); } .lv b.neg { color: var(--brass-l); }
.spark { width: 100%; flex: 1; min-height: 110px; overflow: visible; }
.spark .area { fill: var(--brass); opacity: .12; }
.spark .line { stroke: var(--brass); stroke-width: 2.5; }
.spark .ln, .spark .line { vector-effect: non-scaling-stroke; }
.hero .lead { color: var(--mute-d); }
.hero .mh-btn { background: var(--brass); color: var(--ink); }
.hero .mh-btn:hover { background: var(--brass-l); }
.hero-foot { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; margin-top: clamp(12px, 2.4vh, 24px); }
.hero-foot .lead { max-width: 40ch; }

/* sections */
.sec { padding-top: clamp(64px, 10vh, 120px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); margin: 0; }
.sec-head h2 em { color: var(--green); }

/* bento: 6 cols */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.c-tax, .c-books, .c-audit, .c-wealth { grid-column: span 2; }
.c-adv { grid-column: span 4; }
.c-adv .dg { height: 190px; }
.c-wealth { }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step { overflow: visible; }
.step .label { display: block; margin-bottom: 4px; }
.conn { position: absolute; top: 50%; right: -49px; width: 48px; height: 1px; background: var(--ink); opacity: .55; transform: scaleX(var(--p, 1)); transform-origin: left center; }
.conn::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg) scale(var(--ah, 1)); }

/* proof */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { padding: 30px 26px; }
.stat .big { display: block; font-size: clamp(2.4rem, 3.6vw, 3.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--green); margin-bottom: 14px; }
.quote { grid-column: 1 / -1; margin: 0; padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.quote blockquote { margin: 0; font-size: clamp(1.8rem, 3.2vw, 3rem); max-width: 26ch; line-height: 1.05; }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.contact h2 { font-size: clamp(2.8rem, 5.4vw, 5rem); margin: 0 0 14px; }
.contact h2 em { color: var(--green); }
.contact .lead { margin-bottom: 28px; }
.facts { margin: 0; display: grid; gap: 18px; }
.facts dd { margin: 4px 0 0; font-size: 1.2rem; }
.foot { padding: 48px 0 24px; color: var(--mute); font-size: .95rem; }

@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 96px; }
  .hero-card { grid-template-columns: 1fr; }
  .docs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-tax, .c-books, .c-audit, .c-wealth { grid-column: span 1; }
  .c-adv { grid-column: span 2; }
  .steps { gap: 20px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bento, .steps { grid-template-columns: 1fr; }
  .c-adv { grid-column: span 1; }
  .steps { gap: 44px; }
  .conn { top: auto; bottom: -45px; right: auto; left: 50%; width: 1px; height: 44px; transform: scaleY(var(--p, 1)); transform-origin: top center; }
  .conn::after { right: -3px; top: auto; bottom: -1px; transform: rotate(135deg) scale(var(--ah, 1)); }
  .card { padding: 22px; }
  .rep-nums { gap: 8px; }
  .docs { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .doc { padding: 8px 10px; min-height: 44px; }
  .doc b { font-size: .8rem; }
  .hero h1 span { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .hero-card .rp { top: 10px; right: 10px; }
  .spark { min-height: 90px; }
  .proof { gap: 12px; }
  .stat { padding: 22px 18px; }
  .stat p { font-size: 1rem; }
  .dg { height: 150px; }
  .c-adv .dg { height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .card, .card[data-demo]:hover { transform: none; } .rp { display: none; } }

/* editorial touches */
.bento { counter-reset: c; } .bento .card { counter-increment: c; }
.bento .card::before { content: "0" counter(c); position: absolute; top: 22px; left: 26px; font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; color: var(--mute); }
.bento .card.dark::before { color: var(--mute-d); }
.bento .dg { margin-top: 26px; }
.sec-head { position: relative; padding-bottom: 22px; }
.sec-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); opacity: .5; transform: scaleX(var(--p, 1)); transform-origin: left; }
.mh-btn .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.mh-btn:hover .arr { transform: translateX(4px); }
.facts dd, .foot span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; }
.foot a { text-decoration: none; }
.docs, .doc { min-width: 0; } .hero-card > * { min-width: 0; }

.card.gold { --cardbg: #FAF4E3; --soft: rgba(19,32,58,.3); --tint: rgba(74,122,96,.2); background: var(--goldtint); border-color: rgba(148,109,34,.35); }
.card.gold p, .card.gold .label { color: #5B5440; }
.bento::before, .bento .card::before { content: none; } .bento .dg { margin-top: 20px; }
.sec-head h2 em, .contact h2 em, .stat .big { color: var(--gold-d); }
.stat .big { color: var(--ink); }
.band { background: var(--ink); color: var(--paper); margin-top: clamp(64px, 10vh, 120px); padding: clamp(56px, 9vh, 104px) 0; }
.band .sec-head::after { background: var(--paper); }
.band .sec-head h2 em { color: var(--brass); }
.band .stat { background: var(--paper); }
.quote blockquote { color: var(--ink); } .quote .label { color: #5B5440; }
@media (min-width: 981px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .c-tax { grid-column: span 5; } .c-adv { grid-column: span 7; }
  .c-books, .c-audit, .c-wealth { grid-column: span 4; }
  .c-tax .dg { height: 200px; } .c-adv .dg { height: 200px; }
}
@media (max-width: 760px) { .hero { padding-bottom: 100px; } .hero-card { padding-top: 46px; } .doc .d-k { font-size: .6rem; letter-spacing: .06em; } .doc i { display: none; } .doc { min-height: 48px; padding: 9px 12px; } .doc b { font-size: .9rem; } .pay::after { display: none; } .band { margin-top: 56px; } }
.mh-nav { mix-blend-mode: normal; background: var(--ink); color: var(--paper); padding-block: 14px; }
.hero { padding-top: clamp(96px, 12vh, 120px); }
.doc i, .d-k { white-space: nowrap; }
@media (max-width: 760px) { .rep-nums b { font-size: 1.2rem; } .rep-nums { gap: 6px; } .hero { padding-top: 92px; } }
@media (max-width: 760px) { .d-k { white-space: normal; } .inv .d-k { max-width: 7ch; } }
