/* ==========================================================================
   ItHelpExpress — Global Stylesheet
   Enterprise IT. Small Business Price.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Custom Properties (design tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-navy: #0F1F3D;
  --color-navy-soft: #1A2E56;
  --color-blue: #2563EB;
  --color-blue-dark: #1D4ED8;
  --color-blue-light: #EFF4FF;
  --color-white: #FFFFFF;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-400: #94A3B8;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-green: #16A34A;
  --color-green-light: #ECFDF3;
  --color-amber: #D97706;
  --color-red: #DC2626;
  --color-red-light: #FEF2F2;

  /* Semantic aliases */
  --color-text: var(--color-navy);
  --color-text-muted: var(--color-gray-600);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-gray-50);
  --color-border: var(--color-gray-200);
  --color-accent: var(--color-blue);
  --color-trust: var(--color-green);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* 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;

  /* Radii & shadows */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.06);
  --shadow: 0 4px 12px rgba(15, 31, 61, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 31, 61, 0.12);
  --shadow-xl: 0 24px 56px rgba(15, 31, 61, 0.18);

  /* Layout */
  --container: 1160px;
  --container-narrow: 760px;
  --nav-height: 72px;

  --transition: 180ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* The hidden attribute must win over any display rule below (several
   components set display: flex / grid on elements we toggle with [hidden]). */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}

h1 { font-size: clamp(2.1rem, 5.2vw, var(--text-5xl)); }
h2 { font-size: clamp(1.65rem, 3.6vw, var(--text-4xl)); }
h3 { font-size: var(--text-xl); }

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

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-blue-dark); }

ul { list-style: none; }

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

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
  transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); color: var(--color-white); }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--space-20) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--navy { background: var(--color-navy); }
.section--navy h2, .section--navy h3 { color: var(--color-white); }
.section--navy p { color: rgba(255, 255, 255, 0.72); }

.section-head { max-width: 640px; margin-bottom: var(--space-12); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.section--navy .eyebrow { color: #7FA8FF; }

.section-head p {
  font-size: var(--text-lg);
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--color-blue); color: var(--color-white); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--color-blue-dark); color: var(--color-white); box-shadow: var(--shadow-lg); }

.btn--secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn--secondary:hover { border-color: var(--color-blue); color: var(--color-blue); }

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-white); }

.btn--green { background: var(--color-green); color: var(--color-white); }
.btn--green:hover { background: #128040; color: var(--color-white); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--text-lg); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--color-navy); }
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-navy) 100%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo span { color: var(--color-blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  position: relative;
  padding: var(--space-2) 0;
}
.nav-links a:hover { color: var(--color-navy); }
.nav-links a.is-active { color: var(--color-blue); font-weight: 600; }
.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
}

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 0.65rem 1.25rem; font-size: var(--text-sm); }
/* .btn's gap is sized for icon + text; between two words it reads too wide. */
.nav-cta .btn { gap: 0.3em; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  cursor: pointer;
  color: var(--color-navy);
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: var(--space-2) var(--space-6) var(--space-4);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-gray-100); }
  .nav-links a.is-active::after { display: none; }
  .nav-cta .btn { padding: 0.6rem 1rem; }
}

/* Narrow phones: logo + menu button + CTA must still fit on one line. */
@media (max-width: 560px) {
  :root { --nav-height: 64px; }
  .container { padding: 0 var(--space-4); }
  .nav-inner { gap: var(--space-3); }
  .logo { font-size: var(--text-lg); gap: 6px; }
  .logo-mark { width: 28px; height: 28px; border-radius: 7px; }
  .logo-mark svg { width: 15px; height: 15px; }
  .nav-cta { gap: var(--space-2); display: flex; align-items: center; }
  .nav-cta .btn { padding: 0.55rem 0.8rem; font-size: var(--text-xs); white-space: nowrap; }
  .nav-toggle { padding: 5px; }
}

