/* ============================================================
   Multi-Agent Business Command Center — Design System
   Custom layer for everything Tailwind utilities can't express
   cleanly: glass/glow recipes, gradients, keyframes, components.
   (Loaded as a plain stylesheet — no @apply / @layer here.)
============================================================ */

:root {
  /* Backgrounds */
  --navy-base:  #070B16;
  --navy-deep:  #0A0E1A;
  --navy-panel: #0F1626;
  --navy-elev:  #131C30;

  /* Text */
  --ink-hi:    #F8FAFC;
  --ink-base:  #CBD5E1;
  --ink-mut:   #94A3B8;
  --ink-faint: #64748B;

  /* Accents */
  --c-cyan:   #22D3EE;
  --c-blue:   #3B82F6;
  --c-teal:   #2DD4BF;
  --c-violet: #8B5CF6;
  --c-indigo: #6366F1;

  /* Status */
  --c-success: #34D399;
  --c-warning: #FBBF24;
  --c-danger:  #F87171;
  --c-info:    #38BDF8;

  /* Glass & lines */
  --glass-fill:       rgba(255,255,255,0.04);
  --glass-fill-hover: rgba(255,255,255,0.065);
  --hairline:         rgba(148,163,184,0.12);
  --hairline-glow:    rgba(34,211,238,0.35);

  /* Signature gradients */
  --grad-brand:    linear-gradient(135deg, #22D3EE 0%, #6366F1 50%, #8B5CF6 100%);
  --grad-headline: linear-gradient(120deg, #E0F2FE 0%, #67E8F9 35%, #C4B5FD 75%, #67E8F9 100%);

  /* Motion */
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------
   Base / reset
---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-base);
  color: var(--ink-base);
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink-hi);
  letter-spacing: -0.01em;
}
::selection { background: rgba(34, 211, 238, 0.25); color: #fff; }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(34, 211, 238, 0.4);
  background-clip: content-box;
}
* { scrollbar-width: thin; scrollbar-color: rgba(148,163,184,0.25) transparent; }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--navy-elev); color: var(--ink-hi);
  padding: 0.85rem 1.4rem;
  border-radius: 0 0 0.75rem 0;
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid var(--hairline); border-top: none; border-left: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 6px; }

/* ----------------------------------------------------------
   Glassmorphism
---------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.05) inset,
    0 20px 50px -24px rgba(2, 6, 23, 0.85);
  transition: border-color 320ms var(--ease-premium), box-shadow 320ms var(--ease-premium),
              transform 320ms var(--ease-premium), background-color 320ms var(--ease-premium);
}
.glass:hover {
  background: var(--glass-fill-hover);
  border-color: var(--hairline-glow);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 0 44px -10px rgba(34, 211, 238, 0.28),
    0 28px 64px -28px rgba(2, 6, 23, 0.9);
  transform: translateY(-3px);
}
.glass-btn {
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  transition: all 240ms var(--ease-premium);
}
.glass-btn:hover { background: var(--glass-fill-hover); border-color: var(--hairline-glow); color: var(--c-cyan); }

/* ----------------------------------------------------------
   Buttons
---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.92rem;
  border-radius: 0.8rem; padding: 0.8rem 1.5rem;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
  transition: transform 220ms var(--ease-premium), box-shadow 220ms var(--ease-premium),
              border-color 220ms var(--ease-premium), background 220ms var(--ease-premium),
              opacity 220ms var(--ease-premium), color 220ms var(--ease-premium);
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-primary {
  color: #04141A;
  background: var(--grad-brand);
  background-size: 160% 160%;
  box-shadow: 0 14px 36px -14px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -12px rgba(99, 102, 241, 0.6);
  background-position: 100% 0%;
}
.btn-ghost {
  color: var(--ink-hi);
  background: var(--glass-fill);
  border-color: var(--hairline);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--hairline-glow);
  color: var(--c-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 32px -10px rgba(34, 211, 238, 0.35);
}
.btn-lg { padding: 1rem 1.9rem; font-size: 0.98rem; border-radius: 0.9rem; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.84rem; border-radius: 0.7rem; }

/* ----------------------------------------------------------
   Navigation
---------------------------------------------------------- */
#navbar {
  border-bottom: 1px solid transparent;
  transition: background-color 360ms var(--ease-premium), border-color 360ms var(--ease-premium),
              backdrop-filter 360ms var(--ease-premium), box-shadow 360ms var(--ease-premium);
}
#navbar.is-scrolled {
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 16px 50px -28px rgba(2, 6, 23, 0.9);
}
.nav-link {
  position: relative;
  font-size: 0.875rem; font-weight: 500; color: var(--ink-mut);
  padding: 0.6rem 1rem; border-radius: 0.6rem;
  transition: color 200ms ease, background 200ms ease;
}
.nav-link:hover { color: var(--ink-hi); background: rgba(255,255,255,0.04); }
.nav-link.is-active { color: var(--c-cyan); }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 0.2rem;
  height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-violet));
}
.mobile-nav-link {
  display: block; padding: 0.85rem 0.5rem;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-base);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 200ms ease, padding-left 200ms ease;
}
.mobile-nav-link:last-of-type { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link.is-active { color: var(--c-cyan); padding-left: 0.85rem; }

/* ----------------------------------------------------------
   Status indicators
---------------------------------------------------------- */
.status-dot {
  --dot-color: var(--c-info);
  position: relative; display: inline-block;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--dot-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot-color) 18%, transparent),
              0 0 12px color-mix(in srgb, var(--dot-color) 70%, transparent);
}
.status-dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 999px; border: 1.5px solid var(--dot-color);
  opacity: 0.55; animation: dotPulse 2.2s var(--ease-premium) infinite;
}
.status-dot--success { --dot-color: var(--c-success); }
.status-dot--warning { --dot-color: var(--c-warning); }
.status-dot--danger  { --dot-color: var(--c-danger); }
.status-dot--info    { --dot-color: var(--c-info); }
.status-dot--idle    { --dot-color: var(--ink-faint); }
.status-dot--idle::after { display: none; }

