/* ==========================================================================
   RUNDEVOU — Clean, Anti-Slop Functional Design System
   Conforms to Google Stitch DESIGN.md Standard
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Core */
  --bg-canvas:       #0b0f19;
  --bg-surface:      #111827;
  --bg-surface-elev: #1a2234;
  --bg-subtle:       #151d2c;
  --bg-darker:       #070a10;

  /* Text & Contrast */
  --text-primary:    #f8fafc;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;
  --text-accent:     #38bdf8;
  --primary-accent:  #38bdf8;

  /* Primary Brand & Accents */
  --brand-indigo:    #6366f1;
  --brand-indigo-hover: #4f46e5;
  --brand-cyan:      #0ea5e9;
  --brand-emerald:   #10b981;
  --brand-emerald-dark: #059669;
  --brand-emerald-glow: rgba(16, 185, 129, 0.25);

  /* Status Colors */
  --status-active:   #10b981;
  --status-waiting:  #f59e0b;
  --status-urgent:   #ef4444;

  /* Borders & Shadows */
  --border-subtle:   rgba(255, 255, 255, 0.08);
  --border-light:    rgba(255, 255, 255, 0.14);
  --border-focus:    rgba(99, 102, 241, 0.5);
  --border-active:   rgba(16, 185, 129, 0.4);
  --shadow-card:     0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow:     0 0 30px rgba(99, 102, 241, 0.18);

  /* Geometry & Radii */
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --radius-full:     9999px;

  /* Spacing & Layout */
  --container-max:   1200px;
  --transition:      all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* ==========================================================================
   Navigation: top bar, fixed navbar with dropdown groups, mobile drawer.
   Structure and behaviour follow the tapthenfc site; colours are this theme's.
   ========================================================================== */
:root {
  --site-topbar-h: 38px;
  --nav-h: 72px;
}

body {
  padding-top: calc(var(--site-topbar-h) + var(--nav-h));
}

/* 1. Top bar: a slim strip above the navbar holding the members login. It
   slides away once the page is scrolled and the navbar takes the top edge. */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--site-topbar-h);
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  transition: transform 0.35s ease;
}
.site-topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.site-topbar-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 8px var(--brand-emerald);
  flex: none;
}
.site-topbar-login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  margin-left: auto;
  color: var(--text-accent);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.site-topbar-login:hover,
.site-topbar-login:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-topbar-login svg {
  width: 14px;
  height: 14px;
}
body.nav-scrolled .site-topbar {
  transform: translateY(-100%);
}

