/* ============================================================================
   Key Blank Price Intelligence — prototype styles
   Aesthetic: refined "procurement terminal" on warm paper, brass accent
   (a nod to brass key blanks), ledger-precise monospace numerics.
   ========================================================================== */

:root {
  --paper:        #FAF8F3;
  --panel:        #FFFFFF;
  --panel-2:      #FCFAF5;
  --ink:          #1B1813;
  --ink-soft:     #4A4439;
  --muted:        #8A8172;
  --line:         #E7E1D5;
  --line-strong:  #D8D0C0;

  --brass:        #A87B2C;
  --brass-bright: #C99A3F;
  --brass-wash:   #F4ECD8;
  --green:        #2F7D4F;
  --green-wash:   #E5F0E8;
  --red-clay:     #B4502F;
  --red-wash:     #F6E6DF;
  --amber:        #C77B16;

  --font-display: "Fraunces", Georgia, serif;
  --font-ui:      "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius:       10px;
  --shadow-sm:    0 1px 2px rgba(40,32,16,.05), 0 1px 1px rgba(40,32,16,.04);
  --shadow-md:    0 8px 30px rgba(40,32,16,.10), 0 2px 8px rgba(40,32,16,.06);
  --shadow-lg:    -24px 0 60px rgba(40,32,16,.14);
  --maxw:         1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  /* faint paper grain for warmth */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200,154,63,.05), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(47,125,79,.04), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--brass-wash); }

/* tasteful scrollbars */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ------------------------------- TOPBAR --------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,248,243,.86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--brass);
  border-radius: 9px;
  color: var(--brass);
  background: linear-gradient(160deg, #fff, var(--brass-wash));
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__text { line-height: 1.05; }
.brand__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px;
  font-optical-sizing: auto; letter-spacing: -.2px;
}
.brand__sub { font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
  border: 1px solid var(--brass); color: var(--brass);
  background: var(--brass-wash);
  white-space: nowrap;
}

.legend { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.legend__item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-soft); }
.legend__item small { color: var(--muted); font-size: 10.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(0,0,0,.03); }

