/* Elevated Remodel — Flip Budget. One stylesheet for the public form, the
   proposal page and admin. Colors are tokens so dark mode is one block. */
:root {
  --bg: #f5f5f4;
  --card: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --soft: #fafafa;
  --brand: #c8102e;
  --brand-ink: #ffffff;
  --brand-soft: #fdecee;
  --dark: #111111;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --info-soft: #eff6ff;
  --c-labor: #111111;
  --c-allow: #6b7280;
  --c-mat: #c8102e;
  --c-other: #f59e0b;
  --c-cont: #d4d4d8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0d; --card: #17171a; --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #a1a1aa;
    --line: #2a2a2e; --line-2: #3a3a40; --soft: #1d1d21; --brand-soft: #3b0d15;
    --ok-soft: #0f2e1b; --warn-soft: #3a2a0a; --bad-soft: #3b1111; --info-soft: #0f1d33;
    --c-labor: #e4e4e7; --c-cont: #52525b; --dark: #000; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0c0d; --card: #17171a; --ink: #f4f4f5; --ink-2: #d4d4d8; --muted: #a1a1aa;
  --line: #2a2a2e; --line-2: #3a3a40; --soft: #1d1d21; --brand-soft: #3b0d15;
  --ok-soft: #0f2e1b; --warn-soft: #3a2a0a; --bad-soft: #3b1111; --info-soft: #0f1d33;
  --c-labor: #e4e4e7; --c-cont: #52525b; --dark: #000; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.topbar { background: var(--dark); color: #fff; }
.topbar .in { max-width: 1240px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.logo b { display: block; font-size: 16px; letter-spacing: .2px; }
.logo span { display: block; font-size: 12px; color: #a1a1aa; }
.topbar .sp { flex: 1; }
.topbar a.plain { color: #e4e4e7; text-decoration: none; font-size: 14px; }
.stripe { height: 4px; background: var(--brand); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.5px; }
.hero p { color: var(--ink-2); max-width: 720px; margin: 0; }
.perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 4px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.perks li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }

/* ---------- layout ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; margin-top: 18px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 16px; }

/* ---------- stepper ---------- */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.steps li { flex: 1 0 auto; }
.steps button { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.steps button .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 11px; font-weight: 700; margin-right: 6px; }
.steps button.done { color: var(--ink-2); }
.steps button.done .n { background: var(--ink); color: var(--card); }
.steps button.on { border-color: var(--brand); color: var(--ink); font-weight: 600; }
.steps button.on .n { background: var(--brand); color: #fff; }
.steps button:disabled { cursor: not-allowed; opacity: .6; }

.step-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.step-head p { margin: 0; color: var(--muted); font-size: 14px; }
.nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- form controls ---------- */
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.fields.wide { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
/* span 2 only where two columns really fit, or it forces a phantom column and sideways scroll */
@media (min-width: 720px) { .f.span2 { grid-column: span 2; } }
@media (max-width: 719px) { .f.span2 { grid-column: 1 / -1; } }
.f > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.f .help { font-size: 12px; color: var(--muted); }
.req::after { content: " *"; color: var(--brand); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=date], input[type=url], select, textarea {
  width: 100%; border: 1px solid var(--line-2); background: var(--card); border-radius: 8px; padding: 9px 11px; min-height: 40px; outline: none;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input.bad, select.bad { border-color: var(--bad); }
.sub-h { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 22px 0 10px; font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--card); border-radius: 8px; padding: 9px 16px; min-height: 40px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { filter: brightness(.94); }
.btn.dark { background: var(--ink); color: var(--card); border-color: var(--ink); }
.btn.ok { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.big { padding: 12px 22px; font-size: 16px; }

/* segmented control */
.seg { display: flex; flex-wrap: wrap; gap: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg button { flex: 1 1 auto; border: 0; background: transparent; border-radius: 7px; padding: 7px 10px; font-size: 13px; cursor: pointer; color: var(--ink-2); min-height: 34px; }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.12); outline: 1px solid var(--line-2); }

/* toggle rows */
.tog { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card); min-height: 48px; }
.tog:hover { border-color: var(--line-2); }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog .sw { flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.tog .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tog input:checked + .sw { background: var(--brand); }
.tog input:checked + .sw::after { transform: translateX(16px); }
.tog input:focus-visible + .sw { box-shadow: 0 0 0 3px var(--brand-soft); }
.tog .t { font-size: 14px; line-height: 1.3; }
.tog .t small { display: block; color: var(--muted); font-size: 12px; }

/* stepper number */
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--card); max-width: 170px; }
.stepper button { width: 38px; border: 0; background: var(--soft); cursor: pointer; font-size: 18px; color: var(--ink-2); }
.stepper button:hover { background: var(--line); }
.stepper input { border: 0 !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; min-width: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* choice cards */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.choice { text-align: left; border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.choice:hover { border-color: var(--line-2); }
.choice.on { border-color: var(--brand); background: var(--brand-soft); }
.choice b { font-size: 15px; }
.choice span { font-size: 13px; color: var(--muted); }

/* detail groups */
.groups { display: flex; flex-direction: column; gap: 12px; }
details.grp { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
details.grp > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
details.grp > summary::-webkit-details-marker { display: none; }
details.grp > summary .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
details.grp > summary .tt { flex: 1; min-width: 0; }
details.grp > summary .tt b { display: block; }
details.grp > summary .tt span { font-size: 12px; color: var(--muted); }
details.grp > summary .amt { font-weight: 700; font-size: 14px; }
details.grp > summary::after { content: "▾"; color: var(--muted); transition: transform .15s; }
details.grp[open] > summary::after { transform: rotate(180deg); }
details.grp .body { padding: 4px 16px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
details.grp .body .full { grid-column: 1 / -1; }

/* live budget sidebar */
.live { position: sticky; top: 16px; }
.live .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.live .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 5px 0; border-top: 1px solid var(--line); }
.live .row:first-of-type { border-top: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 12px 0 10px; }
.bar i { display: block; height: 100%; transition: width .3s; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.kpi { background: var(--soft); border-radius: 10px; padding: 10px; }
.kpi b { display: block; font-size: 18px; }
.kpi span { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) {
  .live { position: static; }
  .mobile-total { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--dark); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
  .mobile-total b { font-size: 20px; }
  body.has-mobile-total { padding-bottom: 60px; }
}
@media (min-width: 981px) { .mobile-total { display: none; } }

/* ---------- notices ---------- */
.note { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.note.warn { background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.note.ok { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.note.bad { background: var(--bad-soft); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.note.info { background: var(--info-soft); border: 1px solid var(--line); }
.note b { font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.badge.pending { background: var(--warn-soft); color: var(--warn); }
.badge.approved { background: var(--ok-soft); color: var(--ok); }
.badge.accepted { background: var(--ink); color: var(--card); }
.badge.declined { background: var(--bad-soft); color: var(--bad); }
.badge.allow { background: var(--warn-soft); color: var(--warn); }
.badge.quote { background: var(--info-soft); color: #1d4ed8; }
.badge.add { background: var(--brand-soft); color: var(--brand); }

/* ---------- budget document ---------- */
.doc { display: flex; flex-direction: column; gap: 18px; }
.doc-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.summary .kpi b { font-size: 20px; }
.summary .kpi.grand { background: var(--dark); color: #fff; }
.summary .kpi.grand span { color: #d4d4d8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
table.bid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.bid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 2px solid var(--ink); }
table.bid td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.bid td.q, table.bid th.q, table.bid td.m, table.bid th.m { text-align: right; white-space: nowrap; }
table.bid tr.sec td { background: var(--soft); font-weight: 700; border-bottom: 1px solid var(--line-2); padding-top: 10px; }
table.bid tr.tot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; font-size: 15px; }
table.bid tr.off td { opacity: .4; text-decoration: line-through; }
table.bid .ln-note { display: block; font-size: 12px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc h3 { margin: 0 0 8px; font-size: 17px; display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.disclaimer { font-size: 13px; background: var(--warn-soft); border-radius: 10px; padding: 14px 16px; line-height: 1.55; }
.stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); font-weight: 900; letter-spacing: 2px; padding: 6px 14px; border-radius: 8px; transform: rotate(-4deg); text-transform: uppercase; }
.stamp.pending { border-color: var(--warn); color: var(--warn); }
.stamp.declined { border-color: var(--bad); color: var(--bad); }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--ink); color: var(--card); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .sp { flex: 1; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.list td { padding: 10px; border-bottom: 1px solid var(--line); }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover { background: var(--soft); }
table.edit { width: 100%; border-collapse: collapse; font-size: 13px; }
table.edit th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0; background: var(--card); z-index: 1; }
table.edit td { padding: 4px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.edit input, table.edit select { min-height: 32px; padding: 5px 7px; font-size: 13px; }
table.edit input.n { width: 86px; text-align: right; }
table.edit input.w { min-width: 240px; }
table.edit select { min-width: 104px; }
table.edit tr.sec td { background: var(--soft); font-weight: 700; padding: 8px 6px; }
table.edit tr.inactive td { opacity: .5; }
.flag { cursor: help; color: var(--warn); font-weight: 700; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.sticky-bar { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; z-index: 5; border-radius: 0 0 var(--radius) var(--radius); }
.login { max-width: 400px; margin: 60px auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 10px; z-index: 100; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); color: #fff; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; min-height: 40vh; }

/* ---------- print ---------- */
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #000; --soft: #f4f4f5; }
  body { background: #fff; font-size: 11px; }
  .no-print, .topbar a.plain, .mobile-total, .steps, .nav, .live { display: none !important; }
  .card { box-shadow: none; border: 0; }
  .card.pad { padding: 0; }
  .wrap { padding: 0; max-width: none; }
  .grid2 { display: block; }
  table.bid { font-size: 10.5px; }
  table.bid td, table.bid th { padding: 3px 5px; }
  tr, .kpi { break-inside: avoid; }
  .topbar { background: #fff !important; color: #000; border-bottom: 3px solid var(--brand); }
  .topbar .logo, .topbar .logo span { color: #000; }
  .stripe { display: none; }
  a { color: #000; text-decoration: none; }
  details { display: block; }
  details > summary { display: none; }
}

/* =============================================================================
   ELEVATED BRAND LAYER
   Black, brushed steel and Zia red, taken from the shop logo. Everything here
   is decoration: remove this block and the app still works exactly the same.
   ========================================================================== */
:root {
  --steel-1: #f4f5f7;
  --steel-2: #c9ced6;
  --steel-3: #8b929c;
  --steel-4: #5d646e;
  --ink-black: #0a0a0b;
  --zia: #c8102e;
  --steel-grad: linear-gradient(145deg, var(--steel-1) 0%, var(--steel-3) 38%, var(--steel-1) 52%, var(--steel-4) 78%, var(--steel-2) 100%);
}

/* --- icons ---------------------------------------------------------------- */
.ico { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.25em; flex: 0 0 auto; }
.ico.zia { fill: currentColor; }
.ico-lg { width: 22px; height: 22px; }

/* --- top bar: real logo, steel hairline ----------------------------------- */
.topbar { background: linear-gradient(180deg, #141416 0%, var(--ink-black) 100%); }
.topbar .in { gap: 14px; }
.logo .mark { background: none; width: auto; height: 38px; display: grid; place-items: center; }
.logo .mark img { height: 38px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.logo b {
  background: var(--steel-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 2.4px; text-transform: uppercase; font-weight: 800;
}
.stripe { background: linear-gradient(90deg, var(--zia) 0%, #7d0a1d 45%, var(--steel-3) 50%, #7d0a1d 55%, var(--zia) 100%); }

/* --- hero: dark band, Zia watermark, steel headline ----------------------- */
.hero-band {
  position: relative; overflow: hidden; background: radial-gradient(1200px 400px at 15% -40%, #26262b 0%, var(--ink-black) 70%);
  color: #fff; border-radius: 0 0 var(--radius) var(--radius); margin: -20px -16px 0; padding: 34px 16px 30px;
}
.hero-band .zia-wm {
  position: absolute; right: -42px; top: -56px; width: 320px; height: 320px; color: #fff; opacity: .055;
  pointer-events: none; animation: ziaIn 1.4s ease-out both;
}
@keyframes ziaIn { from { opacity: 0; transform: rotate(-18deg) scale(.86); } to { opacity: .055; transform: none; } }
.hero-band .in { max-width: 1240px; margin: 0 auto; position: relative; }
.hero-band h1 { font-size: clamp(27px, 4.4vw, 42px); letter-spacing: -.8px; margin-bottom: 10px; max-width: 16ch; }
.hero-band h1 .steel { background: var(--steel-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-band p { color: #c6c8cd; max-width: 60ch; font-size: 15px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--steel-2); border: 1px solid #ffffff22; border-radius: 999px;
  padding: 5px 12px; margin-bottom: 14px; background: #ffffff0a;
}
.eyebrow .ico { color: var(--zia); }
.perks { gap: 10px 20px; }
.hero-band .perks { color: #d9dbdf; }
.hero-band .perks li { display: flex; align-items: center; gap: 8px; }
.hero-band .perks li::before { content: none; }
.hero-band .perks .ico { color: var(--zia); }

/* --- cards and controls get a bit more presence --------------------------- */
.card { border-color: color-mix(in srgb, var(--line) 85%, transparent); }
.choice { transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.choice:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.choice.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
details.grp > summary .ic { background: linear-gradient(160deg, #1b1b1f, #2d2e33); color: var(--steel-1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) details.grp > summary .ic { background: linear-gradient(160deg, #26272c, #15161a); }
}
:root[data-theme="dark"] details.grp > summary .ic { background: linear-gradient(160deg, #26272c, #15161a); }
.steps button.on { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }

/* --- the running total: the thing people watch ---------------------------- */
.live .card { position: relative; overflow: hidden; }
.live .card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--zia), var(--steel-3), var(--zia));
}
.live .big { background: var(--steel-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .live .big, :root:not([data-theme]) .live .big { background: none; color: var(--ink); }
.ticking { animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.045); } 100% { transform: scale(1); } }
.mobile-total { background: linear-gradient(180deg, #17171a, var(--ink-black)); border-top: 2px solid var(--zia); }

/* --- the proposal, on letterhead ------------------------------------------ */
.letterhead {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius) var(--radius) 0 0;
  background: radial-gradient(600px 180px at 85% -60%, #2a2a2f 0%, var(--ink-black) 75%); color: #fff; margin: -20px -20px 20px;
  position: relative; overflow: hidden;
}
.letterhead img.lh-logo { height: 54px; width: auto; }
.letterhead .lh-t { flex: 1; min-width: 0; }
.letterhead .lh-t b { display: block; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; background: var(--steel-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.letterhead .lh-t span { font-size: 12px; color: #a9acb3; }
.letterhead .lh-r { text-align: right; font-size: 12px; color: #c9ced6; }
.letterhead .zia-wm { position: absolute; right: 12px; bottom: -70px; width: 180px; height: 180px; color: #fff; opacity: .06; }
.doc h3 .ico { color: var(--zia); }
.doc section { scroll-margin-top: 16px; }
.summary .kpi { position: relative; }
.summary .kpi .ico { color: var(--muted); width: 16px; height: 16px; }
.summary .kpi.grand { background: linear-gradient(150deg, #17171b 0%, var(--ink-black) 70%); }
.summary .kpi.grand b { background: var(--steel-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stamp { font-family: var(--font); box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent) inset; }

/* --- small motion, switched off for anyone who asked --------------------- */
.card.pad, .choice, details.grp { animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .hero-band, .zia-wm { display: none !important; }
  .letterhead { background: #fff !important; color: #000; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 3px solid var(--zia); border-radius: 0; }
  .letterhead .lh-t b, .summary .kpi.grand b, .live .big { color: #000 !important; background: none !important; -webkit-text-fill-color: #000; }
  .letterhead .lh-r { color: #333; }
  .summary .kpi.grand { background: #f4f4f5 !important; color: #000; }
}

/* Steel reads differently on black than on paper: brighten it in the hero, and
   give the headline figure room so "Your price from Elevated" doesn't wrap. */
.hero-band h1 .steel {
  background: linear-gradient(135deg, #ffffff 0%, #aab2bd 42%, #ffffff 58%, #868e99 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (min-width: 760px) {
  .summary .kpi.grand { grid-column: span 2; display: flex; flex-direction: column; justify-content: center; }
  .summary .kpi.grand b { font-size: 30px; }
}
.summary .kpi span { display: inline-flex; align-items: center; gap: 5px; }
