/* =====================================================
   enclawed-enclaved — website styles
   Brand: #1F3A5F (matches pitch deck + roadmap + whitepapers)
   ===================================================== */

:root {
  /* === Brand (constant across themes) === */
  --brand: #1F3A5F;
  --brand-light: #4A6B96;
  --brand-dark: #14283F;
  --accent: #8B0000;
  --green: #1F4F1F;
  --green-pulse-strong: rgba(31, 79, 31, 0.55);
  --green-pulse-light:  rgba(31, 79, 31, 0.12);

  /* === Confusion-matrix outcomes (light theme) === */
  /* Bright enough to be assertive on white; dark enough to stay legible. */
  --matrix-good: #15803d;   /* tailwind green-700 */
  --matrix-bad:  #b91c1c;   /* tailwind red-700 */

  /* === Surfaces (light) === */
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --header-bg: rgba(255, 255, 255, 0.92);
  --green-bg: #E8F4EC;
  --warn-bg: #FFF4E5;
  --info-bg: #F0F4F9;

  /* === Text (light) === */
  --text: #1A2230;
  --text-muted: #5A6376;
  --text-faint: #8892A6;
  --text-on-brand: #FFFFFF;

  /* === Borders (light) === */
  --border: #E2E8F0;
  --border-strong: #CBD5E0;

  /* === Shadows (light) === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 12px rgba(31,58,95,0.06), 0 2px 4px rgba(31,58,95,0.04);
  --shadow-lg: 0 10px 30px rgba(31,58,95,0.10), 0 4px 8px rgba(31,58,95,0.06);

  /* === Layout === */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] {
  /* Brand stays — it's our identity. Lighter variant for dark contrast. */
  --brand: #6E96C8;
  --brand-light: #9AB3D9;
  --brand-dark: #4A6B96;

  /* Brighter accent red so the brand-red headings, marquee accents, and
     the Co-design Partnership "Strategic" flag pop on dark surfaces.
     Light theme uses #8B0000 (deep brand red); dark theme uses a coral-
     leaning brighter red that stays unmistakably in the same family but
     is legible against the dark navy background. */
  --accent: #ef6B6B;

  /* Brighter green so MIT-license tags, checkmarks, and status pills
     pop on dark surfaces (was #1F4F1F — far too dark on dark bg). */
  --green: #5DDB87;
  --green-pulse-strong: rgba(93, 219, 135, 0.55);
  --green-pulse-light:  rgba(93, 219, 135, 0.18);

  /* === Confusion-matrix outcomes (dark theme) === */
  /* Brighter so they read against the dark surface without blending in. */
  --matrix-good: #4ade80;   /* tailwind green-400 */
  --matrix-bad:  #f87171;   /* tailwind red-400 */

  /* Dark surfaces */
  --bg: #0B0F1A;
  --bg-alt: #111827;
  --surface: #131C2B;
  --surface-2: #1A2540;
  --header-bg: rgba(11, 15, 26, 0.88);
  --green-bg: #18301F;
  --warn-bg: #2A2014;
  --info-bg: #1A2540;

  /* Dark text */
  --text: #E8EDF5;
  --text-muted: #9AA4B8;
  --text-faint: #6B7588;
  --text-on-brand: #FFFFFF;

  /* Dark borders */
  --border: #243049;
  --border-strong: #34466A;

  /* Stronger shadows so they remain visible on dark surfaces */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 1px 3px rgba(0,0,0,0.45);
  --shadow: 0 4px 14px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.55);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.65);
}

/* Smooth theme transition */
html {
  transition: background-color 280ms ease, color 280ms ease;
}
body, .site-header, .problem-card, .comp-card, .layer, .vertical-card,
.overview-card, .founder-card, .hero-tag, .vertical-section-points li,
.vertical-section-eyebrow, .chip, .dropdown::before {
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    color 280ms ease,
    box-shadow 280ms ease;
}

/* === Animation primitives === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 var(--green-pulse-strong), 0 0 0 4px var(--green-pulse-light); }
  70%  { box-shadow: 0 0 0 10px transparent, 0 0 0 4px var(--green-pulse-light); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 4px var(--green-pulse-light); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes orbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-50px, 40px) scale(1.05); }
  50%      { transform: translate(40px, -30px) scale(0.95); }
  75%      { transform: translate(60px, 20px) scale(1.02); }
}
@keyframes orbitB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(80px, -60px) scale(1.1); }
  66%      { transform: translate(-30px, 50px) scale(0.9); }
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Reveal-on-scroll utilities (driven by IntersectionObserver in main.js) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 350ms; }
.reveal-stagger.in-view > *:nth-child(n+7) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-logo, .trust-dot, .hero-orb, .hero-orb-b, .marquee-track, .h1-shimmer {
    animation: none !important;
  }
}

/* === Scroll progress bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-light) 0%, var(--brand) 100%);
  z-index: 200;
  transition: width 80ms linear;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(31, 58, 95, 0.4);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* overflow-x: clip prevents horizontal viewport overflow on narrow
     phones (long URLs, unbreakable code tokens) WITHOUT establishing
     a new scroll container -- the older `overflow-x: hidden`
     silently disabled `position: sticky` on the header by becoming
     the nearest scroll ancestor. `clip` does the same overflow
     containment but does not create a scrolling context, so the
     site-header's sticky positioning continues to track the
     viewport on desktop. */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  /* Long unbreakable tokens in prose (URLs, code identifiers like
     enclawed-enclaved or skill-formal-bundle.mjs) wrap at any
     character if needed instead of pushing the parent box past the
     viewport. The visible behaviour: long URLs / identifiers may
     break mid-token on narrow phones, which is the expected mobile
     pattern. */
  overflow-wrap: anywhere;
  word-wrap: break-word;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: 'JetBrains Mono', 'Menlo', 'Monaco', 'Courier New', monospace; }

