/* ============================================================================
   LANDING — FULL PORTFOLIO RESTYLE (operator order, 2026-12-01)
   Safe copy only: website_davfx-24032026. Content is unchanged; every visual
   token now comes from the /portfolio/ design system.

   THE HERO IS UNTOUCHED, BY SCAFFOLDING, NOT BY GOOD INTENTIONS:
     #hero, #dv-hero-v2, #dv-hero-root, .hero-vignette, .hero-btn, #dv-hero-v2 *
     never appear in any selector below. The hero's art is animation-driven
     (heroRise / livePulse / charIn / heroScale / sparkPulse / tradeIn).
     Everything here is scoped to `#hero ~ section` or to named site chrome
     (header / footer / mobile menu / FAQ modal / toast).
   ============================================================================ */
:root {
  --pf-bg:#050506; --pf-surface:#0a0a0c; --pf-ink:#f5f5f3;
  --pf-mute:#a4a4a1; --pf-dim:#6f6f70;
  --pf-line:rgba(255,255,255,.13); --pf-line-hi:rgba(255,255,255,.28);
  --pf-up:#54d6a0;
  --pf-sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --pf-label:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
  --pf-sec-pad:4.5rem;
}

/* ---- 1. Static outside the hero; flat black canvas --------------------- */
#hero ~ section, #hero ~ section * { animation:none !important; transition:none !important; scroll-behavior:auto; }
body { background:#050506 !important; color:#f5f5f3 !important; font-family:var(--pf-sans) !important; }
#hero ~ section { background:#050506 !important; color:#f5f5f3; font-family:var(--pf-sans);
  font-size:15px; line-height:1.65; padding-block:var(--pf-sec-pad); }
#hero ~ section:first-of-type { padding-block:1.4rem; border-bottom:1px solid var(--pf-line); }

/* ---- 2. One type scale, one voice ------------------------------------- */
#hero ~ section h1, #hero ~ section h2, #hero ~ section h3, #hero ~ section h4,
#hero ~ section h5, #hero ~ section h6, #hero ~ section .font-serif {
  font-family:var(--pf-sans) !important; font-weight:400 !important;
  letter-spacing:-.02em !important; color:#f5f5f3 !important; line-height:1.12 !important;
  text-shadow:none !important;
}
#hero ~ section h1 { font-size:clamp(2.4rem,4.6vw,3.6rem) !important; }
#hero ~ section h2 { font-size:clamp(1.8rem,3.2vw,2.6rem) !important; }
#hero ~ section h3 { font-size:1.25rem !important; }
#hero ~ section h4, #hero ~ section h5, #hero ~ section h6 { font-size:1rem !important; }
#hero ~ section p, #hero ~ section li, #hero ~ section .font-mono:is(p,li,span,div,td) {
  color:#a4a4a1; font-family:var(--pf-sans);
}
#hero ~ section strong, #hero ~ section b { color:#f5f5f3; font-weight:600; }
#hero ~ section small { color:#6f6f70; font-family:var(--pf-label); font-size:12px; letter-spacing:.02em; }
#hero ~ section a { color:#f5f5f3; text-decoration-color:var(--pf-line-hi); }
#hero ~ section a:hover { color:#fff; text-decoration-color:#fff; }
/* Mono micro-labels: prices, tickers, tags, captions, steps, code */
#hero ~ section .font-mono, #hero ~ section [class*="font-mono"],
#hero ~ section code, #hero ~ section pre, #hero ~ section kbd {
  font-family:var(--pf-label) !important; font-weight:400 !important;
  letter-spacing:.04em !important; text-shadow:none !important;
}
#hero ~ section .text-white, #hero ~ section .text-zinc-100 { color:#f5f5f3 !important; }
#hero ~ section .text-zinc-200, #hero ~ section .text-zinc-300 { color:#d4d4d8 !important; }
#hero ~ section .text-zinc-400 { color:#a4a4a1 !important; }
#hero ~ section .text-zinc-500, #hero ~ section .text-zinc-600 { color:#6f6f70 !important; }
#hero ~ section .text-rust, #hero ~ section .text-brand-400, #hero ~ section .text-brand-500,
#hero ~ section .text-amber-400, #hero ~ section .text-yellow-400,
#hero ~ section .text-orange-400, #hero ~ section .text-orange-500 { color:#a4a4a1 !important; }
#hero ~ section .text-emerald-300, #hero ~ section .text-emerald-400, #hero ~ section .text-emerald-500,
#hero ~ section .text-green-400, #hero ~ section .text-green-500 { color:var(--pf-up) !important; }

