
/* ========================================================================
   Web Fonts — Space Grotesk (variable, weights 400-700)
   @font-face inlined here so the page no longer loads the render-blocking
   fonts.googleapis.com stylesheet. font-display:swap shows text immediately
   in the fallback; the woff2 swaps in when ready (non render-blocking).
   latin + latin-ext subsets. gstatic is preconnected and the latin woff2 is
   <link rel=preload>ed in the document head.
   ======================================================================== */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/spacegrotesk/v22/V8mDoQDjQSkFtoMM3T6r8E7mPb94C-s0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ========================================================================
   CSS Custom Properties
   ======================================================================== */

:root {
  /* === PURPLE SYSTEM === */
  --c-purple-900: #17123B;
  --c-purple-800: #1C1441;
  --c-purple-700: #2A206A;
  --c-purple-600: #33298E;
  --c-purple-500: #5F53C3;
  --c-purple-400: #6D66C5;
  --c-purple-300: #9B94D8;
  --c-purple-200: #CECCEC;
  --c-purple-100: #EEEDFA;
  --c-purple-50:  #F7F6FD;

  /* === GREEN SYSTEM (Action color) === */
  --c-green-500: #00E4B4;
  --c-green-600: #03BF99;
  --c-green-700: #1CC283;
  --c-green-800: #20A472;
  --c-green-400: #33F0C8;
  --c-green-100: #E6FFF8;
  --c-green-900: #0E7A52; /* D-036 a11y: AA-passing green INK on white + green-100 tints */

  /* === NEUTRALS (purple-tinted) === */
  --c-white: #FFFFFF;
  --c-snow: #F9FFFA;
  --c-gray-50: #F5F6F7;
  --c-gray-100: #F0F0F5;
  --c-gray-200: #E5E7EB;
  --c-gray-300: #D1D1DB;
  --c-gray-400: #9494A8;
  --c-gray-500: #636079; /* D-043 a11y: was #68657F = 4.45:1 on the lavender band (AA needs 4.5). 5% darker -> 4.80 lavender / 6.03 white. */
  --c-gray-600: #4D4476;
  --c-gray-700: #333347;
  --c-gray-900: #0A0A14;

  /* === Semantic mappings === */
  --c-bg:           var(--c-white);
  --c-bg-alt:       var(--c-gray-50);
  --c-bg-card:      var(--c-white);
  --c-bg-sidebar:   var(--c-white);
  --c-bg-hover:     var(--c-purple-50);
  --c-bg-accent:    var(--c-purple-100);

  --c-border:       var(--c-gray-200);
  --c-border-light: var(--c-purple-100);

  --c-text:         var(--c-gray-900);
  --c-text-secondary: var(--c-gray-500);
  --c-text-muted:   var(--c-gray-500); /* D-036 a11y: gray-400 was 2.97:1 on white (AA fail on ~55 elements) */
  --c-text-inverse: var(--c-white);

  --c-primary:      var(--c-purple-500);
  --c-primary-hover: var(--c-purple-400);
  --c-primary-light: var(--c-purple-100);

  --c-success:      var(--c-green-900); /* D-043 a11y: was green-700 (2.31:1 on white) — a trap for any future "color: var(--c-success)". green-900 is the AA ink. */
  --c-success-bg:   var(--c-green-100);
  --c-warning:      #d97706;
  --c-warning-bg:   #fffbeb;
  --c-error:        #dc2626;

  --c-star:         var(--c-green-500);

  /* Legacy aliases used in inline styles */
  --color-primary:       var(--c-purple-500);
  --color-primary-light: var(--c-purple-100);

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

  /* Legacy alias for inline styles */
  --space-2: var(--sp-2);

  /* === Typography === */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.5rem;

  --lh-tight:  1.15;
  --lh-snug:   1.3;
  --lh-normal: 1.65;
  --lh-loose:  1.8;

  /* === Layout === */
  --max-w:        1280px;
  --max-w-narrow: 800px;

  /* === Radii === */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* === Shadows & Depth === */
  --shadow-sm:  0 1px 3px rgba(42, 32, 106, 0.06);
  --shadow-md:  0 4px 12px rgba(42, 32, 106, 0.08);
  --shadow-lg:  0 7px 14px rgba(50, 50, 93, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-xl:  0 12px 40px rgba(42, 32, 106, 0.15);
  --shadow-hover: 0 12px 28px rgba(42, 32, 106, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);

  /* Colored glows */
  --glow-green:  0 0 20px rgba(0, 228, 180, 0.3);
  --glow-purple: 0 0 30px rgba(95, 83, 195, 0.25);

  /* === Gradients === */
  --gradient-hero: linear-gradient(135deg, #2A206A 0%, #443794 50%, #33298E 100%);
  --gradient-dark: linear-gradient(180deg, #2A206A 0%, #1C1441 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F7F6FD 100%);
  --gradient-green-btn: linear-gradient(135deg, #00E4B4 0%, #03BF99 100%);
  --gradient-purple-btn: linear-gradient(135deg, #5F53C3 0%, #33298E 100%);
  --gradient-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);

  /* === Transitions === */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================
   Reset & Base
   ======================================================================== */

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

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

body {
  font-family: 'Space Grotesk', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* overflow-x on body must be clip, not hidden: hidden turns body into a
     clip/scroll container, which silently disables position:sticky on the
     header (D-040 root-cause — the header had never actually stuck). clip
     clips without creating a scroll container; old engines fall back to
     hidden and simply keep the pre-D-040 non-sticky behavior. */
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: var(--c-primary-hover);
  text-decoration: underline;
}

img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; width: 100%; }

/* Visually hidden (screen reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================
   Layout
   ======================================================================== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  box-sizing: border-box;
}
.container--narrow { max-width: var(--max-w-narrow); }

.page-main {
  padding: var(--sp-8) 0 var(--sp-16);
  min-height: 60vh;
}

/* ========================================================================
   Site Header / Navigation
   ======================================================================== */

/* Solid at the top of the page; once content scrolls beneath, clientJs adds
   .is-scrolled and the bar turns frosted glass (stronglandscape pattern,
   D-040). backdrop-filter is deliberately absent from the initial paint —
   nothing GPU-expensive on the LCP path. No-JS fallback: stays solid. */
.site-header {
  background: rgb(42, 32, 106);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(42, 32, 106, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 16px rgba(23, 18, 59, 0.4),
    0 1px 3px rgba(23, 18, 59, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(42, 32, 106, 0.97); }
}

/* Content layers above background orbs */
.page-main, .site-footer, .footer {
  position: relative;
  z-index: 1;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 64px;
  position: relative; /* anchors .nav-panel--mega to the container (D-040) */
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-white) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-logo-img {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 205, 155, 0.25));
  transition: filter 0.3s ease;
}
.site-logo:hover .site-logo-img {
  filter: drop-shadow(0 2px 10px rgba(0, 205, 155, 0.45));
}
.site-logo-text {
  display: inline;
}
.site-logo:hover {
  color: var(--c-white) !important;
  text-decoration: none !important;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.site-nav a,
.nav-side .nav-trigger {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover,
.nav-side .nav-trigger:hover {
  color: var(--c-white);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  color: var(--c-white);
}

/* --- Desktop dropdowns + mega menu (D-040) -------------------------------
   CSS-first disclosure nav (united-income pattern): hover + :focus-within
   open the panels; clientJs only syncs aria-expanded and handles Esc.
   Panels are in the SSR DOM (crawlable) and hidden via opacity/visibility. */
.nav-item {
  display: flex;
  align-items: center;
  height: 64px; /* full bar height = unbroken hover path from trigger to panel */
  position: relative;
}
.nav-item--mega { position: static; } /* mega anchors to .container instead */
.nav-trigger,
.nav-flat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-chevron { flex-shrink: 0; transition: transform 0.2s var(--ease); }
.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 250px;
  padding: 10px;
  background: var(--c-white);
  border: 1px solid rgba(23, 18, 59, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(23, 18, 59, 0.16), 0 2px 8px rgba(23, 18, 59, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0.18s;
  z-index: 90;
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0s linear 0s;
}
/* WCAG 1.4.13: Esc dismisses hover-opened panels (clientJs toggles nav-esc) */
.site-header.nav-esc .nav-panel { opacity: 0 !important; visibility: hidden !important; }

.nav-panel a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--c-gray-700);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.nav-panel a:hover {
  background: var(--c-purple-50);
  color: var(--c-purple-700);
  text-decoration: none;
}

/* Mega variant: a full-container sheet fused to the bar's bottom edge */
.nav-panel--mega {
  left: 0;
  right: auto;
  transform: translateY(8px);
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 230px));
  gap: 2px 26px;
  width: auto;
  min-width: 0;
  padding: 20px 24px 14px;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.nav-item--mega:hover > .nav-panel--mega,
.nav-item--mega:focus-within > .nav-panel--mega { transform: translateY(0); }
.nav-col { display: flex; flex-direction: column; gap: 1px; }
.nav-col-title {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gray-500);
}
.nav-panel-all {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 18, 59, 0.08);
  font-weight: 600;
}
.nav-panel a.nav-panel-all { color: var(--c-purple-600); }
.nav-panel--mega .nav-panel-all { grid-column: 1 / -1; }

/* Right-aligned variant (For vendors) + the claim CTA row */
.nav-panel--right { left: auto; right: 0; transform: translateY(8px); }
.nav-item:hover > .nav-panel--right,
.nav-item:focus-within > .nav-panel--right { transform: translateY(0); }
.nav-panel a.nav-panel-cta {
  margin: 2px 2px 8px;
  padding: 10px 14px;
  background: var(--gradient-green-btn);
  color: var(--c-purple-900);
  border-radius: 9px;
  font-weight: 700;
  text-align: center;
}
.nav-panel a.nav-panel-cta:hover {
  background: var(--gradient-green-btn);
  color: var(--c-purple-900);
  box-shadow: 0 0 16px rgba(0, 205, 155, 0.45);
}

.nav-side { display: flex; align-items: center; gap: var(--sp-4); }

.nav-search input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  width: 200px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.nav-search input:focus {
  border-color: var(--c-green-500);
  box-shadow: var(--glow-green);
  background: rgba(255, 255, 255, 0.12);
}

/* --- templates.ts nav component classes --- */
.nav {
  background: var(--c-purple-700);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-6);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--c-white) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo:hover {
  color: var(--c-white) !important;
  text-decoration: none !important;
  opacity: 0.9;
}
.nav-logo svg { color: var(--c-green-500); flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
}
.nav-links li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li a[aria-current="page"] {
  color: var(--c-white);
  text-decoration: none;
}

.nav-search-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
}
.nav-search-wrap svg {
  position: absolute;
  left: 12px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}
.nav-search-input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) 36px;
  font-size: var(--fs-sm);
  width: 200px;
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.nav-search-input:focus {
  border-color: var(--c-green-500);
  box-shadow: var(--glow-green);
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================================================
   Breadcrumbs
   ======================================================================== */

.breadcrumbs { padding: var(--sp-4) 0 0; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.breadcrumbs li::after {
  content: "/";
  margin-left: var(--sp-1);
  color: var(--c-gray-300);
}
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: var(--c-text-secondary); }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: var(--c-text); font-weight: 500; }
.breadcrumb-current { color: var(--c-text); font-weight: 500; }

/* ========================================================================
   Page Hero
   ======================================================================== */

.page-hero {
  padding: var(--sp-10) 0 var(--sp-8);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-gray-900);
  margin-bottom: var(--sp-4);
  overflow-wrap: break-word;
}
.page-hero p {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  max-width: 640px;
  line-height: var(--lh-loose);
}

/* ========================================================================
   Search Hero (Homepage)
   ======================================================================== */

.search-hero {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 0 var(--sp-12);
  background: var(--gradient-hero);
  margin: calc(-1 * var(--sp-8)) calc(-1 * var(--sp-4)) var(--sp-12);
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.search-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(95, 83, 195, 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.search-hero h1 {
  font-size: var(--fs-4xl);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
  color: var(--c-white);
  position: relative;
}
.search-hero p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* ========================================================================
   Hero Section
   ======================================================================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  margin: calc(-1 * var(--sp-8)) calc(-1 * var(--sp-4)) var(--sp-12);
  padding: clamp(3rem, 6vw, 5rem) var(--sp-4);
  border-radius: 0 0 24px 24px;
  background: radial-gradient(ellipse 120% 80% at 50% 20%, var(--c-purple-600) 0%, var(--c-purple-800) 60%, var(--c-purple-900) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--c-green-500);
  opacity: 0.06;
  filter: blur(100px);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--c-purple-400);
  opacity: 0.08;
  filter: blur(80px);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 700px;
  width: 100%;
  animation: heroFadeIn 0.8s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--c-white);
  margin-bottom: var(--sp-5);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35), 0 0 80px rgba(124, 58, 237, 0.3);
}
.hero-subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto var(--sp-6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 60px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hero-search:focus-within {
  border-color: var(--c-green-400);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(0, 205, 155, 0.15), 0 8px 40px rgba(0, 0, 0, 0.25);
}
.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-base);
  color: var(--c-white);
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
/* Typography/spacing only — background, geometry, and transition are owned by
   the later D-036 rule near EOF (search "hero-search button { background");
   duplicated declarations that could never win were removed in D-042. */
