/* ═══════════════════════════════════════════════════════════════
   CAD Automation Pro  -  Pricing Calculator
   Design system: Space Grotesk + Space Mono
   Accent: #0ea5e9 (electric blue)
   ═══════════════════════════════════════════════════════════════ */


/* ── SELF-HOSTED FONTS (SIL OFL 1.1; see fonts/OFL.txt and fonts/SOURCES.txt) ── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/space-mono-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/space-mono-latin-400-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f4f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #f8f9fb;
  --color-surface-offset: #eef0f4;
  --color-border: #d8dce6;
  --color-divider: #e4e6ed;

  /* Text */
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #ffffff;

  /* Accent (electric blue) */
  --color-accent: #0ea5e9;
  --color-accent-hover: #0284c7;
  --color-accent-active: #0369a1;
  --color-accent-subtle: #e0f2fe;
  --color-accent-glow: rgba(14, 165, 233, 0.15);

  /* Muted */
  --color-muted: #6b7280;

  /* Status */
  --color-success: #22c55e;
  --color-success-subtle: #dcfce7;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.07);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.13);
  --shadow-accent: 0 4px 24px rgba(14, 165, 233, 0.25);

  /* Radius */
  --radius-xs: 0.25rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 320ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Widths */
  --content-default: 1200px;
  --content-narrow: 760px;

  /* Fonts */
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

[data-theme='dark'] {
  --color-bg: #0d1117;
  --color-surface: #161b22;
  --color-surface-2: #1c2128;
  --color-surface-offset: #21262d;
  --color-border: #2d333b;
  --color-divider: #262c34;

  --color-text: #e6edf3;
  --color-text-muted: #8b949e;
  --color-text-faint: #6e7681;
  --color-text-inverse: #0d1117;

  --color-accent: #38bdf8;
  --color-accent-hover: #0ea5e9;
  --color-accent-active: #0284c7;
  --color-accent-subtle: rgba(14, 165, 233, 0.12);
  --color-accent-glow: rgba(56, 189, 248, 0.18);

  --color-muted: #8b949e;

  --color-success: #3fb950;
  --color-success-subtle: rgba(63, 185, 80, 0.12);
  --color-warning: #d29922;
  --color-error: #f85149;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 24px rgba(56, 189, 248, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-surface-2: #1c2128;
    --color-surface-offset: #21262d;
    --color-border: #2d333b;
    --color-divider: #262c34;
    --color-text: #e6edf3;
    --color-text-muted: #8b949e;
    --color-text-faint: #6e7681;
    --color-text-inverse: #0d1117;
    --color-accent: #38bdf8;
    --color-accent-hover: #0ea5e9;
    --color-accent-active: #0284c7;
    --color-accent-subtle: rgba(14, 165, 233, 0.12);
    --color-accent-glow: rgba(56, 189, 248, 0.18);
    --color-muted: #8b949e;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 24px rgba(56, 189, 248, 0.2);
  }
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }

a, button, [role='button'], input, select {
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

::selection {
  background: var(--color-accent-glow);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.mono { font-family: var(--font-mono); }
.accent-text { color: var(--color-accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── LAYOUT UTILITIES ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
}
.btn-primary:active { background: var(--color-accent-active); }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

.btn-select {
  width: 100%;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
  margin-top: auto;
  padding: var(--space-3) var(--space-5);
}
.btn-select:hover, .btn-select:focus-visible {
  background: var(--color-accent-subtle);
  box-shadow: var(--shadow-accent);
}
.btn-select.selected {
  background: var(--color-accent);
  color: #fff;
}
.btn-select .btn-check { display: none; }
.btn-select.selected .btn-check { display: block; }
.btn-select.selected .btn-label::before { content: 'Selected '; }

.btn-select-featured {
  background: var(--color-accent);
  color: #fff;
}
.btn-select-featured:hover, .btn-select-featured:focus-visible {
  background: var(--color-accent-hover);
}
.btn-select-featured.selected {
  background: var(--color-accent-active);
}

.btn-enterprise {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-enterprise:hover, .btn-enterprise:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}
.btn-enterprise.selected {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-cta {
  width: 100%;
  justify-content: center;
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-slow), border-color var(--transition-slow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo:hover { color: var(--color-accent); }
.logo-text {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.logo-text strong { font-weight: 700; }

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: var(--radius-full);
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: transparent;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}
.mobile-menu-btn:hover { color: var(--color-text); }

.mobile-nav {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4);
  display: none;
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-nav:not([hidden]) {
  display: flex;
}
.mobile-nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
}
.mobile-nav-link:hover { background: var(--color-surface-offset); }
.mobile-nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  text-align: center;
  margin-top: var(--space-2);
}
.mobile-nav-cta:hover { background: var(--color-accent-hover) !important; }

@media (max-width: 768px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: flex; }
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

/* Grid background pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

[data-theme='dark'] .hero-grid,
:root:not([data-theme]) .hero-grid {
  opacity: 0.2;
}

/* Accent glow */
.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, var(--color-accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero-heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding: var(--space-5) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: inline-flex;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-number {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}
.section-header-left { text-align: left; }

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  margin-inline: auto;
  line-height: 1.6;
}
.section-header-left .section-sub { margin-inline: 0; }

/* ─── PRICING SECTION ────────────────────────────────────────── */
.pricing-section {
  background: var(--color-bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  align-items: start;
}

/* ─── PRICING CARD ───────────────────────────────────────────── */
.pricing-card {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
  cursor: pointer;
}
.pricing-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card[aria-selected='true'],
.pricing-card.card-selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow), var(--shadow-md);
}

.card-featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-accent);
}
.card-featured:hover {
  box-shadow: 0 0 0 3px var(--color-accent-glow), var(--shadow-lg);
  transform: translateY(-3px);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

.tier-name {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.tier-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.price-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 1.3rem + 1vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color var(--transition);
}
.price-amount.price-custom {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--color-accent);
}

