/* ==========================================================================
   Slate site stylesheet
   --------------------------------------------------------------------------
   The palette is not invented for this site. The structural neutrals, the
   copper accent and the state colours are lifted verbatim from the product's
   own admin shell (slate/admin/src/index.css) and from the widget tint table
   in slate/docs/slate-prd.md §5.3, so the marketing site and the thing it
   sells are made of the same material.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */

:root {
  color-scheme: dark;

  /* Structural neutrals, drawn from the wordmark's own colour family
     (#3F4B57, a cool slate-blue-gray) rather than a generic near-black. */
  --bg:            #15181c;
  --bg-deep:       #101317;
  --surface:       #1d2126;
  --surface-raised:#242830;
  --surface-high:  #2a2f38;
  --border:        #2c313a;
  --border-soft:   #23272e;
  --text:          #e8eaed;
  --text-muted:    #9099a6;
  --text-dim:      #6d7684;

  /* Warm copper/amber accent. Slate roofing with copper trim is a real,
     classic architectural pairing. */
  --accent:        #d99a5b;
  --accent-strong: #e8b478;
  --accent-dim:    #8a6338;
  --accent-text:   #1a1408;

  --brand-slate:   #3f4b57;

  /* State colours: the tablet column of the tint table. The wall panel is the
     reference surface, so the site quotes the wall. */
  --tint-ok:       #385d49;
  --tint-alert:    #763934;
  --tint-heat:     #834922;
  --tint-cool:     #35576f;
  --tint-warn:     #6e5716;

  --success:       #6fbf8b;
  --danger:        #e0685c;
  --caution:       #d9a441;
  --partial:       #ddc63c;
  --lit:           #e08a3c;

  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;

  --measure:       68ch;
  --page:          1200px;
  --gutter:        clamp(20px, 5vw, 48px);
  --band:          clamp(72px, 9vw, 132px);

  --font-sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------------------------------------------------------------- 2. Reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.42vw + 13.6px, 17px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* `height: auto` is not cosmetic. Without it, an <img> carrying width/height
   attributes keeps the attribute height as a presentational hint, both
   dimensions end up definite, and `aspect-ratio` is ignored - which stretches
   the image. Class-scoped heights below still win over this. */
img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.18rem, 1.5vw, 1.4rem); letter-spacing: -0.018em; line-height: 1.24; }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent); color: var(--accent-text); }

/* ------------------------------------------------------------- 3. Utilities */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--band); position: relative; }
.band--deep { background: var(--bg-deep); }
.band--tight { padding-block: clamp(52px, 6vw, 84px); }
.band + .band { border-top: 1px solid var(--border-soft); }

.lede {
  font-size: clamp(1.08rem, 1.05vw + 0.85rem, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
  letter-spacing: -0.012em;
}

.prose { max-width: var(--measure); color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 600; }

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }
.tight { max-width: 52ch; }
.mt-l  { margin-top: clamp(34px, 4vw, 56px); }
.mt-m  { margin-top: 26px; }

