/* ============================================================================
   Brewed AI — Landing Page Styles
   ----------------------------------------------------------------------------
   Structure:
     1.  Design tokens
     2.  Reset & base
     3.  Layout primitives
     4.  Typography
     5.  Buttons & pills
     6.  Header / navigation
     7.  Hero (WebGL + copy)
     8.  Marquee
     9.  How it works
     10. Agent catalog (3D tilt cards)
     10b. Interactive business examples
     11. Live console demo
     12. Pricing
     13. Security & trust
     13b. FAQ
     13c. Team
     14. Final CTA
     14b. Contact & phone
     14c. Front Desk chat
     15. Footer
     15b. Touch ergonomics
     16. Scroll reveal
     17. Responsive
     18. Reduced motion / no-WebGL fallbacks
   ========================================================================== */

/* ------------------------------------------------------- 1. design tokens - */

:root {
  /* Brand — pulled from the Brewed AI logo + Brewed Security navy */
  --navy-900: #050a15;
  --navy-850: #070d1c;
  --navy-800: #0a1226;
  --navy-700: #0e1a33;
  --navy-600: #142b52;
  --panel:    #101c36;
  --panel-2:  #162443;

  --blue-400: #7fd4ff;
  --blue-500: #38bdf8;
  --blue-600: #1d8fe0;
  --blue-700: #1a6fc4;
  --blue-900: #123a63;

  --amber:    #fbbf24;
  --amber-dk: #b7791f;
  --crema:    #f7ead0;
  --coffee:   #5b3829;
  --espresso: #2e1a10;

  --ink:        #f4f7fc;
  --ink-muted:  #9fb0cc;
  --ink-dim:    #6b7d9c;
  --ink-dark:   #0b1329;
  --ink-dark-2: #4a5568;

  --line:        rgba(148, 190, 240, 0.14);
  --line-strong: rgba(148, 190, 240, 0.26);
  --line-light:  rgba(69, 26, 3, 0.13);

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Space */
  --gutter: 24px;
  --maxw: 1200px;
  --section-y: clamp(80px, 10vw, 140px);

  /* Effects */
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-card: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 60px -12px rgba(56, 189, 248, 0.45);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------- 2. reset/base - */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
/* Width attributes must not fight CSS sizing — class rules still win. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(251, 191, 36, 0.85); color: #16100a; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ambient page glow behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 68% -6%, rgba(29, 143, 224, 0.16), transparent 62%),
    radial-gradient(820px 520px at 8% 12%, rgba(120, 53, 15, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(26, 111, 196, 0.12), transparent 60%);
}

/* Fine noise so the large dark fields don't band */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------- 3. layout primitives -- */

.wrap {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); position: relative; }

.section--light {
  background: linear-gradient(180deg, #fdfbf7 0%, #f7ead0 100%);
  color: var(--ink-dark);
}

.section--rule { border-top: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--light .eyebrow { color: var(--coffee); }

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--ink-muted);
  max-width: 62ch;
  margin: 0;
}
.section--light .lede { color: var(--ink-dark-2); }

/* ----------------------------------------------------- 4. typography ----- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0;
  font-variation-settings: 'SOFT' 12, 'WONK' 0;
}

h1 { font-size: clamp(2.7rem, 5vw, 4.9rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); margin-bottom: 18px; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }

.grad-text {
  background: linear-gradient(96deg, #fde68a 0%, var(--amber) 42%, #f0a814 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amber-text { color: var(--amber); }

/* ---------------------------------------------------------- 5. buttons --- */

.btn {
  --btn-bg: var(--amber);
  --btn-fg: #16100a;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  box-shadow: 0 10px 30px -10px rgba(251, 191, 36, 0.55);
}

.btn::after { /* sheen sweep */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(251, 191, 36, 0.65); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(-1px); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.03);
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 14px 34px -14px rgba(56, 189, 248, 0.6);
}

.btn--navy { --btn-bg: var(--navy-800); --btn-fg: #fff; box-shadow: 0 10px 26px -12px rgba(10, 18, 38, 0.7); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Small status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--ink-muted);
  letter-spacing: 0.005em;
}
.pill b { color: var(--ink); font-weight: 650; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: ping 2.4s ease-out infinite;
  flex: none;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ----------------------------------------------------------- 6. header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.4s var(--ease-out), border-color 0.4s, padding 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(5, 10, 21, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 8px 0;
}

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; flex: none; }
/* The logo artwork is navy-on-transparent, so it ships with its cream plate
   baked into the PNG. That way it stays legible even if this stylesheet is
   stale or fails to load — do not add a background here as well. */
