/* Everstead marketing site — Rings of the Evergreen (see DESIGN.md) */

:root {
  --heartwood: #304c3c;
  --old-growth: #1d3024;
  --deep-growth: #0d0d0d;
  --pale-grain: #fbf8f3;
  --paper: #ffffff;
  --paper-soft: #fbf8f3;
  --sand: #f3ebdc;
  --sapwood: #cfdfd5;
  --ink-muted: #535252;
  --ember: #e7feb6;
  --ember-bright: #f1ffd2;
  --ember-soft: #e7feb6;
  --ring: #536d5c;
  --ring-faint: #cddad2;
  /* Imagery system — subjects sit on a flat brand field, never a location
     background, with the seal held behind them as a watermark. */
  --heartwood-deep: #1f332a;
  --heartwood-tint: #e3ebe4;
  --heartwood-tint-edge: #d5dfd6;
  --seal-watermark: #d5e2d7;
  --seal-watermark-night: #2a4235;
  --new-growth: #8fbf74;
  --night-lede: #c3d3c7;
  --night-muted: #8fa694;
  --page-inline: clamp(1.25rem, 5vw, 4.5rem);
  --page-block: clamp(1.25rem, 3vw, 2.25rem);
  --content-max: 82rem;
  --band-radius: clamp(1.5rem, 3vw, 2.25rem);
  --band-overlap: clamp(2rem, 4vw, 3.25rem);
  --control-radius: 0.75rem;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--paper-soft); }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper-soft);
  color: var(--old-growth);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.58;
}

::selection { background: var(--ember); color: var(--old-growth); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  background: var(--ember);
  color: var(--old-growth);
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.skip-link:focus { transform: none; }

/* Navigation */

.site-header {
  position: relative;
  z-index: 5;
  width: calc(100% - clamp(1rem, 3vw, 2.5rem));
  max-width: var(--content-max);
  margin: 0.9rem auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 0.8rem clamp(1rem, 3vw, 1.75rem);
  background: var(--paper);
  border: 1px solid rgba(48, 76, 60, 0.08);
  border-radius: 1.15rem;
  box-shadow: 0 14px 40px rgba(29, 48, 36, 0.06);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--old-growth);
  text-decoration: none;
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.022em;
}
.wordmark svg { display: block; flex: 0 0 auto; }

/* The home hero owns the top of the page. Its navigation card sits over the
   field instead of reserving a separate strip above it. */
.home-page .site-header {
  position: absolute;
  inset: 0 auto auto 50%;
  transform: translateX(-50%);
}
.home-page .wordmark {
  gap: 0.7rem;
  font-size: 1.1rem;
}
.home-page .wordmark svg {
  width: 30px;
  height: 30px;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.2s var(--ease-settle), border-color 0.2s var(--ease-settle);
}
.site-nav a:hover { color: var(--old-growth); }
.site-nav a[aria-current="page"] { color: var(--old-growth); border-bottom-color: var(--heartwood); }

