/* ============================================================
   TACET — Design System
   ------------------------------------------------------------
   The stylesheet for the Tacet marketing site. Monochrome, calm and
   text-first: this page is shown to agency owners and finance
   people deciding whether to pay for an audit, so it reads like
   a product, not a demo.

   There is NO colour in this file — every value is a grey. State that
   would normally be signalled with red or amber is signalled with
   darkness and weight instead (see the status tokens below), so the
   page survives greyscale printing and colour-blind readers.

   Everything is plain CSS with custom properties — no build step,
   no framework. Edit the tokens in :root and the whole page moves.

   Order of this file:
     1. Tokens          6. Buttons        11. Evidence + reports
     2. Reset + base    7. Header         12. CTA + footer
     3. Utilities       8. Hero           13. Scroll reveal
     4. Layout          9. Pipeline       14. Responsive
     5. Section heads  10. Demo console   15. Print
   ============================================================ */


/* ============================================================
   1. TOKENS
   The single source of truth for colour, type, space and depth.
   ============================================================ */

:root {
  /* --- Surfaces. White page, two barely-there greys for separation. --- */
  --bg:            #ffffff;
  --bg-subtle:     #fafafa;
  --bg-sunken:     #f2f2f2;
  --surface:       #ffffff;

  /* --- Lines. Hairlines do all the structural work in a palette with
         no colour to lean on. --- */
  --border:        #e8e8e8;
  --border-strong: #cfcfcf;

  /* --- Text. Pure black for headings; greys step down from there. --- */
  --text:           #000000;
  --text-secondary: #5c5c5c;
  --text-muted:     #7a7a7a;
  --text-faint:     #a8a8a8;

  /* --- "Accent" is black. Kept as its own token so the page still has
         one lever for emphasis, and so a colour could be reintroduced
         in one place later without hunting through the file. --- */
  --accent:        #000000;
  --accent-hover:  #2b2b2b;
  --accent-soft:   #f2f2f2;
  --accent-border: #d6d6d6;

  /* --- Status, without colour.
         Severity is carried by WEIGHT and DARKNESS instead of hue:
         healthy sits back in light grey, late steps forward with a
         hard black hairline, and silent inverts to solid black. The
         worse the state, the darker and heavier it renders — which
         survives greyscale printing and colour-blind readers alike. --- */
  --ok:            #6b6b6b;
  --ok-soft:       #f4f4f4;
  --ok-border:     #e2e2e2;
  --warn:          #2b2b2b;
  --warn-soft:     #ffffff;
  --warn-border:   #9a9a9a;
  --danger:        #000000;
  --danger-soft:   #ededed;
  --danger-border: #8f8f8f;

  /* --- Type. Google Sans is the geometric grotesk the reference uses;
         Google Sans Code carries anything the machine produced. --- */
  --font-sans: "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* --- Fluid type scale. clamp() means no layout jumps between
         breakpoints — the type just grows with the viewport. --- */
  --text-2xs:  0.6875rem;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   clamp(1.0625rem, 0.25vw + 1rem,   1.1875rem);
  --text-xl:   clamp(1.1875rem, 0.5vw + 1.06rem, 1.375rem);
  --text-2xl:  clamp(1.375rem, 0.9vw + 1.18rem,  1.75rem);
  --text-3xl:  clamp(1.75rem,  1.8vw + 1.36rem,  2.5rem);
  --text-4xl:  clamp(2.125rem, 3.2vw + 1.4rem,   3.5rem);

  /* --- Space. A 4px-derived scale; every gap picks from here. --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  2.5rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* --- Radius + depth. Shadows are soft and low: enterprise UI
         suggests elevation, it does not announce it. --- */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow:    0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.03);

  /* --- Motion. Fast and unremarkable. Nothing here should be
         noticed; it should only stop things appearing abruptly. --- */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --duration:    180ms;
  --duration-lg: 320ms;

  /* --- Layout --- */
  --container:        1180px;
  --container-narrow: 760px;
  --header-height:    64px;
}


/* ============================================================
   2. RESET + BASE
   ============================================================ */

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

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor jumps must clear the sticky header, or headings hide under it. */
  scroll-padding-top: calc(var(--header-height) + var(--space-6));
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

