/* ============================================================================
   Basin & Range Home Systems — techno-futurist bento direction.

   The organising idea: the page is an instrument panel. Every region is a cell
   with a hard edge, and cell SIZE encodes importance — which is the one thing a
   row of equal cards cannot express. Nothing here is centred, nothing is a
   three-across feature grid, and the three bentos on the page deliberately run
   different rhythms so the layout does not repeat itself down the scroll.

   Dark is the direction, not a mode. A control surface that repaints itself
   white in daylight is not a control surface, so this page does not offer a
   light scheme — it declares `color-scheme: dark` honestly instead of shipping
   a light variant nobody designed.

   Numerals are set in JetBrains Mono throughout: prices, indices, step numbers,
   legend pins. Tabular figures are the whole reason a technical page reads as
   measured rather than marketed.
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff2") format("woff2-variations");
  font-weight: 100 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}

:root {
  color-scheme: dark;

  /* Surfaces climb in value as they come forward: page, cell, raised control. */
  --c-bg: #0b0d10;
  --c-surface: #12171d;
  --c-surface-2: #182029;
  --c-raise: #1e2731;

  --c-line: #2a333e;
  --c-line-soft: #1d242c;
  --c-line-hard: #3d4a58;

  --c-text: #e9eef4;
  --c-text-dim: #a7b4c2;

  --c-accent: #4ee6b8;
  --c-accent-dim: #2b8f74;
  --c-on-accent: #06140f;

  /* Illustration palette. Kept separate from the UI tokens on purpose: the
     cutaway needs more value steps than the interface does, and binding it to
     --c-surface would drag the drawing every time a panel colour moved. */
  --c-face-front: #1b222b;
  --c-face-side: #131920;
  --c-roof-front: #2d3844;
  --c-roof-side: #222b35;
  --c-interior: #10161d;
  --c-glass: #2a5866;
  --c-duct: #4d5b69;
  --c-unit: #37434f;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-text: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --page: 78rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --gap: clamp(0.7rem, 1.3vw, 1.15rem);
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The sticky call bar must never cover the thing the visitor just jumped to. */
  scroll-padding-block-end: 6.5rem;
  scroll-padding-block-start: 5rem;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grid and flex children default to min-width:auto, which is the single most
   common cause of a bento blowing out its container on a narrow screen. */
.bento > *, .book__grid > *, .planner > * { min-width: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.1vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.05rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; }

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

svg { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0.5rem; top: -4rem;
  z-index: 60;
  background: var(--c-accent);
  color: var(--c-on-accent);
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 140ms ease;
}
.skip-link:focus { top: 0.5rem; }

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

/* ── Top bar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--c-line-soft);
}

.topbar__inner {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-inline-end: auto;
  padding-block: 0.35rem;
}
.brand__glyph { width: 30px; height: 30px; color: var(--c-accent); flex: none; }
.brand__glyph svg { width: 100%; height: 100%; }
.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.12;
  display: flex;
  flex-direction: column;
}
.brand__sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.topbar__nav { display: none; gap: clamp(1rem, 2.4vw, 2rem); }
.topbar__nav a {
  font-size: 0.9rem;
  color: var(--c-text-dim);
  text-decoration: none;
  padding-block: 0.75rem;
  border-block-end: 2px solid transparent;
}
.topbar__nav a:hover { color: var(--c-text); border-block-end-color: var(--c-accent); }

.topbar__cta { display: none; }

@media (min-width: 62rem) {
  .topbar__nav { display: flex; }
  .topbar__cta { display: inline-flex; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;              /* touch target floor, per norms §8 */
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn--accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn--accent:hover { background: color-mix(in srgb, var(--c-accent) 82%, #ffffff); }
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-line-hard);
  font-family: var(--font-mono);
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--lg { min-height: 52px; padding: 0.9rem 1.6rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

/* ── Bento primitives ────────────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.cell {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 2.3vw, 2rem);
  /* One-pixel top highlight — the thing that makes a flat dark panel read as a
     surface with a light on it rather than a hole. */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  flex: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(2rem, 5vw, 4rem);
}

.cell--headline { padding: clamp(1.4rem, 3vw, 2.6rem); }
.cell--headline h1 { margin-block-end: 1.2rem; }
.hl {
  color: var(--c-accent);
  /* Not colour alone: the emphasis is also drawn. */
  box-shadow: inset 0 -0.12em 0 var(--c-accent-dim);
}
.hero__lede {
  color: var(--c-text-dim);
  font-size: 1.08rem;
  max-width: 40ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-block-start: 1.6rem;
}

/* Cutaway figure ---------------------------------------------------------- */

/* The art cell spans two rows of the hero bento, so its content has to be
   distributed rather than top-aligned — left alone the drawing floats at the
   top over a third of a cell of empty panel. The dotted field behind it is a
   drafting sheet: it gives the illustration a surface to sit on and reads as
   technical without costing a request. */
.cell--art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
  /* All three layers are backgrounds rather than a pseudo-element: `.cutaway`
     is `display: contents`, so an absolutely-positioned ::before would paint
     over the drawing instead of behind it. Backgrounds never can. */
  background-image:
    radial-gradient(circle, var(--c-line) 1px, transparent 1.4px),
    radial-gradient(circle at 50% 42%, rgba(78, 230, 184, 0.06), transparent 62%),
    linear-gradient(160deg, var(--c-surface-2), var(--c-surface) 62%);
  background-size: 22px 22px, auto, auto;
}
.cutaway { margin: 0; display: contents; }
.cutaway__svg { width: 100%; height: auto; }
.cutaway__pins { font-family: var(--font-mono); }

