/* ==========================================================================
   Project Cassandra — Editorial Design System
   Warm ivory canvas, dual-voice sans + serif typography, 16px spec-row cards,
   scroll-collapsing header, and dark slate accordion footer.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin.woff2") format("woff2");
}

:root {
  /* Warm Neutral Gray Scale */
  --gray-000: #ffffff;
  --gray-050: #faf9f5;
  --gray-100: #f5f4ed;
  --gray-150: #f0eee6;
  --gray-200: #e8e6dc;
  --gray-250: #dedcd1;
  --gray-300: #d1cfc5;
  --gray-350: #c2c0b6;
  --gray-400: #b0aea5;
  --gray-450: #9c9a92;
  --gray-500: #87867f;
  --gray-550: #73726c;
  --gray-600: #5e5d59;
  --gray-650: #4d4c48;
  --gray-700: #3d3d3a;
  --gray-750: #30302e;
  --gray-800: #262624;
  --gray-850: #1f1e1d;
  --gray-900: #1a1918;
  --gray-950: #141413;

  /* Editorial & Diagnostic Accents */
  --clay: #d97757;
  --clay-deep: #c6613f;
  --clay-soft: #f5e6de;
  --oat: #e3dacc;
  --olive: #6c8252;
  --olive-deep: #4e6238;
  --olive-soft: #e7ede0;
  --cactus: #bcd1ca;
  --twin: #2f6b5f;
  --twin-soft: #e3efec;
  --sky: #6a9bcc;
  --heather: #cbcadb;
  --focus-ring: #154c92;
  --focus-ring-dark: #90c3f6;

  /* Semantic Light Surface Tokens (Ivory Theme) */
  --bg: var(--gray-050);
  --surface: var(--gray-100);
  --surface-raised: var(--gray-000);
  --surface-med: var(--gray-150);
  --surface-strong: var(--gray-200);
  --border: var(--gray-250);
  --border-strong: var(--gray-350);
  --border-subtle: var(--gray-150);

  --ink: var(--gray-950);
  --ink-2: var(--gray-750);
  --ink-3: var(--gray-600);
  --ink-4: var(--gray-500);
  --muted: var(--gray-600);

  /* Semantic Status (Harmonized with Warm Ivory Palette) */
  --danger: var(--clay-deep);
  --danger-bg: var(--clay-soft);
  --danger-border: #e5b7a5;
  --ok: var(--olive-deep);
  --ok-bg: var(--olive-soft);
  --ok-border: #c5d4b6;
  --accent: var(--twin);
  --accent-soft: var(--twin-soft);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Charter", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;

  /* Radii & Layout */
  --radius-media: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;

  --header-h: 84px;
  --grid-max: 1360px;
  --grid-pad: clamp(20px, 4.8vw, 72px);
}

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

[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.54;
  font-feature-settings: "pnum" on, "lnum" on, "liga" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Containers */
.wrap {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding-inline: var(--grid-pad);
}

.wrap-narrow {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--grid-pad);
}

/* ==========================================================================
   1. STICKY 3-COLUMN HEADER WITH SCROLL-COLLAPSE & DARK-FOOTER FLIP
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.22s ease-out, color 0.22s ease-out;
}

.header-inner {
  max-width: 1520px;
  height: 100%;
  margin: 0 auto;
  padding-inline: clamp(18px, 3.6vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

/* Left Nav Pills + Scrolled Monogram */
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease-out, transform 0.22s ease-out;
}

.header-mono {
  display: none;
  align-items: center;
  gap: 10px;
  color: currentColor;
  flex-shrink: 0;
}

.header-mono svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Center Wordmark */
.header-center {
  display: flex;
  justify-content: center;
  transition: opacity 0.2s ease-out, transform 0.22s ease-out;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  white-space: nowrap;
}

.wordmark svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Right Action Pills & Square-Rounded Icon Buttons */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Scroll-Collapsed State (Desktop: left monogram + right CTA & icons) */
.site-header.is-scrolled .header-nav-pills {
  display: none;
}

.site-header.is-scrolled .header-mono {
  display: inline-flex;
}

.site-header.is-scrolled .header-center {
  opacity: 0;
  pointer-events: none;
}

/* Dark-Footer Auto-Flip State (matches anthropic.com over #141413 footer) */
.site-header.on-dark {
  background: var(--gray-950);
  color: var(--gray-050);
}

.site-header.on-dark a:focus-visible,
.site-header.on-dark button:focus-visible {
  outline-color: var(--focus-ring-dark);
}

.site-header.on-dark .nav-pill,
.site-header.on-dark .icon-btn {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--gray-050);
}

.site-header.on-dark .nav-pill:hover,
.site-header.on-dark .icon-btn:hover {
  background: var(--gray-750);
  border-color: var(--gray-650);
  box-shadow: 0 0 0 1px var(--gray-700);
  color: var(--gray-050);
}

.site-header.on-dark .nav-pill-primary {
  background: var(--gray-050);
  border-color: var(--gray-050);
  color: var(--gray-950);
}

/* ==========================================================================
   2. BUTTONS & PILLS (EXACT NO-BOUNCE BORDER-EXPAND SIGNATURE)
   ========================================================================== */
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-750);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 450;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out, box-shadow 0.16s ease-out, color 0.16s ease-out;
}

.nav-pill:hover {
  background: var(--gray-200);
  border-color: var(--gray-200);
  box-shadow: 0 0 0 1px var(--gray-200);
  color: var(--ink);
}

.nav-pill[aria-current="page"] {
  background: var(--gray-200);
  border-color: var(--gray-250);
  color: var(--ink);
  font-weight: 550;
}

