/* ============================================================
   LAWTHENTICS EDITORIAL — design system
   Deep forest green · lime · warm cream · Playfair Display + Inter
   ============================================================ */

:root {
  /* Brand: teal #006861 · lime #B9DC1E (from logo) */
  --green-950: #03211E;
  --green-900: #052E2A;
  --green-850: #073A35;
  --green-800: #0A4740;
  --green-700: #0E5850;
  --green-600: #006861;
  --lime: #B9DC1E;
  --lime-soft: #D5EC66;
  --lime-dim: #93B312;
  --cream: #F5F2E9;
  --cream-dim: #ECE7D8;
  --ink: #132018;
  --ink-soft: #45544B;
  --white: #FDFCF8;
  --line-dark: rgba(245, 242, 233, 0.14);
  --line-light: rgba(19, 32, 24, 0.14);
  /* Playfair Display since v1.17.0 — Fraunces retired 2026-07-14 (Shaun:
     its wonky/swashy letterforms read as "squiggly"); Playfair keeps the
     high-contrast editorial voice with crisp, classical terminals */
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul[class], ol[class] { list-style: none; }
::selection { background: var(--lime); color: var(--green-950); }

/* ---- custom lime cursor (fine pointers only) ---------------
   Default: lime arrow, deep-green outline (visible on cream + dark).
   Interactive: inverted arrow (dark fill, lime outline) + lime spark,
   so hover affordance is preserved. Text fields keep the I-beam.
   Safari ignores SVG cursors and falls back to native — fine. */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M7 2 L7 23 L12.2 18.6 L15.5 26 L19.5 24.2 L16.2 16.9 L23 16.2 Z' fill='%23B9DC1E' stroke='%2303211E' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 6 2, auto;
  }
  a, button, [role="button"], label, select, summary,
  input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M7 2 L7 23 L12.2 18.6 L15.5 26 L19.5 24.2 L16.2 16.9 L23 16.2 Z' fill='%23052E2A' stroke='%23B9DC1E' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath d='M24.2 3.4 L26 6 L24.2 8.6 L22.4 6 Z' fill='%23B9DC1E'/%3E%3C/svg%3E") 6 2, pointer;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="range"]),
  textarea { cursor: text; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 880px; }

/* ---- typography ---------------------------------------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; text-wrap: balance; }
p { text-wrap: pretty; }
.display-xl { font-size: clamp(2.9rem, 7vw, 5.6rem); }
.display-lg { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.display-md { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.14; }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.25; }
/* (Fraunces-era WebKit opsz pins removed — Playfair Display has no opsz axis) */
/* accent words: upright, color-only (decision predates the font swap and
   still reads best) */
em.accent { font-style: normal; color: var(--lime); }
.on-light em.accent { color: var(--green-600); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 44em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 0.85em; height: 0.85em; flex: none;
  background: currentColor;
  -webkit-mask: url(../img/logo-mark-72.png) center / contain no-repeat;
  mask: url(../img/logo-mark-72.png) center / contain no-repeat;
}
.dark .eyebrow, .eyebrow.on-dark { color: var(--lime); }
.on-light .eyebrow { color: var(--green-600); }

/* ---- sections ------------------------------------------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.dark { background: var(--green-900); color: var(--cream); }
.dark-deep { background: var(--green-950); color: var(--cream); }
.dark .muted, .dark-deep .muted, .hero .muted { color: rgba(245, 242, 233, 0.72); }
.on-light .muted, .muted { color: var(--ink-soft); }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lede { margin-top: 18px; }
.section-num {
  font-family: var(--serif); font-style: italic; font-size: 0.95rem;
  opacity: 0.7; display: block; margin-bottom: 10px;
}
.on-light .section-num { color: var(--ink-soft); opacity: 1; }

/* ---- skip link -------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: var(--green-950); font-weight: 700;
  padding: 12px 22px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---- header ---------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 21, 14, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--cream);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; max-width: 1320px; }
/* brand = the ACTUAL logo artwork (extracted from LOGO LLC SOLID COLORS.jpg,
   teal wordmark recolored cream for dark grounds). Never rebuild it in HTML. */
.brand { display: flex; align-items: center; }
.brand .lockup { height: 40px; width: auto; }
.nav-main { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-main > a, .nav-main .nav-item-has-children > a {
  font-size: 0.92rem; font-weight: 500; opacity: 0.85;
  transition: opacity 0.2s, color 0.2s; position: relative; padding: 6px 0;
}
.nav-main > a:hover, .nav-main > a[aria-current="page"],
.nav-main .nav-item-has-children > a:hover { opacity: 1; color: var(--lime); }
.nav-cta-group { display: flex; align-items: center; gap: 14px; }
/* Free Scan lives as a header button on desktop; as a menu link when the
   nav collapses (≤880px, where the ghost button is hidden). */
.nav-main > .nav-mob-only { display: none; }
@media (max-width: 880px) { .nav-main > .nav-mob-only { display: block; } }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); width: 44px; height: 44px; }
.nav-toggle svg { margin: auto; }

/* dropdown — on desktop the parent item spans the full 76px header height,
   so the panel's top: 100% sits flush under the header's lime progress line
   (which used to cut across it) and the link→panel hover path has no dead gap */
.nav-item-has-children { position: relative; }
@media (min-width: 881px) {
  .nav-item-has-children { display: flex; align-items: center; height: 76px; }
}
.nav-item-has-children > a::after { content: " ▾"; font-size: 0.7em; opacity: 0.7; }
.subnav {
  position: absolute; top: calc(100% + 1px); left: -18px; min-width: 250px;
  background: var(--green-850); border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 10px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.nav-item-has-children:hover .subnav, .nav-item-has-children:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-radius: 9px; font-size: 0.92rem; }
.subnav a:hover { background: rgba(184, 228, 52, 0.1); color: var(--lime); }
.subnav .from { font-size: 0.75rem; opacity: 0.6; font-weight: 400; }

/* ---- buttons --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn--lime { background: var(--lime); color: var(--green-950); }
.btn--lime:hover { box-shadow: 0 14px 34px rgba(184, 228, 52, 0.32); background: var(--lime-soft); }
.btn--ghost-dark { border-color: rgba(245,242,233,0.35); color: var(--cream); }
.btn--ghost-dark:hover { border-color: var(--lime); color: var(--lime); }
.btn--ghost-light { border-color: rgba(19,32,24,0.3); color: var(--ink); }
.btn--ghost-light:hover { border-color: var(--green-600); color: var(--green-600); }
.btn--dark { background: var(--green-950); color: var(--cream); }
.btn--dark:hover { box-shadow: 0 14px 30px rgba(6,21,14,0.3); }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---- hero ------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(185,220,30,0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(0,104,97,0.45), transparent 60%),
    url(../img/bg-aurora-dark.webp) center / cover no-repeat,
    var(--green-950);
  color: var(--cream); position: relative; overflow: hidden;
}
/* interactive 3D brand mark on the home hero — the REAL asymmetric mark,
   extruded from stacked mask layers of logo-mark-900.png so the geometry is
   exact by construction. JS (main.js) drives --rx/--ry/--shx; the CSS
   defaults below are the resting pose, so no-JS still gets a dimensional mark. */