@keyframes dotPulse {
  0%   { transform: scale(0.65); opacity: 0.6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.status-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink-mut);
  padding: 0.5rem 0.95rem; border: 1px solid var(--hairline);
  border-radius: 999px; background: var(--glass-fill);
}
.live-dot {
  position: relative; width: 9px; height: 9px; border-radius: 999px;
  background: var(--c-success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16), 0 0 12px rgba(52, 211, 153, 0.65);
}
.live-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 999px;
  border: 1.5px solid var(--c-success); opacity: 0.5;
  animation: dotPulse 2s var(--ease-premium) infinite;
}
.scan-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--c-cyan); padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.22);
}
.scan-tag svg { animation: spin 3.4s linear infinite; }
.scan-pulse {
  position: relative; display: inline-block; width: 11px; height: 11px; border-radius: 999px;
  background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,0.18), 0 0 14px rgba(34,211,238,0.7);
  animation: scanPulse 1.4s ease-in-out infinite;
}
@keyframes scanPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.75; }
  50%      { transform: scale(1.25); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------
   Typography helpers
---------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-mut); margin-bottom: 1.5rem;
}
.kicker {
  display: flex; align-items: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 0.85rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.015em;
  max-width: 42rem;
}
.section-sub {
  font-size: 1rem; line-height: 1.65; color: var(--ink-mut);
  max-width: 40rem; margin-top: 0.9rem;
}
.card-kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-hi); }

/* ----------------------------------------------------------
   Section layout
---------------------------------------------------------- */
.section-pad { padding-top: 5.5rem; padding-bottom: 5.5rem; position: relative; }
@media (min-width: 1024px) { .section-pad { padding-top: 7rem; padding-bottom: 7rem; } }
.bg-section-alt {
  background: radial-gradient(120% 60% at 50% 0%, rgba(34, 211, 238, 0.035), transparent 60%), var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.section-head { max-width: 46rem; }
.section-head-row {
  display: flex; flex-direction: column; gap: 1.75rem;
  justify-content: space-between; align-items: flex-start;
}
@media (min-width: 1024px) { .section-head-row { flex-direction: row; align-items: flex-end; } }

/* ----------------------------------------------------------
   Hero
---------------------------------------------------------- */
.hero-bg-gradient, .hero-grid, .hero-glow, #particle-canvas { pointer-events: none; }
.hero-bg-gradient {
  background:
    radial-gradient(120% 70% at 18% -10%, rgba(99, 102, 241, 0.16), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-base) 0%, var(--navy-deep) 55%, var(--navy-base) 100%);
}
.hero-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 35%, #000 35%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 50% 35%, #000 35%, transparent 100%);
  opacity: 0.6;
}
.hero-glow {
  background: radial-gradient(50% 50% at 50% 28%, rgba(56, 189, 248, 0.16), transparent 70%);
  mix-blend-mode: screen;
}
.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
  display: flex; flex-direction: column; gap: 0.15em;
}
.hero-line, .hero-line-accent { display: block; }
.hero-word {
  display: inline-block; opacity: 0; transform: translateY(16px);
  transition: opacity 720ms var(--ease-premium), transform 720ms var(--ease-premium);
}
.hero-word.is-visible { opacity: 1; transform: translateY(0); }
.hero-line-accent .hero-word {
  background: var(--grad-headline);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 0 22px rgba(103, 232, 249, 0.18));
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero-subline {
  margin-top: 1.6rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7; color: var(--ink-mut); max-width: 36rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 640ms var(--ease-premium) 760ms, transform 640ms var(--ease-premium) 760ms;
}
.reveal.is-visible .hero-subline { opacity: 1; transform: translateY(0); }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 640ms var(--ease-premium) 980ms, transform 640ms var(--ease-premium) 980ms;
}
.reveal.is-visible .hero-ctas { opacity: 1; transform: translateY(0); }
.hero-ticker {
  font-size: 0.85rem; color: var(--ink-mut); min-height: 1.4em;
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.9rem;
}
.hero-ticker .ticker-agent { color: var(--c-cyan); font-weight: 600; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-faint); background: transparent; border: none; cursor: pointer;
  transition: color 240ms ease; z-index: 5;
}
.scroll-cue:hover { color: var(--c-cyan); }
.scroll-cue svg { animation: floatChevron 2.2s var(--ease-premium) infinite; }
@keyframes floatChevron {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ----------------------------------------------------------
   Chips & badges
---------------------------------------------------------- */
.priority-chip {
  --chip-color: var(--ink-mut);
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.32rem 0.7rem; border-radius: 999px;
  color: var(--chip-color);
  background: color-mix(in srgb, var(--chip-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--chip-color) 32%, transparent);
}
.priority-chip::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: var(--chip-color); }
.priority-chip--low      { --chip-color: var(--c-info); }
.priority-chip--medium   { --chip-color: var(--c-warning); }
.priority-chip--high     { --chip-color: #FB923C; }
.priority-chip--critical { --chip-color: var(--c-danger); }

.trend-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; }
.trend-badge--up   { color: var(--c-success); }
.trend-badge--down { color: var(--c-danger); }
.trend-badge--flat { color: var(--ink-mut); }

.agent-status-badge {
  --status-color: var(--c-info);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--status-color);
  padding: 0.3rem 0.7rem 0.3rem 0.55rem; border-radius: 999px;
  background: color-mix(in srgb, var(--status-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-color) 28%, transparent);
}
.agent-status-badge--active   { --status-color: var(--c-success); }
.agent-status-badge--scanning { --status-color: var(--c-cyan); }
.agent-status-badge--alert    { --status-color: var(--c-danger); }
.agent-status-badge--idle     { --status-color: var(--ink-faint); }

/* ----------------------------------------------------------
   KPI cards
---------------------------------------------------------- */
.kpi-card { position: relative; padding: 1.6rem; overflow: hidden; }
.kpi-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent-grad, var(--grad-brand)); opacity: 0.85;
}
.kpi-card[data-status="healthy"] { --accent-grad: linear-gradient(90deg, var(--c-success), var(--c-teal)); --flash-color: var(--c-success); }
.kpi-card[data-status="watch"]   { --accent-grad: linear-gradient(90deg, var(--c-warning), #FB923C); --flash-color: var(--c-warning); }
.kpi-card[data-status="risk"]    { --accent-grad: linear-gradient(90deg, var(--c-danger), #FB7185); --flash-color: var(--c-danger); }
.kpi-status-glow {
  --glow-color: var(--c-success);
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--glow-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow-color) 16%, transparent),
              0 0 14px color-mix(in srgb, var(--glow-color) 65%, transparent);
}
.kpi-card[data-status="healthy"] .kpi-status-glow { --glow-color: var(--c-success); }
.kpi-card[data-status="watch"]   .kpi-status-glow { --glow-color: var(--c-warning); }
.kpi-card[data-status="risk"]    .kpi-status-glow { --glow-color: var(--c-danger); }
.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 600; color: var(--ink-hi); letter-spacing: -0.01em;
}
.kpi-note { font-size: 0.86rem; line-height: 1.55; color: var(--ink-mut); }
.kpi-card.is-flash { animation: kpiFlash 1200ms var(--ease-premium); }
@keyframes kpiFlash {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flash-color, var(--c-cyan)) 0%, transparent); }
  25%  { box-shadow: 0 0 0 1px color-mix(in srgb, var(--flash-color, var(--c-cyan)) 55%, transparent),
                     0 0 50px -6px color-mix(in srgb, var(--flash-color, var(--c-cyan)) 60%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--flash-color, var(--c-cyan)) 0%, transparent); }
}

