/* Business Review 360 - Marketing Website Styles */
/* Inspired by modern SaaS design principles */

:root {
  /* Brand */
  --primary-color: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #42a5f5;
  --primary-glow: rgba(21, 101, 192, 0.15);

  /* Light canvas */
  --bg: #fafaf8;
  --bg-mid: #f2f5fb;
  --bg-white: #ffffff;
  --bg-light: #f2f5fb;
  --bg-gray: #f5f5f2;
  --text-primary: #0f0f0d;
  --text-secondary: #52524a;
  --text-light: #888880;
  --border-color: rgba(0, 0, 0, 0.08);

  /* Card tokens */
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* Nav tokens — frosted white */
  --nav-bg: rgba(250, 250, 248, 0.92);
  --nav-border: rgba(0, 0, 0, 0.07);
  --nav-link-border: rgba(0, 0, 0, 0.11);
  --nav-wordmark-accent: #1565c0;
  --nav-link-hover-color: #0f0f0d;
  --nav-link-hover-border: rgba(0, 0, 0, 0.18);
  --nav-link-hover-bg: rgba(0, 0, 0, 0.04);

  /* Accents */
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
  /* Offsets scrollIntoView() and #anchor jumps so the sticky header
     does not occlude the top of the targeted section. Header is
     16px+40px+16px+1px = 73px; 80px gives breathing room. */
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip-to-content link - WCAG 2.4.1 (Bypass Blocks).
   Visually hidden until keyboard focus, then slides in at top-left. */
.skip-to-content {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-to-content:focus {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
}

.skip-to-content:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Typography - matching MUI theme */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 1.5rem; /* 24px - matching MUI theme */
  font-weight: 700;
}

h2 {
  font-size: 1.875rem; /* 30px */
  font-weight: 700;
}

h3 {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
}

h4 {
  font-size: 1.25rem; /* 20px */
  font-weight: 700;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header / Navigation - matching app AppBar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: none;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
}

.nav-links {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  border-radius: 8px;
  border: 1px solid var(--nav-link-border);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--nav-link-hover-color);
  border-color: var(--nav-link-hover-border);
  background: var(--nav-link-hover-bg);
}

.nav-cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.nav-label-short {
  display: none;
}


.nav-logo { text-decoration: none; }

.nav-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav-wordmark-accent { color: var(--nav-wordmark-accent); }
.nav-wordmark-short { display: none; }

/* Collapse wordmark to BR360 on tablet portrait — keeps full hamburger threshold at 640px */
@media (max-width: 900px) {
  .nav-wordmark-full { display: none; }
  .nav-wordmark-short { display: inline; }
  nav { gap: 8px; }
  .nav-links { gap: 12px; }
}

/* Mobile Menu Toggle — hamburger shows below 640px */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links .nav-link,
  .nav-links .nav-cta {
    width: 148px;
    min-height: 42px;
    justify-content: center;
  }

  .nav-link--demo .nav-label-full {
    display: none;
  }

  .nav-link--demo .nav-label-short {
    display: inline;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  background: var(--bg);
  padding: var(--spacing-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(25, 118, 210, 0.03) 100%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .hero-image-placeholder {
    order: -1;
  }
}

.hero-image-placeholder {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Section Styles */
section {
  padding: var(--spacing-3xl) 0;
  flex: 1 0 auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
}

.section-title {
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.feature-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-color);
}

.feature-image-mount {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: var(--bg-mid);
  margin: 0;
  overflow: hidden;
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.feature-image-mount .feature-image {
  height: 100%;
}

.feature-image--security {
  object-position: center center;
}

.feature-image--idea-capture {
  object-position: center center;
}

.feature-image--demo-walkthrough,
.feature-image--demo-implementation {
  object-position: center 72%;
}

.feature-card:hover .feature-image {
  transform: scale(1.02);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: white;
}

.feature-card h3 {
  min-height: 2.8rem;
  line-height: 1.25;
  margin: 0;
  padding: var(--spacing-lg) var(--spacing-lg) 0;
}

.feature-card > h3:first-child {
  padding-top: var(--spacing-lg);
}

.feature-card p {
  font-size: 1rem;
  margin: 0;
  padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-lg);
  line-height: 1.6;
}

/* Pricing Cards - 3-column layout */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
}

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

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  position: relative;
  box-shadow: var(--shadow-card-hover);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--primary-color);
  color: white;
  padding: 3px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.pricing-price span {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 400;
}

