:root {
  --paper: #edf0ec;
  --surface: #f8f8f4;
  --ink: #111816;
  --ink-2: #303a37;
  --muted: #69736f;
  --line: #cbd2ce;
  --green: #2f7d55;
  --lime: #b3ed70;
  --orange: #f15a38;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 5vw, 80px);
  --max: 1600px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.topbar { position: sticky; z-index: 20; top: 0; height: 68px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: rgba(237,240,236,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 55px; height: 20px; fill: currentColor; }
.brand span { font-size: 13px; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 26px; }
.top-actions a, .top-actions button, .doc-id { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.top-actions a { text-decoration: none; border-bottom: 1px solid; padding-bottom: 3px; }
.top-actions button { padding: 9px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; }
.doc-id { color: var(--muted); }

.hero { min-height: calc(100svh - 68px); max-width: var(--max); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--pad) 34px; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(380px, .78fr); grid-template-rows: 1fr auto; gap: 70px clamp(60px, 9vw, 150px); align-items: center; }
.eyebrow { margin: 0 0 28px; font-family: var(--mono); font-size: 10px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { max-width: 960px; margin: 0; font-size: clamp(60px, 7vw, 112px); line-height: .88; letter-spacing: -.065em; font-weight: 500; }
.hero h1 em { color: var(--green); font-style: normal; }
.lead { max-width: 720px; margin: 42px 0 0; color: var(--ink-2); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.47; }
.hero-total { align-self: stretch; padding: 28px 0 0 40px; display: flex; flex-direction: column; border-left: 1px solid var(--ink); }
.hero-total > span { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.hero-total > strong { margin-top: auto; font-size: clamp(88px, 10vw, 166px); line-height: .75; letter-spacing: -.085em; font-weight: 500; white-space: nowrap; }
.hero-total > div { margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
.hero-total b { font-size: 17px; }
.hero-total small { max-width: 210px; color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.5; text-transform: uppercase; text-align: right; }
.hero-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.hero-meta > div { padding: 16px 22px 0 0; display: flex; justify-content: space-between; gap: 18px; }
.hero-meta > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero-meta span { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.hero-meta strong { font-size: 15px; font-weight: 600; text-align: right; }

.section-pad { padding: clamp(90px, 11vw, 176px) var(--pad); }
.section-title { max-width: var(--max); margin: 0 auto 72px; }
.section-title h2, .scope h2, .bom h2 { margin: 0; font-size: clamp(50px, 6vw, 96px); line-height: .92; letter-spacing: -.055em; font-weight: 500; }

.variants { background: var(--ink); color: white; }
.variants .eyebrow { color: var(--lime); }
.variant-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #3a4542; border-bottom: 1px solid #3a4542; }
.variant-grid article { min-height: 520px; padding: 28px 34px 34px; display: flex; flex-direction: column; }
.variant-grid article + article { border-left: 1px solid #3a4542; }
.variant-grid .recommended { background: var(--lime); color: var(--ink); }
.variant-label { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.variant-grid article > strong { margin-top: auto; font-size: clamp(62px, 6vw, 98px); line-height: .8; letter-spacing: -.07em; font-weight: 500; white-space: nowrap; }
.variant-grid article > strong small { font-family: var(--mono); font-size: 10px; letter-spacing: 0; }
.variant-grid article > p { max-width: 430px; margin: 42px 0 28px; color: #b7c0bd; font-size: 16px; line-height: 1.5; }
.variant-grid .recommended > p { color: var(--ink-2); }
.variant-grid ul { margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid #3a4542; }
.variant-grid .recommended ul { border-color: rgba(18,25,24,.25); }
.variant-grid li { padding: 6px 0; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.variant-grid li::before { content: "—"; margin-right: 8px; }
.variant-note { max-width: var(--max); margin: 30px auto 0; color: #9ba5a1; font-family: var(--mono); font-size: 10px; line-height: 1.6; text-transform: uppercase; }

.scope { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); gap: clamp(70px, 12vw, 200px); }
.scope ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.scope li { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.scope li span { padding-top: 5px; color: var(--green); font-family: var(--mono); font-size: 9px; }
.scope li p { margin: 0; font-size: clamp(19px, 1.75vw, 28px); line-height: 1.25; letter-spacing: -.02em; }
.scope li p b { display: block; margin-bottom: 7px; color: var(--ink); font-size: .72em; line-height: 1.2; letter-spacing: 0; text-transform: uppercase; }

.layout-proof { background: #dfe6e1; }
.layout-title > p:last-child { max-width: 860px; margin: 36px 0 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.product-render { position: relative; max-width: var(--max); margin: 0 auto 28px; overflow: hidden; border: 1px solid var(--ink); background: var(--surface); }
.product-render img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.product-render figcaption { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--ink); }
.product-render figcaption span { color: var(--green); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.product-render figcaption p { margin: 0; color: var(--muted); font-size: 15px; }
.rack-drawings { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); }
.drawing-card + .drawing-card { border-left: 1px solid var(--ink); }
.drawing-head, .drawing-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.drawing-head { border-bottom: 1px solid var(--ink); }
.drawing-head b { font-weight: 500; }
.rack-css-visual, .shelf-css-visual { min-height: 520px; padding: 36px; display: grid; background: var(--surface); }
.rack-css-visual { grid-template-columns: 52px 1fr; grid-template-rows: 1fr 34px; gap: 12px; }
.height-dimension { position: relative; grid-row: 1; display: grid; place-items: center; border-left: 1px solid var(--muted); }
.height-dimension::before, .height-dimension::after { content: ""; position: absolute; left: -8px; width: 16px; border-top: 1px solid var(--muted); }
.height-dimension::before { top: 0; }
.height-dimension::after { bottom: 0; }
.height-dimension span { transform: rotate(-90deg); white-space: nowrap; }
.rack-css-visual span, .shelf-css-visual span, .tray-css small { font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.rack-css-shell { grid-column: 2; grid-row: 1; padding: 18px 24px 12px; display: grid; grid-template-rows: repeat(4, 1fr) 38px; gap: 12px; border: 3px solid var(--ink); }
.rack-css-level { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 13px; border: 2px solid var(--green); background: #cdeba8; }
.rack-css-level i { align-self: start; height: 7px; margin: -22px 15px 0; background: var(--orange); }
.rack-css-level b { position: absolute; right: -52px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 9px; font-weight: 500; }
.rack-css-water { width: 52%; display: flex; align-items: center; justify-content: space-around; background: var(--green); color: white; }
.width-dimension { position: relative; grid-column: 2; display: grid; place-items: end center; border-top: 1px solid var(--muted); }
.width-dimension::before, .width-dimension::after { content: ""; position: absolute; top: -8px; height: 16px; border-left: 1px solid var(--muted); }
.width-dimension::before { left: 0; }
.width-dimension::after { right: 0; }
.shelf-css-visual { grid-template-columns: 46px 1fr; grid-template-rows: 1fr 34px; gap: 12px; }
.shelf-depth { position: relative; display: grid; place-items: center; border-left: 1px solid var(--muted); }
.shelf-depth::before, .shelf-depth::after { content: ""; position: absolute; left: -7px; width: 14px; border-top: 1px solid var(--muted); }
.shelf-depth::before { top: 0; }
.shelf-depth::after { bottom: 0; }
.shelf-depth span { transform: rotate(-90deg); white-space: nowrap; }
.shelf-css-shell { padding: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border: 3px solid var(--ink); }
.tray-css { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--green); background: #cdeba8; }
.tray-css small { color: var(--green); }
.shelf-width { position: relative; grid-column: 2; display: grid; place-items: end center; border-top: 1px solid var(--muted); }
.shelf-width::before, .shelf-width::after { content: ""; position: absolute; top: -8px; height: 16px; border-left: 1px solid var(--muted); }
.shelf-width::before { left: 0; }
.shelf-width::after { right: 0; }
.drawing-foot { border-top: 1px solid var(--ink); flex-wrap: wrap; color: var(--green); }
.rack-math { max-width: var(--max); margin: 26px auto 110px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.rack-math > div { min-height: 122px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.rack-math > div + div { border-left: 1px solid rgba(18,25,24,.25); }
.rack-math span { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.rack-math strong { font-size: 22px; font-weight: 500; }
.rack-math .result { background: var(--lime); }
.rack-math .result span { color: var(--ink-2); }
.density-block { max-width: var(--max); margin: 0 auto 110px; padding: clamp(40px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(540px, 1.15fr); gap: clamp(70px, 10vw, 150px); background: var(--ink); color: white; }
.density-copy .eyebrow { color: var(--lime); }
.density-copy h3, .container-plan-copy h3, .logging-spec h3 { margin: 0; font-size: clamp(38px, 4vw, 62px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.density-copy > p:last-child, .container-plan-copy > p:last-child { margin: 30px 0 0; color: #aab3b0; font-size: 16px; line-height: 1.55; }
.density-table { align-self: end; border-top: 1px solid #3a4542; }
.density-row { display: grid; grid-template-columns: .55fr .8fr .9fr 1.6fr; gap: 16px; align-items: center; min-height: 76px; padding: 12px 14px; border-bottom: 1px solid #3a4542; }
.density-row span, .density-row b { font-family: var(--mono); font-size: 10px; font-weight: 400; line-height: 1.45; }
.density-row strong { font-size: 30px; font-weight: 500; }
.density-header { min-height: 44px; color: #9ba5a1; text-transform: uppercase; }
.density-row.selected { background: var(--lime); color: var(--ink); }
.density-row.rejected { color: #85908c; }
.container-plan { max-width: var(--max); margin: 0 auto 110px; padding: clamp(44px, 6vw, 84px); background: var(--surface); border: 1px solid var(--ink); }
.container-plan-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr); gap: clamp(70px, 10vw, 160px); align-items: end; margin-bottom: 70px; }
.container-plan-copy .eyebrow { grid-column: 1 / -1; margin-bottom: -38px; }
.container-sketch { min-height: 360px; display: grid; grid-template-columns: 1.1fr 4fr .8fr; grid-template-rows: 1fr .65fr 1fr 30px; grid-template-areas: "tech top hygiene" "tech aisle hygiene" "tech bottom hygiene" "length length length"; border: 3px solid var(--ink); background: white; }
.container-sketch .zone { padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 7px; background: var(--ink); color: white; text-align: center; }
.container-sketch .zone span, .container-sketch .aisle span, .container-length { font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.container-sketch .zone small { color: #aab3b0; font-size: 10px; line-height: 1.35; }
.container-sketch .tech { grid-area: tech; }
.container-sketch .hygiene { grid-area: hygiene; background: var(--orange); color: var(--ink); }
.container-sketch .hygiene small { color: var(--ink-2); }
.grow-bank { display: grid; grid-template-columns: repeat(4, 1fr); padding: 9px; gap: 7px; background: #dfe6e1; }
.grow-bank.top { grid-area: top; }
.grow-bank.bottom { grid-area: bottom; }
.grow-bank i { display: grid; place-items: center; border: 2px solid var(--green); background: #cdeba8; color: var(--ink); font-family: var(--mono); font-size: 11px; font-style: normal; }
.container-sketch .aisle { grid-area: aisle; display: grid; place-items: center; border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
.container-length { grid-area: length; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.container-capacity { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.container-capacity > div { min-height: 170px; padding: 18px; display: flex; flex-direction: column; }
.container-capacity > div + div { border-left: 1px solid var(--line); }
.container-capacity span, .container-capacity small { font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.container-capacity strong { margin-top: auto; font-size: 42px; font-weight: 500; letter-spacing: -.04em; }
.container-capacity small { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.container-capacity .recommended { background: var(--lime); }
.container-capacity .recommended small { color: var(--ink-2); }
.logging-spec { max-width: var(--max); margin: 0 auto; padding: clamp(44px, 6vw, 84px); display: grid; grid-template-columns: minmax(0, .75fr) minmax(500px, 1.25fr); gap: clamp(70px, 10vw, 150px); background: var(--ink); color: white; }
.logging-spec .eyebrow { color: var(--lime); }
.logging-spec dl { margin: 0; border-top: 1px solid #3a4542; }
.logging-spec dl > div { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 20px 0; border-bottom: 1px solid #3a4542; }
.logging-spec dt { color: var(--lime); font-family: var(--mono); font-size: 9px; line-height: 1.45; text-transform: uppercase; }
.logging-spec dd { margin: 0; color: #c5ccca; font-size: 15px; line-height: 1.5; }

.bom { background: var(--surface); }
.bom-head { max-width: var(--max); margin: 0 auto 56px; display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.live-total { min-width: 290px; padding-left: 28px; border-left: 1px solid var(--ink); }
.live-total span, .live-total small { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.live-total strong { display: block; margin: 8px 0; font-size: 32px; font-weight: 500; letter-spacing: -.03em; }
.table-tools { max-width: var(--max); margin: 0 auto 18px; display: flex; justify-content: space-between; gap: 24px; }
.table-tools input { width: min(360px, 100%); height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.filters button { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-family: var(--mono); font-size: 9px; text-transform: uppercase; cursor: pointer; }
.filters button.active, .filters button:hover { background: var(--ink); color: white; border-color: var(--ink); }
.table-wrap { max-width: var(--max); margin: 0 auto; overflow-x: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; border-top: 1px solid var(--ink); }
th { position: static; padding: 14px 14px; background: var(--ink); color: white; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
td { padding: 18px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); font-size: 13px; line-height: 1.45; }
td:first-child { color: var(--green); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
td strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
td small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 8px; line-height: 1.4; text-transform: uppercase; }
td b { color: var(--ink); font-size: 15px; white-space: nowrap; }
tbody tr:hover { background: #eef2ed; }
tbody tr[hidden] { display: none; }
tfoot td { background: #e6ebe7; color: var(--ink); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
tfoot td:nth-child(2) { font-size: 14px; font-weight: 600; }
tfoot .grand-total td { padding-top: 24px; padding-bottom: 24px; background: var(--lime); font-weight: 500; }

.container-summary { max-width: var(--max); margin: 100px auto 0; background: var(--ink); color: white; }
.container-summary-head { padding: clamp(40px, 5vw, 76px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .65fr); gap: clamp(60px, 10vw, 170px); align-items: end; }
.container-summary-head .eyebrow { color: var(--lime); }
.container-summary-head h3 { margin: 0; font-size: clamp(56px, 6.5vw, 104px); line-height: .86; letter-spacing: -.06em; font-weight: 500; }
.container-summary-head > p { max-width: 560px; margin: 0; color: #b7c0bd; font-size: 17px; line-height: 1.55; }
.container-cost-lines { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark, #3a4542); border-bottom: 1px solid var(--line-dark, #3a4542); }
.container-cost-lines > div { min-height: 310px; padding: 26px 32px 30px; display: flex; flex-direction: column; }
.container-cost-lines > div + div { border-left: 1px solid #3a4542; }
.container-cost-lines span { font-family: var(--mono); font-size: 9px; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; }
.container-cost-lines strong { margin-top: auto; font-size: clamp(50px, 5vw, 78px); line-height: .82; letter-spacing: -.06em; font-weight: 500; white-space: nowrap; }
.container-cost-lines strong small { font-family: var(--mono); font-size: 9px; letter-spacing: 0; }
.container-cost-lines b { margin-top: 24px; padding-top: 14px; border-top: 1px solid #3a4542; color: #b7c0bd; font-size: 15px; font-weight: 500; }
.container-cost-lines .container-total { background: var(--lime); color: var(--ink); }
.container-cost-lines .container-total b { border-color: rgba(18,25,24,.25); color: var(--ink-2); }
.container-next { padding: 26px clamp(32px, 5vw, 76px); display: grid; grid-template-columns: 190px minmax(0, 850px); gap: 40px; }
.container-next span { padding-top: 4px; color: var(--lime); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.container-next p { margin: 0; color: #b7c0bd; font-size: 15px; line-height: 1.55; }

.cost-map { background: #dfe6e1; }
.bars { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--ink); }
.bars > div { display: grid; grid-template-columns: 180px 1fr 120px; gap: 28px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(18,25,24,.18); }
.bars span { font-size: 17px; font-weight: 600; }
.bars i { display: block; width: var(--w); max-width: 100%; height: 8px; background: var(--green); }
.bars strong { font-family: var(--mono); font-size: 10px; font-weight: 500; text-align: right; }

.buy-plan { background: var(--paper); }
.rounds { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.rounds article { min-height: 400px; padding: 24px 32px 30px 0; display: flex; flex-direction: column; }
.rounds article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.rounds span, .rounds small { font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.rounds span { color: var(--green); }
.rounds strong { margin-top: auto; font-size: 34px; font-weight: 500; letter-spacing: -.035em; }
.rounds p { max-width: 430px; margin: 18px 0 30px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.rounds small { padding-top: 12px; border-top: 1px solid var(--line); }

footer { min-height: 330px; padding: 60px var(--pad) 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--ink); color: white; }
footer > div:first-child { display: flex; gap: 12px; align-items: baseline; }
footer > div:first-child strong { font-size: 22px; }
footer > div:first-child span { color: #9ba5a1; font-size: 13px; }
footer > p { max-width: 720px; margin: 0; color: #aab3b0; font-size: 15px; line-height: 1.55; }
.footer-end { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid #3a4542; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.footer-end a { text-decoration: none; }

@media (max-width: 1100px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-total { min-height: 430px; }
  .hero-total > strong { font-size: clamp(110px, 17vw, 170px); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta > div { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); }
  .hero-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .variant-grid { grid-template-columns: 1fr; }
  .variant-grid article { min-height: 420px; border-left: 0 !important; border-top: 1px solid #3a4542; }
  .variant-grid article:first-child { border-top: 0; }
  .scope { grid-template-columns: 1fr; }
  .rack-drawings { grid-template-columns: 1fr; }
  .drawing-card + .drawing-card { border-left: 0; border-top: 1px solid var(--ink); }
  .rack-math { grid-template-columns: repeat(2, 1fr); }
  .rack-math > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(18,25,24,.25); }
  .rack-math > div:nth-child(4) { border-top: 1px solid rgba(18,25,24,.25); }
  .density-block, .logging-spec { grid-template-columns: 1fr; }
  .container-plan-copy { grid-template-columns: 1fr; }
  .container-plan-copy .eyebrow { margin-bottom: -28px; }
  .container-summary-head { grid-template-columns: 1fr; }
  .container-cost-lines { grid-template-columns: 1fr; }
  .container-cost-lines > div { min-height: 280px; }
  .container-cost-lines > div + div { border-left: 0; border-top: 1px solid #3a4542; }
  .table-tools { align-items: stretch; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .rounds { grid-template-columns: 1fr; }
  .rounds article { min-height: 330px; border-left: 0 !important; border-top: 1px solid var(--line); }
  .rounds article:first-child { border-top: 0; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .topbar { height: 62px; }
  .brand span, .doc-id, .top-actions button { display: none; }
  .top-actions { gap: 0; }
  .top-actions a { font-size: 9px; }
  .hero { padding-top: 72px; gap: 50px; }
  .hero h1 { font-size: 52px; }
  .lead { margin-top: 30px; font-size: 18px; }
  .hero-total { min-height: 320px; padding-left: 20px; }
  .hero-total > strong { font-size: 82px; }
  .hero-total > div { flex-direction: column; gap: 10px; }
  .hero-total small { text-align: left; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta > div, .hero-meta > div + div { padding: 16px 0; border-left: 0; }
  .section-title { margin-bottom: 50px; }
  .section-title h2, .scope h2, .bom h2 { font-size: 52px; }
  .variant-grid article { min-height: 440px; padding: 24px 20px 30px; }
  .variant-grid article > strong { font-size: 68px; }
  .scope { gap: 50px; }
  .scope li p { font-size: 22px; }
  .layout-title > p:last-child { font-size: 17px; }
  .product-render { width: calc(100% + var(--pad) * 2); margin-left: calc(var(--pad) * -1); }
  .product-render figcaption { grid-template-columns: 1fr; gap: 8px; padding: 16px var(--pad); }
  .product-render figcaption p { font-size: 14px; }
  .drawing-head, .drawing-foot { padding: 14px 12px; gap: 10px; }
  .rack-css-visual, .shelf-css-visual { min-height: 420px; padding: 18px 12px; }
  .rack-css-visual { grid-template-columns: 34px 1fr; }
  .shelf-css-visual { grid-template-columns: 30px 1fr; }
  .rack-css-shell { padding: 16px 18px 10px; }
  .rack-css-level b { right: -28px; font-size: 7px; }
  .rack-css-level { gap: 12px; }
  .rack-css-level i { margin-left: 5px; margin-right: 5px; }
  .shelf-css-shell { padding: 14px; gap: 8px; }
  .tray-css span { font-size: 7px; }
  .tray-css small { display: none; }
  .rack-math { grid-template-columns: 1fr; margin-bottom: 72px; }
  .rack-math > div, .rack-math > div:nth-child(3), .rack-math > div:nth-child(4) { min-height: 100px; border-left: 0; border-top: 1px solid rgba(18,25,24,.25); }
  .rack-math > div:first-child { border-top: 0; }
  .density-block { width: calc(100% + var(--pad) * 2); margin: 0 0 72px calc(var(--pad) * -1); padding: 48px var(--pad); gap: 42px; }
  .density-row { grid-template-columns: 40px 64px 72px 1fr; gap: 8px; padding: 10px 8px; }
  .density-row span, .density-row b { font-size: 8px; }
  .density-row strong { font-size: 24px; }
  .density-header span { font-size: 7px; }
  .container-plan { width: calc(100% + var(--pad) * 2); margin: 0 0 72px calc(var(--pad) * -1); padding: 48px var(--pad); border-left: 0; border-right: 0; }
  .container-plan-copy { gap: 40px; margin-bottom: 42px; }
  .container-plan-copy .eyebrow { margin-bottom: -18px; }
  .container-sketch { min-height: 300px; grid-template-columns: .9fr 3.5fr .75fr; }
  .container-sketch .zone { padding: 8px 4px; }
  .container-sketch .zone span, .container-sketch .aisle span, .container-length { font-size: 7px; }
  .container-sketch .zone small { font-size: 7px; }
  .grow-bank { padding: 5px; gap: 4px; }
  .grow-bank i { font-size: 8px; }
  .container-capacity { grid-template-columns: 1fr; }
  .container-capacity > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .container-capacity > div { min-height: 150px; }
  .logging-spec { width: calc(100% + var(--pad) * 2); margin-left: calc(var(--pad) * -1); padding: 48px var(--pad); gap: 42px; }
  .logging-spec dl > div { grid-template-columns: 1fr; gap: 9px; }
  .bom-head { align-items: stretch; flex-direction: column; }
  .live-total { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--ink); }
  .table-tools input { width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .filters button { flex: 0 0 auto; }
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tbody { border-top: 1px solid var(--ink); }
  tbody tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
  tbody td { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 6px 0; border: 0; }
  tbody td::before { content: attr(data-label); color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
  tbody td:first-child { margin-bottom: 6px; }
  tfoot { display: table; width: 100%; margin-top: 30px; }
  tfoot tr { display: table-row; }
  tfoot td { display: table-cell; padding: 14px 8px; font-size: 8px; }
  tfoot td:first-child { width: 42%; }
  tfoot td:last-child { display: none; }
  .container-summary { width: calc(100% + var(--pad) * 2); margin: 70px 0 0 calc(var(--pad) * -1); }
  .container-summary-head { padding: 48px var(--pad); gap: 34px; }
  .container-summary-head h3 { font-size: 58px; }
  .container-cost-lines > div { min-height: 260px; padding: 24px var(--pad) 28px; }
  .container-cost-lines strong { font-size: 54px; }
  .container-next { padding: 26px var(--pad); grid-template-columns: 1fr; gap: 12px; }
  .bars > div { grid-template-columns: 1fr auto; gap: 10px; }
  .bars i { grid-column: 1 / -1; grid-row: 2; }
  .bars strong { grid-column: 2; grid-row: 1; }
  .rounds article, .rounds article + article { min-height: 340px; padding: 24px 0 30px; }
  footer { grid-template-columns: 1fr; min-height: 430px; }
  .footer-end { flex-direction: column; }
}

@media print {
  .topbar, .table-tools, .skip { display: none !important; }
  body, .bom, .cost-map { background: white; }
  .hero { min-height: auto; padding-top: 30px; }
  .variants, .container-summary, footer { break-inside: avoid; }
  th { position: static; }
  .section-pad { padding-top: 50px; padding-bottom: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