button, input { font: inherit; color: inherit; }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-variant-ligatures: none;
}

/* One visible focus ring for the whole site. Keyboard users need it;
   mouse users never see it thanks to :focus-visible. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

/* Slim, neutral scrollbar so the chrome doesn't shout on Windows. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 3px solid var(--bg-subtle);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }


/* ============================================================
   3. UTILITIES
   ============================================================ */

.font-mono { font-family: var(--font-mono); }

/* With no hue available, severity is spelled with darkness and weight:
   healthy recedes into grey, silent comes forward in heavy black. */
.text-accent { color: var(--accent); }
.text-ok     { color: var(--ok); }
.text-warn   { color: var(--warn);   font-weight: 600; }
.text-danger { color: var(--danger); font-weight: 700; }
.text-muted  { color: var(--text-muted); }

/* Visible to screen readers, invisible on screen. Used for the skip
   link and for labels that would be redundant next to an icon. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Keyboard escape hatch past the nav, first thing in the tab order. */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 200;
  padding: var(--space-2) var(--space-4);
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform var(--duration) var(--ease);
}
.skip-link:focus { transform: translateY(0); }


/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-12); }

/* Tinted band. Alternating white / near-white is what gives a long
   enterprise page its rhythm without drawing any lines. */
.section--subtle {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}


/* ============================================================
   5. SECTION HEADS
   Shared eyebrow + title + lede used at the top of each section.
   ============================================================ */

.section-head { max-width: 680px; margin-bottom: var(--space-8); }

.section-head--center { margin-inline: auto; text-align: center; }

/* Small uppercase label above the heading — tells the reader where
   they are in the page without adding another heading level. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  /* Grey, not black: the eyebrow must not compete with the heading
     directly beneath it now that both would otherwise be pure black. */
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section-lede {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  line-height: 1.6;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  border: 1px solid transparent;
  border-radius: 999px;     /* fully rounded pills */
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { background: var(--bg-subtle); border-color: var(--text-faint); }

/* Text-only button for tertiary actions; the arrow nudges on hover. */
.btn--ghost { padding-inline: var(--space-2); color: var(--text-secondary); }
.btn--ghost:hover { color: var(--accent); }
.btn--ghost svg { transition: transform var(--duration) var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }

.btn--lg { padding: 0.8125rem var(--space-6); font-size: var(--text-base); }


/* ============================================================
   7. HEADER
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

/* JS adds .is-scrolled past 20px, so the bar only separates itself
   from the page once there is content behind it. */
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.logo { display: flex; align-items: center; gap: var(--space-3); }

.logo__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--text);
  border-radius: 7px;
  color: #fff;
}

.logo__name {
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.nav { display: flex; align-items: center; gap: var(--space-2); }

.nav__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 450;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--bg-sunken); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

/* Reading-progress hairline pinned to the bottom edge of the header.
   Width is set from JS; it is the only always-on motion on the page. */
.progress-bar {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 80ms linear;
}


/* ============================================================
   8. HERO
   ============================================================ */

.hero {
  position: relative;
  padding-block: var(--space-16) var(--space-12);
  overflow: hidden;
}

.hero__inner { position: relative; max-width: 780px; }

/* Small pill stating what Tacet watches — concrete platform names do
   more for credibility here than an adjective would. */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 450;
}

