/* ==========================================================================
   COMPONENTS.CSS — SHARED SITE PRIMITIVES & NAVBAR (EDITORIAL)
   Flat surfaces · hairline borders · sharp corners · no soft glows.
   Breakpoints (all at bottom of file):
     PC      → default (≥1024px)
     Tablet  → max-width: 1023px
     Mobile  → max-width: 599px
     Small   → max-width: 400px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Universal Section Header — editorial rule-above eyebrow
   -------------------------------------------------------------------------- */
.section-header {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 0 clamp(16px, 4vw, 24px);
  text-align: center;
  box-sizing: border-box;
}

/* Matches the caption-box treatment in hero/orbit: rule above, wide
   tracking, uppercase. Rule spans the label width, centered. */
.section-eyebrow {
  display: inline-block;
  padding-top: 8px;
  border-top: var(--border-thin) solid currentColor;
  margin-bottom: clamp(10px, 1.2vw, 14px);
  font-family: var(--font-body);
  font-size: clamp(10px, 0.1vw + 9.8px, 11px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-purple-accent);
}

[data-theme="dark"] .section-eyebrow {
  color: var(--color-purple-primary);
}

.section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-black);
  text-wrap: balance;
}

.section-desc {
  max-width: 540px;
  margin: clamp(12px, 2vw, 18px) auto 0;
  font-family: var(--font-body);
  font-size: clamp(13.5px, 0.15vw + 13px, 15px);
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* Dark section inversions */
.section-header.is-dark .section-eyebrow,
.section-audit .section-header .section-eyebrow,
.radial-orbit-section .section-header .section-eyebrow {
  color: var(--color-purple-primary);
}

.section-header.is-dark .section-title,
.section-audit .section-header .section-title,
.radial-orbit-section .section-header .section-title {
  color: var(--color-white);
}

.section-header.is-dark .section-desc,
.section-audit .section-header .section-desc,
.radial-orbit-section .section-header .section-desc {
  color: rgba(255, 255, 255, 0.65);
}


/* --------------------------------------------------------------------------
   Sidebar breadcrumbs — compact trail at the top of the panel
   Mirrors the policy page treatment: 10px, uppercase, wide tracking.
   -------------------------------------------------------------------------- */
.post-sidebar-breadcrumbs {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: var(--sp2-rule-hairline) solid var(--color-border-subtle, #e5e5e8);
}

[data-theme="dark"] .post-sidebar-breadcrumbs {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.post-sidebar-breadcrumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* Direct rules on <li> beat the bare `li` selector in base.css */
.post-sidebar-breadcrumbs-list li.post-sidebar-breadcrumb-item,
.post-sidebar-breadcrumbs-list li.post-sidebar-breadcrumb-sep {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle, #898989);
}

[data-theme="dark"] .post-sidebar-breadcrumbs-list li.post-sidebar-breadcrumb-item,
[data-theme="dark"] .post-sidebar-breadcrumbs-list li.post-sidebar-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.45);
}

.post-sidebar-breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.post-sidebar-breadcrumb-item a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.post-sidebar-breadcrumb-item a:hover,
.post-sidebar-breadcrumb-item a:focus-visible {
  color: var(--color-purple-accent, #6853ff);
  outline: none;
}

[data-theme="dark"] .post-sidebar-breadcrumb-item a:hover,
[data-theme="dark"] .post-sidebar-breadcrumb-item a:focus-visible {
  color: var(--color-purple-primary, #a9a1e8);
}

.post-sidebar-breadcrumb-sep {
  opacity: 0.5;
  user-select: none;
  letter-spacing: normal;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   2. Marquee Engine
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  user-select: none;
}

.marquee {
  flex: none;
  display: flex;
  align-items: center;
  animation: marquee-scroll 24s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-wrapper:hover .marquee {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0%); }
  to   { transform: translateX(-50%); }
}


/* --------------------------------------------------------------------------
   3. Header Navbar — Obsidian plate, sharp corners, hairline border.
   No blur glow, no soft drop shadow.
   -------------------------------------------------------------------------- */

.header-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 16px 0 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  pointer-events: none;
  transition: max-width var(--transition-normal);
}

.header-wrapper.is-compact {
  max-width: 1020px;
}

.navbar {
  pointer-events: auto;
  width: 100%;
  height: 64px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Navbar Left
   -------------------------------------------------------------------------- */
.nav-left {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
  min-width: 0;
}

.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(13px, 0.2vw + 11.6px, 14px);
  font-weight: 500;
  padding: 7px 13px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  background-color: rgba(169, 161, 232, 0.18);
  color: var(--color-purple-primary);
  font-weight: 600;
}

.nav-hamburger-box {
  display: none;
  background-color: rgba(255, 255, 255, 0.08);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.nav-hamburger-box:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.hamburger-icon-staggered {
  width: 20px;
  height: 20px;
  display: block;
}

/* --------------------------------------------------------------------------
   Navbar Center
   -------------------------------------------------------------------------- */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo-wordmark {
  width: clamp(140px, 2vw + 124px, 156px);
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  transition: transform var(--transition-fast);
}

.header-logo-wordmark:hover {
  transform: scale(1.03);
}

/* --------------------------------------------------------------------------
   Navbar Right
   -------------------------------------------------------------------------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  min-width: 0;
}

.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-body);
  font-size: clamp(13px, 0.2vw + 11.6px, 14px);
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.dropdown-arrow-svg {
  width: 13px;
  height: 13px;
  transition: transform var(--transition-fast);
}

.nav-dropdown-wrapper.open .dropdown-arrow-svg {
  transform: rotate(180deg);
}

.nav-dropdown-btn:hover,
.nav-dropdown-wrapper.open .nav-dropdown-btn {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.desktop-dropdown-menu {
  position: absolute;
  top: calc(100%);
  right: 0;
  width: 230px;
  max-width: calc(100vw - 32px);
  background-color: #1a1b1f;
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 110;
}

.nav-dropdown-wrapper.open .desktop-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-section-title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  padding: 8px 12px 3px;
  user-select: none;
}

.dropdown-item-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.1vw + 12.3px, 13.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown-sub-link {
  font-size: clamp(12px, 0.1vw + 11.8px, 13px);
  color: rgba(255, 255, 255, 0.6);
}

.dropdown-item-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-purple-primary);
}

.dropdown-divider {
  height: var(--border-hairline);
  background-color: rgba(255, 255, 255, 0.08);
  margin: 5px 6px;
}

/* Theme toggle — flat plate, sharp corners */
.theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border: var(--border-hairline) solid rgba(255, 255, 255, 0.12);
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--color-white);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  box-sizing: border-box;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-icon-stage {
  position: relative;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-svg {
  position: absolute;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

html[data-theme="light"] .theme-svg-moon,
:root:not([data-theme="dark"]) .theme-svg-moon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-svg-sun,
:root:not([data-theme="dark"]) .theme-svg-sun {
  opacity: 0;
  transform: scale(0.3) rotate(-90deg);
  pointer-events: none;
}

html[data-theme="dark"] .theme-svg-sun {
  opacity: 1;
  transform: scale(1);
  color: var(--color-yellow);
}

html[data-theme="dark"] .theme-svg-moon {
  opacity: 0;
  transform: scale(0.3) rotate(90deg);
  pointer-events: none;
}

/* Submit CTA — flat, sharp, no shadow */
.nav-submit-btn {
  background-color: var(--color-white);
  color: var(--color-black);
  border: var(--border-thin) solid var(--color-white);
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.1vw + 12.3px, 13.5px);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.nav-submit-btn:hover {
  background-color: var(--color-purple-primary);
  border-color: var(--color-purple-primary);
  color: var(--color-black);
}

.dropdown-item-tablet-compare {
  display: none;
}

/* --------------------------------------------------------------------------
   4. Mobile Slide-Over Drawer
   -------------------------------------------------------------------------- */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 84vw);
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-white);
  border-right: var(--border-hairline) solid var(--color-border-subtle);
  z-index: 99999;
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

[data-theme="dark"] .mobile-drawer {
  background-color: #18181b;
  border-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer.open {
  transform: translate3d(0, 0, 0);
}

.mobile-drawer-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--border-hairline) solid var(--color-border-subtle);
  flex-shrink: 0;
}

