/* ================================================================
   Promo / Marketing Pages
   Combines: promo.css  (.pm-*)
             signed-out.css (.so-*)
             home.css (.hm-*)

   REQUIRES: theme.css loaded first (provides --bg-deep, --surface-deep,
   --quartet-cyan, --quartet-pos, --quartet-neg, --font-quartet-mono, etc.)
   AND dashboard-split.css loaded first (provides --da-accent variables
   on :root).  This file bridges short-form variables on .pm so all
   marketing page classes can use the same tokens as the dashboard.
   ================================================================ */

/* ── Hide Layout chrome (except navbar & footer) when promo page is active ─ */
body:has(.pm) > .site-wrapper > .breadcrumbs { display: none; }
body:has(.pm) { background: var(--bg-deep); overflow-x: hidden; }

/* ── Variable bridge for marketing wrapper ─────────────────────── */
/* Marketing pages use the theme-aware quartet palette */
.pm {
  --bg:         var(--bg-deep);
  --bg-2:       var(--surface-deep);
  --surface:    var(--surface-deep);
  --surface-2:  var(--surface-deep-2);
  --surface-hi: var(--surface-deep-hi);
  --line:       var(--line-deep);
  --line-2:     var(--line-deep-2);
  --ink:        var(--ink-deep);
  --ink-2:      var(--ink-deep-2);
  --muted:      var(--muted-deep);
  --muted-2:    var(--muted-deep-2);
  --faint:      var(--faint-deep);
  --cyan:       var(--quartet-cyan);
  --cyan-2:     var(--quartet-cyan-2);
  --pos:        var(--quartet-pos);
  --pos-fill:   var(--quartet-pos-fill);
  --pos-border: var(--quartet-pos-border);
  --neg:        var(--quartet-neg);
  --neg-fill:   var(--quartet-neg-fill);
  --neg-border: var(--quartet-neg-border);
  --amber:      var(--quartet-amber);
  --violet:     var(--quartet-violet);
  --coral:      var(--quartet-coral);
  --indigo:     var(--quartet-indigo);
  --font-mono:  var(--font-quartet-mono);
  --font-body:  var(--font-quartet);
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes capital-pulse {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: .45; transform: scale(1.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* ================================================================
   1. Shared marketing chrome  (.pm-*)
   ================================================================ */
.pm { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.pm-nav { display: flex; align-items: center; gap: 30px; padding: 22px 0; }
.pm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.pm-brand .dot { width: 18px; height: 18px; border-radius: 3px; background: var(--da-accent); }
.pm-navlinks { display: flex; gap: 2px; }
.pm-navlinks a { padding: 7px 12px; border-radius: 4px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .15s, background .15s; }
.pm-navlinks a:hover { color: var(--ink); background: var(--surface); }
.pm-nav-spacer { flex: 1; }
.pm-nav-actions { display: flex; align-items: center; gap: 10px; }
.pm-iconbtn { width: 34px; height: 34px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); color: var(--muted); cursor: pointer; transition: all .15s; }
.pm-iconbtn:hover { color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.pm-iconbtn svg { width: 16px; height: 16px; }
.pm-link { font-size: 13px; color: var(--ink-2); text-decoration: none; font-weight: 500; padding: 8px 4px; transition: color .15s; }
.pm-link:hover { color: var(--ink); }
.pm-btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 5px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.pm-btn svg { width: 15px; height: 15px; }
.pm-btn-primary { background: var(--da-accent); color: var(--da-accent-ink); }
.pm-btn-primary:hover { background: var(--da-accent-2); }
.pm-btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.pm-icon-btn { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; display: inline-flex; align-items: center; transition: color .15s; }
.pm-icon-btn:hover { color: var(--ink); }
.pm-icon-btn svg { width: 18px; height: 18px; }
.pm-btn-ghost:hover { border-color: var(--da-accent-border); color: var(--ink); }
.pm-btn-sm { padding: 8px 15px; font-size: 12.5px; }
.pm-eyebrow { display: inline-flex; align-items: center; gap: 11px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.20em; font-weight: 600; }
.pm-eyebrow .pulse { width: 6px; height: 6px; border-radius: 999px; background: var(--da-accent); animation: capital-pulse 2.4s ease-out infinite; }
.pm-eyebrow .sep { color: var(--faint); }
.pm-sec { padding: 64px 0; border-top: 1px solid var(--line); }
.pm-sec-head { max-width: 60ch; margin-bottom: 38px; }
.pm-sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.pm-sec-eyebrow { font-size: 10.5px; color: var(--da-accent); text-transform: uppercase; letter-spacing: 0.20em; font-weight: 600; margin-bottom: 14px; }
.pm-sec-head h2 { margin: 0 0 12px; font-size: 33px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.pm-sec-head p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.pm-frame { position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.5); }
.pm-frame-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pm-frame-bar .dots { display: flex; gap: 6px; }
.pm-frame-bar .dots i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-2); }
.pm-frame-bar .url { margin: 0 auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.pm-frame-bar .url svg { width: 11px; height: 11px; }
.pm-frame-body { position: relative; padding: 30px 32px 0; max-height: 540px; overflow: hidden; background: var(--bg); }
.pm-frame-body.tall { max-height: 620px; }
.pm-frame-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, transparent, var(--bg) 94%); pointer-events: none; }
.pm-frame-badge { position: absolute; top: 18px; right: 20px; z-index: 2; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--da-accent); background: var(--da-accent-fill); border: 1px solid var(--da-accent-border); padding: 5px 10px; border-radius: 999px; }
.pm-trust { display: flex; gap: 22px; flex-wrap: wrap; }
.pm-trust .item { font-size: 11.5px; color: var(--muted-2); display: inline-flex; align-items: center; gap: 8px; }
.pm-trust .item svg { width: 14px; height: 14px; color: var(--pos); }
.pm-foot { border-top: 1px solid var(--line); margin-top: 8px; padding: 40px 0 56px; }
.pm-foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.pm-foot-brand { max-width: 280px; }
.pm-foot-brand .pm-brand { margin-bottom: 14px; }
.pm-foot-brand p { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.pm-foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.pm-foot-col h4 { margin: 0 0 14px; font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }
.pm-foot-col a { display: block; font-size: 13px; color: var(--ink-2); text-decoration: none; margin-bottom: 10px; transition: color .15s; }
.pm-foot-col a:hover { color: var(--da-accent); }
.pm-foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .pm { padding: 0 18px; }
  .pm-navlinks { display: none; }
  .pm-sec { padding: 48px 0; }
  .pm-sec-head h2 { font-size: 27px; }
}