.cutaway__legend ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.45rem 1rem;
  font-size: 0.86rem;
  color: var(--c-text-dim);
}
.cutaway__legend li { display: flex; align-items: center; gap: 0.55rem; }
.pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  flex: none;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

/* Stat cells -------------------------------------------------------------- */

.cell--stat { display: flex; flex-direction: column; justify-content: center; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.5rem;
  font-variant-numeric: tabular-nums;
}
.stat__of { font-size: 0.55em; font-weight: 400; color: var(--c-text-dim); }
.stat__label { font-size: 0.86rem; color: var(--c-text-dim); line-height: 1.45; }

.cell--trust { display: flex; align-items: center; }
.trust {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.55rem 1.4rem;
  width: 100%;
  font-size: 0.88rem;
}
.trust li { display: flex; align-items: flex-start; gap: 0.6rem; }
.trust__mark { color: var(--c-accent); font-weight: 700; flex: none; }

/* Hero bento placement. Below 60rem everything is one column and the source
   order is the reading order — headline, drawing, numbers, licences. */
@media (min-width: 60rem) {
  .bento--hero { grid-template-columns: repeat(12, 1fr); }
  .cell--headline { grid-column: 1 / 8; }
  .cell--art { grid-column: 8 / 13; grid-row: 1 / span 2; }
  .bento--hero > .cell:nth-child(3) { grid-column: 1 / 4; }
  .bento--hero > .cell:nth-child(4) { grid-column: 4 / 8; }
  .bento--hero > .cell:nth-child(5) { grid-column: 1 / 6; }
  .bento--hero > .cell:nth-child(6) { grid-column: 6 / 13; }
}

/* ── Section heads ───────────────────────────────────────────────────────── */

section:not(.hero) { padding-block: clamp(2.75rem, 6vw, 5rem); }

.sec-head { max-width: 46rem; margin-block-end: clamp(1.5rem, 3vw, 2.5rem); }
.sec-head__note {
  color: var(--c-text-dim);
  margin-block-start: 1rem;
  max-width: 52ch;
}

/* ── What's covered ──────────────────────────────────────────────────────── */

.covered { border-block-start: 1px solid var(--c-line-soft); }

.cell--feature { display: flex; flex-direction: column; }
.cell__idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin: 0 0 0.7rem;
}
.cell--feature h3 { margin-block-end: 0.6rem; }
.cell--feature p:not(.cell__idx):not(.cell__meta) {
  color: var(--c-text-dim);
  font-size: 0.94rem;
}
.cell__meta {
  margin-block-start: auto;
  padding-block-start: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  border-block-start: 1px solid var(--c-line-soft);
}

.cell--feature-accent {
  background: linear-gradient(120deg, var(--c-surface-2), var(--c-surface) 70%);
  border-color: var(--c-accent-dim);
}
.cell--feature-accent .cell__idx { color: var(--c-accent); }