/* ----------------------------------------------------------
   Sparkline + Gauge + Confidence ring
---------------------------------------------------------- */
.sparkline-svg path.spark-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline-svg path.spark-fill { stroke: none; opacity: 0.16; }
.gauge-track { stroke: rgba(148, 163, 184, 0.14); fill: none; }
.gauge-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1100ms var(--ease-premium); }
.gauge-value { font-family: 'Space Grotesk', sans-serif; font-weight: 600; fill: var(--ink-hi); }
.confidence-ring .ring-track { stroke: rgba(148,163,184,0.16); fill: none; }
.confidence-ring .ring-fill { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1000ms var(--ease-premium); }

/* ----------------------------------------------------------
   Agent cards
---------------------------------------------------------- */
.agent-card { position: relative; padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
.agent-card.is-featured {
  border-color: rgba(139, 92, 246, 0.3);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.08), rgba(255,255,255,0.04) 55%);
}
.agent-card.is-featured:hover { border-color: rgba(139, 92, 246, 0.5); }
.agent-card.is-flash { animation: agentFlash 1100ms var(--ease-premium); }
@keyframes agentFlash {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  25%  { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5), 0 0 50px -6px rgba(34, 211, 238, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.agent-avatar {
  --avatar-color: var(--c-cyan);
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 0.9rem;
  color: var(--avatar-color);
  background: color-mix(in srgb, var(--avatar-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--avatar-color) 30%, transparent);
}
.agent-avatar .pulse-ring {
  position: absolute; inset: -6px; border-radius: 1.1rem;
  border: 1.5px solid var(--avatar-color); opacity: 0;
}
.agent-card[data-status="active"] .pulse-ring,
.agent-card[data-status="scanning"] .pulse-ring,
.agent-card[data-status="alert"] .pulse-ring {
  animation: agentPulseRing 2.6s var(--ease-premium) infinite;
}
@keyframes agentPulseRing {
  0%   { transform: scale(0.92); opacity: 0.55; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.agent-task { font-size: 0.88rem; color: var(--ink-mut); line-height: 1.5; }
.agent-task .label { color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.agent-insight {
  font-size: 0.88rem; line-height: 1.55; color: var(--ink-base);
  padding: 0.85rem 1rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--avatar-color, var(--c-cyan));
}
.agent-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--ink-faint);
  padding-top: 0.95rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ----------------------------------------------------------
   Live feed
---------------------------------------------------------- */
.feed-list { max-height: 30rem; overflow-y: auto; padding-right: 0.4rem; }
.feed-item {
  --sev-color: var(--c-info);
  display: flex; gap: 0.9rem; padding: 0.95rem 1rem; border-radius: 0.9rem;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05);
  border-left: 2.5px solid var(--sev-color);
  transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.feed-item:hover { background: rgba(255,255,255,0.045); }
.feed-item[data-severity="info"]     { --sev-color: var(--c-info); }
.feed-item[data-severity="positive"] { --sev-color: var(--c-success); }
.feed-item[data-severity="warning"]  { --sev-color: var(--c-warning); }
.feed-item[data-severity="risk"]     { --sev-color: var(--c-danger); }
.feed-item.is-entering { animation: feedSlideIn 460ms var(--ease-premium); }
@keyframes feedSlideIn {
  0%   { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.feed-item.is-flash { box-shadow: 0 0 0 1px var(--sev-color), 0 0 28px -6px var(--sev-color); }
.feed-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  color: var(--sev-color); background: color-mix(in srgb, var(--sev-color) 14%, transparent);
}
.feed-message { font-size: 0.9rem; color: var(--ink-base); line-height: 1.5; }
.feed-meta { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.3rem; font-size: 0.76rem; color: var(--ink-faint); }
.feed-meta .agent-name { color: var(--ink-mut); font-weight: 600; }
.filter-chip {
  font-size: 0.78rem; font-weight: 500; padding: 0.4rem 0.85rem; border-radius: 999px;
  color: var(--ink-mut); border: 1px solid var(--hairline); background: transparent;
  cursor: pointer; transition: all 200ms ease;
}
.filter-chip:hover { color: var(--ink-hi); border-color: var(--hairline-glow); }
.filter-chip.is-active { color: var(--navy-base); background: var(--grad-brand); border-color: transparent; font-weight: 600; }

/* ----------------------------------------------------------
   CEO action panel
---------------------------------------------------------- */
.value-tally { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.4rem 1.7rem; min-width: 17rem; }
.value-tally-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-mut); }
.value-tally-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 700;
  background: var(--grad-headline);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value-tally-note { font-size: 0.78rem; color: var(--ink-faint); }
.action-card { display: flex; flex-direction: column; gap: 0.95rem; padding: 1.4rem 1.6rem; }
@media (min-width: 768px) { .action-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; } }
.action-card.is-new { animation: actionInsert 900ms var(--ease-premium); }
@keyframes actionInsert {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.action-card.is-done { opacity: 0.5; }
.action-card.is-done .action-title { text-decoration: line-through; color: var(--ink-faint); }
.action-title { font-size: 1.02rem; font-weight: 600; color: var(--ink-hi); }
.action-impact { font-size: 0.88rem; color: var(--ink-mut); margin-top: 0.3rem; line-height: 1.5; }
.action-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 0.65rem; font-size: 0.8rem; color: var(--ink-faint); }
.action-meta .meta-value { color: var(--ink-hi); font-weight: 600; }
.action-meta .meta-value.is-money { color: var(--c-success); }
.action-toggle {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; font-weight: 600; padding: 0.65rem 1.15rem; border-radius: 0.7rem;
  color: var(--ink-hi); border: 1px solid var(--hairline); background: var(--glass-fill);
  cursor: pointer; transition: all 220ms var(--ease-premium); white-space: nowrap;
}
.action-toggle:hover { border-color: var(--hairline-glow); color: var(--c-cyan); transform: translateY(-1px); }
.action-toggle.is-done { color: var(--c-success); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }

/* ----------------------------------------------------------
   Department cards
---------------------------------------------------------- */
.department-card { padding: 1.7rem; }
.dept-risk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.dept-risk-list li { display: flex; gap: 0.6rem; font-size: 0.86rem; color: var(--ink-mut); line-height: 1.5; }
.dept-risk-list li::before {
  content: ''; flex-shrink: 0; margin-top: 0.5em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--c-warning);
}
.dept-recommendation {
  font-size: 0.88rem; line-height: 1.55; color: var(--ink-base);
  padding: 0.85rem 1rem; border-radius: 0.75rem;
  background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.14);
}
.dept-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.85rem; }
.dept-metric .metric-label { font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.dept-metric .metric-value { font-size: 1rem; font-weight: 600; color: var(--ink-hi); margin-top: 0.15rem; }

/* ----------------------------------------------------------
   Simulation / demo mode
---------------------------------------------------------- */
.sim-btn {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
  text-align: left; padding: 1.15rem 1.25rem; border-radius: 1rem;
  border: 1px solid var(--hairline); background: var(--glass-fill); color: var(--ink-base);
  cursor: pointer; transition: all 240ms var(--ease-premium); overflow: hidden;
}
.sim-btn:hover:not(:disabled) {
  border-color: var(--hairline-glow); background: var(--glass-fill-hover);
  transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(34, 211, 238, 0.3);
}
.sim-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.sim-btn.is-primary {
  border-color: rgba(139, 92, 246, 0.32);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.05));
}
.sim-btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 0.7rem;
  color: var(--c-cyan); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.22);
}
.sim-btn.is-primary .sim-btn-icon { color: var(--c-violet); background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.28); }
.sim-btn-label { font-size: 0.92rem; font-weight: 600; color: var(--ink-hi); line-height: 1.35; }
.sim-btn-sub { font-size: 0.76rem; color: var(--ink-faint); }
.sim-btn-spinner {
  display: none; position: absolute; top: 1rem; right: 1rem;
  width: 1.1rem; height: 1.1rem; border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, 0.2); border-top-color: var(--c-cyan);
  animation: spin 0.8s linear infinite;
}
.sim-btn.is-loading .sim-btn-spinner { display: block; }
.sim-btn.is-loading .sim-btn-icon { opacity: 0.4; }
.scan-overlay {
  margin-top: 1.75rem; padding: 1.4rem 1.6rem; border-radius: 1rem;
  background: rgba(34, 211, 238, 0.045); border: 1px solid rgba(34, 211, 238, 0.16);
  animation: fadeInUp 380ms var(--ease-premium);
}
.scan-status-text { font-size: 0.92rem; color: var(--ink-base); font-weight: 500; }
.scan-bar-track { height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.07); }
.scan-bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: var(--grad-brand); background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
  transition: width 420ms var(--ease-premium);
}
.result-card {
  padding: 1.6rem 1.8rem; border-radius: 1rem;
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.08), rgba(34, 211, 238, 0.04));
  border: 1px solid rgba(52, 211, 153, 0.22);
  animation: resultPop 420ms var(--ease-premium);
}
@keyframes resultPop {
  0%   { opacity: 0; transform: scale(0.96) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.result-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 600; color: var(--ink-hi); }
.result-summary { margin-top: 0.6rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink-base); }
.result-stats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.result-stat {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-hi);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--hairline);
}
.result-stat .stat-num { color: var(--c-cyan); }
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   Final pitch
---------------------------------------------------------- */
.pitch-glow {
  background: radial-gradient(60% 60% at 50% 100%, rgba(139, 92, 246, 0.14), transparent 70%),
              radial-gradient(50% 50% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%);
  pointer-events: none;
}
.pitch-headline {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.015em;
  margin: 1rem auto 1.4rem; max-width: 46rem;
  background: var(--grad-headline);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pitch-body { font-size: 1.05rem; line-height: 1.75; color: var(--ink-mut); max-width: 40rem; margin: 0 auto; }
.pillar-card { padding: 1.5rem; }
.pillar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 0.8rem;
  color: var(--c-cyan); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.22);
  margin-bottom: 1rem;
}
.pillar-title { font-size: 1.02rem; font-weight: 600; color: var(--ink-hi); }
.pillar-text { font-size: 0.88rem; line-height: 1.6; color: var(--ink-mut); margin-top: 0.4rem; }