.price-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
}

.tier-seats {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-offset);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  width: fit-content;
}

/* ─── FEATURE LIST ───────────────────────────────────────────── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.4;
}

.feature-item.feature-sub {
  padding-left: calc(20px + var(--space-2));
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: -var(--space-1);
}

.feature-item.feature-highlight {
  font-weight: 600;
}

.feature-item.feature-missing {
  color: var(--color-text-faint);
  text-decoration: line-through;
}

.check-icon, .x-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── SEAT ADJUSTER ──────────────────────────────────────────── */
.seat-adjuster {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: fadeIn 0.2s ease;
}

.seat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.seat-count {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-accent);
}

.seat-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.seat-per .mono,
.seat-total .mono {
  color: var(--color-text);
  font-weight: 600;
}

.seat-enterprise-msg {
  font-size: var(--text-xs);
  color: var(--color-warning);
  text-align: center;
}
.seat-enterprise-msg a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ─── RANGE/SLIDER INPUTS ────────────────────────────────────── */
.seat-slider,
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
}

.seat-slider::-webkit-slider-thumb,
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}

.seat-slider::-moz-range-thumb,
.roi-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.seat-slider:hover::-webkit-slider-thumb,
.roi-slider:hover::-webkit-slider-thumb,
.seat-slider:focus::-webkit-slider-thumb,
.roi-slider:focus::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

/* ─── CONFIGURE SECTION ──────────────────────────────────────── */
.configure-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.configure-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
  align-items: start;
}

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

/* ─── ADD-ONS ─────────────────────────────────────────────────── */
.addons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.addon-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}
.addon-card:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.addon-card:has(.addon-checkbox:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

/* Fallback for browsers without :has */
.addon-card.addon-checked {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

.addon-check-wrap {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.addon-checkbox {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}

.addon-check-ui {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition:
    border-color var(--transition),
    background-color var(--transition);
  color: transparent;
}

.addon-checkbox:checked ~ .addon-check-ui {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.addon-checkbox:focus-visible ~ .addon-check-ui {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.addon-check-ui svg {
  width: 12px;
  height: 12px;
}

.addon-body {
  flex: 1;
  min-width: 0;
}

.addon-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}

.addon-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.addon-price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.addon-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

/* ─── SUMMARY PANEL ──────────────────────────────────────────── */
.summary-panel {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: sticky;
  top: calc(64px + var(--space-6));
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-offset);
}

.summary-title {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.summary-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-full);
  padding: 2px var(--space-2);
}

.summary-body {
  padding: var(--space-5) var(--space-6);
  min-height: 180px;
}

.summary-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 160px;
  color: var(--color-text-muted);
  text-align: center;
}
.summary-empty p { font-size: var(--text-sm); max-width: none; }

.summary-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.summary-tier-row {
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--color-border);
}

.summary-row-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.summary-row-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.summary-row-price {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.summary-addons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.summary-addon-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  animation: fadeIn 0.2s ease;
}

.summary-addon-row .summary-row-price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-2);
}

.summary-total-row {
  padding-top: var(--space-1);
}

.summary-total-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.summary-total-price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color var(--transition);
}

.summary-cta-wrap {
  padding: var(--space-5) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.summary-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

/* ─── ROI SECTION ────────────────────────────────────────────── */
.roi-section {
  background: var(--color-bg);
}

.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

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

/* ─── ROI INPUTS ─────────────────────────────────────────────── */
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.roi-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.roi-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.roi-value-display {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  background: var(--color-accent-subtle);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  min-width: 60px;
  text-align: right;
  transition: color var(--transition);
}

.slider-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: -var(--space-1);
}

.roi-rate-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.roi-rate-prefix {
  position: absolute;
  left: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 1;
}