/* === Layout === */
.container {
  width: 100%;
  /* Page-wide cap pinned at 1200px. Prose blocks (.section-lead,
     .section-foot, .evidence-prose) and panel blocks (.layer-stack,
     .plans-footer, the various grids) all span this width with
     their padding, so every section reads at the same edges from
     header to footer. */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 18px 28px;
}
/* brand pinned left; links + theme toggle group on the right, with the
   theme toggle (in .nav-right, order 3) sitting to the right of Contact. */
.brand { margin-right: auto; flex: 0 0 auto; white-space: nowrap; padding-right: 2rem; }
.nav-links { order: 2; }
.nav-right { order: 3; margin-left: 24px; }
.brand {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--brand);
}
/* Nav brand mark — blue claw shield rendered as a plain <img> (the SVG is
   itself filled brand-blue, claw + padlock are transparent cut-outs). A plain
   image renders everywhere; the earlier CSS-mask approach did not. */
.brand-mark {
  height: 36px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}
/* Brand-mark theme swap (mirrors the .hero-logo swap): the light variant is a
   deeper blue that reads on the white light-mode nav; the dark variant is very
   light blue, almost white, so it pops on the dark-mode nav. */
.brand-mark.logo-dark,
.hero-brand-mark.logo-dark { display: none; }
[data-theme="dark"] .brand-mark.logo-light { display: none; }
[data-theme="dark"] .brand-mark.logo-dark { display: inline-block; }
[data-theme="dark"] .hero-brand-mark.logo-light { display: none; }
[data-theme="dark"] .hero-brand-mark.logo-dark { display: inline-block; }
.brand-accent { color: var(--brand-light); }
.tm {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 600;
  margin-left: 1px;
  opacity: 0.75;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.cta {
  background: var(--brand);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--brand-dark); color: #fff; }

/* === Dropdown menu === */
.has-dropdown {
  position: relative;
}
.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition);
}
.has-dropdown:hover .dropdown-arrow,
.has-dropdown:focus-within .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown {
  position: absolute;
  top: 100%;            /* flush with trigger — no hover dead-zone */
  right: 0;
  min-width: 280px;
  margin-top: 0;
  padding-top: 10px;    /* visual breathing room (transparent area) */
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}
.dropdown::before {
  /* visible card body — the actual menu surface */
  content: '';
  position: absolute;
  top: 10px; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: -1;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  display: flex;
}
.dropdown li:first-of-type a { padding-top: 14px; }
.dropdown li:last-of-type a { padding-bottom: 14px; }
.dropdown li {
  width: 100%;
  list-style: none;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 0;
  width: 100%;
}
.dropdown a:hover {
  background: var(--info-bg);
  color: var(--brand);
}
.dropdown-overview {
  font-weight: 600 !important;
  color: var(--brand) !important;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--info-bg);
  color: var(--brand);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dropdown a:hover .dropdown-icon {
  background: var(--brand);
  color: #fff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.theme-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1), opacity 280ms;
}
.theme-icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
.theme-icon-sun  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
[data-theme="dark"] .theme-icon-sun  { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }

/* Logo theme swap — specificity bumped to override .hero-logo's display: block */
.hero-logo.logo-dark { display: none; }
.hero-logo.logo-light { display: block; }
[data-theme="dark"] .hero-logo.logo-light { display: none; }
[data-theme="dark"] .hero-logo.logo-dark { display: block; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  border: 0;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* === Hero === */
.hero {
  position: relative;
  padding: 100px 0 90px;
  background:
    radial-gradient(ellipse at top right, rgba(31,58,95,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--info-bg) 0%, var(--bg) 100%);
  overflow: hidden;
}
/* Subtle grid pattern overlay (faded out at edges) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,58,95,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,58,95,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  z-index: 2;
}
/* Floating gradient orbs */
.hero-orb {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(74,107,150,0.22) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: orbit 22s ease-in-out infinite;
  z-index: 0;
}
.hero-orb-b {
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31,58,95,0.14) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: orbitB 26s ease-in-out infinite;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-bottom: 36px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(31, 58, 95, 0.18));
}
/* Compact brand lockup above the hero terminal: tinted claw mark + the
   enclawed-enclaved wordmark, laid out horizontally so it adds brand
   identity without eating vertical space. */
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 22px;
}
.hero-brand-mark {
  height: 56px;
  width: auto;
  flex: 0 0 auto;
}
.hero-brand-text {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand);
}