.hero-search button {
  font-size: var(--fs-sm);
  font-family: inherit;
  margin: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-search button:hover {
  box-shadow: 0 0 20px rgba(0, 205, 155, 0.5);
  transform: scale(1.03);
}
.hero-quick-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.hero-quick-label {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.72); /* D-036 a11y: 0.5 was 4.14:1 in the hero's brightest zone */
  font-weight: 500;
}
.hero-quick-pill {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.hero-quick-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--c-white);
  transform: translateY(-1px);
  text-decoration: none;
}
@media (max-width: 768px) {
  .hero { min-height: 380px; }
  .hero-content h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
  .hero-subtitle { font-size: var(--fs-base); margin-bottom: var(--sp-6); }
  .hero-search {
    border-radius: var(--radius-lg);
    flex-direction: column;
  }
  .hero-search input { padding: var(--sp-3) var(--sp-4); text-align: center; font-size: var(--fs-sm); }
  .hero-search button { margin: 0 4px 4px; } /* padding/radius owned by the D-036 rule (D-042) */
  .hero-quick-links { gap: var(--sp-1); }
  .hero-quick-pill { font-size: 0.7rem; padding: 2px var(--sp-2); }
}

/* ========================================================================
   Search Bar
   ======================================================================== */

.search-bar {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-bar form {
  display: flex;
  align-items: center;
  position: relative;
}
.search-bar svg {
  position: absolute;
  left: 20px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-6) var(--sp-4) 52px;
  font-size: var(--fs-lg);
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--c-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  height: 56px;
}
.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.search-bar input:focus {
  border-color: var(--c-green-500);
  box-shadow: var(--glow-green);
  background: rgba(255, 255, 255, 0.12);
}
.search-bar button {
  background: var(--gradient-green-btn);
  color: var(--c-white);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  height: 56px;
  margin-left: var(--sp-2);
}
.search-bar button:hover {
  box-shadow: var(--glow-green);
  transform: translateY(-1px);
}

/* Search bar on light backgrounds (search results page) */
.page-hero .search-bar input {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
  border-color: var(--c-purple-200);
  background: var(--c-white);
}
.page-hero .search-bar input::placeholder {
  color: var(--c-gray-400);
}
.page-hero .search-bar input:focus {
  border-color: var(--c-primary);
  box-shadow: var(--glow-purple);
}
.page-hero .search-bar svg {
  color: var(--c-gray-400);
}
.page-hero .search-bar button {
  background: var(--gradient-purple-btn);
}
.page-hero .search-bar button:hover {
  box-shadow: var(--glow-purple);
}

/* ========================================================================
   Section Label
   ======================================================================== */

.section-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-gray-400);
  margin-bottom: var(--sp-4);
}

/* ========================================================================
   Category Grid & Cards
   ======================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--sp-6); /* D-037: 16px gaps read cramped; reference grids run 24-32px */
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-xl);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  border-color: var(--c-purple-200);
  text-decoration: none !important;
}

.category-icon {
  font-size: var(--fs-2xl);
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  color: var(--c-purple-500);
}
.category-icon-3d {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(124, 58, 237, 0.2));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.category-card:hover .category-icon-3d {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 6px 16px rgba(124, 58, 237, 0.3));
}
.category-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--c-purple-100);
  border-radius: 50%;
  color: var(--c-purple-500);
}

.category-card h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-gray-900);
}
.category-card .count {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

/* templates.ts category card sub-components */
.category-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-purple-100);
  border-radius: 50%;
  color: var(--c-purple-500);
  flex-shrink: 0;
}
.category-card-icon svg { color: var(--c-purple-500); }
.category-card-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-gray-900);
}
.category-card-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-normal);
}
.category-card-count {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-green-500);
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-top: auto;
  align-self: flex-start;
}

/* ========================================================================
   Sidebar Layout
   ======================================================================== */

.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

/* ========================================================================
   Sidebar / Filters
   ======================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-gray-200);
  }
}

.filter-group { border: none; }
.filter-group h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-3);
  color: var(--c-gray-900);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-purple-200);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--c-purple-500);
  background: var(--c-purple-100);
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover,
.chip--active {
  border-color: var(--c-purple-500);
  background: var(--c-purple-500);
  color: var(--c-white);
  text-decoration: none;
}
.chip .chip-count,
.chip-count {
  font-size: var(--fs-xs);
  color: var(--c-gray-400);
}
.chip:hover .chip-count,
.chip--active .chip-count {
  color: rgba(255, 255, 255, 0.7);
}

/* Filter sidebar (templates.ts) */
.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
@media (min-width: 1024px) {
  .filter-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--c-gray-200);
  }
}
.filter-sidebar details.filter-group {
  border-bottom: 1px solid var(--c-gray-200);
  padding-bottom: var(--sp-3);
}
.filter-sidebar details.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-gray-900);
  cursor: pointer;
  padding: var(--sp-2) 0;
  list-style: none;
}
.filter-sidebar details.filter-group summary::-webkit-details-marker { display: none; }
.filter-sidebar details.filter-group summary svg {
  transition: transform 0.2s var(--ease);
  color: var(--c-gray-400);
}
.filter-sidebar details[open] summary svg {
  transform: rotate(180deg);
}
.filter-group-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}
.filter-group-options label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  cursor: pointer;
}
.filter-group-options input[type="checkbox"] {
  accent-color: var(--c-purple-500);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-purple-500);
  color: var(--c-white);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
}
.filter-chip-remove {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  margin-left: var(--sp-1);
}
.filter-chip-remove:hover { color: var(--c-white); }

/* ========================================================================
   Product Cards (List View)
   ======================================================================== */

.product-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.product-card {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  min-width: 0;
}
.product-card:hover {
  border-color: var(--c-purple-200);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.product-logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--c-purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--c-purple-100);
}
.product-logo img { width: 100%; height: 100%; object-fit: contain; max-width: 80px; max-height: 80px; }
.product-logo-placeholder {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-purple-500);
}

.product-info { flex: 1; min-width: 0; }
.product-info h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-1); overflow-wrap: break-word; word-break: break-word; }
.product-info h3 a { color: var(--c-gray-900); }
.product-info h3 a:hover { color: var(--c-primary); text-decoration: none; }

.product-tagline {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Tier Product Cards (vertical layout for category pages) ── */
.tier-grid .product-card {
  flex-direction: column;
  gap: 0;
  padding: 0;
  align-items: stretch;
  text-align: center;
}

.tier-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0;
}

.tier-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--c-purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--c-purple-100);
  flex-shrink: 0;
}
.tier-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tier-card-logo-placeholder {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-purple-500);
}

.tier-card-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.tier-card-name a {
  color: var(--c-gray-900);
  text-decoration: none;
}
.tier-card-name a:hover {
  color: var(--c-primary);
}

.market-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-text-secondary);
  margin-top: 0.25rem;
}

.tier-card-tagline {
  font-size: 0.85rem;
  color: var(--c-text-secondary);
  line-height: 1.5;
  padding: 0.5rem 1.25rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.tier-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

.price-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-green-700);
  background: rgba(22, 163, 106, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.tier-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(124, 58, 237, 0.06);
  margin-top: auto;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.product-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* templates.ts product card sub-components */
.product-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--c-purple-50);
  overflow: hidden;
  border: 1px solid var(--c-purple-100);
  flex-shrink: 0;
  object-fit: contain;
}
.product-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.product-card-info { flex: 1; min-width: 0; }
.product-card-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0;
}
.product-card-name a { color: var(--c-gray-900); }
.product-card-name a:hover { color: var(--c-primary); text-decoration: none; }
.product-card-tagline {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--lh-normal);
}
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.product-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-3);
}
.product-card-meta span[aria-hidden] {
  color: var(--c-gray-300);
}
.product-card-cta {
  margin-top: auto;
}

/* ========================================================================
   Badges & Tags
   ======================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
}
.badge--primary {
  background: var(--c-green-100);
  color: var(--c-green-800);
}
.badge--success {
  background: var(--c-green-500);
  color: var(--c-white);
}
.badge--warning {
  background: var(--c-warning-bg);
  color: var(--c-warning);
}
.badge--outline {
  border: 1px solid var(--c-purple-200);
  color: var(--c-purple-500);
  background: transparent;
}
.badge--verified {
  background: var(--c-green-500);
  color: var(--c-purple-900); /* D-043 a11y: green-800 on mint was only 1.92:1 (white 1.65) — the "-800" name implied a darkness the value doesn't have. purple-900 = 10.75:1. */
}
.badge--verified svg { width: 12px; height: 12px; }

/* === EEAT enrichment sections (profile pages) === */
.our-verdict .verdict-lead { font-size: var(--fs-lg); line-height: var(--lh-normal); margin-bottom: var(--sp-4); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-4) 0; }
.proscons-col { padding: var(--sp-4); border-radius: var(--radius-lg); }
.proscons-pros { background: var(--c-green-100); }
.proscons-cons { background: var(--c-purple-100); }
.proscons-col h3 { font-size: var(--fs-base); margin-bottom: var(--sp-2); }
.proscons-col ul { margin: 0; padding-left: var(--sp-5); }
.proscons-col li { margin-bottom: var(--sp-1); line-height: var(--lh-snug); }
.verdict-meta { font-size: var(--fs-sm); color: var(--c-purple-500); margin-top: var(--sp-2); }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

.trust-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.trust-item { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-md); border: 1px solid var(--c-purple-200); background: var(--c-white); font-size: var(--fs-sm); }
.trust-item--verified { border-color: var(--c-green-500); }
.trust-cert { font-weight: 600; }
.trust-status { font-size: var(--fs-xs); color: var(--c-purple-500); }
.trust-item--verified .trust-status { color: var(--c-green-900); } /* D-043 a11y: green-700 = 2.31:1 on white */
.trust-facts { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin: 0; }
.trust-fact dt { font-size: var(--fs-xs); color: var(--c-purple-500); text-transform: uppercase; letter-spacing: .04em; }
.trust-fact dd { margin: 0; font-weight: 600; }

.ext-ratings { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.ext-rating { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-md); background: var(--c-purple-100); font-size: var(--fs-sm); }
.ext-rating-src { font-weight: 600; }
.ext-rating-score { font-weight: 700; color: var(--c-purple-600); }
.ext-rating-count, .ext-rating-asof { font-size: var(--fs-xs); color: var(--c-purple-500); }

.proof-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.proof-item { display: inline-flex; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-full); background: var(--c-green-100); color: var(--c-green-900); font-size: var(--fs-sm); text-decoration: none; } /* D-043 a11y: green-800 was 3.03:1 on green-100 */
a.proof-item:hover { text-decoration: underline; }

.sources { border-top: 1px solid var(--c-purple-200); }
.verified-line { font-size: var(--fs-sm); color: var(--c-purple-500); }
.source-list { list-style: none; padding: 0; margin: var(--sp-3) 0 0; font-size: var(--fs-sm); }
.source-list li { padding: var(--sp-1) 0; }
.src-section { font-weight: 600; text-transform: capitalize; }
.api-note, .pricing-transparency { font-size: var(--fs-sm); color: var(--c-purple-500); margin-top: var(--sp-3); }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-4); }
.video-card { display: flex; flex-direction: column; gap: var(--sp-2); text-decoration: none; color: inherit; }
.video-thumb { position: relative; display: block; border-radius: var(--radius-md); overflow: hidden; background: var(--c-purple-100); aspect-ratio: 16 / 9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 18px; }
.video-card:hover .video-play { background: rgba(0, 0, 0, 0.82); }
.video-title { font-size: var(--fs-sm); font-weight: 500; line-height: var(--lh-snug); }
.video-card:hover .video-title { text-decoration: underline; }
.video-note { font-size: var(--fs-xs); color: var(--c-purple-500); margin-top: var(--sp-3); }
.vendor-provided-note { font-size: var(--fs-sm); color: var(--c-text-secondary); margin: 0 0 var(--sp-3); }

.tag-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* Tag badges (templates.ts tagBadge) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.2;
}
.tag--default {
  background: var(--c-purple-100);
  color: var(--c-purple-500);
}
.tag--3pl {
  background: var(--c-green-100);
  color: var(--c-green-800);
}

