/* ServiceSoftwareGuide — Jobber vs Housecall Pro
   Conversion-focused redesign: hero duel + compact chips, no
   stand-alone scenario block.
   ============================================================ */

:root {
  /* Surfaces — calm, green-leaning, but cool/clean (no warm or olive
     cast). Kept in one family so all guide pages read as one site. */
  --color-bg: #f6f8f7;
  --color-bg-soft: #ecf1f0;
  --color-bg-deep: #0b3a4a;
  --color-bg-deep-ink: #062632;
  --color-surface: #ffffff;
  --color-surface-sub: #f6faf9;
  --color-surface-elev: #ffffff;
  --color-border: #e1e7e5;
  --color-border-strong: #bcc6c2;

  /* Ink */
  --color-text: #0b1217;
  --color-text-muted: #3f4a55;
  --color-text-soft: #6b7480;
  --color-text-on-dark: #f4f7f6;
  --color-text-on-dark-soft: #b9c8cf;

  /* Brand accent */
  --color-accent: #0f5a6e;
  --color-accent-hover: #094452;
  --color-accent-soft: #e2eef1;
  --color-accent-ink: #0a4a5b;

  /* Vendor identities — site stays neutral; these are identity accents
     only (names, swatches, rails, vendor CTAs), never page washes. */
  --color-jobber: #145239;
  --color-jobber-soft: #e1ede5;
  --color-jobber-ink: #0e3f2c;
  --color-jobber-glow: rgba(20, 82, 57, 0.18);
  /* Housecall Pro: clear software blue, not indigo/purple. Aligned to
     current official HCP web/logo blue so it reads unmistakably blue. */
  --color-hcp: #0f65b6;
  --color-hcp-soft: #e5f0fb;
  --color-hcp-ink: #0a4f91;
  --color-hcp-glow: rgba(15, 101, 182, 0.16);
  /* One unified vendor-name tint, site-wide: a clean bright teal so
     vendor names read as one clear, scannable entity — not lost in
     bold black, and not a muddy per-vendor rainbow. Vendor identity
     still comes from card band / swatch / CTA, never the name alone.
     AA on white, the soft band, and the duel card tints. */
  --color-vendor-name: #0a7385;

  /* Status */
  --color-good: #166e44;
  --color-good-soft: #e0eee5;
  /* Caution / quote-led: cool slate neutral, never brown/tan/amber.
     "Quote-led" and caveats must read calm and credible, not alarming. */
  --color-warn: #53616d;
  --color-warn-soft: #eef3f5;
  --color-warn-ink: #27343f;
  --color-warn-border: #d4dde1;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(11, 18, 23, 0.05);
  --shadow-sm: 0 2px 6px rgba(11, 18, 23, 0.06), 0 1px 2px rgba(11, 18, 23, 0.04);
  --shadow-md: 0 10px 26px rgba(11, 18, 23, 0.09), 0 3px 8px rgba(11, 18, 23, 0.05);
  --shadow-lg: 0 24px 54px rgba(11, 18, 23, 0.12), 0 8px 18px rgba(11, 18, 23, 0.06);
  --shadow-glow-j: 0 18px 48px rgba(20, 82, 57, 0.15);
  --shadow-glow-h: 0 18px 48px rgba(15, 101, 182, 0.15);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --maxw: 1180px;
  --maxw-narrow: 920px;
  --container-pad: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--color-accent-hover); }
h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: -0.018em;
  line-height: 1.18;
  margin: 0;
  color: var(--color-text);
}
h1 {
  font-size: clamp(2.2rem, 2.2vw + 1.4rem, 3.4rem);
  font-weight: 730;
  letter-spacing: -0.028em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.5rem, 0.95vw + 1.15rem, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
}
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}
/* In-page anchors clear the sticky topbar */
section[id] { scroll-margin-top: 72px; }
.section {
  padding: 4.25rem 0;
  position: relative;
}
.section.band-soft { background: var(--color-bg-soft); }
.section.band-deep {
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg-deep-ink) 100%);
  color: var(--color-text-on-dark);
}
.section.band-white { background: var(--color-surface); }
.section-head {
  margin-bottom: 2rem;
}
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.7rem;
}
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}
.section-head h2 { margin: 0 0 0.6rem; }
.section-head p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1.02rem;
}
.eyebrow.on-dark { color: #66d2c8; }

/* ---- Topbar ---- */
.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.02rem;
  letter-spacing: -0.012em;
}
.brand-glyph {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.brand-text strong {
  font-weight: 800;
  color: var(--color-accent);
}
.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-soft);
}
.topbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.topbar-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  /* Neutral, not a green live/online/approved status signal */
  background: var(--color-text-soft);
}
.topbar-checked {
  color: var(--color-text-soft);
}
.topbar-checked code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-surface-sub);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 0.55rem;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease, transform 130ms ease, box-shadow 130ms ease;
  line-height: 1.1;
}
.btn:hover { background: var(--color-surface-sub); border-color: var(--color-text-soft); }
.btn:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 2px;
}
.btn .arrow {
  transition: transform 160ms ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.86rem; }

/* Long-label CTAs ("See Housecall Pro official pricing", etc.) must
   wrap inside their container instead of overflowing the button box
   in narrow duel/alt cards and on small screens. nowrap stays the
   default for short pill buttons. */