/* Eyebrow: the monospace spec label. The site's most repeated motif; it is
   how the product's own documentation talks about itself. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-dim);
  flex: none;
}

.section-head { max-width: 62ch; margin-bottom: clamp(38px, 4.5vw, 64px); }
.section-head p { margin-top: 20px; color: var(--text-muted); max-width: 56ch; }

/* ---------------------------------------------------------------- 4. Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
              color 0.16s var(--ease), transform 0.16s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { background: var(--accent-strong); color: var(--accent-text); }

.btn--ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text-dim); background: rgba(255,255,255,0.03); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* An inline "go on" link whose arrow moves on hover. */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.arrow svg { width: 15px; height: 15px; transition: transform 0.18s var(--ease); flex: none; }
.arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ 5. Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--border-soft);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.nav__brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__brand img { height: 20px; width: auto; }
.nav__brand:hover { opacity: 0.82; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__cta { margin-left: 12px; padding: 10px 18px !important; }
/* `.nav__links a` out-specifies `.btn--primary`, which would repaint the
   header CTA in the muted link colour. Restate it at matching weight. */
.nav__links a.btn--primary { color: var(--accent-text); background: var(--accent); }
.nav__links a.btn--primary:hover { color: var(--accent-text); background: var(--accent-strong); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px var(--gutter) 28px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav__links[data-open="false"] { display: none; }
  .nav__links a { padding: 14px 12px; font-size: 1.02rem; }
  .nav__cta { margin: 10px 0 0 !important; justify-content: center; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus { left: 16px; }

/* ----------------------------------------------------------------- 6. Hero */

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 96px) clamp(64px, 8vw, 108px);
  overflow: hidden;
}

/* The 32 x 20 grid the wall panel is drawn on, at low opacity: the substrate
   of the product used as the substrate of the page. */
.gridfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(232,234,237,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(232,234,237,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 85% at 50% 0%, #000 18%, transparent 76%);
  -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 18%, transparent 76%);
}
.gridfield::after {
  content: "";
  position: absolute;
  inset: -22% -10% auto;
  height: 74%;
  background: radial-gradient(58% 62% at 64% 6%, rgba(217,154,91,0.12), transparent 68%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(40px, 5vw, 68px);
  align-items: center;
}
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { max-width: 47ch; margin-bottom: 34px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Interior page header */
.pagehead { position: relative; padding-block: clamp(52px, 6.5vw, 92px) clamp(44px, 5vw, 68px); overflow: hidden; }
.pagehead__inner { position: relative; z-index: 1; }
.pagehead__inner > * { max-width: 74ch; }
.pagehead h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); margin-bottom: 24px; }

/* ------------------------------------------------- 7. The dashboard mock-up */

.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 130% at 12% 0%, #2b3440 0%, #1a1f26 46%, #14181d 100%);
  padding: 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 34px 70px -30px rgba(0,0,0,0.85);
  overflow: hidden;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(147deg, rgba(255,255,255,0.055), transparent 42%);
}

.panel__body { display: flex; gap: 10px; }

/* Navigation rail: the persistent all-locations rail, as on the wall */
.rail {
  flex: none;
  width: 56px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px;
  border-radius: var(--radius);
  background: rgba(12,14,17,0.5);
}
.rail__item {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 8px 2px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.44rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
}
.rail__item svg { width: 15px; height: 15px; fill: currentColor; }
.rail__item[data-active="true"] { background: rgba(255,255,255,0.07); color: var(--text); }
.rail__item[data-online="false"] { opacity: 0.38; }

.tiles {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  aspect-ratio: 16 / 9.7;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  background: rgba(35, 39, 46, 0.82);
  border: 1px solid rgba(255,255,255,0.045);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.28;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.24s var(--ease), border-color 0.2s var(--ease);
}
button.tile { cursor: pointer; }
button.tile:hover { border-color: rgba(255,255,255,0.18); }

.tile__label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,234,237,0.62);
}
.tile__room { font-size: 0.55rem; color: rgba(232,234,237,0.5); letter-spacing: 0.04em; }
.tile__value {
  font-size: clamp(0.95rem, 1.45vw, 1.24rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tile__value--sm { font-size: clamp(0.8rem, 1.05vw, 0.98rem); }
.tile__foot { margin-top: auto; font-size: 0.58rem; color: rgba(232,234,237,0.64); }

.tile[data-tint="ok"]    { background: var(--tint-ok); }
.tile[data-tint="alert"] { background: var(--tint-alert); }
.tile[data-tint="heat"]  { background: var(--tint-heat); }
.tile[data-tint="cool"]  { background: var(--tint-cool); }
.tile[data-tint="warn"]  { background: var(--tint-warn); }

.tile--wide { grid-column: span 2; }

.bar {
  height: 3px;
  margin-top: 7px;
  border-radius: 2px;
  background: rgba(255,255,255,0.17);
  overflow: hidden;
}
.bar span { display: block; height: 100%; background: rgba(255,255,255,0.82); border-radius: 2px; transition: width 0.35s var(--ease); }

.forecast { display: flex; gap: 11px; margin-top: auto; }
.forecast div { display: grid; gap: 2px; font-size: 0.54rem; color: rgba(232,234,237,0.66); }
.forecast strong { font-size: 0.68rem; font-weight: 600; color: var(--text); }

.panel__hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.panel__hint b { color: var(--accent); font-weight: 500; }

.livedot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2.6s var(--ease) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111,191,139,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(111,191,139,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,191,139,0); }
}