.pricing-year {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin: 0.25rem 0 0.125rem 0;
  line-height: 1.3;
}

.pricing-gst {
  color: var(--text-light);
  font-size: 0.6875rem;
  margin: 0;
  line-height: 1.3;
}

.pricing-description {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin: 0.25rem 0;
  line-height: 1.4;
  min-height: 2.6rem;
}

.pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.375rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.pricing-cta {
  margin-top: var(--spacing-md);
}

/* FAQ Items - Compact style */
.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-md);
}

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

.faq-item {
  padding: var(--spacing-md);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 0.875rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

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

/* Contact Form - Elevated card style */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-lg) 24px var(--spacing-2xl) 24px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .contact-form {
    padding: var(--spacing-lg) 16px;
    margin: 0 var(--spacing-sm);
  }
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Screenshot Cards - ITONICS Style */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  align-items: stretch;
}

.blog-category-chips {
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.screenshot-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.screenshot-clickable {
  cursor: pointer;
}

.screenshot-clickable:hover {
  opacity: 0.95;
}

.screenshot-clickable:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.hero-dashboard-screenshot:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2) !important;
  opacity: 1 !important;
}

.hero-image:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2) !important;
  opacity: 1 !important;
}

.screenshot-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
}

.screenshot-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-wrapper img.screenshot-image--focus-up {
  object-position: center 66%;
}

.screenshot-wrapper img:hover {
  transform: scale(1.02);
}

.screenshot-content {
  padding: var(--spacing-lg);
}

.screenshot-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.screenshot-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Footer - duplicated here because styles.css loads after the fingerprinted
   bundle and must keep marketing/blog footers polished even if cache order
   changes. */

.site-footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border-color);
  padding: 32px 0 20px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 24px;
  align-items: start;
}

.footer-heading {
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

.footer-commit-ref {
  font-size: 0.7rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text-light);
  opacity: 0.55;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.footer-commit-ref:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-inner {
    padding: 0 28px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 36px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: var(--primary-color);
}

.footer-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-color);
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-gray {
  background-color: var(--bg-gray);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in-up-delayed {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: var(--spacing-2xl) 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  section {
    padding: var(--spacing-2xl) 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}



.comparison-table td:first-child {
  font-weight: 600;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

/* Lightbox Modal */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: lightboxZoom 0.3s ease-out;
}

#lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  transition: opacity 0.3s ease;
}

#lightbox-close:hover {
  opacity: 0.7;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   Quiz Styles - Self-Assessment
   ======================================== */

/* Quiz Container */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Progress Bar */
.quiz-progress {
  width: 100%;
  height: 8px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transition: width 0.3s ease;
  border-radius: 4px;
}

.quiz-progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--spacing-xl);
}

/* Quiz Card */
.quiz-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
}

.quiz-question h2 {
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  line-height: 1.4;
}

/* Quiz Options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.quiz-option {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: rgba(21, 101, 192, 0.02);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--primary-color);
  background: rgba(21, 101, 192, 0.08);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.15);
}

.quiz-option-icon {
  flex-shrink: 0;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.quiz-option.selected .quiz-option-icon {
  color: var(--primary-color);
}

.quiz-option:hover .quiz-option-icon {
  color: var(--primary-light);
}

.quiz-option-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-grow: 1;
}

/* Quiz Navigation */
.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.quiz-navigation .btn {
  flex: 1;
  max-width: 200px;
}

.quiz-navigation .btn:only-child {
  margin-left: auto;
}