.btn-block,
.duel-cta .btn,
.cta-row .btn,
.final-cta-row .btn {
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.btn-ghost-link {
  white-space: normal;
  text-align: left;
  max-width: 100%;
}

.btn-jobber {
  background: var(--color-jobber);
  border-color: var(--color-jobber);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-jobber:hover {
  background: var(--color-jobber-ink);
  border-color: var(--color-jobber-ink);
  color: #fff;
  box-shadow: var(--shadow-glow-j);
}
.btn-hcp {
  background: var(--color-hcp);
  border-color: var(--color-hcp);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-hcp:hover {
  background: var(--color-hcp-ink);
  border-color: var(--color-hcp-ink);
  color: #fff;
  box-shadow: var(--shadow-glow-h);
}
.btn-outline-jobber {
  background: var(--color-surface);
  border-color: var(--color-jobber);
  color: var(--color-jobber);
}
.btn-outline-jobber:hover {
  background: var(--color-jobber);
  border-color: var(--color-jobber);
  color: #fff;
}
.btn-outline-hcp {
  background: var(--color-surface);
  border-color: var(--color-hcp);
  color: var(--color-hcp);
}
.btn-outline-hcp:hover {
  background: var(--color-hcp);
  border-color: var(--color-hcp);
  color: #fff;
}
.btn-ghost-link {
  background: transparent;
  border-color: transparent;
  color: var(--color-accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost-link:hover {
  background: transparent;
  color: var(--color-accent-hover);
  border-color: transparent;
}
/* Solid neutral primary for every official-pricing CTA that isn't the
   Jobber/Housecall Pro duel pair. Same teal as the vendor names, so
   the action system reads as one confident, consistent set — never
   white-until-hover. */
.btn-primary {
  background: var(--color-vendor-name);
  border-color: var(--color-vendor-name);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #086374;
  border-color: #086374;
  color: #fff;
  box-shadow: var(--shadow-glow-h);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 3.75rem 0 4.25rem;
  background:
    radial-gradient(60% 80% at 18% 25%, rgba(15, 90, 110, 0.06) 0%, transparent 60%),
    radial-gradient(50% 70% at 85% 80%, rgba(20, 82, 57, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #f3f8f6 0%, var(--color-bg) 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero-motif {
  position: absolute;
  inset: 0;
  z-index: -1;
  color: var(--color-accent);
  pointer-events: none;
}
.hero-motif svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Hero text spans the full section width (like the comparison module
   below it). Only the lede paragraph is held to a readable measure —
   the headline and trust strip have no reason to be narrow. */
.hero-text { min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.15rem;
}
.eyebrow-bar {
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.75;
}
.hero h1 {
  margin: 0 0 1.2rem;
  /* Stacked hero: the headline uses the full intro measure (~760px)
     and wraps to ~2 lines instead of a narrow orphaned column. */
  max-width: 20ch;
  font-size: clamp(2.1rem, 2vw + 1.2rem, 3.05rem);
}
@media (min-width: 720px) {
  .hero h1 { max-width: none; }
}
.hero-lede {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 1.6rem;
}
.hero-lede strong {
  color: var(--color-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  padding: 0;
  margin: 0;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero-trust svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  color: var(--color-good);
}
.hero-trust li:nth-child(3) svg, .hero-trust li:nth-child(4) svg { color: var(--color-accent); }

/* ---- Duel module ---- */
.duel-module {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.4rem 1.5rem;
  position: relative;
}
.duel-module::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(20, 82, 57, 0.18) 0%, rgba(15, 101, 182, 0.18) 100%);
  z-index: -1;
  opacity: 0.55;
  filter: blur(18px);
}
.duel-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.duel-prompt-label {
  display: block;
  width: 100%;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
}
.chip {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  background: var(--color-surface-sub);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease, box-shadow 130ms ease, transform 130ms ease;
  line-height: 1;
}
.chip:hover {
  background: var(--color-surface);
  color: var(--color-text);
}
.chip:focus-visible {
  outline: 3px solid var(--color-accent-soft);
  outline-offset: 2px;
}
.chip[aria-pressed="true"] {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

/* One prompt row followed by one uninterrupted control row on layouts
   wide enough to keep every scenario legible and touch-safe. */
@media (min-width: 768px) {
  .duel-prompt .chips {
    flex-wrap: nowrap;
  }

  .duel-prompt .chip {
    white-space: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .duel-prompt .chips {
    gap: 0.25rem;
  }

  .duel-prompt .chip {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    font-size: 0.78rem;
  }
}

/* ---- Duel cards (Jobber vs HCP) ---- */
.duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}
.duel-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.duel-card:hover { transform: translateY(-2px); }
.duel-card-band {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.duel-card.vendor-jobber {
  background: linear-gradient(180deg, var(--color-jobber-soft) 0%, var(--color-surface) 35%);
  border-color: rgba(20, 82, 57, 0.18);
  box-shadow: 0 8px 22px rgba(20, 82, 57, 0.06);
}
.duel-card.vendor-jobber:hover { box-shadow: var(--shadow-glow-j); }
.duel-card.vendor-jobber .duel-card-band { background: var(--color-jobber); }
.duel-card.vendor-hcp {
  background: linear-gradient(180deg, var(--color-hcp-soft) 0%, var(--color-surface) 35%);
  border-color: rgba(15, 101, 182, 0.20);
  box-shadow: 0 8px 22px rgba(15, 101, 182, 0.06);
}
.duel-card.vendor-hcp:hover { box-shadow: var(--shadow-glow-h); }
.duel-card.vendor-hcp .duel-card-band { background: var(--color-hcp); }

/* Unified vendor-name tint in the head-to-head modules. The card band,
   swatch and CTA still carry each vendor's green/blue identity, so the
   name uses the one site teal — scannable, consistent, never a winner. */
.duel-card .vendor-name,
.plan-card .vendor-name { color: var(--color-vendor-name); }

/* Inline vendor-name tint for headings/prose (H1, comparison H2s).
   One site teal at the surrounding heading's weight — every vendor
   treated identically, so it reads as a scannable entity, never a
   winner. AA+ on the light hero/section surfaces. */
.v-jobber, .v-hcp, .v-workiz, .v-servicefusion,
.v-fieldpulse, .v-servicetitan, .v-fieldedge { color: var(--color-vendor-name); }

.duel-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}
.vendor-swatch {
  width: 38px;
  height: 38px;
  border-radius: 20%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vendor-swatch svg { width: 26px; height: 26px; }
.vendor-swatch.is-jobber {
  background: rgba(20, 82, 57, 0.12);
  color: var(--color-jobber);
}
.vendor-swatch.is-hcp {
  background: rgba(15, 101, 182, 0.12);
  color: var(--color-hcp);
}
.duel-vendor-meta { min-width: 0; }
.duel-card .vendor-name {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.duel-card .vendor-sub {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-top: 0.1rem;
}
.duel-context {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: var(--color-surface-sub);
  border: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  /* Wrap rather than clip long scenario tags ("Editorial arithmetic") */
  white-space: normal;
  text-align: center;
  max-width: 8.5rem;
  line-height: 1.25;
}
.duel-card.vendor-jobber .duel-context {
  background: rgba(20, 82, 57, 0.08);
  color: var(--color-jobber);
}
.duel-card.vendor-hcp .duel-context {
  background: rgba(15, 101, 182, 0.08);
  color: var(--color-hcp-ink);
}

.duel-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.price-amount {
  font-size: clamp(2.2rem, 2.5vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-text);
  max-width: 100%;
  overflow-wrap: break-word;
}
/* Multi-token / arithmetic strings ("$299 + 2×$35") and non-$ status
   labels render smaller so they never clip the duel card. */
.price-amount.is-arith {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.9rem);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.price-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-soft);
  letter-spacing: 0;
  margin-left: 0.15rem;
}
.price-meta {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  font-weight: 500;
}
.duel-plan {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: -0.25rem;
}

.duel-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.duel-facts li {
  position: relative;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.duel-cta { margin-top: auto; }

/* "vs" divider */
.duel-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0 0.1rem;
}
.duel-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: var(--shadow-xs);
}

.duel-caveat {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: 1.1rem;
  padding: 0.7rem 0.85rem;
  background: var(--color-warn-soft);
  border: 1px solid var(--color-warn-border);
  color: var(--color-warn-ink);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
}
.duel-caveat[hidden] { display: none; }
.duel-caveat svg {
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 1px;
  color: var(--color-warn);
}

.duel-foot {
  margin: 1.1rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-soft);
  text-align: center;
}
.duel-foot-anchor {
  margin-left: 0.45rem;
  font-weight: 600;
  text-decoration: none;
}
.duel-foot-anchor:hover { text-decoration: underline; }

/* ---- Plan cards (Section 2) ---- */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.plan-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.8rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--color-border-strong);
}
.plan-card.vendor-jobber::before { background: var(--color-jobber); }
.plan-card.vendor-hcp::before { background: var(--color-hcp); }

.plan-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.plan-ident {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.plan-card .vendor-name {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.016em;
}
.plan-card .vendor-sub {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--color-surface-sub);
  color: var(--color-text-muted);
  border: 0;
  white-space: nowrap;
}
.badge.is-public { background: var(--color-good-soft); color: var(--color-good); }
.badge.is-demo { background: var(--color-hcp-soft); color: var(--color-hcp-ink); }
.badge.is-quote { background: var(--color-warn-soft); color: var(--color-warn-ink); }
.badge.is-trial { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.badge.is-fallback { background: var(--color-surface-sub); color: var(--color-text-soft); }

.plan-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.plan-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-border);
}
.plan-row:first-child { border-top: 0; padding-top: 0.1rem; }
.plan-row-left { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.plan-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.plan-meta {
  font-size: 0.82rem;
  color: var(--color-text-soft);
}
.plan-row-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.plan-price {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.plan-price span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-soft);
  letter-spacing: 0;
  margin-left: 0.1rem;
}
.plan-billing {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--color-text-soft);
}

.plan-meta-list {
  list-style: none;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.plan-meta-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.6rem;
  align-items: baseline;
}
.plan-meta-list .meta-key {
  font-weight: 650;
  color: var(--color-text);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

/* ---- Team-size grid (Section 3) ---- */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.size-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.size-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.size-card.is-active,
.size-card.is-highlight {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent-soft);
}
.size-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
}
.size-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.size-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.size-sub {
  font-size: 0.74rem;
  color: var(--color-text-soft);
  margin-top: 0.12rem;
}
.size-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  background: var(--color-bg-soft);
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.size-tag.is-good { background: var(--color-good-soft); color: var(--color-good); border-color: #c4dccb; }
.size-tag.is-warn { background: var(--color-warn-soft); color: var(--color-warn-ink); border-color: var(--color-warn-border); }

.size-vendors {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.size-vendor {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}
.size-vendor.vendor-jobber { border-left: 3px solid var(--color-jobber); }
.size-vendor.vendor-hcp { border-left: 3px solid var(--color-hcp); }
.size-vendor .vendor-tag {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--color-text);
}
.size-vendor .size-price {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-align: right;
  line-height: 1.1;
}
.size-vendor .size-price span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-soft);
}
.size-vendor .size-plan {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  color: var(--color-text-soft);
  margin-top: 0.1rem;
}
.size-note {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  line-height: 1.4;
  margin: 0;
}
.size-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-warn-ink);
  background: var(--color-warn-soft);
  border: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  align-self: flex-start;
}
.size-flag svg { width: 11px; height: 11px; color: var(--color-warn); }