.header-cta {
  border-radius: var(--control-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.68rem 1.15rem;
  background: var(--old-growth);
  color: var(--pale-grain);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s var(--ease-settle), transform 0.2s var(--ease-settle);
}
.header-cta:hover { background: var(--heartwood); transform: translateY(-1px); }
.header-cta span { color: var(--ember-bright); }

/* Typography */

h1, .display {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

p { max-width: 66ch; }
strong { font-weight: 500; }

.space-top-sm { margin-top: 0.8rem; }
.space-top { margin-top: 1rem; }
.space-top-lg { margin-top: 1.2rem; }
.space-top-xl { margin-top: 1.4rem; }
.full-width { width: 100%; }
.aside-heading { font-size: clamp(1.55rem, 3vw, 2.15rem); }

.eyebrow {
  color: var(--ink-muted);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.lede {
  font-size: clamp(1rem, 1.7vw, 1.1rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 43ch;
}
.lede em { font-style: italic; color: var(--heartwood); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.88rem; }
.ember { color: var(--heartwood); }

/* Layout and chapter system */

main { display: block; flex: 1 0 auto; overflow: hidden; }

.section {
  width: calc(100% - clamp(1rem, 3vw, 2.5rem));
  max-width: var(--content-max);
  margin-inline: auto;
  --sec-pad-y: clamp(4.25rem, 8vw, 7.2rem);
  padding: var(--sec-pad-y) var(--page-inline);
}
.section-tight { --sec-pad-y: clamp(2.75rem, 5vw, 4.5rem); }
.section-intro { max-width: 50rem; }
.section-intro > * + * { margin-top: 1rem; }

/* Chapter bands run edge to edge and curve up over the section above them.
   Later bands paint over earlier ones by document order, so each one rises. */
.chapter, .dark-band {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  margin-top: calc(-1 * var(--band-overlap));
  margin-bottom: 0;
  padding-inline: max(var(--page-inline), calc((100% - var(--content-max)) / 2 + var(--page-inline)));
  padding-bottom: calc(var(--sec-pad-y) + var(--band-overlap));
  border-radius: var(--band-radius) var(--band-radius) 0 0;
}
main > .chapter:first-child, main > .dark-band:first-child { margin-top: 0; }
main > .chapter:last-child, main > .dark-band:last-child {
  border-end-start-radius: var(--band-radius);
  border-end-end-radius: var(--band-radius);
}
.chapter-white { background: var(--paper); }
.chapter-field { background: var(--heartwood-tint); }
.chapter-sand { background: var(--sand); }
.chapter-ember { background: var(--ember-soft); }
.chapter-dark, .dark-band { background: var(--heartwood); color: var(--pale-grain); }
.chapter-dark .eyebrow, .dark-band .eyebrow,
.chapter-dark .muted, .dark-band .muted,
.chapter-dark .lede, .dark-band .lede { color: var(--sapwood); }
.chapter-dark .lede em, .dark-band .lede em { color: var(--ember-bright); }
.chapter-dark .btn-ghost, .dark-band .btn-ghost { color: var(--pale-grain); border-color: var(--ring); }
.chapter-dark .btn-ghost:hover, .dark-band .btn-ghost:hover { border-color: var(--ember-bright); }
.chapter-ember .btn-primary { background: var(--old-growth); color: var(--pale-grain); border-color: var(--old-growth); }
.chapter-ember .btn-primary:hover { background: var(--heartwood); border-color: var(--heartwood); }

.rule { width: 0; border: 0; margin: 0; }

.stack-sm > * + * { margin-top: 0.65rem; }
.stack-md > * + * { margin-top: 1.35rem; }

/* Home hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(23rem, 0.98fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.hero-home {
  padding-top: clamp(8rem, 12vw, 10rem);
  /* Band geometry: the section below rides up by --band-overlap, so the hero
     carries that much extra floor to keep its copy off the seam. */
  padding-bottom: calc(clamp(4.5rem, 8vw, 7rem) + var(--band-overlap));
  overflow: hidden;
}
.hero-copy, .product-showcase { position: relative; z-index: 1; }
.home-page .hero-copy {
  width: min(100%, 64rem);
  margin-inline: auto;
  text-align: center;
}
.home-page .hero-copy .eyebrow {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.home-page .hero-copy h1 { max-width: 19ch; margin-inline: auto; }
.home-page .hero-copy .lede { max-width: 56ch; margin: 1.5rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.home-page .hero-actions { justify-content: center; }
.hero-note { margin-top: 1rem; color: var(--ink-muted); font-size: 0.8rem; }
.home-page .hero-note { max-width: none; text-align: center; }

.product-showcase {
  width: min(100%, 74rem);
  margin: clamp(3.25rem, 7vw, 5.5rem) auto 0;
  text-align: left;
}
.product-showcase figcaption {
  margin-top: 0.85rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  text-align: center;
}
.dashboard-stage {
  aspect-ratio: 1.86 / 1;
  overflow: hidden;
  padding: clamp(4rem, 6vw, 5.25rem) clamp(3rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 191, 116, 0.38), transparent 31%),
    linear-gradient(135deg, #1d3024 0%, #102119 58%, #304c3c 100%);
  border-radius: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 34px 75px rgba(29, 48, 36, 0.22);
}
.dashboard-frame {
  --dashboard-chrome: #f6f2ec;
  --dashboard-surface: #ffffff;
  --dashboard-well: #f8f5f0;
  --dashboard-canvas: #f4f0e9;
  --dashboard-hairline: #e9e5dd;
  --dashboard-hairline-strong: #dcd6ca;
  --dashboard-ink: #20231f;
  --dashboard-muted: #6b685f;
  --dashboard-subtle: #928d83;
  --dashboard-active: #ebe6dd;
  --dashboard-attention-fill: #fff3cd;
  --dashboard-attention-ink: #5a4612;
  --dashboard-attention-mark: #c78f00;
  overflow: hidden;
  background: var(--dashboard-surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(1rem, 2vw, 1.55rem);
  box-shadow: 0 18px 45px rgba(13, 13, 13, 0.22);
  color: var(--dashboard-ink);
}
.dashboard-browser-bar {
  min-height: 3.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1rem;
  background: var(--dashboard-chrome);
  border-bottom: 1px solid var(--dashboard-hairline);
  color: var(--dashboard-muted);
  font-size: 0.68rem;
  font-weight: 400;
}
.dashboard-browser-dots { display: flex; gap: 0.35rem; }
.dashboard-browser-dots i { width: 0.58rem; height: 0.58rem; border-radius: 50%; background: #c9c5bd; }
.dashboard-browser-dots i:first-child { background: #e58e7d; }
.dashboard-browser-dots i:nth-child(2) { background: #e4c66e; }
.dashboard-browser-dots i:last-child { background: #8aa57f; }
.dashboard-address {
  justify-self: center;
  min-width: min(22rem, 55%);
  padding: 0.35rem 0.75rem;
  background: var(--dashboard-surface);
  border: 1px solid var(--dashboard-hairline);
  border-radius: 999px;
  text-align: center;
}
.dashboard-browser-balance { width: 2.3rem; }
.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(10.5rem, 18%) minmax(0, 1fr);
  min-height: clamp(32rem, 52vw, 42rem);
  background: var(--dashboard-surface);
}
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.75rem, 1.6vw, 1.2rem);
  background: var(--dashboard-chrome);
  border-right: 1px solid var(--dashboard-hairline);
}
.dashboard-brand { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; }
.dashboard-brand svg { width: 1.45rem; height: 1.45rem; color: var(--heartwood); }
.dashboard-brand svg path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.dashboard-nav-item, .dashboard-user small { color: var(--dashboard-muted); font-size: 0.63rem; }
.dashboard-nav-preview { display: grid; gap: 0.22rem; margin-top: 1.5rem; }
.dashboard-nav-item { display: flex; align-items: center; gap: 0.55rem; min-height: 2.25rem; padding: 0.45rem 0.62rem; border-radius: 0.6rem; font-weight: 500; }
.dashboard-nav-icon { width: 0.92rem; height: 0.92rem; flex: 0 0 auto; }
.dashboard-nav-icon circle, .dashboard-nav-icon path, .dashboard-nav-icon rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-nav-icon .solid { fill: currentColor; stroke: none; }
.dashboard-nav-item.is-active { background: var(--dashboard-active); color: var(--dashboard-ink); }
.dashboard-user { display: flex; align-items: center; gap: 0.55rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--dashboard-hairline); }
.dashboard-user > span, .dashboard-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dashboard-ink);
  color: var(--dashboard-surface);
  font-size: 0.62rem;
  font-weight: 600;
}
.dashboard-user div { display: grid; line-height: 1.35; min-width: 0; }
.dashboard-user strong { overflow: hidden; font-size: 0.67rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-workspace { min-width: 0; }
.dashboard-topbar {
  min-height: 4.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 2.5vw, 1.8rem);
  background: var(--dashboard-surface);
  border-bottom: 1px solid var(--dashboard-hairline);
}
.dashboard-topbar > div:first-child { display: grid; line-height: 1.35; }
.dashboard-topbar span { color: var(--dashboard-muted); font-size: 0.63rem; }
.dashboard-topbar strong { font-size: 0.78rem; font-weight: 500; }
.dashboard-topbar-account { display: flex; align-items: center; gap: 0.65rem; }
.dashboard-topbar .dashboard-avatar { color: var(--dashboard-surface); font-size: 0.62rem; }
.dashboard-content-preview { padding: clamp(1rem, 2.5vw, 2rem); }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.dashboard-heading > div { display: grid; }
.dashboard-heading span { color: var(--dashboard-muted); font-size: 0.68rem; }
.dashboard-heading strong { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -0.04em; }
.dashboard-shift { padding: 0.38rem 0.65rem; background: var(--dashboard-active); border-radius: 999px; color: var(--dashboard-ink) !important; font-weight: 500; }
.dashboard-shiftline { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; color: var(--dashboard-muted); font-size: 0.62rem; font-weight: 400; }
.dashboard-shiftline i { width: 0.42rem; height: 0.42rem; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; }
.dashboard-attention-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; margin-top: 1rem; padding: 0.72rem 0.85rem; background: var(--dashboard-attention-fill); border-radius: 0.7rem; color: var(--dashboard-attention-ink); }
.dashboard-attention-mark { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--dashboard-attention-mark); border-radius: 50%; font-size: 0.7rem; font-weight: 600; }
.dashboard-attention-banner > div { display: grid; line-height: 1.35; }
.dashboard-attention-banner strong { font-size: 0.66rem; font-weight: 600; }
.dashboard-attention-banner small { margin-top: 0.08rem; font-size: 0.56rem; }
.dashboard-attention-action { font-size: 0.58rem; font-weight: 600; white-space: nowrap; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 1rem; overflow: hidden; background: var(--dashboard-well); border: 1px solid var(--dashboard-hairline-strong); border-radius: 0.8rem; }
.dashboard-kpi { display: grid; min-width: 0; padding: clamp(0.65rem, 1.4vw, 0.9rem); background: transparent; }
.dashboard-kpi + .dashboard-kpi { border-left: 1px solid var(--dashboard-hairline-strong); }
.dashboard-kpi span { overflow: hidden; color: var(--dashboard-muted); font-size: 0.58rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi strong { margin-top: 0.28rem; font-size: clamp(0.9rem, 1.7vw, 1.18rem); font-weight: 600; line-height: 1.05; }
.dashboard-kpi small { margin-top: 0.22rem; color: var(--dashboard-subtle); font-size: 0.54rem; }
.dashboard-grid-preview { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(12rem, 0.85fr); gap: clamp(0.7rem, 1.5vw, 1rem); margin-top: 1rem; }
.dashboard-panel { min-width: 0; padding: clamp(0.8rem, 1.8vw, 1.2rem); background: var(--dashboard-surface); border: 1px solid var(--dashboard-hairline-strong); border-radius: 0.9rem; }
.dashboard-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding-bottom: 0.75rem; }
.dashboard-panel-head div { display: grid; }
.dashboard-panel-head span { color: var(--dashboard-muted); font-size: 0.59rem; }
.dashboard-panel-head strong { font-size: 0.8rem; font-weight: 500; }
.dashboard-panel-head b { color: var(--dashboard-muted); font-size: 0.62rem; font-weight: 500; }
.dashboard-resident-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.65rem; min-height: 3.8rem; border-top: 1px solid var(--dashboard-hairline); }
.dashboard-resident-avatar { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--dashboard-hairline-strong); border-radius: 50%; background: var(--dashboard-well); color: var(--dashboard-ink); font-size: 0.58rem; font-weight: 600; }
.dashboard-resident-row > div { display: grid; min-width: 0; line-height: 1.4; }
.dashboard-resident-row strong { overflow: hidden; font-size: 0.65rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-resident-row small { color: var(--dashboard-muted); font-size: 0.56rem; }
.dashboard-row-status { padding: 0.28rem 0.48rem; background: var(--dashboard-active); border-radius: 999px; color: var(--dashboard-ink); font-size: 0.56rem; white-space: nowrap; }
.dashboard-row-status.is-due { background: var(--dashboard-attention-fill); color: var(--dashboard-attention-ink); }
.dashboard-row-status.is-ready { background: var(--dashboard-active); color: var(--dashboard-ink); }
.dashboard-progress { height: 0.42rem; overflow: hidden; margin: 0.2rem 0 1rem; background: var(--dashboard-active); border-radius: 999px; }
.dashboard-progress span { display: block; width: 67%; height: 100%; background: var(--dashboard-ink); border-radius: inherit; }
.dashboard-check { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 0; border-top: 1px solid var(--dashboard-hairline); }
.dashboard-check i { width: 0.72rem; height: 0.72rem; border: 1px solid var(--dashboard-subtle); border-radius: 50%; }
.dashboard-check i.is-done { background: var(--dashboard-active); border-color: var(--dashboard-muted); box-shadow: inset 0 0 0 2px var(--dashboard-surface); }
.dashboard-check span { display: grid; line-height: 1.35; }
.dashboard-check strong { font-size: 0.62rem; font-weight: 500; }
.dashboard-check small { color: var(--dashboard-muted); font-size: 0.56rem; }
.dashboard-review-button { display: block; margin-top: 0.8rem; padding: 0.65rem; background: var(--dashboard-ink); border-radius: 0.65rem; color: var(--dashboard-surface); font-size: 0.62rem; font-weight: 500; text-align: center; }

/* Seal watermark — the mark held behind the subject, oversized, one contrast
   step off the field. Always cropped by the frame edge, never complete, and
   never in front of a person (hence z-index 0 against content at z-index 1). */

.seal-watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.seal-watermark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seal-watermark-hero {
  width: clamp(19rem, 44vw, 40rem);
  height: clamp(19rem, 44vw, 40rem);
  right: clamp(-8.75rem, -9vw, -4rem);
  top: clamp(-7.5rem, -8vw, -3.5rem);
  color: var(--seal-watermark);
}
.seal-watermark-night {
  width: clamp(17rem, 38vw, 35rem);
  height: clamp(17rem, 38vw, 35rem);
  left: clamp(-10rem, -11vw, -5rem);
  bottom: clamp(-11.25rem, -12vw, -5.5rem);
  color: var(--seal-watermark-night);
}

/* Heartwood night band — the one place photography goes environmental. */

.night-band {
  background: var(--heartwood-deep);
  color: var(--pale-grain);
  overflow: hidden;
}
.night-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: clamp(2.5rem, 5vw, 3rem);
  align-items: center;
}
.night-copy > * + * { margin-top: 1rem; }
.night-band h2 { color: var(--pale-grain); max-width: 22ch; }
.night-band .lede { color: var(--night-lede); max-width: 50ch; }
/* New Growth appears only in the eyebrow — never washed over the photo. This
   is also the page's one accent icon (rule 4: New Growth is rationed to a
   single mark per view); every other icon on the page stays currentColor. */