@media (min-width: 48rem) {
  .bento--covered { grid-template-columns: repeat(6, 1fr); }
  .cell--feature { grid-column: span 3; }
}
@media (min-width: 68rem) {
  .cell--feature { grid-column: span 2; }
  /* 02 is the longest entry and the one with the most at stake — it gets the
     double-height cell rather than being clipped to match its neighbours. */
  .cell--feature-tall { grid-row: span 2; }
  /* The closing cell runs the full width as a band, not a stretched card. Four
     columns on one row — index, title, copy, terms — so it reads as a summary
     rule under the grid rather than a card that got wider. */
  .cell--feature-accent {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 14rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem 1.6rem;
  }
  .cell--feature-accent > * { grid-row: 1; margin: 0; }
  .cell--feature-accent .cell__idx { grid-column: 1; }
  .cell--feature-accent h3 { grid-column: 2; }
  .cell--feature-accent p:not(.cell__idx):not(.cell__meta) { grid-column: 3; }
  .cell--feature-accent .cell__meta {
    grid-column: 4;
    padding: 0;
    border: 0;
    white-space: nowrap;
  }
}

/* ── Plan builder ────────────────────────────────────────────────────────── */

.builder {
  border-block-start: 1px solid var(--c-line-soft);
  background:
    radial-gradient(60rem 30rem at 78% 12%, rgba(78, 230, 184, 0.07), transparent 70%),
    var(--c-bg);
}

.planner { display: grid; grid-template-columns: 1fr; gap: var(--gap); }

.planner__controls { display: grid; gap: var(--gap); }

.pgroup {
  margin: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-surface);
  padding: clamp(1rem, 2vw, 1.5rem);
}
.pgroup__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  padding: 0;
  margin-block-end: 0.9rem;
}
.pgroup__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.6rem; }
.pgroup__opts--stack { grid-template-columns: 1fr; }

.opt { display: block; cursor: pointer; }
.opt input {
  /* Kept in the layout and focusable — only visually replaced by .opt__box.
     `appearance:none` plus zero size would drop it out of the a11y tree on
     some engines; clipping keeps it real. */
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.opt__box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  position: relative;
  border: 1px solid var(--c-line-hard);
  border-radius: 10px;
  background: var(--c-raise);
  transition: border-color 140ms ease, background-color 140ms ease;
}
/* The state marker. Selection is never signalled by colour alone: an empty ring
   becomes a filled ring with a dot, and the border weight changes too. */
.opt__box::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  width: 18px; height: 18px;
  border: 2px solid var(--c-line-hard);
  border-radius: 50%;
  background: transparent;
}
.opt--check .opt__box::before { border-radius: 5px; }
.opt__box::after {
  content: "";
  position: absolute;
  left: 1.2rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-on-accent);
  opacity: 0;
}
.opt--check .opt__box::after {
  left: 1.16rem;
  top: 50%;
  width: 9px; height: 5px;
  margin-block-start: -4px;
  border: 2px solid var(--c-on-accent);
  border-block-start: 0;
  border-inline-end: 0;
  border-radius: 1px;
  background: none;
  transform: rotate(-45deg);
}
.opt__name { font-size: 0.92rem; }
.opt__price {
  margin-inline-start: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.opt input:checked + .opt__box {
  border-color: var(--c-accent);
  border-width: 2px;
  padding: calc(0.7rem - 1px) calc(0.9rem - 1px) calc(0.7rem - 1px) calc(2.5rem - 1px);
  background: color-mix(in srgb, var(--c-accent) 10%, var(--c-raise));
}
.opt input:checked + .opt__box::before {
  border-color: var(--c-accent);
  background: var(--c-accent);
}
.opt input:checked + .opt__box::after { opacity: 1; }
.opt input:checked + .opt__box .opt__price { color: var(--c-accent); }
.opt input:focus-visible + .opt__box {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}
.opt:hover .opt__box { border-color: var(--c-accent-dim); }

/* Quote panel ------------------------------------------------------------- */

.quote {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line-hard);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.quote__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-block-end: 0.5rem;
}
.quote__price {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 0.6rem;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}
.quote__cur { font-size: 0.5em; vertical-align: 0.55em; margin-inline-end: 0.05em; }
.quote__per { font-size: 0.3em; color: var(--c-text-dim); letter-spacing: 0; margin-inline-start: 0.2em; }
.quote__sum {
  font-size: 0.88rem;
  color: var(--c-text-dim);
  margin-block-end: 1.2rem;
  min-height: 2.6em;
}

.quote__rows { margin: 0 0 1.3rem; padding: 0; }
.quote__rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-block-start: 1px solid var(--c-line);
  font-size: 0.88rem;
}
.quote__rows dt { color: var(--c-text-dim); }
.quote__rows dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.quote__fine {
  margin-block-start: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--c-text-dim);
}

@media (min-width: 60rem) {
  .planner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
  .planner__out { position: sticky; top: 5.5rem; }
}

/* ── How it works ────────────────────────────────────────────────────────── */