.nav-pill-primary {
  background: var(--gray-950);
  border-color: var(--gray-950);
  color: var(--gray-050);
  font-weight: 500;
}

.nav-pill-primary:hover {
  background: var(--gray-750);
  border-color: var(--gray-750);
  box-shadow: 0 0 0 1px var(--gray-750);
  color: var(--gray-050);
}

.nav-pill svg,
.icon-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-750);
  cursor: pointer;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out, box-shadow 0.16s ease-out, color 0.16s ease-out;
}

.icon-btn:hover {
  background: var(--gray-200);
  border-color: var(--gray-200);
  box-shadow: 0 0 0 1px var(--gray-200);
  color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

/* Standard Editorial Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-250);
  background: var(--gray-200);
  color: var(--gray-750);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out, box-shadow 0.16s ease-out, color 0.16s ease-out;
}

.btn:hover {
  background: var(--gray-250);
  border-color: var(--gray-250);
  box-shadow: 0 0 0 1px var(--gray-250);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  background: var(--gray-950);
  border-color: var(--gray-950);
  color: var(--gray-050);
}

.btn-primary:hover {
  background: var(--gray-750);
  border-color: var(--gray-750);
  box-shadow: 0 0 0 1px var(--gray-750);
  color: var(--gray-050);
}

.btn-clay {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color: var(--gray-050);
}

.btn-clay:hover {
  background: #b15333;
  border-color: #b15333;
  box-shadow: 0 0 0 1px #b15333;
  color: var(--gray-050);
}

.btn-ghost {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-750);
}

.btn-ghost:hover {
  background: var(--gray-200);
  border-color: var(--gray-200);
  box-shadow: 0 0 0 1px var(--gray-200);
  color: var(--ink);
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.btn-lg {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-lg);
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gray-250);
  background: var(--gray-200);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.1;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger);
}

.badge-ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}

.badge-twin {
  background: var(--twin-soft);
  border-color: #b7d5ce;
  color: var(--twin);
}

/* ==========================================================================
   3. QUICK DROPDOWN & SLIDE MENU DRAWER
   ========================================================================== */
.menu-wrap {
  position: relative;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--gray-250);
  background: var(--gray-050);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(20, 20, 19, 0.12);
  z-index: 80;
}

.site-header.on-dark .header-dropdown {
  background: var(--gray-850);
  border-color: var(--gray-700);
  color: var(--gray-050);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background-color 0.14s ease-out;
}

.dropdown-item:hover {
  background: var(--gray-100);
}

.site-header.on-dark .dropdown-item:hover {
  background: var(--gray-800);
}

.dropdown-item strong {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item span {
  font-size: 12px;
  color: var(--ink-3);
}

.site-header.on-dark .dropdown-item span {
  color: var(--gray-400);
}

/* Full Navigation Drawer Dialog */
dialog.nav-drawer {
  width: min(380px, 100vw);
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  border-left: 1px solid var(--gray-250);
  background: var(--gray-050);
  color: var(--ink);
  box-shadow: -18px 0 48px rgba(20, 20, 19, 0.14);
}

dialog.nav-drawer::backdrop {
  background: rgba(20, 20, 19, 0.36);
}

.nav-drawer-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px;
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-250);
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.16s ease-out;
}

.nav-drawer-link:hover {
  color: var(--ink-4);
}

.nav-drawer-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   4. HOMEPAGE EDITORIAL HERO & SHOWCASE STAGE
   ========================================================================== */
.hero-editorial {
  padding-top: clamp(36px, 5vw, 68px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero-statement {
  margin: 0;
  max-width: 1180px;
  font-size: clamp(26px, 3.05vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 400;
}

.hero-lead-sans {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-body-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.004em;
}

/* ==========================================================================
   CUSTOMER-FRIENDLY FAULT BANNER + EDITORIAL SPLINE STAGE (FONT 01)
   ========================================================================== */
.hero-fault-banner {
  margin-top: clamp(24px, 3vw, 36px);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 13px 18px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
}

.hero-fault-banner-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.hero-fault-tag {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(20, 20, 19, 0.07);
  color: var(--gray-600);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.hero-fault-banner.is-alert .hero-fault-tag {
  background: rgba(198, 46, 36, 0.16);
  color: #b8291f;
}

.hero-fault-title {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--gray-950);
  letter-spacing: -0.005em;
}

.hero-fault-sub {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 14.5px;
  color: var(--gray-600);
}

.hero-fault-link {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-950);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gray-200);
  border: 1px solid var(--gray-300);
  transition: background-color 0.15s ease;
}

.hero-fault-link:hover {
  background: var(--gray-300);
}

.hero-spline-card {
  margin-top: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  overflow: hidden;
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
}

.hero-spline-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(20, 20, 19, 0.08);
}

.hero-spline-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* FONT 01: Editorial Literary Serif (Newsreader / Charter) */
.hero-spline-step-btn {
  appearance: none;
  border: 1px solid rgba(20, 20, 19, 0.15);
  background: rgba(250, 249, 245, 0.72);
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.1;
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: background-color 0.08s ease, color 0.08s ease, border-color 0.08s ease;
}

.hero-spline-step-btn:hover {
  background: var(--gray-200);
  color: var(--gray-950);
}

.hero-spline-step-btn .s-num {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.72;
}

.hero-spline-step-btn.is-active {
  background: var(--gray-950);
  color: var(--gray-050);
  border-color: var(--gray-950);
}

/* Strictly Locked Height so Page Never Moves When Chart Animates */
.hero-spline-body {
  display: grid;
  grid-template-columns: 1fr 312px;
  height: 455px;
  overflow: hidden;
}