/* ---- Workflow fit (Section 4) ---- */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.workflow-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-xs);
}
.workflow-block-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.workflow-block-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.014em;
  margin: 0;
}
.workflow-glyph {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.workflow-glyph svg { width: 18px; height: 18px; }
.workflow-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.workflow-card {
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  position: relative;
}
.workflow-card.vendor-jobber { border-left: 3px solid var(--color-jobber); }
.workflow-card.vendor-hcp { border-left: 3px solid var(--color-hcp); }
.workflow-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workflow-card.vendor-jobber .workflow-card-tag { color: var(--color-jobber); }
.workflow-card.vendor-hcp .workflow-card-tag { color: var(--color-hcp); }
.workflow-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.workflow-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.workflow-card .src {
  font-size: 0.78rem;
  color: var(--color-text-soft);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.5rem;
  margin-top: auto;
}
.workflow-card .src a { color: var(--color-text-muted); }
.workflow-foot {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ---- Unknowns (Section 5) ---- */
.unknowns-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
}
.unknowns-grid li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 3px solid var(--color-warn);
}
.unk-key {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.unk-body {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ---- Alternatives (Section 6) ---- */
.alt-grid {
  display: grid;
  /* Five items balance as 3 + 2 on desktop, not a 4 + 1 orphan */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.alt-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.alt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-text-soft);
}
.alt-why {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-accent-soft);
  border: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  align-self: flex-start;
}
.alt-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.alt-glyph {
  width: 32px;
  height: 32px;
  border-radius: 20%;
  background: var(--color-surface-sub);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}
