/* ============================================================
   KBM NEXUS — Design Tokens
   Dark, clinical-grade infrastructure aesthetic.
   Crimson primary (urgency/care), gold secondary (trust/premium).
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-surface-2: #f4f2ef;
  --color-surface-offset: #eeece8;
  --color-surface-offset-2: #e5e2dd;
  --color-divider: #ddd9d3;
  --color-border: #d2cdc5;

  /* Text */
  --color-text: #1a1816;
  --color-text-muted: #6b6560;
  --color-text-faint: #a39d94;
  --color-text-inverse: #faf9f7;

  /* Primary Accent — Crimson */
  --color-primary: #d13438;
  --color-primary-hover: #b02529;
  --color-primary-active: #8f1c1f;
  --color-primary-highlight: #f5d9da;

  /* Secondary Accent — Gold */
  --color-gold: #b8862f;
  --color-gold-hover: #9a6f24;
  --color-gold-active: #7c591c;
  --color-gold-highlight: #ecdcbc;

  /* Success / status */
  --color-success: #2f7d4f;
  --color-success-highlight: #d3e8da;
  --color-warning: #a15a12;
  --color-warning-highlight: #ecdac2;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 40 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.2 0.02 40 / 0.10);
  --shadow-lg: 0 20px 48px oklch(0.2 0.02 40 / 0.16);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'General Sans', 'Segoe UI', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

[data-theme='dark'] {
  --color-bg: #0a0a0b;
  --color-surface: #111113;
  --color-surface-2: #16161a;
  --color-surface-offset: #1a1a1f;
  --color-surface-offset-2: #212127;
  --color-divider: #262630;
  --color-border: #2c2c36;

  --color-text: #eeedec;
  --color-text-muted: #93919c;
  --color-text-faint: #55545e;
  --color-text-inverse: #0a0a0b;

  --color-primary: #ef4a4e;
  --color-primary-hover: #f66c6f;
  --color-primary-active: #fb8d8f;
  --color-primary-highlight: #3a1e1f;

  --color-gold: #d9a94a;
  --color-gold-hover: #e6bd6b;
  --color-gold-active: #f0cd8b;
  --color-gold-highlight: #3a2f1a;

  --color-success: #4ea375;
  --color-success-highlight: #16291f;
  --color-warning: #d38a3f;
  --color-warning-highlight: #302115;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a0a0b;
    --color-surface: #111113;
    --color-surface-2: #16161a;
    --color-surface-offset: #1a1a1f;
    --color-surface-offset-2: #212127;
    --color-divider: #262630;
    --color-border: #2c2c36;
    --color-text: #eeedec;
    --color-text-muted: #93919c;
    --color-text-faint: #55545e;
    --color-text-inverse: #0a0a0b;
    --color-primary: #ef4a4e;
    --color-primary-hover: #f66c6f;
    --color-primary-active: #fb8d8f;
    --color-primary-highlight: #3a1e1f;
    --color-gold: #d9a94a;
    --color-gold-hover: #e6bd6b;
    --color-gold-active: #f0cd8b;
    --color-gold-highlight: #3a2f1a;
    --color-success: #4ea375;
    --color-success-highlight: #16291f;
    --color-warning: #d38a3f;
    --color-warning-highlight: #302115;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.5);
    --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.6);
  }
}

/* ---------- Type Scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ============================================================
   Base
   ============================================================ */

body {
  background: var(--color-bg);
  color: var(--color-text);
}

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

.eyebrow--gold {
  color: var(--color-gold);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.01em;
}