.hero-spline-canvas-wrap {
  position: relative;
  width: 100%;
  height: 455px;
  cursor: crosshair;
  user-select: none;
  overflow: hidden;
}

.hero-spline-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-spline-rail {
  border-left: 1px solid rgba(20, 20, 19, 0.08);
  padding: 20px;
  height: 455px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(250, 249, 245, 0.45);
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
}

.hero-rail-top {
  display: flex;
  flex-direction: column;
}

.hero-rail-kicker {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c6613f;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
}

.hero-rail-headline {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 21.5px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--gray-950);
  margin: 0 0 8px;
  height: 54px;
  overflow: hidden;
}

.hero-rail-copy {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 14.5px;
  line-height: 1.42;
  color: var(--gray-700);
  margin: 0 0 12px;
  height: 64px;
  overflow: hidden;
}

/* Fixed-Height Alarm Callout (Uses opacity only — zero layout shift) */
.hero-alarm-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  height: 68px;
  border-radius: 10px;
  background: rgba(47, 107, 95, 0.09);
  border: 1px solid rgba(47, 107, 95, 0.25);
  margin-bottom: 10px;
  opacity: 0.32;
  transition: opacity 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hero-alarm-card.is-visible {
  opacity: 1;
  background: rgba(198, 97, 63, 0.10);
  border-color: rgba(198, 97, 63, 0.34);
}

.hero-alarm-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c6613f;
  margin-top: 5px;
  flex-shrink: 0;
}

.hero-alarm-title {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 14px;
  font-weight: 600;
  color: #c6613f;
  line-height: 1.2;
  margin-bottom: 2px;
}

.hero-alarm-text {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 13.5px;
  color: var(--gray-950);
  line-height: 1.3;
}

/* Fixed-Height Avoidable Loss Callout (Revealed at end when full steps are done) */
.hero-loss-card {
  padding: 9px 13px;
  height: 58px;
  border-radius: 10px;
  background: rgba(20, 20, 19, 0.05);
  border: 1px solid rgba(20, 20, 19, 0.14);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.hero-loss-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: rgba(198, 97, 63, 0.12);
  border-color: rgba(198, 97, 63, 0.35);
}

.hero-loss-label {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 12.5px;
  color: var(--gray-700);
  line-height: 1.2;
  margin-bottom: 3px;
  white-space: nowrap;
}

.hero-loss-value {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 17.5px;
  font-weight: 600;
  color: #c6613f;
  line-height: 1.15;
}

/* Un-highlighted neutral standby state before alarm starts */
.hero-fault-box {
  padding: 12px 13px;
  height: 86px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(20, 20, 19, 0.04);
  border: 1px solid rgba(20, 20, 19, 0.13);
  opacity: 0.42;
  transition: opacity 0.26s ease, background-color 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
}

.hero-fault-box-title {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 3px;
  transition: color 0.26s ease;
}

.hero-fault-box-main {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 2px;
  transition: color 0.26s ease;
}

.hero-fault-box-sub {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.3;
  transition: color 0.26s ease;
}

/* Red / Highlighted state activated ONLY when the alarm starts (Oct 19) */
.hero-fault-box.is-alert {
  opacity: 1;
  background: rgba(198, 46, 36, 0.13);
  border-color: rgba(198, 46, 36, 0.58);
  box-shadow: 0 0 0 2px rgba(198, 46, 36, 0.12);
}

.hero-fault-box.is-alert .hero-fault-box-title {
  color: #b8291f;
}

.hero-fault-box.is-alert .hero-fault-box-main {
  color: #8f1d14;
}

.hero-fault-box.is-alert .hero-fault-box-sub {
  color: #5a221d;
}

@media (max-width: 980px) {
  .hero-spline-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-spline-rail {
    height: 435px;
    border-left: none;
    border-top: 1px solid rgba(20, 20, 19, 0.08);
  }
}

@media (max-width: 640px) {
  .hero-spline-canvas-wrap {
    height: 350px;
  }
  .hero-spline-step-btn {
    font-size: 14px;
    padding: 7px 12px;
  }
}

/* ==========================================================================
   UNIT SAVINGS ESTIMATOR (FONT 01 · EDITABLE INPUTS · FINANCIAL WATERFALL)
   ========================================================================== */
.calc-font01-section [hidden] {
  display: none !important;
}

.calc-font01-section {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
}

.calc-font01-section h2,
.calc-font01-section h3,
.calc-font01-section h4,
.calc-font01-section p,
.calc-font01-section label,
.calc-font01-section input,
.calc-font01-section button,
.calc-font01-section a,
.calc-font01-section span,
.calc-font01-section strong,
.calc-font01-section li {
  font-family: "Newsreader", "Charter", "Iowan Old Style", "Georgia", serif;
}

.calc-font01-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.calc-font01-lead {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--gray-700);
}

.wf-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  padding: 28px 30px;
}

.wf-q-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.wf-q-box {
  background: var(--gray-050);
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.wf-q-num {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c6613f;
  margin-bottom: 4px;
}

.wf-q-label {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gray-950);
}

/* Editable Number Input Box with +/- Nudge Buttons */
.wf-input-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 5px 6px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.wf-input-shell:focus-within {
  border-color: #2f6b5f;
  box-shadow: 0 0 0 3px rgba(47, 107, 95, 0.14);
  background: #ffffff;
}

.wf-step-btn {
  appearance: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--gray-050);
  color: var(--gray-950);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.12s ease;
}

.wf-step-btn:hover {
  background: var(--gray-200);
}