.alt-glyph svg { width: 15px; height: 15px; }
.alt-card .vendor-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}
.alt-body {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}
.alt-card .badges { margin-top: auto; }
.alt-card .btn { align-self: flex-start; }

/* ---- Trust grid (Section 7) ---- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.trust-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.trust-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}
.trust-glyph {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--color-accent-soft);
  color: var(--color-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-glyph svg { width: 17px; height: 17px; }
.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0;
}
.trust-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 0.5rem;
}
.trust-card details { margin-top: 0.55rem; }
.trust-card details summary {
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--color-accent);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.trust-card details summary::-webkit-details-marker { display: none; }
.trust-card details summary::after {
  content: "+";
  color: var(--color-text-soft);
  font-weight: 500;
  font-size: 1rem;
}
.trust-card details[open] summary::after { content: "−"; }
.trust-card details > *:not(summary) { margin-top: 0.65rem; }
.trust-card ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.trust-card ul li { margin-bottom: 0.3rem; }

.ledger-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 540px;
}
.ledger-table th, .ledger-table td {
  padding: 0.55rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.ledger-table thead th {
  background: var(--color-surface-sub);
  font-weight: 700;
  color: var(--color-text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--color-surface-sub);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.ledger-table a { white-space: nowrap; }
.ledger-table td:last-child { white-space: nowrap; }

/* ---- FAQ (Section 8) ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
.faq-item[open] {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-xs);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.25rem;
  font-weight: 650;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--color-text-soft);
  font-weight: 500;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--color-accent); }
.faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-body p { margin: 0; }

/* ---- Final CTA (Section 9) — dark band ---- */
.section.band-deep .section-head h2,
.section.band-deep h2 {
  color: var(--color-text-on-dark);
}
/* Final CTA buttons read clearly against the dark band: lighter
   vendor fills + a defining light ring. Labels unchanged. */
.section.band-deep .btn {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(0, 0, 0, 0.38);
}
.section.band-deep .btn-jobber {
  background: #1c7a54;
  border-color: #38a878;
}
.section.band-deep .btn-jobber:hover {
  background: #23916a;
  border-color: #4cc08c;
}
.section.band-deep .btn-hcp {
  background: #1772bf;
  border-color: #57a5e0;
}
.section.band-deep .btn-hcp:hover {
  background: #1a78c8;
  border-color: #74b7ea;
}
/* On the deep-teal band the primary stays a solid teal (slightly
   lifted, like the green/blue buttons are) and relies on the shared
   light ring above to separate from the band — so the CTA row reads
   as one consistent solid set, never a stray white button. */
.section.band-deep .btn-primary {
  background: #0c7c8e;
  border-color: #2f9aa8;
}
.section.band-deep .btn-primary:hover {
  background: #0e8294;
  border-color: #46abb7;
}
.final-cta {
  text-align: center;
  padding: 1rem 0;
  max-width: 760px;
  margin: 0 auto;
}
.final-cta .eyebrow {
  display: inline-flex;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.final-cta .eyebrow::before, .final-cta .eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
  align-self: center;
}
.final-cta h2 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.024em;
}
.final-cta p {
  color: var(--color-text-on-dark-soft);
  max-width: 580px;
  margin: 0 auto 1.6rem;
  font-size: 1.02rem;
  line-height: 1.55;
}
.final-cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.final-cta-note {
  margin-top: 1.1rem;
  color: var(--color-text-on-dark-soft);
  font-size: 0.82rem;
  opacity: 0.85;
}