/* Results Container */
.results-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Results Badge */
.results-badge {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.results-category {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: var(--radius-xl);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-low {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.badge-moderate {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.badge-high {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.badge-urgent {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Results Score */
.results-score {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.results-score h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.results-score-number {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.score-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  box-shadow: 0 10px 40px rgba(21, 101, 192, 0.3);
}

.score-number {
  font-size: 4rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.score-max {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Results Message */
.results-message {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
}

.results-message h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.results-message p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Results CTA */
.results-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-3xl);
}

/* Results Breakdown */
.results-breakdown {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-2xl);
}

.results-breakdown h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.breakdown-grid {
  display: grid;
  gap: var(--spacing-md);
}

.breakdown-item {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  border-left: 4px solid var(--primary-color);
}

.breakdown-question {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.breakdown-answer {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.breakdown-icon {
  flex-shrink: 0;
  color: var(--primary-color);
}

.breakdown-text-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.breakdown-text {
  color: var(--text-primary);
  font-weight: 500;
}

.breakdown-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}

.breakdown-score {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Results Actions */
.results-actions {
  text-align: center;
}

/* Mobile Responsiveness for Quiz */
@media (max-width: 768px) {
  .quiz-card {
    padding: var(--spacing-lg);
  }

  .quiz-question h2 {
    font-size: 1.375rem;
  }

  .quiz-option {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
  }

  .quiz-option-emoji {
    width: 100%;
  }

  .quiz-navigation {
    flex-direction: column;
  }

  .quiz-navigation .btn {
    max-width: 100%;
  }

  .score-circle {
    width: 150px;
    height: 150px;
  }

  .score-number {
    font-size: 3rem;
  }

  .results-message {
    padding: var(--spacing-lg);
  }

  .results-message h3 {
    font-size: 1.5rem;
  }

  .results-breakdown {
    padding: var(--spacing-lg);
  }

  .results-cta {
    flex-direction: column;
  }

  .results-cta .btn {
    width: 100%;
  }
}

/* ========================================
   Marketing Homepage Components — Light Edition
   ======================================== */

/* Hero: full-width editorial, centred */
.mkt-hero {
  background: linear-gradient(165deg, #dce8ff 0%, #ecf2ff 30%, #fafaf8 65%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

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

@media (max-width: 640px) {
  .hero-network-canvas {
    opacity: 0.72;
  }
}

.mkt-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mkt-hero-content {
  max-width: 820px;
}

.mkt-hero-heading {
  font-family: var(--font-family-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin-bottom: var(--spacing-md);
}

.mkt-hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--spacing-lg);
}

.mkt-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-hero-cta .nav-link {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 15, 13, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pricing-hero-cta .nav-link:hover {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(21, 101, 192, 0.25);
}

/* Product screenshot: browser-chrome mockup */
.mkt-screenshot-section {
  background: var(--bg);
  padding: 0 0 var(--spacing-3xl);
}

.mkt-browser-frame {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 20px 60px rgba(0,0,0,0.11);
  border: 1px solid rgba(0, 0, 0, 0.09);
}

.mkt-browser-chrome {
  background: #e4e4e2;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.mkt-browser-chrome::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 20px 0 0 #febc2e, 40px 0 0 #28c840;
}

.mkt-browser-screen {
  position: relative;
  line-height: 0;
}

.mkt-browser-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.mkt-browser-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.mkt-screenshot-caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: var(--spacing-md);
  letter-spacing: 0.015em;
}

/* Section layout */
.mkt-section {
  padding: var(--spacing-3xl) 0;
}

.mkt-section--mid {
  background: var(--bg-mid);
}

/* Section heading: serif for marketing pages */
.section-title {
  font-family: var(--font-family-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

/* How It Works: horizontal numbered steps */
.mkt-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-3xl);
  position: relative;
}

.mkt-steps::before {
  content: '';
  position: absolute;
  top: -3.25rem;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--border-color) 15%,
    var(--border-color) 85%,
    transparent 100%);
  pointer-events: none;
}

.mkt-step-num {
  font-family: var(--font-family-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.12;
  line-height: 1;
  display: block;
  margin-bottom: 0.875rem;
}

.mkt-step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.mkt-step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* CTA band - mirrors hero gradient so the page ties together */
.mkt-cta-section {
  background: linear-gradient(165deg, rgba(21,101,192,0.04) 0%, rgba(21,101,192,0.02) 100%);
  padding: var(--spacing-3xl) 0;
  border-top: none;
  position: relative;
  overflow: hidden;
}

.mkt-cta-section h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.mkt-cta-section p {
  color: var(--text-secondary);
}

.mkt-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.mkt-hero-cta .nav-link,
.mkt-hero-cta .nav-cta,
.mkt-cta-buttons .nav-link,
.mkt-cta-buttons .nav-cta {
  min-width: 148px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .mkt-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .mkt-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .mkt-hero {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }

  .mkt-screenshot-section {
    padding-bottom: var(--spacing-md);
  }

  #features.mkt-section {
    padding-top: var(--spacing-md);
  }

  .mkt-hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .mkt-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .mkt-hero-cta .nav-link,
  .mkt-hero-cta .nav-cta,
  .mkt-cta-buttons .nav-link,
  .mkt-cta-buttons .nav-cta {
    width: 156px;
  }
}

/* ---- Trial signup band ---- */
.pricing-trial-band {
  background: linear-gradient(135deg, rgba(21,101,192,0.12) 0%, rgba(21,101,192,0.04) 100%);
  border-top: 1px solid rgba(21,101,192,0.2);
  border-bottom: 1px solid rgba(21,101,192,0.2);
  padding: var(--spacing-2xl) 0;
}

.pricing-trial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.pricing-trial-copy h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm);
}

.pricing-trial-copy p { color: var(--text-secondary); margin: 0; }

.pricing-trial-fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-trial-fields input {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text-primary);
}

.pricing-trial-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.pricing-trial-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  color: #22c55e;
  font-size: 0.9rem;
}

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

@media (max-width: 600px) {
  .pricing-trial-fields { flex-direction: column; }
  .pricing-trial-fields input,
  .pricing-trial-fields button { width: 100%; box-sizing: border-box; }
}

/* ---- Pricing comparison table ---- */
.pricing-compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.pricing-compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pricing-compare thead tr {
  background: var(--bg-mid);
  border-bottom: 2px solid var(--border-color);
}

.pricing-compare thead th {
  padding: 16px 14px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: bottom;
  white-space: nowrap;
}

.pricing-compare thead th.pc-feature-col {
  text-align: left;
  width: 28%;
}

.pricing-compare thead th.pc-featured {
  background: rgba(21,101,192,0.1);
  border-left: 2px solid rgba(21,101,192,0.3);
  border-right: 2px solid rgba(21,101,192,0.3);
  color: var(--text-primary);
}

.pc-tier-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pc-tier-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
}

.pc-featured-badge {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.pricing-compare tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.pricing-compare tbody tr:hover { background: rgba(255,255,255,0.02); }

.pricing-compare tbody td {
  padding: 12px 14px;
  color: var(--text-secondary);
  text-align: center;
  vertical-align: middle;
}

.pricing-compare tbody td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 500;
}

.pricing-compare tbody td.pc-featured {
  background: rgba(21,101,192,0.06);
  border-left: 2px solid rgba(21,101,192,0.3);
  border-right: 2px solid rgba(21,101,192,0.3);
}

.pc-check svg, .pc-cross svg { margin: 0 auto; }

.pc-category td {
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--bg-mid);
  border-bottom: 1px solid var(--border-color);
}

.pc-cta-row td { padding: 16px 14px; background: var(--bg-mid); }

@media (max-width: 640px) {
  .pricing-compare thead th,
  .pricing-compare tbody td { padding: 10px 8px; font-size: 0.8rem; }
}

/* ---- Demo form ---- */
.mkt-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.mkt-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-lg);
  text-align: center;
}