.night-band .eyebrow { color: var(--new-growth); }
.night-band .eyebrow:has(.ico) { display: flex; align-items: center; gap: 0.5rem; }

/* Placeholder frame: holds the slot's proportions until the shoot lands.
   Deliberately quiet rather than labelled — it ships to real visitors. */
.night-visual {
  min-height: clamp(15rem, 30vw, 21.25rem);
  border-radius: 0.625rem;
  background: linear-gradient(160deg, #24392f 0%, #1b2c24 100%);
  border: 1px solid var(--seal-watermark-night);
}

.surface { background: var(--paper); border: 1px solid var(--ring-faint); border-radius: 1rem; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 13px 26px;
  border-radius: var(--control-radius);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-settle), border-color 0.2s var(--ease-settle), transform 0.2s var(--ease-settle);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ember); color: var(--old-growth); border: 1px solid var(--ember); }
.btn-primary:hover { background: var(--ember-bright); border-color: var(--ember-bright); }
.btn-ghost { background: transparent; color: var(--old-growth); border: 1px solid rgba(29, 48, 36, 0.3); }
.btn-ghost:hover { border-color: var(--heartwood); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--heartwood);
  outline-offset: 3px;
}

/* Product previews: intentionally utilitarian against the softer marketing shell. */

.vignette {
  background: var(--deep-growth);
  border: 1px solid rgba(207, 223, 213, 0.2);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--pale-grain);
}
.vignette-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(207, 223, 213, 0.22);
  color: var(--sapwood);
  font-size: 0.7rem;
}
/* Ring-grammar icons — specimen and rules at /icons.html */
.ico { display: block; flex: 0 0 auto; width: 1.5rem; height: 1.5rem; }
.ico circle, .ico path, .ico rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico .solid { fill: currentColor; stroke: none; }
.ico-sm { width: 1rem; height: 1rem; }