h2.section-title {
  font-size: var(--text-xl);
  margin-block: var(--space-3) var(--space-10);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

.btn--gold {
  background: var(--color-gold);
  color: #17130a;
}
.btn--gold:hover {
  background: var(--color-gold-hover);
}

/* ---------- Pills / Tags ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.pill--live {
  border-color: color-mix(in oklab, var(--color-success) 40%, transparent);
  color: var(--color-success);
  background: var(--color-success-highlight);
}
.pill--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
}
.brand__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.nav__links a:hover {
  color: var(--color-text);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-16);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}
.hero__title {
  font-size: var(--text-3xl);
  margin-block: var(--space-4) var(--space-6);
}
.hero__title .accent {
  color: var(--color-primary);
}
.hero__body {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}
.hero__callout {
  color: var(--color-gold);
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__visual {
  position: relative;
}
.hero__pair {
  display: grid;
  gap: var(--space-4);
}
.shot-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  background: var(--color-surface);
}
.shot-card img {
  width: 100%;
  display: block;
}
.shot-card__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.hero__stacked {
  display: grid;
  gap: var(--space-4);
}
.hero__stacked .shot-card:first-child {
  margin-left: 0;
}
.hero__stacked .shot-card:last-child {
  margin-left: var(--space-10);
}

/* ---------- Surfaces trio ---------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.trio__card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trio__shot {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.trio__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.trio__body {
  padding: var(--space-6);
}
.trio__body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.trio__body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- Whitelabel section ---------- */
.whitelabel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: start;
}
.checklist {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.checklist__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.checklist__item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-success);
}
.checklist__item strong {
  display: block;
  margin-bottom: var(--space-1);
}
.checklist__item span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.config-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}
.config-card__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.config-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.config-card__stat {
  text-align: left;
}
.config-card__stat .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}
.config-card__stat .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.config-card pre {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  overflow-x: auto;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.config-card pre .k { color: var(--color-gold); }
.config-card pre .v { color: var(--color-primary); }
.config-card__caption {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
}

/* ---------- Tenant compare ---------- */
.tenant-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.tenant-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
}
.tenant-card img {
  width: 100%;
  display: block;
  filter: none;
}
.tenant-card--b img {
  filter: hue-rotate(155deg) saturate(0.9);
}
.tenant-card__tag {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

/* ---------- Deep-dive gallery ---------- */
.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
  overflow-x: auto;
}
.tab {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab[aria-selected='true'] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tab:hover {
  color: var(--color-text);
}

.gallery-panel {
  display: none;
}
.gallery-panel[data-active='true'] {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  cursor: zoom-in;
}
.gallery-item__shot {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.gallery-item__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover .gallery-item__shot img {
  transform: scale(1.04);
}
.gallery-item__caption {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.gallery-item__caption strong {
  display: block;
  font-size: var(--text-sm);
}
.gallery-item__caption span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0.1 0 0 / 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.lightbox[data-open='true'] {
  display: flex;
}
.lightbox__inner {
  max-width: min(980px, 94vw);
  max-height: 92vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  padding-bottom: var(--space-2);
}
.lightbox__imgwrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lightbox__imgwrap img {
  max-height: 58vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, white 15%, transparent);
}
.lightbox__counter {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  background: color-mix(in oklab, black 55%, transparent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}
.lightbox__details {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--color-text);
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}
.lightbox__details-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.lightbox__details-head h4 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
}
.lightbox__details p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.lightbox__importance {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
}
.lightbox__importance svg {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.lightbox__importance p {
  color: var(--color-text);
  font-size: var(--text-sm);
}
.lightbox__close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, white 12%, transparent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox__close:hover {
  background: color-mix(in oklab, white 22%, transparent);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: color-mix(in oklab, white 12%, transparent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.lightbox__nav:hover {
  background: color-mix(in oklab, white 24%, transparent);
}
.lightbox__nav--prev {
  left: var(--space-6);
}
.lightbox__nav--next {
  right: var(--space-6);
}
@media (max-width: 720px) {
  .lightbox__imgwrap img {
    max-height: 42vh;
  }
  .lightbox__nav--prev {
    left: var(--space-3);
  }
  .lightbox__nav--next {
    right: var(--space-3);
  }
}

/* ---------- Deployment steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.step {
  border-top: 2px solid var(--color-primary);
  padding-top: var(--space-5);
}
.step__num {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.step h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.steps__closing {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  font-weight: 600;
  color: var(--color-gold);
  font-size: var(--text-base);
}

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cap-cell {
  padding: var(--space-6);
  background: var(--color-surface);
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.cap-cell:nth-child(3n) {
  border-right: none;
}
.cap-cell h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.cap-cell p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.control-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
  padding: var(--space-8);
  border: 1px solid color-mix(in oklab, var(--color-gold) 30%, var(--color-divider));
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, var(--color-gold-highlight) 40%, transparent);
}
.control-columns h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}
.control-columns ul {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---------- Audience ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.audience__card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.audience__card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.audience__closing {
  margin-top: var(--space-10);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  max-width: 64ch;
}

/* ---------- Disclosure banner ---------- */
.disclosure {
  border: 1px solid color-mix(in oklab, var(--color-warning) 40%, var(--color-divider));
  background: var(--color-warning-highlight);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.disclosure svg {
  color: var(--color-warning);
  flex-shrink: 0;
  margin-top: 2px;
}
.disclosure strong {
  display: block;
  margin-bottom: var(--space-1);
}
.disclosure p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-xl);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.cta-band__steps {
  display: grid;
  gap: var(--space-4);
}
.cta-band__step {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
}
.cta-band__step .n {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 700;
}
.cta-band__form {
  display: grid;
  gap: var(--space-3);
}
.cta-band__form input,
.cta-band__form select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  min-height: 44px;
}
.cta-band__form label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.footer__links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer__links a:hover {
  color: var(--color-text);
}
.footer__legal {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

/* ============================================================
   Motion
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1), transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid,
  .whitelabel,
  .cta-band {
    grid-template-columns: 1fr;
  }
  .trio,
  .cap-grid,
  .tenant-compare,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .control-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-cell:nth-child(3n) {
    border-right: 1px solid var(--color-divider);
  }
  .cap-cell:nth-child(2n) {
    border-right: none;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav__actions .btn--primary {
    display: none;
  }
  .trio,
  .cap-grid,
  .tenant-compare,
  .gallery-grid,
  .audience,
  .steps,
  .control-columns {
    grid-template-columns: 1fr;
  }
  .cap-cell {
    border-right: none !important;
  }
  .hero__title {
    font-size: var(--text-2xl);
  }
  .hero__stacked .shot-card:last-child {
    margin-left: 0;
  }
  .footer__top,
  .footer__legal {
    flex-direction: column;
  }
}

/* ---------- Mock Chat Widget (illustrative Albert conversation) ---------- */
.chat-mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-divider);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  font-family: var(--font-body);
}
.chat-mock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid #e7e5e2;
  background: #ffffff;
}
.chat-mock__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.chat-mock__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.chat-mock__title h4 {
  font-size: var(--text-sm);
  color: #171513;
  font-weight: 700;
}
.chat-mock__title span {
  font-size: var(--text-xs);
  color: #7a756d;
}
.chat-mock__badge {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: #8a8578;
  background: #f4f2ee;
  border: 1px solid #e7e5e2;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.chat-mock__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: #ffffff;
}
.chat-mock__row {
  display: flex;
  gap: var(--space-3);
  max-width: 88%;
}
.chat-mock__row--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-mock__bubble {
  background: #eef2f9;
  border-left: 3px solid #2563eb;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: #171513;
  line-height: 1.5;
}
.chat-mock__row--user .chat-mock__bubble {
  background: #2563eb;
  border-left: none;
  border-right: 3px solid #17357a;
  color: #fff;
}
.chat-mock__meta {
  font-size: 11px;
  color: #a29c90;
  margin-top: var(--space-1);
  font-family: var(--font-mono);
}
.chat-mock__row--user .chat-mock__meta {
  text-align: right;
}
.chat-mock__avatar--sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7e5e2;
  color: #6b6560;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-mock__row--user .chat-mock__avatar--sm {
  background: #dbe4f5;
  color: #2563eb;
}
.chat-mock__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-4);
}
.chat-mock__chip {
  font-size: var(--text-xs);
  color: #2563eb;
  border: 1px solid #cdd9f2;
  background: #eef2f9;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.chat-mock__footer {
  border-top: 1px solid #e7e5e2;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.chat-mock__input {
  flex: 1;
  border: 1px solid #e7e5e2;
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: #a29c90;
  background: #fafaf9;
}
.chat-mock__send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-mock__disclosure {
  padding: var(--space-2) var(--space-5);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text-faint);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}