/* 2. Navbar */
.navbar {
  position: fixed;
  top: var(--site-topbar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: top 0.35s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  transition: height 0.3s ease;
}
.navbar.scrolled {
  top: 0;
  background: rgba(11, 15, 25, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.navbar.scrolled .container {
  height: 64px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  flex: none;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex: none;
}
.brand-logo-sm {
  font-size: 1.15rem;
}
.brand-logo-sm .brand-icon {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav-link,
.nav-group-btn {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link[aria-current="page"],
.nav-group-btn:hover,
.nav-group:hover .nav-group-btn,
.nav-group.is-open .nav-group-btn {
  color: var(--text-primary);
}

/* Dropdown groups: hover and focus open them through CSS; main.js adds a
   click toggle (.is-open) for touch screens and keyboards. */
.nav-group {
  position: relative;
}
.nav-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav-group-btn svg {
  transition: transform 0.2s ease;
}
.nav-group:hover .nav-group-btn svg,
.nav-group.is-open .nav-group-btn svg {
  transform: rotate(180deg);
}
.nav-group-dropdown {
  position: absolute;
  top: 100%;
  left: -2.5rem;
  padding-top: 1rem;
  display: none;
  z-index: 1000;
}
.nav-group:hover .nav-group-dropdown,
.nav-group:focus-within .nav-group-dropdown,
.nav-group.is-open .nav-group-dropdown {
  display: block;
}
.nav-group-panel {
  width: 360px;
  min-width: 360px;
  padding: 0.6rem;
  border-radius: 14px;
  background: var(--bg-surface-elev);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nav-group-panel.is-wide {
  width: 620px;
  min-width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.4rem;
  align-content: start;
  max-height: min(72vh, 560px);
  overflow-y: auto;
}
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}
.nav-dropdown-item:hover,
.nav-dropdown-item:focus-visible,
.nav-dropdown-item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.05);
}
.nav-icon-wrapper,
.mobile-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}
.mobile-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.icon-steps        { background: #3b82f6; }
.icon-capabilities { background: #8b5cf6; }
.icon-demo         { background: #10b981; }
.icon-roi          { background: #f97316; }
.icon-security     { background: #4b5563; }
.icon-industry     { background: #0d9488; }
.icon-login        { background: #334155; }
.nav-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.nav-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.nav-dropdown-item:hover .nav-item-title {
  color: var(--text-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nav-test-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-accent);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nav-test-call:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--text-accent);
  color: var(--text-accent);
}
.nav-test-call .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 8px var(--brand-emerald);
  animation: pulse 2s infinite;
}
.nav-cta {
  white-space: nowrap;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text-primary);
  padding: 6px;
  cursor: pointer;
  line-height: 0;
}

/* 3. Mobile drawer: slides in from the right over a blurred page. */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 84%;
  max-width: 340px;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border-left: 1px solid var(--border-light);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.4s;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.mobile-drawer-close {
  color: var(--text-primary);
  background: none;
  border: 0;
  padding: 0.5rem;
  display: flex;
  cursor: pointer;
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: auto;
}
.mobile-drawer-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
}
.mobile-drawer-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-accent);
}
.mobile-drawer-links a.mobile-drawer-item-with-icon {
  font-weight: 500;
  font-size: 0.98rem;
}
.drawer-group-label {
  display: block;
  margin: 1rem 0.5rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mobile-drawer-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-drawer-actions .btn {
  width: 100%;
}

@media (max-width: 1060px) {
  .nav-links,
  .nav-test-call {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (max-width: 640px) {
  :root {
    --site-topbar-h: 34px;
    --nav-h: 64px;
  }
  .site-topbar-long {
    display: none;
  }
  .nav-actions .nav-cta {
    display: none;
  }
  .navbar.scrolled .container {
    height: 58px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--brand-emerald);
  color: #042f1a;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--brand-emerald-glow);
}

.btn-primary:hover {
  background: #14cd91;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-elev);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #242f46;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Hero Section & Live Receptionist Terminal
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a5b4fc;
  margin-bottom: 20px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Live Receptionist Terminal (The Interactive Core)
   ========================================================================== */
.terminal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.caller-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--brand-emerald);
}

.audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.audio-bar {
  width: 3px;
  height: 6px;
  background: var(--brand-emerald);
  border-radius: 2px;
  animation: pulse-wave 1.1s ease-in-out infinite;
}

.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.5s; }
.audio-bar:nth-child(4) { animation-delay: 0.2s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-bar:nth-child(6) { animation-delay: 0.6s; }
.audio-bar:nth-child(7) { animation-delay: 0.15s; }
.audio-bar:nth-child(8) { animation-delay: 0.35s; }

@keyframes pulse-wave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

/* Google Stitch Glass & Glow Utilities */
.glass-panel {
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.glow-cyan-sm {
  box-shadow: 0 0 16px -2px rgba(14, 165, 233, 0.35);
}

.glow-emerald-sm {
  box-shadow: 0 0 16px -2px rgba(16, 185, 129, 0.4);
}

.terminal-persona-selector {
  display: flex;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 12px;
  gap: 8px;
  overflow-x: auto;
}

.persona-pill {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.persona-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.persona-pill.active {
  color: #ffffff;
  background: var(--bg-surface-elev);
  border: 1px solid var(--border-light);
}

.terminal-body {
  padding: 24px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 90%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
}

.bubble-caller {
  align-self: flex-start;
  background: var(--bg-surface-elev);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.bubble-caller .speaker-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.bubble-rundevou {
  align-self: flex-end;
  background: linear-gradient(145deg, #1e2638, #182030);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #ffffff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bubble-rundevou .speaker-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 4px;
}

.intent-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 8px;
}

.intent-confirmed {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.terminal-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.terminal-meta-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Proof Strip (Stats & Missed Call Reality)
   ========================================================================== */
.stats-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-darker);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 12px;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number .highlight {
  color: var(--brand-emerald);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Section Headers (Standardized)
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Proof Artefacts (What happens 5 seconds after a call)
   ========================================================================== */
.artefacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.artefact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.artefact-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.artefact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.artefact-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artefact-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.artefact-preview-box {
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  flex-grow: 1;
}

.email-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.sentiment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
}

.artefact-caption {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   5 Booking Modes & Core Capabilities
   ========================================================================== */
.modes-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.modes-nav {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.mode-tab {
  flex: 1;
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.mode-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.mode-tab.active {
  color: #ffffff;
  background: var(--bg-surface);
  border-bottom-color: var(--brand-emerald);
}

.mode-content-panel {
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.mode-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.mode-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.mode-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.mode-feature-item svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.mode-dialogue-mockup {
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* ==========================================================================
   How It Works (3 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elev);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Interactive Lost Revenue Calculator
   ========================================================================== */
.calculator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-val-badge {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-emerald);
  font-family: 'JetBrains Mono', monospace;
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-darker);
  border-radius: var(--radius-full);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-emerald);
  cursor: pointer;
  box-shadow: 0 0 10px var(--brand-emerald-glow);
  transition: var(--transition);
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results-card {
  background: var(--bg-darker);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.calc-loss-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f87171;
}

.calc-loss-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.calc-meta-strip {
  display: flex;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calc-meta-strip strong {
  color: var(--text-primary);
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */
.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}

.billing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.billing-label.active {
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-surface-elev);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  transition: var(--transition);
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--brand-emerald);
  border-radius: 50%;
  transition: var(--transition);
}

input:checked + .slider-switch {
  background-color: rgba(99, 102, 241, 0.3);
}

input:checked + .slider-switch:before {
  transform: translateX(24px);
}

.discount-pill {
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--brand-emerald);
  font-size: 0.75rem;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border-color: var(--brand-indigo);
  background: linear-gradient(180deg, #161e31 0%, var(--bg-surface) 100%);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-indigo);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 42px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-feature.included {
  color: var(--text-primary);
}

.plan-feature svg {
  flex-shrink: 0;
}

.plan-feature.included svg {
  color: var(--brand-emerald);
}

.plan-feature.excluded svg {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  background: var(--bg-subtle);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table td {
  color: var(--text-secondary);
}

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

.comparison-table td.brand-col, .comparison-table th.brand-col {
  background: rgba(99, 102, 241, 0.08);
  color: #ffffff;
  font-weight: 700;
  border-left: 1px solid rgba(99, 102, 241, 0.2);
  border-right: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   FAQ Accordion (Native <details>)
   ========================================================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--border-light);
  background: var(--bg-surface-elev);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  transition: transform 0.2s ease;
  color: var(--brand-indigo);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Final Conversion CTA
   ========================================================================== */
.final-cta-section {
  padding: 80px 0;
}

.cta-banner {
  background: linear-gradient(135deg, #131c31 0%, #0d1322 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cta-banner h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.footer-form-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.contact-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 12px;
  outline: none;
  font-family: inherit;
}

.contact-input:focus {
  border-color: var(--brand-indigo);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ==========================================================================
   Interactive WebRTC Call Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: modalEnter 0.25s ease-out;
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Form Feedback Banner
   ========================================================================== */
.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .artefacts-grid {
    grid-template-columns: 1fr;
  }
  .mode-content-panel {
    grid-template-columns: 1fr;
  }
  .calculator-box {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .pricing-card.popular {
    transform: none;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .terminal-body {
    padding: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

/* ==========================================================================
   Checkout (pay.html) & Subscription Active (pay/thank-you.html)
   ========================================================================== */
.pay-section {
  padding-top: 60px;
}
.pay-header {
  text-align: left;
  margin-bottom: 40px;
  max-width: 720px;
}
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.pay-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.pay-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.pay-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.pay-step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}
.pay-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}
.pay-toggle {
  margin-bottom: 0;
  justify-content: flex-start;
  gap: 10px;
}
.pay-toggle .billing-label {
  font-size: 0.88rem;
}

/* Plan picker */
.pay-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pay-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px 18px;
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.pay-plan:hover {
  border-color: var(--border-light);
}
.pay-plan.is-selected {
  border-color: var(--brand-emerald);
  box-shadow: 0 0 0 1px var(--brand-emerald), 0 8px 24px var(--brand-emerald-glow);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-darker) 60%);
}
.pay-plan input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.pay-plan:focus-within {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.pay-plan-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  transition: var(--transition);
}
.pay-plan.is-selected .pay-plan-check {
  border-color: var(--brand-emerald);
  background: var(--brand-emerald) radial-gradient(circle, #042f1a 0 3px, transparent 3.5px);
}
.pay-plan-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pay-plan-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  padding-right: 28px;
}
.pay-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.pay-plan-price span {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pay-plan-price small {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pay-plan-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  min-height: 2.4em;
}
.pay-plan-list {
  list-style: none;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-plan-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.pay-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand-emerald);
  border-bottom: 2px solid var(--brand-emerald);
  transform: rotate(-45deg);
}

/* Details form */
.pay-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
.pay-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pay-field-wide {
  grid-column: 1 / -1;
}
.pay-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.pay-field .contact-input {
  margin-bottom: 4px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.pay-field .contact-input::placeholder {
  color: var(--text-muted);
}
.pay-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

/* Summary column */
.pay-side {
  position: sticky;
  top: 96px;
}
.pay-summary .pay-card-title {
  margin-bottom: 14px;
}
.pay-summary-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
}
.pay-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.pay-summary-row strong {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}
.pay-summary-today {
  background: rgba(16, 185, 129, 0.08);
  margin: 0 -12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border-bottom: 0;
}
.pay-summary-today strong {
  color: var(--brand-emerald);
  font-size: 1.25rem;
  font-weight: 700;
}
.pay-summary-after {
  border-bottom: 0;
}
.pay-summary-after strong {
  font-size: 1rem;
}
.pay-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
}
.pay-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--brand-emerald);
}
.pay-consent a {
  color: var(--brand-cyan);
  text-decoration: underline;
}
.pay-summary .form-feedback {
  margin: 0 0 14px;
}
.pay-submit {
  width: 100%;
}
.pay-submit[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}
.pay-trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 16px;
}
.pay-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.pay-trust svg {
  color: var(--brand-emerald);
  flex-shrink: 0;
}
.pay-fine {
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.pay-fine strong {
  color: var(--text-secondary);
}
.pay-help {
  margin-top: 32px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.pay-help a {
  color: var(--brand-cyan);
  text-decoration: underline;
}

/* Thank-you */
.pay-done-wrap {
  max-width: 760px;
}
.pay-done {
  text-align: center;
  padding: 44px 36px;
}
.pay-done-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-emerald);
  color: #042f1a;
  box-shadow: 0 0 0 10px var(--brand-emerald-glow);
}
.pay-done .section-title {
  margin: 10px 0 12px;
}
.pay-done .section-subtitle {
  margin: 0 auto;
  max-width: 560px;
}
.pay-next {
  text-align: left;
  margin: 30px auto 0;
  max-width: 580px;
  padding: 22px 24px;
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.pay-next-list {
  margin: 10px 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.pay-next-list strong {
  color: var(--text-primary);
}
.pay-next-list a {
  color: var(--brand-cyan);
  text-decoration: underline;
}
.pay-done-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

@media (max-width: 992px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
  .pay-side {
    position: static;
  }
  .pay-plans {
    grid-template-columns: 1fr;
  }
  .pay-plan-desc {
    min-height: 0;
  }
}
@media (max-width: 640px) {
  .pay-card {
    padding: 20px 16px;
  }
  .pay-fields {
    grid-template-columns: 1fr;
  }
  .pay-done {
    padding: 32px 18px;
  }
}

/* Two gateways on the checkout, stacked */
.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-paypal {
  background: #ffc439;
  color: #003087;
  border-color: #ffc439;
  font-weight: 700;
}
.pay-paypal:hover {
  background: #ffd45c;
  border-color: #ffd45c;
}
.pay-paypal:disabled, .pay-submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* Legal entity line in every footer */
.footer-legal {
  max-width: 760px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.footer-legal strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Legal pages (legal/*.html)
   ========================================================================== */
.legal-wrap {
  max-width: 820px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}
.legal-wrap h1 {
  color: var(--text-primary);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 8px 0 10px;
}
.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.legal-wrap h2 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 38px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.legal-wrap h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin: 20px 0 8px;
}
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 14px 22px; }
.legal-wrap li { margin-bottom: 7px; }
.legal-wrap a { color: var(--brand-cyan); text-decoration: underline; }
.legal-wrap strong { color: var(--text-primary); font-weight: 600; }
.legal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-cyan);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0 20px;
}
.legal-box.warn { border-left-color: var(--status-waiting); }
.legal-box p:last-child { margin-bottom: 0; }
.legal-entity {
  background: var(--bg-darker);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 18px 0;
  font-size: 0.9rem;
  line-height: 1.75;
}
.legal-entity strong { display: block; font-size: 1rem; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal-table th {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-surface);
}
.legal-toc {
  columns: 2;
  column-gap: 28px;
  margin: 0 0 8px 0;
  padding-left: 22px;
  font-size: 0.88rem;
}
@media (max-width: 640px) {
  .legal-toc { columns: 1; }
}