/* Icons inside preview vignettes name the kind of work in each row. */
.v-label { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; }
.v-row:has(.v-icon) { align-items: center; }
.v-icon { color: var(--sapwood); }
.v-icon-accent { color: var(--ember-bright); }

.v-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(207, 223, 213, 0.18);
}
.v-row:first-of-type { border-top: 0; }
.v-strong { font-weight: 500; color: var(--pale-grain); }
.v-dim { color: var(--sapwood); font-size: 0.82rem; text-align: right; }
.v-ember { color: var(--ember-bright); }
.v-unanswered { color: var(--sapwood); border: 1px dashed var(--ring); padding: 0.12rem 0.45rem; font-size: 0.82rem; }
.v-action { border-radius: var(--control-radius); display: block; width: 100%; min-height: 48px; margin-top: 0.85rem; padding: 13px; background: var(--ember); color: var(--old-growth); text-align: center; font-weight: 500; }
.preview-caption { margin-top: 0.85rem; color: var(--ink-muted); font-size: 0.82rem; }

/* Steps, resources, and conversion */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
  list-style: none;
}
.step-grid-three { grid-template-columns: repeat(3, 1fr); }
.step-card {
  min-width: 0;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(48, 76, 60, 0.12);
  border-radius: 1rem;
}
.step-card > span { display: block; margin-bottom: 2.2rem; color: var(--heartwood); font-size: 0.76rem; font-weight: 500; }
.step-card > span:has(.ico) { display: flex; align-items: center; gap: 0.5rem; }
.step-card p { margin-top: 0.75rem; color: var(--ink-muted); }