.hero__badge-dot {
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  /* Slow, low-contrast pulse: a liveness cue, not an animation. */
  animation: pulse-soft 2.4s var(--ease) infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hero__title {
  font-size: var(--text-4xl);
  font-weight: 640;
  line-height: 1.06;
  letter-spacing: -0.032em;
  margin-bottom: var(--space-5);
}

/* Second line greys back so the first line carries the claim. */
.hero__title-dim { color: var(--text-muted); }

.hero__lede {
  max-width: 620px;
  margin-bottom: var(--space-7);
  color: var(--text-secondary);
  font-size: var(--text-xl);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

/* Four flat facts under the fold. Deliberately not "stat cards" —
   no boxes, no shadows, just a hairline-separated row. */
.hero__facts {
  display: grid;
  /* 150px, not 180: four columns plus three gaps have to fit inside
     the 780px hero column, or the fourth fact drops to its own row. */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.fact__value {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fact__label {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}


/* ============================================================
   9. FEATURE CARDS + PIPELINE
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

/* Four-up variant. The 280px minimum above only ever fits three across,
   so a fourth card drops to a row of its own; these carry less text and
   sit happily at 230px. */
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-lg) var(--ease),
              box-shadow var(--duration-lg) var(--ease),
              transform var(--duration-lg) var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: var(--space-4);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  color: var(--accent);
}

.card__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
}

.card__desc { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.62; }

/* --- The four-step pipeline ---------------------------------
   Steps sit above an SVG that draws the connecting line. On wide
   screens the line runs horizontally behind the number badges; the
   SVG is hidden below 900px where the steps stack vertically and a
   dashed border-left takes over instead. */

.pipeline { position: relative; }

/* The rule spans badge-centre to badge-centre, so it terminates ON the
   last step instead of trailing past it.

   Width is set EXPLICITLY rather than with a `right` inset. An <svg>
   carries an intrinsic aspect ratio from its viewBox (here 1000:2), so
   given only a height it sizes itself to 1000px wide and silently
   ignores `right` — the line then ends wherever that lands. Stating the
   width leaves nothing for the aspect ratio to decide.

   Start at 19px (half a badge). Width = full row minus one column, which
   lands the far end on the centre of the fourth badge. */
.pipeline__line {
  position: absolute;
  top: 19px;                /* centre of the 38px number badge */
  left: 19px;
  width: calc(100% - (100% - 3 * var(--space-6)) / 4);
  height: 2px;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.pipeline__line-path {
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  fill: none;
}

/* Solid overlay drawn in by GSAP as the section scrolls into view,
   so the reader sees the flow assemble left to right. */
.pipeline__line-progress {
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

/* An <ol> for the semantics (these steps are genuinely ordered), but
   the numbered badges ARE the markers — so the browser's own are off. */
.pipeline__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  list-style: none;
}

.step__badge {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color var(--duration-lg) var(--ease),
              background var(--duration-lg) var(--ease),
              color var(--duration-lg) var(--ease);
}

/* GSAP flips this on as each step is reached. */
.step.is-active .step__badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step__title { margin-bottom: var(--space-2); font-size: var(--text-base); font-weight: 600; }

.step__desc {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* The actual files that do the work. Naming them is the proof that
   this is a built system rather than a diagram. */
.step__files { display: flex; flex-direction: column; gap: var(--space-1); }

.step__file {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
}


/* ============================================================
   10. DEMO CONSOLE
   The interactive silence demo. This is the only block on the page
   that demonstrates rather than asserts, so it carries the most
   visual weight.
   ============================================================ */

.console {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Window chrome — signals "this is a live thing" in one glance. */
.console__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.console__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.console__clock { color: var(--text-faint); font-family: var(--font-mono); font-size: var(--text-xs); }

.console__body { padding: var(--space-6); }

/* --- Timeline waveform --------------------------------------
   Canvas drawn in JS: bars for observed runs, then a flat gap once
   the simulated freeze begins. */
.waveform {
  height: 72px;
  margin-bottom: var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.waveform canvas { width: 100%; height: 100%; display: block; }

/* --- Slider --------------------------------------------------- */

.slider__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.slider__label { color: var(--text-muted); font-size: var(--text-sm); font-weight: 450; }

.slider__readout {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}

/* Range input must be styled per-engine; there is no shared API, so
   track and thumb are repeated for WebKit and Firefox. */
.slider__range {
  width: 100%;
  height: 20px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.slider__range::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--bg-sunken);
  border-radius: 99px;
}
.slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  margin-top: -7px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow);
  transition: transform var(--duration) var(--ease);
}
.slider__range:hover::-webkit-slider-thumb  { transform: scale(1.12); }
.slider__range:active::-webkit-slider-thumb { transform: scale(1.2); }

.slider__range::-moz-range-track {
  height: 4px;
  background: var(--bg-sunken);
  border-radius: 99px;
}
.slider__range::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.slider__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
}

/* --- Side-by-side monitors ------------------------------------ */

.monitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.monitor {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-lg) var(--ease),
              background var(--duration-lg) var(--ease);
}

