/* RTS — Remote Technical Solutions, Inc. | brand: branding/02_Logo_Colors */
:root {
  --purple: #2a085f;
  --purple-deep: #230344;
  --purple-bright: #3d14a3;
  --sunset-1: #f7b72d;
  --sunset-2: #ee704d;
  --salmon-1: #f98164;
  --salmon-2: #c0454e;
  --ink: #1d1530;
  --muted: #5c5470;
  --line: #e6e1ef;
  --bg: #ffffff;
  --bg-soft: #f7f5fb;
  --radius: 14px;
  --max: 1160px;
  --grad-sunset: linear-gradient(135deg, var(--sunset-1), var(--sunset-2));
  --grad-salmon: linear-gradient(135deg, var(--salmon-1), var(--salmon-2));
  --grad-purple: linear-gradient(160deg, var(--purple-bright), var(--purple-deep));
  --font-head: "Barlow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-bright); }
a:hover { color: var(--salmon-2); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--purple); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--sunset-1); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--purple); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--purple-bright); }
.nav a.btn { color: #fff; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--purple); margin: 5px 0; transition: .2s; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(42,8,95,.08); display: none; }
  .nav.open { display: flex; }
  .nav a.btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; padding: 12px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad-sunset); color: var(--purple-deep) !important; box-shadow: 0 6px 18px rgba(238,112,77,.35); }