/* ----------------------------------------------------------
   Footer & Toast
---------------------------------------------------------- */
.footer-link { transition: color 200ms ease; }
.footer-link:hover { color: var(--c-cyan); }
.toast-region {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  display: flex; flex-direction: column; gap: 0.7rem;
  width: min(22rem, calc(100vw - 2rem));
}
.toast {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.15rem; border-radius: 0.9rem;
  background: rgba(15, 22, 38, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 20px 50px -18px rgba(2,6,23,0.85), 0 0 32px -10px rgba(52,211,153,0.25);
  color: var(--ink-base); font-size: 0.88rem; line-height: 1.5;
  animation: toastIn 320ms var(--ease-premium);
}
.toast.is-leaving { animation: toastOut 260ms var(--ease-premium) forwards; }
.toast .toast-icon { color: var(--c-success); flex-shrink: 0; margin-top: 0.1rem; }
@keyframes toastIn { 0% { opacity: 0; transform: translateX(24px) scale(0.96); } 100% { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toastOut { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(24px); } }

/* ----------------------------------------------------------
   Scroll reveal (parent drives staggered children via --stagger)
---------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 720ms var(--ease-premium), transform 720ms var(--ease-premium);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-child {
  --stagger: 0;
  opacity: 0; transform: translateY(22px);
  transition: opacity 560ms var(--ease-premium) calc(var(--stagger) * 70ms),
              transform 560ms var(--ease-premium) calc(var(--stagger) * 70ms);
}
.reveal.is-visible .reveal-child { opacity: 1; transform: translateY(0); }
[data-count-to] { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------
   Reduced motion
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-word, .hero-subline, .hero-ctas, .reveal, .reveal-child {
    opacity: 1 !important; transform: none !important;
  }
  .status-dot::after, .live-dot::after, .scan-pulse, .agent-avatar .pulse-ring,
  .scroll-cue svg, .scan-tag svg, .hero-line-accent .hero-word, .scan-bar-fill,
  .sim-btn-spinner, .btn-primary {
    animation: none !important;
  }
}

/* ----------------------------------------------------------
   Small-screen tweaks
---------------------------------------------------------- */
@media (max-width: 640px) {
  .glass { backdrop-filter: blur(12px) saturate(130%); }
  .feed-list { max-height: 24rem; }
}

/* ============================================================
   ENTERPRISE UPGRADE ADD-ONS
   (trust strip · security grid · who-for · after-steps · FAQ ·
    booking form controls) — additive only, follows the existing
    glass / glow / cyan-violet design language above.
============================================================ */

/* ----------------------------------------------------------
   Trust strip (enterprise trust signal chips)
---------------------------------------------------------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  font-size: 0.86rem; font-weight: 500; color: var(--ink-base);
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  transition: border-color 280ms var(--ease-premium), background-color 280ms var(--ease-premium),
              transform 280ms var(--ease-premium), color 280ms var(--ease-premium);
}
.trust-chip:hover {
  border-color: var(--hairline-glow);
  background: var(--glass-fill-hover);
  color: var(--ink-hi);
  transform: translateY(-2px);
}
.trust-chip svg { color: var(--c-cyan); flex-shrink: 0; }

/* ----------------------------------------------------------
   Security & governance assurance grid
---------------------------------------------------------- */
.security-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.security-item {
  display: flex; align-items: flex-start; gap: 0.9rem;
  padding: 1.15rem 1.3rem;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  transition: border-color 280ms var(--ease-premium), background-color 280ms var(--ease-premium);
}
.security-item:hover { border-color: var(--hairline-glow); background: var(--glass-fill-hover); }
.security-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; flex-shrink: 0;
  border-radius: 0.7rem;
  background: rgba(52, 211, 153, 0.12);
  color: var(--c-success);
}
.security-text { font-size: 0.92rem; line-height: 1.6; color: var(--ink-base); padding-top: 0.25rem; }
.security-text strong { color: var(--ink-hi); font-weight: 600; }

/* ----------------------------------------------------------
   Who this is for / not for
---------------------------------------------------------- */
.who-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 768px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who-col {
  padding: 1.6rem;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
}
.who-col-title {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600; font-size: 1.04rem;
  color: var(--ink-hi); margin-bottom: 1.1rem;
}
.who-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 999px; flex-shrink: 0;
}
.who-col--yes .who-dot { background: rgba(52, 211, 153, 0.15); color: var(--c-success); }
.who-col--no .who-dot { background: rgba(248, 113, 113, 0.12); color: var(--c-danger); }
.who-text { font-size: 0.95rem; line-height: 1.7; color: var(--ink-base); }

