:root {
  /* ==========================================================================
     Rank Kiwi Design System — Global Tokens (Single Source of Truth)
     ========================================================================== */

  /* 1. Typography Families */
  --font-display: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 2. Standardized Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* 3. Refined Modern SaaS Type Scale (Appropriately sized, sleek 1-line headings) */
  --font-size-hero: clamp(28px, 3.5vw, 40px);       /* Hero heading (compact, sleek, fits in 1 line) */
  --font-size-display: clamp(24px, 2.8vw, 34px);    /* Display / Page title */
  --font-size-h1: clamp(22px, 2.5vw, 30px);         /* Major section heading */
  --font-size-h2: clamp(19px, 2.0vw, 24px);         /* Secondary section heading */
  --font-size-h3: clamp(16px, 1.5vw, 18.5px);       /* Card or feature heading */
  --font-size-h4: 15px;                             /* Sub-card or list heading */
  --font-size-lead: clamp(14.5px, 1.3vw, 16px);     /* Supporting text / lede (1-2 lines max) */
  --font-size-body: 15px;                           /* Standard body text */
  --font-size-body-sm: 13.5px;                      /* Secondary descriptions */
  --font-size-label: 13.5px;                        /* Navigation, buttons & controls */
  --font-size-caption: 12px;                        /* Eyebrows, microcopy & tags */

  /* Legacy Scale Aliases for Compatibility */
  --text-xs: 12px;
  --text-sm: 13.5px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 19px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: clamp(34px, 4.2vw, 48px);

  /* 4. Line Heights */
  --line-hero: 1.04;     /* Tight, punchy hero line-height (0.98 - 1.08) */
  --line-tight: 1.14;    /* Tight section headings (1.10 - 1.18) */
  --line-heading: 1.20;  /* Standard section & page headings */
  --line-snug: 1.32;     /* Cards & subheadings */
  --line-normal: 1.58;   /* Body text & supporting descriptions */
  --line-relaxed: 1.68;  /* Long-form documentation & research */

  /* 4b. Letter Spacing (Tracking) */
  --tracking-hero: -0.03em;
  --tracking-tight: -0.022em;
  --tracking-snug: -0.012em;
  --tracking-normal: 0;
  --tracking-caps: 0.08em;

  /* 5. Spacing Scale (Disciplined 4px / 8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* 6. Section Vertical Rhythm */
  --section-padding-hero: clamp(52px, 6.5vw, 84px) 0 clamp(36px, 4.5vw, 56px);
  --section-padding: clamp(56px, 7vw, 96px) 0;
  --section-padding-compact: clamp(40px, 5vw, 64px) 0;

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

  /* 8. Containers */
  --container-width: 1140px;
  --container-narrow: 880px;
  --container-prose: 740px;
  --container-padding: 24px;

  /* 9. Button Metrics */
  --button-height: 40px;
  --button-height-sm: 34px;
  --button-radius: var(--radius-sm);

  /* 10. Borders & Shadows */
  --border: 1px solid #e3e8e0;
  --border-strong: 1px solid #cdd6c8;
  --border-accent: 1px solid #d2f2b2;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.05);
  --shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 28px -6px rgba(17, 24, 39, 0.08);

  /* 11. Brand Color System (Rank Kiwi Primary Green Standard) */
  --brand-primary: #01370b;
  --brand-primary-hover: #084a14;
  --brand-accent: #cbf990;
  --brand-accent-hover: #baf378;
  --brand-accent-dim: #e4f9c5;
  --brand-soft: #f2faea;
  --brand-border: #d2f2b2;
  --brand-border-strong: rgba(1, 55, 11, 0.2);

  /* Preserved Palette & Semantic Mappings */
  --ink: #111827;
  --ink-secondary: #374151;
  --muted: #475345;
  --caption: #64748b;
  --line: #e3e8e0;
  --line-strong: #cdd6c8;
  --paper: #ffffff;
  --wash: #f8faf6;
  --warm: #fcfdfb;
  --warm-gold: #cbf990;
  --warm-gold-border: rgba(1, 55, 11, 0.15);
  --kiwi-green: #cbf990;
  --kiwi-green-hover: #baf378;
  --kiwi-wash: #f2faea;
  --kiwi-border: #d2f2b2;
  --kiwi-dark: #01370b;
  --kiwi-dark-hover: #084a14;
  --green: #01370b;
  --green-hover: #084a14;
  --green-light: #f2faea;
  --accent-lime: #cbf990;
  --accent-lime-dim: #e4f9c5;

  /* Semantic Feedback Colors */
  --color-success: #166534;
  --color-success-text: #166534;
  --color-success-bg: #f0fdf4;
  --color-success-border: #bbf7d0;
  --color-error: #991b1b;
  --color-error-text: #991b1b;
  --color-error-bg: #fef2f2;
  --color-error-border: #fee2e2;
  --color-warning: #9a3412;
  --color-warning-text: #9a3412;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;

  /* 12. Data Visualization Chart Palette (Rank Kiwi Controlled Spectrum) */
  --chart-series-1: #01370b;
  --chart-series-2: #2b7a1e;
  --chart-series-3: #52a13f;
  --chart-series-4: #8ecf7c;
  --chart-series-5: #cbf990;
  --chart-neutral: #94a3b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100vw;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Brand Text Selection (Full Site)
   ========================================================================== */

::selection {
  background: var(--kiwi-green);
  color: #01370b;
}

::-moz-selection {
  background: var(--kiwi-green);
  color: #01370b;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Inline Internal & Content Links (Bolder + Brand Green Glow on Hover)
   ========================================================================== */

p a:not(.button):not(.text-button):not(.card-interactive):not(.docs-page-nav):not(.social-icon-link):not(.brand):not(.author-link):not(.support-email-pill):not(.docs-nav-link):not(.docs-toc-link):not(.docs-breadcrumbs a):not(.docs-sidebar-footer a):not(.docs-search-item):not(.docs-card):not(.tree-btn):not(.table-of-contents a),
li a:not(.button):not(.text-button):not(.card-interactive):not(.docs-page-nav):not(.social-icon-link):not(.brand):not(.docs-nav-link):not(.docs-toc-link):not(.docs-breadcrumbs a):not(.docs-sidebar-footer a):not(.docs-search-item):not(.docs-card):not(.tree-btn):not(.table-of-contents a),
td a:not(.button):not(.text-button),
details p a,
.content-section p a,
.content-page p a,
.article-content p a,
.article-content li a,
.legal-content p a,
.support-box a,
.related-links a {
  font-weight: 600;
  color: var(--kiwi-dark);
  text-decoration: underline;
  text-decoration-color: rgba(94, 184, 52, 0.45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  border-radius: 4px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

p a:not(.button):not(.text-button):not(.card-interactive):not(.docs-page-nav):not(.social-icon-link):not(.brand):not(.author-link):not(.support-email-pill):not(.docs-nav-link):not(.docs-toc-link):not(.docs-breadcrumbs a):not(.docs-sidebar-footer a):not(.docs-search-item):not(.docs-card):not(.tree-btn):not(.table-of-contents a):hover,
li a:not(.button):not(.text-button):not(.card-interactive):not(.docs-page-nav):not(.social-icon-link):not(.brand):not(.docs-nav-link):not(.docs-toc-link):not(.docs-breadcrumbs a):not(.docs-sidebar-footer a):not(.docs-search-item):not(.docs-card):not(.tree-btn):not(.table-of-contents a):hover,
td a:not(.button):not(.text-button):hover,
details p a:hover,
.content-section p a:hover,
.content-page p a:hover,
.article-content p a:hover,
.article-content li a:hover,
.legal-content p a:hover,
.support-box a:hover,
.related-links a:hover {
  color: #01370b !important;
  background: var(--kiwi-green) !important;
  text-decoration: underline !important;
  text-decoration-color: #01370b !important;
  box-shadow: none !important;
  border-radius: 4px;
}

/* Documentation Link Overrides - Keep Navigation & UI Elements Clean */
.docs-nav-link,
.docs-toc-link,
.docs-breadcrumbs a,
.docs-sidebar-footer a,
.docs-search-item,
.docs-card,
.tree-btn,
.table-of-contents a {
  text-decoration: none !important;
  box-shadow: none !important;
}

.docs-nav-link:hover,
.docs-toc-link:hover,
.docs-breadcrumbs a:hover,
.docs-sidebar-footer a:hover,
.docs-search-item:hover,
.tree-btn:hover {
  text-decoration: none !important;
}


:focus-visible {
  outline: 2px solid var(--kiwi-dark);
  outline-offset: 2px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Containers */
.wrap {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(var(--container-narrow), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-prose {
  width: min(var(--container-prose), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 14px;
}

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

/* ==========================================================================
   Typography Scale (Desktop Targets & Sort Feed Visual Benchmark)
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--font-size-caption);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2b7a1e;
  box-shadow: 0 0 0 3px rgba(43, 122, 30, 0.15);
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-tight);
  font-weight: 750;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: var(--font-size-hero);
  line-height: var(--line-hero);
  letter-spacing: var(--tracking-hero);
  font-weight: 750;
  margin-bottom: 20px;
  max-width: 840px;
  margin-inline: auto;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-tight);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
  margin-bottom: 12px;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-snug);
  font-weight: 650;
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
  margin-bottom: 8px;
}

h4 {
  font-size: var(--font-size-h4);
  line-height: var(--line-snug);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

p {
  color: var(--ink-secondary);
}

.hero-text, .hero-lead, .lede {
  font-size: var(--font-size-lead);
  line-height: var(--line-normal);
  color: var(--muted);
  font-weight: 400;
  max-width: 680px;
  margin-inline: auto;
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
}

.button:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1);
}

.button span,
.button .btn-microcopy {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 8px;
  letter-spacing: normal;
  display: inline-block;
  pointer-events: none;
  transition: color 0.15s ease;
}

.button:hover span,
.button:hover .btn-microcopy {
  color: rgba(255, 255, 255, 0.95);
}

.button-quiet span,
.button-quiet .btn-microcopy {
  color: var(--muted);
}

.button-quiet:hover span,
.button-quiet:hover .btn-microcopy {
  color: var(--ink);
}

.button-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13.5px;
}

.button-quiet {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}

.button-quiet:hover {
  background: var(--wash);
  border-color: #bcc6b7;
  box-shadow: var(--shadow-sm);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s;
}

.text-button b {
  font-size: 14px;
  transition: transform 0.2s;
}

.text-button:hover {
  color: var(--green);
}

.text-button:hover b {
  transform: translateX(3px);
}

/* ==========================================================================
   Header & Navbar (Floating Pill Standard matching Sort Feed)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  width: 100%;
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 16px;
  margin-top: 12px;
  transition: transform 0.2s ease;
}

.site-header .nav {
  pointer-events: auto;
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: 54px;
  margin-inline: auto;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  backdrop-filter: blur(14px) saturate(1.8);
  border: 1px solid rgba(55, 53, 47, 0.09);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 10px 30px -12px rgba(15, 15, 15, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled .nav {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(55, 53, 47, 0.12);
  box-shadow: 0 2px 6px rgba(15, 15, 15, 0.06), 0 14px 34px -10px rgba(15, 15, 15, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 500;
  margin-right: auto;
  margin-left: 20px;
}

.nav-links .button {
  display: none !important;
}

.nav-links > a:not(.button) {
  letter-spacing: -0.01em;
  color: var(--ink-secondary);
  border-radius: 8px;
  padding: 6px 12px;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav-links > a:not(.button):hover {
  color: var(--ink);
  background: rgba(55, 53, 47, 0.06);
}

.nav-links > a.active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(55, 53, 47, 0.05);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .nav-right .button {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  background: var(--brand-primary);
  border: 1px solid var(--brand-primary);
  border-radius: 9px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(1, 55, 11, 0.25);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-header .nav-right .button:hover {
  background: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(1, 55, 11, 0.35);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.menu-toggle:hover {
  background: rgba(55, 53, 47, 0.08);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3.5px auto;
  transition: transform 0.2s, opacity 0.2s;
  border-radius: 1px;
}

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

.hero {
  padding: var(--section-padding-hero);
  text-align: center;
}

.hero-copy {
  max-width: 860px;
  margin: 0 auto;
}

.hero .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 840px;
  margin: 0 auto 20px;
}

.hero .hero-text {
  margin: 0 auto 32px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.trust-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-list li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3b872b;
}

/* Hero Real Example Callout */
.hero-real-example {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 90%;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}

.example-pill {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-accent);
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: 999px;
}

.highlight-stat {
  color: var(--kiwi-dark);
  font-weight: 750;
}

/* ==========================================================================
   Hero Interactive Outlier Concept Demo
   ========================================================================== */

.hero-concept-demo-wrap {
  max-width: 840px;
  margin: 0 auto 48px;
}

.hero-concept-demo {
  background: #0d1a10;
  color: #f1f5f9;
  border-radius: 16px;
  border: 1px solid rgba(203, 249, 144, 0.2);
  padding: 24px 28px;
  box-shadow: 0 18px 44px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(203, 249, 144, 0.1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-creator-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.demo-handle {
  font-weight: 700;
  color: #ffffff;
}

.demo-divider {
  color: rgba(255, 255, 255, 0.3);
}

.demo-label {
  color: #94a3b8;
  font-size: 12.5px;
}

.demo-baseline-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(203, 249, 144, 0.12);
  color: var(--brand-accent);
  border: 1px solid rgba(203, 249, 144, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.baseline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: none;
}

.demo-chart-stage {
  position: relative;
  height: 220px;
  margin: 32px 0 20px;
  padding: 0 10px;
}

.demo-median-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px dashed rgba(203, 249, 144, 0.55);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 2;
}

.median-line-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-accent);
  background: rgba(13, 26, 16, 0.95);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: -10px;
  letter-spacing: 0.02em;
}

.demo-bars-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  position: relative;
  z-index: 1;
  gap: 12px;
}

.demo-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.demo-bar {
  width: 100%;
  max-width: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  min-height: 8px;
}

.demo-bar-col:hover .demo-bar {
  background: rgba(255, 255, 255, 0.25);
}

.demo-bar.outlier-bar {
  background: linear-gradient(180deg, #cbf990 0%, #68b852 100%);
  box-shadow: none;
  max-width: 52px;
}

.demo-outlier-badge {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #cbf990;
  color: #01370b;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  transition: transform 0.3s ease;
}

.multiplier-num {
  font-family: var(--font-mono);
  font-size: 12px;
}

.multiplier-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(1, 55, 11, 0.15);
  padding: 1px 4px;
  border-radius: 3px;
}

.demo-bar-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 8px;
  font-family: var(--font-mono);
}

.demo-bar-label.highlight {
  color: #cbf990;
  font-weight: 800;
}

.demo-bar-sub {
  font-size: 10.5px;
  color: #64748b;
  font-family: var(--font-mono);
}

.demo-bar-sub.highlight {
  color: #cbf990;
  font-weight: 700;
}

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #94a3b8;
}

.demo-explainer strong {
  color: #cbf990;
}

.demo-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-replay-btn:hover {
  background: rgba(203, 249, 144, 0.15);
  color: #cbf990;
  border-color: rgba(203, 249, 144, 0.35);
}

/* ==========================================================================
   Hero Visual Stage & Video (Signature Kiwi Green Frame)
   ========================================================================== */

.hero-media-wrap {
  margin-top: 40px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Platform Selector Tabs */
.hero-platform-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(1, 55, 11, 0.05);
  padding: 5px;
  border-radius: 9999px;
  border: 1px solid rgba(1, 55, 11, 0.1);
}

.hero-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.hero-tab-btn img {
  display: inline-block;
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-tab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.hero-tab-btn.active {
  background: #ffffff;
  color: var(--brand-primary);
  border-color: rgba(1, 55, 11, 0.14);
  box-shadow: 0 2px 8px rgba(1, 55, 11, 0.08);
}

.hero-tab-btn.active img {
  opacity: 1;
  transform: scale(1.05);
}

.hero-tab-btn:focus-visible {
  outline: 2px solid var(--kiwi-dark);
  outline-offset: 2px;
}.product-visual-stage {
  padding: 24px 28px 28px;
  border-radius: 0;
  background: rgba(203, 249, 144, 0.32);
  border: 2px solid rgba(203, 249, 144, 0.7);
  box-shadow: 0 0 0 1px rgba(203, 249, 144, 0.3), 0 20px 48px -10px rgba(1, 55, 11, 0.14);
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* Stage Control Bar */
.stage-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.stage-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #01370b;
  letter-spacing: -0.01em;
}

.stage-platform-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #01370b;
  box-shadow: 0 0 0 3px rgba(1, 55, 11, 0.2);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}

.stage-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1.5px solid #01370b;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 650;
  color: #01370b;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 3px rgba(1, 55, 11, 0.08);
}

.video-ctrl-btn:hover {
  background: #01370b;
  color: #cbf990;
  border-color: #01370b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(1, 55, 11, 0.16);
}

.video-ctrl-btn:active {
  transform: translateY(0);
}

.video-ctrl-btn:focus-visible {
  outline: 2px solid var(--kiwi-dark);
  outline-offset: 1px;
}

/* Hero Videos Stack with Cross-Fade */
.hero-videos-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1256;
  border-radius: 0;
  overflow: hidden;
  background: #08130a;
  border: 1.5px solid rgba(1, 55, 11, 0.2);
  box-shadow: 0 4px 16px rgba(1, 55, 11, 0.08);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  background: #08130a;
}

.hero-video.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* ==========================================================================
   Who It's For Section
   ========================================================================== */

.who-section {
  padding: var(--section-padding);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.who-card {
  background: #ffffff;
  border: 1px solid rgba(1, 55, 11, 0.2);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.who-card:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 55, 11, 0.4);
  box-shadow: 0 8px 24px -4px rgba(1, 55, 11, 0.1);
}

.who-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--kiwi-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.who-card h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--ink);
}