.nav a.btn-primary { color: var(--purple-deep); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff !important; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--purple); color: var(--purple) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grad-purple); color: #e9e3f7; padding: 96px 0 104px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Cpath d='M10 0v40h30v40M70 0v20h30M120 60H80v40h-20v20M0 90h30'/%3E%3Ccircle cx='40' cy='80' r='5'/%3E%3Ccircle cx='100' cy='20' r='5'/%3E%3Ccircle cx='60' cy='100' r='5'/%3E%3Ccircle cx='30' cy='90' r='5'/%3E%3C/svg%3E"); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--grad-sunset); opacity: .18; filter: blur(40px); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 820px; }
.hero h1 .accent { background: var(--grad-sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; max-width: 680px; margin-bottom: 1.8em; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; color: var(--sunset-1); margin-bottom: 14px; }
.page-hero { padding: 72px 0 76px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }

/* Sections */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--salmon-2); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 40px rgba(42,8,95,.10); transform: translateY(-2px); }
.card p { color: var(--muted); }
.card .more { font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.card .more::after { content: " →"; }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: var(--grad-sunset); color: var(--purple-deep); }
.icon.salmon { background: var(--grad-salmon); color: #fff; }
.icon.purple { background: var(--grad-purple); color: #fff; }
.icon svg { width: 26px; height: 26px; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-sunset); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.2-7.2 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.2-7.2 1.8 1.8z'/%3E%3C/svg%3E") center/contain no-repeat; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--grad-purple); color: #e9e3f7; border-radius: 20px; padding: 36px; }
.panel h3 { color: #fff; }
.panel .checklist li::before { background: var(--sunset-1); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { border-left: 4px solid var(--sunset-2); padding: 6px 0 6px 18px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--purple); }
.stat span { color: var(--muted); font-size: .95rem; }
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2rem; background: var(--grad-salmon); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* CTA band */
.cta { background: var(--grad-sunset); padding: 64px 0; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0; color: var(--purple-deep); }
.cta p { margin: 6px 0 0; color: var(--purple-deep); }
.cta .btn { background: var(--purple); color: #fff !important; }

/* Contact */
.contact-card { text-align: center; }
.contact-card .icon { margin: 0 auto 16px; }
.contact-card a { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; text-decoration: none; word-break: break-word; }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-family: var(--font-head); color: var(--purple); }
.table-wrap { overflow-x: auto; }

/* Footer */
.site-footer { background: var(--purple-deep); color: #c9bfe0; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sunset-1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.linkbtn { background: none; border: 0; padding: 0; color: #fff; font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--sunset-1); }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Cookie consent banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 760px; margin: 0 auto; background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--sunset-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(35,3,68,.25); padding: 22px 24px; display: none; }
.cookie-banner.show { display: block; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: .3em; }
.cookie-banner p { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.cookie-banner .btn { font-size: .95rem; padding: 9px 20px; }
.cookie-banner .btn-outline { background: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.panel .stat-row { grid-template-columns: 1fr; }

/* ---------- Nav dropdown ---------- */
.dd { position: relative; }
.dd-btn { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--purple); background: none; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.dd-btn::after { content: ""; display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.dd-btn:hover, .dd-btn.current { background: var(--bg-soft); color: var(--purple-bright); }
.dd-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(42,8,95,.14); padding: 8px; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; }
.dd-menu a small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; }
@media (max-width: 960px) {
  .nav { max-height: calc(100vh - 76px); overflow-y: auto; }
  .dd-btn { width: 100%; text-align: left; }
  .dd-menu { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; margin-left: 12px; padding: 0 0 0 6px; min-width: 0; }
  .dd:hover .dd-menu { display: none; }
  .dd.open .dd-menu, .dd:focus-within .dd-menu { display: block; }
}

/* ---------- Shared viz ---------- */
.viz-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(42,8,95,.06); }
.viz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .viz-grid { grid-template-columns: minmax(0, 1fr); } .viz-card { padding: 16px; } }
.viz-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.viz-scroll > div { min-width: 820px; }
.viz-hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.detail { background: var(--bg-soft); border-radius: 16px; padding: 24px; border-top: 4px solid var(--sunset-2); }
.detail h3 { margin-bottom: .4em; }
.detail p { color: var(--muted); }
.detail dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.detail dt { font-family: var(--font-head); font-weight: 700; color: var(--purple); }
.detail dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: 600 .92rem var(--font-body); color: var(--purple); background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--purple-bright); }
.chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.muted { color: var(--muted); }

/* ---------- Metro map ---------- */
.metro-wrap { background: #fbfaf7; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background-image: radial-gradient(#e7e1d6 1px, transparent 1px); background-size: 22px 22px; }
.metro-svg { width: 100%; height: auto; display: block; }
.metro-line { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s; }
.metro-line.dim, .metro-stop.dim { opacity: .15; }
.metro-stop { fill: #fff; stroke-width: 4.5; cursor: pointer; }
.metro-stop:hover, .metro-stop.active { stroke-width: 6; }
.metro-hub { fill: #fff; stroke: var(--ink); stroke-width: 4; cursor: pointer; }
.metro-hub.active, .metro-hub:hover { stroke: var(--purple-bright); stroke-width: 5; fill: #fff6e6; }
.metro-train { fill: #fff; stroke-width: 5; }
.metro-phase { cursor: pointer; }
.metro-num { font: 800 13px var(--font-head); fill: var(--salmon-2); letter-spacing: .1em; }
.metro-label { font: 800 20px var(--font-head); fill: var(--purple); }
.metro-sub { font: 500 12.5px var(--font-body); fill: var(--muted); }
.metro-phase.active .metro-label { fill: var(--salmon-2); }
.metro-phase:focus-visible, .metro-stop:focus-visible, .metro-hub:focus-visible { outline: none; stroke: var(--sunset-1); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.legend .chip i { display: inline-block; width: 22px; height: 6px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }
.metro-list { list-style: none; padding: 0; margin: 0; }
.metro-list li { display: flex; gap: 12px; margin-bottom: 12px; }
.metro-list i { flex: 0 0 6px; border-radius: 3px; }
.metro-list p { margin: 2px 0 0; font-size: .95rem; }
.metro-list strong, .metro-ol strong { font-family: var(--font-head); color: var(--purple); }
.metro-big { font-size: 1.15rem; color: var(--ink) !important; }
.metro-next { font-size: .92rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.metro-ol { padding-left: 1.2em; margin: 0; font-size: .95rem; color: var(--muted); }
.metro-ol li { margin-bottom: 8px; }

/* ---------- Hub vs spaghetti ---------- */
.hub-svg { width: 100%; height: auto; max-height: 640px; display: block; }
.hub-svg .p2p path { fill: none; stroke: var(--salmon-2); stroke-width: 1.4; opacity: .45; transition: opacity .35s, stroke-width .2s; }
.hub-svg .hub path { stroke: var(--purple-bright); stroke-width: 3; opacity: .55; transition: opacity .35s; }
.hub-svg.mode-hub .p2p, .hub-svg.mode-p2p .hub { opacity: 0; pointer-events: none; }
.hub-svg .p2p, .hub-svg .hub { transition: opacity .45s; }
.hub-svg.hovering path[data-a] { opacity: .08; }
.hub-svg.hovering path.hl { opacity: 1; stroke-width: 3; }
.hub-svg .pulse { fill: var(--sunset-1); }
.hub-core { filter: drop-shadow(0 8px 18px rgba(238,112,77,.45)); }
.hub-core-t { font: 800 17px var(--font-head); fill: var(--purple-deep); }
.hub-node { outline: none; }
.hub-node circle { fill: #fff; stroke: var(--purple); stroke-width: 3; transition: .15s; }
.hub-node:hover circle, .hub-node:focus circle { fill: var(--purple); }
.hub-node:hover .hub-code, .hub-node:focus .hub-code { fill: #fff; }
.hub-code { font: 800 14px var(--font-head); fill: var(--purple); pointer-events: none; }
.hub-name { font: 600 15px var(--font-body); fill: var(--ink); }
.seg { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { font: 700 .95rem var(--font-head); border: 0; background: none; color: var(--purple); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.hub-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hub-controls label { font-family: var(--font-head); font-weight: 700; color: var(--purple); display: flex; align-items: center; gap: 12px; }
input[type=range] { accent-color: var(--sunset-2); width: 160px; }
.counter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.counter div { background: #fff; border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.counter b { display: block; font: 800 2.2rem/1 var(--font-head); }
.counter .bad b { color: var(--salmon-2); }
.counter .good b { color: var(--purple-bright); }
.counter span { font-size: .85rem; color: var(--muted); }

/* ---------- Data refinery ---------- */
.ref-svg { width: 100%; height: auto; display: block; }
.ref-head { font: 800 12px var(--font-head); letter-spacing: .2em; fill: var(--salmon-2); }
.ref-flow { transition: opacity .25s; }
.ref-flow path { fill: none; stroke: #cfc5e6; stroke-width: 2.5; transition: .25s; }
.ref-dot { fill: var(--sunset-2); }
.ref-node { transition: opacity .25s; }
.ref-node rect { fill: #fff; stroke: #cfc5e6; stroke-width: 1.5; transition: .25s; }
.ref-node text { font: 600 14px var(--font-body); fill: var(--ink); }
.ref-node.ing rect { fill: var(--bg-soft); stroke-dasharray: 4 3; }
.ref-node.use rect { stroke: var(--sunset-2); }
.ref-band { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.18); }
.ref-band-t { font: 800 16px var(--font-head); fill: #fff; }
.ref-band-s { font: 500 11.5px var(--font-body); fill: #c9bfe0; }
.ref-star-l { stroke: var(--sunset-1); stroke-width: 1.5; }
.ref-dim { fill: none; stroke: var(--sunset-1); stroke-width: 1.5; }
.ref-fact { fill: var(--sunset-1); }
.ref-arrow { stroke: rgba(255,255,255,.5); stroke-width: 2; }
.ref-svg.tracing .ref-flow:not(.on) { opacity: .12; }
.ref-svg.tracing .ref-node:not(.on) { opacity: .3; }
.ref-svg.tracing .ref-flow.on path { stroke: var(--sunset-2); stroke-width: 3.5; }
.ref-svg.tracing .ref-node.on rect { stroke: var(--sunset-2); stroke-width: 2.5; fill: #fff6ef; }

/* Maturity self-check */
.quiz { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .quiz { grid-template-columns: minmax(0, 1fr); } }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.quiz legend { font-family: var(--font-head); font-weight: 700; color: var(--purple); font-size: 1.1rem; margin-bottom: 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.opts label { display: block; position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: block; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; transition: .15s; }
.opts input:checked + span { border-color: var(--sunset-2); background: #fff4ee; box-shadow: inset 0 0 0 1px var(--sunset-2); }
.opts input:focus-visible + span { outline: 3px solid var(--sunset-1); }
.quiz-result { position: sticky; top: 100px; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.meter span { height: 12px; border-radius: 6px; background: #e3dcef; }
.meter span.f { background: var(--grad-sunset); }

/* ---------- Isometric stack ---------- */
.stack-svg { width: 100%; height: auto; display: block; max-width: 760px; margin: 0 auto; }
.slab { transition: transform .35s cubic-bezier(.3,1.4,.6,1), opacity .25s; }
.slab .f-top { fill: #efeaf8; stroke: #d6cdea; }
.slab .f-left { fill: #ddd4ef; }
.slab .f-right { fill: #cbbfe4; }
.slab .leader { stroke: #d6cdea; stroke-width: 1.5; stroke-dasharray: 3 4; }
.slab-n { font: 800 19px var(--font-head); fill: var(--purple); }
.slab-s { font: 500 13px var(--font-body); fill: var(--muted); }
.stack-svg.picking .slab:not(.on) text { opacity: .6; }
.slab.on { transform: translateX(-14px); }
.slab.on .f-top { fill: url(#slabTop); stroke: #fff; }
.slab.on .f-left { fill: #c0454e; }
.slab.on .f-right { fill: #a5323d; }
.slab.on .leader { stroke: var(--sunset-2); stroke-dasharray: none; }
.slab.on .slab-n { fill: var(--salmon-2); }
.stack-layers { font-family: var(--font-head); font-weight: 700; color: var(--salmon-2) !important; }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-head); color: #fff; background: var(--purple); }
.compare thead th:last-child { background: var(--purple-bright); }
.compare td:first-child { font-family: var(--font-head); font-weight: 700; color: var(--purple); }
.compare td:nth-child(2) { color: var(--muted); }

/* layout fixes */
.viz-grid.stacked { grid-template-columns: minmax(0, 1fr); }
.viz-scroll > div { min-width: 0; }
@media (max-width: 860px) { .viz-scroll > div { min-width: 820px; } }
@media (min-width: 861px) { .viz-scroll + .viz-hint { display: none; } }
.opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