/* "Also works as" functionality chips — secondary-category pillar links (PROFILE-DEPTH-PLAN P1) */
.fn-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-3); }
.fn-chips__label {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--c-text-muted);
}
.fn-chip {
  display: inline-flex; align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.2;
  background: var(--c-purple-100); color: var(--c-purple-600);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.fn-chip:hover, .fn-chip:focus-visible { background: var(--c-purple-200); color: var(--c-purple-700); }
.tag--primary {
  background: var(--c-purple-100);
  color: var(--c-purple-600);
}
.tag--success {
  background: var(--c-green-100);
  color: var(--c-green-700);
}
.tag--warning {
  background: var(--c-warning-bg);
  color: var(--c-warning);
}
.tag--accent {
  background: var(--c-green-500);
  color: var(--c-white);
}

/* ========================================================================
   Stars / Ratings
   ======================================================================== */

.stars {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
}
.stars-visual {
  color: var(--c-green-500);
  letter-spacing: 1px;
  font-size: 16px;
}
.stars-value {
  font-weight: 600;
  color: var(--c-gray-900);
}
.stars-count {
  color: var(--c-text-muted);
}

/* templates.ts rating-stars */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.rating-stars svg {
  width: 16px;
  height: 16px;
  color: var(--c-green-500);
  fill: var(--c-green-500);
}
.rating-value {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-gray-900);
  margin-right: var(--sp-1);
}
.rating-count {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-left: var(--sp-1);
}

/* ========================================================================
   Buttons
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  line-height: 1.5;
}

.btn--primary {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: var(--c-white) !important;
  border: none;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(22, 163, 106, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(22, 163, 106, 0.4);
  transform: translateY(-1px);
  color: var(--c-white) !important;
}

.btn--secondary {
  background: var(--gradient-purple-btn);
  color: var(--c-white) !important;
  border-color: transparent;
}
.btn--secondary:hover {
  box-shadow: var(--glow-purple);
  transform: translateY(-1px);
  color: var(--c-white) !important;
}

.btn--outline {
  background: transparent;
  color: #7c3aed;
  border: 2px solid #7c3aed;
  border-radius: 8px;
}
.btn--outline:hover {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
}

.btn--sm {
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--fs-xs);
  border-radius: var(--radius-sm);
}

/* ========================================================================
   Profile Page
   ======================================================================== */

.profile-hero {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--c-purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--c-purple-200);
  flex-shrink: 0;
}
.profile-logo img { width: 100%; height: 100%; object-fit: contain; }
.quick-facts { position: relative; }
.vendor-verified-badge { position: absolute; bottom: -26px; right: -18px; width: 128px; height: auto; }

.profile-header { flex: 1; min-width: 0; }
.profile-header h1 {
  font-size: var(--fs-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
  color: var(--c-gray-900);
}
.profile-tagline {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
}
.profile-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  align-items: center;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  margin: var(--sp-6) 0;
}
.quick-fact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.quick-fact dt {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gray-500); /* D-043 a11y: gray-400 = 2.75:1 (fails on every background) */
}
.quick-fact dd {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-gray-900);
}

/* D-009 confidence gating: facts a vendor advertises but we couldn't independently
   verify render "Not confirmed" — muted, not alarming. The goal is honesty plus a
   path for someone who knows the product to claim it and confirm. */
.quick-fact--soft dd { font-weight: 500; }
.fact-unconfirmed {
  color: var(--c-text-muted);
  font-weight: 500;
  border-bottom: 1px dotted var(--c-text-muted);
  cursor: help;
}
.unconfirmed-cta {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-warning-bg);
  border: 1px solid #f3e4c2;
  border-left: 3px solid var(--c-warning);
  border-radius: var(--radius-md);
}
.unconfirmed-cta p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: 1.55; }
.unconfirmed-cta strong { color: var(--c-text); }
.unconfirmed-cta a { color: var(--c-purple-600); font-weight: 600; text-decoration: none; }
.unconfirmed-cta a:hover { text-decoration: underline; }
.api-note--soft { color: var(--c-text-secondary); }
.api-note--soft a { color: var(--c-purple-600); font-weight: 600; text-decoration: none; }
.api-note--soft a:hover { text-decoration: underline; }

/* templates.ts quick fact sub-components */
.quick-fact-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.quick-fact-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gray-500); /* D-043 a11y: gray-400 = 2.75:1 */
}
.quick-fact-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-gray-900);
}

.profile-section {
  margin: var(--sp-10) 0;
}
.profile-section h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-gray-200);
  color: var(--c-gray-900);
}

.verified-date {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.verified-date svg { color: var(--c-green-700); }

/* Last verified (templates.ts) */
.last-verified {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.last-verified svg { color: var(--c-green-700); }

/* ========================================================================
   Feature Table
   ======================================================================== */

.feature-table {
  width: 100%;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-table th,
.feature-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--c-purple-100);
}
.feature-table th {
  background: var(--c-purple-700);
  font-weight: 600;
  color: var(--c-white);
}
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:nth-child(even) td {
  background: var(--c-purple-50);
}

.feature-group-header {
  background: var(--c-purple-100) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-purple-600) !important;
  font-size: var(--fs-xs) !important;
}

.support-yes { color: var(--c-green-700); font-weight: 600; }
.support-partial { color: var(--c-warning); }
.support-no { color: var(--c-error); }
.support-addon { color: var(--c-purple-500); }

/* Feature grid (templates.ts) */
.feature-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-group-heading {
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-purple-100);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-purple-600);
}
.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-purple-100);
}
.feature-row:last-child { border-bottom: none; }
.feature-row:nth-child(even) { background: var(--c-purple-50); }
.feature-name { font-size: var(--fs-sm); color: var(--c-gray-700); }
.feature-notes {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  font-weight: 400;
}
.feature-support {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}
.feature-support--full { color: var(--c-green-700); }
.feature-support--full svg { color: var(--c-green-700); }
.feature-support--partial { color: var(--c-warning); }
.feature-support--partial svg { color: var(--c-warning); }
.feature-support--none { color: var(--c-error); }
.feature-support--none svg { color: var(--c-error); }

/* ========================================================================
   Comparison Page
   ======================================================================== */

.comparison-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--sp-6);
  align-items: center;
  text-align: center;
  padding: var(--sp-8) 0;
}
.comparison-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.comparison-product img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  border: 1px solid var(--c-purple-200);
  background: var(--c-purple-50);
}
.comparison-product h2 a {
  color: var(--c-gray-900);
  font-weight: 600;
}
.comparison-product h2 a:hover { color: var(--c-primary); text-decoration: none; }
.comparison-product-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: contain;
  border: 1px solid var(--c-purple-200);
  background: var(--c-purple-50);
}
.comparison-product-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-gray-900);
}
.comparison-vs {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--c-purple-300);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-purple-100);
  border-radius: var(--radius-md);
}

.scorecard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  text-align: center;
  margin: var(--sp-6) 0;
}
.scorecard-item {
  padding: var(--sp-5);
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-gray-200);
}
.scorecard-value {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--c-purple-500);
}
.scorecard-label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}

/* Comparison table (templates.ts) */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
.comparison-table {
  width: 100%;
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--c-purple-100);
}
.comparison-table th {
  background: var(--c-purple-700);
  color: var(--c-white);
  font-weight: 600;
}
.comparison-table .group-row td {
  background: var(--c-purple-100);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-purple-600);
  font-size: var(--fs-xs);
}
.winner-cell {
  background: var(--c-green-100);
  border-left: 3px solid var(--c-green-700);
}

/* Verdict box (templates.ts) */
.verdict-box {
  background: var(--gradient-card);
  border: 1px solid var(--c-purple-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
}
.verdict-box h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-purple-600);
  margin-bottom: var(--sp-3);
}
.verdict-box p {
  font-size: var(--fs-base);
  color: var(--c-text-secondary);
  line-height: var(--lh-normal);
}

/* ========================================================================
   Pricing Cards
   ======================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.pricing-card {
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--gradient-card);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.pricing-card--popular {
  border-color: var(--c-green-500);
  box-shadow: var(--glow-green);
  position: relative;
}
.pricing-card--popular::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-green-btn);
  color: var(--c-white);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.pricing-name { font-size: var(--fs-lg); font-weight: 600; color: var(--c-gray-900); }
.pricing-amount { font-size: var(--fs-3xl); font-weight: 800; color: var(--c-purple-500); }
.pricing-amount span { font-size: var(--fs-sm); font-weight: 400; color: var(--c-text-muted); }
.pricing-features { font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: var(--lh-loose); }

/* ========================================================================
   Integration Grid
   ======================================================================== */

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
}
.integration-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--c-purple-100);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  background: var(--c-purple-50);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.integration-item:hover {
  border-color: var(--c-purple-200);
  box-shadow: var(--shadow-sm);
}
.integration-item .type-badge,
.integration-type {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* ========================================================================
   Review Cards
   ======================================================================== */

.review-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.review-card {
  padding: var(--sp-5);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  transition: box-shadow 0.2s var(--ease);
}
.review-card:hover { box-shadow: var(--shadow-sm); }
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.review-author { font-weight: 600; font-size: var(--fs-sm); color: var(--c-gray-900); }
.review-meta { font-size: var(--fs-xs); color: var(--c-text-muted); }
.review-body h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  margin: var(--sp-3) 0 var(--sp-1);
  color: var(--c-purple-600);
}
.review-body p { font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: var(--lh-normal); }

/* Review dimensions (templates.ts) */
.review-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--c-gray-200);
}
.review-dimension-label {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: block;
}
.review-dimension-value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-green-700);
}

/* ========================================================================
   Pros & Cons
   ======================================================================== */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 639px) {
  .pros-cons { grid-template-columns: 1fr; }
}
.pros-list,
.cons-list {
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
}
.pros-list {
  background: var(--c-green-100);
  border: 1px solid rgba(0, 228, 180, 0.2);
}
.pros-list h3 {
  color: var(--c-green-800);
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.pros-list h3 svg { color: var(--c-green-700); }
.pros-list ul { list-style: none; }
.pros-list li {
  font-size: var(--fs-sm);
  color: var(--c-green-800);
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-4);
  position: relative;
}
.pros-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--c-green-700);
}

.cons-list {
  background: #FFF5F5;
  border: 1px solid rgba(220, 38, 38, 0.15);
}
.cons-list h3 {
  color: var(--c-error);
  font-size: var(--fs-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.cons-list h3 svg { color: var(--c-error); }
.cons-list ul { list-style: none; }
.cons-list li {
  font-size: var(--fs-sm);
  color: var(--c-gray-700);
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-4);
  position: relative;
}
.cons-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--c-error);
}

/* ========================================================================
   FAQ Accordion
   ======================================================================== */

.faq-section { margin: var(--sp-10) 0; }
.faq-section h2 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  color: var(--c-gray-900);
}

.faq-list { display: flex; flex-direction: column; gap: var(--sp-2); }

.faq-item {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] {
  border-color: var(--c-purple-200);
}
.faq-item summary {
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-purple-700);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.faq-item summary:hover {
  background: var(--c-purple-50);
}
.faq-item summary::after {
  content: "+";
  font-size: var(--fs-xl);
  color: var(--c-purple-300);
  flex-shrink: 0;
  margin-left: var(--sp-4);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  content: "-";
  color: var(--c-purple-500);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  transition: transform 0.2s var(--ease);
  color: var(--c-purple-300);
  flex-shrink: 0;
}
.faq-item[open] summary svg {
  transform: rotate(180deg);
  color: var(--c-purple-500);
}

.faq-answer {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-gray-500);
  line-height: var(--lh-loose);
}

/* ========================================================================
   Search Results
   ======================================================================== */

.search-results { display: flex; flex-direction: column; gap: var(--sp-4); }
.search-result {
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  background: var(--gradient-card);
}
.search-result:hover {
  border-color: var(--c-purple-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.search-result h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-1); }
.search-result h3 a { color: var(--c-gray-900); }
.search-result h3 a:hover { color: var(--c-primary); text-decoration: none; }
.search-result p { font-size: var(--fs-sm); color: var(--c-text-secondary); }
.search-result mark {
  background: var(--c-green-100);
  color: var(--c-green-800);
  padding: 0 3px;
  border-radius: 3px;
}

.no-results { text-align: center; padding: var(--sp-16) 0; color: var(--c-text-muted); }

/* ========================================================================
   Pagination
   ======================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--sp-3);
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-secondary);
  text-decoration: none !important;
  transition: all 0.2s var(--ease);
  background: var(--c-white);
}
.pagination a:hover {
  border-color: var(--c-purple-500);
  color: var(--c-purple-500);
  background: var(--c-purple-50);
}
.pagination .active {
  background: var(--gradient-purple-btn);
  color: var(--c-white);
  border-color: transparent;
}
.pagination .disabled {
  color: var(--c-gray-300);
  cursor: default;
  pointer-events: none;
}
.pagination .ellipsis {
  border-color: transparent;
  background: transparent;
}

/* ========================================================================
   Facet filter panel (D-022)
   ======================================================================== */