.roi-number-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-8);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-text);
  outline: none;
}
.roi-number-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.roi-number-input::-webkit-inner-spin-button,
.roi-number-input::-webkit-outer-spin-button {
  opacity: 1;
}

/* ─── ROI RESULTS ────────────────────────────────────────────── */
.roi-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.roi-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.roi-stat-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.roi-stat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.roi-highlight {
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.stat-saved .roi-stat-value,
.stat-money .roi-stat-value {
  color: var(--color-accent);
}

.roi-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roi-stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 0.9rem + 0.75vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color var(--transition-slow);
}

/* Number flip animation */
.roi-stat-value.updating {
  animation: numFlip 0.3s ease;
}

@keyframes numFlip {
  0% { transform: translateY(0); opacity: 1; }
  30% { transform: translateY(-4px); opacity: 0.4; }
  70% { transform: translateY(4px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 1; }
}

.roi-stat-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

.roi-breakeven-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-accent-subtle);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text);
  animation: fadeIn 0.3s ease;
}

.roi-breakeven-banner strong {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-weight: 700;
}

/* ─── CONTACT SECTION ────────────────────────────────────────── */
.contact-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-accent-subtle) 100%);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  box-shadow: var(--shadow-accent);
}

@media (max-width: 700px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
  }
}

.contact-heading {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

.contact-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .contact-actions { align-items: center; }
}

.contact-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
/* Same footer as every other page (rules mirror style.css; divider, copyright colour and container width
   are pinned to the style.css values because pricing-style.css uses slightly different base tokens). */
:root,
[data-theme='light'] { --footer-divider: #e4e7ed; --footer-copy: #b0b7c3; }
[data-theme='dark'] { --footer-divider: #21262d; --footer-copy: #3d444d; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { --footer-divider: #21262d; --footer-copy: #3d444d; }
}
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--footer-divider);
  padding-block: var(--space-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer .footer-inner { max-width: 1100px; padding-inline: var(--space-6); }
@media (min-width: 768px) {
  .footer .footer-inner { padding-inline: var(--space-8); }
}

.footer-logo { flex-shrink: 0; }
.footer .logo:hover { color: var(--color-text); }
.footer .logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.footer .logo-accent { color: var(--color-accent); }

.footer-copy {
  font-size: var(--text-xs);
  color: var(--footer-copy);
  max-width: none;
}

.footer-nav li { max-width: none; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  list-style: none;
}

.footer-nav a {
  font-size: var(--text-xs);
  color: var(--color-footer-link);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:visited { color: var(--color-footer-link-visited); }
.footer-nav a:hover { color: var(--color-footer-link-hover); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}
.social-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .footer-inner { flex-wrap: wrap; justify-content: center; gap: 1rem; text-align: center; }
  .footer-social { order: 3; width: 100%; justify-content: center; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pricing-card,
.addon-card,
.roi-stat-card {
  animation: fadeIn 0.3s ease both;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .roi-stat-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
  }
  .stat-divider {
    width: 40px;
    height: 1px;
  }
  .summary-panel {
    position: static;
  }
}

@media (max-width: 480px) {
  .addon-card {
    flex-direction: column;
    gap: var(--space-3);
  }
  .addon-check-wrap {
    margin-top: 0;
  }
}

/* ─── PRINT ──────────────────────────────────────────────────── */
@media print {
  .site-header, .theme-toggle, .btn, .seat-adjuster { display: none; }
  .pricing-card { break-inside: avoid; }
}

/* ── CONTENT LINK COLOURS ──
   Readable cyan on dark (>= 7:1 on every dark surface), darker teal on light.
   Applies only to plain text links (no class); buttons, nav, logo and social keep their own colours.
   Footer links use --color-footer-link* (cyan at 80% brightness on dark: #1ba9be; dark teal on light). */
:root,
[data-theme='light'] {
  --color-link: #164e63;
  --color-link-hover: #083344;
  --color-link-visited: #134e4a;
  --color-footer-link: #164e63;
  --color-footer-link-hover: #083344;
  --color-footer-link-visited: #134e4a;
}
[data-theme='dark'] {
  --color-link: #22d3ee;
  --color-link-hover: #67e8f9;
  --color-link-visited: #5eead4;
  --color-footer-link: #1ba9be;
  --color-footer-link-hover: #22d3ee;
  --color-footer-link-visited: #4bbbaa;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-link: #22d3ee;
    --color-link-hover: #67e8f9;
    --color-link-visited: #5eead4;
    --color-footer-link: #1ba9be;
    --color-footer-link-hover: #22d3ee;
    --color-footer-link-visited: #4bbbaa;
  }
}
a:not([class]):not(.footer-nav a) { color: var(--color-link); }
a:not([class]):not(.footer-nav a):visited { color: var(--color-link-visited); }
a:not([class]):not(.footer-nav a):hover { color: var(--color-link-hover); }