/* ---- 3. Kill every glass / glow / morphism surface, everywhere ---------- */
#hero ~ section [class*="backdrop"], #hero ~ section [class*="glass"],
#hero ~ section [class*="glow"] { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; background-image:none !important; }
#hero ~ section .dv-card-morphic, #hero ~ section .dv-panel, #hero ~ section .dv-sheet,
#hero ~ section .dv-sheet-row, #hero ~ section .dv-well, #hero ~ section .bp-plate,
#hero ~ section .bp-sketch, #hero ~ section .portfolio-card, #hero ~ section .hero-kpi-card,
#hero ~ section .chart-panels, #hero ~ section .chart-canvas, #hero ~ section .stat,
#hero ~ section .sankey-wrap, #hero ~ section .profit-card, #hero ~ section .dv-body-panel {
  background:#0a0a0c !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-top-color:rgba(255,255,255,.16) !important;
  border-bottom-color:#000 !important;
  border-radius:12px !important;
  box-shadow:0 22px 46px -26px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.05) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
}
#hero ~ section .dv-card-morphic:hover { border-top-color:rgba(255,255,255,.28) !important; }
#hero ~ section .dv-separator { background:var(--pf-line) !important; box-shadow:none !important; height:1px !important; }
#hero ~ section [style*="box-shadow"] { box-shadow:none !important; }
#hero ~ section [style*="text-shadow"], #hero ~ section .drop-shadow,
#hero ~ section [class*="drop-shadow"] { text-shadow:none !important; }

/* ---- 4. One button system ---------------------------------------------- */
#hero ~ section .oi2-cta:is(a,button), #hero ~ section .oi2-cta :is(a,button) {
  background:linear-gradient(165deg,#f5f5f3,#c9ccd1) !important; color:#050506 !important;
  border:1px solid #f5f5f3 !important; border-radius:9px !important;
  box-shadow:0 14px 28px -12px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.8) !important;
  font-family:var(--pf-label) !important; font-weight:400 !important;
  font-size:9px !important; letter-spacing:.12em !important; text-transform:uppercase !important;
}
#hero ~ section .dv-btn-morphic:hover, #hero ~ section .oi2-cta:hover {
  background:linear-gradient(165deg,#7ce8bb,#43b98a) !important; border-color:var(--pf-up) !important;
}
#hero ~ section .dv-segbtn, #hero ~ section .dv-copybtn, #hero ~ section .sankey-pill-btn,
#hero ~ section .dv-pill-btn, #hero ~ section .dv-toggle-btn {
  background:linear-gradient(165deg,#0b0b0e,#050506) !important; color:#a4a4a1 !important;
  border:1px solid rgba(255,255,255,.10) !important; border-radius:8px !important;
  box-shadow:0 10px 20px -12px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.06) !important;
  font-family:var(--pf-label) !important; font-weight:400 !important; text-transform:uppercase !important;
}
#hero ~ section .dv-segbtn:hover, #hero ~ section .dv-copybtn:hover,
#hero ~ section .sankey-pill-btn:hover, #hero ~ section .dv-toggle-btn:hover { color:#f5f5f3 !important; }
#hero ~ section .dv-segbtn.on, #hero ~ section .dv-segbtn.active,
#hero ~ section .sankey-pill-btn.active, #hero ~ section .dv-toggle-btn.active,
#hero ~ section .dv-toggle-btn[aria-pressed="true"] {
  background:linear-gradient(165deg,#f5f5f3,#c9ccd1) !important; color:#050506 !important; border-color:#f5f5f3 !important;
}
#hero ~ section [class*="chip"] {
  background:transparent !important; border:1px solid var(--pf-line) !important;
  border-radius:999px !important; box-shadow:none !important; color:#a4a4a1 !important;
  font-family:var(--pf-label) !important; letter-spacing:.12em !important; text-transform:uppercase !important;
}
#hero ~ section [class*="chip"][class*="on"], #hero ~ section [class*="chip"].active,
#hero ~ section [class*="chip"][aria-pressed="true"] {
  background:linear-gradient(165deg,#f5f5f3,#c9ccd1) !important; color:#050506 !important; border-color:#f5f5f3 !important;
}