/* Hero terminal recording — the animated demo is the hero visual. */
.hero-terminal {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 14px;
}
.hero-terminal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.hero-terminal-cap {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 30px;
}
.hero-terminal-cap code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92em;
  color: var(--text);
}
.hero-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--brand);
  margin: 0 auto 24px;
  max-width: 900px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--brand-light);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 30%, #6E8FBF 50%, var(--brand-light) 70%, var(--brand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  /* Italic glyphs have positive right-side overshoot (the last letter's
     ink slants past the bounding box). Combined with background-clip: text,
     the overshoot falls outside the clipped region and renders transparent
     — so the last italic letter looks "cut off at the page margin".
     A small inline-block padding-right lets the overshoot stay inside the
     clipped region without affecting layout. */
  display: inline-block;
  padding-right: 0.1em;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.55;
}
.hero .lead em {
  font-style: italic;
  color: var(--text);
  font-weight: 500;
}
.hero-pitch {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 8px auto 56px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.55;
  background: var(--surface-alt, rgba(255,255,255,0.02));
}
.hero-pitch strong { color: var(--text); }
.hero-pitch em { font-style: italic; color: var(--text); }
.hero-pitch a { color: var(--brand-accent, var(--text)); text-decoration: underline; }
.hero-pitch code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.95em;
}
.migrate-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.migrate-cta-top {
  margin-top: 18px;
  margin-bottom: 28px;
}
.migrate-github {
  font-size: 1rem;
}
.btn-github svg {
  display: inline-block;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto 36px;
}
.hero-install-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-install-label code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.hero-install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(31, 58, 95, 0.18);
  border-radius: var(--radius-sm);
  background: #0F1E32;
  color: #E6F0FA;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  /* Allow wrapping at whitespace if the viewport is narrower than the line,
     so no horizontal scrollbar ever appears. The data-cmd attribute is the
     source of truth for the copy action, so visual wrapping is cosmetic. */
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  transition: border-color 0.15s, transform 0.05s, box-shadow 0.15s;
  position: relative;
}
.hero-install-cmd:hover {
  border-color: rgba(31, 58, 95, 0.4);
  box-shadow: 0 4px 14px rgba(15, 30, 50, 0.18);
}
.hero-install-cmd:active {
  transform: translateY(1px);
}
.hero-install-prompt {
  color: #6FC7E6;
  font-weight: 700;
  user-select: none;
  flex: 0 0 auto;
}
.hero-install-line {
  flex: 1 1 auto;
  min-width: 0;
}
.hero-install-hint {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(230, 240, 250, 0.08);
  color: #9EB7D1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: none;
  flex: 0 0 auto;
  min-width: 56px;
  text-align: center;
}
.hero-install-hint::before {
  content: "copy";
}
.hero-install-cmd.copied .hero-install-hint {
  background: var(--green, #1F4F1F);
  color: #FFFFFF;
}
.hero-install-cmd.copied .hero-install-hint::before {
  content: "copied!";
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 800px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-pulse-light);
  display: inline-block;
  animation: pulseRing 2.4s ease-in-out infinite;
}
.trust-item:nth-child(2) .trust-dot { animation-delay: 0.4s; }
.trust-item:nth-child(3) .trust-dot { animation-delay: 0.8s; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: var(--surface);
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* === Compliance-vocabulary marquee === */
.marquee-section {
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-dark) 100%);
  background-size: 200% auto;
  animation: gradShift 18s ease-in-out infinite;
  color: rgba(255,255,255,0.75);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-section::before, .marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--brand-dark), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--brand-dark), transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 70s linear infinite;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 36px;
  color: rgba(255,255,255,0.7);
  position: relative;
  display: inline-flex;
  align-items: center;
}
.marquee-item::after {
  content: '·';
  position: absolute;
  right: -2px;
  color: rgba(255,255,255,0.3);
  font-size: 1.2rem;
  font-weight: 700;
}
.marquee-item.accent { color: rgba(255,255,255,0.95); font-weight: 700; }

/* === Sections === */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  /* No max-width: the section-head spans the full container width so
     long titles ("From 1600 to 80,000 samples and across 10
     production LLMs ...") never wrap prematurely. The .section-lead
     paragraph below the H2 has its own readable-line-length cap so
     this width relaxation does not produce 1600px-wide prose. */
  margin-bottom: 56px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 18px;
}
.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.55;
  /* No max-width cap: the section-lead spans the full container so
     it visually matches the wider H2 above and the full-container-
     width panels / grids below it. The user explicitly preferred
     full-width prose over a strict ~80-character readable cap. */
}
/* Evidence-section prose blocks (explanatory paragraphs that used
   to be inline-styled at max-width: 820px; margin: ...em auto 0).
   Left-aligned and full-container-width so they share the section-
   head's left and right edges; reads as a continuous content
   column rather than centered islands. */