/* The conversion band is a contained panel, not an edge-to-edge band:
   it matches the header's column so the page closes on the content width. */
.conversion-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  width: calc(100% - clamp(1rem, 3vw, 2.5rem));
  max-width: var(--content-max);
  margin-inline: auto;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-inline: var(--page-inline);
  padding-bottom: var(--sec-pad-y);
  border-radius: var(--band-radius);
}
/* the band above it is no longer covered, so close its bottom corners */
main > .chapter:has(+ .conversion-band), main > .dark-band:has(+ .conversion-band) {
  border-end-start-radius: var(--band-radius);
  border-end-end-radius: var(--band-radius);
}
.conversion-action { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--heartwood);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.chapter-dark .text-link { color: var(--ember-bright); }

.resource-hero { max-width: 74rem; padding-block: clamp(5rem, 9vw, 8rem); }
.resource-hero h1 { max-width: 12ch; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.resource-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper-soft);
  border: 1px solid var(--ring-faint);
  border-radius: 1rem;
}
.resource-card h2 { font-size: clamp(1.5rem, 2.7vw, 2.1rem); }
.resource-card p { margin: 1rem 0 1.5rem; color: var(--ink-muted); }

/* Long-form resource articles */

.article-shell { width: calc(100% - clamp(1rem, 3vw, 2.5rem)); max-width: var(--content-max); margin-inline: auto; }
.article-header { max-width: 58rem; padding: clamp(5rem, 9vw, 8rem) var(--page-inline) clamp(3rem, 6vw, 5rem); }
.article-header h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
.article-meta { margin-top: 1.5rem; color: var(--ink-muted); font-size: 0.82rem; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.28fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  padding: 0 var(--page-inline) clamp(5rem, 9vw, 8rem);
}
.article-toc {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 0.7rem;
  padding-top: 0.25rem;
  font-size: 0.86rem;
}
.article-toc strong { margin-bottom: 0.35rem; }
.article-toc a { color: var(--ink-muted); text-decoration: none; }
.article-toc a:hover { color: var(--heartwood); }
.article-body { max-width: 48rem; }
.article-body section + section { margin-top: clamp(3rem, 7vw, 5rem); }
.article-body h2 { font-size: clamp(1.75rem, 3.5vw, 2.55rem); }
.article-body h2 + p, .article-body h2 + ul, .article-body h2 + ol { margin-top: 1.2rem; }
.article-body p + p, .article-body p + ul, .article-body p + ol,
.article-body ul + p, .article-body ol + p { margin-top: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; color: var(--ink-muted); }
.article-body li + li { margin-top: 0.65rem; }
.article-body a { color: var(--heartwood); font-weight: 500; text-underline-offset: 0.18em; }
.article-note { margin-top: 1.5rem; padding: 1.2rem; background: var(--sand); border-left: 3px solid var(--heartwood); color: var(--ink-muted); }
.article-cta { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--heartwood); color: var(--pale-grain); border-radius: 1rem; }
.article-cta p { margin-top: 0.9rem; color: var(--sapwood); }
.article-cta .btn-ghost { color: var(--pale-grain); border-color: var(--ring); }