/* Smallest phones (iPhone SE and similar): CTA shortens to just "Free". */
@media (max-width: 380px) {
  .cta-full { display: none; }
  .logo { font-size: var(--text-base); }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy) 0%, #14294F 55%, #17325F 100%);
  color: var(--color-white);
  padding: var(--space-20) 0 var(--space-24);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 78% 30%, rgba(37, 99, 235, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(22, 163, 74, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #A8C6FF;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero h1 { color: var(--color-white); max-width: 15ch; }
.hero h1 .accent { color: #7FA8FF; }

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.76);
  max-width: 52ch;
  margin-top: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero h1 { max-width: 100%; }
}

/* --------------------------------------------------------------------------
   7. IT Health Score widget
   -------------------------------------------------------------------------- */
.health-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
}

.health-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.health-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.health-card__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-green);
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
}
.health-card__live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-green);
  animation: blink 1.6s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.health-gauge {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.gauge-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.gauge-ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.gauge-ring circle { fill: none; stroke-linecap: round; }
.gauge-track { stroke: rgba(255, 255, 255, 0.12); stroke-width: 11; }
.gauge-fill { stroke: url(#healthGradient); stroke-width: 11; transition: stroke-dashoffset 60ms linear; }

.gauge-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.gauge-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.gauge-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

.health-metrics { flex: 1; min-width: 0; display: grid; gap: var(--space-3); }
.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.metric-row .metric-name { color: rgba(255, 255, 255, 0.72); }
.metric-row .metric-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
}
.metric-row .metric-state .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 300ms ease, box-shadow 300ms ease;
}
.metric-row.is-on .metric-state { color: var(--color-green); }
.metric-row.is-on .metric-state .pip {
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(22, 163, 74, 0.8);
}
.metric-row.is-warn .metric-state { color: #FBBF24; }
.metric-row.is-warn .metric-state .pip {
  background: #FBBF24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.7);
}

.health-card__foot {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}
.health-card__foot a { color: #7FA8FF; font-weight: 600; }

@media (max-width: 520px) {
  .health-gauge { flex-direction: column; align-items: stretch; }
  .gauge-ring { margin: 0 auto; }
}

/* --------------------------------------------------------------------------
   8. Trust bar
   -------------------------------------------------------------------------- */
.trust-bar {
  background: var(--color-navy-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-4) 0;
}
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3) var(--space-8);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.trust-item svg { width: 16px; height: 16px; color: var(--color-green); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   9. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #CBD8EA; }
.card h3 { margin-bottom: var(--space-2); }
.card p { font-size: var(--text-sm); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon--green { background: var(--color-green-light); color: var(--color-green); }
.card-icon--red { background: var(--color-red-light); color: var(--color-red); }

/* Pain point cards */
.pain-card { border-left: 3px solid var(--color-red); }
.pain-card .pain-answer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-navy);
  font-weight: 500;
}
.pain-card .pain-answer strong { color: var(--color-green); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-8); }
.step { position: relative; padding-top: var(--space-4); }
.step-num {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1;
  color: rgba(127, 168, 255, 0.28);
  margin-bottom: var(--space-3);
}
.section--navy .step h3 { color: var(--color-white); margin-bottom: var(--space-2); }
.section--navy .step p { font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   10. Pricing
   -------------------------------------------------------------------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-gray-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-1);
  margin: 0 auto var(--space-10);
}
.billing-toggle button {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray-600);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.billing-toggle button.is-active {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}
.billing-toggle .save-tag {
  font-size: var(--text-xs);
  color: var(--color-green);
  font-weight: 700;
  margin-left: var(--space-1);
}

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

.plan {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plan--featured {
  border: 2px solid var(--color-blue);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-blue);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.plan__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
}
.plan__blurb { font-size: var(--text-sm); margin-top: var(--space-1); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin: var(--space-5) 0 var(--space-1);
}
.plan__amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan__period { font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 500; }
.plan__sub { font-size: var(--text-xs); color: var(--color-green); font-weight: 600; }