/* ----------------------------------------------------------
   "What happens after you book" step list
---------------------------------------------------------- */
.after-steps {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px)  { .after-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .after-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.after-step {
  padding: 1.5rem 1.35rem 1.4rem;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 1.1rem;
  transition: border-color 280ms var(--ease-premium), background-color 280ms var(--ease-premium), transform 280ms var(--ease-premium);
}
.after-step:hover { border-color: var(--hairline-glow); background: var(--glass-fill-hover); transform: translateY(-3px); }
.after-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; margin-bottom: 1rem;
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600; font-size: 0.92rem;
  color: var(--c-cyan);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 0.65rem;
}
.after-step-title { font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600; font-size: 0.98rem; color: var(--ink-hi); margin-bottom: 0.4rem; }
.after-step-text { font-size: 0.87rem; line-height: 1.6; color: var(--ink-mut); }

/* ----------------------------------------------------------
   FAQ accordion (native <details>/<summary> — zero JS needed)
---------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 280ms var(--ease-premium), background-color 280ms var(--ease-premium);
}
.faq-item:hover { border-color: var(--hairline-glow); }
.faq-item[open] { background: var(--glass-fill-hover); border-color: var(--hairline-glow); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif; font-weight: 600; font-size: 0.98rem;
  color: var(--ink-hi);
  cursor: pointer; list-style: none;
  transition: color 220ms var(--ease-premium);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }
.faq-question:hover { color: var(--c-cyan); }
.faq-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.65rem; height: 1.65rem; flex-shrink: 0;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  color: var(--c-cyan);
  transition: transform 320ms var(--ease-premium), background-color 280ms var(--ease-premium), color 280ms var(--ease-premium);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--grad-brand); color: #04141A; border-color: transparent; }
.faq-answer { padding: 0 1.4rem 1.3rem; font-size: 0.93rem; line-height: 1.7; color: var(--ink-mut); max-width: 52rem; }

/* ----------------------------------------------------------
   Booking form controls
---------------------------------------------------------- */
.field-grid { display: flex; flex-direction: column; gap: 1.4rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-hi); }
.field-optional { font-weight: 400; color: var(--ink-faint); font-size: 0.78rem; }
.field-hint { font-size: 0.8rem; line-height: 1.5; color: var(--ink-faint); }
.field-input, .field-select, .field-textarea {
  width: 100%;
  font-family: 'Inter', ui-sans-serif, sans-serif; font-size: 0.92rem; color: var(--ink-hi);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  transition: border-color 220ms var(--ease-premium), background-color 220ms var(--ease-premium), box-shadow 220ms var(--ease-premium);
}
.field-textarea { resize: vertical; min-height: 6.5rem; line-height: 1.6; }
.field-input::placeholder, .field-textarea::placeholder { color: var(--ink-faint); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--hairline-glow);
  background: rgba(255,255,255,0.045);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.field-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.6rem;
}
.field-select option { background: var(--navy-panel); color: var(--ink-hi); }
.field.has-error .field-input, .field.has-error .field-select, .field.has-error .field-textarea {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.field-error { display: none; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--c-danger); }
.field.has-error .field-error { display: flex; }
.form-notice {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.85rem; line-height: 1.6; color: var(--ink-mut);
  padding: 1rem 1.2rem;
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 0.9rem;
}
.form-notice svg { flex-shrink: 0; color: var(--c-info); margin-top: 0.15rem; }
.booking-status {
  display: none; align-items: center; gap: 0.65rem;
  font-size: 0.9rem; color: var(--c-success);
  padding: 0.95rem 1.15rem; margin-top: 1.3rem;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 0.85rem;
}
.booking-status.is-visible { display: flex; }
.booking-status.is-error { color: var(--c-danger); background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.25); }
.booking-status svg { flex-shrink: 0; }
.booking-fallback { font-size: 0.85rem; line-height: 1.6; color: var(--ink-mut); margin-top: 0.9rem; }
.booking-fallback a { color: var(--c-cyan); }
.booking-fallback a:hover { color: var(--c-violet); }