.brand img {
  height: 62px;
  width: auto;
  border-radius: 13px;
  box-shadow: 0 6px 22px -10px rgba(0, 0, 0, 0.55);
  transition: height 0.4s var(--ease-out), box-shadow 0.3s;
}
.brand:hover img { box-shadow: 0 10px 28px -10px rgba(56, 189, 248, 0.45); }
.site-header.is-stuck .brand img { height: 48px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 550;
}
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-muted);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4.5px); }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { transform: rotate(-45deg); }

/* ------------------------------------------------------------- 7. hero --- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 140px 0 90px;
  isolation: isolate;
  overflow: hidden;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#hero-canvas { width: 100%; height: 100%; }

/* Vignette + bottom fade so text stays legible over the scene */
.hero-canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 21, 0.94) 0%, rgba(5, 10, 21, 0.78) 26%, rgba(5, 10, 21, 0.2) 46%, transparent 62%),
    linear-gradient(180deg, rgba(5, 10, 21, 0.7) 0%, transparent 22%, transparent 66%, var(--navy-900) 99%);
}

/* CSS fallback shown when WebGL is unavailable */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  background:
    radial-gradient(circle at 68% 42%, rgba(56, 189, 248, 0.24), transparent 45%),
    radial-gradient(circle at 66% 44%, rgba(251, 191, 36, 0.16), transparent 30%);
}
.no-webgl .hero-fallback { display: block; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 40px;
  align-items: center;
}

.hero-copy { max-width: 660px; }

.hero h1 { margin: 20px 0 22px; }
.hero h1 .line { display: block; }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 50ch;
  margin: 0;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-proof strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.75vw, 1.32rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}
.hero-proof span { font-size: 0.78rem; color: var(--ink-dim); line-height: 1.4; display: block; }

/* Floating status cards layered over the 3D scene */
.hero-cards {
  position: relative;
  height: 460px;
  perspective: 1200px;
}

.float-card {
  position: absolute;
  width: 268px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(22, 36, 67, 0.88), rgba(8, 15, 32, 0.82));
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  animation: bob 6s ease-in-out infinite;
}
.float-card::before { /* top edge highlight */
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 212, 255, 0.7), transparent);
}
.float-card .fc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 8px;
}
.float-card.is-done .fc-top { color: #4ade80; }
.float-card .fc-title { font-size: 0.9rem; font-weight: 620; margin: 0 0 4px; line-height: 1.3; }
.float-card p { margin: 0; font-size: 0.78rem; color: var(--ink-dim); line-height: 1.45; }

.float-card--1 { top: 8%;  left: -4%;  transform: translateZ(60px) rotateY(9deg)  rotateX(3deg);  animation-delay: -0.4s; }
.float-card--2 { top: 34%; right: -6%; transform: translateZ(20px) rotateY(-9deg) rotateX(2deg);  animation-delay: -2.1s; }
.float-card--3 { bottom: 6%; left: 8%; transform: translateZ(40px) rotateY(6deg)  rotateX(-2deg); animation-delay: -3.6s; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.scroll-cue i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, var(--blue-500), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.25; scale: 1 0.5; } 50% { opacity: 1; scale: 1 1; } }

/* --------------------------------------------------------- 8. marquee ---- */

.marquee {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 18px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.marquee span::before { content: '◆'; color: var(--amber); font-size: 0.55rem; opacity: 0.75; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------------------------------------------------- 9. how it works ---- */

.steps { display: grid; gap: 0; margin-top: 40px; }

.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line-light);
  transition: background 0.3s;
}
.step:last-child { border-bottom: 1px solid var(--line-light); }
.step:hover { background: rgba(120, 53, 15, 0.035); }
.step-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--coffee);
  opacity: 0.5;
  line-height: 1;
  letter-spacing: -0.05em;
}
.step h3 { margin-bottom: 6px; color: var(--ink-dark); }
.step p { margin: 0; color: var(--ink-dark-2); font-size: 0.95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 76px); align-items: center; }

/* Photograph in the light section — a real hand brewing real coffee, which is
   the point of the name. Replaced the AI-generated brand board that used to sit
   here and made the whole page read as machine-made. */