.facet-panel { margin: 0 0 var(--sp-8); }
.facet-form {
  border: 1px solid var(--c-gray-200);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  padding: var(--sp-5);
}
.facet-form__head {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-gray-100);
}
.facet-form__title { font-weight: 700; font-size: var(--fs-lg); }
.facet-summary { margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.facet-summary strong { color: var(--c-text-secondary); }
.facet-clear { color: var(--c-purple-500); text-decoration: none; }
.facet-clear:hover { text-decoration: underline; }
.facet-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-5);
}
.facet-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.facet-group__legend {
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-2);
  padding: 0;
}
.facet-opt {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  cursor: pointer;
  font-size: var(--fs-sm);
}
.facet-opt input {
  accent-color: var(--c-purple-500);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  cursor: pointer;
}
.facet-opt__label { flex: 1 1 auto; }
.facet-opt__count {
  flex: 0 0 auto;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs);
  background: var(--c-gray-50);
  border-radius: var(--radius-sm);
  padding: 0 var(--sp-2);
  min-width: 22px;
  text-align: center;
}
.facet-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-gray-100);
}
.facet-apply {
  background: var(--gradient-purple-btn);
  color: var(--c-white);
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-5);
  font-weight: 600;
  font-size: var(--fs-sm);
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.facet-apply:hover { opacity: 0.92; }
.facet-clear-btn { color: var(--c-text-secondary); text-decoration: none; font-size: var(--fs-sm); }
.facet-clear-btn:hover { color: var(--c-purple-500); }
.facet-noresults {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border: 1px dashed var(--c-gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-6);
}
.facet-noresults p { margin: 0 0 var(--sp-3); color: var(--c-text-secondary); }
@media (max-width: 640px) {
  .facet-groups { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .facet-form { padding: var(--sp-4); }
}

/* ========================================================================
   Alternatives Sidebar
   ======================================================================== */

.alternatives { display: flex; flex-direction: column; gap: var(--sp-3); }
.alternative-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--c-purple-100);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  background: var(--c-purple-50);
}
.alternative-item:hover {
  border-color: var(--c-purple-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.alternative-item .alt-name,
.alt-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-gray-900);
}
.alt-name a { color: var(--c-gray-900); }
.alt-name a:hover { color: var(--c-primary); text-decoration: none; }
.alternative-item .alt-tagline,
.alt-tagline {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smart Alternatives Groups */
.alt-groups {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.alt-group {
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  border-left: 3px solid var(--c-purple-300);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.alt-group--robust { border-left-color: var(--c-purple-500); background: rgba(124, 58, 237, 0.04); }
.alt-group--affordable { border-left-color: var(--c-green-500); background: rgba(0, 205, 155, 0.04); }
.alt-group--similar { border-left-color: var(--c-purple-300); background: rgba(124, 58, 237, 0.02); }
.alt-group--different { border-left-color: var(--c-gray-400); background: rgba(0, 0, 0, 0.02); }

.alt-group-header {
  margin-bottom: var(--sp-4);
}
.alt-group-header h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-gray-900);
  margin: 0 0 var(--sp-1) 0;
}
.alt-group-header p {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin: 0;
}
.alt-group-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
}
.alt-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--c-purple-100);
  border-radius: var(--radius-md);
  text-decoration: none !important;
  color: inherit;
  background: var(--c-white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative;
}
.alt-card:hover {
  border-color: var(--c-purple-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.alt-card-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--c-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}
.alt-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.alt-card-initial {
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--c-purple-500);
}
.alt-card-body {
  flex: 1;
  min-width: 0;
}
.alt-card-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-gray-900);
  margin-bottom: 2px;
}
.alt-card-tagline {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-2);
}
.alt-card-meta {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.alt-price-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.alt-price-badge--free { background: rgba(0, 205, 155, 0.15); color: var(--c-green-700); }
.alt-price-badge--low { background: rgba(0, 205, 155, 0.1); color: var(--c-green-600); }
.alt-price-badge--mid { background: rgba(124, 58, 237, 0.1); color: var(--c-purple-600); }
.alt-price-badge--high { background: rgba(124, 58, 237, 0.15); color: var(--c-purple-700); }
.alt-price-badge--enterprise { background: rgba(42, 32, 106, 0.1); color: var(--c-purple-800); }
.alt-price-badge--custom { background: rgba(0, 0, 0, 0.05); color: var(--c-gray-600); }
.alt-market-badge {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--c-text-secondary);
}
.alt-card-reason {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--c-text-muted);
  background: var(--c-gray-50);
  padding: 1px 6px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .alt-group-cards {
    grid-template-columns: 1fr;
  }
}

/* templates.ts alternatives sidebar (legacy) */
.alternatives-sidebar {
  border: 1px solid var(--c-purple-200);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  background: var(--gradient-card);
}
.alternatives-sidebar h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  color: var(--c-gray-900);
}
.alternative-info { flex: 1; min-width: 0; }
.alternative-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid var(--c-purple-100);
  background: var(--c-white);
}
.alternative-name { font-size: var(--fs-sm); font-weight: 600; color: var(--c-gray-900); }
.alternative-name a { color: var(--c-gray-900); }
.alternative-name a:hover { color: var(--c-primary); text-decoration: none; }
.alternative-diff {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}

/* ========================================================================
   Subcategory Pills
   ======================================================================== */

.subcategory-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.subcategory-pill {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-purple-200);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--c-purple-500);
  text-decoration: none !important;
  transition: all 0.2s var(--ease);
  background: var(--c-purple-50);
}
.subcategory-pill:hover {
  border-color: var(--c-purple-500);
  background: var(--c-purple-500);
  color: var(--c-white);
}

/* ========================================================================
   Prose / Content
   ======================================================================== */

.prose { max-width: var(--max-w-narrow); }
.prose h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin: var(--sp-8) 0 var(--sp-4);
  color: var(--c-gray-900);
}
.prose h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: var(--sp-6) 0 var(--sp-3);
  color: var(--c-gray-900);
}
.prose p { margin-bottom: var(--sp-4); color: var(--c-gray-700); line-height: var(--lh-normal); }
.prose ul, .prose ol { margin: 0 0 var(--sp-4) var(--sp-6); }
.prose li { margin-bottom: var(--sp-2); color: var(--c-gray-700); }
.prose a { color: var(--c-purple-500); text-decoration: underline; }
.prose a:hover { color: var(--c-purple-400); }

/* ========================================================================
   Guide Page
   ======================================================================== */

.guide-content { max-width: var(--max-w-narrow); margin: 0 auto; }
.guide-meta {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-6);
}

/* ========================================================================
   Footer
   ======================================================================== */

.site-footer {
  background: linear-gradient(180deg, #2e1065, #1e0a3c);
  padding: var(--sp-12) 0 0;
  margin-top: var(--sp-16);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}
.site-footer .container {
  max-width: var(--max-w);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: var(--sp-8);
}
.footer-col h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--c-white); text-decoration: none; }

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: var(--sp-3);
  filter: drop-shadow(0 2px 8px rgba(0, 205, 155, 0.2));
  opacity: 0.85;
}
.footer-bottom {
  padding: var(--sp-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  background: var(--c-purple-900);
  margin: 0 calc(-1 * var(--sp-4));
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  color: var(--c-gray-400);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a:hover { color: var(--c-white); text-decoration: none; }

/* templates.ts footer */
.footer {
  background: linear-gradient(180deg, var(--c-purple-800) 0%, var(--c-purple-900) 100%);
  padding: var(--sp-12) 0 0;
  margin-top: var(--sp-16);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.footer-about { max-width: 360px; }
.footer-about p {
  color: rgba(255, 255, 255, 0.5);
  line-height: var(--lh-normal);
  margin-top: var(--sp-3);
}
.footer h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer a:hover { color: var(--c-white); text-decoration: none; }
.footer .footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: var(--c-gray-400);
}
.footer .footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer .footer-bottom a:hover { color: var(--c-white); }

/* ========================================================================
   Error Page
   ======================================================================== */

.error-page { text-align: center; padding: var(--sp-20) 0; }
.error-page h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--c-purple-200);
  line-height: 1;
  letter-spacing: -0.04em;
}
.error-page h2 {
  font-size: var(--fs-2xl);
  margin: var(--sp-4) 0;
  color: var(--c-gray-900);
  font-weight: 600;
}
.error-page p {
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-6);
}

/* ========================================================================
   Empty State
   ======================================================================== */

.empty-state {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--c-text-muted);
}
.empty-state svg {
  color: var(--c-purple-200);
  margin: 0 auto var(--sp-4);
}
.empty-state p {
  font-size: var(--fs-lg);
  color: var(--c-gray-400);
}

/* ========================================================================
   Glass Morphism & Metallic Effects
   ======================================================================== */

.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}
.glass-light {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
}
.metallic {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 24px rgba(23, 18, 59, 0.2);
}

/* ========================================================================
   Utility Classes
   ======================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--c-text-muted) !important; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-small { font-size: var(--fs-sm); }

.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-8 { margin-bottom: var(--sp-8); }

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 480px) {
  .hero-stats {
    gap: 1rem;
  }
  .hero-stat-value {
    font-size: 1.5rem;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .page-hero h1,
  .search-hero h1 {
    font-size: var(--fs-2xl);
  }
  .search-hero {
    padding: var(--sp-10) var(--sp-4) var(--sp-8);
  }
  .search-bar button {
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm);
  }
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .table-responsive {
    font-size: 0.875rem;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .comparison-header { grid-template-columns: 1fr; gap: var(--sp-4); }
  .product-card { flex-direction: column; }
  .profile-hero { flex-direction: column; }
  .profile-header h1 { font-size: var(--fs-2xl); }
  .scorecard { grid-template-columns: 1fr; }
  .site-nav { gap: var(--sp-3); }
  .nav-search input,
  .nav-search-input { width: 140px; }
}

/* Hamburger menu button (≥44px tap target, morphs to an X when open) */
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--c-white);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-white);
  margin: 4px 0;
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav overlay (D-040): search first, then <details> accordion groups
   (native semantics, zero JS), flat links, and the claim CTA at the bottom. */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 32, 106, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  padding: var(--sp-5) var(--sp-6) var(--sp-10);
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: flex; }
html.nav-locked { overflow: hidden; } /* freeze the page behind the open menu */
.mobile-nav .nav-search-mobile {
  margin-bottom: var(--sp-4);
}
.mobile-nav .nav-search-mobile input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-white);
  font-size: var(--fs-base);
}
.mnav-group { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.mnav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  color: var(--c-white);
  font-size: var(--fs-lg);
  font-weight: 600;
  padding: 14px 2px;
  min-height: 48px;
}
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-group summary .nav-chevron { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.mnav-group[open] summary .nav-chevron { transform: rotate(180deg); }
.mnav-body { padding: 0 0 14px; }
.mnav-body a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-base);
  text-decoration: none;
  padding: 10px 0 10px 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s;
}
.mnav-body a:hover { color: var(--c-green-400); }
.mnav-title {
  margin: 12px 0 2px 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.mnav-body .mnav-title:first-child { margin-top: 4px; }
.mnav-body a.mnav-all { color: var(--c-green-400); font-weight: 600; }
.mnav-flat {
  display: flex;
  align-items: center;
  color: var(--c-white);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 2px;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s;
}
.mnav-flat:hover { color: var(--c-green-400); }
.mnav-cta {
  display: block;
  margin-top: var(--sp-6);
  padding: 14px;
  background: var(--gradient-green-btn);
  color: var(--c-purple-900);
  border-radius: 10px;
  font-weight: 700;
  font-size: var(--fs-base);
  text-align: center;
  text-decoration: none;
}
.mnav-cta:hover { color: var(--c-purple-900); box-shadow: 0 0 20px rgba(0, 205, 155, 0.5); }

/* The full nav (mega + dropdowns + search + vendors) needs ~1000px of bar;
   below that everything collapses into the mobile menu (D-040). */
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .nav-side { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 1024px) and (max-width: 1200px) {
  .site-nav { gap: var(--sp-4); }
  .nav-search input { width: 150px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search-wrap { display: none; }
}

@media (max-width: 520px) {
  .site-logo-text { display: none; }
  .site-logo-img {
    width: 36px;
    height: 36px;
  }
}

/* category-grid responsive handled by auto-fill above */

/* ========================================================================
   Print Styles
   ======================================================================== */

@media print {
  .site-header,
  .site-footer,
  .footer,
  .nav,
  .sidebar,
  .filter-sidebar,
  .search-bar,
  .nav-search,
  .pagination,
  .product-actions,
  .product-card-cta,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .page-main {
    padding: 0;
  }

  .search-hero {
    background: none;
    color: black;
    margin: 0;
    padding: var(--sp-4) 0;
  }
  .search-hero h1,
  .search-hero p {
    color: black;
  }

  .product-card,
  .category-card,
  .search-result,
  .review-card,
  .faq-item,
  .pricing-card {
    box-shadow: none !important;
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .feature-table,
  .comparison-table {
    border: 1px solid #ccc;
  }
  .feature-table th,
  .comparison-table th {
    background: #eee;
    color: black;
  }

  a { color: black; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  .breadcrumbs a[href]::after,
  .nav-logo[href]::after,
  .footer a[href]::after { content: none; }
}

/* ========================================================================
   Selection Highlight
   ======================================================================== */

::selection {
  background: var(--c-purple-500);
  color: var(--c-white);
}

/* ========================================================================
   Scrollbar Styling (Webkit)
   ======================================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--c-gray-50);
}
::-webkit-scrollbar-thumb {
  background: var(--c-purple-200);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-purple-300);
}

/* ========================================================================
   Focus Styles (Accessibility)
   ======================================================================== */

:focus-visible {
  outline: 2px solid var(--c-purple-500);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-purple-500);
  outline-offset: 2px;
}

/* ========================================================================
   Scroll Progress Indicator
   ======================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #7c3aed, #16a34a);
  z-index: 10000;
  transition: width 100ms;
  pointer-events: none;
}

/* ========================================================================
   Background Floating Orbs
   ======================================================================== */

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
/* Orbs are STATIC (D-036 perf): they sit beneath every backdrop-filter surface,
   and animating them forced constant re-blurs; at 0.12-0.15 opacity the drift
   was imperceptible anyway. */
.bg-orb--purple {
  background: rgba(124, 58, 237, 0.15);
  width: 500px;
  height: 500px;
  top: 10%;
  left: -10%;
}
.bg-orb--green {
  background: rgba(22, 163, 106, 0.12);
  width: 400px;
  height: 400px;
  bottom: 15%;
  right: -8%;
}
/* ========================================================================
   Section Reveal on Scroll
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================================
   Page with TOC — Sticky Left Sidebar Table of Contents
   ======================================================================== */

.page-with-toc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}
@media (min-width: 1025px) {
  .page-with-toc {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}
@media (max-width: 1024px) {
  .page-with-toc {
    display: block;
  }
  .toc { display: none !important; }
  .toc-mobile { display: flex; }
}

/* --- TOC sidebar --- */
.toc {
  display: none;
}
@media (min-width: 1025px) {
  .toc {
    display: block;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  }
  /* Hide scrollbar for toc but keep scrollable */
  .toc::-webkit-scrollbar { width: 4px; }
  .toc::-webkit-scrollbar-thumb { background: var(--c-purple-200); border-radius: 2px; }
}

.toc-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-gray-900);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-purple-100);
}