.hero--home .wrap { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); }
.hero-content { flex: 1 1 0; min-width: 0; }
.hero-mark {
  flex: 0 0 auto; width: clamp(300px, 31vw, 480px); aspect-ratio: 1;
  margin-right: calc(-1 * clamp(0px, 3vw, 44px));
  position: relative; pointer-events: auto;
  animation: hero-float 9s ease-in-out infinite alternate;
}
@keyframes hero-float { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
.hm-glow {
  position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(185, 220, 30, 0.17), transparent 72%);
  filter: blur(8px);
}
.hm-scene { position: absolute; inset: 4%; perspective: 1100px; }
/* Playwright's WebKit-Windows build flattens ALL preserve-3d (harness
   limitation, not a Safari one) — the mark degrades to a flat tilted face
   there. Spot-check real Safari post-deploy. */
.hm-stack {
  position: absolute; inset: 0; transform-style: preserve-3d;
  --gap: 3px;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -16deg));
}
.hm-layer {
  position: absolute; inset: 0; background: var(--c, var(--lime-dim));
  -webkit-mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  transform: translateZ(calc(var(--i, 0) * var(--gap) * -1));
  transition: transform 0.6s var(--ease);
}
.hero-mark:hover .hm-stack { --gap: 5.4px; }
.hm-face { background: var(--lime); }
.hm-sheen {
  position: absolute; inset: 0; transform: translateZ(1px); pointer-events: none;
  -webkit-mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.5) 47%, rgba(255, 255, 255, 0.12) 54%, transparent 68%);
  background-size: 240% 240%;
  background-position: var(--shx, 60%) 50%;
  opacity: 0.8;
}
/* cursor-following spotlight across the whole hero (JS sets --mx/--my) */
.hero-spot {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 0.5s ease;
  background: radial-gradient(560px circle at var(--mx, 75%) var(--my, 35%), rgba(185, 220, 30, 0.13), rgba(185, 220, 30, 0.05) 40%, transparent 65%);
}
.hero-spot.is-on { opacity: 1; }
/* cursor sparkle trail overlay (canvas injected by main.js on fine pointers) */
.sparkle-canvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 9999; pointer-events: none;
}
@media (max-width: 1060px) {
  .hero--home .wrap { display: block; }
  .hero-mark {
    position: absolute; z-index: 1; right: -130px; top: 50%;
    width: 430px; margin: 0; opacity: 0.26;
    transform: translateY(-50%); animation: none; pointer-events: none;
  }
  .hm-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mark { animation: none; }
  .hm-layer { transition: none; }
  .hero-spot { display: none; }
}
/* browsers without CSS masks: fall back to the plain lime PNG on the face */
@supports not ((mask: url("")) or (-webkit-mask: url(""))) {
  .hm-layer, .hm-sheen { display: none; }
  .hm-stack { transform: none; }
  .hm-stack::after {
    content: ""; position: absolute; inset: 0;
    background: url(../img/logo-mark-900.png) center / contain no-repeat;
  }
}
.hero .wrap { position: relative; z-index: 2; }
.hero-asterisk {
  position: absolute; z-index: 1; right: -120px; top: 50%;
  width: clamp(380px, 42vw, 640px); aspect-ratio: 1; transform: translateY(-50%);
  opacity: 0.1; pointer-events: none;
  background: currentColor;
  -webkit-mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  animation: slow-spin 90s linear infinite;
}
@keyframes slow-spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero--home { padding: clamp(90px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); }
.hero--page { padding: clamp(70px, 9vw, 120px) 0; }
.hero .eyebrow { color: var(--lime); margin-bottom: 26px; }
.hero h1 { max-width: 15em; }
.hero--home h1 { font-size: clamp(2.7rem, 4.7vw, 4.3rem); }
.hero--home h1 .line { display: block; }
.hero--home .lede { max-width: 34em; }
.hero .lede { margin-top: 28px; color: rgba(245,242,233,0.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.hero-note { margin-top: 30px; font-size: 0.85rem; color: rgba(245,242,233,0.62); display: flex; align-items: center; gap: 9px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(184,228,52,0.18); flex: none; }

/* ---- alert band (SB37) ----------------------------------- */
.alert-band { background: var(--lime); color: var(--green-950); }
.alert-band .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.alert-band strong { font-weight: 700; }
.alert-band .spacer { flex: 1; }
.alert-band a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.alert-band a:hover { text-decoration-thickness: 2px; }

/* ---- cards ------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px);
  position: relative; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s;
}
.card--cream { background: var(--white); border: 1px solid var(--line-light); }
.card--cream:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(19,32,24,0.12); border-color: rgba(19,32,24,0.22); }
.card--dark { background: var(--green-850); border: 1px solid var(--line-dark); color: var(--cream); }
.card--dark:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0,0,0,0.4); border-color: rgba(184,228,52,0.4); }
/* card--dark is its own color context, wherever it sits */
.card--dark .muted { color: rgba(245, 242, 233, 0.72); }
.card--dark em.accent, .on-light .card--dark em.accent { color: var(--lime); }
.card--dark .eyebrow, .on-light .card--dark .eyebrow { color: var(--lime); }
.card--dark .from { color: var(--cream); }
.card--dark .card-icon, .on-light .card--dark .card-icon { background: rgba(184,228,52,0.14); color: var(--lime); }
.card--dark:hover .card-link-arrow, .on-light .card--dark:hover .card-link-arrow { color: var(--lime); }
.card h3 { margin-bottom: 8px; }
.card .from { margin-top: auto; padding-top: 22px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.card .from strong { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0; text-transform: none; display: block; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: rgba(184,228,52,0.14); color: var(--lime); }
.on-light .card-icon { background: rgba(27,74,55,0.09); color: var(--green-600); }
.card-link-arrow { position: absolute; top: 26px; right: 26px; opacity: 0.4; transition: all 0.3s var(--ease); }
.card:hover .card-link-arrow { opacity: 1; transform: translate(3px, -3px); color: var(--lime); }
.on-light .card:hover .card-link-arrow { color: var(--green-600); }

/* ---- pricing tiers ---------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.tiers--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }

/* ---- exposure-check quiz ----------------------------------- */
.quiz-card { max-width: 720px; margin-inline: auto; }
.quiz-q { border: 0; padding: 0; margin: 0; }
.quiz-q legend { font-weight: 600; font-size: 0.95rem; line-height: 1.45; margin-bottom: 10px; padding: 0; }
.quiz-q .req { font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); }
.quiz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-light); border-radius: 8px; font-size: 0.9rem; line-height: 1.4; cursor: pointer; }
.quiz-opt + .quiz-opt { margin-top: 6px; }
.quiz-opt:hover { border-color: var(--green-600); }
.quiz-opt input { accent-color: var(--green-600); margin-top: 2px; flex: 0 0 auto; cursor: pointer; }
.quiz-card [hidden] { display: none !important; }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(280px, 1fr); gap: 36px; align-items: start; }
.quiz-layout[hidden] { display: none !important; }
.quiz-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.aside-list li { position: relative; padding-left: 24px; font-size: 0.92rem; line-height: 1.5; color: rgba(245, 242, 233, 0.78); }
.aside-list li::before { content: "→"; position: absolute; left: 0; color: var(--lime); }
@media (max-width: 1080px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-aside { position: static; }
}
.tier {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tier:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(19,32,24,0.12); }
.tier--featured { background: var(--green-900); color: var(--cream); border-color: var(--green-900); box-shadow: 0 20px 50px rgba(10,35,24,0.25); }
.tier-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--green-950); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
}
.tier-name { font-family: var(--serif); font-size: 1.45rem; }
.tier-tag { font-size: 0.82rem; margin-top: 4px; opacity: 0.8; min-height: 2.4em; }
.tier-price { margin: 18px 0 4px; font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; }
.tier-price .per { font-family: var(--sans); font-size: 0.85rem; opacity: 0.78; }
.tier-meta { font-size: 0.78rem; opacity: 0.78; min-height: 1.2em; }
.tier hr { border: 0; border-top: 1px solid var(--line-light); margin: 20px 0; }
.tier--featured hr { border-color: var(--line-dark); }
.tier-feats { display: grid; gap: 11px; font-size: 0.9rem; line-height: 1.45; }
.tier-feats li { padding-left: 24px; position: relative; }
.tier-feats li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--green-600); }
.tier--featured .tier-feats li::before { color: var(--lime); }
.tier-feats .plus { font-style: italic; opacity: 0.65; padding-left: 0; font-family: var(--serif); }
.tier-feats .plus::before { content: none; }
.tier .btn { margin-top: auto; width: 100%; }
.tier-feats { margin-bottom: 26px; }