.how-figure { margin: 0; }
.how-figure img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 26px 60px -24px rgba(69, 26, 3, 0.5);
  border: 1px solid rgba(69, 26, 3, 0.12);
}
.how-figure figcaption {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 0.92rem;
  color: var(--ink-dark-2);
  line-height: 1.6;
}
.how-figure figcaption strong { color: var(--ink-dark); font-weight: 640; }

/* ---------------------------------------------- 10. agent catalog cards -- */

.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.agent-card {
  position: relative;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(22, 36, 67, 0.62), rgba(8, 14, 30, 0.72));
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

/* Cursor-tracking spotlight (position set from JS via --mx/--my) */
.agent-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(56, 189, 248, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
}
.agent-card:hover::before { opacity: 1; }
.agent-card:hover {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 32px 70px -26px rgba(0, 0, 0, 0.85), 0 0 44px -20px rgba(56, 189, 248, 0.6);
}

.agent-card > * { transform: translateZ(28px); }

.agent-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 20px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(26, 111, 196, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--blue-400);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(45px);
}
.agent-icon svg { width: 24px; height: 24px; }

.agent-card h3 { margin-bottom: 9px; }
.agent-card p { margin: 0 0 20px; font-size: 0.92rem; color: var(--ink-muted); }

.agent-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 0.75rem;
  font-weight: 550;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-dim);
}

.agent-card--soon { border-style: dashed; }
.agent-card--soon .agent-icon { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: linear-gradient(145deg, rgba(251, 191, 36, 0.16), rgba(120, 53, 15, 0.1)); }

.badge-soon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 4px 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  transform: translateZ(40px);
}

/* ------------------------------------------ 10b. business examples ------- */

.examples {
  background:
    radial-gradient(720px 420px at 12% 56%, rgba(251, 191, 36, 0.07), transparent 66%),
    radial-gradient(700px 460px at 86% 48%, rgba(56, 189, 248, 0.09), transparent 68%);
}

.example-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.example-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-muted);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.example-tab:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--ink); }
.example-tab.is-active {
  color: var(--ink);
  border-color: rgba(56, 189, 248, 0.52);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(22, 36, 67, 0.46));
  box-shadow: 0 14px 36px -22px rgba(56, 189, 248, 0.7);
}
.example-tab > span:last-child { display: grid; gap: 2px; min-width: 0; }
.example-tab strong { font-size: 0.9rem; line-height: 1.25; }
.example-tab small { color: var(--ink-dim); font-size: 0.73rem; line-height: 1.35; }
.example-tab-icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--blue-400);
  font-family: var(--mono);
  font-size: 0.72rem;
}
.example-tab.is-active .example-tab-icon { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); }