/* ---- Footer ---- */
footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.85rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  background: var(--color-bg-soft);
}
footer.site-footer p { margin: 0; }
footer.site-footer .footer-inner {
  display: grid;
  gap: 0.8rem;
}
footer.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}
footer.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  font-weight: 650;
  text-decoration: none;
}
footer.site-footer .footer-links a:hover,
footer.site-footer .footer-links a:focus-visible {
  color: var(--color-accent);
  text-decoration: none;
}

/* ---- Root and trust-shell pages ---- */
.trust-shell {
  min-height: 100vh;
  background: var(--color-bg);
}
.trust-shell .trust-page-head {
  padding: 3.25rem 0 2.6rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.trust-shell .trust-page-head .eyebrow {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}
.trust-shell .trust-page-head h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 1.7vw + 1.35rem, 3rem);
}
.trust-shell .trust-page-head p {
  max-width: 760px;
  margin: 0.9rem 0 0;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}
.trust-shell .trust-page-body {
  padding: 3rem 0 4rem;
}
.trust-shell .trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 2.5rem;
  align-items: start;
}
.trust-shell .trust-copy {
  max-width: 780px;
  display: grid;
  gap: 2rem;
}
.trust-shell .trust-copy section {
  scroll-margin-top: 80px;
}
.trust-shell .trust-copy h2 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}
.trust-shell .trust-copy h3 {
  margin: 1rem 0 0.4rem;
}
.trust-shell .trust-copy p,
.trust-shell .trust-copy li {
  color: var(--color-text-muted);
}
.trust-shell .trust-copy ul,
.trust-shell .trust-copy ol {
  padding-left: 1.2rem;
}
.trust-shell .trust-copy li + li {
  margin-top: 0.45rem;
}
.trust-shell .trust-aside {
  position: sticky;
  top: 88px;
  padding-left: 1.15rem;
  border-left: 2px solid var(--color-border);
}
.trust-shell .trust-aside strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--color-text);
}
.trust-shell .trust-aside a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  font-weight: 650;
  text-decoration: none;
}
.trust-shell .trust-aside a:hover,
.trust-shell .trust-aside a:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
}
.trust-shell .trust-note {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-soft);
  color: var(--color-text-muted);
}
.trust-shell .route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.trust-shell .route-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}
.trust-shell .route-card h2,
.trust-shell .route-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.trust-shell .route-card p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}
.trust-shell .route-card a {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
}

/* ---- ServiceSoftwareGuide home ---- */
.home-shell .home-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background:
    linear-gradient(112deg, rgba(11, 58, 74, 0.985) 0%, rgba(11, 58, 74, 0.965) 58%, rgba(15, 83, 101, 0.94) 100%);
  border-bottom: 0;
  color: #fff;
}
.home-shell .home-hero::after {
  content: "";
  position: absolute;
  width: 31rem;
  height: 31rem;
  right: -9rem;
  top: -15rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 4.5rem rgba(255, 255, 255, 0.025), 0 0 0 9rem rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.home-shell .home-hero .eyebrow {
  color: #a9e5dd;
  letter-spacing: 0.13em;
}
.home-shell .home-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.home-shell .home-hero-copy > p {
  max-width: 660px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1.8rem;
}
.home-shell .home-hero-actions .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--color-accent-ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.home-shell .home-hero-actions .btn-primary:hover,
.home-shell .home-hero-actions .btn-primary:focus-visible {
  background: #eaf7f5;
  border-color: #eaf7f5;
}
.home-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  text-underline-offset: 0.24em;
}
.home-research-card {
  padding: 1.55rem 1.65rem 1.4rem;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}