.wf-input-center {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.wf-input-prefix,
.wf-input-unit {
  font-size: 15.5px;
  color: var(--gray-600);
  white-space: nowrap;
}

.wf-input-center input[type="number"] {
  width: 74px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 21px;
  font-weight: 600;
  color: #2f6b5f;
  outline: none;
  -moz-appearance: textfield;
}

.wf-input-center input[type="number"]::-webkit-outer-spin-button,
.wf-input-center input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wf-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 22px;
}

.wf-estimate-btn {
  appearance: none;
  border: 1px solid var(--gray-950);
  background: var(--gray-950);
  color: var(--gray-050);
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.wf-estimate-btn:hover {
  background: #2f6b5f;
  border-color: #2f6b5f;
}

.wf-estimate-btn:active {
  transform: scale(0.99);
}

.wf-action-note {
  font-size: 14px;
  color: var(--gray-600);
}

/* Financial Waterfall Stage */
.wf-stage {
  background: var(--gray-050);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 24px 26px;
}

.wf-standby {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 16px;
}

.wf-standby h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--gray-950);
}

.wf-standby p {
  font-size: 15.5px;
  color: var(--gray-600);
  max-width: 56ch;
}

.wf-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(20, 20, 19, 0.08);
  margin-bottom: 18px;
}

.wf-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c6613f;
}

.wf-big-num {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--gray-950);
  margin-top: 3px;
}

.wf-sub-num {
  font-size: 15px;
  color: var(--gray-700);
  margin-top: 4px;
}

.wf-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 13.5px;
  color: var(--gray-700);
}

.wf-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.wf-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.wf-canvas-wrap {
  position: relative;
  width: 100%;
  height: 315px;
}

.wf-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Clear Per-Bar & Per-Number Explanation Grid */
.wf-explain-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 20, 19, 0.08);
}

.wf-explain-heading {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-950);
  margin-bottom: 12px;
}

.wf-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wf-explain-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 14px 16px;
}

.wf-explain-card.is-clay { border-left-color: #c6613f; }
.wf-explain-card.is-sage { border-left-color: #8a9e91; }
.wf-explain-card.is-teal { border-left-color: #2f6b5f; }
.wf-explain-card.is-slate { border-left-color: #141413; }

.wf-ex-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.wf-ex-badge {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-700);
}

.wf-explain-card.is-clay .wf-ex-val { color: #b8291f; }
.wf-explain-card.is-sage .wf-ex-val { color: #54665b; }
.wf-explain-card.is-teal .wf-ex-val { color: #2f6b5f; }
.wf-explain-card.is-slate .wf-ex-val { color: var(--gray-950); }

.wf-ex-val {
  font-size: 16.5px;
  font-weight: 600;
  white-space: nowrap;
}

.wf-ex-body {
  font-size: 14.5px;
  line-height: 1.48;
  color: var(--gray-700);
  margin: 0;
}

/* Technical Explanation Link & Disclosure Panel */
.calc-why-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 20, 19, 0.09);
}

.calc-why-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: #2f6b5f;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-why-link:hover {
  color: #c6613f;
}

.calc-why-panel {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
}

.calc-why-panel h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-950);
  margin-bottom: 10px;
}

.calc-why-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.calc-why-panel li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--gray-700);
}

.calc-why-panel li strong {
  color: var(--gray-950);
}

.calc-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 960px) {
  .wf-q-grid {
    grid-template-columns: 1fr;
  }
  .wf-explain-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wf-card {
    padding: 20px 18px;
  }
  .wf-stage {
    padding: 18px 16px;
  }
  .wf-canvas-wrap {
    height: 270px;
  }
}

/* ==========================================================================
   FULL-WIDTH INTERACTIVE 3D THERMODYNAMIC HERO STAGE (LEGACY)
   ========================================================================== */
.hero3d-stage {
  margin-top: clamp(28px, 3.6vw, 44px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2c2c29;
  background: var(--gray-950);
  color: var(--gray-050);
}

.hero3d-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 18px;
  background: #1a1918;
  border-bottom: 1px solid #2b2b28;
}

.hero3d-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.hero3d-step-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid #2f2f2c;
  background: #22211f;
  color: var(--gray-400);
  border-radius: 8px;
  padding: 7px 12px 9px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease-out, color 0.16s ease-out, border-color 0.16s ease-out;
}

.hero3d-step-btn:hover {
  background: #2c2b29;
  color: var(--gray-050);
}

.hero3d-step-btn.is-active {
  background: #30302e;
  border-color: #4d4c48;
  color: var(--gray-050);
  font-weight: 600;
}

.hero3d-step-num {
  color: var(--gray-500);
  font-variant-numeric: tabular-nums;
  margin-right: 5px;
}

.hero3d-step-btn.is-active .hero3d-step-num {
  color: var(--clay);
}

.hero3d-step-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(250, 249, 245, 0.08);
}

.hero3d-step-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay);
  transform-origin: left center;
  transform: scaleX(0);
}

.hero3d-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero3d-switch {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: #262624;
  border: 1px solid #3d3d3a;
}

.hero3d-switch button {
  border: 0;
  background: transparent;
  color: var(--gray-400);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 550;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.14s ease-out, color 0.14s ease-out;
}

.hero3d-switch button.is-active {
  background: var(--gray-050);
  color: var(--gray-950);
  font-weight: 650;
}

.hero3d-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid #3d3d3a;
  background: #262624;
  color: var(--gray-050);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.hero3d-tool-btn:hover {
  background: #30302e;
  border-color: #5e5d59;
}

.hero3d-tool-btn svg {
  width: 12px;
  height: 12px;
  display: block;
}

.hero3d-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0 4px;
}