.plan__specs {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-5) 0;
  padding: var(--space-4);
  background: var(--color-gray-50);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.plan__spec { display: flex; justify-content: space-between; gap: var(--space-3); }
.plan__spec dt { color: var(--color-text-muted); }
.plan__spec dd { color: var(--color-navy); font-weight: 600; text-align: right; }

.plan__features { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}
.plan__features svg { width: 17px; height: 17px; color: var(--color-green); flex-shrink: 0; margin-top: 3px; }

.plan .btn { margin-top: auto; }

/* Included-in-all band */
.included-band {
  margin-top: var(--space-10);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.included-band h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.included-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.included-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}
.included-list svg { width: 16px; height: 16px; color: var(--color-green); flex-shrink: 0; }

/* Add-ons */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}
.addon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.addon:hover { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }
.addon__name { font-weight: 600; font-size: var(--text-sm); color: var(--color-navy); }
.addon__desc { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.addon__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-blue);
  white-space: nowrap;
  text-align: right;
}
.addon__price small { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  background: var(--color-gray-50);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-navy);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
tbody td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  border-bottom: 1px solid var(--color-gray-100);
}
tbody tr:last-child td { border-bottom: none; }
tbody th {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
  border-bottom: 1px solid var(--color-gray-100);
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq-list { display: grid; gap: var(--space-3); max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item[open] { border-color: var(--color-blue); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq-answer { padding: 0 var(--space-5) var(--space-5); }
.faq-answer p { font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}
.field .req { color: var(--color-red); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-gray-400); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--color-red); }
.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14); }

.error-msg { font-size: var(--text-xs); color: var(--color-red); font-weight: 500; display: none; }
.field.has-error .error-msg { display: block; }

.radio-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.radio-pill {
  position: relative;
  display: inline-flex;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  transition: all var(--transition);
}
.radio-pill input:checked + span {
  border-color: var(--color-blue);
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-weight: 600;
}
.radio-pill input:focus-visible + span { outline: 3px solid var(--color-blue); outline-offset: 2px; }

.form-note { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }

/* Panels for confirmation / results */
.panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}
.panel--success { border-color: #A7E3BF; background: var(--color-green-light); }

.success-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.success-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.success-icon svg { width: 22px; height: 22px; }
.success-head h2 { font-size: var(--text-2xl); }
.success-head p { margin-top: var(--space-1); }

.triage-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-top: var(--space-5);
}
.triage-box h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.triage-box h3 svg { width: 18px; height: 18px; color: var(--color-blue); }
.triage-box ul { display: grid; gap: var(--space-3); }
.triage-box li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}
.triage-box li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   13. Loading indicators
   -------------------------------------------------------------------------- */
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
  animation: bounce 1.3s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.18s; }
.dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.loading-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   14. Contact info cards
   -------------------------------------------------------------------------- */
.contact-methods { display: grid; gap: var(--space-4); }
.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
}
.contact-method svg { width: 20px; height: 20px; color: var(--color-blue); flex-shrink: 0; }
.contact-method .label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.contact-method .value { font-weight: 600; color: var(--color-navy); font-size: var(--text-base); }

/* Contact page two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: start;
  gap: var(--space-8);
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   15. Assessment quiz
   -------------------------------------------------------------------------- */
.quiz { max-width: 720px; margin: 0 auto; }
.quiz-progress {
  height: 6px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.quiz-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  border-radius: var(--radius-full);
  transition: width 300ms ease;
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}

.quiz-question {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
}
.quiz-question h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}
.quiz-answers { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.quiz-answers .btn { flex: 1; min-width: 130px; }

.quiz-back {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  margin-top: var(--space-5);
  padding: var(--space-2);
}
.quiz-back:hover { color: var(--color-navy); }
.quiz-back[hidden] { display: none; }

.result-plan {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  background: var(--color-blue-light);
  border: 1px solid #C7D9FF;
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-5);
  margin: var(--space-4) 0 var(--space-5);
}
.result-plan .name { font-family: var(--font-heading); font-weight: 700; font-size: var(--text-xl); color: var(--color-navy); }
.result-plan .price { font-weight: 600; color: var(--color-blue); }

