/* ==========================================================================
   Vjal Adi KS ScanPrint: Editorial Marketing & Download Design System
   Grounded in VJAL Brand System v2.1 ("Ink & Alabaster / Obsidian & Champagne")
   Zero external fonts or CDN assets. 100% self-contained & tracker-free.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --font-display: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* VJAL Brand Palette via CSS light-dark() (with explicit fallback rules below) */
  --bg-canvas: light-dark(#f6f7f9, #070c16);
  --bg-alt: light-dark(#eef0f4, #0b1220);
  --bg-surface: light-dark(#ffffff, #10192b);
  --bg-elevated: light-dark(#f1f3f6, #16223a);
  --border-subtle: light-dark(#dce1e9, #21304f);
  --border-strong: light-dark(#bfc7d5, #32466e);

  --text-strong: light-dark(#0a1220, #f7f8fb);
  --text-primary: light-dark(#1a2333, #e4eaf4);
  --text-secondary: light-dark(#3f4b5f, #b3c0d6);
  --text-muted: light-dark(#556277, #8b9bb6);

  --brand: light-dark(#0033a0, #8db0f2);
  --brand-tint: light-dark(#e8effc, #142445);

  --ok-bg: light-dark(#e3f5ec, #0c2a1f);
  --ok-fg: light-dark(#0e603d, #6fe6a9);
  --warn-bg: light-dark(#fbf0cf, #302409);
  --warn-fg: light-dark(#765200, #ffd452);
  --danger-bg: light-dark(#fce8e8, #381419);
  --danger-fg: light-dark(#a81818, #fca5a5);

  /* Signature VJAL Mustard Gold CTA (Always Ink Navy text, > 10:1 contrast) */
  --cta-bg: #f5b700;
  --cta-hover: #dfa400;
  --cta-fg: #0a1220;
  --navy-surface: #0c1524;
  --navy-border: rgba(255, 255, 255, 0.12);

  --shadow-sm: light-dark(0 1px 2px rgba(10, 18, 32, 0.06), 0 1px 2px rgba(0, 0, 0, 0.35));
  --shadow-lg: light-dark(
    0 24px 56px -18px rgba(10, 18, 32, 0.18),
    0 28px 64px -18px rgba(0, 0, 0, 0.65)
  );

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.375rem;
  --max-width: 72rem;
}

/* Reflect <meta name="color-scheme"> override back into CSS color-scheme */
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

/* Explicit fallback for browsers without CSS light-dark() */
@supports not (color: light-dark(white, black)) {
  :root {
    --bg-canvas: #f6f7f9;
    --bg-alt: #eef0f4;
    --bg-surface: #ffffff;
    --bg-elevated: #f1f3f6;
    --border-subtle: #dce1e9;
    --border-strong: #bfc7d5;
    --text-strong: #0a1220;
    --text-primary: #1a2333;
    --text-secondary: #3f4b5f;
    --text-muted: #556277;
    --brand: #0033a0;
    --brand-tint: #e8effc;
    --ok-bg: #e3f5ec;
    --ok-fg: #0e603d;
    --warn-bg: #fbf0cf;
    --warn-fg: #765200;
    --danger-bg: #fce8e8;
    --danger-fg: #a81818;
    --shadow-sm: 0 1px 2px rgba(10, 18, 32, 0.06);
    --shadow-lg: 0 24px 56px -18px rgba(10, 18, 32, 0.18);
  }
  @media (prefers-color-scheme: dark) {
    :root:not(:has(> head > meta[name="color-scheme"][content="light"])) {
      --bg-canvas: #070c16;
      --bg-alt: #0b1220;
      --bg-surface: #10192b;
      --bg-elevated: #16223a;
      --border-subtle: #21304f;
      --border-strong: #32466e;
      --text-strong: #f7f8fb;
      --text-primary: #e4eaf4;
      --text-secondary: #b3c0d6;
      --text-muted: #8b9bb6;
      --brand: #8db0f2;
      --brand-tint: #142445;
      --ok-bg: #0c2a1f;
      --ok-fg: #6fe6a9;
      --warn-bg: #302409;
      --warn-fg: #ffd452;
      --danger-bg: #381419;
      --danger-fg: #fca5a5;
    }
  }
  :root:has(> head > meta[name="color-scheme"][content="dark"]) {
    --bg-canvas: #070c16;
    --bg-alt: #0b1220;
    --bg-surface: #10192b;
    --bg-elevated: #16223a;
    --border-subtle: #21304f;
    --border-strong: #32466e;
    --text-strong: #f7f8fb;
    --text-primary: #e4eaf4;
    --text-secondary: #b3c0d6;
    --text-muted: #8b9bb6;
    --brand: #8db0f2;
    --brand-tint: #142445;
    --ok-bg: #0c2a1f;
    --ok-fg: #6fe6a9;
    --warn-bg: #302409;
    --warn-fg: #ffd452;
    --danger-bg: #381419;
    --danger-fg: #fca5a5;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-inline-size: 100%;
  block-size: auto;
}

:not(pre) > code {
  overflow-wrap: anywhere;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2.5px solid var(--cta-bg);
  outline-offset: 2px;
}

.visually-hidden,
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 700;
  text-decoration: none;
}

.container {
  inline-size: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ==========================================================================
   Site Header & Single-Tree Responsive Popover Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg-canvas) 88%, transparent);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border-subtle);
}

.header-inner {
  inline-size: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  min-block-size: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.45rem, 2.5vw, 1rem);
}

.header-inner > * {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-strong);
}

.brand-wing-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 0.625rem;
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  padding: 0.35rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.free-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--ok-bg);
  color: var(--ok-fg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-strong);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  position: fixed;
  inset: auto;
  inset-block-start: 4.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(85dvw, 20rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin-block-start: 0.5rem;
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.site-menu:is(:popover-open, .\:popover-open) {
  display: grid;
  gap: 0.25rem;
}

@supports not selector(:popover-open) {
  .site-menu[popover]:not(.\:popover-open) {
    display: none;
  }
}

.site-menu a:not(.btn) {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-menu a:not(.btn):hover,
.site-menu a:not(.btn)[aria-current="page"] {
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.site-menu a:not(.btn)[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--cta-bg);
}

.site-menu a.btn-cta {
  width: 100%;
  justify-content: center;
}

.menu-mobile-cta {
  margin-block-start: 0.35rem;
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--border-subtle);
}

.site-header.is-measuring * {
  transition: none !important;
}

.site-header:not(.is-wide) .header-cta,
.site-header:not(.is-wide) .free-pill {
  display: none;
}

.site-header.is-wide .menu-button,
.site-header.is-wide .menu-mobile-cta {
  display: none;
}

.site-header.is-wide .site-menu {
  position: static;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  inline-size: auto;
  max-inline-size: none;
  block-size: auto;
  max-block-size: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-header.is-wide .site-menu a {
  padding: 0.4rem 0.65rem;
  font-size: 0.875rem;
}

.site-header.is-wide .site-menu a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--cta-bg);
  background: transparent;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Two-State Theme Toggle driven by pure CSS + <meta name="color-scheme"> */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-strong);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--bg-elevated);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-toggle .icon-sun {
    display: inline-flex;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])) .theme-toggle .icon-moon {
    display: none;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .icon-sun {
  display: inline-flex;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-toggle .icon-moon {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.85rem;
}

.btn-md {
  padding: 0.7rem 1.25rem;
  font-size: 0.92rem;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 0.98rem;
}

.btn-cta {
  background: var(--cta-bg);
  color: var(--cta-fg);
}

.btn-cta:hover {
  background: var(--cta-hover);
  color: var(--cta-fg);
}

.btn-ink {
  background: var(--navy-surface);
  color: #ffffff;
  border-color: var(--navy-border);
}

.btn-ink:hover {
  background: #162540;
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
}

/* ==========================================================================
   Hero & Interactive Kitchen Sink Product Stage
   ========================================================================== */

.hero-section {
  padding-block: clamp(3rem, 6vw, 4.75rem) clamp(3.5rem, 7vw, 5.5rem);
}

.hero-intro {
  max-inline-size: 52rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--text-strong);
  margin: 1.15rem 0 1rem;
  text-wrap: balance;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--brand);
}

.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--text-secondary);
  max-inline-size: 44rem;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-block-end: 1.5rem;
}

.hero-sub-downloads {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

.proof-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.proof-pill svg {
  color: var(--ok-fg);
}

/* Signature Hero Trust Bar */
.hero-bar {
  margin-block-start: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr));
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--navy-surface);
  border: 1px solid var(--navy-border);
  color: #f4f7fb;
  text-align: start;
  box-shadow: var(--shadow-sm);
}

.hero-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-inline: 0.35rem;
}

.hero-bar-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5b700;
}

.hero-bar-val {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-bar-sub {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Problem Statement Grid & Comparison Table */
.single-path-callout {
  margin-block-end: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--navy-border);
  background: var(--navy-surface);
  color: #f4f7fb;
  display: grid;
  gap: 1rem;
}

.single-path-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.single-path-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.single-path-head span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5b700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lane-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.75rem;
}

.lane-box {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
}

.lane-box strong {
  display: block;
  color: #ffffff;
  margin-block-end: 0.25rem;
}

.lane-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.lane-box.lane-box-ks {
  background: rgba(245, 183, 0, 0.12);
  border-color: rgba(245, 183, 0, 0.55);
}

.lane-box.lane-box-ks strong {
  color: #f5b700;
}

.lane-box.lane-box-ks p {
  color: #ffffff;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15.5rem, 100%), 1fr));
  gap: 1.05rem;
}

.problem-num {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--danger-bg);
  color: var(--danger-fg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  margin-block-end: 0.7rem;
}

.compare-wrap {
  margin-block-start: 1.75rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: start;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  border-block-end: 1px solid var(--border-subtle);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  background: var(--bg-elevated);
  color: var(--text-strong);
}

.compare-table thead th.col-vjal {
  background: var(--navy-surface);
  color: #f5b700;
}

.compare-table tbody td.col-vjal {
  background: color-mix(in srgb, var(--ok-bg) 32%, var(--bg-surface));
  color: var(--text-strong);
  font-weight: 600;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-block-end: 0;
}

/* Hero Launch Illustration Frame */
.hero-art-frame {
  margin: 1.75rem 0 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--navy-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-art-img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.hero-art-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.2rem;
  background: var(--navy-surface);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  border-block-start: 1px solid var(--navy-border);
}

.hero-art-caption strong {
  color: #f5b700;
}

/* Complete 23-Protocol Arsenal Lists */
.protocol-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-block-end: 0.9rem;
  padding-block-end: 0.65rem;
  border-block-end: 1px solid var(--border-subtle);
}

.protocol-col-head h3 {
  margin: 0;
}

.protocol-count {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  flex-shrink: 0;
}

.protocol-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.protocol-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

.protocol-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 1.45rem;
  block-size: 1.45rem;
  border-radius: 0.35rem;
  background: var(--ok-bg);
  color: var(--ok-fg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-block-start: 0.08rem;
}

.protocol-item-body {
  min-inline-size: 0;
}

.protocol-item-name {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.25;
}

.protocol-item-spec {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-block-start: 0.1rem;
}

.protocol-bonus {
  margin-block-start: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--ok-bg);
  color: var(--ok-fg);
  font-size: 0.82rem;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-ok { background: var(--ok-bg); color: var(--ok-fg); }
.status-warn { background: var(--warn-bg); color: var(--warn-fg); }
.status-danger { background: var(--danger-bg); color: var(--danger-fg); }

/* ==========================================================================
   Content Sections
   ========================================================================== */

.section {
  padding-block: clamp(3.25rem, 6vw, 5rem);
}

.section-contrast {
  background: var(--bg-alt);
  border-block: 1px solid var(--border-subtle);
}

.section-head {
  max-inline-size: 46rem;
  margin-block-end: 2.25rem;
}

.section-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17.5rem, 100%), 1fr));
  gap: 1.15rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: 1.25rem;
}