.hero3d-check input {
  accent-color: var(--clay);
}

/* Main 3D Viewport */
.hero3d-viewport {
  position: relative;
  width: 100%;
  height: clamp(360px, 42vw, 490px);
  background: var(--gray-950);
  overflow: hidden;
}

.hero3d-viewport canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

.hero3d-hud-top {
  position: absolute;
  top: 14px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.hero3d-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 19, 0.78);
  border: 1px solid rgba(222, 220, 209, 0.14);
  font-size: 11.5px;
  color: var(--gray-300);
  backdrop-filter: blur(6px);
}

.hero3d-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero3d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.hero3d-hint {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 19, 0.78);
  border: 1px solid rgba(222, 220, 209, 0.14);
  font-size: 11.5px;
  color: var(--gray-400);
}

.hero3d-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  background: var(--gray-050);
  color: var(--gray-950);
  border: 1px solid var(--gray-300);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.12s ease;
  max-width: 260px;
}

/* Bottom Editorial Readout Strip */
.hero3d-footer {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px 22px;
  background: #181817;
  border-top: 1px solid #2b2b28;
}

.hero3d-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.hero3d-title {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 400;
  line-height: 1.24;
  color: var(--gray-050);
}

.hero3d-desc {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-400);
  max-width: 68ch;
}

.hero3d-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero3d-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #3d3d3a;
  background: #242321;
  color: var(--gray-300);
  font-size: 11.5px;
  font-weight: 550;
}

.hero3d-pill.ok {
  border-color: rgba(120, 140, 93, 0.55);
  background: rgba(90, 114, 67, 0.2);
  color: #b7d69b;
}

.hero3d-right-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid #2b2b28;
}

.hero3d-readout-main {
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--gray-050);
}

.hero3d-readout-sub {
  font-size: 12.5px;
  color: #e99a7e;
  font-weight: 550;
}

.hero3d-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: var(--gray-050);
  color: var(--gray-950);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.16s ease-out;
}

.hero3d-cta:hover {
  background: var(--gray-200);
}

@media (max-width: 960px) {
  .hero3d-footer {
    grid-template-columns: 1fr;
  }
  .hero3d-right-box {
    align-items: flex-start;
    text-align: left;
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 1px solid #2b2b28;
  }
}

@media (max-width: 640px) {
  .hero3d-viewport {
    height: 340px;
  }
  .hero3d-hint {
    display: none;
  }
}

/* Legacy Hero Featured Visual Frame kept harmlessly below */
.hero-stage {
  margin-top: clamp(28px, 3.6vw, 44px);
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid var(--gray-250);
  background: linear-gradient(155deg, #ece7dc 0%, #e4ddd0 48%, #ded6c6 100%);
  position: relative;
}

.hero-stage-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  min-height: clamp(320px, 38vw, 460px);
}

.hero-stage-visual {
  position: relative;
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(to right, rgba(20, 20, 19, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 19, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-stage-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-caption {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}

.stage-curve-wrap {
  position: relative;
  margin: 14px 0 12px;
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 290px;
}

.demo-viewport {
  position: relative;
  width: 100%;
  min-height: 290px;
  display: flex;
  align-items: stretch;
}

.demo-viewport canvas {
  width: 100%;
  height: 290px;
  display: block;
}

/* Step 03 EER / COP Switcher */
.metric-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 19, 0.08);
  border: 1px solid rgba(20, 20, 19, 0.1);
}

.metric-switch button {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.14s ease-out, color 0.14s ease-out;
}

.metric-switch button.is-active {
  background: var(--gray-950);
  color: var(--gray-050);
}

/* Step 04 Clean Fault Diagnosis Stage */
.demo-diagnosis {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.diag-hero-card {
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--gray-050);
  border: 1px solid rgba(20, 20, 19, 0.14);
}

.diag-hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.diag-hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.24;
}

.diag-hyp-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.diag-hyp-btn {
  width: 100%;
  border: 1px solid transparent;
  background: var(--surface);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: border-color 0.14s ease-out, background-color 0.14s ease-out;
}

.diag-hyp-btn:hover,
.diag-hyp-btn.is-selected {
  background: var(--gray-000);
  border-color: rgba(20, 20, 19, 0.22);
}

.diag-hyp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.diag-bar-track {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}

.diag-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.diag-cleared-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.diag-cleared-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok);
  font-weight: 600;
}

.diag-next-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gray-950);
  color: var(--gray-050);
  font-size: 12px;
  line-height: 1.4;
}

.diag-next-bar strong {
  color: #e99a7e;
  font-weight: 650;
}

/* Bottom 4-Step Playback Bar */
.demo-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 20, 19, 0.11);
}

.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.demo-step-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 19, 0.1);
  background: rgba(250, 249, 245, 0.65);
  color: var(--ink-3);
  border-radius: 8px;
  padding: 7px 9px 9px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

.demo-step-btn:hover {
  background: rgba(250, 249, 245, 0.96);
  color: var(--ink);
}

.demo-step-btn.is-active {
  background: var(--gray-050);
  border-color: rgba(20, 20, 19, 0.22);
  color: var(--ink);
  font-weight: 650;
}

.demo-step-num {
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

.demo-step-btn.is-active .demo-step-num {
  color: var(--clay-deep);
}

.demo-step-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  background: rgba(20, 20, 19, 0.08);
}

.demo-step-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--clay-deep);
  transform-origin: left center;
  transform: scaleX(0);
}

.demo-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(20, 20, 19, 0.14);
  background: var(--gray-050);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.demo-play-btn:hover {
  background: var(--gray-000);
  box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.16);
}