/* Proof and content grids */

/* .dark-band geometry is handled by the shared band rule above. */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ring); border-bottom: 1px solid var(--ring); }
.metric { min-width: 0; padding: 1.6rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--ring); }
.metric:first-child { border-left: 0; }
.metric-value { display: block; color: var(--pale-grain); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.015em; }
.metric .ico { color: var(--sapwood); margin-bottom: 0.9rem; }
.metric-label { display: block; margin-top: 0.45rem; color: var(--sapwood); font-size: 0.8rem; }
/* Six-cell variant: two rows of three. The dividers have to become row-aware —
   the cell that starts a row drops its left rule, and every cell below the first
   row gains a top rule. Guarded by min-width so these do not fight the two-column
   rules in the mobile block, where the row boundaries fall in different places. */
.metric-grid-three { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 901px) {
  .metric-grid-three .metric:nth-child(3n+1) { border-left: 0; }
  .metric-grid-three .metric:nth-child(n+4) { border-top: 1px solid var(--ring); }
}

.outcome-grid, .story-grid, .admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.outcome-card, .story-card, .admin-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.15rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(48, 76, 60, 0.12);
  border-radius: 1rem;
}
.chapter-white .outcome-card, .chapter-white .story-card, .chapter-white .admin-card { background: var(--paper-soft); }
.outcome-card p, .story-card p, .admin-card p { margin-top: 0.8rem; color: var(--ink-muted); }
.card-kicker:has(.ico) { display: flex; align-items: center; gap: 0.5rem; }
.card-kicker { display: block; margin-bottom: 1rem; color: var(--heartwood); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.035em; }
.story-card .vignette { margin-top: 1.3rem; }
.admin-grid { grid-template-columns: 1fr 1fr; }
.admin-card ul { list-style: none; margin-top: 1.2rem; }
.admin-card li { padding: 0.7rem 0; border-top: 1px solid var(--ring-faint); color: var(--ink-muted); }
.admin-card li::before { content: "—"; color: var(--heartwood); margin-right: 0.6rem; }