/* Tacet's own panel stays visually "on" throughout — it is the one
   that keeps working while the other goes blind. */
.monitor--tacet { background: var(--surface); border-color: var(--border-strong); }

/* JS adds these as the simulated silence crosses each threshold. The
   panel gets darker and its edge gets harder as the state worsens. */
.monitor.is-late   { background: var(--bg-subtle); border-color: #9a9a9a; }
.monitor.is-silent { background: var(--bg-sunken); border-color: #000; }

.monitor__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.monitor__name { font-size: var(--text-sm); font-weight: 600; }

.monitor__sub {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--text-2xs);
  font-weight: 400;
}

/* Status pill. Colour is set by modifier class from JS. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border: 1px solid transparent;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  white-space: nowrap;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
/* Healthy sits back; late steps forward with a hard hairline; silent
   INVERTS to solid black. Three unmistakable steps, no hue involved. */
.badge--ok     { background: var(--ok-soft);   border-color: var(--ok-border);   color: var(--ok); }
.badge--warn   { background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn); font-weight: 600; }
.badge--danger { background: #000;             border-color: #000;               color: #fff; font-weight: 600; }
.badge--muted  { background: var(--bg-sunken); border-color: var(--border);      color: var(--text-muted); }

.monitor__body { flex: 1; padding-block: var(--space-2); }

.monitor__msg { margin-bottom: var(--space-2); font-size: var(--text-sm); line-height: 1.55; }

.monitor__detail {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  line-height: 1.6;
}

.monitor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
}

.monitor__foot-label { color: var(--text-muted); }
.monitor__foot-value { font-family: var(--font-mono); font-weight: 500; }

/* --- The five questions --------------------------------------- */

.questions { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }

.questions__label {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.questions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
}

.question__q {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.question__a {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration) var(--ease);
}


/* ============================================================
   11. EVIDENCE + REPORTS
   ============================================================ */

/* Two-column split: claim on the left, worked example on the right. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.rule-list { display: flex; flex-direction: column; gap: var(--space-5); }

.rule { display: flex; gap: var(--space-4); }

.rule__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-top: 2px;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--accent);
}

.rule__title { margin-bottom: var(--space-1); font-size: var(--text-base); font-weight: 600; }
.rule__desc  { color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }

/* A sample cost table, presented as a small report panel. */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.panel__title { font-size: var(--text-sm); font-weight: 600; }

.ledger { width: 100%; border-collapse: collapse; }

.ledger th {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}
.ledger th:last-child, .ledger td:last-child { text-align: right; }

.ledger td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.ledger td:last-child { font-family: var(--font-mono); font-weight: 500; }

.ledger tr:last-child td { border-bottom: none; }

.ledger .is-total td { background: var(--bg-subtle); font-weight: 600; }

/* Rows we cannot price say so in place of a number. Showing $0.00 for
   an unpriceable row would be the exact failure this section claims
   Tacet avoids. */
.ledger .is-unpriced td { color: var(--text-muted); }
.ledger .is-unpriced td:last-child { font-style: italic; font-weight: 400; }

/* The partial-total caveat. It has to be noticed without a colour to
   shout with, so it sits on a grey block under a hard rule. */
.panel__note {
  padding: var(--space-3) var(--space-5);
  background: var(--bg-sunken);
  border-top: 1px solid var(--text);
  color: var(--text);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* --- Report / document cards ---------------------------------- */

.doc {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration-lg) var(--ease),
              box-shadow var(--duration-lg) var(--ease),
              transform var(--duration-lg) var(--ease);
}
.doc:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.doc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.doc__name { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500; }

.doc__icon { color: var(--text-faint); }

.doc__desc { flex: 1; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.6; }

.doc__answers {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--text-xs);
}


/* ============================================================
   12. CTA + FOOTER
   ============================================================ */

.cta { padding-block: var(--space-12); }

/* The page's one solid black block. It ends the page the way the
   primary button ends a choice — same shape language, more weight. */