/* ---- 5. Mono micro-label furniture ------------------------------------- */
#hero ~ section .dv-doctag, #hero ~ section .dv-docnote, #hero ~ section .dv-term,
#hero ~ section .dv-stepnum, #hero ~ section .dv-check, #hero ~ section .dv-kpi-cell .k,
#hero ~ section .dv-ch-side, #hero ~ section [class*="kicker"], #hero ~ section .label {
  font-family:var(--pf-label) !important; font-weight:400 !important; font-size:10px !important;
  letter-spacing:.14em !important; text-transform:uppercase !important; color:#a4a4a1 !important;
}
#hero ~ section .dv-stepnum, #hero ~ section .dv-check {
  border:1px solid var(--pf-line) !important; background:transparent !important;
  border-radius:6px !important; box-shadow:none !important;
}

/* ---- 6. Forms, tables, code -------------------------------------------- */
#hero ~ section input, #hero ~ section select, #hero ~ section textarea {
  background:#030304 !important; color:#f5f5f3 !important;
  border:1px solid #000 !important; border-radius:8px !important;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.95), 0 1px 0 rgba(255,255,255,.05) !important;
  font-family:var(--pf-label) !important;
}
#hero ~ section input::placeholder, #hero ~ section textarea::placeholder { color:#6f6f70; }
#hero ~ section table td, #hero ~ section table th { border-color:var(--pf-line) !important; }
#hero ~ section table thead th {
  background:#0a0a0c !important; color:#6f6f70 !important;
  font-family:var(--pf-label) !important; font-size:9px !important;
  letter-spacing:.16em !important; text-transform:uppercase !important; font-weight:400 !important;
}
#hero ~ section pre { background:#030304 !important; border:1px solid #000; border-radius:10px; }
#hero ~ section img { filter:none; }
#hero ~ section [style*="border-radius:999px"], #hero ~ section [class*="rounded-full"] { border-radius:999px !important; }