.example-stage {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, rgba(16, 28, 54, 0.94), rgba(6, 11, 24, 0.92));
  box-shadow: var(--shadow-card);
}
.example-simbar {
  display: grid;
  grid-template-columns: minmax(250px, auto) minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.sim-status { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sim-status > span:last-child { display: grid; min-width: 0; }
.sim-status small { color: var(--ink-dim); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.sim-status strong { overflow: hidden; color: var(--ink-muted); font-size: 0.78rem; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.sim-pulse { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1); }
.example-stage.is-running .sim-pulse { animation: simPulse 1.2s ease-out infinite; }
.example-stage.is-waiting .sim-pulse { background: var(--amber); box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.1); }
.example-stage.is-complete .sim-pulse { background: #4ade80; box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.1); }
@keyframes simPulse { 70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); } }
.sim-progress { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.sim-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-600), var(--blue-400), var(--amber)); transition: width 0.55s var(--ease-out); }
.sim-run {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.sim-run:hover { transform: translateY(-2px); background: rgba(251, 191, 36, 0.17); }
.sim-run svg { flex: none; }
.example-stage.is-running .sim-run svg { animation: runSpin 1.1s linear infinite; }
@keyframes runSpin { to { transform: rotate(360deg); } }

.sim-narrate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.sim-narrate:hover { color: var(--ink); border-color: var(--ink-dim); transform: translateY(-2px); }
.sim-narrate .icon-sound-off { display: none; }
.sim-narrate[aria-pressed="true"] { color: var(--blue-400); border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.1); }
.sim-narrate[aria-pressed="false"] .icon-sound-on { display: none; }
.sim-narrate[aria-pressed="false"] .icon-sound-off { display: block; }
.example-panel { display: grid; grid-template-columns: minmax(260px, 0.78fr) minmax(460px, 1.22fr); }
.examples.is-enhanced .example-panel:not(.is-active) { display: none; }
.examples.is-enhanced .example-panel.is-active { animation: exampleIn 0.48s var(--ease-out); }
@keyframes exampleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.example-story {
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.07), transparent 62%);
}
.example-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.example-story h3 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); margin-bottom: 16px; }
.example-story > p:not(.example-kicker) { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }
.example-outcome { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.example-outcome span { display: block; margin-bottom: 7px; color: var(--blue-400); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.example-outcome strong { display: block; font-size: 0.92rem; line-height: 1.55; }

.example-thread { margin: 0; padding: 28px clamp(20px, 4vw, 42px); display: flex; flex-direction: column; gap: 16px; }

.thread-msg, .thread-agent, .approval-card, .thread-final {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.thread-msg.is-shown, .thread-agent.is-shown, .approval-card.is-shown, .thread-final.is-shown { opacity: 1; transform: none; }

.thread-msg { display: flex; align-items: flex-end; gap: 10px; }
.thread-msg--out { flex-direction: row-reverse; }
.thread-avatar {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--navy-800); color: var(--blue-400);
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
}
.thread-avatar--agent { background: linear-gradient(145deg, var(--blue-600), var(--blue-900)); color: #fff; border-color: transparent; }
.thread-bubble { max-width: min(420px, 82%); padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.thread-bubble--agent { background: linear-gradient(145deg, rgba(56, 189, 248, 0.16), rgba(29, 143, 224, 0.07)); border-color: rgba(56, 189, 248, 0.32); }
.thread-bubble p { margin: 0 0 5px; font-size: 0.9rem; line-height: 1.5; color: var(--ink); }
.thread-bubble small { color: var(--ink-dim); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.thread-typing { display: none; align-items: center; gap: 4px; padding: 4px 2px; }
.thread-msg.is-typing .thread-typing { display: inline-flex; }
.thread-typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-dim); animation: threadTypingBounce 1s infinite ease-in-out; }
.thread-typing span:nth-child(2) { animation-delay: 0.15s; }
.thread-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes threadTypingBounce { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.thread-agent { display: flex; gap: 10px; }
.agent-check-list { flex: 1; padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(255, 255, 255, 0.025); }
.agent-check-list strong { display: block; margin-bottom: 10px; font-size: 0.85rem; }
.agent-check-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.agent-check-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.83rem; color: var(--ink-muted); }
.agent-check-list li em { flex: none; font-style: normal; color: #4ade80; opacity: 0; transform: scale(0.6); transition: opacity 0.25s, transform 0.25s var(--ease-out); }
.agent-check-list.is-checked li em { opacity: 1; transform: none; }
.agent-check-list.is-checked li:nth-child(1) em { transition-delay: 0.05s; }
.agent-check-list.is-checked li:nth-child(2) em { transition-delay: 0.28s; }
.agent-check-list.is-checked li:nth-child(3) em { transition-delay: 0.51s; }
.agent-check-list.is-checked li:nth-child(4) em { transition-delay: 0.74s; }

.approval-card { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.approval-kicker { display: block; margin-bottom: 10px; color: var(--amber); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.approval-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink); }
.approval-card p[contenteditable="true"] { padding: 4px 6px; margin: -4px -6px; border-radius: 8px; outline: 2px solid rgba(251, 191, 36, 0.5); background: rgba(0, 0, 0, 0.2); }
.approval-actions { display: flex; gap: 10px; margin-top: 16px; }
.approval-card.is-approved .approval-actions { display: none; }
.approval-done { display: none; align-items: center; gap: 8px; margin-top: 14px; color: #4ade80; font-size: 0.85rem; font-weight: 600; }
.approval-card.is-approved .approval-done { display: flex; }
.btn-approve, .btn-edit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-out), border-color 0.25s;
}
.btn-approve { border: 1px solid rgba(74, 222, 128, 0.45); background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.btn-approve:hover { transform: translateY(-2px); background: rgba(74, 222, 128, 0.22); }
.btn-edit { border: 1px solid var(--line-strong); background: transparent; color: var(--ink-muted); }
.btn-edit:hover { color: var(--ink); border-color: var(--ink-dim); }
.approval-card:not(.is-shown) .btn-approve,
.approval-card:not(.is-shown) .btn-edit { pointer-events: none; }

.thread-final { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(74, 222, 128, 0.3); background: rgba(74, 222, 128, 0.08); }
.thread-final-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #4ade80; color: #08130b; font-size: 0.76rem; font-weight: 700; }
.thread-final span:last-child { font-size: 0.88rem; color: var(--ink); }

.example-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.example-foot p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; }
.example-foot p strong { color: var(--ink); }

@media (max-width: 900px) {
  .example-picker { grid-template-columns: 1fr; }
  .example-tab { min-height: 70px; }
  .example-panel { grid-template-columns: 1fr; }
  .example-simbar { grid-template-columns: 1fr auto auto; }
  .sim-progress { grid-column: 1 / -1; grid-row: 2; }
  .example-story { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .example-simbar { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
  .sim-progress { grid-column: 1 / -1; grid-row: auto; }
  .sim-run, .sim-narrate { width: 100%; }
  .example-foot { align-items: stretch; flex-direction: column; }
  .example-story { padding: 28px 22px; }
  .example-thread { padding: 22px; }
  .thread-bubble { max-width: 88%; }
}

/* --------------------------------------------------- 11. console demo ---- */

.console-wrap { perspective: 1600px; }

.console {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(16, 28, 54, 0.95), rgba(6, 11, 24, 0.96));
  box-shadow: var(--shadow-card), 0 0 90px -40px rgba(56, 189, 248, 0.7);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
}
.console-wrap:hover .console { transform: rotateY(-2deg) rotateX(1deg); }

.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
  color: var(--ink-dim);
}
.console-bar .lights { display: flex; gap: 6px; margin-right: 6px; }
.console-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: #2c3c5c; }
.console-bar .lights i:first-child { background: #ff5f57; }
.console-bar .lights i:nth-child(2) { background: #febc2e; }
.console-bar .lights i:nth-child(3) { background: #28c840; }
.console-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: #4ade80; font-weight: 600; letter-spacing: 0.08em; }

.console-body { padding: 8px 18px 18px; min-height: 340px; font-family: var(--mono); }

.log-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  opacity: 0;
  transform: translateY(10px);
  animation: logIn 0.55s var(--ease-out) forwards;
}
.log-row:last-child { border-bottom: 0; }
@keyframes logIn { to { opacity: 1; transform: none; } }

.log-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--blue-400);
  font-size: 0.85rem;
}
.log-row.is-review .log-icon { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.3); color: var(--amber); }

.log-main b {
  display: block;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.log-main small { display: block; margin-top: 3px; font-size: 0.76rem; color: var(--ink-dim); }
.log-status { font-size: 0.76rem; color: #4ade80; padding-top: 3px; white-space: nowrap; }
.log-row.is-review .log-status { color: var(--amber); }

.console-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
}
.caret { display: inline-block; width: 8px; height: 15px; background: var(--amber); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------- 12. pricing -- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(20, 33, 62, 0.55), rgba(7, 13, 28, 0.65));
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }

.price-card--feature {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(170deg, rgba(45, 36, 22, 0.6), rgba(10, 16, 32, 0.8));
  box-shadow: 0 30px 70px -30px rgba(251, 191, 36, 0.4);
}
.price-card--feature::after {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 30px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--amber);
  color: #16100a;
}

.price-name { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-400); }
.price-card--feature .price-name { color: var(--amber); }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 16px 0 6px;
  font-family: var(--serif);
  font-size: 3.1rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.price-amount sup { font-size: 1.3rem; top: -0.7em; }