.demo-play-btn svg {
  width: 13px;
  height: 13px;
  display: block;
}

.demo-footnote {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.hero-stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 20, 19, 0.1);
  font-size: 12.5px;
  color: var(--ink-2);
}

.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

/* Right Dark Editorial Spec Column Inside Hero Stage */
.hero-stage-aside {
  background: var(--gray-950);
  color: var(--gray-050);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.stage-aside-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}

.stage-aside-title {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.26;
  font-weight: 400;
  color: var(--gray-050);
}

.stage-aside-rows {
  display: flex;
  flex-direction: column;
}

.stage-aside-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--gray-700);
  font-size: 13px;
}

.stage-aside-row span {
  color: var(--gray-400);
}

.stage-aside-row strong {
  color: var(--gray-050);
  font-weight: 600;
  text-align: right;
}

.stage-aside-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  color: var(--gray-050);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.stage-aside-link:hover {
  background: var(--gray-750);
  box-shadow: 0 0 0 1px var(--gray-700);
}

/* ==========================================================================
   5. ANTHROPIC SPEC-ROW MODEL CARDS (#f5f4ed, 16px radius, 0.2em underline)
   ========================================================================== */
.cards-section {
  padding: 20px 0 clamp(48px, 6vw, 80px);
}

.section-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.section-bar h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-bar p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: 56ch;
}

.ant-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ant-cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ant-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ant-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
}

.tiny-dots-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  border: 1px solid var(--gray-250);
  color: var(--ink-2);
  font-size: 11px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.ant-card-title {
  margin: 16px 0 0;
  font-size: clamp(19px, 1.65vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s ease-out;
}

.ant-card-title a {
  color: inherit;
}

.ant-card-desc {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--ink-2);
  transition: color 0.2s ease-out;
}

/* Signature Card Hover Dim (dims title & copy to #87867f instead of elevation) */
.ant-card:has(.ant-card-title a:hover) .ant-card-title,
.ant-card:has(.ant-card-title a:hover) .ant-card-desc {
  color: var(--ink-4);
}

.ant-spec-rows {
  margin-top: auto;
  padding-top: 26px;
}

.ant-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.4;
}

.ant-spec-label {
  color: var(--ink);
  font-weight: 450;
}

.ant-spec-val {
  color: var(--ink-3);
  text-align: right;
}

.ant-row-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-weight: 450;
  white-space: nowrap;
}

.ant-row-link span {
  text-underline-offset: 0.2em;
}

.ant-row-link:hover span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.ant-card-cta {
  margin-top: 10px;
}

/* Hover-only 0.2em underline utility for editorial links */
.editorial-link {
  text-underline-offset: 0.2em;
}

.editorial-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ==========================================================================
   6. LOWER 4-CARD EDITORIAL PILLAR CAROUSEL (SPLIT-TONE ARTWORK + 01 / 04)
   ========================================================================== */
.editorial-band {
  padding: 0 0 clamp(64px, 7vw, 96px);
}

.editorial-divider {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.editorial-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}

.editorial-card.is-dimmed {
  opacity: 0.72;
}

.editorial-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-media);
  overflow: hidden;
  border: 1px solid rgba(20, 20, 19, 0.09);
  background: var(--oat);
}

.editorial-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.editorial-card:hover .editorial-art img {
  transform: scale(1.035);
}

.art-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: rgba(250, 249, 245, 0.85);
  box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
}

.editorial-art.is-inspecting .art-scanline {
  opacity: 1;
}

.art-hud-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 19, 0.84);
  color: var(--gray-050);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.2;
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: background-color 0.16s ease-out, transform 0.18s ease-out;
}

.editorial-art.is-inspecting .art-hud-pill {
  background: var(--gray-950);
  transform: translateY(-2px);
}

.editorial-card h3 {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.2s ease-out;
}

.editorial-card p {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  transition: color 0.2s ease-out;
}

.editorial-card:hover h3,
.editorial-card:hover p {
  color: var(--ink-4);
}

.carousel-controls {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.carousel-counter {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  letter-spacing: 0.03em;
  min-width: 52px;
  text-align: center;
}

/* ==========================================================================
   7. SUB-PAGES (METHOD, PRICING, CONTACT)
   ========================================================================== */
.page-hero {
  padding: clamp(36px, 5vw, 68px) 0 clamp(28px, 3.5vw, 44px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.page-hero h1 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
}

.page-hero .serif-lead {
  margin: 16px 0 0;
  max-width: 58ch;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.42;
  color: var(--ink-2);
}

.section-block {
  padding: clamp(32px, 4.5vw, 56px) 0;
}

.section-block.bordered {
  border-top: 1px solid var(--border);
}

/* Method Interactive Roadmap Tabs */
.roadmap-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

/* Forms (Contact Page) */
.form-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-2);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background: var(--gray-050);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 1px var(--ink);
}

.draft-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--gray-050);
  border: 1px solid var(--border);
}