.cta__box {
  position: relative;
  padding: var(--space-10) var(--space-8);
  background: #000;
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}

.cta__inner { position: relative; max-width: 620px; margin-inline: auto; }

.cta__title { margin-bottom: var(--space-4); color: #fff; font-size: var(--text-3xl); }

.cta__lede {
  margin-bottom: var(--space-7);
  color: #b5b5b5;
  font-size: var(--text-lg);
  line-height: 1.6;
}

.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* On the dark panel the primary button inverts to dark-on-white. */
.cta__actions .btn--primary { background: #fff; color: var(--text); }
.cta__actions .btn--primary:hover { background: #dcdcdc; }

.cta__actions .btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.cta__actions .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.footer {
  padding-block: var(--space-7);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer__brand { display: flex; align-items: center; gap: var(--space-3); }

.footer__text { color: var(--text-muted); font-size: var(--text-sm); }


/* ============================================================
   13. SCROLL REVEAL
   ------------------------------------------------------------
   Reveal elements are VISIBLE by default and only hidden once JS
   has confirmed it can animate them back in. That order matters:
   hiding them in CSS first would mean a slow CDN, a blocked script
   or a JS error leaves the visitor on a blank page. Failing to a
   fully readable page is the only acceptable failure here.

   main.js sets .js-reveal on <html> when — and only when — GSAP
   loaded and the visitor has not asked for reduced motion.
   ============================================================ */

/* The fade itself is a CSS transition, not a JS tween. ScrollTrigger
   only decides WHEN by adding .is-revealed; the browser does the
   animating. That keeps the visible outcome off the JS animation
   ticker, so a throttled or stalled frame loop can never strand an
   element half-transparent. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

.js-reveal [data-reveal].is-revealed { opacity: 1; transform: none; }

.no-motion .hero__badge-dot { animation: none; }
.no-motion * { scroll-behavior: auto !important; }

@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;
  }
  /* Belt and braces: even if .js-reveal were somehow set, a visitor
     who asked for reduced motion still gets the whole page. */
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}


/* ============================================================
   14. RESPONSIVE
   Breakpoints go where the layout actually breaks, not at device
   widths: 900px is where four pipeline columns stop fitting,
   760px is where two-up grids stop fitting.
   ============================================================ */

@media (max-width: 900px) {
  /* Pipeline stacks; the SVG connector is replaced by a left rule. */
  .pipeline__line { display: none; }

  .pipeline__steps { grid-template-columns: 1fr; gap: 0; }

  .step {
    padding-left: var(--space-6);
    padding-bottom: var(--space-6);
    border-left: 2px dashed var(--border-strong);
  }
  .step:last-child { border-left-color: transparent; padding-bottom: 0; }

  /* Pull the badge onto the vertical rule so it reads as a node. */
  .step__badge { margin-left: calc(-1 * var(--space-6) - 20px); }

  .split { grid-template-columns: 1fr; gap: var(--space-8); }
}

@media (max-width: 760px) {
  :root { --space-12: 4.5rem; --space-16: 5.5rem; }

  /* Nav links collapse; the CTA button stays reachable. */
  .nav { display: none; }

  .monitors { grid-template-columns: 1fr; }

  .hero { padding-block: var(--space-12) var(--space-10); }

  .hero__actions .btn { flex: 1 1 auto; }

  .console__body { padding: var(--space-4); }

  .cta__box { padding: var(--space-8) var(--space-5); }

  /* Table scrolls inside its panel instead of widening the page. */
  .panel { overflow-x: auto; }
  .ledger { min-width: 420px; }
}

@media (max-width: 480px) {
  .hero__facts { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .slider__ticks span:nth-child(2),
  .slider__ticks span:nth-child(3) { display: none; }
  .console__clock { display: none; }
}


/* ============================================================
   15. PRINT
   People do print product pages to circulate internally. Strip the
   chrome and let the content flow.
   ============================================================ */

@media print {
  .header, .cta, .hero__wash, .waveform, .slider__range { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .card, .doc, .panel, .console { box-shadow: none; break-inside: avoid; }
  body { color: #000; }
}