.who-card p {
  font-size: 15px;
  line-height: 1.58;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Founder Story Section
   ========================================================================== */

.founder-section {
  position: relative;
  padding: var(--section-padding);
}

.founder-section .section-intro {
  position: relative;
  z-index: 1;
}

.founder-section .section-intro h2 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  max-width: 680px;
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
  margin: 8px auto 14px;
}

@property --founder-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes founder-border-spin {
  to {
    --founder-border-angle: 360deg;
  }
}

.founder-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 28px auto 0;
  border-radius: 20px;
  padding: 34px 34px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 248, 0.95) 100%) padding-box,
    conic-gradient(
      from var(--founder-border-angle),
      rgba(203, 249, 144, 0.4) 0deg,
      rgba(142, 207, 124, 0.95) 80deg,
      rgba(43, 122, 30, 0.95) 130deg,
      rgba(203, 249, 144, 0.95) 180deg,
      rgba(203, 249, 144, 0.35) 260deg,
      rgba(142, 207, 124, 0.9) 320deg,
      rgba(203, 249, 144, 0.4) 360deg
    ) border-box;
  border: 2px solid transparent;
  animation: founder-border-spin 8s linear infinite;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

.founder-card.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.founder-card:hover {
  transform: translateY(-2px);
  animation: founder-border-spin 3.5s linear infinite;
}

.founder-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.founder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--brand-accent);
  box-shadow: 0 0 0 4px rgba(203, 249, 144, 0.45), 0 8px 24px rgba(1, 55, 11, 0.18);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.founder-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(203, 249, 144, 0.65), 0 12px 28px rgba(1, 55, 11, 0.24);
}

.founder-meta {
  display: flex;
  flex-direction: column;
}

.founder-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.founder-title {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.founder-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 22px;
}

.founder-quote p:first-child {
  margin-top: 0;
  margin-bottom: 12px;
}

.founder-quote p:last-child {
  margin-bottom: 0;
}

.founder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.founder-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 24px;
  justify-content: start;
}

.founder-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--kiwi-dark);
  font-weight: 500;
  white-space: nowrap;
}

.founder-trust-item svg {
  width: 14px;
  height: 14px;
  color: #166534;
  flex-shrink: 0;
}

.founder-cta-wrap {
  flex-shrink: 0;
  margin: 0;
}

.founder-cta-wrap .button {
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 680px) {
  .founder-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .founder-trust-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .founder-cta-wrap {
    text-align: center;
  }

  .founder-cta-wrap .button {
    width: 100%;
  }
}

/* Micro-interaction Card & Button Hover */
.card-interactive:hover,
.feature-card:hover,
.showcase-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px -4px rgba(1, 55, 11, 0.08);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 55, 11, 0.18);
}

/* Nav CTA Scroll Reveal */
.nav-right .nav-cta-btn {
  opacity: 0.95;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.nav-right .nav-cta-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(1, 55, 11, 0.18);
}

.hero-platforms-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-platforms-simple .platform-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.hero-platforms-simple .platform-item img {
  display: inline-block;
}

.shot-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

/* ==========================================================================
   Sections General
   ========================================================================== */

.section {
  padding: var(--section-padding);
}

:target,
#how-it-works,
#features,
#creator-outliers,
#platforms,
#outlier-score,
#content-details,
#pricing,
#privacy,
#faq {
  scroll-margin-top: 80px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-intro h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-tight);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: 10px;
  text-wrap: balance;
}

.section-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--font-size-lead);
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
  margin-inline: auto;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.centered .eyebrow {
  justify-content: center;
}

/* ==========================================================================
   How It Works
   ========================================================================== */

.steps-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
  gap: 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  background: #ffffff;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  background: #fafdf7;
  border-left-color: #aed988;
  transform: translateX(3px);
}

.step.active {
  background: var(--kiwi-wash);
  border-color: var(--kiwi-border);
  border-left: 4px solid var(--kiwi-dark);
  box-shadow: 0 6px 20px rgba(1, 55, 11, 0.09);
  transform: translateX(6px);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.step.active .step-num {
  color: #ffffff;
  background: var(--kiwi-dark);
  border-color: var(--kiwi-dark);
}

.step h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  transition: color 0.25s ease;
}

.step.active h3 {
  color: var(--kiwi-dark);
  font-weight: 750;
}

.step p {
  margin: 8px 0 0 40px;
  font-size: 14.5px;
  line-height: 1.52;
  color: var(--muted);
  transition: color 0.25s ease;
}

.step.active p {
  color: var(--ink-secondary);
}

.step-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(1, 55, 11, 0.08);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.step-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--kiwi-dark);
  border-radius: 3px;
}

.step.active .step-progress-bar {
  animation: stepProgress 3.8s linear forwards;
}

@keyframes stepProgress {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.screenshot-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  height: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1400 / 910;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -4px rgba(1, 55, 11, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.carousel-container:hover {
  border-color: rgba(1, 55, 11, 0.22);
  box-shadow: 0 16px 40px -8px rgba(1, 55, 11, 0.14), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 450ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Workflow Video Integration */
.workflow-video-stage {
  position: relative;
  width: 100%;
}

.carousel-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.985);
  pointer-events: none;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel-video-wrap.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.workflow-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: #08130a;
}

.workflow-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 0 4px;
}

.workflow-ctrl-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.carousel-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.carousel-dot-btn {
  position: relative;
  width: 22px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(1, 55, 11, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.carousel-dot-btn::after {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -8px;
  right: -8px;
}

.carousel-dot-btn:hover {
  background: rgba(1, 55, 11, 0.4);
}

.carousel-dot-btn.active {
  background: var(--kiwi-dark);
  width: 38px;
}

/* ==========================================================================
   Features (4 Cards Only)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.feature-card > b {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.feature-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.52;
  margin: 0;
}

/* ==========================================================================
   Creator Research Stacked Deck: Instagram & YouTube Outliers
   ========================================================================== */

.deck-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  position: relative;
  width: 100%;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.stacked-deck-container {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  width: 100%;
  max-width: 580px;
  perspective: 1200px;
}

.deck-card {
  grid-area: 1 / 1;
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(1, 55, 11, 0.12);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: 0 16px 38px -8px rgba(1, 55, 11, 0.10), 0 0 0 1px rgba(1, 55, 11, 0.05);
  transform-origin: center top;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              box-shadow 0.22s ease,
              filter 0.22s ease,
              border-color 0.2s ease;
  will-change: transform, opacity;
}

/* Card Front: active, perfectly level, highest elevation & crisp focus */
.deck-card.card-front {
  position: relative;
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1);
  box-shadow: 0 20px 48px -10px rgba(1, 55, 11, 0.14), 0 0 0 1px rgba(1, 55, 11, 0.08);
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

/* Card Back: layered behind with clean top collar, zero bottom spill */
.deck-card.card-back {
  position: relative;
  z-index: 1;
  transform: translate3d(0, -14px, 0) scale(0.96);
  box-shadow: 0 6px 18px -4px rgba(1, 55, 11, 0.06);
  opacity: 0.65;
  filter: brightness(0.98);
  cursor: pointer;
  user-select: none;
}

.deck-card.card-back:hover {
  transform: translate3d(0, -18px, 0) scale(0.97);
  opacity: 0.88;
  box-shadow: 0 10px 24px -4px rgba(1, 55, 11, 0.12);
}

.deck-card.card-back * {
  pointer-events: none; /* Clicking anywhere on the back card activates it */
}

/* Active Stacking Transition Classes (GPU-accelerated, 100% glitch-free) */
.deck-card.is-stacking-top {
  z-index: 4 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
  box-shadow: 0 22px 52px -10px rgba(1, 55, 11, 0.18), 0 0 0 1px rgba(1, 55, 11, 0.08) !important;
}

.deck-card.is-stacking-under {
  z-index: 2 !important;
  transform: translate3d(0, -14px, 0) scale(0.96) !important;
  opacity: 0.65 !important;
  box-shadow: 0 6px 18px -4px rgba(1, 55, 11, 0.06) !important;
}

/* Navigation Arrow Buttons - Compact & Sleek */
.deck-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(1, 55, 11, 0.18);
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(1, 55, 11, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 10;
}

.deck-nav-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
  transform: translateY(-1px) scale(1.08);
  box-shadow: 0 6px 20px rgba(1, 55, 11, 0.15);
  color: var(--brand-primary);
}

.deck-nav-btn:active {
  transform: scale(0.94);
}

.deck-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.deck-mobile-btn {
  display: none;
}

.deck-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.deck-dot {
  width: 20px;
  height: 6px;
  border-radius: 999px;
  background: rgba(1, 55, 11, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.deck-dot:hover {
  background: rgba(1, 55, 11, 0.35);
}

.deck-dot.active {
  width: 40px;
  background: var(--brand-primary);
}

.showcase-card-header {
  margin-bottom: 12px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2.5px 8px;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--kiwi-dark);
  margin-bottom: 8px;
}

.platform-badge img {
  display: inline-block;
  object-fit: contain;
}

.showcase-card-header h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--ink);
}

.showcase-card-header p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.48;
  margin: 0;
}

.showcase-card .screenshot-container {
  margin-top: auto;
}

/* Showcase Deck Subtabs */
.deck-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  background: rgba(1, 55, 11, 0.06);
  padding: 3.5px;
  border-radius: 9999px;
  border: 1px solid rgba(1, 55, 11, 0.1);
}

.deck-subtab-btn {
  border: none;
  background: transparent;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.deck-subtab-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.deck-subtab-btn.active {
  background: #ffffff;
  color: var(--kiwi-dark);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(1, 55, 11, 0.12), 0 0 0 1px rgba(1, 55, 11, 0.05);
}

.deck-subtab-btn.deck-video-btn.active {
  color: #166534;
}

/* Showcase Media Container & Screenshot Frame */
.showcase-media-frame,
.showcase-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1040 / 860;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f8f3;
  border: 1px solid rgba(1, 55, 11, 0.10);
  box-shadow: 0 4px 16px -2px rgba(1, 55, 11, 0.06);
  margin-top: 14px;
}

.showcase-view-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.99);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

.showcase-view-panel.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.showcase-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.showcase-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
  background: #0d1117;
  cursor: pointer;
}

/* Video Play Overlay Indicator when Paused */
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(1, 55, 11, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #cbf990;
  color: #cbf990;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  pointer-events: none;
  z-index: 4;
}

.video-play-badge svg {
  margin-left: 3px;
}

.showcase-view-panel.is-paused .video-play-badge {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Metric Spotlight Pill */
.metric-spotlight-pill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 20, 16, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(82, 196, 26, 0.4);
  color: #f0fdf4;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(74, 222, 128, 0.18);
  pointer-events: none;
  z-index: 3;
}

.metric-spotlight-pill strong {
  color: #4ade80;
  font-weight: 700;
}

.spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

/* ==========================================================================
   Platforms Section (After Features)
   ========================================================================== */

.platform-section {
  background: #fafcfa;
  padding: 64px 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 800px;
  margin: 0 auto;
}

.platform-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.platform-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.platform-icon img {
  width: auto;
  max-height: 30px;
  object-fit: contain;
}

.platform-card h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.52;
  margin: 0;
}

/* ==========================================================================
   Outlier Score Section — Redesigned with Animated Histogram
   ========================================================================== */

.outlier-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-padding);
}

.outlier-copy {
  max-width: 460px;
}

.outlier-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.outlier-copy h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 14px;
}

.outlier-copy .outlier-sub {
  font-size: clamp(14.5px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 440px;
}

/* Score Card Container - Ultra-Clean High-End Analytics Surface */
.score-card {
  position: relative;
  padding: 26px 28px 24px;
  border: 1px solid rgba(1, 55, 11, 0.12);
  border-radius: 20px;
  background: radial-gradient(circle at 90% 10%, rgba(203, 249, 144, 0.22) 0%, rgba(255, 255, 255, 0) 55%), #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02),
              0 20px 48px -10px rgba(1, 55, 11, 0.08),
              0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: hidden;
}

.score-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.03),
              0 24px 54px -10px rgba(1, 55, 11, 0.12);
}

.score-chart-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  color: var(--brand-primary);
  letter-spacing: -0.01em;
}

.chart-sparkle {
  color: #10b981;
  font-size: 13px;
}

.chart-badge.outlier-detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: #f2faea;
  color: var(--brand-primary);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid rgba(94, 184, 52, 0.35);
  box-shadow: 0 1px 3px rgba(1, 55, 11, 0.05);
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Histogram Container — Modern Crisp Analytics Plot */
.histogram-wrap {
  width: 100%;
  position: relative;
  background: #fcfdfa;
  border-radius: 16px;
  border: 1px solid rgba(1, 55, 11, 0.09);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  padding: 16px 20px 16px;
  margin-bottom: 16px;
  overflow: hidden;
  z-index: 1;
}

/* Legend Bar at top of chart - Clean and minimal */
.histogram-legend-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dash {
  width: 16px;
  height: 0;
  border-top: 2px dashed rgba(46, 143, 21, 0.55);
}

.histogram-stage {
  position: relative;
  width: 100%;
}

/* Baseline 1.0x Guide (Subtle, non-overlapping dashed rule) */
.histogram-baseline-guide {
  position: absolute;
  bottom: 58px;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.baseline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1.5px dashed rgba(46, 143, 21, 0.28);
}

/* Histogram Bars Grid */
.histogram-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  height: 170px;
  position: relative;
  z-index: 2;
}

.histogram-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 54px;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  cursor: default;
}