/* -------------------------------- HERO ---------------------------------- */
.hero { padding: 30px 0 8px; }
.hero__lead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.hero__heading { max-width: 640px; }
.hero__heading h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.04;
  letter-spacing: -.7px; margin: 0 0 10px;
}
.hero__heading h1 em { font-style: italic; color: var(--brass); }
.hero__heading p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; max-width: 56ch; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 17px 15px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brass);
}
.kpi--green::before { background: var(--green); }
.kpi__label { font-size: 11.5px; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; font-weight: 600; }
.kpi__value {
  font-family: var(--font-display); font-weight: 600;
  font-size: 33px; line-height: 1; margin: 9px 0 3px; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.kpi--green .kpi__value { color: var(--green); }
.kpi__sub { font-size: 12px; color: var(--ink-soft); }
.kpi__sub b { font-family: var(--font-mono); font-weight: 500; }

/* ---- scannable one-line brief (the business case in 4 sentences) ---- */
.brief { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.brief__card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 19px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.brief__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brass); }
.brief__label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.brief__card p {
  margin: 8px 0 0; font-size: 18px; line-height: 1.38; font-weight: 600; color: var(--ink);
  font-family: var(--font-ui);
}
.brief__card p .big {
  font-family: var(--font-display); font-weight: 600; color: var(--green);
  font-size: 26px; letter-spacing: -.5px; font-variant-numeric: tabular-nums;
}
.tiers { display: flex; gap: 7px; margin-top: 13px; flex-wrap: wrap; }
.tier {
  font-size: 11.5px; font-family: var(--font-mono); color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 100px; padding: 4px 11px;
}
.tier b { color: var(--ink); font-weight: 600; }
.tier--rec { border-color: var(--brass-bright); background: var(--brass-wash); color: #6b4e15; }
.tier--rec b { color: #5a4111; }

.demolabel {
  display: flex; align-items: center; gap: 14px; margin: 34px 0 2px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.demolabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }

@media (max-width: 720px) { .brief { grid-template-columns: 1fr; } }

/* ------------------------------ CONTROLS -------------------------------- */
.controls {
  position: sticky; top: 66px; z-index: 30;
  background: rgba(250,248,243,.9); backdrop-filter: blur(8px);
  padding: 18px 0 14px; margin-top: 18px;
  border-bottom: 1px solid var(--line);
}
.controls__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.search {
  position: relative; flex: 1 1 320px; min-width: 240px;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search input {
  width: 100%; height: 44px; padding: 0 16px 0 40px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel); font-family: var(--font-ui); font-size: 14.5px; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.search input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-wash); }
.search input::placeholder { color: var(--muted); }

.segs { display: flex; gap: 7px; flex-wrap: wrap; }
.seg-group { display: flex; align-items: center; gap: 7px; }
.seg-group + .seg-group { padding-left: 7px; border-left: 1px solid var(--line); }
.seg {
  font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel);
  transition: all .14s; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.seg:hover { border-color: var(--brass); color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg[aria-pressed="true"] .dot { box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.seg--src[aria-pressed="true"] { background: var(--ink); }

.controls__meta { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.controls__meta b { color: var(--ink); font-family: var(--font-mono); }

/* ------------------------------- TABLE ---------------------------------- */
.board { padding: 16px 0 60px; }
.tablecard {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.tscroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 940px; }
.cmp thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-2); border-bottom: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 13px 16px; white-space: nowrap;
}
.cmp thead th.col-src { text-align: right; }
.cmp thead th.col-src .dot { vertical-align: middle; margin-right: 6px; }
.cmp thead th.col-best, .cmp thead th.col-save { text-align: right; }

.cmp tbody tr {
  border-bottom: 1px solid var(--line);
  cursor: pointer; transition: background .12s;
}
.cmp tbody tr:last-child { border-bottom: none; }
.cmp tbody tr:hover { background: var(--panel-2); }
.cmp tbody tr.is-open { background: var(--brass-wash); }
.cmp td { padding: 14px 16px; vertical-align: middle; }

/* product cell */
.prod { display: flex; flex-direction: column; gap: 3px; }
.prod__code {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px; letter-spacing: -.3px;
  display: inline-flex; align-items: center; gap: 9px;
}
.prod__tag {
  font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line-strong);
}
.prod__meta { font-size: 12px; color: var(--muted); }
.prod__alias { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.ai-flag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--brass); background: var(--brass-wash); border: 1px solid var(--brass-bright);
  border-radius: 5px; padding: 1px 6px; display: inline-flex; align-items: center; gap: 4px;
}

/* source price cell */
.scell { text-align: right; }
.scell__price { font-family: var(--font-mono); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.scell__sub { font-size: 11px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.scell--none { color: var(--line-strong); text-align: right; font-size: 18px; }
.scell.is-best { position: relative; }
.scell.is-best .scell__price { color: var(--green); }
.scell.is-best::after {
  content: "BEST"; position: absolute; top: 8px; right: 16px;
  font-family: var(--font-ui); font-size: 8.5px; font-weight: 800; letter-spacing: .08em;
  color: var(--green); background: var(--green-wash); padding: 1px 5px; border-radius: 4px;
}
.scell.is-best .scell__price { padding-top: 12px; }
.conf-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; vertical-align: middle; }
.conf-high { background: var(--green); }
.conf-medium { background: var(--amber); }
.conf-low { background: var(--red-clay); }

/* best + savings */
.best-badge {
  display: inline-flex; align-items: center; gap: 7px; justify-content: flex-end;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.save { text-align: right; }
.save__pct { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--green); font-variant-numeric: tabular-nums; }
.save__bar { height: 5px; border-radius: 100px; background: var(--line); margin-top: 6px; overflow: hidden; }
.save__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brass-bright), var(--green)); border-radius: 100px; }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); font-family: var(--font-mono); }

