/* Layout: a drawing sheet. Left-aligned copy, a plan panel with a title-block strip, hairline sheet borders, quantities in mono. */
:root {
  --bg: #eef1ef;
  --surface: #ffffff;
  --ink: #14181a;
  --muted: #55605f;
  --line: #c6cfcc;
  --accent: #9b1c1f;
  --accent-bg: #9b1c1f;
  --accent-text: #ffffff;
  --mark-recep: #1f6fd0;
  --mark-light: #a86200;
  --mark-sw: #1a7f47;
  --tbd-bg: #ffe9a8;
  --tbd-ink: #5a4300; --logo-filter: none;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101415; --surface: #181e1f; --ink: #e9eeec; --muted: #9aa7a4; --line: #2e393a;
    --accent: #f07d7f; --accent-bg: #b8292d; --accent-text: #ffffff;
    --mark-recep: #6aa9ff; --mark-light: #f0a93b; --mark-sw: #4fc985;
    --tbd-bg: #4a3a05; --tbd-ink: #ffe9a8; --logo-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101415; --surface: #181e1f; --ink: #e9eeec; --muted: #9aa7a4; --line: #2e393a;
  --accent: #f07d7f; --accent-bg: #b8292d; --accent-text: #ffffff;
  --mark-recep: #6aa9ff; --mark-light: #f0a93b; --mark-sw: #4fc985;
  --tbd-bg: #4a3a05; --tbd-ink: #ffe9a8; --logo-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mark-recep); outline-offset: 2px; }
img { max-width: 100%; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Preview-only banner */
.draftbar { background: var(--tbd-bg); color: var(--tbd-ink); font-size: 14px; }
.draftbar .wrap { padding-block: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 167px; height: 44px; display: block; filter: var(--logo-filter); }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 26px; line-height: 1; letter-spacing: 0.01em; }
.brand-tag { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding-block: 4px; }
.nav a:hover { color: var(--accent); text-decoration: underline; }

/* Type */
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-weight: 800; font-stretch: 108%; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-weight: 800; font-stretch: 106%; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.25; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: 20px; line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tbd { background: var(--tbd-bg); color: var(--tbd-ink); padding: 0 4px; border-radius: 3px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 16px; padding: 12px 20px; border-radius: 4px; text-decoration: none; border: 2px solid var(--accent-bg); cursor: pointer; }
.btn-primary { background: var(--accent-bg); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px 48px; align-items: center; padding-block: 56px 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dates { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dates b { color: var(--ink); font-weight: 600; }

/* Plan demo */
.sheet { background: var(--surface); border: 2px solid var(--ink); min-width: 0; }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet-strip { display: flex; flex-wrap: wrap; border-top: 2px solid var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.sheet-strip span { padding: 6px 10px; border-right: 1px solid var(--line); color: var(--muted); }
.sheet-strip span:last-child { border-right: 0; margin-left: auto; }
.wall { stroke: var(--ink); stroke-width: 5; fill: none; stroke-linecap: square; }
.wall-thin { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.sym { cursor: pointer; }
.sym .glyph { stroke: var(--ink); stroke-width: 1.5; fill: var(--surface); }
.sym text { fill: var(--ink); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.sym .hit { fill: transparent; stroke: none; }
.sym .mark { fill: none; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(1.6); transition: opacity .25s ease, transform .25s ease; }
.sym.found .mark { opacity: 1; transform: scale(1); }
.sym[data-t="recep"] .mark { stroke: var(--mark-recep); }
.sym[data-t="light"] .mark { stroke: var(--mark-light); }
.sym[data-t="sw"] .mark { stroke: var(--mark-sw); }
.sym:hover .glyph { stroke-width: 2.4; }
@media (prefers-reduced-motion: reduce) { .sym .mark { transition: none; } }
.room-label { fill: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; }

.tally { border-top: 2px solid var(--ink); }
.tally-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--body); font-size: 15px; text-align: left; cursor: pointer; }
.tally-row:hover { background: var(--bg); }
.tally-row .dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c); }
.tally-row .qty { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.tally-row .qty.todo { font-weight: 400; color: var(--muted); font-size: 13px; }
.tally-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; font-size: 13px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Sections */
.band { border-top: 1px solid var(--line); }
.band .wrap { padding-block: 64px; display: flex; flex-direction: column; gap: 32px; }
.band-head { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.feature { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.feature .tool { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.split > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.maker { display: flex; gap: 20px; align-items: flex-start; }
.maker img { width: 96px; height: 96px; border-radius: 8px; flex: none; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { background: var(--surface); border: 2px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.price { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--muted); }
.plan ul, .legal ul, .legal ol { margin: 0; padding-left: 1.2em; }
.plan li { margin-block: 2px; }
.founding { border: 2px dashed var(--accent); padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; }
.founding p { max-width: 38em; }
.code { font-family: var(--mono); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; padding: 6px 12px; border: 1px solid var(--ink); background: var(--surface); white-space: nowrap; }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Contact */
.contact-line { font-family: var(--mono); font-size: clamp(18px, 2.6vw, 24px); overflow-wrap: anywhere; user-select: all; }

/* Footer as a title block */
.site-foot { border-top: 2px solid var(--ink); font-size: 14px; }
.site-foot .wrap { padding-block: 0; }
.titleblock { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.titleblock > div { padding: 16px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.titleblock > div:last-child { border-right: 0; }
.titleblock .eyebrow { font-size: 10px; }
.titleblock a { color: var(--ink); }

/* Legal pages */
.legal .wrap { max-width: 800px; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 18px; }
.legal li { margin-block: 8px; }
.legal .back { font-size: 15px; }

@media (max-width: 820px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 36px 44px; }
  .band .wrap { padding-block: 44px; }
  .features, .plans { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-child(even) { padding: 18px 0; border-left: 0; }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .titleblock > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .maker { flex-direction: column; }
}