.histogram-bar-track {
  width: 100%;
  max-width: 44px;
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.histogram-bar {
  width: 100%;
  height: 0;
  border-radius: 8px 8px 3px 3px;
  position: relative;
  transform-origin: bottom center;
  will-change: height, box-shadow;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.histogram-col:hover .histogram-bar {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

/* Multiplier Badges */
.bar-val-badge {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1e3d24;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(1, 55, 11, 0.1);
  padding: 1.5px 5.5px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}

.score-card.is-animated .bar-val-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Outlier Crown Badge */
.bar-val-badge.outlier-peak-badge {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  margin-bottom: 8px;
  background: #01370b;
  color: #cbf990;
  padding: 4px 11px;
  border-radius: 9999px;
  border: 1.5px solid #cbf990;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(1, 55, 11, 0.38);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.01em;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.score-card.is-animated .bar-val-badge.outlier-peak-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.92s;
}

.peak-icon {
  color: #cbf990;
  font-size: 11px;
}

/* Beautiful Harmonious Gradient Palette */
.histogram-col.tier-typical[data-index="0"] .histogram-bar {
  background: linear-gradient(180deg, #cdeec0 0%, #b8e7a6 100%);
  transition: height 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.histogram-col.tier-typical[data-index="1"] .histogram-bar {
  background: linear-gradient(180deg, #a7e492 0%, #8edc74 100%);
  transition: height 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.histogram-col.tier-typical[data-index="2"] .histogram-bar {
  background: linear-gradient(180deg, #7ad45b 0%, #5ec739 100%);
  transition: height 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.histogram-col.tier-strong .histogram-bar {
  background: linear-gradient(180deg, #3db41e 0%, #299313 100%);
  transition: height 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.42s;
}

.histogram-col.tier-outlier .histogram-bar {
  background: linear-gradient(180deg, #01370b 0%, #064b14 100%);
  border: 2px solid #cbf990;
  border-bottom: none;
  transition: height 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.58s,
              box-shadow 0.4s ease 1s;
}

.score-card.is-animated .histogram-col.tier-outlier .histogram-bar {
  box-shadow: 0 8px 24px rgba(1, 55, 11, 0.3);
}

/* Bar Labels */
.bar-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 10px;
  text-align: center;
  transition: color 0.2s ease;
}

.bar-label.bar-label-outlier {
  color: var(--brand-primary);
  font-weight: 800;
}

/* Performance Tiers Grid */
.score-tier-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.score-tier-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(1, 55, 11, 0.09);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.score-tier-card:hover {
  transform: translateY(-1.5px);
  background: #ffffff;
  border-color: rgba(1, 55, 11, 0.18);
  box-shadow: 0 4px 12px rgba(1, 55, 11, 0.08);
}

.score-tier-card.highlight {
  background: #fbfef7;
  border: 1.5px solid rgba(94, 184, 52, 0.4);
  box-shadow: 0 2px 6px rgba(1, 55, 11, 0.04);
}

.tier-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.tier-indicator.tier-typical {
  background: #8edc74;
}

.tier-indicator.tier-strong {
  background: #299313;
}

.tier-indicator.tier-outlier {
  background: #01370b;
  box-shadow: none;
  border: 1.5px solid #cbf990;
}

.tier-details {
  flex: 1;
  min-width: 0;
}

.tier-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.tier-title {
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
}

.tier-score {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tier-desc {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .histogram-bar {
    transition: none !important;
  }
  .bar-val-badge,
  .bar-val-badge.outlier-peak-badge {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .badge-pulse-dot {
    animation: none !important;
  }
}

/* ==========================================================================
   Content Details Showcase (Custom Filter)
   ========================================================================== */

.content-details-section {
  padding: var(--section-padding);
}

.content-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.filter-modal-interactive {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  background: #0d1710;
  border: 1px solid rgba(203, 249, 144, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 56px -12px rgba(1, 55, 11, 0.35), 0 0 0 1px rgba(203, 249, 144, 0.12);
  padding: 22px 22px 18px 22px;
  box-sizing: border-box;
  position: relative;
  font-family: var(--font-body);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.filter-modal-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 64px -12px rgba(1, 55, 11, 0.42), 0 0 0 1px rgba(203, 249, 144, 0.28);
}

/* Header */
.filter-panel-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-bottom: 2px;
}

.filter-panel-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  user-select: none;
}

.filter-panel-close {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  color: #8da388;
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.filter-panel-close:hover {
  color: #cbf990;
  background: rgba(203, 249, 144, 0.12);
}

.filter-panel-close:active {
  transform: translateY(-50%) scale(0.92);
}

/* Dismissed / Closed Notice */
.filter-panel-dismissed {
  text-align: center;
  padding: 42px 16px;
}

.filter-dismissed-text {
  color: #8da388;
  font-size: 14.5px;
  margin: 0 0 16px 0;
}

.filter-reopen-btn {
  background: #cbf990;
  color: #062b0c;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter-reopen-btn:hover {
  background: #bbf07b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* Eyebrow / Section Subheading */
.filter-metric-heading {
  color: #8da388;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin-top: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  user-select: none;
}

/* Metric Pill Buttons */
.filter-metrics-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-metric-btn {
  background: #142217;
  border: 1px solid #233a27;
  color: #c4d6c0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  user-select: none;
  outline: none;
}

.filter-metric-btn svg {
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke 0.2s;
}

.filter-metric-btn:hover:not(.is-active) {
  background: #1b2e1f;
  border-color: rgba(203, 249, 144, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.filter-metric-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(203, 249, 144, 0.4);
}

.filter-metric-btn.is-active {
  background: #cbf990;
  border-color: #cbf990;
  color: #062b0c;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter-metric-btn.is-active svg {
  stroke: #062b0c;
}

/* Histogram */
.filter-histogram-wrap {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 2px;
}

.filter-histogram-bars {
  height: 60px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.filter-hist-bar {
  flex: 1;
  min-width: 0;
  background: var(--brand-accent);
  border-radius: 3px 3px 0 0;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
  will-change: height, background-color, opacity;
}

.filter-hist-bar.is-dimmed {
  background: rgba(203, 249, 144, 0.18);
  opacity: 0.35;
}

/* Dual Range Slider - Rank Kiwi Branded & Mobile Optimized */
.filter-slider-container {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
  margin: 0 14px 16px 14px;
  touch-action: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.filter-slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  background: #18281b;
  border-radius: 2px;
  pointer-events: none;
  border: 1px solid rgba(203, 249, 144, 0.08);
}

.filter-slider-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: var(--brand-accent);
  border-radius: 2px;
  pointer-events: none;
  left: 0;
  width: 100%;
  box-shadow: none;
}

/* Rank Kiwi Branded Circular Thumbs on Both Endpoints */
.filter-slider-thumb {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbf990; /* Rank Kiwi Lime */
  border: 3px solid #01370b; /* Deep Kiwi Forest Green */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 10;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, background-color 0.15s ease;
  outline: none;
  display: block !important;
}

/* Default Endpoint Positions (0% min, 100% max) */
.filter-thumb-min {
  left: 0%;
}

.filter-thumb-max {
  left: 100%;
}

/* Precision Center Dot inside each circle */
.filter-slider-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #01370b;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* 44x44px Touch Target for Mobile Phones */
.filter-slider-thumb::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
}

.filter-slider-thumb:hover,
.filter-slider-thumb:focus-visible,
.filter-slider-thumb.is-active {
  transform: translate(-50%, -50%) scale(1.15);
  background: #e2fcc0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.filter-slider-thumb.is-dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.22);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
  z-index: 25;
}

/* Fallback / Screen-reader inputs */
.filter-slider-input.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Numeric Inputs Row */
.filter-inputs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-input-col {
  display: flex;
  flex-direction: column;
}

.filter-input-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #8da388;
  margin-bottom: 6px;
  user-select: none;
}

.filter-inputs-divider {
  color: #4b664d;
  font-size: 16px;
  font-weight: 700;
  align-self: center;
  margin-top: 18px;
  line-height: 1;
  user-select: none;
}

.filter-num-input {
  width: 100%;
  background: #081109;
  border: 1px solid #203523;
  border-radius: 8px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 9px 12px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filter-num-input:focus {
  outline: none;
  border-color: #cbf990;
  background: #0b180d;
  box-shadow: 0 0 0 2px rgba(203, 249, 144, 0.2);
}

/* Footer */
.filter-panel-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 -22px -2px -22px;
  padding: 16px 22px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-clear-btn {
  background: transparent;
  border: none;
  padding: 6px 0;
  color: #8da388;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.filter-clear-btn:hover {
  color: #cbf990;
}

.filter-submit-btn {
  background: #cbf990;
  color: #062b0c;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
  font-family: var(--font-body);
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  user-select: none;
}

.filter-submit-btn:hover {
  background: #bbf07b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.filter-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.filter-submit-btn.is-applied {
  background: #d8fba4;
}

@media (max-width: 640px) {
  .content-details-section {
    padding: 24px 0 32px;
  }

  .content-details-layout {
    gap: 24px;
  }

  .filter-modal-interactive {
    max-width: 100%;
    padding: 14px 14px 10px 14px;
    border-radius: 14px;
  }

  .filter-panel-header {
    min-height: 22px;
    margin-bottom: 0;
  }

  .filter-panel-title {
    font-size: 13.5px;
  }

  .filter-panel-close {
    padding: 4px;
  }

  .filter-panel-close svg {
    width: 13px;
    height: 13px;
  }

  .filter-metric-heading {
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .filter-metrics-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 12px;
  }

  .filter-metric-btn {
    padding: 6px 2px;
    font-size: 10.5px;
    border-radius: 6px;
    gap: 3.5px;
    justify-content: center;
    white-space: nowrap;
  }

  .filter-metric-btn svg {
    width: 11.5px;
    height: 11.5px;
  }

  .filter-histogram-wrap {
    padding: 0 8px;
    margin-bottom: 0;
  }

  .filter-histogram-bars {
    height: 42px;
    gap: 2.5px;
  }

  .filter-hist-bar {
    border-radius: 2px 2px 0 0;
  }

  .filter-slider-container {
    height: 28px;
    margin: 0 8px 10px 8px;
  }

  .filter-slider-thumb {
    width: 20px;
    height: 20px;
    border-width: 2.5px;
  }

  .filter-slider-thumb::after {
    width: 5px;
    height: 5px;
  }

  .filter-inputs-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .filter-input-label {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .filter-num-input {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 6px;
  }

  .filter-inputs-divider {
    font-size: 13px;
    margin-top: 14px;
  }

  .filter-panel-footer {
    margin: 0 -14px -2px -14px;
    padding: 10px 14px 0 14px;
    gap: 12px;
  }

  .filter-clear-btn {
    font-size: 11.5px;
    padding: 4px 0;
  }

  .filter-submit-btn {
    font-size: 11.5px;
    padding: 7px 14px;
    border-radius: 6px;
  }
}

@media (max-width: 350px) {
  .filter-metrics-group {
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
  }

  .filter-metric-btn {
    padding: 6px 8px;
    font-size: 11px;
  }
}


.content-details-copy h2 {
  font-size: var(--font-size-h1);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 14px;
}

.content-details-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Pricing Section (Symmetrical, Clean & Light)
   ========================================================================== */

.pricing-section {
  padding: 64px 0;
  text-align: center;
}

.pricing-intro {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 30px;
}

.pricing-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.pricing-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px 26px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e3e8e0;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(1, 55, 11, 0.04);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  color: var(--kiwi-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 8px 0 20px;
}

.pricing-price .amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.pricing-price .period {
  font-size: 13px;
  color: var(--muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink);
}

.pricing-features li svg {
  width: 15px;
  height: 15px;
  color: var(--kiwi-dark);
  background: var(--kiwi-green);
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   Privacy Section
   ========================================================================== */

.privacy-section {
  padding: 72px 0;
  background: #ffffff;
}

.privacy-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.privacy-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.privacy-card h3 {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.privacy-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.privacy-action {
  margin-top: 8px;
}

/* ==========================================================================
   FAQ Section (Accordion, 1-3 sentences)
   ========================================================================== */

.faq-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 64px;
  padding: var(--section-padding);
}

.faq-intro h2 {
  font-size: var(--font-size-h1);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: 12px;
}

.faq-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  margin-top: 8px;
}

.accordion {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 18px 0;
  font-size: 16.5px;
  font-weight: 600;
  list-style: none;
  color: var(--ink);
  transition: color 0.15s;
}

summary:hover {
  color: var(--green);
}

summary::-webkit-details-marker {
  display: none;
}

summary span {
  color: var(--green);
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] summary span {
  transform: rotate(45deg);
}

details p {
  margin: 0;
  padding: 0 28px 18px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 72px auto 80px;
  padding: 56px 36px;
  max-width: 820px;
  border: 1.5px solid rgba(203, 249, 144, 0.35);
  border-radius: 16px;
  background: #01370b;
  color: #ffffff;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.32);
  position: relative;
  overflow: hidden;
}

.final-cta .brand-logo.large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  border: 2px solid #cbf990;
  background: #ffffff;
}

.final-cta h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 12px;
  color: #ffffff !important;
  max-width: 580px;
  line-height: var(--line-tight);
}

.final-cta > p:not(.eyebrow) {
  color: #cbf990 !important;
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 26px;
  line-height: 1.55;
}

.final-cta .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* ==========================================================================
   Footer (Standardized 4-Column Balanced Architecture)
   ========================================================================== */

.site-footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(130px, 1fr));
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.footer-brand-col .brand {
  margin-bottom: 14px;
}

.footer-brand-col .brand span {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-col p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--wash);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}

.social-icon-link:hover {
  background: var(--kiwi-green);
  border-color: var(--kiwi-border);
  color: var(--kiwi-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(85, 165, 30, 0.2);
}

.social-icon-link svg {
  width: 16px;
  height: 16px;
}

.footer-grid > div:not(.footer-brand-col) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer-grid > div > b {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
}

.footer-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-grid a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-heart {
  color: #ef4444;
  display: inline-block;
  margin: 0 2px;
  will-change: transform;
  animation: pulse-heart 1.5s infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.author-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.author-link:hover {
  color: #01370b;
  background: var(--kiwi-green);
  text-decoration-color: #01370b;
  box-shadow: none;
  border-radius: 4px;
}

/* ==========================================================================
   Documentation Styles (/docs/)
   ========================================================================== */

.docs-wrapper {
  padding: clamp(24px, 3.5vw, 44px) 0 72px;
}

.docs-header-bar {
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(1, 55, 11, 0.08);
  margin-bottom: 32px;
}

.docs-header-bar h1 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: var(--line-tight);
  margin-bottom: 8px;
}

.docs-header-bar p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
}

.docs-container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 36px;
  align-items: start;
}

.docs-container.docs-home-container {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}

/* Documentation Mobile Components (Hidden by default on Desktop) */
.docs-mobile-bar {
  display: none !important;
}

.docs-drawer-header,
.docs-mobile-close,
.docs-drawer-close {
  display: none !important;
}

.docs-mobile-backdrop {
  display: none !important;
}

/* 1. Left Sidebar Navigation (Smooth, Modern & Refined) */
.docs-sidebar {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 16px;
  border-right: 1px solid rgba(1, 55, 11, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: rgba(1, 55, 11, 0.12);
  border-radius: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(1, 55, 11, 0.22);
}

.docs-nav-group {
  margin-bottom: 2px;
}

.docs-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.docs-nav-header:hover {
  color: var(--kiwi-dark);
  background: rgba(1, 55, 11, 0.04);
}

.docs-nav-chevron {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.18s ease;
  color: #94a3b8;
  flex-shrink: 0;
  display: block;
}

.docs-nav-group.is-open .docs-nav-chevron {
  transform: rotate(90deg);
  color: var(--kiwi-dark);
}

.docs-nav-list {
  list-style: none;
  margin: 3px 0 6px 8px;
  padding: 0 0 0 10px;
  border-left: 2px solid rgba(1, 55, 11, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, transform 0.22s ease;
}

.docs-nav-group.is-open .docs-nav-list {
  max-height: 480px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 6px;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
  box-shadow: none !important;
}

.docs-nav-link:hover {
  color: var(--kiwi-dark) !important;
  background: #f4f9f0 !important;
  transform: translateX(3px);
  text-decoration: none !important;
  box-shadow: none !important;
}

.docs-nav-link.active {
  color: var(--kiwi-dark) !important;
  background: #eaf6df !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #2b7a1e, 0 1px 3px rgba(1, 55, 11, 0.04) !important;
  border-radius: 8px;
  text-decoration: none !important;
}

.docs-badge-new {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #cbf990;
  color: #01370b;
  border: 1px solid rgba(1, 55, 11, 0.18);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.docs-sidebar-footer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(1, 55, 11, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-sidebar-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none !important;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s, transform 0.15s;
  box-shadow: none !important;
}

.docs-sidebar-footer a:hover {
  color: var(--kiwi-dark) !important;
  background: #f4f9f0 !important;
  transform: translateX(2px);
  text-decoration: none !important;
}

/* 2. Main Article Area (Optimal Reading Hierarchy) */
.docs-content {
  min-width: 0;
  max-width: 780px;
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 14px;
  font-weight: 500;
}

.docs-breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.docs-breadcrumbs a:hover {
  color: var(--kiwi-dark);
}

.docs-breadcrumbs span {
  opacity: 0.45;
}

.docs-article,
.docs-section {
  padding-bottom: 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(1, 55, 11, 0.08);
  scroll-margin-top: 96px;
}

.docs-article:last-child,
.docs-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.docs-article-header h1 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 750;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}

.docs-article h2,
.docs-section h2 {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(1, 55, 11, 0.08);
  scroll-margin-top: 96px;
}

.docs-lead {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: 400;
}

.docs-article h3,
.docs-section h3 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.35;
  margin: 24px 0 8px;
  color: var(--ink);
}

.docs-article p,
.docs-section p {
  color: #334155;
  font-size: 14.5px;
  line-height: 1.68;
  margin-bottom: 16px;
}

.docs-article ul,
.docs-article ol,
.docs-section ul,
.docs-section ol {
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  padding-left: 20px;
  margin: 0 0 18px;
}

.docs-article li,
.docs-section li {
  margin-bottom: 6px;
}

.docs-article strong,
.docs-section strong {
  color: var(--ink);
  font-weight: 600;
}

.docs-article kbd,
.docs-section kbd {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  vertical-align: middle;
}

.docs-article code:not(pre code),
.docs-section code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: rgba(1, 55, 11, 0.06);
  color: #01370b;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(1, 55, 11, 0.08);
}

.docs-callout,
.callout {
  padding: 16px 20px;
  border-radius: 10px;
  background: #f6fcf2;
  border: 1px solid #d2f2b2;
  border-left: 4px solid #2b7a1e;
  margin: 20px 0;
}

.callout-warning {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
}

.callout-tip {
  background: #f6fcf2;
  border: 1px solid #d2f2b2;
  border-left: 4px solid #2b7a1e;
}

.docs-callout p,
.callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
}

.code-block,
pre.code-block {
  margin: 20px 0;
  background: #091a0c;
  color: #dcf5cb;
  border: 1px solid rgba(203, 249, 144, 0.22);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--font-mono, 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace);
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.code-block code,
pre.code-block code {
  color: inherit !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: inherit !important;
}

.table-wrap,
.table-responsive {
  margin: 20px 0 24px;
  border: 1px solid rgba(1, 55, 11, 0.12);
  border-radius: 10px;
  overflow-x: auto;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.data-table,
.reference-table,
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.data-table th,
.reference-table th,
.docs-table th {
  background: #f4fbf0;
  color: #01370b;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(1, 55, 11, 0.12);
  white-space: nowrap;
}

.data-table td,
.reference-table td,
.docs-table td {
  padding: 11px 16px;
  color: #334155;
  border-bottom: 1px solid rgba(1, 55, 11, 0.06);
  line-height: 1.5;
}

.data-table tr:last-child td,
.reference-table tr:last-child td,
.docs-table tr:last-child td {
  border-bottom: 0;
}

.data-table tr:hover td,
.reference-table tr:hover td,
.docs-table tr:hover td {
  background: #fafdf7;
}

.annotated-shot-wrap {
  margin: 24px 0;
  border: 1px solid rgba(1, 55, 11, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 4px 16px rgba(1, 55, 11, 0.04);
}

.annotated-shot-img {
  width: 100%;
  height: auto;
  display: block;
}

.annotated-shot-wrap figcaption {
  padding: 10px 16px;
  font-size: 12.5px;
  color: #64748b;
  background: #ffffff;
  border-top: 1px solid rgba(1, 55, 11, 0.08);
  font-style: italic;
  text-align: center;
}

/* 3. Right-Side Table of Contents (Contextual Heading Jump) */
.docs-toc {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-left: 16px;
  border-left: 1px solid rgba(1, 55, 11, 0.08);
}

.docs-toc::-webkit-scrollbar {
  width: 3px;
}

.docs-toc::-webkit-scrollbar-thumb {
  background: rgba(1, 55, 11, 0.14);
  border-radius: 3px;
}

.docs-toc-title {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--kiwi-dark);
  margin: 0 0 10px;
  opacity: 0.85;
}

.docs-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 1.5px solid rgba(1, 55, 11, 0.08);
  margin-left: -1px;
}

.docs-toc-link {
  font-size: 12.5px;
  color: #64748b;
  text-decoration: none !important;
  line-height: 1.45;
  padding: 4px 0 4px 10px;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  box-shadow: none !important;
}

.docs-toc-link:hover {
  color: var(--kiwi-dark) !important;
  text-decoration: none !important;
  transform: translateX(2px);
  box-shadow: none !important;
  background: transparent !important;
}

.docs-toc-link.active {
  color: var(--kiwi-dark) !important;
  font-weight: 600 !important;
  border-left-color: #2b7a1e !important;
  transform: translateX(2px);
  text-decoration: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.docs-section {
  scroll-margin-top: 100px;
}

/* Comparison Grid & Info Cards */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}

.info-card {
  background: #ffffff;
  border: 1px solid rgba(1, 55, 11, 0.1);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 55, 11, 0.25);
  box-shadow: 0 8px 24px rgba(1, 55, 11, 0.06);
}

.info-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--kiwi-dark);
}

.info-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.callout-important {
  background: #fffdf5;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
}

/* 4. Docs Home Section & Card Grid (World-Class SaaS Portal) */
.docs-home-section {
  margin-bottom: 40px;
}

.docs-home-section-title {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 16px;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.docs-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
}

.docs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 55, 11, 0.28);
  box-shadow: 0 8px 24px -4px rgba(1, 55, 11, 0.08);
}

.docs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.docs-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.docs-card-arrow {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.docs-card:hover .docs-card-arrow {
  color: var(--kiwi-dark);
  transform: translateX(3px);
}

.docs-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.docs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 20px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.docs-table th,
.docs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.docs-table th {
  background: #f4fbf0;
  color: #01370b;
  font-weight: 700;
}

.docs-table td {
  color: #475569;
}

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

.docs-table tr:nth-child(even) td {
  background: #fafcf8;
}

/* Documentation Search Bar */
.docs-search {
  position: relative;
  margin: 0 0 32px 0;
  max-width: 680px;
}

.docs-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.docs-search-input-wrap svg {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.docs-search-kbd {
  position: absolute;
  right: 14px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  pointer-events: none;
}

.docs-search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 40px;
  background: var(--paper);
  border: 1px solid rgba(1, 55, 11, 0.16);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.18s ease;
}

.docs-search-input:focus {
  outline: none;
  border-color: var(--kiwi-dark);
  box-shadow: 0 0 0 3px rgba(1, 55, 11, 0.12);
}

.docs-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 120;
  display: none;
}

.docs-search-results.is-open {
  display: block;
}

.docs-search-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--wash);
  transition: background 0.15s ease;
}

.docs-search-item:last-child {
  border-bottom: 0;
}

.docs-search-item:hover,
.docs-search-item:focus {
  background: var(--kiwi-wash);
}

.docs-search-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.docs-search-item-title {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
}

.docs-search-item-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kiwi-dark);
  background: var(--kiwi-wash);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--kiwi-border);
}