.mkt-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 600px) {
  .mkt-form-row { grid-template-columns: 1fr; }
  .mkt-form-wrap { padding: var(--spacing-md) var(--spacing-sm); }
}

.mkt-form-note {
  margin-top: var(--spacing-md);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- Dark mode overrides (must be last to win over component rules) ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --bg-mid: #18181b;
    --bg-white: #18181b;
    --bg-light: #18181b;
    --bg-gray: #1c1c1f;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-light: #71717a;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 6px 24px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.4), 0 16px 40px rgba(0,0,0,0.4);
    --nav-bg: rgba(9, 9, 11, 0.88);
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-link-border: rgba(255, 255, 255, 0.08);
    --nav-wordmark-accent: #42a5f5;
    --nav-link-hover-color: #ffffff;
    --nav-link-hover-border: rgba(255, 255, 255, 0.2);
    --nav-link-hover-bg: rgba(255, 255, 255, 0.05);
  }

  .mkt-hero {
    background: linear-gradient(165deg, #0d1f3c 0%, #0f172a 35%, #09090b 65%);
  }

  /* CTA section mirrors hero in dark mode */
  .mkt-cta-section {
    background: linear-gradient(165deg, #0d1f3c 0%, #0f172a 35%, #09090b 65%);
  }

  .mkt-cta-section h2 {
    color: #f4f4f5;
  }

  .mkt-cta-section p {
    color: rgba(244, 244, 245, 0.65);
  }

  /* Nav-link outline buttons need white text on dark hero/CTA backgrounds */
  .mkt-cta-section .nav-link,
  .mkt-hero-cta .nav-link {
    color: rgba(244, 244, 245, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
  }

  .mkt-cta-section .nav-link:hover,
  .mkt-hero-cta .nav-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.07);
  }

  .mkt-browser-frame {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .mkt-browser-chrome {
    background: #2c2c2e;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .mkt-browser-fade {
    background: linear-gradient(to bottom, transparent, var(--bg));
  }
}

/* ─── ROI Calculator Modal (self-assessment + pricing) ─── */
#roiModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  overflow-y: auto;
  padding: 2rem 1rem;
}
#roiModal.open { display: flex; align-items: flex-start; justify-content: center; }
.roi-modal-inner {
  background: var(--bg-white);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  max-width: 580px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
}
.roi-modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: none; border: none;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
}
.roi-modal-title { font-family: var(--font-family-heading); font-size: 1.6rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--text-primary); }
.roi-modal-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.75rem; }
.roi-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 520px) { .roi-fields { grid-template-columns: 1fr; } }
.roi-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.3rem; }
.roi-field input, .roi-field select {
  width: 100%; box-sizing: border-box;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text-primary);
  transition: border-color 0.2s;
}
.roi-field input:focus, .roi-field select:focus { outline: none; border-color: var(--primary-color); }
#roiResults {
  display: none;
  background: var(--bg-mid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
#roiResults.show { display: block; }
.roi-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 420px) { .roi-results-grid { grid-template-columns: 1fr 1fr; } }
.roi-result-item strong { display: block; font-size: 1.4rem; font-weight: 700; color: var(--primary-color); }
.roi-result-item span { font-size: 0.78rem; color: var(--text-secondary); }
.roi-disclaimer { font-size: 0.75rem; color: var(--text-light); margin-top: 0.75rem; }