/* ---- editorial figures (generated visuals) ------------------ */
.figure { border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 30px 70px rgba(3,33,30,0.35); }
.figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.figure--tilt { transform: rotate(-1.2deg); }
.figure figcaption {
  position: absolute; left: 18px; bottom: 18px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); background: rgba(3,33,30,0.72); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px;
}
.image-band { position: relative; min-height: clamp(300px, 42vw, 520px); overflow: hidden; }
.image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-band img[data-parallax] { height: 118%; top: -9%; }
.image-band .band-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(3,33,30,0.25), rgba(3,33,30,0.78) 88%);
  color: var(--cream); padding: clamp(28px, 5vw, 60px) 0;
}

/* ---- editorial numbered steps ------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(22px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1; display: block; margin-bottom: 14px; color: var(--lime);
}
.on-light .step::before { color: var(--green-600); opacity: 0.85; }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--lime); }
.on-light .step::after { background: var(--green-600); }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; }
.dark .step p, .dark-deep .step p { color: rgba(245,242,233,0.72); }

/* ---- marquee ----------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 20px 0; }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; white-space: nowrap; opacity: 0.75; display: flex; align-items: center; gap: 54px; }
.marquee-track span::after {
  content: ""; width: 0.9em; height: 0.9em;
  background: var(--lime); opacity: 0.9;
  -webkit-mask: url(../img/logo-mark-72.png) center / contain no-repeat;
  mask: url(../img/logo-mark-72.png) center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- comparison / tables ------------------------------------ */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-light); background: var(--white); color: var(--ink); }
table.pricing { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
table.pricing th, table.pricing td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-light); white-space: nowrap; }
table.pricing td:first-child { white-space: normal; }
/* FPA coverage table has long prose cells — nowrap (sized for the short
   bundles savings table) pushes it 260px past the container even at 1440. */
#coverage table.pricing td { white-space: normal; }
#coverage table.pricing td:last-child { min-width: 170px; }
table.pricing thead th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); background: var(--cream-dim); }
table.pricing tbody tr:last-child td { border-bottom: 0; }
table.pricing .hl { color: var(--green-600); font-weight: 700; }
table.pricing tbody tr:hover { background: rgba(185,220,30,0.07); }
.table-hint { display: none; margin-top: 12px; font-size: 0.78rem; opacity: 0.6; }