.home-research-kicker,
.home-section-kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: #91d9d0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.home-research-card h2 {
  max-width: 15ch;
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.15;
}
.home-research-steps {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
}
.home-research-steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  padding: 0.82rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.home-research-steps li > span {
  color: #91d9d0;
  font: 700 0.72rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.home-research-steps strong,
.home-research-steps small {
  display: block;
}
.home-research-steps strong { color: #fff; }
.home-research-steps small {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.45;
}
.home-shell .home-research-card .home-research-foot {
  margin: 0.8rem 0 0;
  color: #b8eee8;
  font-size: 0.78rem;
  font-weight: 700;
}
.home-shell .trust-page-body {
  padding: 4.25rem 0 5rem;
}
.home-shell .home-copy {
  max-width: none;
  gap: 4.5rem;
}
.home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.35rem;
}
.home-section-head h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  line-height: 1.12;
}
.home-shell .home-section-kicker { color: var(--color-accent); }
.home-section-head > p {
  max-width: 390px;
  margin: 0;
  font-size: 0.9rem;
}
.home-shell .route-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.home-shell .route-card {
  position: relative;
  min-height: 238px;
  padding: 1.4rem 1.45rem 1.3rem;
  border-radius: var(--radius-md);
  border-color: #cedde0;
  box-shadow: 0 10px 30px rgba(20, 45, 54, 0.045);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.home-shell .route-card:hover {
  transform: translateY(-2px);
  border-color: #99bbc2;
  box-shadow: 0 16px 34px rgba(20, 45, 54, 0.08);
}
.home-shell .route-card.is-featured {
  background: var(--color-accent-soft);
  border-color: #a9cdd3;
}
.route-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--color-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.route-card-meta span:last-child {
  color: var(--color-text-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.home-shell .route-card h3 {
  max-width: 18ch;
  font-size: 1.28rem;
  line-height: 1.2;
}
.home-shell .route-card p {
  max-width: 48ch;
  font-size: 0.9rem;
  line-height: 1.58;
}
.home-shell .route-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-accent-ink);
  text-underline-offset: 0.2em;
}
.home-trust {
  padding-top: 3.8rem;
  border-top: 1px solid var(--color-border);
}
.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.home-trust-grid article {
  padding: 1.35rem 1.25rem 1.45rem;
  border-right: 1px solid var(--color-border);
}
.home-trust-grid article:last-child { border-right: 0; }
.home-trust-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font: 800 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.home-trust-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}
.home-trust-grid p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .trust-shell .trust-page-head {
    padding: 2.35rem 0 2rem;
  }
  .trust-shell .trust-layout {
    grid-template-columns: 1fr;
  }
  .trust-shell .trust-aside {
    position: static;
    order: -1;
    padding-left: 0;
    border-left: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .trust-shell .trust-aside nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.9rem;
  }
  .trust-shell .route-grid {
    grid-template-columns: 1fr;
  }
  .home-shell .home-hero { padding: 3.2rem 0 3.4rem; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .home-shell .home-hero h1 { font-size: clamp(2.5rem, 12vw, 3.75rem); }
  .home-research-card { padding: 1.35rem 1.3rem 1.2rem; }
  .home-shell .trust-page-body { padding: 3rem 0 4rem; }
  .home-shell .home-copy { gap: 3.4rem; }
  .home-section-head { display: block; }
  .home-section-head > p { margin-top: 0.8rem; }
  .home-shell .route-grid { grid-template-columns: 1fr; }
  .home-shell .route-card { min-height: 210px; }
  .home-trust { padding-top: 2.8rem; }
  .home-trust-grid { grid-template-columns: 1fr 1fr; }
  .home-trust-grid article { border-bottom: 1px solid var(--color-border); }
  .home-trust-grid article:nth-child(2) { border-right: 0; }
  .home-trust-grid article:nth-child(3),
  .home-trust-grid article:nth-child(4) { border-bottom: 0; }
}

@media (max-width: 430px) {
  .home-hero-actions { align-items: stretch; }
  .home-hero-actions .btn { width: 100%; }
  .home-text-link { justify-content: center; }
  .home-trust-grid { grid-template-columns: 1fr; }
  .home-trust-grid article,
  .home-trust-grid article:nth-child(2),
  .home-trust-grid article:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .home-trust-grid article:last-child { border-bottom: 0; }
}

/* ---- Utilities ---- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.muted { color: var(--color-text-soft); }
.sm { font-size: 0.86rem; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Static answer system (Section 1.5) ---- */
/* Full-width panel so it is consistent with the source strip and
   answer grid below it (no orphaned half-width block). Prose stays
   at a readable measure; the three scenarios use the width. */
.short-answer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-xs);
}
.short-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}
.short-answer strong { font-variant-numeric: tabular-nums; }

/* Lead conclusion, then a scannable 3-column scenario ledger
   instead of a single dense paragraph. */
.short-answer-lead {
  font-weight: 600;
  color: var(--color-text);
}
/* Compact label that names the three sa-row panels as one scenario
   ribbon, so the trio reads as a single calm strip instead of three
   competing decision cards. */
.short-answer-scenarios-label {
  margin: 1.4rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.short-answer-scenarios {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
/* Each scenario is a quiet inset panel inside the scenario ribbon —
   shared top accent strip ties them together, so the row reads as
   one decision ledger instead of three competing pill cards. */
.sa-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.sa-row::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--color-accent);
  opacity: 0.55;
}
.sa-row dt {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-accent-soft);
  border: 0;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}
.sa-row dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
/* Primary-answer line inside an sa-row — sets the buyer takeaway
   before any per-vendor fact list. */
.sa-lead {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--color-text);
}
/* Compact per-vendor fact rows inside an sa-row. Stacked on every
   width because the parent dl is itself a multi-column scenario
   grid — keeping rows narrow avoids cramped pills + price lines. */
.sa-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.sa-facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-text);
}
.sa-facts strong { font-variant-numeric: tabular-nums; }
.short-answer-note {
  margin-top: 1.5rem !important;
  font-size: 0.9rem !important;
  color: var(--color-text-muted) !important;
}
.short-answer-caveat {
  margin-top: 1.1rem !important;
  padding-top: 1rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.84rem !important;
  color: var(--color-text-soft) !important;
}

/* Quiet top methodology line: low-emphasis supporting text between
   the short answer and the source strip. Not a card. */
