/* ============================================
   NAPALM HOSTING — DESIGN TOKENS & STYLES
   Navy + Orange MSP Brand Palette
   ============================================ */

/* --- Type Scale --- */
:root {
  --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);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* --- Spacing (4px base) --- */
  --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;
  --space-32: 8rem;

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

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

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================
   LIGHT MODE (Default) — Navy/Orange Brand
   ============================================ */
:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:             #f5f6f8;
  --color-surface:        #ffffff;
  --color-surface-2:      #f9fafb;
  --color-surface-offset: #eef0f4;
  --color-border:         #d1d5de;
  --color-divider:        #e2e5ec;

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

  /* Primary — Navy */
  --color-primary:        #1b2a4a;
  --color-primary-hover:  #0f1d38;
  --color-primary-active: #0a1428;

  /* Accent — Orange */
  --color-accent:         #e87722;
  --color-accent-hover:   #d06418;
  --color-accent-active:  #b85410;

  /* Success */
  --color-success:        #16a34a;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.25 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 250 / 0.12);
}

/* ============================================
   DARK MODE
   ============================================ */
[data-theme="dark"] {
  --color-bg:             #0d1117;
  --color-surface:        #161b22;
  --color-surface-2:      #1c2129;
  --color-surface-offset: #21262d;
  --color-border:         #30363d;
  --color-divider:        #21262d;

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

  --color-primary:        #7e9cc9;
  --color-primary-hover:  #a0b8db;
  --color-primary-active: #c1d3ea;

  --color-accent:         #f5993d;
  --color-accent-hover:   #f7ad5f;
  --color-accent-active:  #f9c182;

  --color-success:        #3fb950;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0d1117;
    --color-surface:        #161b22;
    --color-surface-2:      #1c2129;
    --color-surface-offset: #21262d;
    --color-border:         #30363d;
    --color-divider:        #21262d;
    --color-text:           #e6edf3;
    --color-text-muted:     #8b949e;
    --color-text-faint:     #6e7681;
    --color-text-inverse:   #0d1117;
    --color-primary:        #7e9cc9;
    --color-primary-hover:  #a0b8db;
    --color-primary-active: #c1d3ea;
    --color-accent:         #f5993d;
    --color-accent-hover:   #f7ad5f;
    --color-accent-active:  #f9c182;
    --color-success:        #3fb950;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================
   COMPONENTS
   ============================================ */

/* --- Container --- */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

/* --- Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .nav-inner { padding-inline: var(--space-8); }
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo svg { flex-shrink: 0; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a.active {
  color: var(--color-accent);
}
.nav-cta {
  display: none;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.nav-cta:hover {
  background: var(--color-accent-hover);
}
@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}

/* Mobile menu toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--color-bg);
  padding: var(--space-16) var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-menu .close-menu {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* --- Hero Section --- */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 18ch;
}
.hero h1 .accent {
  color: var(--color-accent);
}
.hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  position: relative;
}
.hero-graphic .shield-ring {
  position: absolute;
  inset: 10%;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse-ring 3s ease-in-out infinite;
}
.hero-graphic .shield-ring:nth-child(2) {
  inset: 20%;
  animation-delay: 0.5s;
  border-color: var(--color-primary);
}
.hero-graphic .shield-ring:nth-child(3) {
  inset: 30%;
  animation-delay: 1s;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.03); }
}
.hero-graphic .shield-center {
  position: absolute;
  inset: 35%;
  background: linear-gradient(135deg, var(--color-primary) 0%, oklch(from var(--color-primary) calc(l + 0.1) c h) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-graphic .shield-center svg {
  width: 48%;
  height: 48%;
  color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}
.btn-primary:active {
  background: var(--color-accent-active);
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-muted);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --- Section Styles --- */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) 0;
}
.section-alt {
  background: var(--color-surface);
}
.section-header {
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-12));
}
.section-header .label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* --- Trust Bar --- */
.trust-bar {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card .icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Featured / Asymmetric Section --- */
.feature-split {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
}
.feature-split.reversed .feature-text { order: 1; }
@media (min-width: 768px) {
  .feature-split.reversed .feature-text { order: -1; }
}
.feature-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.feature-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.feature-visual {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.feature-visual svg {
  width: 100%;
  max-width: 320px;
  color: var(--color-primary);
}

/* --- Check List --- */
.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}
.check-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Pricing Cards --- */
.pricing-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--color-accent);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: calc(-1 * var(--space-3));
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-card .plan-name {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.pricing-card .plan-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.pricing-card .plan-price span {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}
.pricing-card .plan-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}
.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
.testimonial-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.testimonial-card .author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-card .author-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Stats --- */
.stats-row {
  display: grid;
  gap: var(--space-6);
  text-align: center;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); }
}
.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.contact-info-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}
.cta-banner p {
  font-size: var(--text-base);
  opacity: 0.85;
  margin-bottom: var(--space-6);
  max-width: 48ch;
  margin-inline: auto;
  color: var(--color-text-inverse);
}
.cta-banner .btn-primary {
  background: var(--color-accent);
}
.cta-banner .btn-primary:hover {
  background: var(--color-accent-hover);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: oklch(from var(--color-text-inverse) l c h / 0.8);
  padding: var(--space-12) 0 var(--space-6);
}
.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 32ch;
  margin-top: var(--space-3);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: oklch(from var(--color-text-inverse) l c h / 0.7);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-text-inverse);
}
.footer-bottom {
  border-top: 1px solid oklch(from var(--color-text-inverse) l c h / 0.15);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
}
.footer-bottom a {
  color: oklch(from var(--color-text-inverse) l c h / 0.5);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--color-text-inverse);
}