.result-body { font-size: var(--text-base); color: var(--color-gray-700); }
.result-body p { margin-bottom: var(--space-4); color: var(--color-gray-700); }
.result-body p:last-child { margin-bottom: 0; }
.result-body ul { display: grid; gap: var(--space-2); margin: var(--space-2) 0 var(--space-4); }
.result-body li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}
.result-body li::before {
  content: '+';
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
}
.result-body strong { color: var(--color-navy); }

.result-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); }

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(150deg, var(--color-navy) 0%, #1B3566 100%);
  color: var(--color-white);
  padding: var(--space-20) 0;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.65);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .logo { color: var(--color-white); margin-bottom: var(--space-4); }
.site-footer .logo:hover { color: var(--color-white); }
.footer-blurb { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.6); max-width: 34ch; }

.footer-col h4 {
  font-size: var(--text-sm);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a, .footer-col span {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-green);
  font-weight: 600;
}
.footer-bottom .badge svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   18. AI chat widget
   -------------------------------------------------------------------------- */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-blue);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: background var(--transition), transform var(--transition);
}
.chat-launcher:hover { background: var(--color-blue-dark); transform: translateY(-2px); }
.chat-launcher svg { width: 19px; height: 19px; }
.chat-launcher.is-hidden { display: none; }

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 40px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.is-open { display: flex; }

.chat-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-shrink: 0;
}
.chat-header__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.chat-header__status {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.chat-header__status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-green); }
.chat-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-white);
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-close:hover { background: rgba(255, 255, 255, 0.2); }
.chat-close svg { width: 16px; height: 16px; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-gray-50);
  scroll-behavior: smooth;
}

.chat-msg { display: flex; max-width: 88%; }
.chat-msg__bubble {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg--bot { align-self: flex-start; }
.chat-msg--bot .chat-msg__bubble {
  background: var(--color-white);
  color: var(--color-gray-700);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 3px;
}
.chat-msg--user { align-self: flex-end; }
.chat-msg--user .chat-msg__bubble {
  background: var(--color-blue);
  color: var(--color-white);
  border-bottom-right-radius: 3px;
}
.chat-msg--error .chat-msg__bubble {
  background: var(--color-red-light);
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.chat-typing {
  align-self: flex-start;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-bottom-left-radius: 3px;
  padding: 0.75rem 1rem;
  color: var(--color-gray-400);
}

.chat-suggestions {
  padding: 0 var(--space-5) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  background: var(--color-gray-50);
  flex-shrink: 0;
}
.chat-suggestions button {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-blue);
  background: var(--color-white);
  border: 1px solid #C7D9FF;
  border-radius: var(--radius-full);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.chat-suggestions button:hover { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }
.chat-suggestions:empty { display: none; }

.chat-form {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
  flex-shrink: 0;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
}
.chat-form input:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.chat-send {
  background: var(--color-blue);
  border: none;
  color: var(--color-white);
  width: 42px;
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send:hover { background: var(--color-blue-dark); }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .chat-panel {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    height: calc(100vh - 16px);
    max-height: none;
  }
  .chat-launcher { right: 14px; bottom: 14px; }
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.hidden { display: none !important; }

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. AI Automation package
   -------------------------------------------------------------------------- */
.section--automation {
  position: relative;
  background: linear-gradient(165deg, var(--color-navy) 0%, #14294F 55%, #17325F 100%);
  color: var(--color-white);
  overflow: hidden;
}
.section--automation::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 15%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 15%, #000 20%, transparent 100%);
  pointer-events: none;
}
.section--automation > .container { position: relative; z-index: 1; }
.section--automation h2,
.section--automation h3,
.section--automation h4 { color: var(--color-white); }
.section--automation p { color: rgba(255, 255, 255, 0.72); }
.section--automation .eyebrow { color: #7FA8FF; }

/* Every .section-head after the first one in this (long, multi-part)
   section gets breathing room from the block above it. */
.section--automation .section-head:not(:first-child) { margin-top: var(--space-16); }

.automation-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-blue) 0%, #7C3AED 100%);
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}
.automation-icon svg { width: 26px; height: 26px; }

/* Pain cards reuse the site's .card, darkened for this section */
.section--automation .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.section--automation .card:hover { border-color: rgba(255, 255, 255, 0.28); box-shadow: var(--shadow-xl); }
.section--automation .card-icon { background: rgba(255, 255, 255, 0.12); color: #7FA8FF; }
.automation-pain-card { border-left: 3px solid rgba(248, 113, 113, 0.7); }
.automation-pain-card h3 { font-size: var(--text-lg); line-height: 1.35; }

.automation-tagline {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  margin: var(--space-8) 0 0;
}
.automation-tagline strong { color: #7FA8FF; }

/* Setup fee cards */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}
.fee-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(6px);
  transition: border-color var(--transition), transform var(--transition);
}
.fee-card:hover { border-color: rgba(255, 255, 255, 0.28); transform: translateY(-3px); }
.fee-card__tier {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7FA8FF;
  margin-bottom: var(--space-2);
}
.fee-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.fee-card__examples { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.68); }
.fee-note {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* Retainer plan cards — same anatomy as .plan, styled for the dark section,
   with a gradient-border treatment on the "Most Popular" tier. */
.automation-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-6);
  align-items: start;
}
.automation-plan { position: relative; height: 100%; transition: transform var(--transition); }
.automation-plan:hover { transform: translateY(-3px); }
.automation-plan__inner {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--color-navy);
}
.automation-plan__inner p { color: var(--color-text-muted); }