.docs-search-item-desc {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: var(--line-normal);
  margin: 0;
}

.docs-search-empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Category Grid on Docs Home */
.docs-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0;
}

.docs-category-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
}

.docs-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.docs-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kiwi-dark);
  margin-bottom: 14px;
}

.docs-cat-icon svg {
  width: 20px;
  height: 20px;
}

.docs-category-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.docs-category-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.docs-cat-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--wash);
  padding-top: 12px;
}

.docs-cat-links a {
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}

.docs-cat-links a:hover {
  color: var(--green);
}

.docs-cat-links a::after {
  content: "→";
  font-size: 13px;
  opacity: 0.7;
}

/* Quick Start Banner */
.quickstart-box {
  background: linear-gradient(135deg, #ffffff 0%, var(--kiwi-wash) 100%);
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: var(--space-6) 0 var(--space-8);
  box-shadow: 0 4px 18px rgba(1, 55, 11, 0.06);
}

.quickstart-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.quickstart-step {
  background: var(--paper);
  border: 1px solid rgba(1, 55, 11, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}

.quickstart-step strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--kiwi-dark);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

/* Table of Contents */
.table-of-contents {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0 32px;
}

.toc-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.15s;
}

.toc-list a:hover {
  color: var(--green);
}

/* ==========================================================================
   Documentation Prev / Next Navigation Buttons
   ========================================================================== */

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.docs-page-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04), 0 4px 12px -2px rgba(17, 24, 39, 0.02);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.docs-page-nav:only-child {
  grid-column: 1 / -1;
  max-width: 360px;
}

.docs-page-next:only-child {
  margin-left: auto;
}

.docs-page-nav:hover {
  background: #fafef5;
  border-color: rgba(94, 184, 52, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(85, 165, 30, 0.16), 0 2px 6px rgba(17, 24, 39, 0.04);
}

.docs-page-nav span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
  transition: color 0.18s ease;
}

.docs-page-nav:hover span {
  color: var(--kiwi-dark);
}

.docs-page-nav b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.18s ease;
}

.docs-page-nav b a,
.docs-page-nav a {
  color: inherit;
  text-decoration: none;
}

/* Stretched clickable overlay so the full card responds to clicks */
.docs-page-nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.docs-page-nav:hover b,
.docs-page-nav:hover b a {
  color: var(--kiwi-dark);
}

.docs-page-next {
  align-items: flex-end;
  text-align: right;
  margin-left: 0;
}

@media (max-width: 640px) {
  .docs-pagination {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .docs-page-next {
    align-items: flex-start;
    text-align: left;
  }
}

/* Decision Tree for Troubleshooting */
.decision-tree {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tree-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 18px 22px;
}

.tree-question {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.tree-question-badge {
  background: var(--kiwi-dark);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.tree-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tree-branch {
  border: 1px solid var(--wash);
  background: var(--wash);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
}

.tree-branch strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.tree-branch.branch-no strong {
  color: #b91c1c;
}

.tree-branch.branch-yes strong {
  color: #15803d;
}

/* Annotated Screenshot & Legend */
.annotated-shot-wrap {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.annotated-shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}

figure {
  margin: 0;
  display: block;
}

figcaption {
  padding: 12px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, var(--ink-secondary));
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.shot-legend {
  padding: 18px 22px;
  background: var(--wash);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.legend-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--kiwi-dark);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Troubleshooting Diagnostics & Flowchart */
.tree-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: 18px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.tree-badge {
  background: var(--kiwi-dark);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tree-content {
  flex: 1;
}

.tree-content strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.tree-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tree-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.tree-btn.tree-yes {
  background: var(--kiwi-wash);
  color: var(--kiwi-dark);
  border: 1px solid var(--kiwi-border);
}

.tree-btn.tree-yes:hover {
  background: var(--kiwi-green);
  border-color: var(--kiwi-dark);
  transform: translateY(-1px);
}

.tree-btn.tree-no {
  background: var(--color-error-bg);
  color: var(--color-error);
  border: 1px solid var(--color-error-border);
}

.tree-btn.tree-no:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

.tree-btn.tree-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning-border);
}

.tree-btn.tree-warning:hover {
  background: #fef3c7;
  transform: translateY(-1px);
}

.table-of-contents {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 28px 0 36px;
}

.table-of-contents h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
}

.table-of-contents a {
  color: var(--kiwi-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.troubleshoot-article {
  padding-bottom: 48px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 84px;
}

.troubleshoot-article h2 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}

.troubleshoot-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.fix-box {
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-left: 4px solid var(--kiwi-dark);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
}

.fix-box h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--kiwi-dark);
}

.fix-box ol,
.fix-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
}

.support-escalation {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 16px 0;
}

.support-escalation a {
  color: var(--kiwi-dark);
  font-weight: 700;
}

.checklist-card {
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
}

.checklist-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--kiwi-dark);
  font-size: 16px;
}

.checklist-items {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.6;
}

.checklist-items li {
  margin-bottom: 6px;
}

.checklist-note {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 20px;
}

.checklist-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.answer-first-callout {
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-left: 4px solid var(--kiwi-dark);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 14px;
  line-height: var(--line-normal);
  color: var(--ink);
  margin: 20px 0 28px;
}

.related-links {
  font-size: 12.5px;
  color: var(--caption);
  margin-top: 12px;
}

.related-links a {
  color: var(--kiwi-dark);
  font-weight: 600;
}

/* ==========================================================================
   Legal & Support Pages
   ========================================================================== */

.legal-page,
.support-page {
  max-width: 820px;
  padding: 56px 0 80px;
}

.legal-page h1,
.support-page h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  margin-bottom: 10px;
}

.legal-lead {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.updated {
  color: #8b938a;
  font-size: 12.5px;
  margin: 0 0 32px;
}

.legal-content section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.legal-content section:first-child {
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  font-size: clamp(17px, 2vw, 21px);
  margin-bottom: 8px;
}

.legal-content p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-box {
  padding: 24px 28px;
  border: 1px solid var(--kiwi-border);
  border-radius: 14px;
  background: var(--kiwi-wash);
  margin: 20px 0 28px;
  max-width: 760px;
}

.support-box h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.support-box p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 16px;
}

.support-email-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--kiwi-border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--kiwi-dark);
  margin-top: 4px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.support-email-pill:hover {
  background: var(--kiwi-green);
  color: var(--kiwi-dark);
  transform: translateY(-1px);
}

.support-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin-top: 18px;
  max-width: 760px;
}

@media (max-width: 600px) {
  .support-social-grid {
    grid-template-columns: 1fr;
  }
}

.support-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.15s ease;
  text-decoration: none;
}