.evidence-prose {
  margin-top: 2.5em;
  line-height: 1.55;
}
.section-foot {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--surface);
  border-left: 4px solid var(--brand-light);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-style: italic;
  /* No max-width cap: matches the full-container-width panels above
     it so the closing recommendation reads at the same edge as the
     boxes the reader just scrolled through. */
  box-shadow: var(--shadow-sm);
}

/* === Problem grid === */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 280ms cubic-bezier(0.16,1,0.3,1),
              border-color 280ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(31, 58, 95, 0.18), 0 4px 12px rgba(31, 58, 95, 0.06);
  border-color: var(--brand-light);
}
.problem-card:hover::before { transform: scaleX(1); }
.problem-card-emphasis {
  background: linear-gradient(135deg, var(--surface) 0%, var(--warn-bg) 100%);
  border-color: #f4d4a4;
}
.problem-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
}
.problem-card p {
  color: var(--text);
  font-size: 0.98rem;
}
.problem-card-emphasis strong { color: var(--accent); }

/* === Solution / layer stack === */
.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* No cap: the layer cards span the full container width like the
     .overview-grid (Whitepapers) and .problem-grid (Migrate) blocks
     do, so the panel widths line up across adjacent sections instead
     of jumping from a narrow 920 panel to a full-container-width
     grid. */
}
.layer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow var(--transition);
}
.layer:hover { box-shadow: var(--shadow); }
.layer-closed {
  border-color: var(--brand);
  border-width: 2px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--info-bg) 100%);
}
.layer-oss {
  border-color: rgba(31,79,31,0.3);
}
.layer-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.layer-tag.closed {
  background: var(--brand);
  color: #fff;
}
.layer-tag.oss {
  background: var(--green-bg);
  color: var(--green);
}
.layer h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 14px;
}
.layer-desc {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 22px;
}
.feature-list {
  display: grid;
  gap: 10px;
}
.feature-list li {
  padding-left: 28px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
  font-size: 1.05rem;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 11px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all var(--transition);
  flex-wrap: wrap;
}
.github-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--info-bg);
  transform: translateY(-1px);
}
.github-link svg {
  flex-shrink: 0;
  color: var(--text);
  transition: color var(--transition);
}
.github-link:hover svg { color: var(--brand); }
.github-link-path {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-left: 10px;
  border-left: 1px solid var(--border-strong);
}
.github-link:hover .github-link-path { color: var(--brand-light); }

.layer-bridge {
  display: flex;
  justify-content: center;
  align-items: center;
}
.layer-bridge span {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-faint);
  font-style: italic;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
}

/* === Plans & support tier styling (re-uses .layer / .layer-stack) === */
.plan-tier-heading {
  margin: 22px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 10px;
  /* Wrap the inline flag below the title if the viewport is narrow
     (cell phones in portrait) so a long tier name + a flag never
     overflow horizontally. */
  flex-wrap: wrap;
}
.layer-closed .plan-tier-heading {
  color: var(--accent);
}
.plan-tier-flag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}
/* Right-aligned price label next to the tier heading. Same baseline
   as the heading text; lighter weight so it doesn't compete with the
   tier name as the primary scan target. */