/* ---- FAQ ---------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line-light); border-radius: 14px; overflow: hidden; }
.dark .faq details, .dark-deep .faq details { background: var(--green-850); border-color: var(--line-dark); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--green-600); transition: transform 0.3s var(--ease); flex: none; }
.dark .faq summary::after, .dark-deep .faq summary::after { color: var(--lime); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; font-size: 0.95rem; color: var(--ink-soft); max-width: 60em; }
.dark .faq .faq-a, .dark-deep .faq .faq-a { color: rgba(245,242,233,0.72); }

/* ---- CTA band ------------------------------------------------ */
.cta-band { background: var(--green-950); color: var(--cream); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; width: min(44rem, 80vw); aspect-ratio: 1;
  background: var(--lime); opacity: 0.045;
  -webkit-mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  right: -12%; top: 50%; transform: translateY(-42%); pointer-events: none;
}
.cta-band .wrap { position: relative; }
.cta-band h2 { max-width: 16em; margin: 0 auto; }
.cta-band .lede { margin: 22px auto 0; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .fine { margin-top: 26px; font-size: 0.8rem; color: rgba(245,242,233,0.68); }

/* ---- stat strip ---------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { border-left: 2px solid var(--lime); padding-left: 22px; }
.on-light .stat { border-color: var(--green-600); }
.stat .n { font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; }
.stat .l { font-size: 0.85rem; opacity: 0.7; margin-top: 6px; }

/* ---- checklist / two-col editorial ---------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.split-sticky { position: sticky; top: 110px; }
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; }
.checklist .ck { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; background: rgba(184,228,52,0.16); color: var(--lime); margin-top: 2px; }
.on-light .checklist .ck { background: rgba(27,74,55,0.1); color: var(--green-600); }
.checklist strong { display: block; }
.checklist .sub { font-size: 0.87rem; opacity: 0.7; }

/* severity pills — used only inside the sample-report document mock */
.pill { flex: none; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pill--crit { background: #FCE8E6; color: #A02318; }
.pill--high { background: #FDF3DC; color: #8A5A00; }
.pill--med { background: #E7F0EA; color: #1B4A37; }

/* severity ledger on SB37 page — editorial, on-brand */
.sevgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.sevcol { border-top: 2px solid rgba(245, 242, 233, 0.25); padding-top: 22px; }
.sevcol--crit { border-top-color: var(--lime); }
.sevcol--high { border-top-color: rgba(185, 220, 30, 0.45); }
.sevcol-name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1; }
.sevcol--crit .sevcol-name { color: var(--lime); }
.sevcol-sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245, 242, 233, 0.55); margin-top: 8px; }
.sevcol ul { list-style: none; margin-top: 10px; }
.sevcol li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.92rem; line-height: 1.55; color: rgba(245, 242, 233, 0.82); }
.sevcol li:last-child { border-bottom: 0; }
.sevcol li::before {
  content: ""; display: inline-block; width: 0.76em; height: 0.76em; margin-right: 9px;
  background: var(--lime);
  -webkit-mask: url(../img/logo-mark-72.png) center / contain no-repeat;
  mask: url(../img/logo-mark-72.png) center / contain no-repeat;
}
.sevcol--med li::before { background: rgba(245, 242, 233, 0.4); }
.sevcol--high li::before { background: rgba(185, 220, 30, 0.6); }
@media (max-width: 880px) { .sevgrid { grid-template-columns: 1fr; gap: 34px; } }

/* price anchor */
.price-anchor { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.price-anchor .now { font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: 1; color: var(--lime); }
.price-anchor .was { font-family: var(--serif); font-size: 1.5rem; opacity: 0.55; text-decoration: line-through; text-decoration-color: rgba(245,242,233,0.6); }
.price-anchor .was small { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; opacity: 0.8; }

/* ---- forms ----------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-light);
  background: var(--white); font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(27,74,55,0.12); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); }
.notice { padding: 18px 22px; border-radius: 12px; font-size: 0.95rem; margin-bottom: 26px; }
.notice--ok { background: #E7F0EA; border: 1px solid #BAD6C4; color: #14432E; }
.notice--err { background: #FBEAE7; border: 1px solid #E8BFB6; color: #7C2415; }
.notice--err a { color: inherit; text-decoration: underline; }

/* ---- footer ----------------------------------------------------- */
.site-footer { background: var(--green-950); color: var(--cream); padding: clamp(60px, 8vw, 96px) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 54px; border-bottom: 1px solid var(--line-dark); }
.footer-grid .footer-h { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; font-weight: 700; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; font-size: 0.92rem; }
.footer-grid ul a { opacity: 0.78; transition: 0.2s; }
.footer-grid ul a:hover { opacity: 1; color: var(--lime); }
.footer-linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  cursor: pointer; opacity: 0.78; transition: 0.2s; text-align: left;
}
.footer-linklike:hover { opacity: 1; color: var(--lime); }

/* ---- cookie consent bar -------------------------------------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  margin: 0 auto; max-width: 760px;
  display: flex; align-items: center; gap: 22px;
  padding: 18px 22px;
  background: var(--green-850); color: var(--cream);
  border: 1px solid var(--line-dark); border-radius: 16px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}
.cookie-bar[hidden] { display: none; }
.cookie-txt { margin: 0; font-size: 0.9rem; line-height: 1.55; opacity: 0.92; }
.cookie-txt a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
.cookie-txt a:hover { color: var(--lime); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
.footer-brand p { margin-top: 16px; font-size: 0.92rem; color: rgba(245,242,233,0.65); max-width: 30em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; padding-top: 28px; font-size: 0.8rem; color: rgba(245,242,233,0.5); }

/* ---- footer social buttons -------------------------------------- */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.social-btn {
  --tx: 0px; --ty: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(185,220,30,0.34); color: var(--lime);
  cursor: pointer;
  transform: translate(var(--tx), var(--ty));
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.social-btn svg { width: 19px; height: 19px; display: block; position: relative; z-index: 1; transition: transform 0.3s var(--ease); }
.social-btn::before { /* lime fill sweep, scales out from the center */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--lime); transform: scale(0); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.social-btn:hover, .social-btn:focus-visible {
  color: var(--green-950); border-color: var(--lime);
  box-shadow: 0 6px 22px rgba(185,220,30,0.28);
}
.social-btn:hover::before, .social-btn:focus-visible::before { transform: scale(1); opacity: 1; }
.social-btn:hover svg, .social-btn:focus-visible svg { transform: scale(1.12) rotate(-6deg); }
.social-btn::after { /* hover tooltip chip, mirrors the network name */
  content: attr(data-label); position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 6px); white-space: nowrap;
  background: var(--green-950); color: var(--lime);
  border: 1px solid rgba(185,220,30,0.35);
  font-size: 0.72rem; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px;
  opacity: 0; pointer-events: none; z-index: 2;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-btn:hover::after, .social-btn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .social-btn::after { display: none; } }
/* ambient shimmer: a cream glint sweeps each button, staggered down the row
   (same idiom as the featured-tier lx-sheen). Hidden while the lime fill is up. */
.social-btn .sb-shine {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  pointer-events: none; z-index: 2; transition: opacity 0.2s;
}
.social-btn .sb-shine::before {
  content: ""; position: absolute; inset: -4px;
  background: linear-gradient(105deg, transparent 40%, rgba(245,242,233,0.4) 50%, transparent 60%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  animation: lx-social-shine 5.6s ease-in-out infinite;
}
@keyframes lx-social-shine {
  0% { background-position: 140% 0; }
  55% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}
.social-links .social-btn:nth-child(2) .sb-shine::before { animation-delay: 0.4s; }
.social-links .social-btn:nth-child(3) .sb-shine::before { animation-delay: 0.8s; }
.social-links .social-btn:nth-child(4) .sb-shine::before { animation-delay: 1.2s; }
.social-links .social-btn:nth-child(5) .sb-shine::before { animation-delay: 1.6s; }
.social-links .social-btn:nth-child(6) .sb-shine::before { animation-delay: 2.0s; }
.social-links .social-btn:nth-child(7) .sb-shine::before { animation-delay: 2.4s; }
.social-links .social-btn:nth-child(8) .sb-shine::before { animation-delay: 2.8s; }
.social-btn:hover .sb-shine, .social-btn:focus-visible .sb-shine { opacity: 0; }
.social-btn::after { z-index: 3; }
/* header variant: compact, tooltip drops BELOW (no room above the bar) */
.social-links--header { gap: 8px; margin-top: 0; flex-wrap: nowrap; }
.social-links--header .social-btn { width: 36px; height: 36px; }
.social-links--header .social-btn svg { width: 16px; height: 16px; }
.social-links--header .social-btn::after {
  bottom: auto; top: calc(100% + 10px);
  transform: translate(-50%, -6px);
}
.social-links--header .social-btn:hover::after,
.social-links--header .social-btn:focus-visible::after { transform: translate(-50%, 0); }
@media (max-width: 1299px) { .nav-cta-group > .social-links--header { display: none; } }
/* mobile drawer row (inside .nav-main, shown ≤880 via .nav-mob-only) */
.nav-social .social-links--header { padding-top: 18px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
  .social-btn, .social-btn svg, .social-btn::before, .social-btn::after { transition: none; }
  .social-btn { transform: none; }
  .social-btn:hover svg, .social-btn:focus-visible svg { transform: none; }
  .social-btn .sb-shine::before { animation: none; }
}

/* ---- reveal animations ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; } .reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; } .reveal[data-d="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-asterisk { animation: none; }
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
  .site-header::after { animation: none; }
  .btn, .card, .tier, .day, .card-icon svg { transition: none; }
}

/* ---- responsive -------------------------------------------------- */
@media (max-width: 1060px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-main {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-950); border-bottom: 1px solid var(--line-dark);
    padding: 12px var(--gutter) 24px; display: none; max-height: calc(100vh - 76px); overflow: auto;
  }
  .nav-main.open { display: flex; animation: lx-nav-in 0.32s var(--ease); }
  .nav-main > a, .nav-main .nav-item-has-children > a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta-group .btn--ghost-dark { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-sticky { position: static; }
  .stat-strip { grid-template-columns: 1fr; gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
}
/* Two-up audit comparison: each card's CTA needs ~350px, so two columns
   can't physically fit below ~754px — collapse before that point. */
@media (max-width: 780px) {
  .tiers--2 { grid-template-columns: 1fr; max-width: 620px; }
}
/* Long CTA labels are the widest thing in narrow single-column layouts —
   nowrap buttons were forcing 320–352px min-content and pushing pages past
   the viewport at ≤640. Let the label wrap to a second pill line instead. */
@media (max-width: 700px) {
  .btn { white-space: normal; text-align: center; }
}
@media (max-width: 620px) {
  .tiers { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  /* keep brand + CTA + hamburger inside narrow viewports */
  .site-header .wrap { gap: 10px; height: 64px; }
  .brand .lockup { height: 33px; }
  .nav-cta-group { gap: 6px; }
  .nav-cta-group .btn--sm { padding: 8px 12px; font-size: 0.72rem; }
  .table-hint { display: block; }
  .nav-main { inset: 64px 0 auto 0; max-height: calc(100vh - 64px); }
}

/* ============================================================
   ELEVATION PASS — editorial depth, motion, page signatures
   ============================================================ */

/* ---- header: scroll state + reading progress ---------------- */
.site-header { transition: background 0.35s, box-shadow 0.35s; }
.site-header.is-scrolled { background: rgba(6, 21, 14, 0.95); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .site-header::after { animation: lx-progress linear both; animation-timeline: scroll(root); }
}
@keyframes lx-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* nav link underline (desktop only — mobile uses border rows) */
@media (min-width: 881px) {
  .nav-main > a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
    background: var(--lime); transform: scaleX(0); transform-origin: 0 50%;
    transition: transform 0.3s var(--ease);
  }
  .nav-main > a:hover::after, .nav-main > a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---- micro-interactions -------------------------------------- */
.card-icon svg { transition: transform 0.35s var(--ease); }
.card:hover .card-icon svg, .tier:hover .card-icon svg { transform: scale(1.12) rotate(-8deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.reveal--zoom { transform: translateY(18px) scale(0.96); }
[data-parallax] { will-change: transform; }

/* ---- interior heroes: editorial scale + fact strip ------------ */
.hero--page h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); max-width: 13em; }
.hero--page { padding: clamp(84px, 10vw, 150px) 0 clamp(64px, 8vw, 110px); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px 0;
  margin-top: clamp(38px, 5vw, 56px); border-top: 1px solid var(--line-dark); padding-top: 26px;
}
.hero-meta > div { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line-dark); }
.hero-meta > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-meta .v { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.1; }
.hero-meta .k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; margin-top: 5px; }
@media (max-width: 620px) {
  .hero-meta { gap: 14px 0; }
  .hero-meta > div { padding-right: 20px; margin-right: 20px; }
}

/* ---- SB37 hero: two-column with exposure receipt ------------- */
.hero--sb37 { padding: clamp(84px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); }
.hero--sb37 .wrap { display: flex; align-items: center; gap: clamp(40px, 5vw, 84px); }
.hero--sb37 .hero-content { flex: 1 1 0; min-width: 0; }
.hero--sb37 h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
.exposure-card {
  flex: 0 0 clamp(320px, 29vw, 400px);
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 28px 28px 22px; transform: rotate(1.4deg);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.25);
  font-variant-numeric: tabular-nums; position: relative;
}
.exposure-card::before {
  content: ""; position: absolute; top: 20px; right: 22px; width: 19px; height: 19px;
  background: var(--lime);
  -webkit-mask: url(../img/logo-mark-72.png) center / contain no-repeat;
  mask: url(../img/logo-mark-72.png) center / contain no-repeat;
}
.exposure-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.exposure-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--line-light); font-size: 0.82rem; color: var(--ink-soft); }
.exposure-row .amt { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); white-space: nowrap; }
.exposure-row--total { border-bottom: 0; margin-top: 10px; padding: 14px 16px; background: var(--green-950); color: var(--cream); border-radius: 12px; font-size: 0.85rem; }
.exposure-row--total .amt { color: var(--lime); font-size: 1.5rem; }
.exposure-fine { margin-top: 14px; font-size: 0.68rem; line-height: 1.5; color: var(--ink-soft); opacity: 0.85; }
@media (max-width: 1060px) {
  .hero--sb37 .wrap { display: block; }
  .exposure-card { transform: none; margin-top: 44px; max-width: 440px; }
}