.toc-section {
  margin-bottom: var(--sp-2);
}

.toc-link {
  display: block;
  padding: var(--sp-1) var(--sp-3);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-secondary);
  text-decoration: none !important;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.toc-link:hover {
  color: var(--c-purple-500);
  background: var(--c-purple-50);
  text-decoration: none !important;
}
.toc-link--active {
  color: var(--c-green-900); /* D-043 a11y: #16a34a was 3.14:1 on green-100 */
  border-left: 3px solid #16a34a;
  padding-left: 12px;
  font-weight: 600;
  background: var(--c-green-100);
}

.toc-indent {
  padding-left: var(--sp-6);
}

/* --- Mobile TOC: horizontal scrollable strip --- */
.toc-mobile {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-3) var(--sp-4);
  margin: 0 calc(-1 * var(--sp-4)) var(--sp-4);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-purple-100);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.toc-mobile::-webkit-scrollbar { display: none; }
.toc-mobile { scrollbar-width: none; }

@media (min-width: 1025px) {
  .toc-mobile {
    display: none !important;
  }
}

.toc-mobile .toc-link {
  white-space: nowrap;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-purple-200);
  border-radius: var(--radius-full);
  border-left: 1px solid var(--c-purple-200);
  font-size: var(--fs-xs);
  background: var(--c-purple-50);
}
.toc-mobile .toc-link:hover {
  background: var(--c-purple-100);
  border-color: var(--c-purple-300);
}
.toc-mobile .toc-link--active {
  background: var(--c-green-500);
  color: var(--c-white);
  border-color: var(--c-green-500);
  border-left-color: var(--c-green-500);
}

/* ========================================================================
   Category Hero & Stats
   ======================================================================== */

.category-hero {
  padding: var(--sp-10) 0 var(--sp-8);
}
.category-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--c-gray-900);
  margin-bottom: var(--sp-4);
  overflow-wrap: break-word;
}
.category-hero-description {
  font-size: var(--fs-lg);
  color: var(--c-text-secondary);
  max-width: 640px;
  line-height: var(--lh-loose);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-green-900); /* D-043 a11y: hardcoded #16a34a was 2.62:1 on the lavender band (large text needs 3:1) */
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--c-gray-600); /* D-043 a11y: hardcoded #6b7280 was 3.84:1 on lavender */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================================================
   TOC Section Label
   ======================================================================== */

.toc-section-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gray-500); /* D-043 a11y: gray-400 = 2.97:1 on white */
  margin-bottom: var(--sp-2);
  margin-top: var(--sp-3);
}

/* ========================================================================
   Card Arrow
   ======================================================================== */

.card-arrow {
  font-size: var(--fs-xl);
  color: var(--c-purple-300);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.internal-link-card:hover .card-arrow {
  transform: translateX(4px);
  color: var(--c-purple-500);
}

/* ========================================================================
   Tier Cards Layout
   ======================================================================== */

.tier-section {
  width: 100%;
  border-top: 1px solid var(--c-gray-200);
  padding-top: var(--sp-8);
  margin-top: var(--sp-8);
}
.tier-section:first-child {
  border-top: none;
  margin-top: 0;
}

.tier-header {
  margin-bottom: var(--sp-6);
}
.tier-header h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--c-gray-900);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.tier-header p {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-top: var(--sp-2);
  line-height: var(--lh-normal);
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: tierPulseIn 0.4s ease forwards;
}
.tier-badge--enterprise {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}
.tier-badge--mid-market {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}
.tier-badge--budget {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  box-shadow: 0 0 12px rgba(22, 163, 106, 0.3);
}

@keyframes tierPulseIn {
  0% { opacity: 0; transform: scale(0.9); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ========================================================================
   Card Hover Micro-interactions (enhanced)
   ======================================================================== */

.product-card,
.category-card,
.pricing-card,
.search-result,
.review-card {
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.product-card:hover,
.category-card:hover,
.pricing-card:hover,
.search-result:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Logo/icon subtle scale on card hover */
.product-card:hover .product-logo,
.product-card:hover .product-card-logo,
.category-card:hover .category-icon,
.category-card:hover .category-card-icon {
  transform: scale(1.05);
  transition: transform 0.3s var(--ease);
}
.product-logo,
.product-card-logo,
.category-icon,
.category-card-icon {
  transition: transform 0.3s var(--ease);
}

/* ========================================================================
   FAQ Accordion Smooth Expand
   ======================================================================== */

.faq-answer {
  overflow: hidden;
}

.faq-item:not([open]) .faq-answer {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.faq-item[open] .faq-answer {
  animation: faqExpand 0.35s ease forwards;
}

@keyframes faqExpand {
  0% {
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
  }
  100% {
    max-height: 500px;
    opacity: 1;
    padding-bottom: var(--sp-5);
  }
}

/* ========================================================================
   Pillar Content Section
   ======================================================================== */

.pillar-content {
  max-width: 820px;
  margin: var(--sp-12) auto;
  padding: 0 var(--sp-4);
}

.pillar-section {
  margin-bottom: var(--sp-10);
}
.pillar-section h2 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--c-gray-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-gray-200);
}
.pillar-section h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--c-gray-900);
  margin: var(--sp-6) 0 var(--sp-3);
}
.pillar-section p {
  font-size: var(--fs-base);
  color: var(--c-gray-700);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-4);
}
.pillar-section ul,
.pillar-section ol {
  margin: 0 0 var(--sp-4) var(--sp-6);
}
.pillar-section li {
  margin-bottom: var(--sp-2);
  color: var(--c-gray-700);
  line-height: var(--lh-normal);
}

/* --- Internal Link Cards --- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.internal-link-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.12);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.internal-link-card:hover {
  border-color: var(--c-purple-300);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  text-decoration: none !important;
}

.internal-link-card .link-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-purple-100);
  border-radius: var(--radius-md);
  color: var(--c-purple-500);
  flex-shrink: 0;
  font-size: var(--fs-xl);
}

.internal-link-card .link-title {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-gray-900);
  margin-bottom: var(--sp-1);
}
.internal-link-card .link-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-normal);
}

/* ========================================================================
   Print: hide new elements
   ======================================================================== */

@media print {
  .scroll-progress,
  .bg-orbs,
  .toc,
  .toc-mobile {
    display: none !important;
  }
}

/* ========================================================================
   Homepage Sections (intent-based grouping)
   ======================================================================== */

.home-section {
  /* D-037 rhythm: launchfulfillment-calibrated breathing (sections were 48px
     apart and read as bunched; reference sites run 64-96px). Collapsing
     margins keep gaps consistent between siblings. */
  margin: 5.5rem 0;
}

.section-header {
  margin-bottom: 2.75rem;
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--c-gray-900);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-base);
  color: var(--c-text-secondary);
  margin-top: 0.45rem;
  max-width: 56ch; /* D-037: constrained measure — full-bleed subtitles read messy */
}

@media (max-width: 768px) {
  .section-title { font-size: var(--fs-2xl); }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .section-title { font-size: var(--fs-2xl); }
}

/* ========================================================================
   Software Horizontal Scroll Grid (trending / top-rated / rising)
   ======================================================================== */

.software-scroll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1024px) {
  .software-scroll-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .software-scroll-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }
  .software-scroll-grid::-webkit-scrollbar { display: none; }
  .software-scroll-grid > * {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
  }
}

/* ========================================================================
   Trending Indicator Badges
   ======================================================================== */

.trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}
/* D-036 a11y: badge inks darkened to pass AA on their 10%-tinted backgrounds */
.trending-badge--hot {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}
.trending-badge--rising {
  background: rgba(22, 163, 106, 0.1);
  color: #15803d;
}
.trending-badge--top {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
}

/* ========================================================================
   Score Bar (visual trending score)
   ======================================================================== */

.score-bar {
  height: 4px;
  background: var(--c-purple-100);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.score-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-green-500), var(--c-green-400));
  transition: width 0.6s ease;
}

/* ========================================================================
   Mini Product Card (trending / top-rated / rising sections)
   ======================================================================== */

.mini-product-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mini-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.12);
}

.mini-product-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--c-purple-50);
  border: 1px solid var(--c-purple-100);
}

.mini-product-info {
  flex: 1;
  min-width: 0;
}
.mini-product-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.mini-product-info h3 a {
  color: var(--c-gray-900);
  text-decoration: none;
}
.mini-product-info h3 a:hover {
  color: var(--c-primary);
}
.mini-product-tagline {
  font-size: 0.8rem;
  color: var(--c-text-secondary);
  line-height: 1.4;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ========================================================================
   Cluster Article Layout
   ======================================================================== */

.cluster-article {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-5);
}

.article-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto var(--sp-10);
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}

.article-excerpt {
  font-size: 1.25rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  font-size: 0.875rem;
  color: var(--c-text-secondary);
}

/* Two-column layout: TOC + Content */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.article-content {
  max-width: 750px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-5);
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  scroll-margin-top: 100px;
}

.article-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--c-text);
}

/* ========================================================================
   TL;DR Box
   ======================================================================== */

.tldr-box {
  background: #fef3c7;
  border-left: 4px solid var(--c-purple-600);
  border-radius: 8px;
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.tldr-box__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-3);
}

.tldr-box__content {
  color: var(--c-text);
}

/* ========================================================================
   Table of Contents
   ======================================================================== */

.toc {
  position: sticky;
  top: 80px;
  width: 280px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: var(--sp-4);
  border-left: 2px solid var(--c-border);
}

.toc__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
}

.toc__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.9375rem;
  color: var(--c-text-secondary);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.toc__link:hover {
  background: var(--c-bg-accent);
  color: var(--c-text);
}

.toc__link--active {
  background: var(--c-purple-600);
  color: white;
  font-weight: 600;
}

.toc__link--level-3 {
  padding-left: var(--sp-6);
  font-size: 0.875rem;
}

/* Mobile TOC */
.toc-mobile {
  position: relative;
  top: 0;
  width: 100%;
  max-height: none;
  border-left: none;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: var(--sp-6);
}

.toc-mobile summary {
  padding: var(--sp-4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.toc-mobile summary::after {
  content: ' ▼';
  font-size: 0.75rem;
}

.toc-mobile[open] summary::after {
  content: ' ▲';
}

/* ========================================================================
   Comparison Table
   ======================================================================== */

.comparison-table-wrapper {
  margin: var(--sp-6) 0;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--c-bg-accent);
  padding: var(--sp-4);
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--c-border);
  white-space: nowrap;
}