.steps { border-block-start: 1px solid var(--c-line-soft); }
.steplist {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: var(--gap);
}
.steplist li {
  border-block-start: 2px solid var(--c-line-hard);
  padding-block-start: 1.2rem;
}
.step__n {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-accent);
  margin: 0 0 0.8rem;
}
.steplist h3 { margin-block-end: 0.6rem; }
.steplist p:not(.step__n) { color: var(--c-text-dim); font-size: 0.94rem; }

@media (min-width: 52rem) {
  .steplist { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}

/* ── Proof & service area ────────────────────────────────────────────────── */

.proof { border-block-start: 1px solid var(--c-line-soft); }

.cell--area h2 { margin-block-end: 1rem; }
.area__list {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--c-text);
}
.area__note { font-size: 0.88rem; color: var(--c-text-dim); margin-block-start: 1rem; }

.cell--quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}
.cell--quote p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.cell--quote footer {
  font-size: 0.8rem;
  color: var(--c-text-dim);
  padding-block-start: 0.9rem;
  border-block-start: 1px solid var(--c-line);
}
.cell--quote cite { font-style: normal; font-weight: 600; color: var(--c-text); }

.cell--rating {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  background: linear-gradient(150deg, var(--c-surface-2), var(--c-surface) 70%);
}
.rating__num {
  font-family: var(--font-mono);
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}
.rating__stars { color: var(--c-accent); letter-spacing: 0.12em; margin-block-end: 0.5rem; }
.rating__meta { font-size: 0.78rem; color: var(--c-text-dim); line-height: 1.45; }

@media (min-width: 60rem) {
  .bento--proof { grid-template-columns: repeat(12, 1fr); }
  .cell--area { grid-column: 1 / 7; grid-row: 1 / span 2; }
  .bento--proof > .cell:nth-child(2) { grid-column: 7 / 13; }
  .bento--proof > .cell:nth-child(3) { grid-column: 7 / 11; }
  .bento--proof > .cell:nth-child(4) { grid-column: 11 / 13; }
}

/* ── Book ────────────────────────────────────────────────────────────────── */

.book {
  border-block-start: 1px solid var(--c-line-soft);
  background:
    radial-gradient(50rem 26rem at 15% 0%, rgba(78, 230, 184, 0.06), transparent 70%),
    var(--c-bg);
  padding-block-end: clamp(4rem, 9vw, 6rem);
}
.book__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); }
.book__lede { color: var(--c-text-dim); margin-block-start: 1rem; max-width: 44ch; }

.book__facts { margin: 2rem 0 0; padding: 0; }
.book__facts > div {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.8rem;
  border-block-start: 1px solid var(--c-line);
  font-size: 0.9rem;
}
.book__facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  padding-block-start: 0.2em;
}
.book__facts dd { margin: 0; }
/* A phone number alone on its own line is not "inline in a sentence", so it
   does not get WCAG's inline-target exemption — pad it to clear 24px. */
.book__facts a, .foot a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--c-accent);
}

.form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
}
.field { margin-block-end: 1rem; }
.field label {
  display: block;
  margin-block-end: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  background: var(--c-bg);
  border: 1px solid var(--c-line-hard);
  border-radius: 9px;
  color: var(--c-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { min-height: 5.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--c-accent); }
.form__note { margin-block-start: 0.9rem; font-size: 0.8rem; color: var(--c-text-dim); }

@media (min-width: 60rem) {
  .book__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  border-block-start: 1px solid var(--c-line);
  padding-block: 2.5rem;
  /* Clearance for the sticky call bar, which only exists below 62rem. */
  padding-block-end: calc(2.5rem + 5rem + env(safe-area-inset-bottom));
  font-size: 0.86rem;
  color: var(--c-text-dim);
}
.foot__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  margin-block-end: 0.4rem;
}
.foot p { margin-block-end: 0.35rem; }
.foot a { color: var(--c-accent); }
.foot__fine { margin-block-start: 0.8rem; font-size: 0.78rem; }

@media (min-width: 62rem) {
  .foot { padding-block-end: 2.5rem; }
}

/* ── Sticky call bar (small screens only) ────────────────────────────────── */

.callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block-start: 1px solid var(--c-line);
}
.callbar__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--c-line-hard);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--c-text);
}
.callbar__btn--accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-on-accent);
}

@media (min-width: 62rem) {
  .callbar { display: none; }
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

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

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
  .callbar, .topbar__cta, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .cell, .quote, .form { border-color: #999; box-shadow: none; }
}