/* ---- 7. Site chrome: header, footer, mobile menu, FAQ modal, toast ------ */
header.frag-header, header .frag-header {
  background:#050506 !important; border-bottom:1px solid var(--pf-line) !important;
  backdrop-filter:none !important; -webkit-backdrop-filter:none !important; box-shadow:none !important;
}
header.frag-header nav a, .frag-header nav a { font-weight:400 !important; color:#6f6f70; }
header.frag-header nav a:hover, header.frag-header nav a.active { color:#f5f5f3; }
header.frag-header [class*="backdrop"], header.frag-header [class*="glass"],
header.frag-header [class*="glass-panel"] { background:#050506 !important; backdrop-filter:none !important; }
footer, footer .frag-footer { background:#050506 !important; border-top:1px solid var(--pf-line) !important; }
footer a, footer p { font-family:var(--pf-label); letter-spacing:.1em; color:#6f6f70; }
footer a:hover { color:#f5f5f3; }
#mobile-menu { background:#050506 !important; border-left:1px solid var(--pf-line) !important; }
#mobile-menu .mobile-nav-link { font-family:var(--pf-sans) !important; font-weight:400 !important; color:#f5f5f3; }
.faq-modal { background:#050506 !important; border-top:1px solid var(--pf-line) !important; }
.faq-modal .faq-button { color:#f5f5f3 !important; font-family:var(--pf-sans) !important; font-weight:400 !important; background:transparent !important; }
.hub-toast, .dv-toast {
  background:#0a0a0c !important; border:1px solid var(--pf-line) !important; border-radius:8px !important;
  color:#f5f5f3 !important; font-family:var(--pf-label) !important;
}
/* scrollbar: portfolio quiet */
#hero ~ section ::-webkit-scrollbar, ::-webkit-scrollbar { width:8px; background:#050506; }
#hero ~ section ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb { background:rgba(255,255,255,.13); border-radius:4px; }

/* ---- 9. Round 2: beat the landing's own inline restyle rules -------------
   The copy's inline <style> carries earlier partial restyles (600-weight
   headings, brass accents, gradient hairlines) at specificity up to
   (1 id, 1 class). The :not(#hero) trick lifts every selector here one ID
   above them, and this sheet still loads last, so the portfolio values win.
   --------------------------------------------------------------------------- */
#hero ~ section :is(h1,h2,h3,h4,h5,h6,.dv-sec-title,.sp-title):not(#hero) {
  font-family:var(--pf-sans) !important; font-weight:400 !important; letter-spacing:-.02em !important;
  color:#f5f5f3 !important;
}
#hero ~ section .dv-sec-title:not(#hero), #hero ~ section .sp-title:not(#hero) { line-height:1.12 !important; }
#hero ~ section :is(strong,b):not(#hero) { color:#f5f5f3 !important; font-weight:600 !important; }
#hero ~ section :is(.sp-title-rule,.sp3-no,.sp3-sw,.oi2-kicker,.dv-doctag,.dv-term,
  .dv-tab.dv-tier,.dv-kicker,.dv-hair,.dv-mark,.dv-led-emerald,.dv-led-steel):not(#hero) {
  border-color:var(--pf-line) !important; color:#a4a4a1 !important;
  background:transparent !important; background-image:none !important; box-shadow:none !important;
  font-family:var(--pf-label) !important; font-weight:400 !important;
  letter-spacing:.14em !important; text-transform:uppercase !important;
}
#hero ~ section .sp3-no:not(#hero) { color:#f5f5f3 !important; text-transform:none !important; }
#hero ~ section .dv-led-emerald:not(#hero) { background:#f5f5f3 !important; }
#hero ~ section .dv-led-steel:not(#hero) { background:#3a3a3d !important; }
#hero ~ section .dv-hair:not(#hero) { background:var(--pf-line) !important; height:1px !important; }
#hero ~ section .dv-kicker:not(#hero) {
  border:1px solid var(--pf-line) !important; border-radius:999px !important;
  padding:.4rem .8rem !important; font-size:10px !important;
}
/* ATM/phone/track art and charts keep their illustration backgrounds. */
#hero ~ section :is(.dv-phone-mockup,.dv-phone-screen,.dv-phone-notch,.dv-track-build,
  .dv-mark,.sankey-wrap,.chart-canvas,.chart-panels,.profit-card) { background-image:none !important; backdrop-filter:none !important; }

/* ---- 10. Section rhythm: equal spacing, one canvas ---------------------- */
/* ---- 10. Round 3: gradient text, glow numerals, CTA link colour --------- */
#hero ~ section :is(h1,h2,h3,h4,h5,h6,span,strong,b,em,i,small):not(#hero) {
  background-image:none !important; -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
}
#hero ~ section .num:not(#hero), #hero ~ section [class*="num"]:not(#hero) {
  color:#f5f5f3 !important; font-weight:400 !important; font-family:var(--pf-label) !important;
}
#hero ~ section .oi2-cta :is(a,button):not(#hero) { color:#050506 !important; }
#hero ~ section .oi2-cta :is(a,button):not(#hero):hover { color:#03130d !important; }

/* ---- 11. Section rhythm: equal spacing, one canvas ---------------------- */
@media (max-width: 900px) { #hero ~ section { padding-block:3rem; } }
@media (prefers-reduced-motion: reduce) {
  #hero ~ section, #hero ~ section * { animation:none !important; transition:none !important; }
}