.support-social-card:hover {
  border-color: var(--kiwi-border);
  background: var(--kiwi-wash);
  color: var(--kiwi-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(85, 165, 30, 0.1);
}

.support-social-card svg {
  width: 18px;
  height: 18px;
  color: var(--kiwi-dark);
  flex-shrink: 0;
}

.support-social-card svg {
  width: 20px;
  height: 20px;
  color: var(--kiwi-dark);
  flex-shrink: 0;
}

/* ==========================================================================
   Reusable Template Components (Phase 1 Foundation)
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 var(--space-6);
  font-size: var(--text-sm);
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line-strong);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--green);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Global Card System (Section 19-20 Standard)
   ========================================================================== */

.card, .card-default {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.card-muted {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card-brand {
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card-highlight {
  background: var(--kiwi-dark);
  color: #ffffff;
  border: 1px solid rgba(203, 249, 144, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-8);
}

/* ==========================================================================
   Unified Brand Green CTA Banners (.cta-box, .cta-banner, .final-cta)
   Standardized across all pages: Deep forest green container (#01370b),
   clean crisp border, white punchy heading, kiwi lime supporting copy,
   and permanently branded kiwi lime CTA buttons (#cbf990) with dark green
   text (#01370b) — crisp modern SaaS aesthetic with NO fuzzy glow.
   ========================================================================== */

.cta-box,
.cta-banner,
.final-cta {
  background: #01370b !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(203, 249, 144, 0.35) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.32) !important;
  text-align: center !important;
  padding: 48px 36px !important;
  position: relative !important;
  overflow: hidden !important;
}

.cta-box h2,
.cta-banner h2,
.final-cta h2 {
  color: #ffffff !important;
  font-size: clamp(22px, 2.5vw, 28px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.22 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  max-width: 640px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cta-box p,
.cta-banner p,
.final-cta > p:not(.eyebrow) {
  color: #cbf990 !important;
  font-size: 15px !important;
  max-width: 580px !important;
  margin: 0 auto 26px auto !important;
  line-height: 1.55 !important;
}

.final-cta small {
  color: rgba(203, 249, 144, 0.75) !important;
  font-size: 12.5px !important;
  margin-top: 20px !important;
  display: block !important;
  letter-spacing: 0.02em !important;
}

/* Primary CTA Button: Only light green (#cbf990), dark green text (#01370b). Clean elevation, NO glow! */
.cta-box a.button,
.cta-box a.button-primary,
.cta-banner a.button-primary,
.cta-banner a.button:not(.button-outline):not(.button-quiet),
.final-cta a.button:not(.button-outline):not(.button-quiet),
.final-cta .hero-actions a.button {
  background: #cbf990 !important;
  color: #01370b !important;
  border: 1.5px solid #cbf990 !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  padding: 13px 28px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

.cta-box a.button:hover,
.cta-box a.button-primary:hover,
.cta-banner a.button-primary:hover,
.cta-banner a.button:not(.button-outline):not(.button-quiet):hover,
.final-cta a.button:not(.button-outline):not(.button-quiet):hover,
.final-cta .hero-actions a.button:hover,
.cta-box a.button:focus-visible,
.cta-box a.button-primary:focus-visible,
.cta-banner a.button-primary:focus-visible,
.cta-banner a.button:not(.button-outline):not(.button-quiet):focus-visible,
.final-cta a.button:not(.button-outline):not(.button-quiet):focus-visible,
.final-cta .hero-actions a.button:focus-visible {
  background: #cbf990 !important;
  color: #01370b !important;
  border-color: #e2fdbe !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24) !important;
  outline: none !important;
}

.cta-box a.button:active,
.cta-box a.button-primary:active,
.cta-banner a.button:active,
.final-cta a.button:active {
  transform: translateY(0) scale(0.99) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
}

/* Microcopy ("It's free") inside Buttons */
.cta-box a.button span,
.cta-box a.button .btn-microcopy,
.cta-banner a.button span,
.cta-banner a.button .btn-microcopy,
.final-cta a.button span,
.final-cta a.button .btn-microcopy {
  color: rgba(1, 55, 11, 0.82) !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  margin-left: 8px !important;
  transition: color 0.18s ease !important;
}

.cta-box a.button:hover span,
.cta-box a.button:hover .btn-microcopy,
.cta-banner a.button:hover span,
.cta-banner a.button:hover .btn-microcopy,
.final-cta a.button:hover span,
.final-cta a.button:hover .btn-microcopy {
  color: #01370b !important;
}

/* Secondary / Outline CTA Buttons (Alternatives, Compare pages) */
.cta-banner a.button-outline,
.cta-banner a.button-quiet,
.final-cta a.button-outline,
.final-cta a.button-quiet {
  background: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(203, 249, 144, 0.45) !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  padding: 13px 24px !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cta-banner a.button-outline:hover,
.cta-banner a.button-quiet:hover,
.final-cta a.button-outline:hover,
.final-cta a.button-quiet:hover {
  background: rgba(203, 249, 144, 0.14) !important;
  border-color: #cbf990 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-2px) !important;
}

@media (max-width: 640px) {
  .cta-box,
  .cta-banner,
  .final-cta {
    padding: 36px 20px !important;
    border-radius: 14px !important;
  }

  .cta-box h2,
  .cta-banner h2,
  .final-cta h2 {
    font-size: 21px !important;
    margin-bottom: 10px !important;
  }

  .cta-box p,
  .cta-banner p,
  .final-cta > p:not(.eyebrow) {
    font-size: 14px !important;
    margin-bottom: 22px !important;
  }

  .cta-box a.button,
  .cta-banner a.button,
  .final-cta a.button {
    width: 100% !important;
    max-width: 320px !important;
    font-size: 14.5px !important;
    padding: 12px 20px !important;
  }
}

.card-interactive {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

/* Card Grids for Articles, Research & Comparisons */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.article-card,
.research-card,
.comparison-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.article-card:hover,
.research-card:hover,
.comparison-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--kiwi-dark);
  margin-bottom: var(--space-3);
  align-self: flex-start;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.card-desc {
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  color: var(--muted);
  margin: 0 0 var(--space-4);
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--muted);
  border-top: 1px solid var(--wash);
  padding-top: var(--space-3);
  margin-top: auto;
}

/* Callouts & Alert Boxes */
.callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--wash);
  border-left: 4px solid var(--green);
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
  line-height: var(--line-normal);
}

.callout p {
  margin: 0;
  color: var(--ink-secondary);
}

.callout-tip {
  background: var(--kiwi-wash);
  border-left-color: var(--kiwi-dark);
}

.callout-warning {
  background: var(--color-warning-bg);
  border-left-color: var(--color-warning-text);
}

.callout-warning p {
  color: var(--color-warning-text);
}

.callout-danger,
.callout-error {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-left: 4px solid var(--color-error-text);
}

.callout-danger p,
.callout-error p {
  color: var(--color-error-text);
}

.callout-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  border-left: 4px solid var(--color-success-text);
}

.callout-success p {
  color: var(--color-success-text);
}

/* Code Blocks & Inline Code */
.code-block {
  margin: var(--space-4) 0;
  background: var(--ink);
  color: #f9fafb;
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.code-block code {
  color: inherit;
  background: transparent;
  padding: 0;
  border: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--wash);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--ink);
}

/* Data & Comparison Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: var(--space-6) 0;
  border: var(--border);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: var(--wash);
  font-weight: 700;
  color: var(--ink);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td {
  color: var(--muted);
}

.data-table tr:hover td {
  background: #fafdf7;
}

/* Troubleshooting Blocks */
.troubleshoot-block {
  padding: var(--space-6);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: var(--space-6);
}

.troubleshoot-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.troubleshoot-tag {
  display: inline-flex;
  padding: 2px 8px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.troubleshoot-section {
  margin-top: var(--space-4);
}

.troubleshoot-section h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.troubleshoot-fix-list {
  padding-left: var(--space-5);
  margin: var(--space-2) 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: var(--line-normal);
}

.troubleshoot-fix-list li {
  margin-bottom: var(--space-2);
}

/* Author & Meta Blocks */
.author-block {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: var(--border);
  border-bottom: var(--border);
  margin: var(--space-6) 0;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--kiwi-border);
}

.author-info h4 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
}

.author-info p {
  margin: 2px 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Related Content Section */
.related-content {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.related-card {
  display: block;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--wash);
  transition: all 0.18s ease;
}

.related-card:hover {
  background: var(--kiwi-wash);
  border-color: var(--kiwi-border);
  transform: translateY(-2px);
}

.related-card h4 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.related-card p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: var(--line-normal);
}

/* Error / Empty / 404 State */
.state-box {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  max-width: 620px;
  margin: 0 auto;
}

.state-code {
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--kiwi-dark);
  margin-bottom: var(--space-4);
}

.state-box h1 {
  margin-bottom: var(--space-3);
}

.state-box p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  margin-bottom: var(--space-6);
}