.plan-tier-price {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* PayPal subscribe button for the priced OSS tiers. PayPal blue
   (#0070BA) so it reads as the official-payment-channel CTA even at
   a glance; subdued on hover. Inline-flex so the arrow tracks the
   text baseline. */
.plan-paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #0070BA;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.plan-paypal-btn:hover {
  background: #003087;
  transform: translateY(-1px);
}
.plan-paypal-btn:active {
  transform: translateY(0);
}

/* Contact-sales button for tiers above the PayPal self-serve threshold
   (Business, Enterprise, all Enclaved tiers, Co-design Partnership).
   Same shape as the PayPal subscribe button but in brand navy so the
   eye distinguishes "talk-to-us" CTA from "pay-now" CTA at a glance. */
.plan-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 14px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.plan-contact-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.plan-contact-btn:active {
  transform: translateY(0);
}
/* Paddle Checkout buttons for the self-serve tiers (Individual + Team
   in the comparison-table CTA row). Two buttons stack vertically in
   the cell: primary "Monthly" on top, secondary "Yearly" below. */
.plans-compare-cta .plan-paddle-btn {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 5px 6px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.plans-compare-cta .plan-paddle-btn:last-child {
  margin-bottom: 0;
}
.plans-compare-cta .plan-paddle-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.plans-compare-cta .plan-paddle-btn:active {
  transform: translateY(0);
}
.plans-compare-cta .plan-paddle-btn:disabled {
  background: var(--text-faint);
  border-color: var(--text-faint);
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}
.plans-compare-cta .plan-paddle-btn-alt {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.plans-compare-cta .plan-paddle-btn-alt:hover {
  background: var(--brand);
  color: #fff;
}
/* Softer flag variant for the OSS-side Indie / Startup-Small-Business
   badges, so they read as audience-targeting rather than competing
   visually with the proprietary "Strategic" flag. */
.plan-tier-flag-soft {
  background: var(--info-bg);
  color: var(--brand);
  border: 1px solid var(--border);
}
.plan-tier-line {
  margin: 0 0 4px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}
.plans-footer {
  margin-top: 36px;
  /* No max-width: matches the full-container-width .layer-stack
     above, the .overview-grid in the next section, and the
     .problem-grid in the previous section, so panel widths read as
     a single continuous column down the page. */
  padding: 24px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
}

/* Refund + cancellation + support-scope policy box. Sits below
   .plans-footer, framed like a legal-policy card so a reader scans
   it as "the binding small print" rather than as marketing prose. */
.plans-policy {
  margin-top: 24px;
  padding: 22px 36px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plans-policy-title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand);
}
.plans-policy-list {
  margin: 0;
  padding-left: 22px;
}
.plans-policy-list li {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

/* Microcopy under each subscribe button linking to the Terms */
.plan-agree-line {
  margin: -6px 0 12px;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}
.plan-agree-line a { color: var(--text-muted); text-decoration: underline; }

/* Two-button payment row: monthly + annual side by side. Wraps on
   narrow phones so neither button gets squeezed below ~120px wide. */
.plan-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
}
.plan-pay-row .plan-paypal-btn { margin: 0; }

/* Annual-prepay variant of the PayPal subscribe button. Slightly
   different shade so a scanner sees two options at a glance and
   "annual" looks like a complementary choice rather than a duplicate. */
.plan-paypal-btn-annual {
  background: var(--brand-dark);
}
.plan-paypal-btn-annual:hover {
  background: var(--brand);
}

/* Locked state: applied to sibling subscribe buttons once any one
   button on the page has been clicked, so a customer cannot
   accidentally start two PayPal subscriptions from the same page
   visit. Refresh resets the state. */
.plan-paypal-btn-locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: auto;  /* still capture clicks so JS can intercept */
}
.plan-paypal-btn-locked:hover { transform: none; }
.plan-pay-locked-hint {
  margin: 4px 0 12px;
  padding: 8px 12px;
  background: var(--warn-bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

/* === Legal pages (terms.html / privacy.html) === */
.legal-doc-header {
  margin-bottom: 36px;
}
.legal-doc-header h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  color: var(--brand);
  margin: 4px 0 10px;
  letter-spacing: -0.01em;
}
.legal-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}
.legal-section {
  margin-bottom: 28px;
}
.legal-section h2 {
  font-size: 1.25rem;
  color: var(--brand);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.legal-section p,
.legal-section ul {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 12px;
}
.legal-section ul {
  padding-left: 22px;
}
.legal-section ul li {
  margin-bottom: 6px;
}
.legal-note {
  padding: 16px 22px;
  background: var(--info-bg);
  border-left: 4px solid var(--brand-light);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  line-height: 1.6;
}
.legal-disclaimer {
  padding-top: 22px;
  border-top: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.nav-actions {
  display: flex;
  gap: 12px;
}
.plans-footer-line {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--text);
}

/* === Compliance grid === */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.comp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 280ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 280ms cubic-bezier(0.16,1,0.3,1),
              border-color 280ms cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.comp-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, rgba(31,58,95,0.08) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms;
}
.comp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(31, 58, 95, 0.18), 0 4px 10px rgba(31, 58, 95, 0.06);
  border-color: var(--brand-light);
}
.comp-card:hover::after { opacity: 1; }
.comp-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.status-now .comp-status {
  background: var(--green-bg);
  color: var(--green);
}
.status-soon .comp-status {
  background: var(--info-bg);
  color: var(--brand-light);
}
.comp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.comp-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* === Vertical grid === */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.vertical-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.vertical-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.vertical-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--info-bg);
  color: var(--brand);
  border-radius: var(--radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.vertical-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 10px;
}
.vertical-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* === Section header centered variant === */
.section-head-center {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 760px;
}
.section-head-center .section-lead { margin: 0 auto; }

/* === Overview grid (whitepapers summary section) === */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.overview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--brand-light);
}
.overview-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}
.overview-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 4px;
  line-height: 1.3;
}
.overview-meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.overview-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
  flex: 1;
}
.overview-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.overview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.overview-btn.primary {
  background: var(--brand);
  color: #fff;
}
.overview-btn.primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
}
.overview-btn.secondary {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-strong);
}
.overview-btn.secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* === Per-vertical detail sections === */
.vertical-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.vertical-section.section-alt { background: var(--bg-alt); }
.vertical-section:last-of-type { border-bottom: 0; }

