/* ============================================================
   BUSINESS TECH NAVIGATOR — ZENITH LIGHT DESIGN SYSTEM
   Primary: #1668B2  Secondary: #37B54A  Theme: Zenith Light
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --primary:       #1668B2;
  --primary-dark:  #0f4d8a;
  --primary-light: #dbeafe;
  --primary-mid:   #2563eb;

  --secondary:     #37B54A;
  --secondary-dark:#2a8a38;
  --secondary-light:#dcfce7;

  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;
  --text-inverse:  #ffffff;

  --surface:       #ffffff;
  --surface-alt:   #f8fafc;
  --surface-card:  #ffffff;
  --surface-glass: rgba(255,255,255,0.85);

  --border:        #e2e8f0;
  --border-focus:  #1668B2;
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --border-radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-blue: 0 8px 32px rgba(22,104,178,.18);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --duration:  220ms;

  --max-width: 1280px;
  --content-width: 760px;
  /* Legal long-form: wider than blog prose so large screens use less empty margin; still capped for scanning */
  --legal-measure: min(56rem, 100%);

  --nav-height: 84px;
  --nav-bg: rgba(255,255,255,0.95);

  --gradient-hero:    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --gradient-primary: linear-gradient(135deg, #1668B2 0%, #2563eb 100%);
  --gradient-card:    linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  --gradient-green:   linear-gradient(135deg, #37B54A 0%, #22c55e 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--gradient-hero);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
/* Do not apply max-width:100% to all SVGs — blows up icon-only vectors without width/height */
svg { display: block; }
.prose svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.0625rem; }
h6 { font-size: 0.9375rem; }

p { color: var(--text-secondary); line-height: 1.75; }

.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted     { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease-out);
}
.site-nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.nav-logo img, .nav-logo svg {
  height: clamp(46px, 5.5vw, 58px);
  width: auto;
  max-height: 58px;
}
.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.4rem 0.875rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 1.125rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-alt);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
  cursor: pointer;
}
.nav-search:hover { border-color: var(--primary); color: var(--primary); }
.nav-search svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-search-kbd {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1875rem 0.4375rem;
  background: var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Desktop dropdowns */
.nav-dd {
  position: relative;
}
.nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}
.nav-dd-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  margin-left: 0.125rem;
}
.nav-dd-trigger:hover,
.nav-dd-trigger.active,
.nav-dd.is-open > .nav-dd-trigger {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-dd-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 12.5rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration) var(--ease-out), transform var(--duration) var(--ease-out), visibility var(--duration);
  z-index: 1200;
}
.nav-dd.is-open .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}
.nav-dd-panel a:hover,
.nav-dd-panel a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-secondary);
  transition: color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}