.draft-box pre {
  margin: 10px 0 14px;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ==========================================================================
   8. HC-GATE WORKSPACE (WARM IVORY EDITORIAL DIAGNOSTIC CONSOLE)
   ========================================================================== */
.hc-main {
  max-width: var(--grid-max);
  margin: 0 auto;
  padding: 12px var(--grid-pad) 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.hc-asset-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hc-asset-name {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hc-asset-meta {
  font-size: 13px;
  color: var(--ink-3);
}

.hc-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.inline-field select,
.inline-field input {
  height: 32px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300);
  background: var(--gray-050);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 550;
}

.inline-field input[type="number"] {
  width: 82px;
}

/* 4-Column Stats Rail (Warm Ivory Editorial Spec Strip) */
.stats-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.stat-cell {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-val {
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.stat-lbl {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.stat-sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* 2-Column Diagnosis & 15-Minute Technician Plan */
.verdict-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.verdict-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pane-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fault-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.fault-mech {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.54;
  color: var(--ink-2);
}

.confidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cleared-strip {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.cleared-strip strong {
  color: var(--ok);
  font-weight: 600;
}

.action-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.action-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.action-item:first-child {
  border-top: none;
  padding-top: 2px;
}

.action-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-950);
  color: var(--gray-050);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 1px;
}

.action-item.skip .action-num {
  background: var(--gray-200);
  color: var(--ink-3);
}

.action-item b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.action-item p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-3);
}

.pane-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Interactive Chart Card (3 Clean Views) */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px 26px;
}

.chart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.chart-header h2 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.chart-header p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--gray-200);
  border: 1px solid var(--border);
}

.segmented [role="tab"] {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 550;
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.16s ease-out, background-color 0.16s ease-out;
}

.segmented [role="tab"]:hover {
  color: var(--ink);
}

.segmented [role="tab"][aria-selected="true"] {
  background: var(--gray-050);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.08);
}

.segmented [role="tab"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--clay-deep);
  transform: scaleX(0);
  transition: transform 0.2s ease-out;
}

.segmented [role="tab"][aria-selected="true"]::after {
  transform: scaleX(1);
}

.panels-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.panels-stack > [role="tabpanel"] {
  grid-area: 1 / 1;
  min-width: 0;
}

.panels-stack > [role="tabpanel"][hidden="until-found"] {
  content-visibility: hidden;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.chart-inner {
  padding-top: 18px;
}

.chart-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legend-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-sw {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.canvas-box {
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  background: var(--gray-050);
  border: 1px solid var(--border-subtle);
  padding: 8px;
}

.canvas-box canvas {
  display: block;
  width: 100%;
}

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  background: var(--gray-950);
  color: var(--gray-050);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 10px 26px rgba(20, 20, 19, 0.25);
  transition: opacity 0.12s ease;
  max-width: 248px;
}

/* ROI Split & Container-Queried Semantic Fleet Table */
.roi-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

.table-wrapper {
  container-type: inline-size;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--gray-050);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.data-table caption {
  text-align: left;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.data-table thead th {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tr.active-row {
  background: var(--clay-soft);
}

.data-table tr.active-row th,
.data-table tr.active-row td {
  color: var(--danger);
  font-weight: 700;
}

@container (max-width: 390px) {
  .data-table th,
  .data-table td {
    padding: 8px 9px;
    font-size: 12px;
  }
}

/* Engineering Proof Accordion */
.eng-drawer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.eng-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  transition: background-color 0.16s ease-out;
}

.eng-drawer summary::-webkit-details-marker {
  display: none;
}

.eng-drawer summary:hover {
  background: var(--gray-150);
}

.eng-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

.eng-body {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eng-card {
  background: var(--gray-050);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.eng-card h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 650;
}

.eng-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--ink-3);
}

.pid-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-950);
  padding: 0;
  border: 1px solid var(--gray-700);
}

.pid-wrap .canvas-box {
  background: var(--gray-950);
  border: none;
  padding: 0;
}

/* ==========================================================================
   9. MODALS & NON-MODAL ASK CASSANDRA DRAWER
   ========================================================================== */
dialog:modal::backdrop {
  background: rgba(20, 20, 19, 0.45);
  backdrop-filter: blur(3px);
}

dialog.upload-modal {
  width: min(600px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--gray-050);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 20, 19, 0.2);
}

.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dropzone {
  border: 1.5px dashed var(--gray-350);
  border-radius: 12px;
  padding: 28px 18px;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--ink);
  background: var(--gray-150);
}

.dropzone strong {
  display: block;
  font-size: 14px;
}

.dropzone p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-2);
}

.mapper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mapper-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.mapper-grid input,
.mapper-grid select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--gray-050);
  color: var(--ink);
  font-size: 13px;
}

.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--surface);
}