.short-method {
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.source-strip {
  margin-top: 1.5rem;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.source-strip-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.6rem;
}
.source-strip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
}
.source-strip-list li {
  position: relative;
  font-size: 0.85rem;
  padding-right: 1.1rem;
}
.source-strip-list li::after {
  content: "·";
  position: absolute;
  right: 0.4rem;
  color: var(--color-text-soft);
}
.source-strip-list li:last-child { padding-right: 0; }
.source-strip-list li:last-child::after { content: ""; }
.source-strip-list a { color: var(--color-accent); word-break: break-word; }
.source-strip-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: center;
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}
.source-strip-dates strong { color: var(--color-text); font-weight: 650; }
.source-strip-ledger {
  margin-left: auto;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.source-strip-ledger:hover { text-decoration: underline; }

.answer-grid {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.answer-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.answer-block h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0;
}

/* Featured answer card: full-width row in the answer grid that carries
   the page's primary buyer question with a head-to-head price stack
   instead of a bulleted fact list. Visual hierarchy lift so the seven
   answer blocks don't all read at the same weight. */
.answer-block.is-featured {
  grid-column: 1 / -1;
  padding: 1.6rem 1.75rem 1.7rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-surface-sub) 100%);
  border-left: 3px solid var(--color-accent);
  gap: 0.85rem;
}
.answer-featured-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.answer-featured-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-accent-soft);
  border: 0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}
.answer-block.is-featured h3 {
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.3rem);
  line-height: 1.2;
}
.answer-block.is-featured .answer-lead {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Price-stack: two vendor mini-panels side by side with a center "vs",
   used inside the featured answer card. Vendor identity is the left
   border + the vendor-mini pill; the price itself is the strongest
   typographic anchor. Collapses to a single column on tablet/mobile. */
.answer-pricestack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
}
.ps-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem 1.1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.ps-side.ps-jobber { border-left: 3px solid var(--color-jobber); }
.ps-side.ps-hcp { border-left: 3px solid var(--color-hcp); }
.ps-side .vendor-mini { align-self: flex-start; }
.ps-price {
  font-size: clamp(1.85rem, 1.4vw + 1.15rem, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-text);
  margin-top: 0.2rem;
}
.ps-unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-left: 0.15rem;
  letter-spacing: 0;
}
.ps-meta {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  line-height: 1.45;
}
.ps-foot {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding-top: 0.5rem;
  margin-top: auto;
  border-top: 1px dashed var(--color-border);
  line-height: 1.45;
}
.ps-vs {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-text-soft);
  text-transform: uppercase;
  box-shadow: var(--shadow-xs);
}
.answer-conclusion {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
}
/* Primary-answer line: one calm bolded sentence that gives the
   takeaway before any vendor-by-vendor list. Sits directly under
   the question h3 in repaired answer blocks. */
.answer-lead {
  margin: 0;
  font-size: 0.97rem;
  font-weight: 650;
  line-height: 1.4;
  color: var(--color-text);
}
/* Vendor-labeled or category-labeled fact rows — one fact per row,
   pill on the left, prose on the right. Wraps cleanly on mobile so
   long pricing lines never clip or push the card sideways. */
.answer-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.answer-facts li {
  display: grid;
  grid-template-columns: minmax(112px, max-content) 1fr;
  gap: 0.35rem 0.7rem;
  align-items: baseline;
  padding: 0.5rem 0.7rem;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
}
.answer-facts strong { font-variant-numeric: tabular-nums; }
.answer-facts a { color: var(--color-accent); }

/* Vendor identity mini-pill: used inside fact rows to label which
   vendor a fact belongs to. Subtle tint only; identity strong
   enough to scan, never loud enough to read as a vendor badge or
   endorsement. */
.vendor-mini {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: start;
}
.vendor-mini.is-jobber { color: var(--color-jobber-ink); background: var(--color-jobber-soft); }
.vendor-mini.is-hcp { color: var(--color-hcp-ink); background: var(--color-hcp-soft); }
.vendor-mini.is-neutral {
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 0;
}

/* Neutral category label (intro/standard/trial/compare/etc.) — same
   shape as vendor-mini but quieter, for non-vendor fact rows. */
.fact-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding: 0.24rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface);
  white-space: nowrap;
  align-self: start;
}
.answer-caveat {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-warn-ink);
  background: var(--color-warn-soft);
  border: 1px solid var(--color-warn-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
}
.answer-src {
  margin: auto 0 0;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  border-top: 1px dashed var(--color-border);
  padding-top: 0.55rem;
  line-height: 1.5;
  word-break: break-word;
}
.answer-src a { color: var(--color-text-muted); }
.answer-src code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--color-surface-sub);
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
  color: var(--color-text-muted);
}

/* ---- Scenario routing line (inside duel module) ----
   Neutral "what buyers in this scenario do next" strip. Accent-tinted
   so it reads as the click-orientation cue, visually distinct from the
   amber compliance caveat below it. */
.duel-route {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 1.1rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--color-accent-soft);
  border: 1px solid #bcd6dc;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-accent-ink);
}
.duel-route-label {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 0;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.duel-route-text { flex: 1; min-width: 12rem; }

/* ---- In-page jump nav ----
   Self-routing control so buyers can skip the repeated answer surface
   instead of scrolling a wall. Plain crawlable anchors to existing
   query-aligned section IDs. */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.75rem 1rem;
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.jump-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-right: 0.25rem;
}
.jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-surface);
  transition: background-color 130ms ease, color 130ms ease;
}
.jump-nav a:hover,
.jump-nav a:focus-visible {
  background: var(--color-accent);
  color: #fff;
  outline: none;
}

/* Quiet framing label so the seven answer blocks read as a skimmable
   reference, not seven competing decision cards. Not a heading — it
   must not disturb the mandated H2 architecture. */
.answer-grid-label {
  margin: 1.85rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.answer-grid-label + .answer-grid { margin-top: 0.9rem; }

/* Alternatives: buyer-fit routing line */
.alt-when {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-surface-sub);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
}

