/* Style guide and Design System for Convertmax Attribution Audit */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* HSL Color System */
  --bg-main: hsl(222, 47%, 6%);
  --bg-card: hsl(222, 47%, 10%);
  --bg-card-hover: hsl(222, 47%, 14%);
  --bg-input: hsl(222, 47%, 12%);
  --border-color: hsla(215, 20%, 65%, 0.15);
  --border-color-glow: hsla(263, 90%, 55%, 0.4);

  --primary: hsl(263, 90%, 60%);
  --primary-glow: hsla(263, 90%, 60%, 0.35);
  --secondary: hsl(171, 100%, 41%);
  --secondary-glow: hsla(171, 100%, 41%, 0.25);
  
  --text-main: hsl(210, 40%, 98%);
  --text-muted: hsl(215, 20%, 72%);
  --text-dimmed: hsl(215, 12%, 50%);

  --danger: hsl(0, 84%, 58%);
  --danger-glow: hsla(0, 84%, 58%, 0.2);
  --warning: hsl(38, 92%, 50%);
  --warning-glow: hsla(38, 92%, 50%, 0.2);
  --success: hsl(142, 70%, 45%);
  --success-glow: hsla(142, 70%, 45%, 0.2);

  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base resets & setups */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Gradients */
body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -20%;
  width: 70%;
  height: 60%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -20%;
  width: 70%;
  height: 60%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  filter: brightness(1.2);
}

/* Utility Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-5 { height: 1.25rem; }
.h-16 { height: 4rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.w-auto { width: auto; }

@media (min-width: 1024px) {
  .lg\:h-14 { height: 3.5rem; }
  .lg\:h-16 { height: 4rem; }
  .lg\:h-20 { height: 5rem; }
  .lg\:h-6 { height: 1.5rem; }
  .lg\:h-7 { height: 1.75rem; }
  .lg\:h-9 { height: 2.25rem; }
}

.glass {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(263, 85%, 50%) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Header / Navigation */
header {
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 15, 30, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

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

.site-header-row {
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: #0f172a;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.desktop-only {
  display: none;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.header-btn-primary {
  color: #0a1628;
  background: #58f5d0;
  box-shadow: 0 4px 12px -8px rgba(16, 185, 129, 0.7);
}

.header-btn-primary:hover {
  background: #4be8c3;
}

.header-btn-secondary {
  color: #334155;
  background: #ffffff;
  border: 2px solid #cbd5e1;
}

.header-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.mobile-menu-btn {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #334155;
  border-radius: 99px;
  margin: 2px 0;
}

.mobile-nav-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-nav-menu a {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
}

.mobile-nav-menu .header-btn {
  width: fit-content;
}

@media (min-width: 1280px) {
  .desktop-only {
    display: flex;
  }

  .mobile-menu-btn,
  .mobile-nav-menu {
    display: none !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  gap: 0.5rem;
}

.logo span {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--secondary);
}

/* Landing Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 9999px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, #d8b4fe, #99f6e4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 3rem;
}

/* Coming soon view */
#coming-soon-view {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
}

.coming-soon-card {
  width: 100%;
  max-width: 820px;
  padding: 3.5rem;
  text-align: center;
  border-radius: 20px;
}

.coming-soon-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-color-glow);
  background: rgba(124, 58, 237, 0.12);
  color: var(--secondary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.coming-soon-card h1 {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.coming-soon-card p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Convertmax-like clean theme for public coming-soon mode */
body.coming-soon-mode {
  background: #f8fafc;
  color: #0f172a;
}

body.coming-soon-mode::before,
body.coming-soon-mode::after {
  display: none;
}

body.coming-soon-mode header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

body.coming-soon-mode .logo-link {
  color: #0f172a;
}

body.coming-soon-mode .coming-soon-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 60px -30px rgba(2, 6, 23, 0.25);
}

body.coming-soon-mode .coming-soon-badge {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

body.coming-soon-mode .coming-soon-card h1 {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: #0f172a;
}

body.coming-soon-mode .coming-soon-card p {
  color: #334155;
}

/* Light Convertmax theme for full app (including ?test) */
body.convertmax-light-mode {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --border-color: rgba(15, 23, 42, 0.12);
  --border-color-glow: rgba(14, 116, 204, 0.35);
  --primary: hsl(210, 88%, 42%);
  --primary-glow: hsla(210, 88%, 42%, 0.25);
  --secondary: hsl(197, 79%, 46%);
  --secondary-glow: hsla(197, 79%, 46%, 0.2);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dimmed: #64748b;
}

body.convertmax-light-mode::before,
body.convertmax-light-mode::after {
  display: none;
}

body.convertmax-light-mode header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

body.convertmax-light-mode .glass {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 45px -30px rgba(2, 6, 23, 0.25);
}

body.convertmax-light-mode h1,
body.convertmax-light-mode h2,
body.convertmax-light-mode h3,
body.convertmax-light-mode h4,
body.convertmax-light-mode h5,
body.convertmax-light-mode h6 {
  color: #0f172a;
}

body.convertmax-light-mode .hero h1 {
  background: linear-gradient(to right, #0f172a, #1d4ed8, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.convertmax-light-mode .hero-tag {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.2);
  color: #0369a1;
}

body.convertmax-light-mode .lead-box input {
  color: #0f172a;
}

body.convertmax-light-mode .lead-box input::placeholder {
  color: #64748b;
}

body.convertmax-light-mode .form-input,
body.convertmax-light-mode select,
body.convertmax-light-mode .option-card {
  color: #0f172a;
}

body.convertmax-light-mode .option-card span,
body.convertmax-light-mode .option-card strong {
  color: #0f172a !important;
}

body.convertmax-light-mode .booking-section {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(8, 145, 178, 0.05) 100%);
  border: 1px solid rgba(29, 78, 216, 0.2);
}

/* Lead input box */
.lead-box {
  max-width: 650px;
  margin: 0 auto 4rem;
  padding: 0.5rem;
  display: flex;
  border-radius: 12px;
}

.lead-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 1.1rem;
  padding: 0 1.5rem;
}

.lead-box input::placeholder {
  color: var(--text-dimmed);
}

/* Value Props Grid */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

.prop-card {
  padding: 2rem 1.5rem;
  text-align: left;
}

.prop-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.prop-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-glow);
  box-shadow: 0 12px 40px -15px var(--primary-glow);
}