/* ------------------------------- DRAWER --------------------------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(27,24,19,.32); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 50;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw);
  background: var(--paper); z-index: 60; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer__head {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--line);
  background: var(--panel); position: relative;
}
.drawer__close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper);
  cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); transition: all .14s;
}
.drawer__close:hover { border-color: var(--ink); color: var(--ink); }
.drawer__code { font-family: var(--font-mono); font-weight: 600; font-size: 26px; letter-spacing: -.5px; display:flex; align-items:center; gap:11px;}
.drawer__sub { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; }
.drawer__xref { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.xref {
  font-size: 11px; padding: 5px 9px; border-radius: 7px;
  background: var(--paper); border: 1px solid var(--line-strong);
}
.xref b { font-family: var(--font-mono); color: var(--ink); }
.xref span { color: var(--muted); margin-right: 5px; text-transform: uppercase; letter-spacing: .03em; font-size: 9.5px; font-weight: 700; }

.drawer__ai {
  margin: 16px 24px 0; padding: 13px 15px; border-radius: 10px;
  background: var(--brass-wash); border: 1px solid var(--brass-bright);
  font-size: 12.5px; color: #6b4e15; line-height: 1.5; display: flex; gap: 10px;
}
.drawer__ai svg { flex: none; width: 16px; height: 16px; color: var(--brass); margin-top: 1px; }
.drawer__ai b { color: #5a4111; }

.drawer__body { overflow-y: auto; padding: 18px 24px 30px; flex: 1; }
.lh { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; }

.listing {
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 14px 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
  position: relative; transition: border-color .15s, transform .15s;
}
.listing.is-best { border-color: var(--green); box-shadow: 0 0 0 1px var(--green-wash), var(--shadow-sm); }
.listing.is-excluded { opacity: .62; background: var(--panel-2); border-style: dashed; }
.listing__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.src-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; background: var(--paper); border: 1px solid var(--line-strong);
}
.listing__flag {
  margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
}
.flag-best { color: var(--green); background: var(--green-wash); }
.flag-excl { color: var(--red-clay); background: var(--red-wash); }
.listing__title { font-size: 13.5px; color: var(--ink); line-height: 1.4; margin-bottom: 12px; }

.priceline { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 11px; }
.priceline__unit { line-height: 1; }
.priceline__unit b { font-family: var(--font-mono); font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.priceline__unit span { font-size: 11px; color: var(--muted); display: block; margin-top: 3px; }
.priceline__unit.is-best b { color: var(--green); }
.priceline__pack { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.priceline__pack b { font-family: var(--font-mono); font-weight: 600; }

.facts { display: flex; flex-wrap: wrap; gap: 6px 7px; margin-bottom: 11px; }
.fact {
  font-size: 11px; color: var(--ink-soft); background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
  display: inline-flex; align-items: center; gap: 5px;
}
.fact b { font-family: var(--font-mono); color: var(--ink); font-weight: 600; }
.fact--prime { color: var(--amber); border-color: #e9cfa0; }
.fact--trade { color: var(--brass); border-color: var(--brass-bright); }

.rationale {
  font-size: 12px; color: var(--ink-soft); line-height: 1.5;
  border-left: 2px solid var(--line-strong); padding: 2px 0 2px 11px; margin-bottom: 12px;
}
.rationale .conf-dot { margin: 0 6px 0 0; }
.rationale b { color: var(--ink); }

.listing__link {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--paper); transition: all .14s;
}
.listing__link:hover { border-color: var(--brass); color: var(--brass); }
.listing__link svg { width: 13px; height: 13px; }

/* ------------------------------- FOOTER --------------------------------- */
.footnote {
  border-top: 1px solid var(--line); padding: 26px 0 50px; color: var(--muted); font-size: 12.5px; line-height: 1.6;
}
.footnote b { color: var(--ink-soft); }
.footnote .how { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 16px; }
.footnote .how div { flex: 1 1 200px; }
.footnote .how h4 { margin: 0 0 5px; font-size: 12px; color: var(--ink); font-family: var(--font-ui); letter-spacing: .02em; }