.vertical-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 920px);
  justify-content: center;
}
.vertical-section-content {
  max-width: 920px;
}
.vertical-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-light);
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.vertical-section.section-alt .vertical-section-eyebrow { background: var(--surface); }
.vertical-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.vertical-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.vertical-section h2 em {
  font-style: italic;
  color: var(--brand-light);
  font-weight: 700;
}
.vertical-section .section-lead {
  font-size: 1.1rem;
  margin-bottom: 28px;
  max-width: none;
}
.vertical-section-points {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.vertical-section-points li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.55;
}
.vertical-section-points li::before {
  content: '▸';
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--brand-light);
  font-weight: 800;
  font-size: 0.95rem;
}
.vertical-section-points li strong {
  color: var(--brand);
  font-weight: 700;
}
.vertical-section.section-alt .vertical-section-points li {
  background: var(--surface);
}
.chips-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.vertical-section-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.chip {
  display: inline-block;
  padding: 5px 12px;
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
}
.vertical-section.section-alt .chip { background: var(--surface); }
.vertical-section-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-meta {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 10px;
  margin-left: 6px;
}

/* === Founder === */
.founder-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.founder-text p {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 18px;
  line-height: 1.65;
}
.founder-lead {
  font-size: 1.18rem !important;
  color: var(--brand) !important;
  font-weight: 500;
}
.founder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.founder-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}
.founder-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.founder-affil {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}
.founder-email {
  display: inline-block;
  color: var(--brand);
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--brand-light);
  word-break: break-all;
  padding-bottom: 1px;
}
.founder-email:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

/* === CTA section === */
.section-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent);
  border-radius: 50%;
}
.section-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  max-width: 900px;
  margin: 0 auto 18px;
  position: relative;
}
.cta-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  margin: 0 auto 36px;
  position: relative;
}
.section-cta .btn-primary {
  background: var(--surface);
  color: var(--brand);
  position: relative;
}
.section-cta .btn-primary:hover {
  background: var(--info-bg);
  color: var(--brand);
}
.cta-foot {
  margin-top: 24px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  position: relative;
}