.comparison-table td {
  padding: var(--sp-4);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.comparison-table tbody tr:hover {
  background: var(--c-bg-accent);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================================================
   Stat Callout
   ======================================================================== */

.stat-callout {
  background: #dbeafe;
  border: 2px solid var(--c-purple-600);
  border-radius: 12px;
  padding: var(--sp-6);
  margin: var(--sp-8) 0;
}

.stat-callout__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--sp-5);
  text-align: center;
  color: var(--c-text);
}

.stat-callout__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.stat-item {
  background: white;
  padding: var(--sp-5);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-item__value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--c-purple-600);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}

.stat-item__label {
  font-size: 0.9375rem;
  color: var(--c-text-secondary);
  line-height: 1.4;
}

.stat-callout__sources {
  font-size: 0.8125rem;
  color: var(--c-text-secondary);
  text-align: center;
  margin-top: var(--sp-4);
}

/* ========================================================================
   Checklist Box
   ======================================================================== */

.checklist-box {
  background: var(--c-bg-accent);
  border-left: 4px solid var(--c-green-700);
  border-radius: 8px;
  padding: var(--sp-6);
  margin: var(--sp-6) 0;
}

.checklist-box__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.checklist-box__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.checklist-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--c-green-700);
  font-size: 1.125rem;
}

/* ========================================================================
   FAQ Item
   ======================================================================== */

.faq-item {
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: white;
  margin-bottom: var(--sp-4);
}

.faq-item summary {
  padding: var(--sp-4) var(--sp-5);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--c-text-secondary);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--c-text-secondary);
}

.faq-item summary:hover {
  background: var(--c-bg-accent);
}

/* ========================================================================
   Related Content
   ======================================================================== */

.related-content {
  margin: var(--sp-10) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--c-purple-600);
}

.related-card__image {
  aspect-ratio: 16 / 9;
  background: var(--c-bg-accent);
  overflow: hidden;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__body {
  padding: var(--sp-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}

.related-card__description {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--sp-3);
  flex: 1;
}

.related-card__link {
  font-size: 0.875rem;
  color: var(--c-primary);
  font-weight: 600;
}

.related-card:hover .related-card__link {
  color: var(--c-primary-hover);
}

/* ========================================================================
   CTA Box
   ======================================================================== */

.cta-box {
  background: linear-gradient(135deg, var(--c-purple-600) 0%, var(--c-purple-500) 100%);
  color: white;
  border-radius: 12px;
  padding: var(--sp-8);
  text-align: center;
  margin: var(--sp-10) 0;
}

.cta-box__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.cta-box__description {
  font-size: 1.0625rem;
  opacity: 0.9;
  margin-bottom: var(--sp-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box__buttons {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-box .btn {
  min-width: 180px;
}

.cta-box .btn--primary {
  background: white;
  color: var(--c-purple-600);
}

.cta-box .btn--primary:hover {
  background: var(--c-gray-100);
}

.cta-box .btn--secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-box .btn--secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* ========================================================================
   Responsive Breakpoints
   ======================================================================== */

@media (max-width: 1023px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .toc {
    display: none;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-content h2 {
    font-size: 1.75rem;
    margin-top: var(--sp-8);
  }

  .article-content p {
    font-size: 1.0625rem;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cluster-article {
    padding: var(--sp-6) var(--sp-4);
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .article-meta {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin-top: var(--sp-6);
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .stat-callout__grid {
    grid-template-columns: 1fr;
  }

  .checklist-box__items {
    grid-template-columns: 1fr;
  }

  .comparison-table-wrapper {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 600px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .cta-box__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-box .btn {
    width: 100%;
  }
}

/* ========================================================================
   Methodology / EEAT trust page (.mthd)
   ======================================================================== */
.mthd { max-width: 1080px; margin-inline: auto; }
.mthd-hero { text-align: center; }
.mthd-eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-purple-500);
  background: var(--c-purple-100); padding: var(--sp-1) var(--sp-3); border-radius: 999px; margin-bottom: var(--sp-3);
}
.mthd-hero .lead { max-width: 760px; margin-inline: auto; }
.mthd-scorecard { margin-top: var(--sp-6); }
.mthd-section { margin-top: var(--sp-8, 3rem); }
.mthd-section-lead { color: var(--c-text-secondary); max-width: 720px; margin-bottom: var(--sp-5); }

.mthd-signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-4); }
.mthd-signal-card {
  padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--c-white);
  border: 1px solid var(--c-purple-200); border-top: 3px solid var(--c-purple-500);
}
.mthd-signal-value { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--c-purple-700); }
.mthd-signal-title { font-weight: 700; margin: var(--sp-2) 0 var(--sp-1); }
.mthd-signal-card p { font-size: var(--fs-sm); color: var(--c-text-secondary); margin: 0; line-height: var(--lh-snug, 1.4); }
.mthd-signal-card--security { border-top-color: var(--c-green-500); }
.mthd-signal-card--security .mthd-signal-value, .mthd-signal-card--proof .mthd-signal-value { color: var(--c-green-900); } /* D-043 a11y: green-700 = 2.31:1 on white */
.mthd-signal-card--proof { border-top-color: var(--c-green-500); }
.mthd-signal-card--sources, .mthd-signal-card--verdict { border-top-color: var(--c-purple-600); }

.mthd-process { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-4); }
.mthd-step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.mthd-step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 800; color: var(--c-white);
  background: linear-gradient(135deg, var(--c-purple-500), var(--c-purple-600));
}
.mthd-step-body h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-1); }
.mthd-step-body p { margin: 0; color: var(--c-text-secondary); }

.mthd-source-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.mthd-source-card { padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--c-white); border: 1px solid var(--c-purple-200); }
.mthd-source-card h3 { font-size: var(--fs-lg); margin: 0 0 var(--sp-2); }
.mthd-source-card > p { font-size: var(--fs-sm); color: var(--c-text-secondary); margin: 0 0 var(--sp-3); }
.mthd-source-list { list-style: none; padding: 0; margin: 0; }
.mthd-source-list li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding: var(--sp-2) 0; border-top: 1px solid var(--c-purple-100); font-size: var(--fs-sm); }
.mthd-source-list li:first-child { border-top: 0; }
.mthd-src-name { font-weight: 600; }
.mthd-src-count { color: var(--c-purple-500); font-size: var(--fs-xs); text-align: right; }

.mthd-verified-band { background: var(--c-purple-100); border-radius: var(--radius-lg); padding: var(--sp-6); }
.mthd-status-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-4); }
.mthd-status { background: var(--c-white); border-radius: var(--radius-lg); padding: var(--sp-4); border-left: 4px solid var(--c-purple-200); }
.mthd-status--verified { border-left-color: var(--c-green-500); }
.mthd-status--stated { border-left-color: var(--c-purple-500); }
.mthd-status-tag { font-weight: 800; font-size: var(--fs-sm); }
.mthd-status--verified .mthd-status-tag { color: var(--c-green-900); } /* D-043 a11y: green-700 = 2.31:1 on white */
.mthd-status p { font-size: var(--fs-sm); color: var(--c-text-secondary); margin: var(--sp-2) 0; line-height: var(--lh-snug, 1.4); }
.mthd-status-count { font-weight: 700; font-size: var(--fs-sm); }
.mthd-note { font-size: var(--fs-sm); color: var(--c-text-secondary); margin-top: var(--sp-3); }

.mthd-example { padding: var(--sp-5); border-radius: var(--radius-lg); background: var(--c-white); border: 1px solid var(--c-purple-200); }
.mthd-example-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.mthd-example-name { font-size: var(--fs-xl, 1.4rem); font-weight: 800; }
.mthd-example-meta { font-size: var(--fs-sm); color: var(--c-text-secondary); }
.mthd-example-h { font-size: var(--fs-base); margin: var(--sp-4) 0 var(--sp-2); }
.mthd-asof { font-weight: 400; font-size: var(--fs-xs); color: var(--c-purple-500); }
.mthd-example-tally { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--c-purple-100); font-size: var(--fs-sm); color: var(--c-text-secondary); }
.mthd-example-tally strong { color: var(--c-purple-700); }

.mthd-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.mthd-top-card { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-4); border-radius: var(--radius-lg); background: var(--c-white); border: 1px solid var(--c-purple-200); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease; }
.mthd-top-card:hover { transform: translateY(-3px); border-color: var(--c-green-500); }
.mthd-top-name { font-weight: 700; }
.mthd-top-total { font-weight: 800; color: var(--c-purple-600); }
.mthd-top-sec { font-size: var(--fs-xs); color: var(--c-text-secondary); }

.mthd-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-4); }
.mthd-principle { padding: var(--sp-4); border-radius: var(--radius-lg); background: var(--c-bg-accent, var(--c-purple-100)); }
.mthd-principle h4 { margin: 0 0 var(--sp-1); }
.mthd-principle p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-secondary); }

@media (max-width: 640px) {
  .mthd-example-head { flex-direction: column; align-items: flex-start; }
  .mthd-signal-value { font-size: 2rem; }
}

/* ------- Trust-signal authority strip (home + category) ------- */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-lg); border: 1px solid var(--c-purple-200);
  background: linear-gradient(120deg, var(--c-purple-100), var(--c-white));
}
.trust-strip-intro { flex: 1 1 220px; min-width: 200px; }
.trust-strip-kicker { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-green-900); margin-bottom: 2px; }
.trust-strip-intro p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-secondary); }
.trust-strip-stats { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); }
.trust-strip-stat { display: flex; flex-direction: column; line-height: 1.1; }
.trust-strip-stat strong { font-size: var(--fs-xl, 1.4rem); font-weight: 800; color: var(--c-purple-700); }
.trust-strip-stat span { font-size: var(--fs-xs); color: var(--c-text-secondary); }
.trust-strip-link { flex-shrink: 0; font-weight: 700; font-size: var(--fs-sm); color: var(--c-purple-600); text-decoration: none; white-space: nowrap; }
.trust-strip-link:hover { color: var(--c-green-700); }
@media (max-width: 720px) { .trust-strip { flex-direction: column; align-items: flex-start; } }