/* ----------------------------- ANIMATION -------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise .6s cubic-bezier(.22,.61,.36,1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .drawer, .scrim { transition: none; }
}

/* ---------------------------- TOPBAR NAVLINK ---------------------------- */
.navlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--panel); transition: all .14s; white-space: nowrap;
}
.navlink:hover { border-color: var(--brass); color: var(--brass); }
.navlink svg { width: 15px; height: 15px; }
.navlink--ghost { border-color: transparent; background: transparent; }
.navlink--ghost:hover { border-color: var(--brass); }

/* ============================ OVERVIEW PAGE ============================= */
.doc { max-width: 900px; margin: 0 auto; padding: 0 28px; }
.doc-hero { padding: 44px 0 10px; }
.doc-hero h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.6px;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.05; margin: 0 0 14px;
}
.doc-hero h1 em { font-style: italic; color: var(--brass); }
.doc-hero p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; margin: 0; }

.sec { padding: 30px 0 6px; }
.sectitle {
  font-family: var(--font-ui); font-size: 12px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.sectitle::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.card p { margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-soft); }
.card p + p { margin-top: 12px; }
.card strong { color: var(--ink); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; box-shadow: var(--shadow-sm); position: relative;
}
.step__n {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  color: var(--brass); background: var(--brass-wash); border: 1px solid var(--brass-bright);
  margin-bottom: 13px;
}
.step h3 { font-family: var(--font-ui); font-size: 16px; font-weight: 700; margin: 0 0 7px; color: var(--ink); }
.step p { margin: 0; font-size: 14px; line-height: 1.58; color: var(--ink-soft); }

/* where the money goes */
.where { display: flex; flex-direction: column; gap: 0; }
.where__row {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.where__row:last-child { border-bottom: none; }
.where__icon { flex: none; margin-top: 2px; }
.where__main { flex: 1; }
.where__main h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; color: var(--ink); font-family: var(--font-ui); }
.where__main p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.where__cost {
  flex: none; font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--ink);
  text-align: right; white-space: nowrap; padding-left: 8px;
}
.where__cost.free { color: var(--green); }

/* cost table */
.costtable { width: 100%; border-collapse: collapse; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.costtable th, .costtable td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.costtable th { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--panel-2); }
.costtable tr:last-child td { border-bottom: none; }
.costtable td:first-child { font-weight: 700; color: var(--ink); }
.costtable td:last-child, .costtable th:last-child { text-align: right; font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.costtable tr.is-rec { background: var(--brass-wash); }
.costtable tr.is-rec td:first-child::after {
  content: "Recommended"; display: inline-block; margin-left: 9px;
  font-family: var(--font-ui); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brass); background: #fff; border: 1px solid var(--brass-bright); border-radius: 5px; padding: 2px 6px; vertical-align: middle;
}
.costnote { font-size: 13px; color: var(--muted); margin: 12px 2px 0; line-height: 1.55; }

/* simple bullet list */
.plainlist { margin: 0; padding: 0; list-style: none; }
.plainlist li {
  position: relative; padding: 10px 0 10px 26px; font-size: 14.5px; color: var(--ink-soft);
  line-height: 1.55; border-bottom: 1px solid var(--line);
}
.plainlist li:last-child { border-bottom: none; }
.plainlist li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brass);
}
.plainlist li b { color: var(--ink); }

/* bottom line */
.bottomline {
  margin: 34px 0 10px; padding: 26px 28px; border-radius: 16px;
  background: linear-gradient(160deg, var(--brass-wash), #fff);
  border: 1px solid var(--brass-bright); box-shadow: var(--shadow-sm);
}
.bottomline h3 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brass); margin: 0 0 9px; }
.bottomline p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink); font-family: var(--font-display); }

/* ----------------------------- RESPONSIVE ------------------------------- */
@media (max-width: 920px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .legend { display: none; }
  .controls { top: 66px; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .doc { padding: 0 16px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi__value { font-size: 26px; }
  .navlink { padding: 7px 11px; font-size: 12px; }
  .brand__sub { display: none; }
  .where__cost { font-size: 13px; }
  .costtable th, .costtable td { padding: 12px 12px; font-size: 13px; }
}