/* ---- sticky order bar (SB37) ---------------------------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(3, 33, 30, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(185, 220, 30, 0.35); color: var(--cream);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.sticky-cta .lbl { font-size: 0.88rem; }
.sticky-cta .lbl strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 500; }
.sticky-cta .btn { flex: none; }
@media (max-width: 620px) { .sticky-cta .lbl .sub { display: none; } }

/* ---- redacted sample report (SB37 deliverable) ----------------- */
.report-mock {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(19, 32, 24, 0.14); overflow: hidden;
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; background: var(--green-950); color: var(--cream); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.report-head .tag { color: var(--lime); }
.report-body { padding: 24px 22px; display: grid; gap: 18px; }
.report-item { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px dashed var(--line-light); }
.report-item:last-child { border-bottom: 0; padding-bottom: 0; }
.report-item .meta { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; color: var(--ink-soft); }
.redact { display: inline-block; height: 0.72em; border-radius: 3px; background: var(--ink); opacity: 0.82; vertical-align: baseline; }
.report-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--ink-soft); }
.report-fix { font-size: 0.82rem; color: var(--ink); background: rgba(185, 220, 30, 0.16); border-left: 3px solid var(--lime-dim); padding: 8px 12px; border-radius: 0 8px 8px 0; }

/* ---- week strip (social) --------------------------------------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.day {
  background: var(--green-850); border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 16px 14px; min-height: 168px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.day:hover { transform: translateY(-5px); border-color: rgba(185, 220, 30, 0.45); }
.day .dow { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); }
.day .kind { font-family: var(--serif); font-size: 1.02rem; line-height: 1.25; }
.day .what { font-size: 0.74rem; color: rgba(245, 242, 233, 0.74); line-height: 1.45; }
.day .ok { margin-top: auto; padding-top: 10px; font-size: 0.64rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245, 242, 233, 0.72); }
.day .ok::before { content: "✓ "; color: var(--lime); }
.week-hint { display: none; margin-top: 12px; font-size: 0.78rem; opacity: 0.6; }
@media (max-width: 1060px) {
  .week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .day { flex: 0 0 172px; scroll-snap-align: start; }
  .week-hint { display: block; }
}

/* ---- anatomy mock (websites) ------------------------------------ */
.mock-browser {
  background: var(--cream); border: 1px solid var(--line-light); border-radius: 16px;
  box-shadow: 0 34px 80px rgba(19, 32, 24, 0.16); overflow: hidden;
}
.mock-bar { display: flex; gap: 7px; align-items: center; padding: 13px 16px; background: var(--white); border-bottom: 1px solid var(--line-light); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-light); }
.mock-bar .url { margin-left: 10px; flex: 1; height: 20px; border-radius: 999px; background: var(--cream-dim); }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.mock-sec { position: relative; border-radius: 10px; }
.mock-flag {
  position: absolute; top: -10px; left: -10px; z-index: 2;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lime); color: var(--green-950); font-size: 0.7rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.mock-hero { background: var(--green-900); padding: 22px 18px; display: grid; gap: 10px; }