/* ============================================================
   CHATBOT UI LAYER
   Premium AI booking assistant shell for booking.html.
   Follows the same glass / glow / cyan-violet language above;
   never overrides any existing Command Center styles.
============================================================ */

/* ----------------------------------------------------------
   Chat shell (outer card)
---------------------------------------------------------- */
.chat-shell {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
}

/* ----------------------------------------------------------
   Shell header
---------------------------------------------------------- */
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.025);
}

/* Live (green pulsing) status dot — used in the chat head */
.status-dot--live::after {
  background: var(--c-success);
  animation: pulse-live 1.8s ease-in-out infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  50%       { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0);  }
}

/* ----------------------------------------------------------
   Message log
---------------------------------------------------------- */
.chat-log {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 18rem;
  max-height: 38rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}
.chat-log::-webkit-scrollbar       { width: 5px; }
.chat-log::-webkit-scrollbar-track { background: transparent; }
.chat-log::-webkit-scrollbar-thumb { background: var(--hairline); border-radius: 999px; }

/* ----------------------------------------------------------
   Message bubbles
---------------------------------------------------------- */
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  max-width: 88%;
}
.chat-msg--user      { align-self: flex-end;   flex-direction: row-reverse; }
.chat-msg--assistant { align-self: flex-start; }

.chat-bubble {
  padding: 0.75rem 1.05rem;
  border-radius: 1.1rem;
  font-size: 0.94rem;
  line-height: 1.65;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-msg--user .chat-bubble {
  background: var(--grad-brand);
  color: #04141A;
  font-weight: 500;
  border-bottom-right-radius: 0.3rem;
}
.chat-msg--assistant .chat-bubble {
  background: var(--glass-fill-hover);
  color: var(--ink-base);
  border: 1px solid var(--hairline);
  border-bottom-left-radius: 0.3rem;
}

/* ----------------------------------------------------------
   Typing indicator (three bouncing dots)
---------------------------------------------------------- */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 0.65rem;
  align-self: flex-start;
}
.chat-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  animation: chat-typing-bounce 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.18s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes chat-typing-bounce {
  0%, 80%, 100% { transform: translateY(0);    opacity: 0.4; }
  40%           { transform: translateY(-6px); opacity: 1;   }
}

/* ----------------------------------------------------------
   Composer (textarea + send button)
---------------------------------------------------------- */
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.02);
}
.chat-input {
  flex: 1;
  font-family: 'Inter', ui-sans-serif, sans-serif;
  font-size: 0.92rem;
  color: var(--ink-hi);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline);
  border-radius: 0.85rem;
  padding: 0.7rem 0.95rem;
  line-height: 1.55;
  resize: none;
  min-height: 2.6rem;
  max-height: 8rem;
  overflow-y: auto;
  transition: border-color 220ms var(--ease-premium),
              background-color 220ms var(--ease-premium),
              box-shadow 220ms var(--ease-premium);
}
.chat-input::placeholder { color: var(--ink-faint); }
.chat-input:focus {
  outline: none;
  border-color: var(--hairline-glow);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.chat-input:disabled { opacity: 0.45; cursor: not-allowed; }
.chat-send-btn {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
}
.chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ----------------------------------------------------------
   Disclaimer
---------------------------------------------------------- */
.chat-disclaimer {
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-faint);
  text-align: center;
  padding: 0.6rem 1.25rem 0.9rem;
  border-top: 1px solid var(--hairline);
}
.chat-disclaimer strong { color: var(--ink-mut); font-weight: 500; }
.chat-disclaimer a { color: var(--c-cyan); }
.chat-disclaimer a:hover { color: var(--c-violet); }

/* ----------------------------------------------------------
   Lead summary review card (rendered by chatbot.js on done)
---------------------------------------------------------- */
.chat-summary {
  padding: 1.25rem 1.35rem;
  border-radius: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 100%;
}
.chat-summary-heading {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink-hi);
}
.chat-summary-list {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.45rem;
  font-size: 0.88rem;
}
.chat-summary-list dt {
  color: var(--ink-faint);
  font-weight: 500;
  white-space: nowrap;
  padding-top: 0.05rem;
}
.chat-summary-list dd {
  color: var(--ink-base);
  word-break: break-word;
  margin: 0;
}
.chat-summary-line {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-mut);
  padding-top: 0.2rem;
  border-top: 1px solid var(--hairline);
}
.chat-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.chat-summary-hint {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* ----------------------------------------------------------
   Post-delivery action rows and final-step card
---------------------------------------------------------- */
.chat-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0;
}
.chat-final-step {
  padding: 1.25rem 1.35rem;
  border-radius: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-final-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-base);
  font-weight: 500;
}