.card {
  min-inline-size: 0;
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  border-radius: 0.65rem;
  background: var(--brand-tint);
  color: var(--brand);
  margin-block-end: 0.85rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-strong);
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.card.card-navy {
  background: var(--navy-surface);
  color: #f4f7fb;
  border-color: var(--navy-border);
}

.card.card-navy h3,
.card.card-navy strong {
  color: #ffffff;
}

.card.card-navy p,
.card.card-navy li {
  color: #dbe4f0;
}

.card.card-navy code {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.check-list {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
}

.check-list li {
  position: relative;
  padding-inline-start: 1.25rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--ok-fg);
  font-weight: 800;
}

.card-navy .check-list li::before {
  color: #f5b700;
}

/* Downloads */
.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.download-card.is-recommended {
  border-color: var(--cta-bg);
  box-shadow: 0 0 0 1px var(--cta-bg), var(--shadow-sm);
}

.download-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.checksum-box {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.74rem;
}

.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-block-start: 0.35rem;
}

.checksum-code {
  font-family: var(--font-mono);
  word-break: break-all;
  color: var(--text-primary);
}

.btn-copy {
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--bg-canvas);
}

.download-lead {
  margin-block-start: 0.4rem;
}

.download-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-status {
  margin-block-start: 1rem;
  font-size: 0.8rem;
}

