:root {
  --paper: #f5f5ef;
  --surface: #fbfbf7;
  --white: #fff;
  --ink: #1c302c;
  --ink-2: #2c433d;
  --muted: #586761;
  --soft: #e9eddf;
  --acid: #d5ef78;
  --acid-dark: #52652b;
  --line: #cfd5c8;
  --line-dark: #9aa89d;
  --danger: #a33b2e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --shell: 1320px;
  --radius: 6px;
  --shadow: 0 24px 80px rgba(28, 48, 44, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: clip; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 100; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.shell { width: min(calc(100% - 64px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; background: var(--acid); color: var(--ink); padding: 12px 16px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #5a7613; outline-offset: 3px; }
.kicker { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); font: 700 11px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.kicker i { width: 7px; height: 7px; background: var(--acid-dark); border-radius: 50%; }
.microcopy { color: var(--muted); font-size: 12px; line-height: 1.65; }
.button, .text-button, .icon-button { border: 0; background: transparent; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 19px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: white; font-weight: 650; font-size: 13px; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); background: var(--ink-2); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: white; }
.button-small { min-height: 42px; padding: 9px 14px; font-size: 12px; }
.text-button { min-height: 44px; padding: 6px 0; border-bottom: 1px solid currentColor; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; }
.text-button:hover { color: #48611b; }
.icon { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.55; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .18s ease; }
.icon-button:hover { background: var(--soft); }

.review-ribbon { background: var(--ink); color: #eff3eb; }
.review-ribbon .shell { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 10px/1.2 var(--mono); letter-spacing: .08em; }
.review-ribbon strong { color: var(--acid); }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 730; letter-spacing: -.035em; font-size: 20px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 4px; background: var(--ink); color: var(--acid); }
.brand-mark svg { width: 27px; height: 27px; }
.desktop-nav { display: flex; gap: 30px; align-items: center; font-size: 13px; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--ink); transition: right .2s; }
.desktop-nav a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.saved-button { position: relative; }
.save-count { position: absolute; right: 0; top: 2px; min-width: 15px; height: 15px; display: grid; place-items: center; background: var(--acid); border: 1px solid var(--ink); border-radius: 20px; font: 8px var(--mono); }
.menu-button { display: none; }
.mobile-nav { padding: 8px 32px 20px; border-top: 1px solid var(--line); }
.mobile-nav a, .mobile-nav button { width: 100%; display: block; min-height: 46px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }

.home-hero { border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 68px; align-items: center; padding-block: 70px 54px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 24px 0 26px; max-width: 700px; font-size: clamp(58px, 6.2vw, 92px); line-height: .93; letter-spacing: -.073em; font-weight: 620; text-wrap: balance; }
.hero-copy h1::first-line { color: var(--ink); }
.hero-lede { max-width: 540px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; }
.trust-line { margin: 22px 0 0; color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hero-machine { position: relative; min-width: 0; padding: 18px 18px 0; border: 1px solid var(--line-dark); background-color: #eef1e7; background-image: linear-gradient(rgba(94,115,100,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(94,115,100,.09) 1px, transparent 1px); background-size: 24px 24px; box-shadow: var(--shadow); }
.machine-label { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.vehicle-diagram { display: block; width: 100%; max-height: 390px; margin: 12px auto -6px; }
.system-part { fill: #d8e2d0; stroke: #718064; stroke-width: 1.1; opacity: .32; transition: opacity .25s, transform .3s; transform-origin: center; }
.hero-machine:has([data-system-pick="engine"][aria-pressed="true"]) .part-engine,
.hero-machine:has([data-system-pick="transmission"][aria-pressed="true"]) .part-transmission,
.hero-machine:has([data-system-pick="brakes"][aria-pressed="true"]) .part-brakes,
.hero-machine:has([data-system-pick="suspension"][aria-pressed="true"]) .part-suspension { fill: var(--acid); opacity: 1; transform: translateY(-3px); }
.hotspot { cursor: pointer; fill: rgba(213,239,120,.2); stroke: #6c7d4b; stroke-width: 1.1; }
.hotspot-core { fill: var(--ink); }
.hotspot[aria-pressed="true"] { fill: var(--acid); }
.system-selector { display: flex; justify-content: center; gap: 5px; margin: -8px 0 16px; position: relative; z-index: 2; }
.system-selector button { min-height: 38px; border: 1px solid var(--line-dark); background: var(--surface); padding: 8px 12px; font: 10px var(--mono); text-transform: uppercase; }
.system-selector button[aria-pressed="true"] { background: var(--ink); color: white; }
.machine-caption { min-height: 104px; margin: 0 -18px; padding: 20px 22px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.machine-caption span { display: block; color: var(--acid); font: 9px var(--mono); letter-spacing: .13em; }
.machine-caption strong { display: block; max-width: 430px; margin-top: 8px; font-size: 18px; font-weight: 500; }
.round-link { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #74827e; border-radius: 50%; color: var(--acid); }
.round-link:hover { background: var(--acid); color: var(--ink); }

.intent-section, .featured-section { padding: 110px 0; }
.section-heading { max-width: 740px; margin-bottom: 50px; }
.section-heading.horizontal { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.section-heading h2 { margin: 16px 0 18px; font-size: clamp(42px, 5vw, 68px); line-height: 1; letter-spacing: -.06em; font-weight: 570; }
.section-heading h2 em { font-family: var(--serif); font-weight: 400; }
.section-heading > p, .section-heading.horizontal > p { max-width: 480px; margin: 0; color: var(--muted); line-height: 1.75; }
.intent-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border: 1px solid var(--line); }
.intent-grid article { min-width: 0; min-height: 330px; padding: 32px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.intent-grid article:last-child { border: 0; }
.intent-grid article > span { color: var(--acid-dark); font: 11px var(--mono); }
.intent-grid h3 { margin: auto 0 15px; font-size: 24px; letter-spacing: -.04em; }
.intent-grid p { min-height: 80px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.quick-start { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.quick-start label { grid-column: 1 / -1; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.quick-start select { min-width: 0; border: 1px solid var(--line-dark); background: white; padding: 11px; }

.anatomy-section { padding: 110px 0; background: var(--ink); color: white; overflow: hidden; }
.anatomy-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; align-items: center; }
.anatomy-art { min-height: 540px; position: relative; display: grid; place-items: center; background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size: 28px 28px; }
.quote-paper { width: min(420px, 82%); padding: 32px; background: var(--paper); color: var(--ink); transform: rotate(-2deg); box-shadow: 28px 35px 0 rgba(0,0,0,.18); }
.paper-head, .paper-line, .paper-total { display: flex; justify-content: space-between; gap: 20px; }
.paper-head { padding-bottom: 26px; font: 9px var(--mono); letter-spacing: .1em; }
.paper-line { padding: 16px 0; border-top: 1px dashed var(--line-dark); font: 10px var(--mono); }
.paper-line strong { font-weight: 500; color: var(--muted); }
.paper-line.active { margin-inline: -14px; padding-inline: 14px; background: var(--acid); }
.paper-total { padding-top: 24px; border-top: 2px solid var(--ink); font-size: 14px; }
.quote-paper svg { margin-top: 24px; fill: none; stroke: var(--acid-dark); stroke-width: 3; }
.quote-paper svg circle { fill: var(--acid-dark); }
.annotation { position: absolute; color: var(--acid); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.a-one { left: 0; top: 18px; }
.a-two { right: 0; bottom: 18px; }
.anatomy-copy .kicker { color: #9fb0aa; }
.anatomy-copy h2 { max-width: 600px; margin: 20px 0 24px; font-size: clamp(44px, 5vw, 70px); line-height: .98; letter-spacing: -.06em; font-weight: 530; }
.anatomy-copy > p { color: #c2ccc8; max-width: 600px; font-size: 17px; line-height: 1.8; }
.anatomy-copy ul { list-style: none; padding: 0; margin: 32px 0; }
.anatomy-copy li { padding: 18px 0; border-top: 1px solid #485b56; color: #c2ccc8; }
.anatomy-copy li strong { color: white; }
.anatomy-copy .text-button { color: var(--acid); }

.featured-section { background: #ebece4; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.service-card { min-width: 0; min-height: 270px; padding: 27px; position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .2s, color .2s; }
.service-card:hover { background: var(--ink); color: white; }
.service-index { position: absolute; right: 24px; top: 25px; font: 10px var(--mono); color: var(--muted); }
.service-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.service-card h3 { margin: auto 0 10px; font-size: 23px; letter-spacing: -.04em; }
.service-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-card:hover p, .service-card:hover .service-index { color: #b9c6c1; }
.card-arrow { position: absolute; right: 23px; bottom: 24px; }
.all-tools { margin-top: 28px; }
.principles { padding: 72px 0; border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.principle-grid article { display: grid; grid-template-columns: 35px 1fr; column-gap: 15px; }
.principle-grid article > span { font: 10px var(--mono); color: var(--acid-dark); }
.principle-grid h3 { margin: 0 0 9px; font-size: 18px; }
.principle-grid p { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.7; }

.breadcrumb { display: flex; align-items: center; gap: 9px; padding-top: 26px; color: var(--muted); font-size: 11px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.tool-hero { min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; padding: 54px 0 44px; }
.tool-hero h1, .decision-hero h1 { max-width: 780px; margin: 18px 0 20px; font-size: clamp(48px, 6vw, 78px); line-height: .98; letter-spacing: -.067em; font-weight: 570; }
.tool-hero > div:first-child > p, .decision-hero > p { max-width: 690px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.task-switcher { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-top: 28px; padding: 5px; border: 1px solid var(--line-dark); background: #edece4; }
.task-switcher button, .task-switcher a { min-height: 42px; padding: 10px 15px; border: 0; background: transparent; font-size: 12px; }
.task-switcher button[aria-pressed="true"] { background: var(--ink); color: white; }
.tool-hero-art { align-self: stretch; min-width: 0; padding: 17px 22px 19px; display: flex; flex-direction: column; justify-content: center; border-inline: 1px solid var(--line); background-color: #eef1e8; background-image: linear-gradient(rgba(94,115,100,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(94,115,100,.08) 1px, transparent 1px); background-size: 22px 22px; }
.art-meta { display: flex; justify-content: space-between; color: var(--muted); font: 8px var(--mono); letter-spacing: .12em; }
.tool-hero-art > p { margin: 0; color: var(--muted); text-align: center; font-size: 10px; }
.component-svg { width: 100%; height: 330px; }
.component-svg .explode { transition: transform .3s ease; }
.tool-hero-art:hover .explode { transform: translate(6px,-4px); }

.quote-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 410px; border: 1px solid var(--line-dark); background: var(--surface); box-shadow: 0 30px 80px rgba(28,48,44,.08); }
.quotes-column { min-width: 0; padding: 31px; }
.workspace-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; padding-bottom: 25px; }
.workspace-heading h2 { margin: 6px 0 0; font-size: 28px; letter-spacing: -.045em; }
.quote-cards { display: grid; gap: 16px; }
.quote-card { min-width: 0; border: 1px solid var(--line); background: white; }
.quote-card-head { min-height: 74px; padding: 14px 17px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: #eef0e7; }
.quote-card-head > div { display: flex; align-items: center; gap: 13px; }
.quote-letter { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font: 700 12px var(--mono); }
.quote-card-head h3 { margin: 0; font-size: 18px; }
.compact-field { display: grid; gap: 3px; }
.compact-field span { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.compact-field input { width: 145px; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; padding: 5px 0; }
.total-entry { padding: 20px 17px; display: grid; grid-template-columns: 165px minmax(150px, .7fr) minmax(240px, 1.3fr); gap: 12px; align-items: center; }
.total-entry > label { font-size: 13px; font-weight: 700; }
.total-entry select, .quote-line select, .scope-grid select, .field select { min-height: 44px; padding: 9px 34px 9px 11px; border: 1px solid var(--line-dark); border-radius: 3px; background: var(--surface); }
.total-amounts, .line-amounts { display: flex; align-items: center; gap: 8px; min-width: 0; }
.money-field { min-width: 0; min-height: 44px; display: flex; align-items: center; border: 1px solid var(--line-dark); border-radius: 3px; background: white; }
.money-field > span { padding-left: 11px; color: var(--muted); }
.money-field input { width: 100%; min-width: 0; height: 42px; padding: 8px 10px 8px 4px; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.money-field.large input { font-size: 18px; font-weight: 650; }
.range-to { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.field-error { grid-column: 2 / -1; margin: 0; color: var(--danger); font-size: 11px; line-height: 1.5; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.quote-details { border-top: 1px solid var(--line); }
.quote-details summary { min-height: 58px; padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; }
.quote-details summary::-webkit-details-marker { display: none; }
.quote-details summary::after { content: '+'; margin-left: auto; font-size: 22px; }
.quote-details[open] summary::after { content: '−'; }
.quote-details summary span { font-size: 13px; font-weight: 650; }
.quote-details summary small { color: var(--muted); font-size: 11px; }
.quote-lines { border-top: 1px solid var(--line); }
.quote-line { min-width: 0; padding: 12px 17px; display: grid; grid-template-columns: minmax(160px, 1fr) 165px minmax(220px, 1.35fr); gap: 10px; align-items: center; border-bottom: 1px solid #e8eae3; }
.quote-line > label { font-size: 12px; }
.quote-line .field-error { grid-column: 2 / -1; }
.scope-grid { padding: 15px 17px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); }
.scope-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.demo-strip { margin-top: 17px; padding: 17px; display: grid; grid-template-columns: minmax(200px, .7fr) 1fr; gap: 18px; border: 1px dashed var(--line-dark); }
.demo-strip p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.demo-strip > div:last-child { display: flex; gap: 7px; justify-content: end; flex-wrap: wrap; }
.demo-button { min-width: 135px; padding: 10px 12px; display: grid; grid-template-columns: 24px 1fr; gap: 2px 8px; border: 1px solid var(--line); background: white; text-align: left; }
.demo-button span { grid-row: 1 / 3; color: var(--acid-dark); font: 9px var(--mono); }
.demo-button strong { font-size: 11px; }
.demo-button small { color: var(--muted); font-size: 9px; }
.analysis-panel { min-width: 0; align-self: start; position: sticky; top: 106px; min-height: 720px; padding: 30px; border-left: 1px solid var(--line-dark); background: var(--ink); color: white; }
.analysis-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-panel .kicker { color: #a9b8b3; }
.provenance-chip { padding: 5px 7px; border: 1px solid #70817c; color: var(--acid); font: 9px var(--mono); letter-spacing: .08em; }
.provenance-chip.demo { background: #4b3d18; color: #ffe99c; border-color: #957835; }
.analysis-total { margin: 35px 0 8px; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -.055em; font-weight: 550; }
.analysis-basis { color: #b4c0bc; font-size: 12px; line-height: 1.6; }
.analysis-meter { height: 8px; margin: 22px 0; background: #445853; }
.analysis-meter span { display: block; width: 0; height: 100%; background: var(--acid); transition: width .24s ease; }
.analysis-list { margin: 0 0 22px; }
.analysis-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid #465a55; font-size: 12px; }
.analysis-list dt { color: #b4c0bc; }
.analysis-list dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.comparison-summary { margin: 20px 0 25px; padding: 17px; background: var(--acid); color: var(--ink); }
.comparison-summary .kicker { color: #4a591f; }
.comparison-summary > strong { display: block; margin: 7px 0; font-size: 29px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.comparison-summary p, .comparison-summary li { font-size: 11px; line-height: 1.6; }
.comparison-summary ul { padding-left: 17px; }
.question-block { padding: 20px 0; border-block: 1px solid #465a55; }
.question-block ol, .question-block ul { margin: 15px 0 0; padding-left: 21px; }
.question-block li { margin-bottom: 10px; color: #d6ddda; font-size: 11px; line-height: 1.6; }
.analysis-actions { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 7px; margin-top: 22px; }
.analysis-panel .button { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.analysis-panel .button-secondary { background: transparent; color: white; border-color: #7f908a; }
.analysis-panel .export-button { border: 1px solid #7f908a; border-radius: 4px; }
.analysis-panel > .microcopy { color: #9cadA7; margin-top: 17px; }
.mobile-result-dock { display: none; }

.special-builder { padding: 95px 0 20px; }
.special-workspace { display: grid; grid-template-columns: 1fr .8fr; border: 1px solid var(--line-dark); background: white; }
.special-form { padding: 28px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span:first-child, .field > label { color: var(--muted); font: 10px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.field input:not(.money-field input) { min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-dark); background: white; }
.special-output { padding: 32px; background: #e8eddc; }
.special-output > strong { display: block; margin: 22px 0 9px; font-size: 38px; letter-spacing: -.05em; overflow-wrap: anywhere; }
.special-output > p { color: var(--muted); line-height: 1.65; }
.formula-line { margin-top: 30px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font: 9px var(--mono); }
.formula-line i { color: var(--ink); font-size: 18px; font-style: normal; }

.service-guide { padding: 105px 0 80px; display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 100px; }
.guide-main > .kicker { margin-bottom: 35px; }
.guide-main section { display: grid; grid-template-columns: 42px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.section-number { color: var(--acid-dark); font: 10px var(--mono); }
.guide-main h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; letter-spacing: -.045em; }
.guide-main p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.scope-card { align-self: start; position: sticky; top: 110px; padding: 26px; border: 1px solid var(--line-dark); background: #eef0e7; }
.scope-card h2 { margin: 15px 0 20px; font-size: 24px; letter-spacing: -.04em; }
.scope-card ul { list-style: none; padding: 0; margin: 0; }
.scope-card li { padding: 15px 0; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.scope-card li strong { font-size: 13px; }
.scope-card li span { color: var(--muted); font-size: 11px; }
.question-section { padding: 80px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; background: var(--ink); color: white; }
.question-section .kicker { color: var(--acid); }
.question-section h2 { margin-top: 18px; font-size: 48px; line-height: 1; letter-spacing: -.055em; }
.question-section h2 em { color: var(--acid); font-family: var(--serif); font-weight: 400; }
.question-section ol { list-style: none; padding: 0; margin: 0; }
.question-section li { min-height: 76px; padding: 17px 0; display: grid; grid-template-columns: 40px 1fr; gap: 17px; align-items: start; border-top: 1px solid #4c5f5a; color: #d2dad7; font-size: 14px; line-height: 1.65; }
.question-section li span { color: var(--acid); font: 10px var(--mono); }
.related-section { padding: 90px 0 110px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.related-card { min-height: 125px; padding: 20px; position: relative; display: flex; flex-direction: column; border-bottom: 1px solid var(--line-dark); }
.related-card > span { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.related-card strong { margin-top: auto; font-size: 18px; }
.related-card .icon { position: absolute; right: 18px; bottom: 20px; }

.decision-hero { padding: 80px 0 55px; }
.decision-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 440px; border: 1px solid var(--line-dark); background: white; }
.decision-form { min-width: 0; padding: 32px; }
.horizon-field { padding: 20px; display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--soft); }
.horizon-field label { font-weight: 700; }
.horizon-field div, .suffix-field { display: flex; align-items: center; border: 1px solid var(--line-dark); background: white; }
.horizon-field input, .suffix-field input { width: 100px; min-height: 44px; padding: 9px; border: 0; }
.horizon-field div span, .suffix-field span { padding-right: 11px; color: var(--muted); font-size: 11px; }
.decision-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.decision-columns fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); }
.decision-columns legend { padding: 0 8px; font-weight: 700; }
.decision-columns legend span { width: 25px; height: 25px; margin-right: 8px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font: 10px var(--mono); }
.decision-columns .field + .field { margin-top: 13px; }
.decision-result { min-width: 0; padding: 34px; background: var(--ink); color: white; }
.decision-result > h2 { margin: 32px 0 10px; font-size: 38px; letter-spacing: -.05em; overflow-wrap: anywhere; }
.decision-result > p { color: #b7c4bf; font-size: 13px; line-height: 1.65; }
.decision-cards { display: grid; gap: 10px; margin: 28px 0; }
.decision-cards > div { padding: 18px; border: 1px solid #546762; }
.decision-cards span { color: var(--acid); font: 9px var(--mono); letter-spacing: .1em; }
.decision-cards strong { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.decision-cards p { margin: 7px 0 0; color: #aebbb6; font-size: 11px; line-height: 1.55; }
.maintenance-workspace .decision-form > .field-grid { margin-bottom: 25px; }
.event-list { border-top: 1px solid var(--line); }
.event-head { padding: 20px 0; }
.event-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.event-row { padding: 15px 0; display: grid; grid-template-columns: 1.2fr .7fr .8fr .8fr; gap: 10px; border-top: 1px solid var(--line); }
.event-row label { min-width: 0; display: grid; gap: 5px; }
.event-row label > span:first-child { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.event-row input:not(.money-field input) { min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--line-dark); }
.decision-result .analysis-list { margin-top: 25px; }

.library-page { padding-bottom: 100px; }
.library-hero { padding: 85px 0 55px; }
.library-hero h1 { margin: 18px 0 25px; font-size: clamp(60px, 7vw, 96px); line-height: .92; letter-spacing: -.075em; font-weight: 560; }
.library-hero > p { max-width: 660px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.library-search { max-width: 760px; min-height: 62px; margin-top: 38px; padding: 0 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line-dark); background: white; }
.library-search input { flex: 1; min-width: 0; height: 60px; border: 0; background: transparent; font-size: 16px; }
.library-search > span { color: var(--muted); font: 10px var(--mono); }
.category-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 30px; border-top: 1px solid var(--line); }
.category-filters button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line-dark); background: transparent; font-size: 10px; }
.category-filters button[aria-pressed="true"] { background: var(--ink); color: white; }
.library-list { border-top: 1px solid var(--line-dark); }
.library-row { min-height: 116px; padding: 19px 13px; display: grid; grid-template-columns: 48px 48px minmax(0, 1fr) 150px 30px; gap: 18px; align-items: center; border-bottom: 1px solid var(--line-dark); transition: background .18s, padding .18s; }
.library-row:hover { padding-inline: 24px; background: #e9ecdf; }
.row-index { color: var(--muted); font: 10px var(--mono); }
.row-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.library-row > div > span { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.library-row h2 { margin: 5px 0 4px; font-size: 20px; }
.library-row p { margin: 0; color: var(--muted); font-size: 12px; }
.row-kind { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.empty-state { padding: 45px; border: 1px dashed var(--line-dark); text-align: center; }
.empty-state > span { color: var(--acid-dark); font: 10px var(--mono); }
.empty-state h2 { font-size: 28px; }
.library-note { margin-top: 50px; padding: 28px; display: grid; grid-template-columns: .6fr 1.4fr auto; gap: 30px; align-items: start; background: var(--ink); color: white; }
.library-note p { color: #bbc7c3; font-size: 13px; line-height: 1.7; }
.library-note .text-button { color: var(--acid); }

.prose-hero { max-width: 1050px; padding: 90px 0 70px; }
.prose-hero h1 { margin: 20px 0 25px; font-size: clamp(58px, 7vw, 94px); line-height: .94; letter-spacing: -.073em; font-weight: 560; }
.prose-hero h1 em { font-family: var(--serif); font-weight: 400; }
.prose-hero > p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.prose-layout { display: grid; grid-template-columns: 240px minmax(0, 800px); gap: 90px; padding: 0 0 110px; }
.prose-layout > nav { align-self: start; position: sticky; top: 110px; border-top: 1px solid var(--line-dark); }
.prose-layout > nav a { display: block; min-height: 46px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.prose section { padding: 0 0 50px; }
.prose section + section { padding-top: 48px; border-top: 1px solid var(--line); }
.prose h2 { margin: 13px 0 18px; font-size: 36px; line-height: 1.12; letter-spacing: -.05em; }
.prose p { color: var(--muted); font-size: 15px; line-height: 1.9; }
.formula { margin: 30px 0; padding: 28px; display: flex; gap: 15px; flex-wrap: wrap; align-items: center; background: var(--soft); font: 13px var(--mono); }
.formula i { color: var(--acid-dark); font-size: 24px; font-style: normal; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status-grid > div { padding: 20px; border: 1px solid var(--line); background: white; }
.status-grid strong { font: 11px var(--mono); color: #536a24; }
.status-grid p { margin: 8px 0 0; font-size: 12px; line-height: 1.6; }
.source-entry, .readiness { padding: 25px; border-left: 4px solid var(--acid-dark); background: #eaeddf; }
.source-entry > span, .readiness > strong { font: 10px var(--mono); color: #516324; }
.source-entry h3 { margin: 10px 0; font-size: 22px; }
.source-entry a { text-decoration: underline; text-underline-offset: 3px; }
.source-entry + .source-entry { margin-top: 14px; }
.prose .source-entry .guide-list { margin: 6px 0 10px; font-size: 14px; }
.prose .source-status { margin: 8px 0; padding: 10px 12px; background: #f7eee9; color: var(--ink); font-size: 13px; line-height: 1.6; }
.prose .source-used { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.site-footer { padding-top: 70px; border-top: 1px solid #50635e; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 60px; }
.site-footer .brand-mark { background: var(--acid); color: var(--ink); }
.footer-statement { margin: 35px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.035em; }
.footer-grid h2 { color: #92a39d; font: 9px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.footer-grid button { padding: 0; border: 0; background: transparent; color: white; text-align: left; }
.footer-grid span { color: #92a39d; font-size: 10px; line-height: 1.6; }
.footer-wordmark { margin-top: 70px; padding: 28px 0 18px; border-top: 1px solid #50635e; font-size: clamp(68px, 11.7vw, 160px); line-height: .8; letter-spacing: -.085em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.footer-wordmark span { color: var(--acid); }
.footer-meta { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #50635e; color: #92a39d; font: 9px var(--mono); }

dialog { width: min(680px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); padding: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(16,32,29,.72); backdrop-filter: blur(3px); }
.dialog-head { padding: 21px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2, .compact-dialog h2 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.04em; }
.dialog-body { padding: 24px; }
.dialog-intro { color: var(--muted); font-size: 13px; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.search-results { margin-top: 15px; border-top: 1px solid var(--line); }
.search-hit { min-height: 68px; padding: 13px 4px; display: grid; border-bottom: 1px solid var(--line); }
.search-hit span { color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.search-hit strong { font-size: 15px; }
.saved-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.saved-item > div { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.saved-item h3 { margin: 12px 0 4px; font-size: 25px; letter-spacing: -.04em; }
.saved-item p { color: var(--muted); font-size: 12px; }
.saved-item footer { display: flex; gap: 16px; }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 25px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 30px); padding: 14px 19px; border: 1px solid #879993; background: var(--ink); color: white; box-shadow: var(--shadow); font-size: 12px; }
.noscript { position: fixed; z-index: 160; inset-inline: 0; bottom: 0; padding: 14px; background: #fff0bd; color: #3d3213; text-align: center; }
.print-sheet { display: none; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; }
  .tool-hero { gap: 35px; }
  .quote-workspace { grid-template-columns: minmax(0, 1fr) 350px; }
  .total-entry { grid-template-columns: 135px 145px minmax(200px, 1fr); }
  .quote-line { grid-template-columns: minmax(130px, 1fr) 145px minmax(190px, 1.2fr); }
  .analysis-panel { padding: 25px; }
  .service-guide { gap: 50px; grid-template-columns: minmax(0, 1fr) 300px; }
  .question-section { padding: 55px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 860px) {
  .shell { width: min(calc(100% - 40px), var(--shell)); }
  .hero-grid, .anatomy-grid, .tool-hero { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 55px; }
  .hero-copy h1 { max-width: 760px; }
  .hero-machine { max-width: 720px; }
  .intent-grid { grid-template-columns: 1fr; }
  .intent-grid article { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .intent-grid article:last-child { border-bottom: 0; }
  .intent-grid h3 { margin-top: 50px; }
  .anatomy-grid { gap: 55px; }
  .anatomy-art { min-height: 470px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .principle-grid { grid-template-columns: 1fr; gap: 25px; }
  .tool-hero { gap: 25px; }
  .tool-hero-art { min-height: 410px; }
  .quote-workspace, .decision-workspace { grid-template-columns: 1fr; }
  .analysis-panel { position: relative; top: auto; min-height: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .total-entry { grid-template-columns: 1fr 1fr; }
  .total-entry > label { grid-column: 1 / -1; }
  .total-entry .field-error { grid-column: 1 / -1; }
  .quote-line { grid-template-columns: minmax(150px, 1fr) 160px; }
  .line-amounts { grid-column: 1 / -1; }
  .quote-line .field-error { grid-column: 1 / -1; }
  .service-guide { grid-template-columns: 1fr; }
  .scope-card { position: relative; top: auto; }
  .question-section { grid-template-columns: 1fr; gap: 30px; }
  .special-workspace { grid-template-columns: 1fr; }
  .prose-layout { grid-template-columns: 1fr; gap: 35px; }
  .prose-layout > nav { position: relative; top: auto; display: flex; gap: 5px; flex-wrap: wrap; border: 0; }
  .prose-layout > nav a { padding: 10px 12px; border: 1px solid var(--line); }
  .library-row { grid-template-columns: 38px 44px minmax(0, 1fr) 24px; }
  .row-kind { display: none; }
  .library-note { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 80px; }
  body:has(#mobile-result-dock) .footer-meta { padding-bottom: 88px; }
  .shell { width: calc(100% - 32px); }
  .review-ribbon .shell { min-height: 26px; justify-content: center; text-align: center; font-size: 8px; }
  .review-ribbon .shell span:last-child { display: none; }
  .nav-shell { min-height: 64px; gap: 9px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-mark svg { width: 24px; }
  .nav-cta, .saved-button { display: none; }
  .nav-actions { gap: 0; }
  .mobile-nav { padding-inline: 16px; }
  .hero-grid { min-height: 0; padding: 38px 0 34px; }
  .hero-copy h1 { margin: 17px 0 20px; font-size: clamp(48px, 14.2vw, 66px); line-height: .96; }
  .hero-lede { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 25px; }
  .trust-line { font-size: 8px; }
  .hero-machine { padding: 13px 13px 0; }
  .machine-label { font-size: 7px; }
  .vehicle-diagram { margin-top: 8px; }
  .system-selector { justify-content: flex-start; overflow-x: auto; }
  .system-selector button { flex: none; }
  .machine-caption { min-height: 90px; margin-inline: -13px; padding: 16px; }
  .machine-caption strong { font-size: 14px; }
  .round-link { width: 44px; height: 44px; }
  .intent-section, .featured-section { padding: 68px 0; }
  .section-heading.horizontal { display: block; }
  .section-heading h2 { font-size: 43px; }
  .section-heading > p, .section-heading.horizontal > p { font-size: 13px; }
  .intent-grid article { min-height: 230px; padding: 23px; }
  .quick-start { grid-template-columns: 1fr; }
  .quick-start label { grid-column: auto; }
  .anatomy-section { padding: 65px 0; }
  .anatomy-art { min-height: 400px; }
  .quote-paper { width: 87%; padding: 21px; }
  .annotation { display: none; }
  .anatomy-copy h2 { font-size: 45px; }
  .anatomy-copy > p { font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; }
  .tool-hero { min-height: 0; padding: 33px 0 28px; }
  .tool-hero h1, .decision-hero h1 { font-size: 44px; }
  .tool-hero > div:first-child > p, .decision-hero > p { font-size: 14px; }
  .task-switcher { width: 100%; }
  .task-switcher button, .task-switcher a { flex: 1; min-width: 120px; text-align: center; }
  .tool-hero-art { min-height: 0; padding: 12px 14px 14px; }
  .component-svg { height: 170px; }
  .quote-workspace { margin-inline: -16px; border-inline: 0; }
  .quotes-column { padding: 22px 16px; }
  .workspace-heading h2 { font-size: 24px; }
  .quote-card-head { align-items: flex-start; }
  .compact-field input { width: 118px; }
  .total-entry { grid-template-columns: 1fr; }
  .total-entry > label, .total-entry .field-error { grid-column: auto; }
  .total-amounts { flex-wrap: wrap; }
  .total-amounts .money-field { flex: 1; }
  .quote-details summary small { display: none; }
  .quote-line { grid-template-columns: 1fr; }
  .line-amounts, .quote-line .field-error { grid-column: auto; }
  .line-amounts .money-field { flex: 1; }
  .scope-grid { grid-template-columns: 1fr; }
  .demo-strip { grid-template-columns: 1fr; }
  .demo-strip > div:last-child { justify-content: stretch; }
  .demo-button { flex: 1; }
  .analysis-panel { padding: 25px 20px; }
  .analysis-total { font-size: 38px; }
  .analysis-actions { grid-template-columns: 1fr 1fr 44px; }
  .mobile-result-dock { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; min-height: 67px; padding: 9px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #687a74; background: var(--ink); color: white; }
  .mobile-result-dock span { display: block; color: #9fb0aa; font: 8px var(--mono); }
  .mobile-result-dock strong { display: block; max-width: 240px; overflow-wrap: anywhere; font-size: 17px; }
  .mobile-result-dock button { min-width: 50px; min-height: 44px; border: 1px solid var(--acid); background: transparent; color: var(--acid); }
  .special-builder { padding-top: 65px; }
  .special-form, .special-output { padding: 21px; }
  .field-grid { grid-template-columns: 1fr; }
  .service-guide { padding: 70px 0 55px; }
  .guide-main section { grid-template-columns: 31px 1fr; gap: 12px; }
  .guide-main h2 { font-size: 25px; }
  .guide-main p { font-size: 13px; }
  .question-section { margin-inline: -16px; padding: 45px 20px; }
  .question-section h2 { font-size: 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .decision-hero { padding: 45px 0 35px; }
  .decision-workspace { margin-inline: -16px; border-inline: 0; }
  .decision-form, .decision-result { padding: 22px 17px; }
  .horizon-field { align-items: flex-start; flex-direction: column; }
  .decision-columns { grid-template-columns: 1fr; }
  .decision-result > h2 { font-size: 33px; }
  .event-row { grid-template-columns: 1fr 1fr; }
  .library-hero { padding: 50px 0 35px; }
  .library-hero h1 { font-size: 54px; }
  .library-search { padding-inline: 12px; }
  .category-filters { flex-wrap: nowrap; overflow-x: auto; }
  .category-filters button { flex: none; }
  .library-row { grid-template-columns: 30px 1fr 22px; gap: 10px; padding: 16px 4px; }
  .row-icon { display: none; }
  .library-row p { font-size: 11px; }
  .prose-hero { padding: 55px 0 45px; }
  .prose-hero h1 { font-size: 49px; }
  .prose-hero > p { font-size: 15px; }
  .prose-layout > nav { flex-wrap: nowrap; overflow-x: auto; }
  .prose-layout > nav a { flex: none; }
  .prose h2 { font-size: 30px; }
  .status-grid { grid-template-columns: 1fr; }
  .formula { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-wordmark { font-size: 13.2vw; }
  .footer-meta { padding: 16px 0; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 24px); }
  .brand { gap: 7px; font-size: 15px; }
  .hero-copy h1 { font-size: 45px; }
  .machine-caption strong { font-size: 12px; }
  .quote-card-head { flex-direction: column; }
  .compact-field, .compact-field input { width: 100%; }
  .analysis-actions { grid-template-columns: 1fr; }
  .analysis-actions .export-button { width: 100%; border-radius: 4px; }
  .question-section, .quote-workspace, .decision-workspace { margin-inline: -12px; }
  .event-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* Editorial content components rendered from src/page-content.json (scripts/page_content.py). */
.answer-box { max-width: 720px; margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); background: var(--surface); }
.answer-box > div { min-width: 0; padding: 18px 20px 16px; }
.answer-box > div + div { border-left: 1px solid var(--line); background: #eef0e7; }
.answer-box ul { margin: 10px 0 0; padding-left: 18px; }
.answer-box li { margin: 6px 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.answer-box > div + div li { color: var(--muted); }
.tool-hero-art > .diagram-legend-title { margin: 12px 0 0; color: var(--ink); font: 700 9px var(--mono); letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.diagram-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 8px 0 0; padding: 0; color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.diagram-legend li::before { content: "— "; color: var(--acid-dark); }
.guide-main p + p { margin-top: 12px; }
.guide-list { max-width: 720px; margin: 12px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.guide-list li + li { margin-top: 6px; }
.guide-main .guide-note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--danger); background: #f7eee9; color: var(--ink); }
.guide-main .section-sources, .rights-block .section-sources { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.section-sources > span { color: var(--muted); font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.source-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 11px; border: 1px solid var(--line-dark); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 12px; line-height: 1.3; text-decoration: none; }
.source-chip:hover { border-color: var(--ink); }
.rights-block { margin: 0 0 80px; padding: 48px 56px; border: 1px solid var(--line-dark); background: var(--surface); }
.rights-block h2 { margin: 14px 0 26px; font-size: 34px; line-height: 1.1; letter-spacing: -.05em; }
.rights-block ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.rights-block li { min-width: 0; padding: 18px 0; display: grid; align-content: start; gap: 6px; border-top: 1px solid var(--line); }
.rights-block li strong { font-size: 16px; }
.rights-block li > span { color: var(--muted); font-size: 14px; line-height: 1.7; }
.question-section li strong { display: block; color: white; font-weight: 600; line-height: 1.45; }
.question-section li p { margin: 6px 0 0; color: #b9c6c1; font-size: 13px; line-height: 1.65; }
.glossary { padding: 90px 0 10px; }
.glossary .section-heading { margin-bottom: 20px; }
.glossary dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.glossary dl > div { min-width: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.glossary dt { font-size: 15px; font-weight: 700; }
.glossary dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.sources-limits { margin-top: 60px; padding: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-top: 1px solid var(--line-dark); }
.sources-limits > div { min-width: 0; }
.sources-limits h2 { margin: 14px 0 20px; font-size: 28px; letter-spacing: -.045em; }
.source-list, .limit-list { list-style: none; margin: 0; padding: 0; }
.source-list li { display: grid; justify-items: start; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); }
.source-list li > span { color: var(--muted); font: 10px var(--mono); }
.limit-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.7; }
.reference-figures { max-width: 720px; margin: 18px 0 0; display: grid; gap: 12px; }
.reference-figures > div { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 18px; padding: 18px; border: 1px solid var(--line-dark); background: var(--surface); }
.reference-figures dt strong { display: block; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.reference-figures dt span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.reference-figures dd { margin: 0; display: grid; justify-items: start; gap: 8px; }
.guide-main .reference-figures dd p { margin: 0; font-size: 13px; line-height: 1.6; }
.reference-figures dd b { color: var(--ink); }
.editorial-status { margin: 20px 0 0; padding: 14px 16px; background: #eef0e7; color: var(--muted); font-size: 13px; line-height: 1.6; }
.editorial-status strong { color: var(--ink); }
@media (max-width: 860px) {
  .answer-box, .sources-limits, .rights-block ul { grid-template-columns: 1fr; }
  .answer-box > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .sources-limits { gap: 30px; }
  .glossary dl { grid-template-columns: 1fr 1fr; }
  .rights-block { padding: 34px 26px; }
}
@media (max-width: 640px) {
  .reference-figures > div { grid-template-columns: 1fr; gap: 10px; }
  .glossary { padding-top: 60px; }
  .glossary dl { grid-template-columns: 1fr; }
  .rights-block { margin-bottom: 56px; padding: 28px 20px; }
  .rights-block h2 { font-size: 27px; }
  .source-chip { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { size: auto; margin: 15mm; }
  body { padding: 0; background: white; color: #111; font-size: 10pt; }
  body::before, .review-ribbon, .site-header, #page-root > main > :not(.print-sheet), .site-footer, dialog, .toast, .mobile-result-dock, .noscript { display: none !important; }
  #page-root { display: block !important; }
  .print-sheet { display: block !important; }
  .print-sheet > header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10mm; border-bottom: 1.5pt solid #111; }
  .print-sheet > header div { display: flex; align-items: center; gap: 4mm; }
  .print-sheet > header strong { width: 10mm; height: 10mm; display: grid; place-items: center; background: #111; color: white; }
  .print-sheet > header span, .print-sheet > header time { font: 7pt var(--mono); }
  .print-sheet > h1 { margin: 12mm 0 3mm; font-size: 25pt; }
  .print-warning { padding: 4mm; border: 1pt solid #777; }
  .print-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 7mm; margin-top: 8mm; }
  .print-quotes section { break-inside: avoid; border: 1pt solid #999; padding: 5mm; }
  .print-quotes section > span { font: 7pt var(--mono); }
  .print-total { font-size: 22pt; font-weight: 700; }
  .print-sheet table { width: 100%; border-collapse: collapse; }
  .print-sheet th, .print-sheet td { padding: 2.5mm 0; border-top: .5pt solid #aaa; font-size: 8pt; text-align: left; }
  .print-sheet td { text-align: right; }
  .print-questions { margin-top: 9mm; break-inside: avoid; }
  .print-questions li { margin: 2.5mm 0; }
  .print-sheet > footer { margin-top: 10mm; padding-top: 4mm; border-top: .5pt solid #777; font: 7pt var(--mono); }
  .print-decision { margin-top: 8mm; }
  .print-decision p { padding: 5mm; border: 1pt solid #999; }
  .print-decision span, .print-decision strong { display: block; }
  .print-decision span { font: 7pt var(--mono); }
  .print-decision strong { margin-top: 3mm; font-size: 16pt; }
}

/* Interactive tool components (appended after styles.css by the builder). */

/* Notices: draft, earlier checklist, compare intent */
.draft-notice, .task-banner { margin: 0 0 16px; padding: 12px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; border: 1px solid var(--line-dark); border-left: 4px solid var(--acid-dark); background: #eef3dc; }
.draft-notice p, .task-banner p { margin: 0; min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.draft-notice[hidden], .legacy-notice[hidden] { display: none; }
.task-banner { margin: 0 0 18px; }
.legacy-notice { margin: 0; padding: 10px 17px; border-bottom: 1px solid var(--line); background: #f3efdc; color: var(--ink); font-size: 12px; line-height: 1.5; }
.legacy-notice::before { content: 'NOTE · '; font: 700 10px var(--mono); letter-spacing: .08em; }
.legacy-line > label::before, .legacy-scope > span::before { content: '↺ '; }

/* Line-by-line comparison */
.line-compare { margin-top: 18px; padding: 18px 17px; border: 1px solid var(--line-dark); background: white; }
.line-compare[hidden] { display: none; }
.line-compare-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; margin-bottom: 14px; }
.line-compare-head h3 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.03em; }
.check-field { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; cursor: pointer; }
.check-field input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.line-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; line-height: 1.45; }
.line-table caption { padding-bottom: 8px; color: var(--muted); font-size: 11px; text-align: left; caption-side: top; }
.line-table th, .line-table td { padding: 9px 8px 9px 0; border-top: 1px solid #e3e6dd; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.line-table thead th { color: var(--muted); font: 700 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.line-table thead th:first-child { width: 28%; }
.line-table thead th:last-child { width: 32%; }
.line-table tbody th { font-weight: 650; }
.line-table .line-group th { padding-top: 14px; color: var(--acid-dark); font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line-dark); }
.line-table tr.is-diff td:last-child { font-weight: 700; }
.line-table tr.is-diff td:last-child::before { content: '≠ '; }
.line-table .line-empty td { color: var(--muted); font-style: italic; }

/* Towing and special models */
.field .field-error, .special-form .field-error { grid-column: auto; }
.tow-notes { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tow-notes:empty { display: none; }
.decision-result .tow-notes { color: #d6ddda; }
.decision-shared { margin: 16px 0 6px; }
.horizon-field + .field-error { margin: 6px 0 0; }
.decision-missing { font-size: 12px !important; }
.special-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.decision-result .button { border-color: var(--acid); background: var(--acid); color: var(--ink); }
.decision-result .button-secondary { background: transparent; color: white; border-color: #7f908a; }
.decision-result .button:disabled, .analysis-panel .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.event-row { grid-template-columns: 1.2fr .7fr .8fr .8fr auto; align-items: end; }
.event-row .event-remove { align-self: end; justify-self: start; }
.event-row .field-error { grid-column: 1 / -1; }
.event-row .field-error:empty { display: none; }
[data-action="add-event"]:disabled { opacity: .5; cursor: not-allowed; }
.saved-item footer { flex-wrap: wrap; align-items: center; }

@media (max-width: 860px) {
  .event-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .line-compare { padding: 15px 12px; }
  .line-table, .line-table tbody, .line-table tr, .line-table th, .line-table td, .line-table caption { display: block; width: auto; }
  .line-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .line-table tr { padding: 8px 0; border-top: 1px solid #e3e6dd; }
  .line-table th, .line-table td { padding: 3px 0; border: 0; }
  .line-table .line-group { border-top: 1px solid var(--line-dark); }
  .line-table td[data-col]::before { content: attr(data-col) ': '; color: var(--muted); font: 700 9px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
  .line-table tr.is-diff td:last-child::before { content: '≠ ' attr(data-col) ': '; }
  .event-row { grid-template-columns: 1fr 1fr; }
  .mobile-result-dock:not(.dock-on) { transform: translateY(110%); visibility: hidden; }
  html.dock-shown { scroll-padding-bottom: 96px; }
  html.dock-shown body { padding-bottom: 80px; }
}

@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .mobile-result-dock { transition: transform .2s ease, visibility .2s; }
}

@media (max-width: 390px) {
  .event-row { grid-template-columns: 1fr; }
}

@media print {
  @page { size: letter; margin: 15mm; }
  .print-meta { margin: 0 0 3mm; font: 8pt var(--mono); }
  .print-basis { margin: 1mm 0; font-size: 8pt; }
  .print-quotes section h3, .print-block h2 { margin: 5mm 0 2mm; font-size: 10pt; }
  .print-block { margin-top: 8mm; break-inside: auto; }
  .print-sheet .line-table { table-layout: fixed; }
  .print-sheet .line-table caption { text-align: left; font-size: 8pt; }
  .print-sheet .line-table td, .print-sheet .line-table th { text-align: left; padding: 1.5mm 1mm 1.5mm 0; overflow-wrap: anywhere; }
  .print-sheet .line-table tr.is-diff td:last-child::before { content: '≠ '; }
  .print-sheet > h2 { margin: 7mm 0 2mm; font-size: 11pt; }
  .print-decision em { display: block; margin-top: 2mm; font-size: 8pt; font-style: normal; }
  .print-notes { font-size: 8pt; }
}

/* Adjacent text actions (e.g. "Load fictional example" / "Clear") keep a visible gap. */
.decision-form > .text-button + .text-button { margin-left: 22px; }

/* Contrast fixes found by the axe audit (2026-09-22). */
.decision-result .kicker { color: #a9b8b3; }
.special-output .provenance-chip { color: var(--ink); border-color: #52652b; background: #f5f7ef; }
.special-output .provenance-chip.demo { background: #4b3d18; color: #ffe99c; border-color: #957835; }

/* Posted prices observed (DOCUMENTED_COST_GUIDE pages) and contact address. */
.observed-prices { margin: 32px 0; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.observed-prices h2 { margin: 10px 0 8px; }
.obs-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.obs-table caption { text-align: left; font-weight: 650; padding-bottom: 8px; }
.obs-table th, .obs-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.obs-table thead th { font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line-dark); }
.obs-basis { display: block; color: var(--muted); font-size: 12px; }
.obs-nolink { color: var(--muted); font-size: 13px; }
.obs-detail th[scope="row"] { min-width: 8.5em; overflow-wrap: normal; }
.obs-detail td[data-label="Date observed"] { white-space: nowrap; }
.obs-details summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.obs-note { color: var(--muted); font-size: 13px; }
.contact-address { font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .observed-prices { padding: 18px; }
  .obs-table caption { display: block; }
  .obs-detail th[scope="row"] { min-width: 0; }
  .obs-detail td[data-label="Date observed"] { white-space: normal; }
  .obs-table thead { display: none; } /* stacked rows: each cell shows its own label (data-label), so the column headers are not needed */
  .obs-table, .obs-table tbody, .obs-table tr, .obs-table th, .obs-table td { display: block; width: 100%; box-sizing: border-box; }
  .obs-table tr { border-bottom: 1px solid var(--line-dark); padding: 8px 0; }
  .obs-table th, .obs-table td { border: 0; padding: 4px 0; }
  .obs-table [data-label]::before { content: attr(data-label); display: block; font: 700 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}
@media print {
  .observed-prices { border: 0; padding: 0; break-inside: auto; }
  .obs-table { font-size: 11px; }
  .obs-table tr { break-inside: avoid; }
}
