:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e2e2e2;
  --paper: #ffffff;
  --panel: #f4f4f4;
  --moss: #1f4a32;
  --accent: var(--moss);
  --accent-ink: #ffffff;
  --warn: #111111;
  --serif: Bahnschrift, "Segoe UI", Arial, Helvetica, sans-serif;
  --sans: Bahnschrift, "Segoe UI", Arial, Helvetica, sans-serif;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--moss); text-underline-offset: 0.16em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; margin: 0; }
p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header, .site-footer { border-color: var(--line); }
.site-header {
  border-bottom: 2px solid var(--moss);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.logo-mark { width: 36px; height: 36px; display: block; }
.logo-word {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.logo-word i { font-style: normal; font-weight: 500; }
.site-footer .logo { margin-bottom: 10px; }
.site-footer .logo-mark { width: 22px; height: 22px; }
.site-footer .logo-word { font-size: 18px; }
.nav a, .logo, .cards a, .article-list a, .system-grid a { color: var(--ink); text-decoration: none; }
.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  margin-left: auto;
}
.nav a, .nav-drop-label {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  background: transparent;
  border: 0;
  padding: 8px 6px;
  cursor: pointer;
  font-family: var(--sans);
}
.nav a[aria-current="page"], .nav-drop-label[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a:hover, .nav-drop-label:hover { color: var(--ink); }
.nav-drop { position: relative; }
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 6px 0;
  z-index: 4;
}
.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub { display: grid; }
.nav-sub a { display: block; }
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 28px;
  font-size: 13px;
  color: var(--muted);
  flex: none;
}
.header-contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.site-footer a { color: var(--ink); }
.filter-note {
  border: 1px solid var(--ink);
  padding: 8px 12px;
  max-width: 40rem;
  margin-top: 10px;
}
.hero-intro { margin-bottom: 12px; }
.hero-copy .cards { grid-template-columns: 1fr 1fr; }
.steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; max-width: 46rem; }
.steps strong { font-weight: 600; }
.trust-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
  align-items: start;
}
.detail .hero-photo,
.detail .faq { grid-column: 1 / -1; }
.btn.preset { margin-bottom: 12px; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.calc .actions .btn.primary { display: block; width: 100%; }
a.btn.is-disabled { opacity: 0.45; pointer-events: none; }

.hero, .page { padding: 16px 0 64px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 36px; align-items: start; }
.grid-2 .stack h2 { font-size: 26px; }
.hero .calc, .page .calc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow: auto;
  align-self: start;
}
.hero-photo, .page-photo { margin: 4px 0 8px; }
.hero-photo img, .page-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.hero-photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.kicker {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
h1 { font-size: 40px; margin-bottom: 10px; }
h2 { font-size: 32px; margin-bottom: 12px; }
h3 { font-size: 22px; margin-bottom: 8px; }
.lead { font-size: 19px; max-width: 40rem; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > * { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fact {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 14px;
}
.section { padding: 8px 0 28px; }
.coverage-map { width: 100%; height: auto; display: block; margin: 8px 0 12px; }
.coverage-map .region { fill: #e4e4e4; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; cursor: pointer; }
.coverage-map .region.is-on { fill: var(--moss); }
.coverage-map .region.east { fill: #f3f3f3; stroke: #111; stroke-width: 1.15; }
.coverage-map .region.new { fill: #f3f3f3; stroke: #111; stroke-width: 1.15; stroke-dasharray: 4 3.5; }
.coverage-map .region.east.is-on, .coverage-map .region.new.is-on { fill: var(--moss); stroke: #fff; stroke-dasharray: none; }
.coverage-map .lake { fill: #fff; stroke: none; pointer-events: none; }
.coverage-map text { font: 13px Bahnschrift, "Segoe UI", sans-serif; fill: #111; pointer-events: none; }
.coverage-map text.map-small { font-size: 11px; }
.coverage-map text.is-on { fill: #fff; }
.coverage-map text.map-keep.is-on { fill: #111; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.article-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }
.cards a, .system-grid article, .article-list a {
  display: block;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.cards a { border-top: 0; padding-top: 0; }
.cards a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.cards a:hover .card-title, .article-list a:hover .card-title, .article-list a:hover h3 { text-decoration: underline; text-underline-offset: 0.16em; }
.system-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px; }
.system-grid h2 { font-size: 22px; margin-bottom: 8px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 14px;
}
.swatch.moss { background: var(--moss); color: #fff; border-color: var(--moss); }
.swatch.graphite { background: #4a4e52; color: #f4f1ea; border-color: #4a4e52; }
.swatch.chocolate { background: #4a3328; color: #f4f1ea; border-color: #4a3328; }

.calc {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 18px;
}
.calc h2, .calc h3 { font-size: 22px; }
.calc .kicker { margin-bottom: 8px; }
.calc-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.calc-fold .elevation,
.calc-fold .elevation svg { max-height: none; overflow: visible; }
.note-field { display: grid; gap: 4px; margin: 10px 0; font-size: 13px; color: var(--muted); }
.calc-total {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 14px 0; }
.fields .checks, .fields label:has(textarea) { grid-column: 1 / -1; }
.calc-grid { grid-template-columns: 1.15fr 0.95fr 0.9fr; gap: 8px 10px; margin: 8px 0 10px; }
.calc-grid .span-2 { grid-column: span 2; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea, button {
  font: inherit;
  color: var(--ink);
}
.nav-drop-label { font-size: 14px; color: var(--muted); }
input, select, textarea {
  background: #fff;
  border: 1px solid #c8c8c8;
  padding: 8px 10px;
  width: 100%;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}
textarea { min-height: 64px; resize: vertical; }
.checks { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px 14px; font-size: 15px; color: var(--ink); }
.checks label { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 15px; }
.checks input { width: auto; }
.levels { display: flex; flex-wrap: wrap; gap: 6px; }
.levels button, .btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
}
.levels button[aria-pressed="true"], .btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary:disabled { background: var(--muted); border-color: var(--muted); }
.estimate { font-weight: 600; font-size: 32px; letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.estimate.warn { font-size: 22px; }
.bom { width: 100%; border-collapse: collapse; font-size: 15px; }
.bom th, .bom td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bom th { color: var(--muted); font-weight: 500; }
.elevation { background: #fff; border: 1px solid var(--line); padding: 8px; margin: 0; }
.calc-fold { margin: 4px 0 16px; }
.calc-fold summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.calc-fold .spec { margin-top: 10px; }
.calc-fold .actions { margin-top: 10px; }
.elevation svg { display: block; width: 100%; height: auto; }
.post { fill: var(--ink); }
.cap { fill: #111; }
.panel { fill: #fff; stroke: var(--moss); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.mesh { stroke: var(--moss); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.rib { fill: none; stroke: var(--moss); stroke-width: 1.5px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.clip { fill: var(--ink); }
.band { fill: var(--moss); }
.bolt { fill: #e4e4e4; stroke: var(--ink); stroke-width: 0.5px; vector-effect: non-scaling-stroke; }
.ground { stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.more { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.spec {
  white-space: pre-wrap;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  font-size: 14px;
  min-height: 120px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.prose { max-width: 42rem; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin-top: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.spec-table th { color: var(--muted); font-weight: 500; width: 38%; }
.faq h3 { font-size: 18px; margin-bottom: 4px; }
.page-rail {
  align-self: start;
  border: 1px solid var(--ink);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-rail .btn { text-align: center; }
.site-footer { border-top: 2px solid var(--moss); padding: 22px 0 32px; color: var(--muted); font-size: 14px; }
.footer-row { align-items: flex-start; }
.site-footer p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

@media (min-width: 901px) {
  main.page:has(.calc) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    column-gap: 40px;
    align-items: start;
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
  }
  main.page:has(.calc) > .grid-2,
  main.page:has(.calc) > .split { display: contents; }
  main.page:has(.calc) > .grid-2 > .stack,
  main.page:has(.calc) > .split > .stack,
  main.page:has(.calc) > .wrap.section,
  main.page:has(.calc) > .wrap.prose {
    grid-column: 1;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  main.page:has(.calc) .prose { max-width: none; }
  main.page:has(.calc) .calc {
    grid-column: 2;
    grid-row: 1 / -1;
    width: auto;
  }
  main.page:has(.page-rail) {
    display: grid;
    grid-template-columns: minmax(0, 42rem) 280px;
    column-gap: 40px;
    justify-content: center;
    align-items: start;
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
  }
  main.page:has(.page-rail) > .wrap,
  main.page:has(.page-rail) > article {
    grid-column: 1;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .page-rail {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 84px;
  }
}

@media (max-width: 1320px) {
  .header-contact { align-items: flex-start; width: 100%; margin-left: 0; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .header-row { flex-wrap: wrap; padding: 10px 0; align-items: flex-start; }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 900px) {
  h1 { font-size: 34px; }
  .grid-2, .cards, .system-grid, .split, .calc-stage, .fields, .trust-grid, .detail, .article-list { grid-template-columns: 1fr; }
  .calc-grid .span-2 { grid-column: auto; }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-copy { display: contents; }
  .hero-copy .cards { order: 1; }
  .hero-calc { order: 2; }
  .hero .calc, .page .calc { position: static; max-height: none; overflow: visible; }
  .checks { flex-direction: column; }
  .page-rail { margin-top: 8px; }
  .consent-bar-row { flex-direction: column; align-items: stretch; }
}

.consent { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 10px; font-size: 14px; line-height: 1.4; }
.consent input { width: auto; margin-top: 3px; }
.consent-bar { position: sticky; bottom: 0; z-index: 30; background: var(--paper); border-top: 2px solid var(--moss); padding: 14px 0; }
.consent-bar-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.consent-bar p { margin: 0; font-size: 15px; }
.consent-bar-actions { display: flex; gap: 8px; flex-shrink: 0; }