/* --- Trust-tier badges + claim/verify (migration 0087) --- */
.badge--claimed { background: var(--c-purple-50, #f3f0ff); color: var(--c-purple-700); border: 1px solid var(--c-purple-200); }
.badge--gold { background: linear-gradient(135deg, #fbe7a2, #e8b923); color: #5a4500; border: 1px solid #d9a91a; font-weight: 700; }
.btn--ghost { background: transparent; border: 1px solid var(--c-purple-200); color: var(--c-purple-700); }
.btn--ghost:hover { background: var(--c-purple-50, #f3f0ff); }
.btn--lg { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-md, 1.05rem); }
.profile-claim-link { font-size: var(--fs-sm); color: var(--c-purple-600); text-decoration: none; align-self: center; }
.profile-claim-link:hover { color: var(--c-green-700); text-decoration: underline; }

/* Trust-tier explainer cards (methodology + claim landing) */
.tier-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin: var(--sp-5) 0; }
.tier-card { padding: var(--sp-5); border-radius: var(--radius-lg, 14px); border: 1px solid var(--c-purple-200); background: var(--c-white); }
.tier-card h3 { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-lg, 1.15rem); }
.tier-card p { margin: 0; font-size: var(--fs-sm); color: var(--c-text-secondary); }
.tier-card--gold { border-color: #d9a91a; background: linear-gradient(180deg, #fffdf5, var(--c-white)); }
.mthd-cta-line, .claim-steps-note { font-size: var(--fs-sm); color: var(--c-text-secondary); }
.mthd-cta-link, .claim-steps-note a, .claim-back a { color: var(--c-purple-600); font-weight: 700; text-decoration: none; }
.mthd-cta-link:hover, .claim-back a:hover { color: var(--c-green-700); }

/* Claim landing / form */
.claim-hero { text-align: center; }
.claim-hero--product { text-align: left; }
.claim-kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-purple-700); margin-bottom: var(--sp-2); } /* D-043 a11y: green-700 was 1.83:1 on the lavender band; even green-900 is only 4.26 there (12px bold needs 4.5), so brand purple ink instead */
.claim-lede { font-size: var(--fs-lg, 1.15rem); color: var(--c-text-secondary); max-width: 70ch; margin: var(--sp-2) auto var(--sp-4); }
.claim-hero--product .claim-lede { margin-left: 0; }
.claim-hero-stats { display: flex; gap: var(--sp-6); justify-content: center; flex-wrap: wrap; }
.claim-hero-stats > div { display: flex; flex-direction: column; }
.claim-hero-stats strong { font-size: var(--fs-2xl, 1.8rem); font-weight: 800; color: var(--c-purple-700); }
.claim-hero-stats span { font-size: var(--fs-xs); color: var(--c-text-secondary); }
.claim-back { font-size: var(--fs-sm); margin-top: var(--sp-2); }
.claim-steps { padding-left: 1.2em; display: grid; gap: var(--sp-3); }
.claim-form-section { max-width: 760px; }
.claim-form { display: grid; gap: var(--sp-4); }
.claim-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.claim-form .form-row { display: flex; flex-direction: column; gap: var(--sp-1); }
.claim-form .form-row--full { grid-column: 1 / -1; }
.claim-form label { font-size: var(--fs-sm); font-weight: 600; }
.claim-form .req { color: #c0392b; }
.claim-form input, .claim-form select, .claim-form textarea { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-purple-200); border-radius: var(--radius-md, 8px); font: inherit; background: var(--c-white); color: inherit; width: 100%; box-sizing: border-box; }
.claim-form input:focus, .claim-form select:focus, .claim-form textarea:focus { outline: 2px solid var(--c-purple-400, #a78bfa); outline-offset: 1px; border-color: var(--c-purple-400, #a78bfa); }
.claim-form-note { font-size: var(--fs-sm); color: var(--c-text-secondary); }
.claim-form-intro { color: var(--c-text-secondary); }
.claim-verify-hint { background: #dcfce7; color: #166534; border-radius: var(--radius-md, 8px); padding: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }
.claim-verify-extra { background: var(--c-purple-50, #f5f3ff); border: 1px solid var(--c-purple-200); border-radius: var(--radius-md, 8px); padding: var(--sp-4); display: grid; gap: var(--sp-4); }
.claim-verify-lead { font-size: var(--fs-sm); color: var(--c-text-secondary); margin: 0; }
.claim-optional { font-weight: 400; color: var(--c-text-secondary); }
.field-error { display: block; color: #c0392b; font-size: var(--fs-sm); margin-top: 4px; }
.claim-form .input-error, .claim-update-form .input-error { border-color: #c0392b; outline-color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.claim-result { text-align: center; }
.claim-result-icon { font-size: 2rem; width: 64px; height: 64px; line-height: 64px; border-radius: 50%; margin: 0 auto var(--sp-3); }
.claim-result--ok .claim-result-icon { background: var(--c-green-100, #dcfce7); color: var(--c-green-700); }
.claim-result--err .claim-result-icon { background: #fde8e8; color: #c0392b; }
.claim-result-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; width: 100%; max-width: none; margin: var(--sp-4) auto 0; }
.claim-result .claim-steps-note, .claim-result .claim-confirm-form { text-align: center; max-width: 34rem; margin-left: auto; margin-right: auto; }
.claim-confirm-form { margin: var(--sp-4) 0; }
/* D-011 update form — pre-filled, grouped sections + inline field help. */
.claim-update-form .claim-update-group { border: 1px solid var(--c-purple-200); border-radius: var(--radius-md, 8px); padding: var(--sp-4); display: grid; gap: var(--sp-4); margin: 0; }
.claim-update-form legend { font-size: var(--fs-sm); font-weight: 700; color: var(--c-purple-600); padding: 0 var(--sp-2); text-transform: uppercase; letter-spacing: .02em; }
.claim-update-form .field-help { font-size: var(--fs-sm); color: var(--c-text-secondary); font-weight: 400; }
@media (max-width: 720px) {
  .tier-cards { grid-template-columns: 1fr; }
  .claim-form .form-grid { grid-template-columns: 1fr; }
}

/* Consent banner (D-025) — fixed overlay, glass morphism, no CLS (not in document flow). */
.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: var(--sp-3, 1rem); display: flex; justify-content: center; pointer-events: none; }
.consent-banner[hidden] { display: none; }
.consent-banner__inner { pointer-events: auto; width: min(100%, 720px); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--c-purple-200, #e6e0f5); border-radius: var(--radius-md, 10px); box-shadow: 0 8px 30px rgba(30, 20, 60, 0.16); padding: var(--sp-3, 1rem) var(--sp-4, 1.5rem); display: flex; align-items: center; gap: var(--sp-4, 1.5rem); flex-wrap: wrap; }
.consent-banner__text { margin: 0; font-size: var(--fs-sm, 0.875rem); color: var(--c-text, #1a1730); line-height: 1.5; flex: 1 1 260px; }
.consent-banner__text a { color: var(--c-purple-600, #6b3fd4); text-decoration: underline; }
.consent-banner__actions { display: flex; gap: var(--sp-2, 0.5rem); flex: 0 0 auto; }
.consent-btn { font: inherit; font-size: var(--fs-sm, 0.875rem); font-weight: 600; padding: 0.5rem 1.1rem; border-radius: var(--radius-sm, 8px); cursor: pointer; border: 1px solid transparent; }
.consent-btn--ghost { background: transparent; border-color: var(--c-purple-200, #d9d0f0); color: var(--c-text-secondary, #55506e); }
.consent-btn--ghost:hover { background: rgba(0, 0, 0, 0.04); }
.consent-btn--solid { background: var(--c-purple-600, #6b3fd4); color: #fff; }
.consent-btn--solid:hover { background: var(--c-purple-700, #5a32b8); }
.consent-btn:focus-visible { outline: 2px solid var(--c-purple-500, #5F53C3); outline-offset: 2px; } /* D-036 a11y: green outline was 1.65:1 on white */
@media (max-width: 560px) {
  .consent-banner { padding: var(--sp-2, 0.5rem); }
  .consent-banner__inner { flex-direction: column; align-items: stretch; gap: var(--sp-3, 1rem); }
  .consent-banner__actions { justify-content: flex-end; }
}

/* ========================================================================
   D-034 Phase A — homepage additive blocks + buyer-segment pages
   ======================================================================== */

/* Intro band (D-036/D-037): definition header + funnel diagram + path cards */
.home-intro { margin: 4rem 0 5.5rem; }
.home-intro-corpus { font-size: var(--fs-sm); color: var(--c-gray-500); margin: calc(-1 * var(--sp-4)) 0 var(--sp-8); }
.home-intro-corpus strong { color: var(--c-purple-700); }

/* Funnel diagram (D-037): the order's path through the stack as a chevron
   ribbon — purple ramp deepens toward invoicing; Integrations is the rail
   underneath. Pure CSS (clip-path), links intact, white text AA on every step. */
.funnel-wrap { margin: 0 0 var(--sp-10); }
.funnel { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: flex; gap: 4px; }
.funnel-stage { flex: 1 1 0; min-width: 0; }
.funnel-stage a {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-4) + 14px);
  color: var(--c-white); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
  transition: filter 0.15s ease;
}
.funnel-stage:first-child a { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: var(--sp-5); }
.funnel-stage:nth-child(1) a { background: var(--c-purple-500); }
.funnel-stage:nth-child(2) a { background: var(--c-purple-600); }
.funnel-stage:nth-child(3) a { background: var(--c-purple-700); }
.funnel-stage:nth-child(4) a { background: var(--c-purple-800); }
.funnel-stage a:hover, .funnel-stage a:focus-visible { filter: brightness(1.18); }
.funnel-step { font-size: var(--fs-xs); font-weight: 700; color: rgba(255, 255, 255, 0.85); letter-spacing: 0.06em; text-transform: uppercase; } /* 0.85: AA on purple-500 (Iris, D-039) */
.funnel-label { font-weight: 800; font-size: var(--fs-lg); letter-spacing: 0.01em; }
.funnel-role { font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.88); }
.funnel-rail { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; padding: var(--sp-3) var(--sp-5); background: var(--c-green-100); border: 1px solid rgba(3, 191, 153, 0.3); border-radius: 12px; text-decoration: none; }
.funnel-rail-label { font-weight: 800; color: var(--c-green-900); }
.funnel-rail-role { font-size: var(--fs-sm); color: var(--c-gray-600); }
.funnel-rail:hover .funnel-rail-label { text-decoration: underline; }

/* Path cards: self-segmentation with directional arrow micro-interactions */
.path-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); }
.path-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5) var(--sp-6); background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: 14px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.18s ease; }
.path-card:hover, .path-card:focus-visible { border-color: var(--c-purple-300); box-shadow: 0 8px 24px rgba(23, 18, 59, 0.10); transform: translateY(-2px); text-decoration: none; }
/* D-038: on hover only the CTA text underlines — not the whole card, and not
   the arrow (the underline targets a dedicated text span; .path-cta is a flex
   container, where container-level underlines render unreliably). */
.path-card:hover .path-cta-text, .path-card:focus-visible .path-cta-text { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.path-card h3 { font-size: var(--fs-base); font-weight: 700; color: var(--c-gray-900); }
.path-card p { font-size: var(--fs-sm); color: var(--c-gray-500); line-height: 1.55; flex: 1; }
.path-cta { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 700; color: var(--c-purple-600); }
.path-arrow { display: inline-block; transition: transform 0.18s ease, color 0.18s ease; }
.path-card:hover .path-arrow, .path-card:focus-visible .path-arrow { transform: translateX(5px); color: var(--c-green-700); }
.path-card--diag:hover .path-arrow, .path-card--diag:focus-visible .path-arrow { transform: translate(4px, -4px); }
.path-card--down:hover .path-arrow, .path-card--down:focus-visible .path-arrow { transform: translateY(5px); }
.path-card--primary { background: var(--c-purple-50); border-color: var(--c-purple-200); }
.path-card--primary .path-cta { color: var(--c-purple-700); }

/* Explorer intent tabs (D-038): segmented-control pills — filled active state
   reads as a button, not a link; radios keep native arrow-key switching; ALL
   panels stay in the DOM so every category/subcategory link crawls (hidden-tab
   content is fully weighted under mobile-first indexing). The segment row
   stays OUTSIDE the tabs — high-intent content never hides behind one. */
.explorer-tab-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.explorer-tab-labels { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.explorer-tab-labels label { cursor: pointer; padding: 0.55rem 1.15rem; font-weight: 700; font-size: var(--fs-sm); color: var(--c-purple-700); background: rgba(255, 255, 255, 0.6); border: 1px solid var(--c-purple-200); border-radius: 999px; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.explorer-tab-labels label:hover { background: var(--c-white); border-color: var(--c-purple-400); }
#explorer-tab-0:checked ~ .explorer-tab-labels label[for='explorer-tab-0'],
#explorer-tab-1:checked ~ .explorer-tab-labels label[for='explorer-tab-1'],
#explorer-tab-2:checked ~ .explorer-tab-labels label[for='explorer-tab-2'] { background: var(--c-purple-700); color: var(--c-white); border-color: var(--c-purple-700); }
#explorer-tab-0:focus-visible ~ .explorer-tab-labels label[for='explorer-tab-0'],
#explorer-tab-1:focus-visible ~ .explorer-tab-labels label[for='explorer-tab-1'],
#explorer-tab-2:focus-visible ~ .explorer-tab-labels label[for='explorer-tab-2'] { outline: 2px solid var(--c-purple-500); outline-offset: 2px; }
.explorer-panel { display: none; }
#explorer-tab-0:checked ~ .explorer-panel--0,
#explorer-tab-1:checked ~ .explorer-panel--1,
#explorer-tab-2:checked ~ .explorer-panel--2 { display: block; }

/* Glass tile treatment (D-036): the explorer is a gradient rest-stop panel.
   Groups sit on translucent white cards — glass look WITHOUT backdrop-filter
   (blur surfaces are a paint cost; the gradient behind fakes it for free). */
.explorer--glass { background: linear-gradient(135deg, #F7F6FD 0%, #EEEDFA 48%, #E6FFF8 100%); border: 1px solid var(--c-purple-100); border-radius: 24px; padding: var(--sp-8) clamp(1rem, 3vw, 2.5rem); box-shadow: 0 10px 40px rgba(23, 18, 59, 0.06); }
.explorer--glass .explorer-group { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 14px; padding: var(--sp-4) var(--sp-5); box-shadow: 0 2px 12px rgba(23, 18, 59, 0.05); }
.explorer--glass .explorer-group-title { border-bottom-color: rgba(95, 83, 195, 0.14); }
.explorer-intent-kicker { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-purple-500); margin-bottom: var(--sp-3); }
.explorer-size-row { margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid rgba(95, 83, 195, 0.14); }
.explorer-search-exit { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--c-gray-500); }
.explorer-search-exit a { color: var(--c-purple-600); font-weight: 700; text-decoration: none; }
.explorer-search-exit a:hover { text-decoration: underline; }
.explorer-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--sp-6) var(--sp-8); }
.explorer-group-title { display: flex; align-items: baseline; gap: var(--sp-2); font-weight: 700; color: var(--c-gray-900); text-decoration: none; font-size: var(--fs-base); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--c-gray-200); margin-bottom: var(--sp-2); }
.explorer-group-title:hover { color: var(--c-purple-600); }
.explorer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.explorer-links a { display: flex; align-items: center; gap: var(--sp-2); color: var(--c-gray-500); text-decoration: none; font-size: var(--fs-sm); line-height: 1.5; padding: 0.32rem 0; min-height: 24px; }
.explorer-links a:hover { color: var(--c-purple-600); }
.explorer-count { font-size: var(--fs-xs); color: var(--c-gray-500); font-weight: 600; }
.segment-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-6); }
.segment-card { display: block; padding: var(--sp-6); background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: 14px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.segment-card:hover { border-color: var(--c-purple-300); box-shadow: 0 6px 20px rgba(30, 20, 60, 0.08); }
.segment-card-count { font-size: var(--fs-xs); font-weight: 700; color: var(--c-green-900); background: var(--c-green-100); padding: 0.2rem 0.6rem; border-radius: 999px; }
.segment-card h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--c-gray-900); margin: var(--sp-3) 0 var(--sp-2); }
.segment-card p { font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: 1.55; }

/* Guides row */
.guide-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--sp-6); }
.guide-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-6); background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: 14px; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.guide-card:hover { border-color: var(--c-purple-300); box-shadow: 0 6px 20px rgba(30, 20, 60, 0.08); }
.guide-card h3 { font-size: var(--fs-base); font-weight: 700; color: var(--c-gray-900); line-height: 1.35; }
.guide-card p { font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: 1.55; flex: 1; }
.guide-card-more { font-size: var(--fs-sm); font-weight: 600; color: var(--c-purple-600); }
.guide-card--methodology { background: var(--c-purple-50); border-color: var(--c-purple-100); }

/* Homepage FAQ reuses .faq-section/.faq-list/.faq-item; only the header layout differs */
.faq-section .section-title { margin-bottom: 0; }

/* Buyer-segment pages */
.segment-page { display: flex; flex-direction: column; gap: var(--sp-10); }
.segment-header { max-width: 860px; }
.segment-kicker { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-green-900); background: var(--c-green-100); padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: var(--sp-3); }
.segment-header h1 { font-size: var(--fs-3xl); font-weight: 800; color: var(--c-gray-900); letter-spacing: -0.02em; margin-bottom: var(--sp-3); }
.segment-lede { font-size: var(--fs-lg); color: var(--c-gray-500); line-height: 1.6; margin-bottom: var(--sp-3); }
.segment-countline { color: var(--c-gray-600); }
.segment-countline strong { color: var(--c-purple-700); }
.answer-block { max-width: 860px; padding: var(--sp-6); background: var(--c-purple-50); border-left: 4px solid var(--c-purple-500); border-radius: 0 12px 12px 0; }
.answer-block p { color: var(--c-gray-600); line-height: 1.7; }
.segment-stats { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.segment-stat { display: flex; flex-direction: column; padding: var(--sp-4) var(--sp-6); background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: 12px; min-width: 130px; }
.segment-stat-n { font-size: var(--fs-2xl); font-weight: 800; color: var(--c-purple-700); }
.segment-stat-label { font-size: var(--fs-xs); color: var(--c-text-secondary); }
.segment-criteria h2, .segment-products h2, .segment-crosslinks h2 { font-size: var(--fs-2xl); font-weight: 700; color: var(--c-gray-900); margin-bottom: var(--sp-2); letter-spacing: -0.01em; }
.segment-section-sub { color: var(--c-text-secondary); margin-bottom: var(--sp-6); }
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
.criterion-card { padding: var(--sp-5); background: var(--c-white); border: 1px solid var(--c-gray-200); border-radius: 12px; }
.criterion-card h3 { font-size: var(--fs-base); font-weight: 700; color: var(--c-gray-900); margin-bottom: var(--sp-2); }
.criterion-card p { font-size: var(--fs-sm); color: var(--c-text-secondary); line-height: 1.6; }
.segment-group { margin-bottom: var(--sp-8); }
.segment-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.segment-group-head h3 { font-size: var(--fs-xl); font-weight: 700; }
.segment-group-head h3 a { color: var(--c-gray-900); text-decoration: none; }
.segment-group-head h3 a:hover { color: var(--c-purple-600); }
.segment-group-count { font-size: var(--fs-sm); color: var(--c-text-muted); font-weight: 600; margin-left: var(--sp-2); }
.segment-group-more { font-size: var(--fs-sm); font-weight: 600; color: var(--c-purple-600); text-decoration: none; }
.segment-group-more:hover { text-decoration: underline; }
.segment-group-foot { margin-top: var(--sp-3); }
.segment-crosslinks .crosslink-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-8); }
.segment-crosslinks h3 { font-size: var(--fs-base); font-weight: 700; color: var(--c-gray-900); margin-bottom: var(--sp-3); }
.segment-crosslinks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.segment-crosslinks li { display: flex; align-items: baseline; gap: var(--sp-2); }
.segment-crosslinks a { color: var(--c-purple-600); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.segment-crosslinks a:hover { text-decoration: underline; }
/* Hero search button (UX review P1: was transparent on glass = invisible
   primary action). Action-green fill, dark text (~10:1). */
.hero-search button { background: var(--c-green-500); color: var(--c-purple-900); border: 0; border-radius: 12px; font-weight: 700; padding: 0 1.4rem; cursor: pointer; transition: background 0.15s ease; }
.hero-search button:hover, .hero-search button:focus-visible { background: var(--c-green-400); }

/* Hero -> body seam bridge: the trust strip overlaps the hero's bottom edge
   as a raised card (homepage only — scoped by sibling selector so category
   pages that also render the strip are untouched). */
.hero + .trust-strip { margin-top: -44px; position: relative; z-index: 2; background: var(--c-white); border: 1px solid var(--c-purple-100); border-radius: 16px; box-shadow: 0 14px 44px rgba(23, 18, 59, 0.12); padding: 3.25rem 2rem 1.6rem; }

/* Category-card descriptor line (marketing review P1: structural parity —
   every card explains itself in one clamped line). */
.category-card-desc { font-size: var(--fs-xs); color: var(--c-gray-500); line-height: 1.45; margin-top: 0.3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Closing band (marketing review P1: the page's final re-route) */
.home-closing { margin: 5.5rem 0 4rem; padding: var(--sp-10) var(--sp-6); text-align: center; background: radial-gradient(ellipse 90% 120% at 50% 0%, var(--c-purple-50) 0%, var(--c-white) 70%); border: 1px solid var(--c-purple-100); border-radius: 20px; }
.home-closing h2 { font-size: var(--fs-2xl); font-weight: 800; color: var(--c-gray-900); letter-spacing: -0.01em; margin-bottom: var(--sp-2); }
.home-closing p { color: var(--c-gray-500); margin-bottom: var(--sp-5); }
.home-closing-actions { display: flex; align-items: center; justify-content: center; gap: var(--sp-6); flex-wrap: wrap; }
.home-closing-link { font-size: var(--fs-sm); font-weight: 700; color: var(--c-purple-600); text-decoration: none; }
.home-closing-link:hover { text-decoration: underline; }

/* FAQ: two-up on wide screens (UX review: 1,000px+ of single column) */
@media (min-width: 900px) {
  .home-section .faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2.1rem; }
  .home-section { margin: 3.5rem 0; }
  .home-intro { margin: 2.5rem 0 3.5rem; }
  /* Funnel stacks vertically — chevrons point DOWN between stages */
  .funnel { flex-direction: column; gap: 4px; }
  .funnel-stage a,
  .funnel-stage:first-child a { clip-path: none; border-radius: 10px; padding: var(--sp-3) var(--sp-4); }
  .funnel-stage:not(:last-child) { position: relative; margin-bottom: 10px; }
  .funnel-stage:not(:last-child)::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--c-purple-400); border-bottom: 0; }
  .explorer--glass { padding: var(--sp-6) var(--sp-4); border-radius: 18px; }
  .explorer-groups { grid-template-columns: 1fr; }
  /* Subcategory links become a chip cloud on mobile: solid tap targets,
     half the vertical footprint of a stacked list (UX review P1). */
  .explorer-links { flex-direction: row; flex-wrap: wrap; gap: var(--sp-2); }
  .explorer-links a { border: 1px solid var(--c-purple-200); border-radius: 999px; padding: 0.45rem 0.8rem; background: var(--c-white); font-size: var(--fs-xs); }
  .hero-quick-pill { padding: 0.4rem 0.9rem; } /* D-036 a11y: >=24px tap targets */
  .segment-stats { gap: var(--sp-2); }
  .segment-stat { min-width: 110px; padding: var(--sp-3) var(--sp-4); }
}

/* ========================================================================
   D-041: Editor's Picks · footer expansion · category-page rhythm
   ======================================================================== */

/* --- Editor's Picks (homepage) --- */
.picks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.pick-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--gradient-card);
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.07);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pick-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-purple-300);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.14);
}
.pick-axis {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-purple-500);
}
.pick-head { display: flex; align-items: center; gap: 12px; }
.pick-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
  background: var(--c-white);
  border: 1px solid var(--c-gray-200);
  flex-shrink: 0;
}
.pick-name { font-size: var(--fs-lg); font-weight: 700; color: var(--c-text); letter-spacing: -0.01em; }
.pick-blurb { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.55; }
.pick-cta {
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-purple-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pick-arrow { transition: transform 0.2s var(--ease); }
/* CTA-text-only hover underline — the D-038 path-card convention */
.pick-card:hover .pick-cta { text-decoration: underline; text-underline-offset: 3px; }
.pick-card:hover .pick-arrow { transform: translateX(4px); }
.picks-method-link { white-space: nowrap; }
@media (max-width: 1023px) { .picks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .picks-grid { grid-template-columns: 1fr; } }

/* --- Footer: six columns need a tighter minimum than the old four --- */
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* --- Category pages: breathing room + subcategory card cleanup --- */
#subcategories { margin-top: var(--sp-12); }
#subcategories h2 { margin-bottom: var(--sp-6); }
.page-with-toc .faq-section { margin-top: var(--sp-12); }
.pillar-content { margin-top: var(--sp-12); }
.link-grid { gap: var(--sp-5); margin-top: var(--sp-2); }
.internal-link-card .link-title {
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.internal-link-card .link-desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.internal-link-card .card-arrow { margin-top: 2px; }

/* Reduced motion (D-036, WCAG 2.3.3): universal kill-switch — animations
   collapse to a single instant frame, reveals appear in place, hover lifts and
   arrow nudges hold still. Color/shadow feedback survives, so interaction cues
   remain without motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .path-card:hover .path-arrow, .path-card--diag:hover .path-arrow, .path-card--down:hover .path-arrow,
  .path-card:focus-visible .path-arrow, .path-card--diag:focus-visible .path-arrow, .path-card--down:focus-visible .path-arrow { transform: none; }
  .path-card:hover, .category-card:hover, .segment-card:hover, .guide-card:hover, .product-card:hover { transform: none; }
}

/* Skip link (D-036 a11y): first tab stop, visible only on focus */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--c-purple-700); color: var(--c-white); font-weight: 700; padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; text-decoration: none; }
.skip-link:focus { left: 0; }

/* Border light-chase (D-037, 3plsystems-inspired but ONE-SHOT): a conic ring
   masked to the card's border, angle animated once when the existing .reveal
   IntersectionObserver marks the section visible. Zero JS added; the universal
   reduced-motion block collapses it to nothing. Without @property support the
   ring simply never shows (graceful). */
@property --chase-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.border-chase { position: relative; }
.border-chase::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  padding: 2px; opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--chase-angle),
    transparent 0deg 286deg,
    rgba(0, 228, 180, 0.95) 320deg,
    rgba(95, 83, 195, 0.9) 348deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