.mock-hero .tl { height: 13px; width: 72%; border-radius: 4px; background: rgba(245, 242, 233, 0.85); }
.mock-hero .tl.s { width: 46%; opacity: 0.55; }
.mock-hero .cta { height: 26px; width: 118px; border-radius: 999px; background: var(--lime); margin-top: 6px; }
.mock-strip { display: flex; gap: 10px; background: var(--white); border: 1px solid var(--line-light); padding: 12px; }
.mock-strip i { flex: 1; height: 12px; border-radius: 4px; background: var(--cream-dim); }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cols i { height: 62px; border-radius: 8px; background: var(--white); border: 1px solid var(--line-light); }
.mock-foot { background: var(--green-950); padding: 12px 14px; display: grid; gap: 7px; }
.mock-foot i { height: 8px; border-radius: 3px; background: rgba(185, 220, 30, 0.5); width: 84%; }
.mock-foot i + i { width: 62%; opacity: 0.6; }

/* ---- compounding curve (SEO) ------------------------------------- */
.compound-wrap { position: relative; }
.compound { display: flex; align-items: flex-end; gap: clamp(5px, 0.9vw, 12px); height: clamp(190px, 26vw, 280px); }
.compound .bar {
  flex: 1; border-radius: 5px 5px 0 0; height: calc(var(--h) * 1%);
  background: linear-gradient(180deg, rgba(185, 220, 30, 0.95), rgba(0, 104, 97, 0.55));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.9s var(--ease); transition-delay: calc(var(--i) * 60ms);
}
.compound.is-in .bar { transform: none; }
.compound-axis { display: flex; gap: clamp(5px, 0.9vw, 12px); margin-top: 10px; }
.compound-axis span { flex: 1; text-align: center; font-size: 0.66rem; opacity: 0.5; }
.compound-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.compound-phases .ph { border-top: 2px solid var(--lime); padding-top: 12px; }
.compound-phases .ph strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; display: block; }
.compound-phases .ph span { font-size: 0.82rem; color: rgba(245, 242, 233, 0.65); }
@media (max-width: 620px) { .compound-phases { grid-template-columns: 1fr; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .compound .bar { transform: none; transition: none; } }

/* ---- geo-grid (local listings) ------------------------------------ */
.geogrid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  padding: clamp(16px, 2vw, 26px); background: var(--green-950);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  max-width: 460px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.geogrid span {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  font-size: clamp(0.6rem, 1vw, 0.78rem); font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(245, 242, 233, 0.06); color: rgba(245, 242, 233, 0.68);
}
.geogrid .g1 { background: var(--lime); color: var(--green-950); }
.geogrid .g2 { background: rgba(185, 220, 30, 0.42); color: var(--cream); }
.geogrid .g3 { background: rgba(185, 220, 30, 0.14); color: rgba(245, 242, 233, 0.75); }
.geogrid-cap { margin-top: 16px; font-size: 0.78rem; color: rgba(245, 242, 233, 0.6); max-width: 40em; }

/* ---- editorial footer ----------------------------------------------- */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; right: -140px; bottom: -160px;
  width: 40rem; aspect-ratio: 1; background: var(--lime); opacity: 0.045; pointer-events: none;
  -webkit-mask: url(../img/logo-mark-900.png) center / contain no-repeat;
  mask: url(../img/logo-mark-900.png) center / contain no-repeat;
}
.site-footer .wrap { position: relative; }
.footer-cta { padding-bottom: clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line-dark); margin-bottom: clamp(40px, 6vw, 60px); }
.footer-cta .eyebrow { color: var(--lime); margin-bottom: 22px; }
.footer-big {
  font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.05;
  font-size: clamp(2.3rem, 5.6vw, 4.8rem); text-wrap: balance; max-width: 15em;
}
.footer-big a { position: relative; }
.footer-big .go {
  display: inline-block; font-style: normal; color: var(--lime);
  transition: transform 0.35s var(--ease); margin-left: 0.18em;
}
.footer-big a:hover .go { transform: translateX(0.22em); }
.footer-big a em.accent {
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 96%;
  transition: background-size 0.45s var(--ease);
}
.footer-big a:hover em.accent { background-size: 100% 2px; }