[data-theme="dark"] .mobile-drawer-header {
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-drawer-close-btn {
  background-color: var(--color-bg-pill);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

[data-theme="dark"] .mobile-drawer-close-btn {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.mobile-drawer-close-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-drawer-content {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: clamp(13.5px, 0.2vw + 12.1px, 14.5px);
  font-weight: 500;
  color: var(--color-text-main);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

[data-theme="dark"] .mobile-nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.mobile-nav-link svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-subtle);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background-color: var(--color-purple-light);
  color: var(--color-purple-accent);
}

[data-theme="dark"] .mobile-nav-link:hover,
[data-theme="dark"] .mobile-nav-link.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-purple-primary);
}

.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: clamp(13.5px, 0.2vw + 12.1px, 14.5px);
  font-weight: 500;
  color: var(--color-text-main);
  border-radius: var(--radius-xs);
  cursor: pointer;
}

[data-theme="dark"] .mobile-accordion-trigger {
  color: rgba(255, 255, 255, 0.85);
}

.mobile-accordion-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.mobile-accordion-group.active .mobile-accordion-chevron {
  transform: rotate(180deg);
}

.mobile-accordion-panel {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
  transition: max-height var(--transition-normal), opacity var(--transition-fast);
  opacity: 0;
}

.mobile-accordion-group.active .mobile-accordion-panel {
  max-height: 480px;
  opacity: 1;
  padding-top: 4px;
  padding-bottom: 6px;
}