.nav-menu-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile slide-out menu */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration) var(--ease-out), visibility var(--duration);
}
.nav-drawer-backdrop.nav-drawer--open {
  opacity: 1;
  visibility: visible;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(22rem, 100vw);
  height: 100%;
  max-height: 100dvh;
  z-index: 1100;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--duration) var(--ease-out);
}
.nav-drawer.nav-drawer--open {
  transform: translateX(0);
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-title {
  font-weight: 700;
  font-size: 1rem;
}
.nav-drawer-close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  border: none;
  background: transparent;
}
.nav-drawer-close:hover {
  color: var(--text-primary);
  background: var(--surface-alt);
}
.nav-drawer-body {
  padding: 1rem 1.25rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-drawer-link {
  padding: 0.65rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.nav-drawer-link:hover,
.nav-drawer-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-drawer-details {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-top: 0.25rem;
}
.nav-drawer-details summary {
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
}
.nav-drawer-details summary::-webkit-details-marker { display: none; }
.nav-drawer-sub {
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem 0.5rem;
  gap: 0.125rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.nav-drawer-sub a {
  padding: 0.5rem 0.65rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-drawer-sub a:hover {
  color: var(--primary);
  background: var(--surface);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(22,104,178,.28); }
.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text-primary); }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--border-radius); }
.btn-icon { padding: 0.5rem; border-radius: var(--border-radius-sm); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-gradient { background: var(--gradient-card); }

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.card-body { padding: 1.25rem 1.5rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color var(--duration);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card:hover .card-title { color: var(--primary); }
.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Badges / Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-green    { background: var(--secondary-light); color: var(--secondary-dark); }
.badge-gray     { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--primary);
  background: var(--primary-light);
  transition: background var(--duration);
}
.tag:hover { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,104,178,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 0.875rem; }
.section-desc { font-size: 1.0625rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto; }

/* ---------- Article Content ---------- */
/* Legal / policy pages — calm editorial, primary + neutrals only */
.legal-page-top {
  padding: 2.75rem 0 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.legal-page-top .breadcrumb {
  margin-bottom: 1.125rem;
}
.legal-page-title {
  font-size: clamp(1.875rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--text-primary);
  max-width: var(--legal-measure);
}
.legal-page-lead {
  margin: 0;
  max-width: var(--legal-measure);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-page-lead__meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}
.legal-page-lead a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-page-lead a:hover {
  color: var(--primary-dark);
}

.legal-contact-band {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.legal-contact-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) {
  .legal-contact-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.35rem 1.5rem;
  }
}
.legal-contact-band__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.legal-contact-band__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.375rem;
  line-height: 1.35;
}
.legal-contact-band__hint {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: min(40rem, 100%);
}
.legal-contact-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .legal-contact-band__actions {
    justify-content: flex-end;
  }
}
.legal-contact-band__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.legal-contact-band__btn:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}
.legal-contact-band__btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.legal-contact-band__btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.legal-contact-band__btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.legal-contact-band__btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.legal-page-main {
  padding: 2.5rem 0 4rem;
  background: var(--surface);
}
.legal-callout {
  max-width: var(--legal-measure);
  margin: 0 auto 2.25rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  background: var(--surface-alt);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.legal-callout--emphasis {
  border-left-color: var(--primary);
  background: linear-gradient(90deg, var(--primary-light) 0%, var(--surface-alt) 42%);
}
.legal-callout strong {
  color: var(--text-primary);
}

.legal-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.legal-doc.prose {
  max-width: var(--legal-measure);
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2rem;
}
.legal-doc.prose h2 { margin-top: 2.75rem; font-size: 1.375rem; scroll-margin-top: calc(var(--nav-height) + 0.5rem); }
.legal-doc.prose h3 { font-size: 1.0625rem; margin-top: 1.75rem; color: var(--text-primary); }

.legal-doc.prose.legal-doc--rich h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: none;
  scroll-margin-top: calc(var(--nav-height) + 0.75rem);
}
.legal-doc.prose.legal-doc--rich h2:first-of-type {
  margin-top: 0;
}
.legal-doc.prose.legal-doc--rich ul {
  padding: 1rem 1.25rem 1rem 1.75rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
}
.legal-doc.prose.legal-doc--rich ul li {
  margin-bottom: 0.5rem;
}
.legal-doc.prose.legal-doc--rich ul li::marker {
  color: var(--primary);
}
.legal-doc.prose.legal-doc--rich p strong,
.legal-doc.prose.legal-doc--rich li strong {
  color: var(--text-primary);
}