/* ---- interaction polish: mobile nav + FAQ open ----------------- */
@keyframes lx-nav-in { from { opacity: 0; transform: translateY(-10px); } }
.faq details::details-content {
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), content-visibility 0.32s allow-discrete;
}
.faq details[open]::details-content { opacity: 1; transform: none; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content {
    interpolate-size: allow-keywords; block-size: 0; overflow-y: clip;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), block-size 0.34s var(--ease), content-visibility 0.34s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-main.open { animation: none; }
  .faq details::details-content { transition: none; opacity: 1; transform: none; }
}

/* ---- free scan (/free-scan/) ------------------------------ */
.hero--scan { padding: clamp(84px, 11vw, 150px) 0 clamp(72px, 9vw, 120px); }
.hero--scan .wrap { display: flex; align-items: flex-start; gap: clamp(40px, 5vw, 84px); }
.hero--scan .hero-content { flex: 1 1 0; min-width: 0; }
.hero--scan h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
.scan-card {
  flex: 0 0 440px; max-width: 440px; background: var(--cream);
  color: var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 30px 80px rgba(3, 33, 30, 0.45);
}
.scan-card .form-grid { grid-template-columns: 1fr; gap: 16px; }
.scan-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.attest { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.attest input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green-600); cursor: pointer; }
.attest label { cursor: pointer; }
.scan-fine { font-size: 0.76rem; line-height: 1.55; color: var(--ink-soft); }
.scan-fine a { text-decoration: underline; text-underline-offset: 2px; }
.scan-err {
  background: #FCE8E6; color: #A02318; border-radius: 10px;
  padding: 12px 14px; font-size: 0.88rem; line-height: 1.5;
}

/* progress state */
.scan-progress { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.scan-spinner {
  width: 34px; height: 34px; flex: none; background: var(--green-600);
  -webkit-mask: url(../img/logo-mark-72.png) center / contain no-repeat;
  mask: url(../img/logo-mark-72.png) center / contain no-repeat;
  animation: scanSpin 2.4s linear infinite;
}
@keyframes scanSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scan-spinner { animation: none; } }
.scan-progress .msg { font-size: 0.95rem; color: var(--ink-soft); }

/* results ledger (rendered by free-scan.js — counts + exposure only) */
.scan-results .sevgrid {
  margin-top: clamp(28px, 4vw, 48px);
  /* adapt to however many severity buckets the scan produced */
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}
.sevcard {
  background: var(--green-950); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px);
  position: relative; overflow: hidden;
}
.sevcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.sevcard.sevcol--crit::before { background: var(--lime); }
.sevcard.sevcol--high::before { background: var(--lime-dim); }
.sevcard.sevcol--med::before { background: rgba(245, 242, 233, 0.3); }
.sevcard ul { list-style: none; }
.sevcard-head {
  display: flex; align-items: center; gap: 20px;
  padding-bottom: 18px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line-dark);
}
.scan-count {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(2.9rem, 4.6vw, 4rem); line-height: 1; display: block; flex: none;
}
.sevcol--crit .scan-count { color: var(--lime); }
.sevcol--high .scan-count { color: rgba(185, 220, 30, 0.75); }
.sevcol--med .scan-count { color: rgba(245, 242, 233, 0.85); }
.sevcard .sevcol-name { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.scan-cat { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.scan-cat:last-child { border-bottom: 0; padding-bottom: 4px; }
.scan-cat .cat-label { font-weight: 700; font-size: 0.98rem; line-height: 1.4; }
.scan-cat .cat-basis {
  display: inline-block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245, 242, 233, 0.7); background: rgba(245, 242, 233, 0.08);
  border-radius: 999px; padding: 3px 10px; margin-top: 8px;
}
.scan-cat .cat-desc { font-size: 0.88rem; line-height: 1.55; color: rgba(245, 242, 233, 0.82); margin-top: 10px; }
.scan-cat .cat-exposure {
  font-size: 0.8rem; line-height: 1.55; color: rgba(245, 242, 233, 0.78);
  background: rgba(185, 220, 30, 0.07); border-left: 2px solid var(--lime-dim);
  border-radius: 0 10px 10px 0; padding: 10px 14px; margin-top: 12px;
}
.scan-cat .cat-exposure .xk {
  display: block; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 4px;
}
.scan-note { font-size: 0.95rem; line-height: 1.6; color: rgba(245, 242, 233, 0.82); max-width: 62em; margin-top: 18px; }
.scan-framing {
  border-left: 3px solid var(--lime); border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(245, 242, 233, 0.05);
  padding: 18px 24px; margin-top: clamp(28px, 4vw, 44px); max-width: 62em;
  font-size: 0.92rem; line-height: 1.65; color: rgba(245, 242, 233, 0.8);
}
.scan-next {
  background: var(--cream); color: var(--ink); border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px); margin-top: clamp(32px, 4.6vw, 52px);
  box-shadow: 0 24px 60px rgba(3, 33, 30, 0.35);
}
.scan-next .hero-ctas { margin: 0; }
.scan-next-note { font-size: 0.85rem; line-height: 1.6; color: var(--ink-soft); margin-top: 18px; max-width: 62em; }
.hero-note-link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .hero--scan .wrap { flex-direction: column; }
  .scan-card { flex-basis: auto; max-width: 560px; width: 100%; }
}
/* display rules above would defeat the hidden attribute on scan states */
.hero--scan [hidden], .scan-card [hidden], .scan-results[hidden] { display: none !important; }

/* ============================================================
   AMBIENT LAYER — background art, container shimmer, audit path
   (2026-07-13 pass: brand-palette nanobanana art, 7–20KB webp)
   ============================================================ */

/* dark sections + CTA band get the aurora; light sections get faint contours */
.section.dark {
  background: url(../img/bg-aurora-dark.webp) center / cover no-repeat var(--green-900);
}
.cta-band {
  background: url(../img/bg-aurora-dark.webp) center / cover no-repeat var(--green-950);
}
.section.on-light {
  background: url(../img/bg-glow-cream.webp) top right / cover no-repeat;
}

/* shimmer sweep across boxed containers on hover (lime-tinted light band) */
.scan-card, .exposure-card { position: relative; }
.card::after, .tier::after, .scan-card::after, .exposure-card::after, .ap-step::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(185, 220, 30, 0.13) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.card--dark::after, .ap-step::after, .tier--featured::after {
  background-image: linear-gradient(105deg, transparent 38%, rgba(213, 236, 102, 0.15) 50%, transparent 62%);
}
.card:hover::after, .tier:hover::after, .scan-card:hover::after,
.exposure-card:hover::after, .ap-step:hover::after {
  opacity: 1; background-position: -30% 0;
  transition: background-position 0.85s var(--ease), opacity 0.2s;
}
/* featured pricing tier: gentle ambient sheen loop, no hover needed */
@keyframes lx-sheen {
  0% { background-position: 140% 0; }
  60% { background-position: -40% 0; }
  100% { background-position: -40% 0; }
}
.tier--featured::after { opacity: 1; animation: lx-sheen 7s ease-in-out infinite; }