.mobile-sub-link {
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: clamp(12px, 0.1vw + 11.8px, 13px);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

[data-theme="dark"] .mobile-sub-link {
  color: rgba(255, 255, 255, 0.65);
}

.mobile-drawer-section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  padding: 8px 12px 2px;
}

.mobile-indent-link {
  padding-left: 18px;
}

.mobile-drawer-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: var(--border-hairline) solid var(--color-border-subtle);
}

[data-theme="dark"] .mobile-drawer-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.mobile-drawer-cta-btn {
  width: 100%;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: clamp(13px, 0.2vw + 11.6px, 14px);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

[data-theme="dark"] .mobile-drawer-cta-btn {
  background-color: var(--color-white);
  color: var(--color-black);
}


/* ==========================================================================
   CATEGORY BADGES — 5-DISCIPLINE COLOR SYSTEM
   ========================================================================== */

.badge-chip,
.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: var(--border-hairline) solid transparent;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.badge-chip:hover,
.badge-pill:hover {
  opacity: 0.92;
}

.badge-chip:focus-visible,
.badge-pill:focus-visible {
  outline: var(--border-thick) solid var(--color-purple-accent);
  outline-offset: 2px;
}

/* 1. Productivity & Notes */
.badge-pill-yellow,
.badge-chip-yellow,
.badge-pill-productivity {
  background-color: #ede9fe;
  color: #5b21b6;
}

/* 2. Guides & Migrations */
.badge-pill-blue,
.badge-chip-blue,
.badge-pill-guides-migrations {
  background-color: #ffe4e6;
  color: #be123c;
}

/* 3. Dev Tools & Infra */
.badge-pill-purple,
.badge-chip-purple,
.badge-pill-dev-tools,
.badge-pill-developer {
  background-color: var(--color-blue-badge);
  color: var(--color-blue-badge-text);
}

/* 4. Self-Hosting */
.badge-pill-green,
.badge-chip-green,
.badge-pill-self-hosting,
.badge-pill-self-hosted {
  background-color: #dcfce7;
  color: #15803d;
}

/* 5. Privacy & Security */
.badge-pill-coral,
.badge-chip-coral,
.badge-pill-privacy-security,
.badge-pill-security {
  background-color: var(--color-yellow);
  color: var(--color-yellow-text);
}

/* 6. Communication & Chat */
.badge-pill-communication {
  background-color: #cfe8ff;
  color: #0c4a9c;
}


/* ==========================================================================
   EDITORIAL FAQ — flat cards, hairline borders, sharp corners,
   hard offset shadow on hover. No soft glow.
   ========================================================================== */

.faq-section {
  width: 100%;
  position: relative;
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  padding: var(--section-py) 0;
  box-sizing: border-box;
}

[data-theme="dark"] .faq-section {
  background-color: var(--color-bg-page);
  color: var(--color-white);
}

.faq-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-px);
  box-sizing: border-box;
}