/* Non-Modal Docked Ask Cassandra Drawer */
dialog.chat-drawer {
  position: fixed;
  inset: auto 20px 20px auto;
  margin: 0;
  padding: 0;
  width: min(420px, calc(100vw - 24px));
  height: min(650px, calc(100dvh - 104px));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: var(--gray-050);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(20, 20, 19, 0.22);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

dialog.chat-drawer::backdrop {
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

dialog.chat-drawer:popover-open,
dialog.chat-drawer.\:popover-open {
  display: flex;
}

.chat-head {
  padding: 14px 16px;
  background: var(--gray-950);
  color: var(--gray-050);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  display: grid;
  place-items: center;
}

.chat-avatar svg {
  width: 20px;
  height: 20px;
}

.chat-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.chat-ctx {
  font-size: 11.5px;
  color: var(--gray-400);
}

.chat-close {
  border: 1px solid var(--gray-700);
  background: var(--gray-800);
  color: var(--gray-050);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.chat-close:hover {
  background: var(--gray-750);
}

.chat-head button:focus-visible {
  outline-color: var(--focus-ring-dark);
}

.chat-prompts {
  padding: 10px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.prompt-chip {
  border: 1px solid var(--border);
  background: var(--gray-050);
  color: var(--ink-2);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.14s ease-out, color 0.14s ease-out;
}

.prompt-chip:hover {
  background: var(--gray-200);
  color: var(--ink);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--gray-050);
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 93%;
}

.msg.user {
  align-self: flex-end;
}

.msg.bot {
  align-self: flex-start;
}

.msg-bubble {
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}

.msg.user .msg-bubble {
  background: var(--gray-950);
  color: var(--gray-050);
  border-bottom-right-radius: 4px;
}

.msg.bot .msg-bubble {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.bot-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}

.bot-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.bot-kpi {
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--gray-050);
  border: 1px solid var(--border);
}

.bot-kpi span {
  display: block;
  font-size: 10.5px;
  color: var(--ink-3);
}

.bot-kpi b {
  font-size: 13px;
  font-weight: 700;
}

.bot-kpi.coral b { color: var(--danger); }
.bot-kpi.teal b { color: var(--twin); }
.bot-kpi.sage b { color: var(--ok); }
.bot-kpi.amber b { color: #a85b22; }

.bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.bot-act {
  border: 1px solid var(--border);
  background: var(--gray-200);
  color: var(--ink-2);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 550;
  cursor: pointer;
}

.bot-act:hover {
  background: var(--gray-250);
  color: var(--ink);
}

.chat-form {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--gray-050);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
}

/* ==========================================================================
   10. FULL-BLEED #141413 DARK SLATE ACCORDION FOOTER (EXACT ANTHROPIC DETAIL)
   ========================================================================== */
.site-footer-slate {
  background: var(--gray-950);
  color: var(--gray-050);
  padding: clamp(56px, 6.5vw, 84px) 0 clamp(48px, 5vw, 68px);
}

.site-footer-slate a:focus-visible,
.site-footer-slate summary:focus-visible {
  outline-color: var(--focus-ring-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: clamp(48px, 5.5vw, 76px);
}

.footer-mark-col {
  grid-column: 1 / 5;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-050);
}

.footer-mark svg {
  width: 30px;
  height: 30px;
}

.footer-acc-col {
  grid-column: 5 / 13;
}

/* Stacked 52px Accordion Rows + CSS :has() Sibling Dim to #5e5d59 */
.footer-accordions {
  display: flex;
  flex-direction: column;
}

.footer-acc {
  border-top: 1px solid var(--gray-700);
}

.footer-acc summary {
  list-style: none;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--gray-500);
  transition: color 0.18s ease-out;
}

.footer-acc summary::-webkit-details-marker {
  display: none;
}

.footer-acc summary svg {
  width: 15px;
  height: 15px;
  color: currentColor;
  transition: transform 0.2s ease-out;
}

.footer-acc[open] summary {
  color: var(--gray-050);
}

.footer-acc[open] summary svg {
  transform: rotate(180deg);
}

.footer-acc summary:hover {
  color: var(--gray-050);
}

/* Signature Anthropic Sibling Dim via :has() */
.footer-accordions:has(summary:hover) summary:not(:hover) {
  color: var(--gray-600);
}

.footer-acc-links {
  padding: 2px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-acc-links a {
  font-size: 13.5px;
  color: var(--gray-400);
  text-underline-offset: 0.2em;
  transition: color 0.16s ease-out;
}

.footer-acc-links a:hover {
  color: var(--gray-050);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Bottom Row: Copyright | Our Mission | Access */
.footer-meta-col {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray-500);
  line-height: 1.5;
}

.footer-mission-col {
  grid-column: 5 / 9;
}

.footer-access-col {
  grid-column: 9 / 13;
}

.footer-col-title {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-050);
}

.footer-mission-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--gray-500);
  max-width: 38ch;
}

.footer-access-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-access-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--gray-400);
  width: fit-content;
  text-underline-offset: 0.2em;
  transition: color 0.16s ease-out;
}

.footer-access-link:hover {
  color: var(--gray-050);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.footer-access-link .ne {
  font-size: 12px;
  color: var(--gray-500);
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS & PRINT
   ========================================================================== */
@media (max-width: 1120px) {
  .ant-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .carousel-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .header-left {
    display: none;
  }
  .header-center {
    justify-content: flex-start;
  }
  .site-header.is-scrolled .header-left {
    display: flex;
  }
  .site-header.is-scrolled .header-center {
    display: none;
  }
  .stats-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-cell {
    border-bottom: 1px solid var(--border);
  }
  .stat-cell:nth-child(2n) {
    border-right: none;
  }
  .stat-cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .verdict-grid,
  .roi-split,
  .ant-cards-2,
  .ant-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-mark-col,
  .footer-acc-col,
  .footer-meta-col,
  .footer-mission-col,
  .footer-access-col {
    grid-column: 1 / -1;
  }
  .footer-grid {
    row-gap: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }
  .demo-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-check-item {
    grid-template-columns: 24px 1fr;
  }
  .demo-check-tag {
    display: none;
  }
  .hide-mobile {
    display: none !important;
  }
  .carousel-track {
    grid-template-columns: 1fr;
  }
  .form-grid,
  .mapper-grid {
    grid-template-columns: 1fr;
  }
  .ant-card,
  .verdict-pane,
  .chart-card,
  .form-card {
    padding: 20px;
  }
  .stats-rail {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-right: none;
  }
  .stat-cell:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }
  .stat-cell:last-child {
    border-bottom: none;
  }
  .wordmark {
    font-size: 14.5px;
    letter-spacing: 0.11em;
  }
  dialog.chat-drawer {
    inset: auto 10px 10px 10px;
    width: auto;
    height: min(76dvh, 580px);
  }
}

@media print {
  .site-header,
  .site-footer-slate,
  .hc-controls,
  .pane-actions,
  .segmented,
  dialog {
    display: none !important;
  }
  body {
    background: #ffffff;
  }
  .verdict-pane,
  .chart-card,
  .stats-rail,
  .eng-drawer {
    break-inside: avoid;
    border-color: #d1cfc5;
  }
}