.trust-band { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.trust-list { list-style: none; border-top: 1px solid var(--ring-faint); }
.trust-list li { display: grid; grid-template-columns: minmax(10rem, 0.8fr) 1.2fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ring-faint); }
.trust-list strong { font-weight: 500; }
.trust-list span { color: var(--ink-muted); }
.chapter-dark .trust-list, .chapter-dark .trust-list li { border-color: var(--ring); }
.chapter-dark .trust-list span { color: var(--sapwood); }

/* Onboarding and FAQ */

.onboarding-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 6rem); }
.onboarding-panel::after { content: ""; position: absolute; width: 16rem; height: 16rem; right: -7rem; bottom: -9rem; border: 1px solid rgba(48, 76, 60, 0.18); border-radius: 50%; }
.onboarding-list { list-style: none; position: relative; z-index: 1; }
.onboarding-list li { padding: 0.9rem 0; border-top: 1px solid rgba(48, 76, 60, 0.18); color: var(--ink-muted); }
.onboarding-list li:last-child { border-bottom: 1px solid rgba(48, 76, 60, 0.18); }
.onboarding-list strong { display: block; margin-bottom: 0.2rem; color: var(--old-growth); font-weight: 500; }

.faq-list { max-width: 56rem; margin-top: 2rem; border-top: 1px solid var(--ring-faint); }
.faq-list details { border-bottom: 1px solid var(--ring-faint); }
.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  color: var(--old-growth);
  font-weight: 500;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--heartwood); font-size: 1.35rem; font-weight: 300; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 2.5rem 1.25rem 0; color: var(--ink-muted); }

/* Forms */

.form-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.form-grid { display: grid; gap: 1.3rem; max-width: 36rem; margin-top: 2.5rem; }
label { display: block; margin-bottom: 0.42rem; font-size: 0.92rem; font-weight: 500; }
.required-note { color: var(--ink-muted); font-size: 0.8rem; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--ring-faint);
  border-radius: var(--control-radius);
  background: var(--paper);
  color: var(--old-growth);
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.2s var(--ease-settle), box-shadow 0.2s var(--ease-settle);
}
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: 0.75; }
input:focus, select:focus, textarea:focus { border-color: var(--heartwood); box-shadow: 0 0 0 3px rgba(48, 76, 60, 0.12); }

.form-aside { padding: clamp(1.5rem, 3vw, 2rem); }
.numbered-list { list-style: none; counter-reset: next-step; margin-top: 1.2rem; }
.numbered-list li { counter-increment: next-step; padding: 1rem 0 1rem 2.5rem; border-top: 1px solid var(--ring-faint); position: relative; color: var(--ink-muted); }
.numbered-list li:last-child { border-bottom: 1px solid var(--ring-faint); }
.numbered-list li::before { content: "0" counter(next-step); position: absolute; left: 0; color: var(--heartwood); font-size: 0.76rem; font-weight: 500; }
.notice { margin-top: 1.25rem; padding: 1rem; border-left: 2px solid var(--heartwood); background: var(--ember-soft); color: var(--ink-muted); font-size: 0.84rem; }
.notice strong { color: var(--old-growth) !important; }

/* Security status */

.status-list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--ring-faint); }
.status-list li { display: grid; grid-template-columns: minmax(12rem, 0.8fr) minmax(8rem, 0.45fr) 1.25fr; gap: 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--ring-faint); }
.status-list strong { font-weight: 500; }
.status-tag { color: var(--heartwood); font-size: 0.76rem; font-weight: 500; }
.status-copy { color: var(--ink-muted); }

/* Ring mark and footer */

/* "The seal, opened" — one stroke: a ring that doesn't close, leaving on the
   same 45deg rise as every checkmark in the icon set. Heavier than the 1.5/24
   icon hairline on purpose; a logo is not a UI affordance. Never close the gap,
   never put a glyph inside the ring, never rotate the rise. */

.ring-mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stroke thickens as the box shrinks — intended, not a bug. 64px:3 / 32px:3.4 /
   24px:3.8. The header sits at 26px, between the 24 and 32 rows. */