.state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Animations & Transitions
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 960px) {
  .steps-layout,
  .dual-showcase-grid,
  .content-details-layout,
  .outlier-section,
  .faq-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .steps {
    height: auto;
  }

  .step {
    flex: initial;
    padding: 16px 20px;
  }

  .screenshot-container {
    height: auto;
  }

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

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .docs-container,
  .docs-container.docs-home-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .docs-wrapper {
    padding-top: 16px;
  }

  .docs-toc {
    display: none !important;
  }

  /* Prevent duplicate breadcrumbs on mobile */
  .docs-content > .docs-breadcrumbs {
    display: none !important;
  }

  /* Mobile Navigation Bar */
  .docs-mobile-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 8px 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(1, 55, 11, 0.12);
    border-radius: 14px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px -2px rgba(1, 55, 11, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .docs-mobile-bar .docs-breadcrumbs {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    padding-right: 4px;
  }

  .docs-mobile-bar .docs-breadcrumbs a {
    color: #64748b;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s ease;
  }

  .docs-mobile-bar .docs-breadcrumbs a:hover {
    color: var(--kiwi-dark);
  }

  .docs-mobile-bar .docs-breadcrumbs span:last-child {
    color: var(--ink);
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .docs-mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #01370b;
    background: #cbf990;
    border: 1px solid rgba(1, 55, 11, 0.2);
    padding: 7px 15px;
    border-radius: 9999px;
    cursor: pointer;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 4px rgba(1, 55, 11, 0.12);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
  }

  .docs-mobile-toggle:hover {
    background: #bbf37a;
    border-color: rgba(1, 55, 11, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(1, 55, 11, 0.18);
  }

  .docs-mobile-toggle:active {
    transform: scale(0.96);
  }

  .docs-mobile-toggle svg {
    stroke: #01370b;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
  }

  /* Off-canvas mobile navigation drawer */
  .docs-sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(340px, 86vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    background: #ffffff !important;
    z-index: 10002 !important;
    padding: 0 18px 32px !important;
    overflow-y: auto !important;
    box-shadow: 24px 0 64px rgba(1, 55, 11, 0.18), 4px 0 20px rgba(0, 0, 0, 0.08) !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease !important;
  }

  .docs-sidebar.is-mobile-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Drawer Header */
  .docs-drawer-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: calc(100% + 36px);
    margin: 0 -18px 18px -18px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(1, 55, 11, 0.08);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .docs-drawer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
    font-size: 15px;
    color: var(--ink);
    letter-spacing: -0.01em;
  }

  .docs-drawer-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: block;
  }

  .docs-drawer-badge {
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    background: #eaf6df;
    color: #01370b;
    border-radius: 999px;
    border: 1px solid rgba(1, 55, 11, 0.12);
  }

  .docs-drawer-close,
  .docs-mobile-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #f4f9f0;
    border: 1px solid rgba(1, 55, 11, 0.14);
    border-radius: 50%;
    color: var(--kiwi-dark);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    -webkit-appearance: none;
    appearance: none;
  }

  .docs-drawer-close:hover,
  .docs-mobile-close:hover {
    background: #e6f6dd;
    border-color: rgba(1, 55, 11, 0.28);
    transform: rotate(90deg) scale(1.05);
  }

  .docs-drawer-close svg,
  .docs-mobile-close svg {
    width: 15px;
    height: 15px;
    stroke: var(--kiwi-dark);
    display: block;
  }

  /* Drawer Footer Enhancements */
  .docs-sidebar.is-mobile-open .docs-sidebar-footer {
    margin-top: 20px;
    padding-top: 18px;
    gap: 8px;
  }

  .docs-sidebar.is-mobile-open .docs-sidebar-footer a.docs-btn-store {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #01370b;
    color: #cbf990 !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(1, 55, 11, 0.2);
  }

  .docs-sidebar.is-mobile-open .docs-sidebar-footer a.docs-btn-store:hover {
    background: #094715;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 55, 11, 0.28);
  }

  /* Mobile Backdrop */
  .docs-mobile-backdrop {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(1, 28, 8, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
  }

  body.docs-drawer-open .docs-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.docs-drawer-open {
    overflow: hidden;
  }

  body.docs-drawer-open .cookie-banner {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 32px, 640px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
    padding: 0 12px;
  }

  .site-header .nav {
    height: 50px;
    padding: 0 10px 0 14px;
    border-radius: 14px;
    gap: 8px;
  }

  .brand {
    font-size: 14.5px;
  }

  .brand-logo {
    width: 22px;
    height: 22px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 14px 16px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    backdrop-filter: blur(16px) saturate(1.8);
    border: 1px solid rgba(55, 53, 47, 0.1);
    border-radius: 14px;
    box-shadow: 0 4px 6px -1px rgba(15, 15, 15, 0.08), 0 20px 40px -12px rgba(15, 15, 15, 0.25);
  }

  .nav-links.is-open {
    display: flex;
    animation: navSheetIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes navSheetIn {
    from {
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-links > a:not(.button) {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    border-bottom: none;
  }

  .nav-links > a:not(.button):hover {
    background: rgba(55, 53, 47, 0.06);
  }

  .site-header .nav-right .button {
    display: none !important;
  }

  .nav-links .button {
    display: flex !important;
    margin-top: 10px;
    height: 40px;
    min-height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    cursor: pointer;
  }

  .menu-toggle.is-open span:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-of-type(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding: clamp(36px, 5vw, 48px) 0 24px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.026em;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.55;
  }

  .product-visual-stage {
    padding: 14px 14px 16px;
    border-radius: 0 !important;
  }

  .step {
    padding: 14px 16px;
  }

  .step.active {
    transform: none;
  }

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

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

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

  /* Mobile Footer Refinement */
  .site-footer {
    padding: 42px 0 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-brand-col .brand {
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .footer-brand-col .brand span {
    font-size: 16px;
    font-weight: 750;
  }

  .footer-brand-col p {
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--muted);
  }

  .footer-socials {
    margin-top: 14px;
    gap: 10px;
  }

  .social-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--ink-secondary);
  }

  .social-icon-link:active {
    background: var(--kiwi-green);
    border-color: var(--kiwi-border);
    color: var(--kiwi-dark);
    transform: scale(0.95);
  }

  .footer-grid > div:not(.footer-brand-col) {
    gap: 10px;
  }

  .footer-grid > div > b {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  .footer-grid a {
    font-size: 13.5px;
    padding: 3px 0;
    line-height: 1.35;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .footer-grid a:active {
    color: var(--brand-primary);
  }

  /* Support & Legal section spanning full width */
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 4px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
  }

  .footer-grid > div:last-child > b {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .footer-grid a[href^="mailto:"] {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--ink);
    width: fit-content;
    margin-top: 4px;
    transition: all 0.15s ease;
  }

  .footer-grid a[href^="mailto:"]:active {
    background: rgba(85, 165, 30, 0.14);
    border-color: rgba(85, 165, 30, 0.4);
    color: var(--kiwi-dark);
    transform: scale(0.98);
  }

  .footer-grid a[href^="mailto:"]::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301370b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted);
  }

  .footer-bottom p {
    margin: 0;
  }

  .footer-bottom .author-link {
    color: var(--ink);
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  input, select, textarea {
    font-size: 16px !important;
  }

  .research-table-wrap,
  .compare-table-wrap,
  .docs-table-wrap,
  .table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  /* Stacked Card Deck Mobile Optimization */
  .deck-desktop-btn {
    display: none !important;
  }

  .deck-wrapper {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 0 4px;
  }

  .stacked-deck-container {
    width: 100%;
    max-width: 100%;
  }

  .deck-card {
    padding: 16px 14px 14px;
    border-radius: 16px;
  }

  .deck-card.card-front {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .deck-card.card-back {
    transform: translate3d(0, -8px, 0) scale(0.965);
    opacity: 0.6;
  }

  .deck-card.card-back:hover {
    transform: translate3d(0, -10px, 0) scale(0.97);
  }

  .deck-card.is-stacking-top {
    transform: translate3d(0, 0, 0) scale(1) !important;
    opacity: 1 !important;
  }

  .deck-card.is-stacking-under {
    transform: translate3d(0, -8px, 0) scale(0.965) !important;
    opacity: 0.6 !important;
  }

  .showcase-card-header h3 {
    font-size: 17px;
  }

  .showcase-card-header p {
    font-size: 13px;
    line-height: 1.45;
  }

  .metric-spotlight-pill {
    bottom: 8px;
    right: 8px;
    padding: 3.5px 8px;
    font-size: 10.5px;
    gap: 5px;
  }

  .deck-controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
  }

  .deck-mobile-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(1, 55, 11, 0.22);
    color: var(--brand-primary);
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(1, 55, 11, 0.08);
    flex-shrink: 0;
    cursor: pointer;
  }

  .deck-mobile-btn:active {
    transform: scale(0.92);
  }

  .deck-dots-nav {
    margin-top: 0;
  }

  /* Founder Card Mobile Polish */
  .founder-card {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .founder-avatar {
    width: 62px;
    height: 62px;
  }

  .founder-quote {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  /* Who It's For & Research Highlight Mobile Polish */
  .who-card {
    padding: 24px 18px;
  }

  .card-highlight {
    padding: 22px 18px;
  }

  /* Final CTA Mobile Polish */
  .final-cta {
    padding: 34px 18px;
    margin: 40px auto 48px;
  }

  .final-cta .brand-logo.large {
    width: 58px;
    height: 58px;
  }

  .final-cta .hero-actions .button {
    width: 100%;
    min-height: 46px;
  }

  /* Social Links Accessible Touch Target */
  .social-icon-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Outlier Score Histogram Responsive Polish (<= 720px) */
  .outlier-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: clamp(36px, 6vw, 52px) 0;
  }

  .outlier-copy {
    max-width: 100%;
  }

  .outlier-copy h2 {
    font-size: clamp(21px, 5.2vw, 26px);
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .outlier-copy .outlier-sub {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .score-card {
    padding: 18px 16px 14px;
    border-radius: 18px;
  }

  .score-chart-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .chart-tag {
    font-size: 10.5px;
  }

  .chart-badge.outlier-detected-badge {
    font-size: 11px;
    padding: 3px 9px;
  }

  .histogram-wrap {
    padding: 22px 12px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .histogram-baseline-guide {
    bottom: 50px;
    left: 12px;
    right: 12px;
  }

  .histogram-legend-bar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .legend-item {
    font-size: 10px;
  }

  .histogram-bars {
    gap: 8px;
    height: 144px;
  }

  .histogram-col {
    max-width: 46px;
    min-width: 0;
  }

  .histogram-bar-track {
    max-width: 34px;
    height: 108px;
  }

  .bar-val-badge {
    font-size: 10px;
    padding: 1px 3.5px;
    margin-bottom: 4px;
  }

  .bar-val-badge.outlier-peak-badge {
    font-size: 9.5px;
    padding: 2px 7px;
    margin-bottom: 5px;
    white-space: nowrap;
  }

  .bar-label {
    font-size: 10px;
    margin-top: 6px;
  }

  /* Score Tier Grid on Mobile - Stays in compact 3-column format */
  .score-tier-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .score-tier-card {
    padding: 8px 7px;
    border-radius: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .tier-indicator {
    width: 6px;
    height: 6px;
    margin-top: 0;
  }

  .tier-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1px;
  }

  .tier-title {
    font-size: 11px;
  }

  .tier-score {
    font-size: 10px;
  }

  .tier-desc {
    font-size: 9.5px;
    line-height: 1.25;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(100% - 24px, 640px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .button,
  .hero-actions .text-button {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 46px;
  }

  .outlier-copy h2 {
    font-size: 21px;
    line-height: 1.24;
    letter-spacing: -0.02em;
  }

  .outlier-copy .outlier-sub {
    font-size: 14px;
    line-height: 1.52;
  }

  .outlier-section {
    padding: 32px 0 24px;
    gap: 20px;
  }

  .score-card {
    padding: 14px 12px 10px;
    border-radius: 16px;
  }

  .score-chart-header {
    margin-bottom: 8px;
    gap: 6px;
  }

  .chart-tag {
    font-size: 11px;
    gap: 6px;
  }

  .chart-sparkle {
    font-size: 11px;
  }

  .chart-badge.outlier-detected-badge {
    font-size: 10px;
    padding: 2.5px 8px;
    gap: 5px;
  }

  .badge-pulse-dot {
    width: 6px;
    height: 6px;
  }

  .histogram-wrap {
    padding: 14px 14px 8px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .histogram-baseline-guide {
    bottom: 38px;
    left: 8px;
    right: 8px;
  }

  .histogram-legend-bar {
    gap: 6px;
    margin-bottom: 6px;
    justify-content: flex-start;
  }

  .legend-item {
    font-size: 9px;
  }

  .histogram-bars {
    gap: 4px;
    height: 112px;
  }

  .histogram-col {
    max-width: 36px;
  }

  .histogram-bar-track {
    max-width: 26px;
    height: 84px;
  }

  .bar-val-badge {
    font-size: 8.5px;
    padding: 1px 2.5px;
    margin-bottom: 3px;
  }

  .bar-val-badge.outlier-peak-badge {
    font-size: 8.5px;
    padding: 2px 6px;
    margin-bottom: 4px;
    gap: 3px;
  }

  .histogram-col:last-child .bar-val-badge.outlier-peak-badge {
    left: auto;
    right: -2px;
    transform: translateY(0);
  }

  .peak-icon {
    font-size: 8px;
  }

  .bar-label {
    font-size: 9px;
    margin-top: 3px;
  }

  .score-tier-grid {
    gap: 4px;
  }

  .score-tier-card {
    padding: 6px 4px;
    border-radius: 7px;
    gap: 4px;
  }

  .tier-indicator {
    width: 5px;
    height: 5px;
  }

  .tier-title {
    font-size: 10px;
  }

  .tier-score {
    font-size: 9px;
  }

  .tier-desc {
    font-size: 8px;
    line-height: 1.15;
  }

}

/* ==========================================================================
   Phase 5: Rank Kiwi Research Hub & Data Visualization System
   ========================================================================== */

/* Badges & Meta Tags */
.badge-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-analysis {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--kiwi-wash);
  color: var(--kiwi-dark);
  border: 1px solid var(--kiwi-border);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-firstparty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--kiwi-dark);
  color: var(--kiwi-green);
  border: 1px solid var(--kiwi-dark);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Article Container & Breadcrumbs — Minimal Docs Style */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-breadcrumb a:hover {
  color: var(--kiwi-dark);
}

.article-breadcrumb .breadcrumb-sep {
  color: var(--line-strong);
  font-size: 11px;
}

.article-breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

/* Article Header */
.article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.article-tag-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-tag-row .card-tag,
.article-tag-row .badge-analysis,
.article-tag-row .badge-source,
.article-tag-row .badge-firstparty,
.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  box-sizing: border-box;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  margin: 0 !important;
  line-height: 1;
  white-space: nowrap;
}

.article-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.article-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 20px 0;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  color: var(--kiwi-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.article-meta-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.article-meta-details span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Key Finding Box — Minimal, Docs-Callout Style */
.key-finding-box {
  background: #f8faf8;
  color: var(--ink);
  border: 1px solid var(--kiwi-border);
  border-left: 3px solid var(--kiwi-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0 24px;
  position: relative;
  box-shadow: none;
}

.key-finding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.key-finding-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kiwi-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  padding: 3px 8px;
  border-radius: 999px;
}

.key-finding-label svg {
  color: var(--kiwi-dark);
  width: 13px;
  height: 13px;
}

.key-finding-text {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.key-finding-subtext {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}

/* Article Typography Scale — Clean & Docs-Like */
article p, .article-content p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  font-weight: 400;
}

article ul, article ol, .article-content ul, .article-content ol {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-secondary);
  margin-bottom: 20px;
  padding-left: 22px;
}

article li, .article-content li {
  margin-bottom: 6px;
}

article h2, .article-content h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.25;
}

article h3, .article-content h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.32;
}

.article-section {
  margin-bottom: 28px;
}

/* Executive Summary Box */
.executive-summary-box {
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--kiwi-dark);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
}

.executive-summary-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kiwi-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.executive-summary-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* Calculation Box — Minimal & Clean */
.calc-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.calc-box:hover {
  border-color: var(--kiwi-border);
  box-shadow: var(--shadow-sm);
}

.calc-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.calc-side-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.4;
  word-break: break-word;
}

.calc-source-equation {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.calc-divider {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wash);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.calc-result-number {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 800;
  color: var(--kiwi-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}

.calc-caption {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (max-width: 700px) {
  .calc-box {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .calc-divider {
    transform: rotate(90deg);
    align-self: center;
    margin: 2px 0;
  }
}

/* Research Data Grid / Cards */
.research-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin: 20px 0;
}

.research-meta-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
  overflow: hidden;
}

.research-meta-card:hover {
  transform: translateY(-1px);
  border-color: var(--kiwi-border);
  box-shadow: var(--shadow-sm);
}

.research-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
  overflow-wrap: break-word;
}

.research-meta-value {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  font-family: var(--font-display), sans-serif;
  word-break: break-word;
  overflow-wrap: break-word;
}

.research-meta-detail {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Crawlable HTML Data Tables — Docs Style */
.research-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin: 20px 0;
  box-shadow: none;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.research-table th {
  background: var(--wash);
  padding: 10px 14px;
  font-weight: 750;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.research-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 13px;
}

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

.research-table tr:hover td {
  background: var(--kiwi-wash);
}

.research-table .num-cell {
  text-align: right;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-weight: 600;
}

.research-table caption {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

/* Visual Native SVG / Bar Charts */
.research-chart-container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  box-shadow: none;
}

.chart-header {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.chart-subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

.chart-group {
  margin-bottom: 16px;
}

.chart-group:last-child {
  margin-bottom: 0;
}

.chart-group-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.chart-bar-row:last-child {
  margin-bottom: 0;
}

.chart-bar-label {
  font-size: 12.5px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.chart-bar-label.highlight {
  color: var(--kiwi-dark);
  font-weight: 750;
}

.chart-bar-track {
  background: var(--wash);
  border-radius: 4px;
  height: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.chart-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #94a3b8;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-bar-fill.medium {
  background: #64748b;
}

.chart-bar-fill.highlight {
  background: var(--kiwi-dark);
}

.chart-bar-fill.highlight-accent {
  background: var(--green);
}

.chart-bar-value {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  text-align: right;
}

.chart-bar-value.highlight {
  font-weight: 800;
  color: var(--kiwi-dark);
}

.chart-source-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .chart-bar-row {
    grid-template-columns: 105px 1fr 65px;
    gap: 10px;
  }
  .research-chart-container {
    padding: 16px;
  }
}

/* Takeaway Grid & Cards */
.takeaway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}

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

.takeaway-card {
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
}

.takeaway-card.positive {
  background: #f7fcf5;
  border: 1px solid var(--kiwi-border);
}

.takeaway-card.negative {
  background: #fdf8f8;
  border: 1px solid #fecaca;
}

.takeaway-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.takeaway-card.positive .takeaway-header {
  color: #166534;
}

.takeaway-card.negative .takeaway-header {
  color: #991b1b;
}

.takeaway-list {
  padding-left: 18px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.takeaway-card.positive .takeaway-list {
  color: #14532d;
}

.takeaway-card.negative .takeaway-list {
  color: #7f1d1d;
}

.takeaway-list li {
  margin-bottom: 6px;
}

.takeaway-list li:last-child {
  margin-bottom: 0;
}

/* Article In-Content CTA Box — Minimal Light Card */
.article-cta-banner {
  background: linear-gradient(135deg, #ffffff 0%, var(--kiwi-wash) 100%);
  color: var(--ink);
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.article-cta-banner .eyebrow {
  color: var(--kiwi-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-cta-banner h2 {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 8px 0;
}

.article-cta-banner p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 0 16px 0;
}

.article-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.article-cta-actions .button {
  background: var(--kiwi-dark);
  color: #ffffff;
  font-weight: 700;
  border: 1px solid var(--kiwi-dark);
  box-shadow: none;
  transition: all 0.18s ease;
}

.article-cta-actions .button:hover {
  background: #012808;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.article-cta-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.article-cta-link:hover {
  color: var(--kiwi-dark);
  text-decoration: underline;
}

/* Related Research Section */
.related-research-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 32px;
}

.related-research-section h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 14px 0;
}

.related-research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.related-research-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

.related-research-card:hover {
  border-color: var(--kiwi-border);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.related-research-tag {
  font-size: 10.5px;
  font-weight: 750;
  color: var(--kiwi-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.related-research-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.related-research-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--kiwi-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.related-research-card:hover .related-research-link {
  color: var(--kiwi-dark);
}

/* Article Sources & Footnotes */
.article-sources {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 32px;
  font-size: 12px;
  color: var(--muted);
}

.article-sources h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 8px;
}

.article-sources ul {
  padding-left: 18px;
  margin: 0;
  line-height: 1.6;
}

.article-sources li {
  margin-bottom: 6px;
}

.article-sources a {
  color: var(--kiwi-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Research Hub Index Cards - Minimal & Premium */
/* Research Hub Index Cards - Minimal, Symmetric & Premium */
.research-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.research-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px;
  background: #f1f5f0;
  border: 1px solid var(--kiwi-border);
  border-radius: 999px;
  width: fit-content;
}

.research-filter-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font-sans);
}

.research-filter-pill:hover {
  color: var(--kiwi-dark);
}

.research-filter-pill.active {
  background: var(--kiwi-dark);
  color: #ffffff;
  border-color: var(--kiwi-dark);
  box-shadow: 0 2px 8px rgba(1, 55, 11, 0.18);
}

.research-methodology-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--kiwi-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s;
}

.research-methodology-link:hover {
  color: #1e5a14;
}

.research-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.research-index-card {
  display: flex;
  flex-direction: column;
  flex: 0 1 calc(33.333% - 16px);
  min-width: 310px;
  max-width: 370px;
  background: #ffffff;
  border: 1px solid #e1e9dd;
  border-radius: 16px;
  padding: 24px 22px 20px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(1, 55, 11, 0.02);
  box-sizing: border-box;
}

.research-index-card:hover {
  transform: translateY(-3px);
  border-color: var(--kiwi-dark);
  box-shadow: 0 12px 28px rgba(1, 55, 11, 0.07);
}

.research-index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.research-card-title {
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px 0;
  letter-spacing: -0.015em;
  min-height: 45px;
  display: flex;
  align-items: flex-start;
  transition: color 0.15s;
}

.research-index-card:hover .research-card-title {
  color: var(--kiwi-dark);
}

.research-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 18px 0;
  min-height: 64px;
}

/* Symmetric, Minimal Stat Metric Box */
.research-stat-highlight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  background: #fbfdf9;
  border: 1px solid #e2ebd9;
  border-radius: 12px;
  margin-top: auto;
  margin-bottom: 18px;
  height: 98px;
  min-height: 98px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-index-card:hover .research-stat-highlight {
  background: #f2faea;
  border-color: rgba(1, 55, 11, 0.22);
}

.stat-number {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--kiwi-dark);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
}

.stat-prefix {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8em;
  font-weight: 750;
  color: var(--kiwi-dark);
  opacity: 0.85;
  margin-right: 1.5px;
}

.stat-unit {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72em;
  font-weight: 750;
  color: var(--kiwi-dark);
  opacity: 0.85;
  margin-left: 2px;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-0.04em);
}

.stat-desc {
  font-size: 12px;
  color: #52634e;
  line-height: 1.35;
  font-weight: 500;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.research-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf2e8;
  padding-top: 14px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.research-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: var(--kiwi-dark);
  transition: transform 0.15s ease;
}

.research-index-card:hover .research-card-arrow {
  transform: translateX(3px);
}

@media (max-width: 960px) {
  .research-index-card {
    flex: 0 1 calc(50% - 16px);
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  .research-index-card {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
  }
}

/* Minimal Bottom Banner */
.research-footer-cta {
  text-align: center;
  padding: 48px 32px;
  margin-top: 56px;
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius-lg);
  background: var(--kiwi-wash);
  box-shadow: var(--shadow-sm);
}

.research-footer-cta h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 10px 0;
}

.research-footer-cta p {
  color: var(--muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 22px auto;
  line-height: 1.55;
}

.research-footer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.research-footer-cta small {
  display: block;
  margin-top: 14px;
  color: var(--caption);
  font-size: 12px;
  font-weight: 500;
}

/* Flywheel component */
.flywheel-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.flywheel-step {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.flywheel-step.active {
  background: var(--kiwi-dark);
  color: var(--kiwi-green);
  border-color: var(--kiwi-dark);
}

.flywheel-arrow {
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
}

/* ==========================================================================
   Phase 6: Rank Kiwi Comparison & Competitive Positioning System
   ========================================================================== */

.compare-disclosure {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8faf6;
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 12.5px;
  color: #374151;
  margin: 20px 0 28px 0;
  line-height: 1.5;
}

.quick-answer-card {
  background: #fcfdfb;
  border: 1px solid #d2f2b2;
  border-left: 4px solid var(--kiwi-dark);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 24px 0 32px 0;
  box-shadow: 0 6px 20px rgba(1, 55, 11, 0.04);
}

.quick-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kiwi-dark);
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.best-for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}

.best-for-col {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.best-for-col.kiwi {
  background: #f7faf5;
  border: 1px solid #d2f2b2;
  border-left: 4px solid var(--kiwi-dark);
}

.best-for-col.competitor {
  border-left: 4px solid #64748b;
}

.best-for-header {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.good-at-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.good-at-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.good-at-card.kiwi {
  border-top: 4px solid var(--kiwi-dark);
}

.good-at-card.competitor {
  border-top: 4px solid var(--line-strong);
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.compare-table caption {
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #64748b;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.compare-table th {
  background: var(--wash);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--line-strong);
  white-space: nowrap;
}

.compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-secondary);
}

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

.compare-table tr:hover td {
  background: #fafdf7;
}

.compare-table .val-kiwi {
  color: var(--kiwi-dark);
  font-weight: 700;
}

.compare-table .val-competitor {
  color: var(--ink);
}

.decision-matrix-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.decision-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.decision-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.decision-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.decision-pill.kiwi {
  background: var(--kiwi-dark);
  color: #ffffff;
}

.decision-pill.competitor {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.verdict-box {
  background: linear-gradient(180deg, #ffffff 0%, var(--kiwi-wash) 100%);
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius);
  padding: 30px;
  margin: 36px 0;
}

@media (max-width: 768px) {
  .best-for-grid,
  .good-at-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .decision-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   Phase 7: Alternatives System Styles
   ========================================================================== */

.alt-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 28px 0 40px 0;
}

.alt-category-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.alt-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--kiwi-border);
  box-shadow: var(--shadow-sm);
}

.alt-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0 48px 0;
}