/* ---- Responsive: tablet / 1020px ---- */
@media (max-width: 1080px) {
  .duel { grid-template-columns: 1fr; }
  .duel-vs { padding: 0.2rem 0; }
  .duel-vs span { width: 32px; height: 32px; font-size: 0.65rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: 1fr 1fr; }
  .workflow-pair { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .answer-grid { grid-template-columns: 1fr; }
  .alt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* keep the fifth alternative from rendering as a half-width orphan */
  .alt-card:last-child { grid-column: 1 / -1; }

  /* Featured answer collapses to a single column with the price stack
     stacked, so the head-to-head still reads but doesn't horizontally
     overflow the narrower column. */
  .answer-block.is-featured { padding: 1.4rem 1.5rem 1.5rem; }
  .answer-pricestack {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .ps-vs { display: none; }
}

/* ---- Responsive: mobile / 640px ---- */
@media (max-width: 640px) {
  :root { --container-pad: 1.1rem; }
  body { font-size: 15.5px; }
  h1 { font-size: clamp(1.85rem, 5vw + 1rem, 2.5rem); letter-spacing: -0.024em; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .hero-lede { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero-trust {
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
  }
  .section { padding: 2.75rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .topbar-meta { display: none; }
  .topbar-inner { padding: 0.75rem 0; }

  .duel-module { padding: 1rem 1rem 1.15rem; border-radius: var(--radius-lg); }
  .duel-prompt { gap: 0.55rem; }
  .chips { flex-wrap: wrap; gap: 0.3rem; }
  .chip { font-size: 0.8rem; padding: 0.52rem 0.76rem; }
  .duel { gap: 0.6rem; }
  .duel-vs { display: none; }
  .duel-card { padding: 1.05rem 1.1rem 1.15rem; }
  .price-amount { font-size: 2.1rem; }
  .duel-foot { font-size: 0.8rem; }

  .plan-card { padding: 1.4rem; gap: 1rem; }
  .plan-card-head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .plan-card .vendor-name { font-size: 1.18rem; }
  .plan-row { grid-template-columns: 1fr; }
  .plan-row-right { text-align: left; }
  .plan-meta-list li { grid-template-columns: 88px 1fr; gap: 0.4rem; }

  .size-grid { grid-template-columns: 1fr; gap: 0.85rem; }

  .workflow-block { padding: 1.25rem 1.25rem; }
  .workflow-card { padding: 1rem 1.05rem; }

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

  /* Scenario badge drops to its own row instead of clipping */
  .duel-card-head { grid-template-columns: auto minmax(0, 1fr); }
  .duel-context {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    max-width: none;
    margin-top: 0.1rem;
  }

  .duel-route { padding: 0.7rem 0.85rem; font-size: 0.86rem; }
  .duel-route-text { min-width: 0; }
  .jump-nav { padding: 0.7rem 0.85rem; }
  .jump-nav-label { width: 100%; margin: 0 0 0.15rem; }
  .jump-nav a { font-size: 0.82rem; padding: 0.45rem 0.68rem; }

  .short-answer { padding: 1.25rem 1.2rem; }
  /* On phones the three scenario panels stack into one column. */
  .short-answer-scenarios { grid-template-columns: 1fr; gap: 0.7rem; }
  .sa-row { padding: 0.95rem 1rem 1.05rem; }

  .answer-block { padding: 1.1rem 1.15rem 1.15rem; }
  .answer-block.is-featured { padding: 1.2rem 1.2rem 1.3rem; }
  .answer-block.is-featured h3 { font-size: 1.08rem; }
  .answer-block.is-featured .answer-lead { font-size: 0.95rem; }
  .ps-side { padding: 0.85rem 1rem 0.95rem; }
  .ps-price { font-size: 1.85rem; }
  /* On phones, drop the pill above the prose so long price lines
     don't get squeezed beside a fixed-width label. */
  .answer-facts li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding: 0.55rem 0.7rem;
  }
  .sa-facts li { padding: 0.5rem 0.65rem; }
  .source-strip { padding: 0.9rem 1rem; }
  .source-strip-dates {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .source-strip-ledger { margin-left: 0; }

  /* Source ledger stays usable at 390px / 360px without removing
     any source URL or checked date */
  .ledger-table { min-width: 0; font-size: 0.78rem; }
  .ledger-table th, .ledger-table td { padding: 0.45rem 0.5rem; }
  .ledger-table code { font-size: 0.7rem; padding: 0.08rem 0.28rem; }

  .trust-card { padding: 1.3rem 1.35rem; }

  .faq-item summary { padding: 0.95rem 1.1rem; font-size: 0.94rem; }
  .faq-body { padding: 0 1.1rem 1.05rem; }

  .final-cta-row { flex-direction: column; }
  .final-cta-row .btn { width: 100%; }

}

@media print {
  .section.band-deep { background: #fff; color: #0b1217; --color-text-on-dark: #0b1217; --color-text-on-dark-soft: #3f4a55; }
  .btn.btn-primary, .btn.btn-primary:hover, .section.band-deep .btn.btn-primary, .section.band-deep .btn.btn-primary:hover, .chip[aria-pressed="true"] { background: #fff; color: #0b1217; }
  .topbar { position: static; }
  .plan-card, .alt-card, .workflow-card, .faq-item, .size-card, .duel-card, .answer-block { break-inside: avoid; }
  .hero-motif { display: none; }
}