/* ─── ROI Calculator Section (self-assessment + pricing) ─── */
.roi-section { background: linear-gradient(180deg, var(--bg-mid), var(--bg)); padding: var(--spacing-3xl) 0; }
.roi-section .section-header { text-align: center; max-width: 680px; margin: 0 auto var(--spacing-xl); }
.roi-cta-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(21, 101, 192, 0.09), rgba(255,255,255,0) 45%),
    var(--bg-white);
  border: 1px solid rgba(21, 101, 192, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.1);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}
.roi-cta-card::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(21, 101, 192, 0.08);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
}
.roi-cta-card--teaser {
  max-width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.roi-teaser-copy {
  max-width: 620px;
  margin: 0 auto;
}
.roi-cta-card .roi-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.roi-stat-item {
  min-width: 0;
  padding: 0.25rem 1.25rem;
  text-align: center;
}
.roi-stat-item + .roi-stat-item {
  box-shadow: inset 1px 0 0 var(--border-color);
}
.roi-stat-item strong {
  display: block;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.roi-stat-item span {
  display: block;
  max-width: 15ch;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .roi-cta-card {
    padding: 1.5rem;
  }

  .roi-cta-card .roi-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .roi-stat-item {
    padding: 0;
  }

  .roi-stat-item + .roi-stat-item {
    box-shadow: none;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
  }

  .roi-stat-item span {
    max-width: none;
  }
}

/* Respect the user's reduced-motion preference: disable the fadeInUp entry
   animations so vestibular-sensitive users don't get motion on load. */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .fade-in-up-delayed {
    animation: none;
    opacity: 1;
  }
}