.price-amount span { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--ink-dim); letter-spacing: 0; }

.price-setup {
  font-size: 0.79rem;
  color: var(--ink-dim);
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.price-setup b { color: var(--blue-400); font-weight: 650; }
.price-card--feature .price-setup b { color: var(--amber); }

.price-desc { font-size: 0.88rem; color: var(--ink-muted); margin: 0 0 24px; min-height: 42px; }

.price-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.price-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  align-items: start;
}
.price-list svg { width: 16px; height: 16px; margin-top: 4px; color: var(--blue-500); flex: none; }
.price-card--feature .price-list svg { color: var(--amber); }
.price-card .btn { margin-top: auto; width: 100%; }

.price-note { text-align: center; margin-top: 26px; font-size: 0.85rem; color: var(--ink-dim); }

/* ------------------------------------------------- 13. security & trust -- */

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 44px; }

.trust-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.trust-card:hover { background: rgba(56, 189, 248, 0.055); border-color: rgba(56, 189, 248, 0.32); transform: translateY(-4px); }
.trust-card svg { width: 22px; height: 22px; color: var(--blue-400); margin-bottom: 14px; }
.trust-card h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 640; margin-bottom: 7px; }
.trust-card p { margin: 0; font-size: 0.87rem; color: var(--ink-muted); }