.alt-directory-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.alt-directory-card:hover {
  border-color: var(--kiwi-dark);
}

.alt-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

.alt-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.alt-card.highlight {
  border: 2px solid var(--kiwi-green);
  background: #fcfdfa;
}

.alt-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.alt-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--wash);
  color: #475569;
  border: 1px solid var(--line);
}

.alt-tag.kiwi {
  background: var(--kiwi-wash);
  color: var(--kiwi-dark);
  border-color: var(--kiwi-border);
}

.alt-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--wash);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13px;
}

.why-alt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0 36px 0;
}

.why-alt-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.why-alt-card h3 {
  font-size: 15.5px;
  margin-bottom: 8px;
  color: var(--ink);
}

.fit-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.fit-box {
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  border-top: 4px solid var(--kiwi-dark);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}

.not-fit-box {
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-top: 4px solid var(--color-error);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
}

.methodology-card {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
}

@media (max-width: 768px) {
  .fit-split-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ==========================================================================
   PHASE 8: BEST-OF EDITORIAL & PRODUCT RESEARCH STYLES
   ========================================================================== */

.best-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.best-taxonomy-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.best-taxonomy-card:hover {
  border-color: var(--kiwi-dark);
  box-shadow: 0 4px 14px rgba(1, 55, 11, 0.08);
  transform: translateY(-2px);
}

.best-taxonomy-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 10px 0 4px 0;
  color: var(--ink);
}

.best-taxonomy-card .taxonomy-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kiwi-dark);
  margin-bottom: 8px;
}

.best-taxonomy-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.best-taxonomy-examples {
  font-size: 12px;
  color: var(--caption);
  border-top: 1px solid var(--wash);
  padding-top: 12px;
  margin-top: auto;
  line-height: 1.45;
}

.best-taxonomy-examples strong {
  color: var(--ink);
}

.best-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 28px 0 48px 0;
}

.best-category-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.best-category-card:hover {
  border-color: var(--kiwi-dark);
  box-shadow: 0 8px 24px rgba(1, 55, 11, 0.08);
  transform: translateY(-2px);
}

.best-category-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ink);
}

.best-category-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.best-guide-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--wash);
  padding-top: 14px;
}

.best-guide-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.best-guide-links a:hover {
  color: var(--kiwi-dark);
  background: var(--kiwi-wash);
  transform: translateX(2px);
}

.best-guide-links a::after {
  content: "→";
  font-size: 14px;
  color: var(--kiwi-dark);
  opacity: 0.8;
  transition: transform 0.15s ease;
}

.best-guide-links a:hover::after {
  transform: translateX(2px);
}

.best-guides-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.best-guide-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.best-guide-card:hover {
  border-color: var(--kiwi-dark);
  box-shadow: 0 6px 22px rgba(1, 55, 11, 0.08);
  transform: translateY(-2px);
}

.best-guide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.best-guide-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.best-guide-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.best-guide-title {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.best-guide-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.best-guide-title a:hover {
  color: var(--kiwi-dark);
}

.best-guide-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

.best-guide-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--wash);
  align-items: center;
}

.best-guide-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wash);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.best-guide-pick strong {
  color: var(--ink);
}

.pick-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.pick-badge.winner {
  background: var(--kiwi-wash);
  color: var(--kiwi-dark);
  border: 1px solid var(--kiwi-border);
}

.pick-badge.specialist {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.pick-badge.neutral {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.methodology-grid-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.methodology-grid-card:hover {
  border-color: var(--kiwi-dark);
  transform: translateY(-1px);
}

.methodology-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--kiwi-dark);
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.methodology-grid-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.methodology-grid-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .best-guide-card {
    padding: 20px 18px;
  }
  .best-taxonomy-card {
    padding: 18px 18px;
  }
  .best-category-card {
    padding: 20px 18px;
  }
}

.quick-summary-box {
  background: #fbfdf9;
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0 40px 0;
  box-shadow: var(--shadow-sm);
}

.quick-summary-box h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--ink);
}

.tool-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 36px 0;
}

.tool-breakdown-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.tool-breakdown-card.featured {
  border: 1px solid var(--kiwi-border);
  background: var(--kiwi-wash);
}

.tool-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--wash);
  padding-bottom: 14px;
}

.tool-title-wrap h3 {
  font-size: var(--font-size-h3);
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--ink);
}

.best-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.best-badge.primary {
  background: var(--kiwi-wash);
  color: var(--kiwi-dark);
  border: 1px solid var(--kiwi-border);
}

.best-badge.secondary {
  background: var(--wash);
  color: #334155;
  border: 1px solid var(--line);
}

.tool-meta-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  background: var(--wash);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin: 16px 0 20px 0;
  font-size: 13px;
}

.tool-verdict-box {
  background: #f8fafc;
  border-left: 3px solid var(--kiwi-dark);
  padding: 14px 18px;
  margin-top: 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}

.editorial-author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0 36px 0;
  font-size: 13px;
}

.editorial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kiwi-green);
  color: var(--kiwi-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.editorial-author-info strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}

.editorial-author-info span {
  color: var(--muted);
}

.free-paid-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 36px 0;
}

.free-paid-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}

.free-paid-card h4 {
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .tool-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tool-meta-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   Brand Cookie & Privacy Consent Banner (Microsoft Clarity & Google Analytics)
   Solid light green on-brand aesthetic
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: min(calc(100% - 32px), 460px);
  background-color: #eafbe9;
  border: 1px solid #b7f1bf;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px -4px rgba(1, 55, 11, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 16px 18px;
  z-index: 99999;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #01370b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-banner-badge svg {
  width: 14px;
  height: 14px;
  color: #01370b;
  flex-shrink: 0;
}

.cookie-banner-body {
  font-size: 13px;
  line-height: 1.5;
  color: #164220;
  margin: 0;
}

.cookie-banner-body a {
  color: #01370b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-body a:hover {
  color: #084a14;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.cookie-btn-decline {
  background: transparent;
  border: 1px solid rgba(1, 55, 11, 0.25);
  color: #01370b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  min-height: 34px;
}

.cookie-btn-decline:hover {
  background: rgba(1, 55, 11, 0.08);
  border-color: rgba(1, 55, 11, 0.4);
}

.cookie-btn-accept {
  background: #01370b;
  border: 1px solid #01370b;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(1, 55, 11, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
  min-height: 34px;
}

.cookie-btn-accept:hover {
  background: #084a14;
  border-color: #084a14;
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 16px;
  }
  
  .cookie-banner-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .cookie-btn-decline,
  .cookie-btn-accept {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   Pillar Landing Pages System (Instagram, YouTube, Outlier Score, Creator Research)
   Premium SaaS aesthetic with interactive visual cards and symmetric feature grids
   ========================================================================== */
.pillar-hero {
  padding: clamp(48px, 6vw, 72px) 0 44px;
}

.pillar-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.pillar-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pillar-hero-content h1 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 750;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--ink);
  margin: 12px 0 14px;
}

.pillar-hero-content .hero-lead {
  font-size: clamp(14.5px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 580px;
}

.pillar-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pillar-trust-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
}

.pillar-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pillar-trust-item svg {
  width: 14px;
  height: 14px;
  color: #166534;
  flex-shrink: 0;
}

/* Hero Visual Stage & Mockup Cards */
.pillar-visual-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 36px -10px rgba(1, 55, 11, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

.pillar-visual-dark {
  background: #01370b;
  color: #ffffff;
  border-color: rgba(203, 249, 144, 0.3);
  box-shadow: 0 20px 42px -12px rgba(1, 55, 11, 0.28), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.pvc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pillar-visual-dark .pvc-header {
  background: rgba(255, 255, 255, 0.05);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pvc-dots {
  display: flex;
  gap: 6px;
}

.pvc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.pvc-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--kiwi-dark);
}

.pillar-visual-dark .pvc-tag {
  background: rgba(203, 249, 144, 0.15);
  color: #cbf990;
  border: 1px solid rgba(203, 249, 144, 0.3);
}

.pvc-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Outlier Score Simulator Card */
.score-sim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f8faf6;
  border: 1px solid #e3e8e0;
  gap: 12px;
}

.pillar-visual-dark .score-sim-row {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.score-sim-row.highlight {
  background: #f2faea;
  border-color: #d2f2b2;
}

.pillar-visual-dark .score-sim-row.highlight {
  background: rgba(203, 249, 144, 0.12);
  border-color: rgba(203, 249, 144, 0.35);
}

.sim-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sim-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pillar-visual-dark .sim-title {
  color: #ffffff;
}

.sim-views {
  font-size: 11.5px;
  color: #64748b;
}

.pillar-visual-dark .sim-views {
  color: #a4cca6;
}

.sim-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono), monospace;
  white-space: nowrap;
}

.sim-badge.typical {
  background: #e2e8f0;
  color: #334155;
}

.sim-badge.strong {
  background: #dcfce7;
  color: #166534;
}

.sim-badge.viral {
  background: #cbf990;
  color: #01370b;
  box-shadow: none;
}

/* Mini Mock Grid for Reels/Videos */
.mini-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mini-mock-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.mini-mock-thumb {
  height: 80px;
  background: #e2e8f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-mock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-mock-score {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: #01370b;
  color: #cbf990;
}

.mini-mock-meta {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-mock-views {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.mini-mock-label {
  font-size: 9.5px;
  color: #64748b;
  text-transform: uppercase;
}

/* Section Rhythm for Pillar Pages */
.pillar-section {
  padding: var(--section-padding);
  border-top: 1px solid var(--line);
}

.pillar-section-header {
  margin-bottom: 36px;
  max-width: 720px;
}

.pillar-section-header h2 {
  font-size: var(--font-size-h1);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: var(--tracking-h1);
  line-height: var(--line-h1);
  margin: 0 0 10px;
}

.pillar-section-header p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

/* Feature & Comparison Cards */
.pillar-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(1, 55, 11, 0.25);
  box-shadow: 0 8px 24px rgba(1, 55, 11, 0.06);
}

.pillar-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--kiwi-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.pillar-card-icon svg {
  width: 20px;
  height: 20px;
}

.pillar-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.pillar-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* Answer First Callout */
.pillar-answer-box {
  background: #fcfdfb;
  border: 1px solid #d2f2b2;
  border-left: 4px solid var(--kiwi-dark);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(1, 55, 11, 0.04);
}

.pillar-answer-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--kiwi-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.pillar-answer-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 900px) {
  .pillar-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .pillar-hero {
    padding: 36px 0 36px;
  }
  .pillar-hero-content h1 {
    font-size: clamp(24px, 6.5vw, 30px);
    word-break: break-word;
  }
  .pillar-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .pillar-hero-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .pvc-body {
    padding: 14px 12px;
  }
  .score-sim-row {
    padding: 8px 10px;
  }
  .sim-title {
    font-size: 12px;
  }
  .sim-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  .pillar-card {
    padding: 18px 16px;
  }
  .pillar-contrast-card {
    padding: 20px 16px;
  }
  .pillar-answer-box {
    padding: 16px;
  }
}

/* Pillar Workflow Steps */
.pillar-workflow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pillar-workflow-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (max-width: 820px) {
  .pillar-workflow-step {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }
}

.pillar-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--kiwi-dark);
  font-weight: 750;
  font-size: 11.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.pillar-workflow-step h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.pillar-workflow-step p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.pillar-workflow-step ul {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  padding-left: 20px;
  margin: 0 0 14px;
}