.automation-plan--popular {
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 55%, #16A34A 100%);
  box-shadow: var(--shadow-xl);
}
.automation-plan--popular .automation-plan__inner { border: none; }

.automation-plan__addon-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-blue);
  background: var(--color-blue-light);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.automation-plan__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
}
.automation-plan__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin: var(--space-4) 0 var(--space-5);
}
.automation-plan__price span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 2px;
}
.automation-plan__best {
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--color-border);
}
.automation-plan .btn { margin-top: var(--space-5); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  backdrop-filter: blur(6px);
}
.testimonial__mark {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(127, 168, 255, 0.4);
  margin-bottom: var(--space-2);
}
.testimonial p {
  color: var(--color-white);
  font-size: var(--text-lg);
  line-height: 1.5;
  margin-bottom: var(--space-4);
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

/* "What can be automated" example grid */
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
}
.emoji-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: border-color var(--transition), background var(--transition);
}
.emoji-item:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.09); }
.emoji-item .emoji { font-size: 1.35rem; flex-shrink: 0; }

@media (max-width: 640px) {
  .automation-icon { width: 44px; height: 44px; }
  .automation-plan__price { font-size: 2.1rem; }
}

/* --------------------------------------------------------------------------
   21. Automation quiz (automation.html) — dropdown & multi-select question
   types, layered on top of the .quiz/.quiz-question shell from the
   assessment quiz.
   -------------------------------------------------------------------------- */
.quiz-select-row { display: grid; gap: var(--space-5); }
.quiz-continue-row { display: flex; justify-content: flex-end; margin-top: var(--space-2); }

.checkbox-pill-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.checkbox-pill { position: relative; display: inline-flex; }
.checkbox-pill input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.checkbox-pill span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-700);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1.1rem;
  transition: all var(--transition);
}
.checkbox-pill input:checked + span {
  border-color: var(--color-blue);
  background: var(--color-blue-light);
  color: var(--color-blue);
  font-weight: 600;
}
.checkbox-pill input:focus-visible + span { outline: 3px solid var(--color-blue); outline-offset: 2px; }

/* Personalized automation recommendation */
.automation-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-2) 0 var(--space-6);
}
.automation-result-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.automation-result-card h4 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.automation-result-card p { font-size: var(--text-sm); }
.hours-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-green);
  background: var(--color-green-light);
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
}