.prop-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.prop-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form Dialog Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none; /* Controlled dynamically */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

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

.modal-content {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.4rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-dimmed);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: white;
}

.progress-bar-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.form-input, select {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: white;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Custom Grid of Options */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.option-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}

.option-card:hover {
  border-color: var(--border-color-glow);
  background: rgba(255,255,255,0.02);
}

.option-card.selected {
  border-color: var(--secondary);
  background: rgba(13, 148, 136, 0.08);
}

.options-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  background: rgba(10, 15, 30, 0.5);
}

/* Scanning / Loader View */
.scanner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

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

.scanner-box {
  width: 100%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 50px rgba(13, 148, 136, 0.15);
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.scanner-title {
  font-family: 'Courier New', Courier, monospace;
  color: var(--secondary);
  font-size: 1.2rem;
  font-weight: bold;
}

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

.scanner-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary);
  animation: pulse 1.5s infinite;
}

.scanner-console {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  height: 250px;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #a7f3d0;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.console-line {
  margin-bottom: 0.4rem;
  white-space: pre-wrap;
}

.console-line.success {
  color: #34d399;
}

.console-line.working {
  color: #60a5fa;
}

.console-line.warn {
  color: #fbbf24;
}

.progress-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.progress-outer {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

/* Diagnostic Report Dashboard */
.report-container {
  display: none; /* Controlled dynamically */
  padding: 4rem 0 6rem;
  animation: fadeIn 0.6s ease;
}

.report-container.active {
  display: block;
}

.report-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.report-meta h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.report-meta p {
  color: var(--text-muted);
}

.badge-risk {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 9999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.badge-risk.high {
  background: var(--danger-glow);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.badge-risk.medium {
  background: var(--warning-glow);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.badge-risk.low {
  background: var(--success-glow);
  border: 1px solid var(--success);
  color: var(--success);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 850px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Left score widget */
.score-widget-card {
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-holder {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 1.5rem 0;
}

/* Circular Gauge styling using SVG */
.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.05);
  stroke-width: 12;
}

.gauge-fill {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565; /* 2 * PI * r (r=90) */
  stroke-dashoffset: 565;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1), stroke 1.5s ease;
}

.gauge-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: white;
}

.gauge-score-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Interactive Spend Leakage Estimator */
.spend-leakage-card {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(13, 148, 136, 0.03) 100%);
  border: 1px solid var(--border-color);
}

.leakage-calculator {
  margin-top: 1.5rem;
}

.slider-container {
  margin-bottom: 1.5rem;
}

.slider-container label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.slider-container label span.value {
  color: white;
  font-weight: bold;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--secondary);
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  outline: none;
}

.leakage-display {
  background: rgba(2, 6, 23, 0.4);
  border: 1px dashed var(--border-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.leakage-val {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--danger);
  margin-bottom: 0.25rem;
}

.leakage-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Category Grid Right Side */
.categories-card {
  padding: 2.5rem;
}

.categories-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.category-row {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.category-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.category-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cat-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
}

.cat-score {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--secondary);
}

.cat-bar-outer {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.cat-bar-inner {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--secondary);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-bar-inner.danger { background-color: var(--danger); }
.cat-bar-inner.warning { background-color: var(--warning); }
.cat-bar-inner.success { background-color: var(--success); }

.cat-critique {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.01);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 6px 6px 0;
}

/* Compare Attribution section */
.compare-section {
  margin-top: 3rem;
}