/* ================================================================
   2. Signed-out dashboard  (.so-*)
   ================================================================ */
.so-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 64px; align-items: center; padding: 52px 0 56px; }
.so-hero-copy .pm-eyebrow { margin-bottom: 26px; }
.so-title { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.0; color: var(--ink); margin: 0 0 22px; text-wrap: balance; }
.so-title .accent { color: var(--da-accent); }
.so-lede { font-size: 17px; color: var(--muted); line-height: 1.6; margin: 0 0 30px; max-width: 48ch; }
.so-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.so-actions .pm-btn { padding: 13px 22px; }
.so-signin { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.so-signin a { color: var(--da-accent); text-decoration: none; font-weight: 600; }
.so-hero-panel { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; }
.so-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.so-panel-head .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; }
.so-panel-head .live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); }
.so-panel-head .live .d { width: 6px; height: 6px; border-radius: 999px; background: var(--pos); animation: capital-pulse 2.4s ease-out infinite; }
.so-panel-body { padding: 22px 20px 20px; }
.so-panel-chart { position: relative; padding-left: 40px; }
.so-panel-chart svg { display: block; width: 100%; height: 120px; }
.so-panel-y { position: absolute; left: 0; top: 0; bottom: 0; width: 36px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-mono); font-size: 9px; color: var(--faint); }
.so-panel-axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; color: var(--muted-2); margin-top: 8px; padding-left: 40px; }
.so-panel-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.so-panel-cell { padding: 16px 20px; }
.so-panel-cell:first-child { border-right: 1px solid var(--line); }
.so-panel-cell .pl { font-size: 9.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin-bottom: 8px; }
.so-panel-cell .pv { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.so-panel-cell .pv.pos { color: var(--pos); }
.so-panel-cell .pv small { font-size: 12px; color: var(--muted-2); }
.so-preview-bleed {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  padding-top: 48px;
  padding-bottom: 56px;
  background: var(--bg);
}
.so-preview-head { text-align: center; margin-bottom: 28px; }
.so-preview-head .pm-sec-eyebrow { margin-bottom: 10px; }
.so-preview-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.so-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.so-prop { padding: 26px 24px; border-right: 1px solid var(--line); }
.so-prop:last-child { border-right: 0; }
.so-prop .ic { width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.so-prop .ic svg { width: 19px; height: 19px; }
.so-prop .ic.cyan { background: var(--da-accent-fill); color: var(--da-accent); }
.so-prop .ic.amber { background: rgba(255,198,109,0.12); color: var(--amber); }
.so-prop .ic.violet { background: rgba(184,141,255,0.12); color: var(--violet); }
.so-prop h3 { margin: 0 0 7px; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.so-prop p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.so-cta { text-align: center; padding: 60px 40px; border: 1px solid var(--da-accent-border); border-radius: 12px; background: var(--da-accent-fill); margin: 8px 0 64px; }
.so-cta h2 { margin: 0 0 12px; font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.so-cta p { margin: 0 auto 26px; font-size: 16px; color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
@media (max-width: 900px) {
  .so-hero { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 40px; }
  .so-title { font-size: 42px; }
  .so-props { grid-template-columns: 1fr; }
  .so-prop { border-right: 0; border-bottom: 1px solid var(--line); }
  .so-prop:last-child { border-bottom: 0; }
}

/* ================================================================
   3. Homepage  (.hm-*)
   ================================================================ */
.hm-hero { text-align: center; padding: 52px 0 44px; }
.hm-hero .pm-eyebrow { margin-bottom: 26px; }
.hm-title { font-size: 64px; font-weight: 600; letter-spacing: -0.045em; line-height: 0.98; color: var(--ink); margin: 0 auto 22px; max-width: 17ch; text-wrap: balance; }
.hm-title .accent { color: var(--da-accent); }
.hm-lede { font-size: 18px; color: var(--muted); line-height: 1.55; max-width: 58ch; margin: 0 auto 30px; }
.hm-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.hm-actions .pm-btn { padding: 13px 24px; }
.hm-hero .pm-trust { justify-content: center; }
.hm-preview {
  margin-top: 48px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 48px calc(50vw - 50%) 0;
  background: var(--bg);
}
.hm-stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; margin-top: 8px; }
.hm-stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.hm-stat:last-child { border-right: 0; }
.hm-stat .n { font-family: var(--font-mono); font-size: 32px; font-weight: 500; letter-spacing: -0.03em; color: var(--da-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.hm-stat .l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin-top: 11px; }
.hm-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.hm-type { display: flex; align-items: flex-start; gap: 15px; padding: 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm-type:nth-child(3n) { border-right: 0; }
.hm-type:nth-last-child(-n+3) { border-bottom: 0; }
.hm-type .ic { width: 40px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hm-type .ic svg { width: 20px; height: 20px; }
.hm-type .ic.cyan { background: var(--da-accent-fill); color: var(--da-accent); }
.hm-type .ic.pos { background: var(--pos-fill); color: var(--pos); }
.hm-type .ic.violet { background: rgba(184,141,255,0.12); color: var(--violet); }
.hm-type .ic.amber { background: rgba(255,198,109,0.12); color: var(--amber); }
.hm-type .ic.coral { background: rgba(255,155,122,0.12); color: var(--coral); }
.hm-type .ic.indigo { background: rgba(138,159,255,0.12); color: var(--indigo); }
.hm-type .t { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hm-type .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.hm-local { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); }
.hm-local .ic { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--da-accent-fill); color: var(--da-accent); }
.hm-local .ic svg { width: 21px; height: 21px; }
.hm-local .tx { font-size: 14px; color: var(--muted); line-height: 1.55; }
.hm-local .tx b { color: var(--ink); font-weight: 600; }
.hm-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.hm-feat-list { display: flex; flex-direction: column; }
.hm-feat-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.hm-feat-item:first-child { border-top: 0; padding-top: 0; }
.hm-feat-item .ic { width: 44px; height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--da-accent-fill); color: var(--da-accent); }
.hm-feat-item .ic svg { width: 21px; height: 21px; }
.hm-feat-item .ic.amber { background: rgba(255,198,109,0.12); color: var(--amber); }
.hm-feat-item .ic.violet { background: rgba(184,141,255,0.12); color: var(--violet); }
.hm-feat-item .ic.coral { background: rgba(255,155,122,0.12); color: var(--coral); }
.hm-feat-item .ic.pos { background: var(--pos-fill); color: var(--pos); }
.hm-feat-item h3 { margin: 2px 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hm-feat-item h3 .badge { display: inline-block; margin-left: 8px; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 2px 6px; border-radius: 3px; vertical-align: middle; color: var(--amber); background: rgba(255,198,109,0.12); border: 1px solid rgba(255,198,109,0.30); }
.hm-feat-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.hm-feat-aside { position: sticky; top: 100px; }
.hm-calc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hm-calc-cat { display: block; padding: 24px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.hm-calc-cat:hover { border-color: var(--da-accent-border); background: var(--surface-2); }
.hm-calc-cat .ic { width: 40px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--da-accent-fill); color: var(--da-accent); margin-bottom: 16px; }
.hm-calc-cat .ic svg { width: 20px; height: 20px; }
.hm-calc-cat h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hm-calc-cat p { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.hm-calc-cat .cnt { font-family: var(--font-mono); font-size: 11px; color: var(--da-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em; }
.hm-calc-foot { text-align: center; margin-top: 26px; }
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.hm-step { padding: 28px 24px 4px; border-right: 1px solid var(--line); position: relative; }
.hm-step:last-child { border-right: 0; }
.hm-step .num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--da-accent); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.hm-step .num::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--da-accent); }
.hm-step h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hm-step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.hm-cta { text-align: center; padding: 64px 40px; border: 1px solid var(--da-accent-border); border-radius: 12px; background: var(--da-accent-fill); margin: 8px 0 56px; }
.hm-cta h2 { margin: 0 0 14px; font-size: 38px; font-weight: 600; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.hm-cta p { margin: 0 auto 28px; font-size: 16px; color: var(--ink-2); max-width: 48ch; line-height: 1.55; }
@media (max-width: 860px) {
  .hm-title { font-size: 42px; }
  .hm-types { grid-template-columns: 1fr; }
  .hm-type { border-right: 0; }
  .hm-type:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .hm-type:last-child { border-bottom: 0; }
  .hm-feat { grid-template-columns: 1fr; gap: 36px; }
  .hm-feat-aside { position: static; }
  .hm-calc { grid-template-columns: 1fr; }
  .hm-stats { grid-template-columns: 1fr 1fr; }
  .hm-stat:nth-child(2) { border-right: 0; }
  .hm-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hm-local { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hm-steps { grid-template-columns: 1fr 1fr; }
  .hm-step:nth-child(2) { border-right: 0; }
  .hm-cta h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .hm-stats, .hm-steps { grid-template-columns: 1fr; }
  .hm-stat, .hm-step { border-right: 0; border-bottom: 1px solid var(--line); }
}