/* --- About Page --- */
.about-hero {
  text-align: center;
  padding: clamp(var(--space-12), 8vw, var(--space-20)) 0;
}
.about-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  max-width: 20ch;
  margin-inline: auto;
}
.about-hero p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* Certification badges */
.cert-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .cert-grid { grid-template-columns: repeat(4, 1fr); }
}
.cert-item {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.cert-item svg {
  width: 40px;
  height: 40px;
  margin-inline: auto;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
}
.cert-item .cert-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.cert-item .cert-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* --- Hero Stat Badge --- */
.hero-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: oklch(from var(--color-accent) l c h / 0.12);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid oklch(from var(--color-accent) l c h / 0.2);
}
.hero-stat-badge svg {
  flex-shrink: 0;
  display: inline;
}
.badge-cite {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.badge-cite:hover {
  opacity: 0.8;
}
.badge-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-accent);
  opacity: 0.6;
  margin-left: var(--space-1);
}
.badge-close:hover {
  opacity: 1;
  background: oklch(from var(--color-accent) l c h / 0.15);
}
.inline-cite {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}
.inline-cite:hover {
  color: var(--color-accent);
}

/* --- Pricing Sub-price --- */
.pricing-card .plan-subprice {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* --- Retainer Banner --- */
.retainer-banner {
  margin-top: var(--space-8);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .retainer-banner { grid-template-columns: 1fr auto; padding: var(--space-8); }
}
.retainer-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.retainer-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 52ch;
}
.retainer-options {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.retainer-option {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.retainer-option.retainer-featured {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.retainer-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  opacity: 0.7;
}
.retainer-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.retainer-save {
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
}
.retainer-featured .retainer-save {
  color: var(--color-accent);
}

/* --- Case Study Cards --- */
.case-study-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .case-study-grid { grid-template-columns: repeat(2, 1fr); }
}
.case-study-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.case-study-type {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.case-study-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.case-study-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.case-study-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.case-stat {
  text-align: center;
}
.case-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-accent);
}
.case-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- ROI Calculator --- */
.calculator-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-6);
  max-width: 720px;
  margin-inline: auto;
}
@media (min-width: 600px) {
  .calculator-card { grid-template-columns: 1fr 1fr; padding: var(--space-8); }
}
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.calc-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.calc-field input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  font-family: var(--font-body);
}
.calc-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}
.input-with-prefix {
  display: flex;
  align-items: center;
}
.input-prefix {
  padding: var(--space-3) var(--space-3);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.input-with-prefix input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.calc-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  color: var(--color-text-inverse);
}
.calc-result-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: var(--space-2);
}
.calc-result-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.calc-result-sub {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* --- Lead Magnet --- */
.lead-magnet {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .lead-magnet { grid-template-columns: 1fr 1fr; }
}
.lead-magnet-content .label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}
.lead-magnet-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.lead-magnet-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.lead-magnet-form {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.lm-form .form-group { margin-bottom: var(--space-4); }
.lm-form .form-group:last-of-type { margin-bottom: var(--space-6); }
.lm-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-3);
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.blog-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}
.blog-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

/* --- Services page detail --- */
.service-detail {
  padding: var(--space-8) 0;
}
.service-detail + .service-detail {
  border-top: 1px solid var(--color-divider);
}

/* --- Scroll animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page-specific hero pattern (services/about/contact) --- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}
.page-hero p {
  font-size: var(--text-base);
  opacity: 0.85;
  max-width: 52ch;
  margin-inline: auto;
  color: var(--color-text-inverse);
}