/* === Footer === */
.site-footer {
  background: #0F1F33;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-cols {
  display: grid;
  /* Contact col widened to fit "alfredo.metere@enclawed.com" on one line */
  grid-template-columns: 1.6fr 1fr 1.5fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.footer-tag {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}
.footer-heading {
  font-size: 0.78rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-line {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  display: block;
  /* Allow long unbreakable strings (URLs, emails) to break only when
     truly necessary, instead of break-all which split mid-word. */
  overflow-wrap: anywhere;
}
/* Email links stay on one line — the column is sized to fit them. */
a.footer-line[href^="mailto:"] {
  white-space: nowrap;
  overflow-wrap: normal;
}
.footer-line-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  padding-left: 8px;
}
a.footer-line { transition: color var(--transition); }
a.footer-line:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-disclaimer {
  font-size: 0.78rem;
  font-style: italic;
  max-width: 600px;
  text-align: right;
}

/* === Responsive === */
@media (max-width: 960px) {
  .founder-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
  /* `!important` is required because <nav class="container nav-bar"> on
     the landing page picks up `.container { padding: 0 16px }` from the
     ≤480px breakpoint below, which would otherwise zero the vertical
     padding. */
  .nav-bar { padding: 14px 22px 24px !important; position: relative; }
  /* Shrink the brand on mobile so the hamburger + theme + lang controls
     in .nav-right fit on a 375–393px viewport. Without this, the brand
     wordmark ("enclawed™-enclaved" plus the 36px shield) plus
     .nav-right overflows the viewport's right edge, and the html-level
     `overflow-x: clip` then crops the hamburger out of sight — making
     the main menu unreachable. */
  .brand { padding-right: 0.5rem; min-width: 0; font-size: 1.2rem; }
  .brand .tm, .brand .brand-accent { display: none; }
  .brand-mark { height: 32px; margin-right: 0.5rem; }
  .nav-right { margin-left: auto; gap: 8px; }
  /* .nav-actions: the simpler two-button nav used on the apps pages
     (no hamburger). Labels are short on every apps page ("Home", "Demo",
     "← Apps"), so single-line is the contract — no flex-wrap. */
  .nav-actions {
    margin-left: auto;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
  }
  .nav-actions .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
  .hero-logo { max-width: 280px; margin-bottom: 28px; }
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 14px 22px 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-links a.cta {
    background: var(--brand);
    color: #fff;
    text-align: center;
    margin-top: 8px;
    padding: 12px 18px;
  }

  /* Mobile dropdown: render inline, always-expanded */
  .has-dropdown { width: 100%; }
  .has-dropdown > a { padding: 12px 0; }
  .dropdown-arrow { display: none; }
  .dropdown {
    position: static;
    display: flex !important;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
    border-left: 2px solid var(--border);
    margin-left: 4px;
    min-width: 0;
  }
  .dropdown a {
    padding: 8px 0 8px 12px;
    font-size: 0.88rem;
  }
  .dropdown-divider { display: none; }

  .hero { padding: 80px 0 60px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .layer { padding: 26px; }
  .layer h3 { font-size: 1.4rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-disclaimer { text-align: left; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-install-cmd { font-size: 0.78rem; padding: 12px 14px; gap: 8px; }
  .hero-install-hint { display: none; }

  /* === Plans-section responsive rules === */
  /* Tier headings stay inline at desktop but wrap on narrow widths
     thanks to flex-wrap above; ensure a sensible line-height so the
     wrapped flag doesn't crowd the title. */
  .plan-tier-heading { line-height: 1.4; }
  .plans-footer { padding: 18px 20px; }
  .plans-footer-line { font-size: 0.93rem; line-height: 1.6; }
}

/* Tighter rules for very narrow phones (e.g. iPhone SE in portrait
   at 375px CSS px) to avoid horizontal overflow on the wide
   compliance / status pills. */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .layer { padding: 22px; }
  .plan-tier-flag, .plan-tier-flag-soft {
    font-size: 0.65rem;
    padding: 2px 7px;
  }
  /* Marquee items get smaller so the bar still scrolls cleanly. */
  .marquee-item { font-size: 0.78rem; padding: 0 14px; }
}

/* Cell-phone landscape orientation: vertical room is the bottleneck
   (typical iPhone landscape is ~390px tall), so we compress hero
   padding and section padding to keep above-the-fold content
   readable. The width-based 720px breakpoint usually does not fire
   in landscape because most modern phones are wider than 720px on
   their long edge — this orientation rule fills that gap. */
@media (orientation: landscape) and (max-height: 480px) {
  .hero { padding: 56px 0 40px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-logo { max-width: 220px; margin-bottom: 18px; }
  .hero-tag { margin-bottom: 16px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .layer { padding: 22px; }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Focus states === */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* === Avoided-cost inline trigger with hover breakdown ===
   Used inside the .plans-compare table avoided-cost row. The cell shows
   only the dollar range; hovering (or keyboard focus) reveals the
   line-item breakdown so the figure doesn't read as plucked from air. */
.avoided-cost-trigger {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted currentColor;
  font-weight: 600;
  color: var(--text);
  display: inline-block;
}
.avoided-cost-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(calc(-50% + var(--tooltip-shift, 0px)));
  width: min(360px, 92vw);
  max-width: 92vw;
  box-sizing: border-box;
  background: var(--text);
  color: var(--bg);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  font-weight: normal;
  line-height: 1.5;
  z-index: 100;
  text-align: left;
  pointer-events: none;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}
.avoided-cost-tooltip ul,
.avoided-cost-tooltip li,
.avoided-cost-tooltip span {
  white-space: normal;
  overflow-wrap: break-word;
}
.avoided-cost-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
}
.avoided-cost-trigger:hover .avoided-cost-tooltip,
.avoided-cost-trigger:focus .avoided-cost-tooltip,
.avoided-cost-trigger:focus-within .avoided-cost-tooltip {
  display: block;
}
.avoided-cost-tooltip ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--bg);
}
.avoided-cost-tooltip li {
  margin: 0.18rem 0;
}
.avoided-cost-tooltip-total {
  display: block;
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

/* === Plans comparison table ===
   Seven tiers across the columns, feature rows down. The wrapper handles
   horizontal overflow on narrow screens; the scrollbar is styled thin and
   subtle so it doesn't dominate the visual. Sections are collapsible to
   keep the first view compact. */
.plans-compare-wrap {
  position: relative;
  overflow-x: auto;
  margin: 24px 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  /* Hide the scrollbar entirely across browsers — touch swipe,
     shift+wheel, trackpad horizontal scroll, and mouse drag-scroll
     (main.js section 6d) all still work. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.plans-compare-wrap.is-dragging {
  cursor: grabbing;
  user-select: none;
}
/* Interactive elements inside the wrap need their own cursor so the
   grab cursor doesn't override them. Buttons + links default to
   pointer; section-toggle ths and abbr/cost triggers set their own. */
.plans-compare-wrap a,
.plans-compare-wrap button {
  cursor: pointer;
}
.plans-compare-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
/* === .plans-compare-bleed ===
   Hosts the comparison table along with its left/right arrow buttons
   (for narrow viewports where the table can't fit) and the edge-fade
   gradients. Stays within .container's normal width — no breakout, no
   viewport-relative sizing — so the table never exceeds the page's
   standard content margin. */
.plans-compare-bleed {
  position: relative;
  width: 100%;
  margin: 28px 0 8px;
}
.plans-compare-bleed .plans-compare-wrap {
  margin: 0;
}
/* Carousel arrows and edge-fade gradients are intentionally hidden.
   The comparison table is sized to fit inside .container at every
   common viewport; on the genuinely narrow case (mobile portrait),
   drag-scroll (mouse) and native touch swipe handle horizontal
   navigation silently. The arrow / fade DOM elements are kept so a
   future re-enable is just CSS, but they never render right now. */
.plans-compare-arrow {
  display: none;
}
.plans-compare {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.74rem;
  line-height: 1.35;
  table-layout: auto;
  /* No min-width: the table fits its container at any width wide
     enough for the intrinsic min-content of nowrap cells (~650px
     after the padding + font tightening). Tablet, laptop, desktop
     all render the whole table without overflow; only true mobile
     portrait would need horizontal navigation, which is handled
     silently by drag-scroll (mouse) and native touch swipe. */
}
.plans-compare th,
.plans-compare td {
  padding: 0.38rem 0.4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.plans-compare thead th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}
.plans-compare thead th:first-child,
.plans-compare tbody th,
.plans-compare tfoot th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 2;
}
.plans-compare thead th:first-child {
  background: var(--bg-alt);
}
.plans-compare .plans-compare-price-row td {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  background: var(--bg-alt);
}
.plans-compare .plans-compare-price-row th {
  background: var(--bg-alt);
}
.plans-compare .plans-compare-avoided-row td {
  background: var(--bg-alt);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid var(--border-strong);
}
.plans-compare .plans-compare-avoided-row th {
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border-strong);
}
/* Avoided-cost row sits at the top of the table now (inside thead),
   so the tooltip points DOWNWARD instead of upward — otherwise the
   wrapper's overflow clips the top of the tooltip. */
.plans-compare-avoided-row .avoided-cost-tooltip {
  bottom: auto;
  top: calc(100% + 8px);
  transform: translateX(calc(-50% + var(--tooltip-shift, 0px)));
}
.plans-compare-avoided-row .avoided-cost-tooltip::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--text);
}
.plans-compare .plans-compare-category th {
  background: var(--bg);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  text-align: left;
  border-top: 1px solid var(--border-strong);
  cursor: pointer;
  user-select: none;
  position: relative;
}
.plans-compare .plans-compare-category th::before {
  content: '▾';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.15s ease;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.plans-compare-section.is-collapsed > tr.plans-compare-category > th::before {
  transform: rotate(-90deg);
}
.plans-compare-section.is-collapsed > tr:not(.plans-compare-category) {
  display: none;
}
.plans-compare .plans-compare-category th:hover {
  background: var(--bg-alt);
}
.plans-compare tbody tr:hover {
  background: var(--bg-alt);
}
.plans-compare tbody tr:hover th {
  background: var(--bg-alt);
}
.plans-compare-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}
.plans-compare abbr[title] {
  position: relative;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: help;
}
.plans-compare abbr[title]::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(calc(-50% + var(--tooltip-shift, 0px)));
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: normal;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: left;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}
.plans-compare abbr[title]::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 100;
}
.plans-compare abbr[title]:hover::after,
.plans-compare abbr[title]:hover::before,
.plans-compare abbr[title]:focus::after,
.plans-compare abbr[title]:focus::before {
  opacity: 1;
}
.plans-compare-dash {
  color: var(--text-faint);
}
.plans-compare tfoot th,
.plans-compare tfoot td {
  background: var(--bg-alt);
  border-top: 2px solid var(--border-strong);
}
.plans-compare-cta {
  padding: 0.8rem 0.4rem !important;
}
.plans-compare-cta .plan-contact-btn {
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
}
/* Tooltip horizontal positioning is now handled by JS in main.js,
   which sets --tooltip-shift on the trigger element based on the
   trigger's viewport position. The transform on .avoided-cost-tooltip
   reads --tooltip-shift to keep the tooltip on screen. */