/* Pillar Contrast Comparison Grid */
.pillar-contrast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.pillar-contrast-card {
  padding: 28px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.pillar-contrast-card.broken {
  background: #fffbfa;
  border: 1px solid #fed7aa;
}

.pillar-contrast-card.rankkiwi {
  background: #fbfef7;
  border: 1px solid #bbf7d0;
  box-shadow: 0 4px 16px rgba(1, 55, 11, 0.04);
}

.pillar-contrast-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.pillar-contrast-card .contrast-flow {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.pillar-contrast-card .contrast-result {
  font-size: 13px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 10px;
}

.pillar-contrast-card.broken .contrast-result {
  color: #c2410c;
}

.pillar-contrast-card.rankkiwi .contrast-result {
  color: var(--kiwi-dark);
}

/* Pillar FAQ Grid */
.pillar-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.pillar-faq-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.pillar-faq-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.pillar-faq-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Content Page System — Docs-Like Minimal Aesthetic
   Applied via .content-page on <main> to unify all hub/pillar/article pages
   with the minimal spacing, smooth colors, and tight typography of /docs/
   ========================================================================== */

/* Page-Level Wrapper */
.content-page {
  padding: clamp(36px, 5vw, 56px) 0 72px;
}

/* Content Page Header — mirrors docs-header-bar */
.content-page-header {
  padding: 20px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.content-page-header .eyebrow {
  margin-bottom: 8px;
}

.content-page-header h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 780px;
}

.content-page-header .content-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 680px;
}

.content-page-header .content-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Content Section — subtle border-top dividers like docs-article */
.content-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.content-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.content-section-header {
  margin-bottom: 24px;
  max-width: 720px;
}

.content-section-header .eyebrow {
  margin-bottom: 4px;
}

.content-section-header h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0 0 8px;
}

.content-section-header p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
}

/* Content Card Grid — uniform, docs-like cards */
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.content-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.content-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--kiwi-wash);
  border: 1px solid var(--kiwi-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kiwi-dark);
  margin-bottom: 12px;
}

.content-card-icon svg {
  width: 18px;
  height: 18px;
}

.content-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.35;
}

.content-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  flex-grow: 1;
}

.content-card-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid var(--wash);
  padding-top: 10px;
}

.content-card-links a {
  font-size: 12.5px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
}

.content-card-links a:hover {
  color: var(--green);
}

.content-card-links a::after {
  content: "→";
  font-size: 13px;
  opacity: 0.7;
}

/* Disclosure Banner — tighter, docs-callout style */
.content-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 9px;
  background: var(--wash);
  border-left: 3px solid var(--green);
  margin: 16px 0 24px;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.content-disclosure svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--kiwi-dark);
}

/* Taxonomy/Category Compact Cards */
.content-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}

.content-taxonomy-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.content-taxonomy-card:hover {
  transform: translateY(-1px);
  border-color: var(--kiwi-border);
}

.content-taxonomy-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.content-taxonomy-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Comparison Table (docs-table style) */
.content-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.content-page .compare-table {
  font-size: 13px;
}

.content-page .compare-table th {
  padding: 10px 14px;
  font-size: 12.5px;
}

.content-page .compare-table td {
  padding: 10px 14px;
  font-size: 13px;
}

/* Quick Answer — docs-callout influenced */
.content-answer-box {
  background: var(--wash);
  border: 1px solid var(--kiwi-border);
  border-left: 3px solid var(--kiwi-dark);
  border-radius: 9px;
  padding: 16px 20px;
  margin: 16px 0 24px;
}

.content-answer-box .content-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kiwi-dark);
  margin-bottom: 8px;
}

.content-answer-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* Directory Card — used for tool listings */
.content-directory-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s;
}

.content-directory-card:hover {
  border-color: var(--kiwi-dark);
}

.content-directory-card.highlight {
  border: 2px solid var(--kiwi-green);
  background: #fcfdfa;
}

/* Footer CTA — refined */
.content-footer-cta {
  text-align: center;
  padding: 36px 24px;
  margin-top: 40px;
  border: 1px solid var(--kiwi-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, var(--kiwi-wash) 100%);
}

.content-footer-cta h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 8px;
}

.content-footer-cta p {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.55;
}

/* Research Card Grid — docs-like uniform sizing */
.content-page .research-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.content-page .research-index-card {
  flex: unset;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius);
  padding: 20px;
  border-color: var(--line);
  box-shadow: none;
}

.content-page .research-index-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.content-page .research-card-title {
  font-size: 15.5px;
  font-weight: 700;
  min-height: 0;
}

.content-page .research-card-desc {
  font-size: 13px;
  min-height: 0;
}

.content-page .research-stat-highlight {
  padding: 12px 14px;
  border-radius: 9px;
  height: auto;
  min-height: 0;
  background: var(--wash);
  border-color: var(--line);
}

.content-page .stat-number {
  font-size: 1.75rem;
}

.content-page .stat-desc {
  font-size: 11.5px;
  min-height: 0;
}

.content-page .research-card-footer {
  padding-top: 12px;
  font-size: 11.5px;
}

/* Pillar Hero — minimal docs-like header with breathing room */
.content-page .pillar-hero {
  padding: 32px 0 24px;
}

.content-page .pillar-hero-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.content-page .pillar-hero-content h1 {
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 10px 0 14px;
}

.content-page .pillar-hero-content .hero-lead {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
  color: var(--muted);
}

/* Pillar Sections — tighter rhythm */
.content-page .pillar-section {
  padding: 28px 0;
}

.content-page .pillar-section-header {
  margin-bottom: 20px;
}

.content-page .pillar-section-header h2 {
  font-size: clamp(18px, 2vw, 23px);
}

.content-page .pillar-section-header p {
  font-size: 14px;
}

/* Pillar Cards — lighter */
.content-page .pillar-card {
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: none;
  border-color: var(--line);
  gap: 8px;
}

.content-page .pillar-card:hover {
  box-shadow: var(--shadow-sm);
}

.content-page .pillar-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  margin-bottom: 2px;
}

.content-page .pillar-card-icon svg {
  width: 18px;
  height: 18px;
}

.content-page .pillar-card h3 {
  font-size: 14.5px;
}

.content-page .pillar-card p {
  font-size: 13px;
}

/* Workflow Steps — tighter */
.content-page .pillar-workflow-step {
  padding: 22px;
  border-radius: var(--radius);
  gap: 24px;
}

.content-page .pillar-workflow-step h3 {
  font-size: 17px;
}

.content-page .pillar-workflow-step p {
  font-size: 13.5px;
}

/* FAQ Grid — lighter */
.content-page .pillar-faq-grid {
  gap: 14px;
}

.content-page .pillar-faq-card {
  padding: 18px;
  box-shadow: none;
  border-color: var(--line);
}

.content-page .pillar-faq-card h3 {
  font-size: 14px;
}

.content-page .pillar-faq-card p {
  font-size: 13px;
}

/* Contrast Cards */
.content-page .pillar-contrast-card {
  padding: 22px;
  border-radius: var(--radius);
}

/* Answer Box */
.content-page .pillar-answer-box {
  padding: 16px 20px;
  border-radius: 9px;
  margin-bottom: 28px;
}

.content-page .pillar-answer-title {
  font-size: 13.5px;
}

.content-page .pillar-answer-text {
  font-size: 13.5px;
}

/* Alt cards in content page */
.content-page .alt-category-grid {
  gap: 14px;
  margin: 20px 0 28px;
}

.content-page .alt-category-card {
  padding: 18px;
}

.content-page .alt-directory-card {
  padding: 20px 22px;
}

.content-page .alt-card {
  padding: 20px 22px;
}

/* Compare cards in content page */
.content-page .compare-disclosure {
  padding: 10px 14px;
  font-size: 12px;
  margin: 12px 0 20px;
}

/* Best taxonomy in content page */
.content-page .best-taxonomy-grid {
  gap: 14px;
}

.content-page .best-taxonomy-card {
  padding: 18px 20px;
}

/* Research Filter */
.content-page .research-filter-bar {
  gap: 6px;
}

.content-page .research-filter-pill {
  font-size: 12.5px;
  padding: 6px 14px;
}

/* Support Page (content-page context) */
.content-page.support-page {
  padding: 32px 0 64px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.content-page.support-page .content-page-header h1 {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 700;
}

.content-page.support-page .content-page-header .content-lead {
  font-size: 15.5px;
  max-width: 620px;
}

.content-page.support-page .content-section-header h2 {
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  margin-bottom: 8px;
}

.content-page.support-page .content-section-header p {
  font-size: 15px;
  color: var(--muted);
  max-width: 640px;
}

.content-page .support-box {
  padding: 24px 28px;
}

.content-page .support-social-grid {
  gap: 12px 16px;
}

/* Visual Card in pillar hero — hidden in content-page for minimal header */
.content-page .pillar-visual-card {
  display: none;
}

/* Trust Strip */
.content-page .pillar-trust-strip {
  font-size: 12px;
  gap: 12px;
}

/* ==========================================================================
   Content Page System — Mobile Responsiveness
   ========================================================================== */

@media (max-width: 768px) {
  .content-page {
    padding: 24px 0 56px;
  }

  .content-page-header {
    padding: 16px 0 22px;
    margin-bottom: 24px;
  }

  .content-page-header h1 {
    font-size: clamp(22px, 6vw, 28px);
    word-break: break-word;
  }

  .content-page-header .content-lead {
    font-size: 14px;
  }

  .content-page-header .content-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .content-page-header .content-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .content-section {
    padding: 24px 0;
  }

  .content-section-header h2 {
    font-size: clamp(17px, 4.5vw, 21px);
  }

  .content-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .content-card {
    padding: 16px;
  }

  .content-taxonomy-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .content-taxonomy-card {
    padding: 14px 16px;
  }

  .content-disclosure {
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .content-footer-cta {
    padding: 28px 16px;
  }

  .content-footer-cta h2 {
    font-size: clamp(18px, 5vw, 22px);
  }

  .content-page .research-card-grid {
    grid-template-columns: 1fr;
  }

  .content-page .research-index-card {
    padding: 16px;
  }

  .content-page .pillar-hero-content h1 {
    font-size: clamp(22px, 6vw, 28px);
    word-break: break-word;
  }

  .content-page .pillar-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .content-page .pillar-hero-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .content-page .pillar-card {
    padding: 14px;
  }

  .content-page .pillar-workflow-step {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-page .pillar-faq-card {
    padding: 14px;
  }

  .content-page .pillar-contrast-card {
    padding: 16px;
  }

  .content-page .pillar-answer-box {
    padding: 14px 16px;
  }

  .content-page .alt-category-grid {
    grid-template-columns: 1fr;
  }

  .content-page .alt-category-card {
    padding: 14px 16px;
  }

  .content-page .alt-directory-card,
  .content-page .alt-card {
    padding: 16px;
  }

  .content-table-wrap {
    margin: 12px -16px;
    padding: 0 16px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .content-page-header h1 {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .content-page .pillar-hero-content h1 {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .content-page .stat-number {
    font-size: 1.5rem;
  }

  .content-card h3 {
    font-size: 14px;
  }
}

/* ==========================================================================
   Outlier Score Calculator Styles
   ========================================================================== */

.calc-card-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.calc-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 40px -10px rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.calc-card-top {
  padding: 32px 32px 24px;
  background: #ffffff;
}

.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .calc-inputs-grid {
    grid-template-columns: 1fr;
  }
}

.calc-field {
  display: flex;
  flex-direction: column;
}

.calc-label {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.calc-hint {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input {
  width: 100%;
  height: 48px;
  padding: 8px 64px 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: var(--wash);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s ease;
}

.calc-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--kiwi-dark);
  box-shadow: 0 0 0 3px rgba(1, 55, 11, 0.12);
}

.calc-input-unit {
  position: absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.calc-presets-row {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.calc-presets-title {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.calc-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.preset-chip:hover {
  background: #edf7e4;
  color: var(--kiwi-dark);
  border-color: var(--kiwi-border);
}

.preset-chip.active {
  background: #01370b;
  color: #cbf990;
  border-color: #01370b;
  font-weight: 700;
}

/* Calculator Result Stage */
.calc-result-stage {
  padding: 30px 32px;
  background: #0c180e;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.calc-result-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
}

.calc-score-display {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.calc-score-number {
  font-family: var(--font-mono);
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 800;
  color: #cbf990;
  line-height: 1;
  letter-spacing: -0.03em;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.calc-badge.viral {
  background: #cbf990;
  color: #01370b;
  box-shadow: none;
}

.calc-badge.outlier {
  background: #a3e635;
  color: #022c22;
}

.calc-badge.strong {
  background: #4ade80;
  color: #052e16;
}

.calc-badge.typical {
  background: #94a3b8;
  color: #0f172a;
}

.calc-badge.low {
  background: #f87171;
  color: #450a0a;
}

.calc-ratio-formula {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: #cbd5e1;
}

.calc-bars-wrapper {
  margin: 22px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calc-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
}

.calc-bar-val.highlight {
  color: #cbf990;
  font-weight: 700;
  font-family: var(--font-mono);
}

.calc-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.calc-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.baseline-fill {
  background: #94a3b8;
}

.video-fill {
  background: linear-gradient(90deg, #68b852 0%, #cbf990 100%);
  box-shadow: none;
}

.calc-summary-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  border-radius: 10px;
  margin-top: 16px;
}

.calc-summary-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2e8f0;
}

.calc-summary-text strong {
  color: #cbf990;
}

/* Extension Bridge */
.calc-extension-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  background: #f8faf6;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.calc-bridge-copy h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--ink);
}

.calc-bridge-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 480px;
}

/* Tier Grid */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tier-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(203, 249, 144, 0.8);
}

.tier-card.highlight {
  border-color: rgba(163, 230, 53, 0.6);
  background: #fafdf7;
}

.tier-card.highlight-viral {
  border-color: #cbf990;
  background: #f2faea;
}

.tier-badge-wrap {
  margin-bottom: 12px;
}

.tier-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--ink);
}

.tier-card p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Hero Study Pill */
.hero-study-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(203, 249, 144, 0.15);
  border: 1px solid rgba(203, 249, 144, 0.45);
  padding: 4px 14px 4px 6px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.hero-study-pill:hover {
  background: rgba(203, 249, 144, 0.3);
  border-color: rgba(94, 184, 52, 0.6);
  transform: translateY(-1px);
}

.hero-study-badge {
  background: var(--kiwi-dark);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* ==========================================================================
   Documentation "Copy as Markdown" Button
   ========================================================================== */

.docs-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.docs-header-top .eyebrow {
  margin: 0;
}

.btn-copy-markdown {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.btn-copy-markdown:hover {
  background: #fafef5;
  border-color: rgba(94, 184, 52, 0.6);
  color: var(--kiwi-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.btn-copy-markdown:active {
  transform: translateY(0);
}

.btn-copy-markdown.copied {
  background: var(--kiwi-green);
  border-color: var(--kiwi-border);
  color: #01370b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-copy-markdown svg {
  flex-shrink: 0;
  stroke: currentColor;
}

/* ==========================================================================
   Privacy Policy Scope Switcher & Badges
   ========================================================================== */

.privacy-scope-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 20px;
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.privacy-scope-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.privacy-scope-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
}

.privacy-scope-btn.active {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.privacy-scope-btn.active[data-scope="extension"] {
  border-color: rgba(94, 184, 52, 0.5);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--kiwi-dark);
}

.privacy-summary-banner {
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  background: #fafafa;
  transition: all 0.25s ease;
}

.privacy-summary-banner.is-extension {
  background: #f4fbf0;
  border-color: rgba(94, 184, 52, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.privacy-summary-banner.is-website {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.privacy-summary-banner h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-summary-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  margin-left: 10px;
  vertical-align: middle;
}

.privacy-badge.extension {
  background: rgba(203, 249, 144, 0.35);
  color: #01370b;
  border: 1px solid rgba(1, 55, 11, 0.15);
}

.privacy-badge.website {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.privacy-badge.both {
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid var(--line);
}

.legal-content section.is-hidden {
  display: none !important;
}