.checksum-subhead {
  display: block;
  margin-block-start: 0.65rem;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.card.card-navy .price-tag {
  background: rgba(245, 183, 0, 0.16);
  color: #f5b700;
  border-color: rgba(245, 183, 0, 0.42);
}

/* Native <details> FAQ Accordion (Modern Web Guidance) */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-inline-size: 54rem;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-strong);
  cursor: pointer;
}

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

.faq-item > summary::before {
  content: "";
  inline-size: 0.6rem;
  block-size: 0.6rem;
  flex-shrink: 0;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  rotate: -45deg;
  margin-inline-end: 0.15rem;
}

.faq-item[open] > summary::before {
  rotate: 45deg;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item > summary::before {
    transition: rotate 0.2s ease;
  }
}

.faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-body {
  padding: 0 1.25rem 1.15rem 2.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.faq-body p {
  margin: 0;
}

.faq-body p + p {
  margin-block-start: 0.6rem;
}

/* Legal / Support Document Prose */
.prose-wrap {
  max-inline-size: 48rem;
  margin-inline: auto;
  padding-block: 3rem 4.5rem;
}

.prose-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-strong);
  margin: 0.75rem 0 0.75rem;
}

.prose-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-strong);
  margin: 2rem 0 0.6rem;
}

.prose-wrap p,
.prose-wrap li {
  color: var(--text-secondary);
}

.prose-wrap pre {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-strong);
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  border-block-start: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text-strong);
  text-decoration: underline;
}

@media (forced-colors: active) {
  .stage-tab[aria-selected="true"]::after {
    border-block-end-color: Highlight;
  }
  .btn-cta {
    border: 2px solid ButtonText;
  }
}