/* Restraint pass (D-039): the chase runs on exactly three surfaces — trust
   strip, explorer tile, and the closing CTA's loop variant. Descendant/stagger
   support removed with the last staggered cards. */
.reveal--visible.border-chase::after {
  animation: border-chase 4.5s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}
@keyframes border-chase {
  0% { --chase-angle: 0deg; opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { --chase-angle: 360deg; opacity: 0; }
}

/* Loop variant (D-037 adjustment): the final CTA card keeps a slow, subtle,
   continuous chase — separation from the background that quietly draws the
   eye. Lower-alpha ring, linear pace, gated on reveal so it never animates
   off-screen. Reduced-motion collapses it like everything else. */
.border-chase--loop { position: relative; }
.border-chase--loop::after {
  content: ''; position: absolute; inset: -2px; border-radius: inherit;
  padding: 2px; opacity: 0; pointer-events: none;
  background: conic-gradient(from var(--chase-angle),
    transparent 0deg 262deg,
    rgba(0, 228, 180, 0.55) 310deg,
    rgba(95, 83, 195, 0.5) 344deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.reveal--visible.border-chase--loop::after {
  opacity: 1;
  animation: border-chase-loop 9s linear infinite;
}
@keyframes border-chase-loop {
  from { --chase-angle: 0deg; }
  to { --chase-angle: 360deg; }
}