.compare-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  padding: 2rem;
}

.compare-card h4 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compare-card.current h4 { color: var(--danger); }
.compare-card.multitouch h4 { color: var(--secondary); }

.compare-card ul {
  padding-left: 1.2rem;
}

.compare-card li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* 30-Day Checklist Section */
.checklist-section {
  margin-top: 3rem;
}

.checklist-section h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.checklist-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.checklist-box {
  padding: 2rem;
}

.checklist-group {
  margin-bottom: 2rem;
}

.checklist-group:last-child {
  margin-bottom: 0;
}

.checklist-group-title {
  font-family: var(--font-title);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.checklist-group-title span.days {
  color: var(--secondary);
  font-size: 0.9rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  transition: background 0.2s;
}

.check-item:hover {
  background: rgba(255,255,255,0.02);
}

.check-item input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.check-item-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.check-item input[type="checkbox"]:checked + .check-item-text {
  text-decoration: line-through;
  color: var(--text-dimmed);
}

/* Scheduler / Booking Form Section */
.booking-section {
  margin-top: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(13, 148, 136, 0.05) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 16px;
  text-align: center;
}

.booking-section h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.booking-section p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.booking-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

/* Print container and setups */
.print-only {
  display: none;
}

/* Keyframes animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 10px rgba(13, 148, 136, 0.8); }
  100% { transform: scale(0.9); opacity: 0.4; }
}

/* PRINT MEDIA STYLES - Outputs formatted 4-page PDF */
@media print {
  body {
    background-color: white !important;
    color: black !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
  }

  body::before, body::after,
  header, footer, .btn, .lead-box, .props-grid, .modal-overlay,
  .spend-leakage-card, .booking-section, .checklist-desc,
  input[type="checkbox"], input[type="range"] {
    display: none !important;
  }

  .report-container {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .glass {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Force page breaks to structure exactly 4 pages */
  
  /* PAGE 1: Executive Scorecard Cover */
  .report-header-flex {
    margin-bottom: 2rem !important;
  }

  .report-meta h2 {
    color: #1e1b4b !important;
    font-size: 28pt !important;
  }

  .report-meta p {
    color: #475569 !important;
    font-size: 12pt !important;
  }

  .badge-risk {
    border: 2px solid black !important;
    background: transparent !important;
    color: black !important;
  }

  .dashboard-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5in !important;
  }

  .score-widget-card {
    border: 1px solid #cbd5e1 !important;
    padding: 2rem !important;
    margin-bottom: 1in !important;
    page-break-after: always; /* Force Page 2 after executive score */
  }

  .gauge-bg {
    stroke: #e2e8f0 !important;
  }

  .gauge-fill {
    stroke: #0284c7 !important;
  }

  .gauge-number {
    color: black !important;
    font-size: 32pt !important;
  }

  .gauge-score-label {
    color: #475569 !important;
  }

  /* PAGE 2: Scored Gaps and Critiques */
  .categories-card {
    border: 1px solid #cbd5e1 !important;
    padding: 1.5rem !important;
    margin: 0 !important;
    page-break-after: always; /* Force Page 3 after Gaps list */
  }

  .categories-card h3 {
    color: #1e1b4b !important;
    border-bottom: 2px solid #e2e8f0 !important;
  }

  .cat-title {
    color: #1e293b !important;
  }

  .cat-score {
    color: #0284c7 !important;
  }

  .cat-bar-outer {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
  }

  .cat-bar-inner {
    background-color: #0284c7 !important;
  }

  .cat-critique {
    color: #334155 !important;
    background: #f8fafc !important;
    border-left: 3px solid #6366f1 !important;
  }

  /* PAGE 3: Model Fit & Industry Risks */
  .compare-section {
    page-break-after: always; /* Force Page 4 after compares */
  }

  .compare-section h3 {
    color: #1e1b4b !important;
    border-bottom: 2px solid #cbd5e1 !important;
    padding-bottom: 0.5rem !important;
  }

  .compare-card {
    border: 1px solid #cbd5e1 !important;
    padding: 1.5rem !important;
    background: transparent !important;
  }

  .compare-card h4 {
    color: black !important;
    font-weight: 700 !important;
  }

  .compare-card li {
    color: #334155 !important;
  }

  /* PAGE 4: 30-Day Fix Action Plan */
  .checklist-section h3 {
    color: #1e1b4b !important;
    border-bottom: 2px solid #cbd5e1 !important;
    padding-bottom: 0.5rem !important;
  }

  .checklist-box {
    border: 1px solid #cbd5e1 !important;
    padding: 1.5rem !important;
  }

  .checklist-group-title {
    color: #1e293b !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }

  .checklist-group-title span.days {
    color: #6366f1 !important;
  }

  .check-item {
    margin-bottom: 0.5rem !important;
    border-bottom: 1px dashed #f1f5f9 !important;
  }

  .check-item-text {
    color: #334155 !important;
  }
}