.parent-brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 46px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, rgba(26, 111, 196, 0.1), rgba(120, 53, 15, 0.08));
}
.parent-brand .mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
}
.parent-brand p { margin: 5px 0 0; font-size: 0.9rem; color: var(--ink-muted); max-width: 62ch; }
.parent-brand strong { font-size: 1.02rem; }

/* ------------------------------------------------------------- 13b. FAQ -- */

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.faq-intro { position: sticky; top: 110px; }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-400); }
.faq-item summary h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0;
  color: inherit;
}

/* plus/minus built from two bars so it needs no icon font */
.faq-mark { position: relative; width: 15px; height: 15px; flex: none; }
.faq-mark::before,
.faq-mark::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 1.5px;
  background: var(--blue-500);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s;
}
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); opacity: 0; }

.faq-body { padding: 0 44px 24px 4px; }
.faq-body p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; max-width: 62ch; }
.faq-item[open] .faq-body { animation: faqIn 0.35s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

/* -------------------------------------------------------- 14. final CTA -- */

.cta {
  position: relative;
  padding-block: clamp(78px, 9vw, 122px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto;
  height: 160%;
  background: radial-gradient(closest-side, rgba(26, 111, 196, 0.24), transparent 72%);
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.cta h2 { margin-bottom: 16px; }
.cta .btn-row { justify-content: center; }

/* -------------------------------------------------------------- 13c. team -- */
/* Real photographs of real people. This section exists because everything else
   on the page is generated, and a page with no human faces reads as machine-made
   no matter how good the copy is. */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.team-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(22, 36, 67, 0.55), rgba(8, 14, 30, 0.6));
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.team-card:hover { border-color: rgba(56, 189, 248, 0.36); transform: translateY(-3px); }

.team-photo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(148, 190, 240, 0.28);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.8);
}

.team-role {
  margin: 0 0 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
}
.team-body h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 650; margin-bottom: 8px; }
.team-body p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }

/* Place — the local claim, shown rather than asserted */
.team-place {
  position: relative;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}
.team-place img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-place::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 10, 21, 0.96) 0%, rgba(5, 10, 21, 0.82) 42%, rgba(5, 10, 21, 0.35) 100%);
}
.team-place-copy { padding: 34px 36px; max-width: 560px; }
.team-place-copy h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 10px; }
.team-place-copy p { margin: 0 0 18px; font-size: 0.95rem; color: var(--ink-muted); }
.team-place-copy .btn { gap: 8px; }

@media (max-width: 560px) {
  .team-card { grid-template-columns: 1fr; gap: 16px; text-align: left; padding: 22px; }
  .team-photo { width: 104px; height: 104px; }
  .team-place-copy { padding: 26px 22px; }
  .team-place::after { background: linear-gradient(180deg, rgba(5, 10, 21, 0.55) 0%, rgba(5, 10, 21, 0.94) 55%); }
}

/* ------------------------------------------------- 14b. contact & phone -- */

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.25s, background 0.25s;
}
.nav-phone:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-phone svg { color: var(--blue-400); flex: none; }

.hero-call { margin: 18px 0 0; font-size: 0.92rem; color: var(--ink-dim); }
.hero-call a {
  color: var(--blue-400);
  font-weight: 620;
  border-bottom: 1px solid rgba(127, 212, 255, 0.35);
  padding-bottom: 1px;
}
.hero-call a:hover { color: var(--amber); border-color: var(--amber); }

.cta-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  text-align: left;
}

.contact-direct { display: grid; gap: 10px; }

.contact-route {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.contact-route:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}
.contact-route .cr-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--blue-400);
}
.contact-route .cr-icon svg { width: 21px; height: 21px; }
.contact-route small { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.contact-route strong { display: block; font-size: 1rem; font-weight: 640; margin-top: 3px; word-break: break-word; }

.contact-route--phone {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.06);
}
.contact-route--phone .cr-icon { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); color: var(--amber); }
.contact-route--phone:hover { border-color: rgba(251, 191, 36, 0.6); background: rgba(251, 191, 36, 0.1); }
.contact-route--phone strong { font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.02em; }