@media (max-width: 560px) {
  /* Two columns, and rows sized to their content rather than to a fixed
     aspect: at this width a proportional row is too short for the weather
     tile's forecast strip and clips it. `dense` closes the hole a full-width
     tile would otherwise leave beside a single-column one. */
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    grid-auto-flow: row dense;
    aspect-ratio: auto;
  }
  .tile { min-height: 82px; }
  .rail { width: 48px; }
}

/* ----------------------------------------------------------------- 8. Cards */

.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.card--link:hover { border-color: var(--accent-dim); background: var(--surface-raised); }
.band--deep .card { background: var(--surface); }

.card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--surface-high);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 4px;
  flex: none;
}
.card__icon svg { width: 19px; height: 19px; fill: currentColor; }
.card__foot { margin-top: auto; padding-top: 6px; }

/* The two-track cards: Residential and Commercial, deliberately equal */
.track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.track:hover { border-color: var(--accent-dim); }
.track::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: 0.75;
}
.track h3 { font-size: clamp(1.5rem, 2.1vw, 1.95rem); }
.track ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.track li {
  display: grid;
  grid-template-columns: 15px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.track li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.85;
}
.track .card__foot { margin-top: 10px; }

/* --------------------------------------------------------------- 9. Numbers */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: clamp(22px, 2.4vw, 30px); background: var(--bg); }
.stat b {
  display: block;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.stat span { display: block; margin-top: 10px; font-size: 0.84rem; color: var(--text-muted); }
.band--deep .stat { background: var(--bg-deep); }

/* --------------------------------------------------------------- 10. Steps */

.steps { display: grid; gap: 0; border-top: 1px solid var(--border-soft); }
.step {
  display: grid;
  grid-template-columns: 84px minmax(150px, 0.6fr) minmax(0, 1.55fr);
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(26px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.step__no {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 5px;
}
.step h3 { margin-bottom: 8px; }
.step__sub { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.step__what { color: var(--text-muted); font-size: 0.95rem; }
.step ul { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 7px; font-size: 0.9rem; }
.step li::marker { color: var(--accent-dim); }
@media (max-width: 820px) {
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step__what { grid-column: 2; margin-top: 14px; }
}

/* ------------------------------------------------------------ 11. Pull quote */

.quote {
  display: grid;
  gap: 22px;
  padding-left: clamp(20px, 2.5vw, 34px);
  border-left: 2px solid var(--accent);
}
.quote p {
  font-size: clamp(1.3rem, 2.1vw, 1.8rem);
  line-height: 1.28;
  letter-spacing: -0.024em;
  color: var(--text);
  font-weight: 500;
  margin: 0;
}
.quote cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: start;
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .split, .split--even { grid-template-columns: 1fr; gap: 40px; } }

/* -------------------------------------------------------- 12. Capability grid */

.caps {
  display: grid;
  /* Four, then two: both divide the sixteen tile types exactly, so the last
     row is never a short one sitting beside a large empty cell. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 16px;
  background: var(--bg);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.cap svg { width: 17px; height: 17px; fill: var(--text-dim); flex: none; transition: fill 0.18s var(--ease); }
.cap:hover { background: var(--surface); color: var(--text); }
.cap:hover svg { fill: var(--accent); }
.band--deep .cap { background: var(--bg-deep); }
.band--deep .cap:hover { background: var(--surface); }

@media (max-width: 760px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------- 13. Diagram */

.diagram {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 3vw, 34px);
}
.diagram svg { width: 100%; height: auto; }
.diagram figcaption {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ----------------------------------------------------------- 14. Spec table */

.spec { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.spec caption { text-align: left; color: var(--text-dim); font-size: 0.85rem; padding-bottom: 14px; }
.spec th, .spec td {
  text-align: left;
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.spec th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec td { color: var(--text-muted); }
.spec td:first-child { color: var(--text); font-weight: 550; padding-right: 28px; }
.spec tr:last-child td { border-bottom: 0; }
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  vertical-align: -2px;
  margin-right: 9px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* --------------------------------------------------------------- 15. FAQ */

.faq { border-top: 1px solid var(--border-soft); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 550;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px; height: 10px; flex: none;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq__body { padding: 0 0 24px; color: var(--text-muted); max-width: 64ch; font-size: 0.95rem; }

/* ---------------------------------------------------------------- 16. Form */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.field textarea { min-height: 138px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--surface-high); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-raised);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
/* `appearance: none` strips the native arrow, which left a select looking
   exactly like a text input. Put a chevron back, inline so nothing loads. */
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7684' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px 15px;
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form__note {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.87rem;
  color: var(--text-muted);
}
.form__status { font-size: 0.9rem; color: var(--success); }

.contactlist { display: grid; gap: 22px; margin: 0; }
.contactlist div { display: grid; gap: 5px; }
.contactlist dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contactlist dd { margin: 0; font-size: 1.02rem; color: var(--text); }

/* ------------------------------------------------------------------ 17. CTA */

.cta { position: relative; overflow: hidden; border-top: 1px solid var(--border-soft); background: var(--bg-deep); }
.cta__inner { position: relative; z-index: 1; display: grid; gap: 30px; justify-items: start; }
.cta__inner > * { max-width: 60ch; }
.cta h2 { font-size: clamp(1.95rem, 3.8vw, 3.1rem); }

/* --------------------------------------------------------------- 18. Footer */

.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-soft);
  padding-block: clamp(48px, 5vw, 70px) 34px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: 42px;
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand img { height: 22px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer__bottom .push { margin-left: auto; }
@media (max-width: 560px) { .footer__bottom .push { margin-left: 0; } }

/* ------------------------------------------------------------- 19. Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- 20. Prose extras */

.prose ul { margin: 0 0 1.1em; padding-left: 20px; display: grid; gap: 9px; }
.prose li::marker { color: var(--accent-dim); }
.prose li strong { color: var(--text); }
.prose em { font-style: normal; color: var(--text); }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

.spec td code { white-space: nowrap; }
.spec em { font-style: italic; color: var(--text); }

/* -------------------------------------------------- 21. Build status list */

/* The three states borrow the product's own tint tokens on purpose: a filled
   green square means running, amber means in progress, and an unfilled
   outline means nothing is claimed, the same rule the wall panel follows. */

.status { display: grid; }
.status + .status { margin-top: clamp(26px, 3vw, 38px); }

.status__group {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
}

.status__row {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.93rem;
  color: var(--text-muted);
}
.status__row strong { color: var(--text); font-weight: 550; }

.status__dot {
  width: 11px;
  height: 11px;
  margin-top: 0.42em;
  border-radius: 2px;
  border: 1px solid var(--text-dim);
  background: transparent;
}
.status__row[data-state="on"]  .status__dot { background: var(--tint-ok);   border-color: transparent; }
.status__row[data-state="wip"] .status__dot { background: var(--tint-warn); border-color: transparent; }

/* --------------------------------------------------------- 22. Choices */

.choices { display: grid; gap: 10px; }

.choice {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.choice:hover { border-color: var(--surface-high); }
.choice:focus-within { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent-dim); background: var(--surface-raised); }

.choice input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.choice span { font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }
.choice b { display: block; color: var(--text); font-weight: 550; margin-bottom: 2px; font-size: 0.95rem; }

.form__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------- 23. Feature group label */

/* Divides a long feature grid into readable runs. Same monospace spec-label
   family as .status__group, but it stands above a grid instead of a list. */
.subhead {
  margin: clamp(40px, 4.5vw, 62px) 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section-head + .subhead { margin-top: 0; }

/* ----------------------------------------------------------- 24. Portrait */

/* Self-hosted, deliberately. A photo pulled from a social CDN would make every
   visitor's browser call a third party, which is the one thing the footer of
   this page promises it does not do. */
.portrait {
  /* Both dimensions stated from one value, so the circle can never go oval
     no matter what the markup declares. */
  --portrait: clamp(104px, 12vw, 144px);
  width: var(--portrait);
  height: var(--portrait);
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 0 22px;
}


/* ================================================== 25. Marketing visuals */

/* ---- Hero: a soft copper light behind the panel, so it sits in a room
        rather than floating on black. Targets the panel's column, so the
        hero markup did not need to change. */
.hero__grid > div:last-child { position: relative; }
.hero__grid > div:last-child::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(52% 52% at 50% 46%, rgba(217,154,91,0.17), transparent 72%);
  filter: blur(22px);
}

/* ---- Tile strips: three miniature real tiles under a feature heading. The
        product illustrating itself, built from the same .tile component the
        hero panel uses, so every colour and rule is the real one. */
.tilestrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 16px;
}
.tilestrip .tile {
  min-height: 66px;
  padding: 8px 9px;
  gap: 1px;
  font-size: 0.62rem;
  cursor: default;
}
.tilestrip .tile__label,
.tilestrip .tile__room { font-size: 0.5rem; }
.tilestrip .tile__value { font-size: 0.84rem; }
.tilestrip .tile__value--sm { font-size: 0.78rem; }
.tilestrip .tile__foot { font-size: 0.54rem; }
.tilestrip .bar { margin-top: 5px; }

/* ---- Feature cards with more than one paragraph */
.card p + p { margin-top: 10px; }

.card--lead .card__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}
.card--lead .card__cols p + p { margin-top: 10px; }
@media (max-width: 760px) {
  .card--lead .card__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Day timeline: the time badge carries the colour of the sky at that
        hour, and a vertical rail runs dawn to night down the left. */
.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    #e8b478 0%, #9fc4e8 30%, #d99a5b 58%, #c96f2e 78%, #5b6fa8 100%);
  opacity: 0.55;
}
.step__no { position: relative; padding-left: 22px; }
.step__no::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tod, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tod, var(--accent)) 26%, transparent);
}
.step[data-tod="dawn"]    { --tod: #e8b478; }
.step[data-tod="day"]     { --tod: #9fc4e8; }
.step[data-tod="dusk"]    { --tod: #d99a5b; }
.step[data-tod="evening"] { --tod: #c96f2e; }
.step[data-tod="night"]   { --tod: #5b6fa8; }
.step__what p + p { margin-top: 8px; }

/* ---- Byline: photo and name as one unit, bio beneath at full width. */
.byline {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(26px, 3.2vw, 40px);
}
.byline .portrait {
  margin: 0;
  flex: none;
  --portrait: clamp(60px, 5.6vw, 76px);
  border: 0;
  /* A dark gap then a hairline: the photo's own dark backdrop meets the
     page's, and the ring is what says "this is deliberate". */
  box-shadow: 0 0 0 4px var(--bg-deep), 0 0 0 5px var(--border);
}
.byline__meta .eyebrow { margin-bottom: 10px; }
.byline__role {
  margin: 10px 0 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 44ch;
}
.byline__body { max-width: 74ch; }
@media (max-width: 560px) {
  .byline { flex-direction: column; align-items: flex-start; }
}

.byline__quote {
  margin: 0 0 clamp(26px, 3.2vw, 40px);
  max-width: 58ch;
}