.ring-mark-64 path { stroke-width: 3; }
.ring-mark-32 path { stroke-width: 3.4; }
.ring-mark-24 path { stroke-width: 3.8; }

.site-footer {
  width: calc(100% - clamp(1rem, 3vw, 2.5rem));
  max-width: var(--content-max);
  margin: 1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.3rem;
  padding: var(--page-block) var(--page-inline);
  border-top: 1px solid var(--ring-faint);
  color: var(--ink-muted);
  font-size: 0.84rem;
}
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--old-growth); }
.site-footer .spacer { margin-left: auto; }
.site-footer .dot { opacity: 0.45; }

/* Motion: content is never hidden while motion settles. */

@keyframes settle { from { transform: translateY(9px); } to { transform: none; } }
.hero-settle-1 { animation: settle 0.8s var(--ease-settle) both; }
.hero-settle-2 { animation: settle 0.8s var(--ease-settle) 0.08s both; }
.hero-settle-3 { animation: settle 0.8s var(--ease-settle) 0.16s both; }

@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; }
}

@media (max-width: 900px) {
  .hero-grid, .trust-band, .onboarding-panel, .form-layout, .night-grid { grid-template-columns: 1fr; }
  .hero-grid { align-items: start; }
  .dashboard-stage { aspect-ratio: auto; padding: 3rem 2.5rem 0; }
  .dashboard-shell { grid-template-columns: 9rem minmax(0, 1fr); }
  .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpi:nth-child(odd) { border-left: 0; }
  .dashboard-kpi:nth-child(n+3) { border-top: 1px solid var(--dashboard-hairline-strong); }
  .dashboard-grid-preview { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .step-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
  .conversion-band { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; width: 100%; gap: 1.25rem; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .header-cta { font-size: 0.8rem; padding-inline: 0.85rem; }
  .section { --sec-pad-y: clamp(3.5rem, 14vw, 5rem); }
  :root { --band-overlap: 1.5rem; }
  .hero-grid { gap: 2.5rem; }
  .hero-home { padding-top: 3.25rem; }
  .home-page .hero-home { padding-top: 10.5rem; }
  .product-showcase { margin-top: 3rem; }
  .dashboard-stage { padding: 1.75rem 1rem 0; border-radius: 1.25rem; }
  .dashboard-frame { border-radius: 0.9rem; }
  .dashboard-browser-bar { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-browser-balance { display: none; }
  .dashboard-shell { grid-template-columns: 1fr; min-height: 0; }
  .dashboard-sidebar { display: none; }
  .dashboard-content-preview { padding: 1rem; }
  .dashboard-attention-banner { grid-template-columns: auto minmax(0, 1fr); }
  .dashboard-attention-action { grid-column: 2; justify-self: start; }
  .dashboard-panel-secondary { display: none; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  /* At two columns the left column is every odd cell, whether the grid holds
     four items or six. `nth-child(3)` only covered the four-item case. */
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--ring); }
  .outcome-grid, .admin-grid { grid-template-columns: 1fr; }
  .step-grid, .resource-grid { grid-template-columns: 1fr; }
  .trust-list li, .status-list li { grid-template-columns: 1fr; gap: 0.35rem; }
  .v-row { align-items: flex-start; }
  .site-footer .spacer, .site-footer .dot { display: none; }
  .site-footer { align-items: flex-start; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; padding: 1rem; background: var(--paper); border: 1px solid var(--ring-faint); border-radius: 1rem; }
}

@media (max-width: 430px) {
  .site-header { width: calc(100% - 0.75rem); padding-inline: 0.8rem; }
  .conversion-band { width: calc(100% - 0.75rem); }
  .site-nav { width: 100%; justify-content: flex-start; gap: 1rem; }
  .site-nav a { font-size: 0.84rem; }
  .wordmark { font-size: 0.95rem; }
  .dashboard-browser-dots { display: none; }
  .dashboard-browser-bar { grid-template-columns: 1fr; padding-inline: 0.65rem; }
  .dashboard-address { width: 100%; min-width: 0; }
  .dashboard-topbar { min-height: 3.5rem; padding-inline: 0.75rem; }
  .dashboard-avatar, .dashboard-shift { display: none; }
  .dashboard-topbar-account > span:first-child { display: none; }
  .dashboard-heading { align-items: start; }
  .dashboard-attention-action { display: none; }
  .dashboard-kpi small { display: none; }
  .dashboard-resident-row { grid-template-columns: auto minmax(0, 1fr); padding-block: 0.55rem; }
  .dashboard-row-status { grid-column: 2; justify-self: start; margin-top: -0.3rem; }
}