.contact-hours { margin: 6px 2px 0; font-size: 0.84rem; color: var(--ink-dim); line-height: 1.5; }

/* ---- form ---- */

.contact-form {
  padding: 28px 30px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(22, 36, 67, 0.6), rgba(8, 14, 30, 0.7));
  box-shadow: var(--shadow-card);
}
.contact-form h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 640; margin-bottom: 20px; }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { display: grid; gap: 6px; margin-bottom: 14px; }
.f-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-muted); }
.f-opt { font-weight: 400; color: var(--ink-dim); font-size: 0.76rem; }

.f-field input,
.f-field textarea {
  font-family: var(--sans);
  font-size: 0.94rem;
  color: var(--ink);
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(5, 10, 21, 0.55);
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
}
.f-field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.f-field input::placeholder,
.f-field textarea::placeholder { color: #5b6b87; }
.f-field input:focus,
.f-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: rgba(5, 10, 21, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.f-field input[aria-invalid="true"],
.f-field textarea[aria-invalid="true"] { border-color: #f87171; }
.f-err { font-size: 0.78rem; color: #f87171; }

.contact-form .btn { width: 100%; margin-top: 4px; }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; }

.f-note { margin: 14px 0 0; font-size: 0.8rem; color: var(--ink-dim); line-height: 1.5; }
.f-note a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 2px; }
.f-note a:hover { color: var(--blue-400); }

.f-status { margin: 14px 0 0; font-size: 0.88rem; display: none; }
.f-status.show { display: block; }
.f-status.ok { color: #4ade80; }
.f-status.bad { color: #f87171; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px 18px 20px; }
  .contact-route--phone strong { font-size: 1.25rem; }
}
@media (max-width: 860px) {
  .nav-phone span { display: none; }
  .nav-phone { padding: 0 12px; }
}

/* ------------------------------------------------ 14c. Front Desk chat -- */
/* The widget is a live demo of the Front Desk agent. No API key lives in the
   browser — it talks to the Cloudflare Worker in /worker. */

#bai-chat { position: fixed; right: 20px; bottom: 20px; z-index: 200; }

.bai-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #fcc93a, var(--amber));
  color: #16100a;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(251, 191, 36, 0.6), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.bai-launch:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(251, 191, 36, 0.7); }
.bai-launch-icon { display: grid; place-items: center; width: 22px; height: 22px; }
.bai-launch-icon svg { width: 20px; height: 20px; }
#bai-chat.is-open .bai-launch { opacity: 0; pointer-events: none; transform: scale(0.9); }

/* `display:flex` below would override the UA's [hidden] rule, leaving an
   invisible panel that still swallows clicks on the launch button. */
.bai-panel[hidden] { display: none; }

.bai-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(600px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(170deg, rgba(18, 30, 56, 0.98), rgba(6, 11, 24, 0.99));
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  animation: baiIn 0.32s var(--ease-out);
}
@keyframes baiIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

.bai-head {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.bai-avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--blue-400);
}
.bai-avatar svg { width: 19px; height: 19px; }
.bai-head-txt strong { display: block; font-size: 0.93rem; font-weight: 640; }
.bai-head-txt small { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--ink-dim); margin-top: 1px; }
.bai-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex: none; }
.bai-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.bai-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.bai-close svg { width: 15px; height: 15px; }

.bai-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.bai-log::-webkit-scrollbar { width: 8px; }
.bai-log::-webkit-scrollbar-thumb { background: rgba(148, 190, 240, 0.18); border-radius: 4px; }

.bai-msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: baiMsg 0.3s var(--ease-out);
}
@keyframes baiMsg { from { opacity: 0; transform: translateY(6px); } }
.bai-msg--agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}
.bai-msg--user {
  align-self: flex-end;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-bottom-right-radius: 5px;
  color: var(--ink);
}

