:root {
  /* --- CompStak 2026 brand palette · AI product line (Compstimate is powered by Rent Predictor) --- */
  /* Deep purple-navy backgrounds + Purple #4F52FF are the AI identity.
     Green 42 / Red 53 are intentionally NOT used in AI materials (per brand book). */
  --bg:            #05032D;   /* Blue 09 */
  --bg-2:          #0B0A3A;   /* between Blue 09 and Blue 17 */
  --surface:       #161342;   /* Blue 17 */
  --surface-2:     #1C2266;   /* Blue 25 */
  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  --text:          #FFFFFF;   /* White */
  --text-2:        #D4DCE2;   /* Gray 86 */
  --text-3:        #A9ACB3;   /* Gray 68 */

  --brand:         #4F52FF;   /* Purple 03 — AI primary */
  --brand-2:       #6A6CFF;   /* lighter purple — hover state on dark bg */
  --brand-ink:     #FFFFFF;
  --cyan:          #228FFF;   /* Blue 57 — brand blue, gradient partner */

  /* deal-quality scale — on-brand blue→purple→pink (avoids Green 42 / Red 53) */
  --good:          #228FFF;   /* Blue 57 */
  --good-bg:       rgba(34,143,255,0.15);
  --warn:          #7C7EFF;   /* lightened Purple 03 for on-dark legibility */
  --warn-dot:      #7C7EFF;   /* dot/icon accent — same purple family, no yellow in this palette */
  --warn-bg:       rgba(79,82,255,0.18);
  --bad:           #FF0092;   /* Pink 08 */
  --bad-bg:        rgba(255,0,146,0.15);
  --ai:            #4F52FF;   /* Purple 03 — AI / Rent Predictor accents */
  --ai-bg:         rgba(79,82,255,0.18);

  --radius:        16px;
  --radius-sm:     10px;
  --maxw:          1080px;
  --font-ui:       Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-cta:      Gotham, Montserrat, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1100px 520px at 80% -8%, rgba(79,82,255,0.22), transparent 60%),
    radial-gradient(900px 480px at 6% 0%, rgba(34,143,255,0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: subpixel-antialiased;
  min-height: 100vh;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2 { font-weight: 300; letter-spacing: 0.02em; margin: 0; }
.muted { color: var(--text-2); font-weight: 300; }
.small { font-size: 13px; font-weight: 300; }
.field-hint, .dz-sub, .addr-help, .rec-k, .rec-u, .rec-n, .rec-foot,
.chip .ck, .gauge-center small, .compare-k, .compare-word,
.compare-v span, .compare-delta .compare-u {
  font-weight: 300;
}

/* data values — same Montserrat stack as compstak.com/ai (tabular nums for alignment) */
.rec-v, .compare-v, .compare-delta, .gauge-center span, .s-val, .chip .cv, .t-display {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,15,26,0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { display: block; filter: brightness(0) invert(1); flex-shrink: 0; }
.brand-mark { font-weight: 700; font-size: 20px; letter-spacing: -0.16px; }
.brand-accent { background: linear-gradient(90deg, var(--cyan), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-divider { width: 1px; height: 22px; background: var(--border-strong); }
.brand-sub { font-size: 14px; color: var(--text-2); font-weight: 300; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  color: var(--text);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.topbar-right { flex-shrink: 0; }
.brand { min-width: 0; }
.brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* status pills: light tint + dark text + colored dot — AA-safe regardless of hue */
.free-badge { background: var(--good-bg); }
.free-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex-shrink: 0; }
.free-badge.spent { background: var(--bad-bg); }
.free-badge.spent::before { background: var(--bad); }
.pill-live { background: var(--ai-bg); }
.pill-live .dot { background: var(--ai); box-shadow: 0 0 0 0 rgba(79,82,255,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(79,82,255,0.5);} 70%{box-shadow:0 0 0 7px rgba(79,82,255,0);} 100%{box-shadow:0 0 0 0 rgba(79,82,255,0);} }
.nav-cta { font-size: 13px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.nav-cta:hover { color: var(--brand); text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 40px;
}
.eyebrow { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: 0.32px; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: 0.02em; font-weight: 300; }
.hero-sub { color: var(--text-2); font-size: 18px; font-weight: 400; max-width: 620px; margin: 18px 0 0; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: var(--text-2); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); display: inline-block; }
.i-check { border-radius: 50% !important; background: var(--good) !important; }

/* address bar */
.addrbar { display: flex; align-items: center; gap: 10px; margin-top: 30px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 7px 7px 7px 16px; max-width: 680px; }
.addrbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,82,255,0.2); }
.addr-ico { color: var(--brand); font-size: 18px; line-height: 1; }
.addrbar input { flex: 1; border: none; background: transparent; padding: 10px 4px; font-size: 16px; color: var(--text); }
.addrbar input:focus { box-shadow: none; outline: none; }
.addr-btn { background: var(--brand); color: var(--brand-ink); border: none; border-radius: var(--radius-sm); padding: 11px 22px; font-size: 15px; font-weight: 500; font-family: var(--font-cta); cursor: pointer; transition: background .15s, transform .05s; }
.addr-btn:hover { background: var(--brand-2); }
.addr-btn:active { transform: scale(0.98); }
.addr-help { font-size: 12px; color: var(--text-2); margin: 10px 0 0; max-width: 680px; }

/* ---------- layout ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 48px; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.card-head h2 { font-size: 24px; letter-spacing: -0.16px; }
.card-head .muted { margin: 4px 0 0; font-size: 14px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.32px; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-preview { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); background: var(--warn-bg); border: 1px solid rgba(124,126,255,0.35); padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.badge-preview::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warn-dot); flex-shrink: 0; }
.badge-preview.live { background: var(--good-bg); border-color: rgba(34,143,255,0.4); }
.badge-preview.live::before { background: var(--good); }

/* rent predictor recommendation */
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.rec-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 15px; }
.rec-k { font-size: 12px; color: var(--text-2); }
.rec-v { font-size: 22px; font-weight: 700; letter-spacing: -0.16px; margin: 6px 0 3px; color: var(--brand); }
.rec-u { font-size: 13px; color: var(--text-2); }
.rec-n { font-size: 12px; color: var(--text-2); }
.rec-foot { font-size: 12px; color: var(--text-2); margin: 14px 0 8px; }

/* upload dropzone */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 36px 20px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 4px; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: rgba(79,82,255,0.06); }
.dz-icon { width: 30px; height: 30px; color: var(--brand); }
.dz-title { font-size: 15px; font-weight: 600; color: var(--text); }
.dz-sub { font-size: 13px; color: var(--text-2); }

/* consent affirmation (lease upload) */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.consent span { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.addr-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* mode toggle (segmented control) */
.mode-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; width: fit-content; margin: 0 auto; }
.mode-btn { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-2); background: transparent; border: none; padding: 9px 22px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
.mode-btn:hover { color: var(--text); }
.mode-btn.active { background: var(--brand); color: #fff; }

/* tier header */
.tier-head { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.tier-badge { font-size: 22px; font-weight: 700; padding: 8px 22px; border-radius: 999px; letter-spacing: -0.16px; }
.tier-head .verdict { margin: 0; flex: 1; min-width: 240px; }

/* where-your-deal-falls curve */
#curve { margin-top: 22px; }
#curve svg { display: block; }
#curve .cv-lab { fill: var(--text-2); font-size: 11px; font-weight: 600; }
#curve .cv-you { font-size: 12px; font-weight: 700; }

/* tier dots in the legend */
.tier-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }

/* deal vs Rent Predictor comparison (the score highlight) */
.compare { display: flex; align-items: stretch; gap: 12px; margin-top: 22px; }
.compare-col { flex: 1; display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.compare-k { display: flex; align-items: center; gap: 4px; min-height: 14px; line-height: 14px; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.compare-col:first-child .compare-k-end { width: 14px; height: 14px; flex-shrink: 0; }
.compare-k-ai { white-space: nowrap; }
.compare-ai-icon { flex-shrink: 0; display: block; width: 14px; height: 14px; }
.compare-v { display: flex; align-items: baseline; gap: 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.16px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.compare-v span { font-size: 13px; color: var(--text-2); line-height: 1; }
.compare-mid { flex: 1; border-radius: var(--radius-sm); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.compare-delta { font-size: 28px; font-weight: 700; letter-spacing: -0.16px; color: inherit; }
.compare-delta .compare-u { font-size: 13px; opacity: 0.82; color: inherit; }
.compare-word { font-size: 12px; margin-top: 2px; color: inherit; }

/* how-the-score-works */
.how-p { font-size: 15px; color: var(--text); margin: 0 0 18px; max-width: 760px; line-height: 1.7; }
.how-p.muted { color: var(--text-2); margin: 18px 0 0; font-size: 14px; }
.grade-legend { display: flex; flex-direction: column; gap: 2px; }
.grade-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.grade-row:last-child { border-bottom: none; }
.grade-band { font-size: 13px; font-weight: 600; color: var(--text); width: 84px; flex-shrink: 0; }
.grade-desc { font-size: 14px; color: var(--text-2); }

/* How the score works — tier names stay medium; all other copy lighter */
#how .card-head h2 { font-weight: 300; }
#how .how-p,
#how .grade-desc { font-weight: 300; }

/* score / recommendation action row */
.score-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.score-actions .addr-btn { padding: 11px 26px; }
.score-actions .small { color: var(--text-2); }
#scoreOut { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
#scoreOut .tier-head { margin-top: 0; }

/* lead-magnet unlock block */
.unlock { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.gate { margin-top: 8px; padding-top: 0; border-top: none; }
.teaser { position: relative; display: flex; flex-direction: column; gap: 13px; padding: 6px 0 18px; }
.teaser .t-row { height: 13px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), rgba(34,143,255,0.18)); filter: blur(2.5px); opacity: 0.5; }
.teaser .t-row:nth-child(1) { width: 94%; }
.teaser .t-row:nth-child(2) { width: 78%; }
.teaser .t-row:nth-child(3) { width: 88%; }
.teaser .t-row:nth-child(4) { width: 70%; }
.teaser .t-row:nth-child(5) { width: 82%; }
.teaser-mask { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.lock-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--text); }
.lock-chip svg { width: 15px; height: 15px; color: var(--brand); }
.unlock-body { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }
.unlock-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.16px; }
.unlock-body > p { font-size: 14px; color: var(--text-2); margin: 0 0 16px; max-width: 620px; }
.lead { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.lead input { flex: 1; min-width: 220px; }
.exchange-link { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 500; }
.exchange-link:hover { text-decoration: underline; }
.lead-thanks { display: flex; gap: 14px; align-items: flex-start; }
.lead-thanks svg { width: 26px; height: 26px; color: var(--good); flex-shrink: 0; margin-top: 2px; }
.lead-thanks h3 { font-size: 18px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.16px; }
.lead-thanks p { font-size: 14px; color: var(--text-2); margin: 0; }

/* ---------- upload: review extracted terms ---------- */
.review-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); padding: 20px; margin-top: 4px; }
.review-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.16px; }
.review-panel .muted.small { margin: 0 0 16px; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.review-grid.full { grid-template-columns: 1fr; }
.review-full { grid-column: 1 / -1; }
.review-flabel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field-status { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; color: var(--text); }
.field-status.is-found { background: var(--good-bg); }
.field-status.is-required { background: var(--warn-bg); }
.field-status.is-missing { color: var(--text-2); background: var(--surface-2); }
.review-note { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); background: var(--warn-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 4px; }
.review-note-x { margin-left: auto; background: none; border: none; color: var(--text-2); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr 1fr; } }

/* (legacy) supporting comps */
.comps-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.comps-head h3 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.16px; }
.comps-wrap { overflow-x: auto; }
table.comps { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.comps th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.32px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
table.comps td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; }
table.comps tbody tr:last-child td { border-bottom: none; }
table.comps .c-addr { font-weight: 500; }
table.comps th:not(:first-child), table.comps td:not(:first-child):not(:nth-child(2)) { text-align: right; }
table.comps th:nth-child(2), table.comps td:nth-child(2) { text-align: left; color: var(--text-2); }