@media (max-width: 720px) {
  .plans-compare th,
  .plans-compare td {
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
  }
}

/* === language dropdown (nav-right) === */
.lang-dd { position: relative; display: inline-block; }
.lang-dd > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.3em 0.7em; border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--text); background: var(--surface);
  user-select: none; transition: border-color 120ms; line-height: 1.2; white-space: nowrap;
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary::after { content: "\25BE"; opacity: 0.55; font-size: 0.9em; }
.lang-dd[open] > summary::after { content: "\25B4"; }
.lang-dd > summary:hover { border-color: var(--brand); }
.lang-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; left: auto;
  z-index: 1000; min-width: 12rem; max-height: 70vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 0.4rem;
}
.lang-dd-menu a, .lang-dd-menu strong {
  display: block; padding: 0.45em 0.75em; border-radius: 5px; text-decoration: none;
  font-size: 0.86rem; color: var(--text); white-space: nowrap; margin: 0; text-align: left;
}
.lang-dd-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-dd-menu strong { font-weight: 700; color: var(--brand); background: var(--bg-alt); }
@media (max-width: 640px) { .lang-dd-name { display: none; } }

/* === hero standards strip === */
.hero-standards { max-width: 660px; margin: 1.8rem auto 0; text-align: center; }
.hero-standards-label { display: block; font-size: 0.92rem; opacity: 0.85; margin-bottom: 0.8rem; }
.hero-standards-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.hero-standards-foot { display: block; font-size: 0.85rem; opacity: 0.7; margin-top: 0.9rem; font-style: italic; }
