:root {
  --ink: #18211f;
  --muted: #64706c;
  --paper: #f5f6f2;
  --card: #ffffff;
  --line: #dfe4de;
  --accent: #136f63;
  --accent-dark: #0b5048;
  --soft: #e4f2ed;
  --warm: #f6e7cf;
  --danger-soft: #faece7;
  --shadow: 0 18px 60px rgba(32, 48, 43, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: white; font-size: 12px; letter-spacing: .04em; }
.prototype-pill { font-size: 12px; font-weight: 750; background: var(--warm); padding: 6px 10px; border-radius: 999px; }
.hero { padding: 72px 0 84px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: center; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 84px); line-height: .94; letter-spacing: -.065em; max-width: 820px; }
.lede { max-width: 680px; font-size: 20px; color: var(--muted); margin: 28px 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.button { appearance: none; border: 1px solid transparent; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; transition: transform .12s ease, background .12s ease, border .12s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.45); }
.button.big { min-height: 54px; padding-inline: 26px; }
.trust-line, .fineprint { font-size: 13px; color: var(--muted); }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); transform: rotate(1deg); }
.card-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; color: var(--muted); }
.hero-card h2 { margin: 10px 0; font-size: 30px; letter-spacing: -.04em; line-height: 1.05; }
.hero-card > p:not(.card-kicker):not(.fineprint) { color: var(--muted); }
.mini-stack { display: flex; align-items: center; gap: 8px; margin: 22px 0; }
.mini-stack span:nth-child(odd) { padding: 8px 11px; border-radius: 9px; background: var(--soft); font-weight: 800; }
.section { padding: 72px 0; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading.narrow { max-width: 690px; }
.section-heading h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.055em; margin: 0 0 16px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 42px); box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
legend { font-weight: 850; font-size: 20px; margin-bottom: 14px; letter-spacing: -.02em; }
.options { display: grid; gap: 10px; }
.options.three { grid-template-columns: repeat(3, 1fr); }
.options.four { grid-template-columns: repeat(4, 1fr); }
.options label { position: relative; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span { min-height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; cursor: pointer; transition: border .12s, background .12s, transform .12s; }
.options span:hover { border-color: #a9bbb5; transform: translateY(-1px); }
.options input:checked + span { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.options strong { font-size: 15px; }
.options small { color: var(--muted); margin-top: 4px; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.submit-row p { margin: 0; color: var(--muted); font-size: 13px; }
.results-section { padding-top: 16px; }
.result-shell { background: var(--ink); color: white; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.result-head { padding: clamp(26px, 5vw, 50px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.result-head .eyebrow { color: #9fddd1; }
.result-head h2 { font-size: clamp(40px, 5vw, 64px); line-height: .98; letter-spacing: -.055em; margin: 0 0 14px; }
.result-head p { color: #c8d2ce; max-width: 760px; font-size: 18px; }
.score-badge { width: 100px; height: 100px; border-radius: 50%; background: #24413b; display: grid; place-items: center; text-align: center; font-size: 12px; color: #b7cec7; }
.score-badge strong { display: block; color: white; font-size: 26px; line-height: 1; }
.result-body { background: var(--card); color: var(--ink); padding: clamp(22px, 4vw, 42px); }
.recommend-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.recommend-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fbfcfa; display: flex; flex-direction: column; }
.recommend-card.top { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f6fbf9; }
.recommend-card .tag { align-self: flex-start; background: var(--soft); color: var(--accent-dark); font-size: 11px; font-weight: 850; padding: 5px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.recommend-card h3 { font-size: 23px; letter-spacing: -.035em; margin: 15px 0 8px; }
.recommend-card .price { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.recommend-card ul { padding-left: 18px; color: #46524f; flex: 1; }
.recommend-card li + li { margin-top: 6px; }
.recommend-card .button { width: 100%; margin-top: 10px; }
.result-note { margin-top: 22px; padding: 18px; border-radius: 14px; background: var(--warm); color: #5c4930; }
.result-note.red { background: var(--danger-soft); color: #6f4033; }
.method { border-top: 1px solid var(--line); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.method-grid article { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.method-grid span { color: var(--accent); font-weight: 900; font-size: 12px; }
.method-grid h3 { font-size: 21px; margin: 12px 0 7px; }
.method-grid p { color: var(--muted); margin: 0; }
.disclosure { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 900px; }
.footer { padding: 34px 0 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 30px; font-size: 12px; color: var(--muted); }
.footer p { max-width: 530px; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-card { transform: none; }
  .options.three, .options.four, .recommend-grid, .method-grid { grid-template-columns: 1fr; }
  .options span { min-height: 70px; }
  .result-head { grid-template-columns: 1fr; }
  .score-badge { width: auto; height: auto; border-radius: 12px; display: inline-block; padding: 10px 12px; justify-self: start; }
  .footer { flex-direction: column; gap: 4px; }
}
.calculator-hero { grid-template-columns: 1.2fr .8fr; padding-bottom: 54px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.compact-card { padding: 26px; }
.calc-label { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; align-items: end; font-weight: 800; margin-bottom: 18px; }
.calc-label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.calc-label input { grid-column: 1 / -1; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 18px; background: #fbfcfa; }
.calc-label input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-result { background: var(--ink); color: white; border-radius: 24px; padding: 30px; min-height: 390px; box-shadow: var(--shadow); }
.calc-result h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1; letter-spacing: -.05em; margin: 8px 0 12px; }
.calc-result .big-number { font-size: clamp(48px, 7vw, 82px); line-height: .95; letter-spacing: -.065em; font-weight: 900; margin: 25px 0 8px; }
.calc-result .positive { color: #9fddd1; }
.calc-result .negative { color: #f6b7a3; }
.calc-result p { color: #c8d2ce; }
.calc-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.calc-metrics div { background: #243430; border-radius: 12px; padding: 14px; }
.calc-metrics small { display: block; color: #9fb0aa; }
.calc-metrics strong { display: block; margin-top: 3px; font-size: 20px; }
@media (max-width: 820px) { .calculator-hero, .calc-grid { grid-template-columns: 1fr; } }

/* Editorial / policy pages */
.prose-card { max-width: 900px; }
.prose-card h2 { margin: 30px 0 8px; font-size: 25px; letter-spacing: -.035em; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p { color: #46524f; line-height: 1.72; }
.prose-card a, .footer-links a, .article-shell a:not(.button) { color: var(--accent-dark); }
.footer-links { text-align: right; }
.article-shell { max-width: 960px; }
.article-shell > p, .article-shell > h2 { max-width: 760px; }
.article-shell > h2 { font-size: 32px; letter-spacing: -.04em; margin: 48px 0 12px; }
.article-shell > p { color: #46524f; font-size: 17px; line-height: 1.72; }
.article-callout { max-width: 850px; margin: 12px 0 32px; padding: 20px 22px; border-radius: 16px; background: var(--warm); color: #5c4930; font-size: 16px; line-height: 1.55; }
.article-grid { margin: 24px 0 8px; }
.article-actions { margin-top: 26px; }
.signal-list { max-width: 850px; list-style: none; padding: 0; margin: 24px 0 34px; counter-reset: signal; }
.signal-list li { counter-increment: signal; position: relative; padding: 19px 18px 19px 64px; border-bottom: 1px solid var(--line); }
.signal-list li::before { content: counter(signal); position: absolute; left: 12px; top: 18px; width: 32px; height: 32px; border-radius: 10px; background: var(--soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 900; }
.signal-list strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.signal-list span { display: block; margin-top: 5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 820px) { .footer-links { text-align: left; } .signal-list li { padding-left: 58px; } }

.text-link { display: inline-block; margin-top: 14px; color: var(--accent-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }


/* General-site navigation and stack-builder additions */
.topbar { gap: 18px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 800; padding: 8px 10px; border-radius: 9px; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.capability-grid article { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.capability-grid span { color: var(--accent); font-weight: 900; font-size: 12px; }
.capability-grid h3 { font-size: 21px; margin: 12px 0 7px; }
.capability-grid p { color: var(--muted); margin: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-grid label { position: relative; }
.check-grid input { position: absolute; opacity: 0; pointer-events: none; }
.check-grid span { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; cursor: pointer; transition: border .12s, background .12s, transform .12s; }
.check-grid span:hover { border-color: #a9bbb5; transform: translateY(-1px); }
.check-grid input:checked + span { border-color: var(--accent); background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.check-grid strong { font-size: 15px; }
.check-grid small { color: var(--muted); margin-top: 4px; }
.stack-map { display: grid; gap: 10px; }
.stack-layer { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.stack-layer > span { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.stack-layer h3 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.02em; }
.stack-layer p { margin: 0; color: var(--muted); }
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; padding: 12px 0; }
  .main-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; }
  .main-nav a { background: rgba(255,255,255,.45); border: 1px solid var(--line); }
  .capability-grid, .check-grid { grid-template-columns: 1fr; }
}

/* Software audit */
.audit-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr); gap: 18px; align-items: start; padding-top: 12px; }
.audit-card { overflow: hidden; }
.audit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 6px; }
.audit-toolbar h2 { margin: 0; font-size: 30px; letter-spacing: -.04em; }
.audit-table-wrap { overflow-x: auto; margin: 20px -8px 22px; padding: 0 8px; }
.audit-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.audit-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 7px; border-bottom: 1px solid var(--line); }
.audit-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.audit-input { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfa; font: inherit; color: var(--ink); padding: 8px 9px; }
.audit-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 10px; top: 10px; color: var(--muted); font-size: 13px; }
.money-input input { padding-left: 22px; min-width: 92px; }
.seat-pair { display: grid; grid-template-columns: 58px 12px 58px; align-items: center; gap: 4px; }
.seat-pair span { color: var(--muted); text-align: center; }
.icon-button { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 22px; cursor: pointer; }
.icon-button:hover { color: #8a3f2c; background: var(--danger-soft); }
.audit-submit-row { padding-top: 6px; }
.audit-summary { position: sticky; top: 18px; background: var(--ink); color: white; border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.audit-summary h2 { margin: 7px 0 12px; font-size: 38px; line-height: 1; letter-spacing: -.05em; }
.audit-summary > p:not(.eyebrow):not(.fineprint) { color: #c8d2ce; }
.audit-summary .fineprint { color: #9fb0aa; }
.audit-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.audit-metrics div { background: #243430; padding: 12px; border-radius: 11px; }
.audit-metrics small { display: block; color: #9fb0aa; font-size: 11px; }
.audit-metrics strong { display: block; margin-top: 3px; font-size: 18px; }
.audit-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.audit-result-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.audit-result-card.urgent, .audit-result-card.cut { border-color: #e0a38f; }
.audit-result-card.resize, .audit-result-card.consolidate { border-color: #bfa16b; }
.audit-result-card.keep { border-color: #9ccabd; }
.audit-result-head { display: flex; gap: 14px; justify-content: space-between; align-items: start; }
.audit-result-head h3 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.035em; }
.audit-result-head .price { margin: 0; color: var(--muted); font-size: 12px; }
.audit-result-head > strong { white-space: nowrap; font-size: 15px; }
.audit-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 8px; }
.audit-flag { display: inline-block; padding: 5px 8px; border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.audit-flag.urgent, .audit-flag.cut { background: var(--danger-soft); color: #7f422f; }
.audit-flag.resize, .audit-flag.consolidate, .audit-flag.review { background: var(--warm); color: #6a532f; }
.audit-result-card ul { margin: 10px 0 0; padding-left: 18px; color: #46524f; }
.audit-result-card li + li { margin-top: 5px; }
@media (max-width: 900px) {
  .audit-layout { grid-template-columns: 1fr; }
  .audit-summary { position: static; }
  .audit-results-grid { grid-template-columns: 1fr; }
}

/* Tool value check */
.value-check-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-label select { grid-column: 1 / -1; margin-top: 4px; }
.tool-reasons { margin-top: 18px; color: #dce5e1; }
.tool-reasons ul { margin: 8px 0 0; padding-left: 20px; }
.tool-reasons li + li { margin-top: 5px; }
@media (max-width: 700px) { .value-check-pair { grid-template-columns: 1fr; } }