/* ----------------------------------------------------------
   Static form <details> fallback wrapper
---------------------------------------------------------- */
.chat-form-fallback { display: block; }
.chat-form-fallback-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-base);
  background: var(--glass-fill);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  cursor: pointer;
  list-style: none;
  transition: color 220ms var(--ease-premium),
              border-color 220ms var(--ease-premium),
              background-color 220ms var(--ease-premium);
  user-select: none;
}
.chat-form-fallback-summary::-webkit-details-marker { display: none; }
.chat-form-fallback-summary::marker { content: ''; }
.chat-form-fallback-summary:hover {
  color: var(--ink-hi);
  border-color: var(--hairline-glow);
  background: var(--glass-fill-hover);
}
.chat-form-fallback-summary svg:first-child { color: var(--c-cyan); flex-shrink: 0; }
.chat-form-fallback-chevron {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  color: var(--ink-faint);
  transition: transform 320ms var(--ease-premium), color 220ms var(--ease-premium);
}
.chat-form-fallback[open] .chat-form-fallback-summary {
  border-color: var(--hairline-glow);
  background: var(--glass-fill-hover);
  color: var(--ink-hi);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.chat-form-fallback[open] .chat-form-fallback-chevron { transform: rotate(180deg); color: var(--c-cyan); }
.chat-form-fallback-body { padding-bottom: 0.25rem; }

/* ----------------------------------------------------------
   Reduced motion — add chat elements to the no-animation list
   (follows the exact same pattern as the block at ~line 756)
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .chat-typing-dot, .status-dot--live::after {
    animation: none !important;
  }
}

/* ----------------------------------------------------------
   Small-screen chat tweaks
---------------------------------------------------------- */
@media (max-width: 640px) {
  .chat-log    { min-height: 14rem; max-height: 60vh; padding: 1rem; }
  .chat-msg    { max-width: 94%; }
  .chat-summary { padding: 1rem; }
}

/* ============================================================
   SPA OVERLAY LAYER
   Floating launcher (WhatsApp + AI chat), chat panel,
   scroll-progress bar, back-to-top, and quick chips.
   All transitions use --ease-premium. All colours from the
   existing design-token set — nothing new added to :root.
============================================================ */

/* ----------------------------------------------------------
   Scroll progress bar
---------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-brand);
  z-index: 200;
  transition: width 60ms linear;
  pointer-events: none;
  border-radius: 0 999px 999px 0;
}

/* ----------------------------------------------------------
   Floating launcher container
---------------------------------------------------------- */
.float-launcher {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

/* ----------------------------------------------------------
   Shared circular button base
---------------------------------------------------------- */
.float-launcher-btn {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-decoration: none;
  transition: transform 240ms var(--ease-premium),
              box-shadow 240ms var(--ease-premium),
              background 240ms var(--ease-premium),
              border-color 240ms var(--ease-premium);
}
.float-launcher-btn:hover  { transform: scale(1.08); }
.float-launcher-btn:active { transform: scale(0.95); }

/* ----------------------------------------------------------
   WhatsApp button — glass-cyan (Dazz Tech language, not green)
---------------------------------------------------------- */
.float-wa-btn {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.28);
  color: var(--c-cyan);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.18),
              inset 0 1px 0 rgba(255,255,255,0.06);
}
.float-wa-btn:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 6px 28px rgba(34, 211, 238, 0.32),
              inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--c-cyan);
}

/* ----------------------------------------------------------
   AI chat launcher — brand gradient
---------------------------------------------------------- */
.float-chat-btn {
  background: var(--grad-brand);
  border-color: transparent;
  color: #04141A;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.38),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
.float-chat-btn:hover {
  box-shadow: 0 6px 32px rgba(99, 102, 241, 0.55),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Icon swap: shows chat icon by default, X when panel open */
#chat-launch-icon-close { display: none; }
.chat-panel-is-open #chat-launch-icon-open  { display: none; }
.chat-panel-is-open #chat-launch-icon-close { display: inline-flex; }

/* ----------------------------------------------------------
   Tooltip label (slides in from the right on hover)
---------------------------------------------------------- */
.float-tooltip {
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--navy-elev);
  color: var(--ink-hi);
  font-family: 'Inter', ui-sans-serif, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.38rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid var(--hairline);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms var(--ease-premium),
              transform 180ms var(--ease-premium);
}
.float-launcher-btn:hover .float-tooltip,
.float-launcher-btn:focus-visible .float-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ----------------------------------------------------------
   Pulse keyframes — attention on first load; removed by JS
   after first panel open so they don't loop indefinitely.
---------------------------------------------------------- */
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(99,102,241,0.38), 0 0 0 0    rgba(99,102,241,0.4); }
  50%       { box-shadow: 0 4px 20px rgba(99,102,241,0.38), 0 0 0 12px rgba(99,102,241,0);   }
}
@keyframes wa-float-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(34,211,238,0.18), 0 0 0 0    rgba(34,211,238,0.35); }
  50%       { box-shadow: 0 4px 20px rgba(34,211,238,0.18), 0 0 0 10px rgba(34,211,238,0);   }
}
.float-pulse    { animation: float-pulse    2.4s var(--ease-premium) 3s   3 both; }
.wa-float-pulse { animation: wa-float-pulse 2.4s var(--ease-premium) 3.6s 3 both; }

/* ----------------------------------------------------------
   Chat panel overlay
---------------------------------------------------------- */
.chat-panel-overlay {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  z-index: 89;
  width: min(24rem, calc(100vw - 2rem));
  height: min(600px, calc(100vh - 8rem));
  display: flex;
  flex-direction: column;
  background: var(--navy-panel);
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55),
              inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  /* Closed (default) */
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
  transition: opacity 300ms var(--ease-premium),
              transform 300ms var(--ease-premium);
  will-change: opacity, transform;
}
.chat-panel-overlay.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Make #chat + .chat-shell fill the panel height; position:relative anchors the lead-magnet overlay */
.chat-panel-overlay #chat {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.chat-panel-overlay .chat-shell {
  flex: 1;
  min-height: 0;
}
/* Override booking-page max-height so log fills the panel */
.chat-panel-overlay .chat-log {
  flex: 1;
  min-height: 0;
  max-height: none;
}

/* ----------------------------------------------------------
   Back-to-top button (bottom-left)
---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.5rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-fill-hover);
  border: 1px solid var(--hairline);
  color: var(--ink-mut);
  cursor: pointer;
  /* Hidden by default */
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 280ms var(--ease-premium),
              transform 280ms var(--ease-premium),
              color 200ms var(--ease-premium),
              border-color 200ms var(--ease-premium),
              background 200ms var(--ease-premium);
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  color: var(--c-cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}
.back-to-top:active { transform: scale(0.9); }

/* ----------------------------------------------------------
   Quick chips (pre-filled prompts in the panel header area)
   Hidden after the first user message (JS adds has-messages
   to #chat; CSS selector does the rest with no JS-toggle).
---------------------------------------------------------- */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255,255,255,0.015);
}
.chat-chip {
  font-family: 'Inter', ui-sans-serif, sans-serif;
  font-size: 0.77rem;
  font-weight: 500;
  color: var(--c-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  cursor: pointer;
  transition: background 200ms var(--ease-premium),
              border-color 200ms var(--ease-premium),
              color 200ms var(--ease-premium);
  white-space: nowrap;
}
.chat-chip:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--ink-hi);
}
.chat-chip:active { transform: scale(0.95); }
/* Hide row once any user message appears */
#chat.has-messages .chat-chips { display: none; }