.prose { max-width: var(--content-width); }
.prose h2, .prose h3 { margin: 2rem 0 0.875rem; color: var(--text-primary); }
.prose h2 { font-size: 1.625rem; scroll-margin-top: calc(var(--nav-height) + 0.75rem); }
.prose h3 { font-size: 1.25rem; scroll-margin-top: calc(var(--nav-height) + 0.5rem); }
.prose h4 { font-size: 1.0625rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--text-primary); letter-spacing: -0.01em; }
.prose p  { margin-bottom: 1.25rem; color: var(--text-secondary); font-size: 1.0625rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: revert; }
.prose li { margin-bottom: 0.375rem; color: var(--text-secondary); }
.prose a  { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 0.875rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
}
.prose code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--primary-dark);
}
.prose pre {
  background: #0f172a;
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.7;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose img {
  border-radius: var(--border-radius-lg);
  margin: 1.75rem 0;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.prose figure { margin: 1.75rem 0; }
.prose .za-table-wrapper {
  margin: 1.75rem 0;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose .za-table-wrapper table {
  margin: 0;
  min-width: 100%;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th { background: var(--primary-light); color: var(--primary); padding: 0.625rem 0.875rem; text-align: left; font-weight: 600; }
.prose td { padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.prose .industrial-block { margin: 2rem 0; }
.prose .industrial-block .block-body { font-size: 1rem; line-height: 1.7; }
.prose .industrial-block .block-body p { font-size: inherit; }

/* ---------- Industrial Blocks ---------- */
.industrial-block {
  border-left: 4px solid var(--block-color, var(--primary));
  background: color-mix(in srgb, var(--block-color, var(--primary)) 6%, white);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.block-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.block-icon { font-size: 1.125rem; line-height: 1; }
.block-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--block-color, var(--primary));
}
.block-body { color: var(--text-secondary); font-size: 0.9375rem; }
.block-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--border-radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22,104,178,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { font-size: 0.8125rem; color: #dc2626; margin-top: 0.25rem; }

/* ---------- Alerts ---------- */
.alert {
  padding: 0.875rem 1.125rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 1rem;
}
.alert-success { background: var(--secondary-light); color: var(--secondary-dark); border: 1px solid #86efac; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #93c5fd; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 2rem 0;
}
.page-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}
.page-item:hover    { border-color: var(--primary); color: var(--primary); }
.page-item.active   { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-item.disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Interactive Accordions & Callouts ---------- */
.za-faq-container { margin: 3.5rem 0; border-top: 1px solid var(--border); }
.za-faq-accordion {
  border-bottom: 1px solid var(--border);
  background: transparent;
  width: 100%;
  transition: background 0.3s ease;
}
.za-faq-accordion summary {
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  gap: 16px;
  line-height: 1.4;
  transition: color 0.2s;
}
.za-faq-accordion summary::-webkit-details-marker,
.za-faq-accordion summary::marker { display: none; }
.za-faq-accordion summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease-out), border-color 0.2s;
}
.za-faq-accordion[open] { background: var(--surface-alt); }
.za-faq-accordion[open] summary { color: var(--primary); }
.za-faq-accordion[open] summary::after {
  transform: rotate(-135deg) translateY(4px);
  border-color: var(--primary);
}
.za-faq-content, .za-faq-accordion > p {
  padding: 0 0 20px !important;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 !important;
}

.za-tldr-box {
  margin: 3rem 0;
  padding: 2rem 2.25rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--border-radius-sm);
  position: relative;
}
.za-tldr-box h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.za-tldr-box p { margin: 0; font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.za-tldr-box strong { color: var(--text-primary); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-size: 1rem; font-weight: 700; color: #fff; margin-top: 0.75rem; }
.footer-tagline { font-size: 0.875rem; margin-top: 0.375rem; color: #64748b; }
.footer-col-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #e2e8f0; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color var(--duration);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #94a3b8;
}
.footer-bottom a { color: #e2e8f0; font-weight: 500; }
.footer-bottom a:hover { color: #fff; }
.footer-owned { font-size: 0.75rem; color: #94a3b8; margin: 0; }
.footer-owned a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 2px; }
.footer-owned a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--border-radius-sm);
  background: #1e293b;
  color: #64748b;
  transition: all var(--duration) var(--ease-out);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

/* ---------- Mobile Bottom Nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 env(safe-area-inset-bottom, 0.5rem);
}
.mobile-nav-inner { display: flex; justify-content: space-around; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease-out);
}
.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--primary); }

/* ---------- Loader / Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.6s infinite;
  border-radius: var(--border-radius-sm);
}
@keyframes skeleton-wave { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.divide-y > * + * { border-top: 1px solid var(--border); }
.rounded { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius); }
.rounded-full { border-radius: 999px; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-search, .nav-cta-book { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .mobile-nav { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero-desc { font-size: 1rem; }
  .section { padding: 2.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  body { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.875rem; }
}

/* ---------- Print ---------- */
@media print {
  .site-nav, .mobile-nav, .site-footer, .nav-drawer, .nav-drawer-backdrop { display: none; }
  .prose { max-width: 100%; }
}