/* ---------- form ---------- */
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.field-grid.four { grid-template-columns: repeat(4, 1fr); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.field-hint { font-size: 12px; color: var(--text-2); margin-top: -1px; }
.field-error {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--bad);
  margin-top: -2px;
  line-height: 1.4;
}
.field-error:not([hidden]) { display: block; }
label.has-error input,
label.has-error .input-prefix {
  border-color: var(--bad);
  background: var(--bad-bg);
}
label.has-error input:focus,
label.has-error .input-prefix:focus-within {
  border-color: var(--bad);
  box-shadow: 0 0 0 3px rgba(255,0,146,0.16);
}
label.has-error .field-hint { display: none; }
input, select {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 15px; font-family: inherit; font-weight: 300;
  outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input.num-fmt { font-family: inherit; font-variant-numeric: tabular-nums; }
input::placeholder { color: var(--text-3); }
input:focus, select:focus { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px rgba(79,82,255,0.22); }
select { appearance: none; cursor: pointer; }

/* $ prefix for Starting rent / TI (and review equivalents) */
.input-prefix {
  display: flex; align-items: stretch; width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.input-prefix:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(79,82,255,0.22);
}
.input-prefix .prefix {
  display: flex; align-items: center; padding: 0 0 0 12px;
  color: var(--text-2); font-weight: 300; font-size: 15px;
  font-family: inherit;
  user-select: none;
}
.input-prefix input {
  border: none; background: transparent; box-shadow: none;
  border-radius: 0; padding-left: 6px;
  outline: none;
}
.input-prefix input:focus,
.input-prefix input:focus-visible {
  border: none; background: transparent; box-shadow: none; outline: none;
}

/* ---------- result / gauge ---------- */
.result { display: flex; gap: 26px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.gauge { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.gauge-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.gauge-fill { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .5s ease, stroke .3s; }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-center span { font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -0.16px; }
.gauge-center small { color: var(--text-2); font-size: 12px; }
.result-body { flex: 1; min-width: 260px; }
.grade-pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.verdict { font-size: 16px; font-weight: 300; margin: 12px 0 4px; letter-spacing: 0.02em; }
.dist { margin-top: 16px; }

/* distribution bar */
.distbar { position: relative; height: 8px; border-radius: 999px; background: var(--surface-2); margin: 26px 0 8px; }
.distbar .iqr { position: absolute; top: 0; height: 8px; background: rgba(34,143,255,0.32); border-radius: 999px; }
.distbar .med { position: absolute; top: -4px; width: 2px; height: 16px; background: var(--text-2); }
.distbar .pin { position: absolute; top: -7px; width: 4px; height: 22px; border-radius: 2px; background: var(--brand); }
.distlabels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); }
.distlabels b { color: var(--text); font-weight: 600; }

/* ---------- chips ---------- */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.chip { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; }
.chip .ck { font-size: 12px; color: var(--text-2); }
.chip .cv { font-size: 20px; font-weight: 600; margin: 3px 0; letter-spacing: -0.16px; }
.chip .cd { font-size: 12px; color: var(--text-2); }
.conf { font-size: 12px; color: var(--text-2); margin: 16px 0 0; }
.conf strong { color: var(--text); font-weight: 600; }

/* ---------- target sheet ---------- */
.lev { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
table.sheet { width: 100%; border-collapse: collapse; }
table.sheet td { padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
table.sheet tr:last-child td { border-bottom: none; }
.s-label { color: var(--text-2); font-size: 14px; }
.s-val { text-align: right; font-size: 16px; font-weight: 600; letter-spacing: -0.16px; white-space: nowrap; }
.s-note { text-align: right; font-size: 12px; color: var(--text-2); padding-left: 18px !important; width: 38%; }
.sheet-foot { font-size: 12px; color: var(--text-2); margin: 14px 0 0; }

/* ---------- final CTA band ---------- */
.cta-band {
  margin-top: 8px;
  background: linear-gradient(120deg, #0B0A3A 0%, #1C2266 60%, #24145A 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 48px; padding-bottom: 48px;
}
.cta-band-title { font-size: 28px; line-height: 1.25; font-weight: 300; letter-spacing: 0.02em; margin: 0; color: var(--text); }
.cta-band-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-cta);
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.cta-band-btn:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ---------- footer (exact compstak.com/ai footer, reused) ---------- */
.footer2 { background: #000; border-top: 1px solid var(--border); }
.footer2-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 64px;
  padding-top: 56px; padding-bottom: 56px;
  align-items: start;
}

/* column 1: product links with mark + subtitle + nested sublists */
.footer2-products { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.footer2-mark { display: block; width: 26px; height: 26px; margin-bottom: 2px; }
.footer2-mark img { width: 100%; height: 100%; filter: brightness(0) invert(1); }
.footer2-plink { display: flex; flex-direction: column; gap: 4px; }
.footer2-plink > a { font-size: 14.5px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 2px; width: fit-content; }
.footer2-plink > a:hover { color: var(--text-2); }
.footer2-plink > p { font-size: 13px; color: var(--text-3); line-height: 1.5; margin: 0; max-width: 210px; font-weight: 300; }
.footer2-sublist { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.footer2-sublist a { font-size: 13px; color: var(--text-2); font-weight: 300; text-decoration: underline; text-underline-offset: 2px; width: fit-content; }
.footer2-sublist a:hover { color: var(--text); }

/* column 2: plain group headers + underlined links */
.footer2-links { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.footer2-group { display: flex; flex-direction: column; gap: 8px; }
.footer2-group h4 { font-size: 14px; font-weight: 400; color: var(--text); margin: 0 0 2px; }
.footer2-group a { font-size: 13.5px; color: var(--text-2); font-weight: 300; text-decoration: underline; text-underline-offset: 2px; width: fit-content; }
.footer2-group a:hover { color: var(--text); }

/* column 3: login/get-started, contact, socials, address, blurb */
.footer2-contact { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.footer2-actions { display: flex; align-items: center; gap: 20px; }
.footer2-login { font-size: 13.5px; font-weight: 300; color: var(--text); text-decoration: none; }
.footer2-login:hover { text-decoration: underline; }
.footer2-get-started {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 18px;
  background: var(--cyan);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-cta);
  font-weight: 500; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none !important;
  width: fit-content;
}
.footer2-get-started:hover { background: var(--brand-2); }
.footer2-faint { color: var(--text-3); opacity: 0.5; }
.footer2-contact .footer2-group a.footer2-faint { text-decoration: none; }
.footer2-contact .footer2-group a:not(.footer2-faint) { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.footer2-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer2-social a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: color .15s, border-color .15s; }
.footer2-social a:hover { color: var(--text); border-color: var(--text-2); }
.footer2-social svg { width: 13px; height: 13px; }
.footer2-address { font-size: 13px; line-height: 1.6; margin: 0; font-weight: 300; }
.footer2-bottom-blurb { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin: 4px 0 0; max-width: 230px; font-weight: 300; }
.footer2-rights { font-size: 12.5px; color: var(--text-3); margin: 0; font-weight: 300; }

@media (max-width: 860px) {
  .footer2-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer2-contact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
}
@media (max-width: 560px) {
  .footer2-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer2-contact { flex-direction: column; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-band-btn { width: 100%; }
}

/* color helpers */
.t-good { color: var(--good) !important; } .bg-good { background: var(--good-bg) !important; }
.t-warn { color: var(--warn) !important; } .bg-warn { background: var(--warn-bg) !important; }
.t-bad  { color: var(--bad) !important; }  .bg-bad  { background: var(--bad-bg)  !important; }
.s-good { stroke: var(--good) !important; } .s-warn { stroke: var(--warn-dot) !important; } .s-bad { stroke: var(--bad) !important; }

@media (min-width: 880px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .field-grid, .field-grid.four { grid-template-columns: 1fr 1fr; }
  .chips { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr 1fr; }
  .brand-divider, .brand-sub { display: none; }
}