.faq-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.faq-head .section-title {
  font-size: clamp(2.2rem, 1.4rem + 2vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.faq-inline-contact {
  color: var(--color-purple-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.faq-inline-contact:hover {
  color: var(--color-purple-hover);
  text-decoration: underline;
}

[data-theme="dark"] .faq-inline-contact {
  color: var(--color-purple-primary);
}

/* --------------------------------------------------------------------------
   FAQ Stack
   -------------------------------------------------------------------------- */
.faq-stack {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.faq-stack .faq-item {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xs);
  background-color: var(--color-white);
  border: var(--border-hairline) solid var(--color-border-divider);
  overflow: hidden;
  box-sizing: border-box;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

[data-theme="dark"] .faq-stack .faq-item {
  background-color: var(--color-bg-alt);
  border-color: rgba(255, 255, 255, 0.12);
}


/* Open card state */
.faq-stack .faq-item.is-open {
  background-color: var(--color-white);
  border-color: var(--color-purple-accent);
}

[data-theme="dark"] .faq-stack .faq-item.is-open {
  background-color: var(--color-bg-alt);
  border-color: var(--color-purple-primary);
}

.faq-stack .faq-item.is-open:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--color-purple-accent);
}

[data-theme="dark"] .faq-stack .faq-item.is-open:hover {
  box-shadow: 5px 5px 0 var(--color-purple-primary);
}

/* Trigger */
.faq-stack .faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.2vw, 26px) clamp(24px, 3vw, 36px);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.faq-stack .faq-question {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 0.95rem + 0.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-black);
  transition: color var(--transition-fast);
}

[data-theme="dark"] .faq-stack .faq-question {
  color: var(--color-white);
}

.faq-stack .faq-item.is-open .faq-question {
  color: var(--color-purple-accent);
}

[data-theme="dark"] .faq-stack .faq-item.is-open .faq-question {
  color: var(--color-purple-primary);
}

/* Square indicator — replaces circular disc */
.faq-stack .faq-icon-disc {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background-color: var(--color-bg-pill);
  border: var(--border-hairline) solid var(--color-border-subtle);
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

[data-theme="dark"] .faq-stack .faq-icon-disc {
  background-color: var(--color-bg-pill);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.faq-stack .faq-plus-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-stack .faq-item.is-open .faq-plus-icon {
  transform: rotate(45deg);
}

.faq-stack .faq-item.is-open .faq-icon-disc {
  background-color: var(--color-purple-accent);
  border-color: var(--color-purple-accent);
  color: var(--color-white);
}

[data-theme="dark"] .faq-stack .faq-item.is-open .faq-icon-disc {
  background-color: var(--color-purple-primary);
  border-color: var(--color-purple-primary);
  color: var(--color-black);
}

/* CSS grid transition */
.faq-stack .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.faq-stack .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-stack .faq-panel-inner {
  overflow: hidden;
}

.faq-stack .faq-panel-inner p {
  margin: 0;
  padding: 0 clamp(24px, 3vw, 36px) clamp(24px, 2.5vw, 32px);
  font-family: var(--font-body);
  font-size: clamp(14px, 0.1vw + 13.5px, 15px);
  line-height: 1.68;
  color: var(--color-text-muted);
  max-width: 980px;
  text-wrap: pretty;
}

[data-theme="dark"] .faq-stack .faq-panel-inner p {
  color: rgba(255, 255, 255, 0.7);
}


/* ==========================================================================
   GLOBAL SITE FOOTER — flat plates, sharp corners, hairline rules
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: var(--color-dark-deep);
  color: var(--color-white);
  border-top: var(--border-hairline) solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.footer-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) clamp(16px, 2vw, 22px) clamp(32px, 4vw, 44px);
  box-sizing: border-box;
}

.footer-divider {
  width: 100%;
  height: var(--border-hairline);
  background-color: rgba(255, 255, 255, 0.08);
  margin: clamp(32px, 4vw, 48px) 0;
}

/* Newsletter tier */
.footer-newsletter-tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.footer-newsletter-content {
  min-width: 0;
}

.footer-newsletter-headline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.footer-newsletter-subtext {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: clamp(13px, 0.2vw + 11.6px, 14.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

.footer-newsletter-form {
  width: 100%;
  min-width: 0;
}

.footer-input-group {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04);
  border: var(--border-thin) solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  padding: 4px 4px 4px 18px;
  min-height: 54px;
  transition: border-color var(--transition-fast);
}

.footer-input-group:focus-within {
  border-color: var(--color-purple-primary);
}

.footer-email-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-white);
}

.footer-email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-submit-btn {
  background-color: var(--color-white);
  color: var(--color-black);
  border: var(--border-thin) solid var(--color-white);
  border-radius: 2px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.footer-submit-btn:hover {
  background-color: var(--color-purple-primary);
  border-color: var(--color-purple-primary);
}

.footer-btn-arrow {
  transition: transform var(--transition-fast);
}

.footer-submit-btn:hover .footer-btn-arrow {
  transform: translateX(2px);
}

/* Middle tier — sitemap matrix */
.footer-matrix-tier {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  align-items: flex-start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  min-width: 0;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 0;
  text-decoration: none;
}

.footer-logo-img {
  width: clamp(140px, 2vw + 124px, 156px);
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-mission-text {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.1vw + 12.7px, 14px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: clamp(11px, 0.15vw + 10.1px, 12px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 18px;
}

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

.footer-link {
  font-family: var(--font-body);
  font-size: clamp(13px, 0.1vw + 12.7px, 14px);
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-purple-primary);
}

.site-footer .footer-logo-img {
  filter: brightness(0) invert(1);
}

/* Bottom tier */
.footer-bottom-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: clamp(12px, 0.1vw + 11.5px, 12.5px);
  color: rgba(255, 255, 255, 0.55);
}

.footer-copyright {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(11.5px, 0.1vw + 11px, 12px);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
}


/* ==========================================================================
   SHARED CAPTION BOX (Editorial — rule above, wide tracking)
   ========================================================================== */

.caption-box {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-left: none;
  border-top: var(--border-thin) solid currentColor;
  padding-left: 0;
  padding-top: 8px;
  margin-bottom: clamp(10px, 1.2vw, 14px);
  color: var(--color-purple-accent);
}

.caption-box .text-caption-uppercase {
  font-family: var(--font-body);
  font-size: clamp(10px, 0.1vw + 9.8px, 11px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
}

[data-theme="dark"] .caption-box {
  color: var(--color-purple-primary);
}


/* ==========================================================================
   RESPONSIVE — TABLET (max-width: 1023px)
   ========================================================================== */

@media (max-width: 1023px) {

  /* NAVBAR */
  .header-wrapper {
    padding: 14px 24px 0;
  }

  .nav-link-compare {
    display: none;
  }

  .dropdown-item-tablet-compare {
    display: block;
  }

  /* FOOTER — newsletter stacked + centered */
  .footer-container {
    padding-left: var(--section-px);
    padding-right: var(--section-px);
  }

  .footer-newsletter-tier {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }

  .footer-newsletter-content {
    max-width: 560px;
    text-align: center;
  }

  .footer-newsletter-subtext {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-newsletter-form {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }

  /* FOOTER — matrix: 3 cols + POLICIES row */
  .footer-matrix-tier {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 24px;
    justify-items: center;
    text-align: center;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    padding-right: 0;
    align-items: center;
    text-align: center;
    max-width: 540px;
    margin: 0 auto 8px;
  }

  .footer-nav-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .footer-col-heading {
    text-align: center;
  }

  .footer-link-list {
    align-items: center;
    text-align: center;
  }

  .footer-nav-col:nth-child(5) {
    grid-column: 1 / -1;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .footer-nav-col:nth-child(5) .footer-link-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: safe center;
    align-items: center;
    gap: 28px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 24px), transparent 100%);
  }

  .footer-nav-col:nth-child(5) .footer-link-list::-webkit-scrollbar {
    display: none;
  }

  .footer-nav-col:nth-child(5) .footer-link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .footer-bottom-tier {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
  }

  /* FAQ */
  .faq-stack .faq-trigger {
    padding: 22px 28px;
  }

  .faq-stack .faq-panel-inner p {
    padding: 0 28px 24px;
    text-align: left;
  }

  /* Caption box — center-aligned reset */
  .caption-box {
    align-self: center;
  }
}


/* ==========================================================================
   RESPONSIVE — MOBILE (max-width: 599px)
   ========================================================================== */

@media (max-width: 599px) {

  /* SECTION HEADER */
  .section-header {
    margin-bottom: 24px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-eyebrow {
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: clamp(23px, 6.8vw, 27px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .section-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-top: 10px;
  }

  /* NAVBAR */
  .header-wrapper {
    padding: 12px 16px 0;
  }

  .navbar {
    height: 56px;
    padding: 0 14px;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .desktop-nav-links,
  .nav-dropdown-wrapper,
  .nav-submit-btn {
    display: none;
  }

  .nav-hamburger-box {
    display: inline-flex;
    width: 38px;
    height: 38px;
    justify-self: start;
  }

  .nav-center {
    justify-self: center;
  }

  .header-logo-wordmark {
    height: 26px;
    max-width: 110px;
  }

  .nav-right {
    justify-self: end;
    gap: 0;
  }

  .theme-toggle-btn {
    width: 38px;
    height: 38px;
  }

  /* FOOTER — newsletter */
  .footer-newsletter-form {
    max-width: 100%;
  }

  .footer-input-group {
    flex-direction: row;
    padding: 4px 4px 4px 12px;
    min-height: 50px;
  }

  .footer-submit-btn {
    padding: 9px 12px;
  }

  /* FOOTER — matrix 2×2 */
  .footer-matrix-tier {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
    justify-items: center;
    text-align: center;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    margin: 0 auto 4px;
  }

  .footer-nav-col:nth-child(5) {
    grid-column: auto / span 1;
    margin-top: 0;
  }

  .footer-nav-col:nth-child(5) .footer-link-list {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: visible;
    padding: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .footer-bottom-tier {
    align-items: center;
    gap: 16px;
  }

  /* FAQ */
  .faq-head {
    margin-bottom: 32px;
    text-align: center;
  }

  .faq-stack .faq-trigger {
    padding: 18px 20px;
    gap: 14px;
  }

  .faq-stack .faq-question {
    font-size: 1.05rem;
    line-height: 1.35;
    text-align: left;
  }

  .faq-stack .faq-panel-inner p {
    padding: 0 20px 20px;
    font-size: 13.5px;
    line-height: 1.62;
    text-align: left;
  }

  /* Caption box */
  .caption-box .text-caption-uppercase {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
}


/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (max-width: 400px)
   ========================================================================== */

@media (max-width: 400px) {

  .section-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .navbar {
    padding: 0 10px;
    height: 52px;
    gap: 6px;
  }

  .header-logo-wordmark {
    height: 24px;
    max-width: 100px;
  }

  .nav-hamburger-box,
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .faq-stack .faq-trigger {
    padding: 16px;
  }

  .faq-stack .faq-panel-inner p {
    padding: 0 16px 18px;
  }

  .caption-box .text-caption-uppercase {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }
}