/* Layout: sticky header, split hero (copy + airflow diagram), room-fit tool, feature grid, spec sheet, contact, footer. Cold slate-blue ground, one warm orange used only for heat. */
:root {
  color-scheme: light;
  --bg: #eaf1f5;
  --surface: #f7fafc;
  --fg: #0d2231;
  --muted: #4a6272;
  --line: #c9d8e1;
  --accent: #0b7ca3;
  --accent-ink: #ffffff;
  --heat: #d9501f;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1822; --surface: #11262f; --fg: #e4f0f6; --muted: #92aab8;
    --line: #25404e; --accent: #4ec3ea; --accent-ink: #06202b; --heat: #ff7a4a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1822; --surface: #11262f; --fg: #e4f0f6; --muted: #92aab8;
  --line: #25404e; --accent: #4ec3ea; --accent-ink: #06202b; --heat: #ff7a4a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  padding-inline: 1rem;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 68rem; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.label { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }

/* header + footer menus */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); margin-inline: -1rem; padding-inline: 1rem; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap; padding-block: 0.7rem; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; margin: 0; padding: 0; }
nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding-block: 0.35rem; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--accent); }

section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin-top: 1.25rem; font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 0.75rem 1.3rem; border-radius: 6px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn:hover { border-color: var(--fg); }
.hero-art { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.hero-art svg { display: block; width: 100%; height: auto; }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.facts b { color: var(--fg); font-weight: 500; }

.intro { max-width: 40rem; display: grid; gap: 1rem; }
.intro p.sub { color: var(--muted); }

/* room-fit tool */
.fit { margin-top: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.75rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.fit > * { min-width: 0; }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
input, select, textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.75rem; width: 100%; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
.readout { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.verdict { display: grid; align-content: center; gap: 0.75rem; }
.gauge { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.gauge i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.3s ease; }
.gauge.over i { background: var(--heat); }
.verdict h3 { font-size: 1.5rem; }
.verdict p { color: var(--muted); }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
.grid > * { min-width: 0; }
.feat { border-top: 3px solid var(--accent); padding-top: 0.9rem; display: grid; gap: 0.5rem; align-content: start; }
.feat p { color: var(--muted); font-size: 1rem; }
.feat .tag { font-family: var(--mono); font-size: 0.75rem; color: var(--heat); text-transform: uppercase; letter-spacing: 0.1em; }

/* specs */
.specs { margin-top: 2rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 30rem; }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-weight: 600; width: 38%; }
td { font-family: var(--mono); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.note { margin-top: 1rem; font-size: 0.92rem; color: var(--muted); max-width: 42rem; }
.box { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; }
.box > * { min-width: 0; }
.box ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.box li { margin-bottom: 0.3rem; }

/* contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem 3rem; }
.contact > * { min-width: 0; }
.contact .blurb { margin-top: 1rem; color: var(--muted); }
.contact dl { margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.contact dt { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contact dd { margin: 0; font-weight: 500; user-select: all; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1rem, 3vw, 1.75rem); }
#status { margin-top: 1rem; min-height: 1.5rem; font-size: 0.95rem; color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-inline: -1rem; padding-inline: 1rem; padding-block: 2rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; align-items: start; }
footer small { display: block; color: var(--muted); margin-top: 0.4rem; max-width: 24rem; line-height: 1.5; }

@media (max-width: 52rem) {
  .hero, .fit, .contact, .box { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 34rem) {
  .grid { grid-template-columns: 1fr; }
  nav ul { gap: 0.1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .gauge i { transition: none; } }