/* ----------------------------------------------------------
   Reduced motion — disable all SPA overlay animations
---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .float-pulse, .wa-float-pulse       { animation: none !important; }
  .chat-panel-overlay, .back-to-top   { transition: none !important; }
  .scroll-progress                    { transition: none !important; }
  .float-launcher-btn                 { transition: none !important; }
}

/* ----------------------------------------------------------
   Mobile overrides
---------------------------------------------------------- */
@media (max-width: 480px) {
  .float-launcher     { bottom: 1.25rem; right: 1.1rem; gap: 0.7rem; }
  .float-launcher-btn { width: 3rem; height: 3rem; }
  .chat-panel-overlay {
    width: calc(100vw - 1.25rem);
    height: min(520px, calc(100vh - 7rem));
    right: 0.625rem;
    bottom: 5.5rem;
    border-radius: 1rem;
  }
  .back-to-top { bottom: 1.25rem; left: 1.1rem; }
}

/* ============================================================================
   LEAD MAGNET OVERLAY LAYER  (Phase 4 — relocated to full-viewport modal)
   ----------------------------------------------------------------------------
   Fixed, full-viewport centered modal. position:fixed; z-index:300 places
   it above: chat-panel-overlay (89), float-launcher (90), back-to-top (90),
   scroll-progress (200), toast-region (200) — and below skip-link (9999).

   The HTML was moved out of #chat to a top-level sibling of
   #chat-panel-overlay so it truly covers the full viewport. The .chat-panel-
   overlay #chat { position:relative } rule from Phase 3 is intentionally
   preserved — it is harmless and avoids any potential side-effects on the
   chat panel layout.

   All IDs/classes are identical to the Phase 3 version — js/lead-magnet.js
   requires zero changes to its element queries.

   Default state:  aria-hidden="true", opacity:0, pointer-events:none.
   Active state:   .is-visible — opacity:1, pointer-events:auto.

   Z-index scale (final):
     skip-link       9999   (off-screen until :focus)
     lead-magnet-overlay 300  ← this layer
     scroll-progress  200   = toast-region 200
     float-launcher    90   = back-to-top 90
     chat-panel-overlay 89
     navbar            50
============================================================================ */

.lead-magnet-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 12, 22, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease-premium);
}

.lead-magnet-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Inner glass card — premium centered card */
.lead-magnet-inner {
  width: 100%;
  max-width: 30rem;
  padding: 2rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transform: translateY(10px) scale(0.98);
  transition: transform 320ms var(--ease-premium);
}

.lead-magnet-overlay.is-visible .lead-magnet-inner {
  transform: translateY(0) scale(1);
}

.lead-magnet-headline {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-hi);
  line-height: 1.3;
  margin: 0;
}

.lead-magnet-body {
  font-size: 0.88rem;
  color: var(--ink-mut);
  line-height: 1.55;
  margin: 0;
}

/* Form */
.lead-magnet-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.lead-magnet-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lead-magnet-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: var(--ink-hi);
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 0.6rem 0.85rem;
  outline: none;
  font-family: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  box-sizing: border-box;
}

.lead-magnet-input:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.18);
}

.lead-magnet-input::placeholder {
  color: var(--ink-faint);
}

.lead-magnet-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lead-magnet-error {
  font-size: 0.75rem;
  color: #f87171; /* red-400 */
  min-height: 1.1em;
  margin: 0;
  line-height: 1.3;
}

/* Submit button — full width */
.lead-magnet-submit {
  width: 100%;
  font-size: 0.88rem !important;
  padding: 0.65rem 1rem !important;
  min-height: 44px;
}

/* Microcopy below form */
.lead-magnet-microcopy {
  font-size: 0.74rem;
  color: var(--ink-faint);
  text-align: center;
  margin: 0;
}

/* Skip link */
.lead-magnet-skip {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink-mut);
  text-align: center;
  padding: 0.4rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
  font-family: inherit;
}

.lead-magnet-skip:hover,
.lead-magnet-skip:focus-visible {
  color: var(--ink-hi);
  outline: none;
}

.lead-magnet-skip:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Success state */
.lead-magnet-success {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  text-align: center;
}

.lead-magnet-success-text {
  font-size: 0.9rem;
  color: var(--ink-hi);
  line-height: 1.55;
  margin: 0;
}

.lead-magnet-continue-btn {
  font-size: 0.88rem !important;
  padding: 0.65rem 1.4rem !important;
  min-height: 44px;
}

/* Mobile ≤480px — bottom-sheet style, comfortable above keyboard */
@media (max-width: 480px) {
  .lead-magnet-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .lead-magnet-inner {
    max-width: none;
    padding: 1.35rem;
    border-radius: 1rem 1rem 0 0;
    gap: 0.75rem;
  }

  .lead-magnet-headline {
    font-size: 1rem;
  }

  .lead-magnet-body {
    font-size: 0.82rem;
  }

  .lead-magnet-input {
    font-size: 0.88rem; /* prevent iOS zoom on focus */
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lead-magnet-overlay,
  .lead-magnet-inner {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================================================
   FOUNDER SECTION LAYER  (Phase 4)
   ----------------------------------------------------------------------------
   #founder — between #after and #faq. Two-column layout (video | bio) on
   desktop, single column on mobile. Uses existing glass / btn / kicker tokens.
============================================================================ */

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

/* 16:9 video frame */
.founder-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--navy-panel);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bio column */
.founder-bio {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.founder-name {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-hi);
  margin: 0;
}

.founder-role {
  font-size: 0.82rem;
  color: var(--c-cyan);
  margin: 0;
  letter-spacing: 0.01em;
}

.founder-text {
  font-size: 0.9rem;
  color: var(--ink-base);
  line-height: 1.65;
  margin: 0;
}

/* Reduced motion — disable founder reveal animation */
@media (prefers-reduced-motion: reduce) {
  #founder [data-reveal] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================================
   GUARANTEE STRIP (F7 — operational-certainty block under #contact CTA)
============================================================================ */

.guarantee-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.75rem;
  max-width: 36rem;
  text-align: left;
}

.guarantee-icon {
  flex-shrink: 0;
  color: var(--c-cyan);
  margin-top: 0.1rem;
}

.guarantee-text {
  font-size: 0.8rem;
  color: var(--ink-mut);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   NAVBAR BRAND LOGO CHIP
   ----------------------------------------------------------------------------
   The "DT" favicon mark has a dark-navy "D" that blends into the dark navbar.
   This light, rounded app-icon tile gives it the contrast it needs so both
   the navy "D" and the cyan "T" read clearly, with a subtle cyan glow to keep
   it premium and on-brand.
============================================================================ */

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.3rem;
  border-radius: 0.65rem;
  background: #F8FAFC;
  box-shadow: 0 4px 14px -4px rgba(34, 211, 238, 0.45),
              inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.nav-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