/* button light sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.38) 50%, transparent 58%) no-repeat;
  background-size: 250% 100%; background-position: 135% 0;
  opacity: 0; pointer-events: none;
}
.btn:hover::after {
  opacity: 1; background-position: -35% 0;
  transition: background-position 0.7s var(--ease);
}

/* icon chip glow when its card is hovered */
.card-icon { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.card:hover .card-icon {
  box-shadow: 0 0 0 5px rgba(185, 220, 30, 0.1), 0 0 26px rgba(185, 220, 30, 0.28);
}

/* ---- audit path strip (lx_audit_path) ------------------------ */
.audit-path { border-top: 1px solid var(--line-dark); }
.audit-path .ap-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 36px;
}
.ap-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-step {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  background: var(--green-850); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 26px 26px 24px; overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.ap-step:hover {
  transform: translateY(-4px); border-color: rgba(184, 228, 52, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.ap-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.ap-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.ap-desc { font-size: 0.88rem; color: rgba(245, 242, 233, 0.7); }
.ap-cta { margin-top: auto; padding-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--lime); }
@media (max-width: 900px) { .ap-steps { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .card::after, .tier::after, .scan-card::after, .exposure-card::after,
  .ap-step::after, .btn::after { display: none; }
  .tier--featured::after { animation: none; }
  .card-icon { transition: none; }
}

/* ---- animated sparkline cards (lx_sparkline) ------------------ */
.spark-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; max-width: 780px; margin-bottom: 38px;
}
.spark-card {
  background: var(--green-850); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 20px 22px 16px;
  position: relative; overflow: hidden;
}
.spark-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.spark-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(245, 242, 233, 0.75); }
.spark-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.spark-card--up .spark-chip { color: var(--lime); }
.spark-card--down .spark-chip { color: rgba(245, 242, 233, 0.72); } /* ≥4.5:1 on green-850 (axe AA) */
.spark-svg { display: block; width: 100%; height: auto; margin-top: 16px; overflow: visible; }
/* no vector-effect here: non-scaling-stroke makes Chromium compute the dash
   pattern in screen space, breaking the pathLength="1" draw-in normalization */
.spark-line {
  fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.spark-glow {
  fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; filter: blur(5px);
}
.spark-card--up .spark-line, .spark-card--up .spark-glow, .spark-card--up .spark-dot { stroke: var(--lime); fill: none; }
.spark-card--up .spark-dot { fill: var(--lime); }
.spark-card--down .spark-line { stroke: rgba(245, 242, 233, 0.5); }
.spark-card--down .spark-glow { stroke: rgba(245, 242, 233, 0.35); }
.spark-card--down .spark-dot { fill: rgba(245, 242, 233, 0.55); }
.spark-dot { opacity: 0; filter: drop-shadow(0 0 5px currentColor); }
.spark-card.is-in .spark-line { transition: stroke-dashoffset 1.6s var(--ease) 0.25s; stroke-dashoffset: 0; }
.spark-card.is-in .spark-glow { transition: opacity 1s ease 1s; opacity: 0.3; }
.spark-card.is-in .spark-dot { transition: opacity 0.5s ease 1.7s; opacity: 1; }
@media (max-width: 700px) { .spark-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .spark-line { stroke-dashoffset: 0; }
  .spark-glow { opacity: 0.3; }
  .spark-dot { opacity: 1; }
}

/* ---- spotlight cards: radial glow follows the cursor ----------
   (JS sets --mx/--my per card; .exposure-card excluded — its ::before
   is the corner mark) */
.card::before, .tier::before, .ap-step::before, .spark-card::before, .scan-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 220, 30, 0.13), transparent 65%);
  z-index: 0;
}
/* light containers get a softer teal-tinted light instead of lime */
.card--cream::before, .tier::before, .scan-card::before {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 104, 97, 0.08), transparent 65%);
}
.tier--featured::before {
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(185, 220, 30, 0.13), transparent 65%);
}
.card:hover::before, .tier:hover::before, .ap-step:hover::before,
.spark-card:hover::before, .scan-card:hover::before { opacity: 1; }
@media (prefers-reduced-motion: reduce), (hover: none) {
  .card::before, .tier::before, .ap-step::before, .spark-card::before, .scan-card::before { display: none; }
}

/* ---- glow-border cards (port of 21st.dev @easemize spotlight-card) ----
   A luminous border ring that tracks the pointer, drawn with a two-layer
   background: an opaque panel clipped to padding-box over a radial ring
   gradient clipped to border-box. Deliberately NO pseudo-elements —
   ::before stays the interior spotlight (and the exposure-card corner
   mark), ::after stays the shimmer. Reuses the --mx/--my the spotlight
   JS already sets. Touch + reduced-motion get the original static look
   because everything lives inside this media block. */
@property --glow-o { syntax: "<number>"; inherits: false; initial-value: 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card, .tier, .ap-step, .spark-card, .scan-card, .exposure-card {
    /* dark-panel defaults; light variants override below */
    --glow-panel: var(--green-850);
    --glow-line: var(--line-dark);
    --glow-bright: rgba(185, 220, 30, 0.85);
    border: 1px solid transparent;
    background:
      linear-gradient(var(--glow-panel), var(--glow-panel)) padding-box,
      radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
        color-mix(in oklab, var(--glow-bright) calc(var(--glow-o) * 100%), var(--glow-line)),
        var(--glow-line) 46%) border-box;
  }
  .card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), --glow-o 0.45s; }
  .tier { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), --glow-o 0.45s; }
  .ap-step { transition: transform 0.3s var(--ease), box-shadow 0.3s, --glow-o 0.45s; }
  .spark-card, .scan-card, .exposure-card { transition: --glow-o 0.45s; }

  .card--cream, .tier { --glow-panel: var(--white); --glow-line: var(--line-light); --glow-bright: rgba(0, 104, 97, 0.55); }
  .scan-card { --glow-panel: var(--cream); --glow-line: transparent; --glow-bright: rgba(0, 104, 97, 0.5); }
  .exposure-card { --glow-panel: var(--white); --glow-line: transparent; --glow-bright: rgba(185, 220, 30, 0.9); }
  .tier--featured { --glow-panel: var(--green-900); --glow-line: var(--green-900); --glow-bright: rgba(185, 220, 30, 0.85); }

  .card:hover, .tier:hover, .ap-step:hover, .spark-card:hover,
  .scan-card:hover, .exposure-card:hover { --glow-o: 1; }
  /* legacy hover border tints would paint over the ring — the ring IS the
     hover affordance now */
  .card--cream:hover, .card--dark:hover, .ap-step:hover { border-color: transparent; }
}