.bai-typing { display: flex; gap: 4px; padding: 15px 14px; }
.bai-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-400);
  animation: baiBlink 1.3s ease-in-out infinite;
}
.bai-typing i:nth-child(2) { animation-delay: 0.18s; }
.bai-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes baiBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.bai-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 4px; }
.bai-suggest:empty { display: none; }
.bai-chip {
  font-family: var(--sans);
  font-size: 0.78rem;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.bai-chip:hover { border-color: rgba(56, 189, 248, 0.5); color: var(--ink); background: rgba(56, 189, 248, 0.08); }

.bai-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.bai-form.is-busy { opacity: 0.6; pointer-events: none; }
.bai-form textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(5, 10, 21, 0.6);
  resize: none;
  max-height: 120px;
  overflow-y: auto;
}
.bai-form textarea::placeholder { color: #5b6b87; }
.bai-form textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.bai-send {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none;
  border-radius: 12px;
  background: var(--amber);
  color: #16100a;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bai-send:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(251, 191, 36, 0.7); }
.bai-send svg { width: 17px; height: 17px; }

.bai-foot {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-dim);
}
.bai-foot a { color: var(--blue-400); }

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

@media (max-width: 480px) {
  #bai-chat { right: 12px; bottom: 12px; left: 12px; }
  .bai-launch { width: 100%; justify-content: center; }
  .bai-panel { width: 100%; max-height: calc(100vh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .bai-panel, .bai-msg { animation: none; }
}

/* ----------------------------------------------------------- 15. footer -- */

.site-footer { border-top: 1px solid var(--line); padding: 54px 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand img { height: 54px; width: auto; border-radius: 12px; margin-bottom: 18px; }
.footer-brand p { margin: 0; font-size: 0.86rem; color: var(--ink-dim); max-width: 34ch; }

.parent-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 11px 16px 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
  color: var(--ink-muted);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.parent-link:hover {
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}
.parent-link strong { display: block; color: var(--ink); font-weight: 620; }
.parent-link small { display: block; font-size: 0.76rem; color: var(--ink-dim); margin-top: 1px; }
.parent-link-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-800);
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--amber);
}
.parent-link svg { flex: none; opacity: 0.6; }
.footer-col h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col li { display: flex; }
.footer-col a { font-size: 0.89rem; color: var(--ink-muted); transition: color 0.25s; padding: 3px 0; }
.footer-col a:hover { color: var(--blue-400); }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-dim);
}

/* ------------------------------------------------- 15b. touch ergonomics -- */
/* Google wants ~48px tap targets. Only widen them where there's no mouse, so the
   desktop footer keeps its tighter rhythm. */

@media (hover: none) and (pointer: coarse) {
  /* icon-only phone button still needs a full-size hit area */
  .nav-phone { min-width: 46px; justify-content: center; }
  /* inline links in running copy get vertical padding without shifting the line */
  .hero-call a,
  .f-note a { display: inline-block; padding: 12px 2px; margin: -12px 0; }
  .footer-col ul { gap: 0; }
  .footer-col a {
    display: flex;
    align-items: center;
    flex: 1;              /* the whole row is the target, not just the word */
    min-height: 46px;
    padding: 0;
  }
  .footer-bar { gap: 8px 20px; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; }
  .faq-item summary { padding-block: 20px; }
}

/* --------------------------------------------------- 16. scroll reveal --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------- 17. responsive -- */

@media (max-width: 1080px) {
  .nav { gap: 14px; }
  .nav-links a { padding-inline: 9px; }
  .nav-phone span { display: none; }
  .nav-phone { padding-inline: 10px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-cards { height: 400px; max-width: 560px; }
  .hero-canvas-wrap::after {
    background: linear-gradient(180deg, rgba(5, 10, 21, 0.86) 0%, rgba(5, 10, 21, 0.5) 40%, rgba(5, 10, 21, 0.8) 78%, var(--navy-900) 100%);
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 72px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(7, 13, 28, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 0.95rem; }
  .nav-toggle { display: grid; }
  .nav-actions .btn { display: none; }

  .split { grid-template-columns: 1fr; }
  .console { transform: none; }
  .console-wrap:hover .console { transform: none; }
  .parent-brand { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .hero { padding-top: 116px; min-height: auto; }
  .hero-cards { height: 330px; margin-top: 26px; }
  .float-card { width: 232px; padding: 13px 15px; }
  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }
  .float-card--3 { left: 4%; }
  .hero-proof { gap: 14px 12px; }
  .scroll-cue { display: none; }
  .step { grid-template-columns: 52px 1fr; gap: 14px; }
  .step-num { font-size: 1.6rem; }
  .console-body { min-height: 0; padding-inline: 14px; }
  .log-row { grid-template-columns: 30px 1fr; }
  .log-status { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* --------------------------------- 18. reduced motion / no-WebGL states -- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .console { transform: none; }
}

.no-webgl #hero-canvas { display: none; }