/* ---------- Evidence chips ---------- */
.evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.evidence-chip--demo {
  border-color: color-mix(in oklab, var(--color-success) 40%, transparent);
  color: var(--color-success);
  background: var(--color-success-highlight);
}
.evidence-chip--illus {
  border-color: color-mix(in oklab, var(--color-gold) 40%, transparent);
  color: var(--color-gold);
  background: var(--color-gold-highlight);
}

/* ---------- 24/7 stat band ---------- */
.always-on {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  background: linear-gradient(135deg, var(--color-surface-offset), var(--color-surface-2));
  padding: clamp(var(--space-8), 5vw, var(--space-12));
}
.always-on__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.always-on__stat .num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1.1;
}
.always-on__stat .label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: block;
  margin-top: var(--space-1);
}
.always-on__stat .label--sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
  margin-top: var(--space-1);
  margin-bottom: var(--space-2);
}
@media (max-width: 960px) {
  .always-on__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .always-on__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Integration Hub ---------- */
.hub-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.hub-diagram__side {
  display: grid;
  gap: var(--space-3);
}
.hub-diagram__app {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 600;
}
.hub-diagram__app span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-faint);
  flex-shrink: 0;
}
.hub-diagram__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.hub-diagram__core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-primary);
  background-image: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.3;
  text-align: center;
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.hub-diagram__core-line {
  display: block;
}
.hub-diagram__arrow {
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-align: center;
}
.hub-note {
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in oklab, var(--color-primary) 25%, var(--color-divider));
  background: color-mix(in oklab, var(--color-primary-highlight) 55%, transparent);
}
.hub-note strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}
.hub-note p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: none;
}
.customize-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in oklab, var(--color-gold) 30%, var(--color-divider));
  background: color-mix(in oklab, var(--color-gold-highlight) 45%, transparent);
}
.customize-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-gold);
}
.customize-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}
.customize-note strong {
  color: var(--color-text);
}
@media (max-width: 720px) {
  .hub-diagram {
    grid-template-columns: 1fr;
  }
  .hub-diagram__center {
    order: -1;
    margin-bottom: var(--space-4);
  }
  .hub-diagram__arrow {
    transform: none;
  }
}
