/* Stratum Market Research v5: light, Apple-style system with diagram-led pages */

:root {
  --bg: #FFFFFF;
  --alt: #F5F5F7;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --muted: #6E6E73;
  --line: #D2D2D7;
  --line-2: #E8E8ED;
  --accent: #1E4D8C;
  --accent-dk: #163B6B;
  --tint: #EEF3FA;
  --sage: #EEF5F1;
  --sand: #F7F2E7;
  --green: #1E6B52;
  --red: #B42318;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 18px 48px rgba(0,0,0,.10);
  --hdr: 56px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.25,.1,.25,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 56px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--font); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-d); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.15; font-weight: 700; letter-spacing: -.022em; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -.012em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
small { font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
kbd { font: 500 11px/1 var(--font); padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); }
q { quotes: '"' '"'; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.skip:focus { top: 12px; text-decoration: none; }
.ic { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; }
.ic-xs { width: 14px; height: 14px; vertical-align: -2px; }
.glyph { width: 28px; height: 28px; display: block; }
.tier-glyph { width: 44px; height: 44px; display: block; }
.lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 8px; }
.eyebrow, .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.eyebrow svg { width: 18px; height: 18px; }
.h2like { font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.15; font-weight: 700; letter-spacing: -.022em; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 980px; background: var(--alt); color: var(--muted); font-size: 11px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 980px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.src { display: inline-block; font-size: 12px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.src:hover { color: var(--accent); text-decoration-color: currentColor; }
.cite { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; margin-left: 6px; border: 1px solid var(--line); border-radius: 980px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.cite svg { width: 13px; height: 13px; }
.cite:hover { color: var(--accent); border-color: var(--accent); }
.cite.is-done { color: var(--green); border-color: var(--green); background: var(--sage); }
.yes { display: inline-flex; color: var(--accent); }
.yes svg { width: 18px; height: 18px; }
.no { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 980px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .1s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); background: var(--tint); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink-2); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.actions, .hero-actions, .cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.actions.center { justify-content: center; margin-top: 40px; }

/* ---------- Header ---------- */
.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 120; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.hdr.is-scrolled { border-bottom-color: rgba(0,0,0,.08); background: rgba(255,255,255,.86); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.015em; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; display: block; }
.brand-word span { color: var(--muted); font-weight: 500; }
.hdr-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.hdr-nav > a, .dd-btn { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 11px; border-radius: 8px; color: var(--ink-2); font-size: 13px; font-weight: 500; background: none; border: 0; transition: color .15s var(--ease), background .15s var(--ease); }
.hdr-nav > a:hover, .dd-btn:hover { color: var(--ink); background: rgba(0,0,0,.04); text-decoration: none; }
.hdr-nav > a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.dd { position: relative; }
.dd-ch { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.dd.is-open .dd-ch { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 300px; padding: 8px;
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: 24px 0;
  transition: opacity .16s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.dd.is-open .dd-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .16s var(--ease), transform .2s var(--ease), visibility 0s; }
.dd-panel a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dd-panel a:hover { background: var(--alt); text-decoration: none; }
.dd-t { font-size: 14px; font-weight: 600; }
.dd-d { font-size: 12px; color: var(--muted); line-height: 1.4; }
.nav-cta { display: none !important; }
.hdr-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.hdr-search { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 12px; border: 1px solid var(--line-2); border-radius: 980px; background: var(--alt); color: var(--muted); font-size: 13px; transition: border-color .15s var(--ease), background .15s var(--ease); }
.hdr-search:hover { border-color: var(--line); background: #fff; }
.hdr-search svg { width: 15px; height: 15px; }
.hdr-search-t { min-width: 92px; text-align: left; }
.hdr-menu { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; border-radius: 10px; color: var(--ink); }
.hdr-menu svg { width: 20px; height: 20px; }

/* ---------- Page heads ---------- */
.phead { padding: 48px 0 40px; background: var(--alt); }
.phead-tall { padding: 56px 0 48px; }
.phead h1 { max-width: 820px; }
.phead .lead { margin-top: 14px; }
.crumbs { margin-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 12px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-right: 1.3px solid var(--line); border-top: 1.3px solid var(--line); transform: rotate(45deg); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- Home hero ---------- */
.hero { padding: 56px 0 72px; background: linear-gradient(180deg, var(--alt) 0%, #fff 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 560px; }
.hero .lead { margin-top: 16px; max-width: 520px; }
.hero-search { display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 520px; height: 52px; padding: 0 6px 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 980px; box-shadow: var(--shadow); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,77,140,.12); }
.hero-search svg { width: 18px; height: 18px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn { height: 40px; }
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-pop a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 980px; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; }
.hero-pop a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.hero-since { margin-top: 20px; font-size: 12px; color: var(--muted); }

.hero-viz { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.hv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hero-viz > svg.viz { width: 100%; height: auto; display: block; }
.hv-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0 16px; font-size: 12px; color: var(--muted); }
.hv-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hv-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.hv-legend i.dash { width: 16px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--muted); }
.hv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hv-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--alt); }
.hv-tile .hv-art { width: 100%; max-width: 96px; height: auto; display: block; margin-bottom: 8px; }
.hv-tile strong { font-size: 13px; font-weight: 600; }
.hv-tile span { font-size: 12px; line-height: 1.4; color: var(--muted); }

/* ---------- SVG diagram text ---------- */
svg.viz { width: 100%; height: auto; display: block; overflow: visible; }
.v-ax { font: 400 11px var(--font); fill: var(--muted); }
.v-val { font: 600 12px var(--font); fill: var(--ink); }
.v-val.hot { fill: var(--accent); }
.v-mark { font: 700 12px var(--font); fill: #fff; }
.viz-cap { display: block; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
.band { padding: 72px 0; }
.band-soft { background: var(--alt); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head .lead { margin-top: 12px; }
.sec-head.center, .center .sec-head { margin-left: auto; margin-right: auto; }
.sec-head-gap { margin-top: 64px; }

/* Process flow */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.flow-step { position: relative; padding: 24px; background: var(--alt); border-radius: var(--r-lg); }
.band-soft .flow-step { background: #fff; }
.flow-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); margin-bottom: 16px; }
.band-soft .flow-ic { background: var(--tint); box-shadow: none; }
.flow-n { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.flow-step h3 { margin-bottom: 6px; }
.flow-step p { font-size: 14px; color: var(--ink-2); }
.flow + .sizing { margin-top: 16px; }

/* Sizing diagram */
.sizing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .8fr); gap: 16px; margin-top: 16px; }
.sz-col { padding: 24px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.sz-col h3 { margin-bottom: 6px; }
.sz-col > p { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.sz-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.sz-bar { display: block; height: 10px; width: var(--w, 50%); border-radius: 980px; background: #C9D8EC; }
.sz-row.is-out { color: var(--ink); font-weight: 600; }
.sz-row.is-out .sz-bar { background: var(--accent); }
.sz-out { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: var(--tint); }
.sz-out strong { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.sz-out span { font-size: 14px; color: var(--ink-2); }

/* Sector tiles */
.stiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.stile:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.stile-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 6px; color: var(--ink); }
.stile-head:hover { text-decoration: none; color: var(--accent); }
.stile-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); }
.stile-ic svg { width: 20px; height: 20px; }
.stile-head > span:nth-child(2) { flex: 1; min-width: 0; }
.stile-name { font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.stile-arrow { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease); }
.stile-head:hover .stile-arrow { transform: translateX(3px); color: var(--accent); }
.stile-art { padding: 4px 12px 0; }
.stile ul { list-style: none; padding: 8px 18px 18px; margin-top: auto; border-top: 1px solid var(--line-2); }
.stile li a { display: block; padding: 7px 0; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.stile li + li a { border-top: 1px solid var(--line-2); }
.stile li a:hover { color: var(--accent); text-decoration: none; }

/* Report cards */
.rgrid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); color: var(--ink); transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.rcard:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-2px); }
.rcard:active { transform: scale(.99); }
.rcard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rcard-title { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; }
.rcard-stat { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.rcard-val { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1; font-variant-numeric: tabular-nums; }
.spark { width: 96px; height: 30px; display: block; }
.rcard-label { font-size: 12px; color: var(--muted); line-height: 1.4; }
.rcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.rcard-go { color: var(--accent); font-weight: 500; font-size: 13px; white-space: nowrap; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 980px; background: var(--tint); color: var(--accent); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip-quiet { background: var(--alt); color: var(--muted); }
.chip-dark { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }

/* Two column + checks */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.two-copy h2 { margin-bottom: 12px; }
.two-copy > p { color: var(--ink-2); margin-top: 12px; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.checks li { position: relative; padding-left: 28px; font-size: 14px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%231E4D8C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.checks li > svg { display: none; }

/* Report anatomy */
.anatomy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px; background: var(--alt); border-radius: var(--r-lg); }
.band-soft .anatomy { background: #fff; }
.anat-page { padding: 16px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.band-soft .anat-page { background: var(--alt); box-shadow: none; }
.anat-page svg { width: 100%; height: auto; display: block; }
.anat-list { list-style: none; display: grid; gap: 14px; }
.anat-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.anat-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.anat-list h3 { font-size: 15px; margin-bottom: 2px; }
.anat-list p { font-size: 13px; color: var(--muted); }

/* CTA band */
.cta { padding: 0 0 72px; }
.band + .cta, .cta:first-child { padding-top: 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; border-radius: var(--r-lg); background: var(--tint); }
.cta-in h2 { margin-bottom: 8px; }
.cta-in p { color: var(--ink-2); max-width: 560px; }
.cta-in .cta-actions { margin-top: 0; flex-shrink: 0; }

/* ---------- Library ---------- */
.finder { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.search { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 520px; height: 44px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 980px; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,77,140,.12); }
.search svg { width: 17px; height: 17px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: #E8E8ED; border-radius: 980px; }
.seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 980px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 980px; background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500; transition: all .15s var(--ease); }
.fchip svg { width: 15px; height: 15px; }
.fchip:hover { border-color: var(--ink-2); }
.fchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); background: var(--alt); border-radius: var(--r-lg); }
[hidden] { display: none !important; }

/* ---------- Report page ---------- */
.phead-report { padding: 40px 0 48px; }
.rhead { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.rhead-main h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.rmeta { margin-top: 16px; font-size: 12px; color: var(--muted); }
.hero-kpi { padding: 22px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.hero-kpi .kicker { margin-bottom: 6px; }
.hero-kpi-val { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-kpi-label { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.sector-art { margin: 14px 0 10px; padding: 10px; background: var(--alt); border-radius: 12px; }
.sector-art svg { width: 100%; height: auto; display: block; }

.subnav { position: sticky; top: var(--hdr); z-index: 90; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-2); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { position: relative; display: inline-flex; align-items: center; height: 46px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.subnav a:hover { color: var(--ink); text-decoration: none; }
.subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }

.rgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
.rmain { min-width: 0; }
.rsec { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line-2); }
.rsec:last-of-type { border-bottom: 0; }
.rsec > h2 { margin-bottom: 16px; }
.rsec > h2 + p, .rsec > p { color: var(--ink-2); margin-bottom: 12px; max-width: 680px; }
.rsec h2 ~ h2 { margin-top: 36px; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--alt); border-radius: var(--r); }
.kpi-val { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-txt { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.kpi .src { margin-top: auto; }

.figure { margin: 0 0 32px; padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.figure figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.figure figcaption .kicker { margin: 0; }
.figure figcaption strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.fig-src { margin-top: 10px; font-size: 12px; color: var(--muted); }

.why-list { list-style: none; display: grid; gap: 12px; }
.why-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; color: var(--ink-2); }
.why-list .ic { display: inline-flex; width: 28px; height: 28px; padding: 7px; border-radius: 8px; background: var(--tint); color: var(--accent); }

.tbl { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.tbl table { min-width: 560px; font-size: 13px; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl thead th { position: sticky; top: 0; background: var(--alt); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tbl td.num { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.tbl .unit { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 2px; }
.tbl td.yr { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td a:not(.btn) { color: var(--accent); }
.tbl tbody tr:hover { background: #FAFAFC; }
.tbl-lg table { font-size: 14px; }

.cos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co { padding: 18px; background: var(--alt); border-radius: var(--r); }
.co-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.co p:not(.co-name) { font-size: 13px; color: var(--ink-2); }

.rsec .anatomy { margin-bottom: 24px; }
.contents { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.toc { list-style: none; display: grid; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.toc li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 14px; font-size: 14px; }
.toc li + li { border-top: 1px solid var(--line-2); }
.toc-n { font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 2px; font-variant-numeric: tabular-nums; }
.toc strong { font-weight: 600; }
.toc .muted { font-size: 13px; }
.included { padding: 20px; background: var(--tint); border-radius: var(--r); }
.included .checks { margin-top: 8px; }
.included .checks li::before { background-color: #fff; }

.faq h2 { margin-bottom: 16px; }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-of-type { border-top: 1px solid var(--line-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 15px; font-weight: 600; }
.qa summary:hover h3 { color: var(--accent); }
.qa-x { position: relative; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--alt); transition: transform .25s var(--ease), background .2s var(--ease); }
.qa-x::before, .qa-x::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11.25px; height: 1.5px; border-radius: 1px; background: var(--ink-2); }
.qa-x::after { transform: rotate(90deg); transition: transform .25s var(--ease); }
.qa[open] .qa-x { background: var(--tint); }
.qa[open] .qa-x::after { transform: rotate(0); }
.qa-a { padding: 0 40px 18px 0; }
.qa-a p { font-size: 14px; color: var(--ink-2); }
.qa-a p + p { margin-top: 10px; }

.sources { padding-left: 20px; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); }
.sources li { padding-left: 4px; }
.sources li::marker { color: var(--muted); font-size: 12px; }
.sources a { font-weight: 500; overflow-wrap: anywhere; }
.sources .muted { display: block; font-size: 12px; }
.sources q { display: block; margin-top: 4px; padding-left: 10px; border-left: 2px solid var(--line-2); color: var(--muted); font-size: 12px; }

/* Sample form */
.sample { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; padding: 32px; background: var(--alt); border-radius: var(--r-lg); }
main > .sample { width: min(1072px, calc(100% - 48px)); margin: 0 auto 72px; }
.sample-copy h2 { margin-bottom: 10px; }
.sample-copy > p { color: var(--ink-2); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding: 24px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full, .form > .btn, .form-status, .form-note { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.req { color: var(--red); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; margin-left: 4px; font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; min-height: 108px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select { padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%236E6E73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center/12px no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B8B8BF; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,77,140,.12); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 12px; color: var(--red); font-weight: 500; }
.err:empty { display: none; }
.form > .btn { margin-top: 6px; }
.form-status { font-size: 13px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green); padding: 10px 12px; background: var(--sage); border-radius: var(--r-sm); }
.form-status.is-err { color: var(--red); padding: 10px 12px; background: #FDF0EF; border-radius: var(--r-sm); }
.form-note { font-size: 12px; color: var(--muted); }

/* Buy card */
.buy { position: sticky; top: calc(var(--hdr) + 46px + 20px); }
.buy-card { padding: 22px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.buy-title { font-size: 19px; margin-bottom: 16px; }
.tiers { border: 0; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; min-width: 0; }
.tier { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.tier:hover { border-color: #B8B8BF; }
.tier input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--accent); }
.tier:has(input:checked) { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.tier:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tier-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tier-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tier-name { font-size: 14px; font-weight: 600; }
.tier-price { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tier-what { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.tier-del { font-size: 11px; color: var(--muted); }
.assure { list-style: none; display: grid; gap: 8px; margin: 16px 0; font-size: 12px; color: var(--ink-2); }
.assure li { display: flex; align-items: flex-start; gap: 8px; }
.assure svg { width: 15px; height: 15px; color: var(--green); margin-top: 1px; }
.buy-card .btn + .assure + .btn, .buy-card .assure + .btn { margin-top: 0; }

.mbar { display: none; }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.price-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.price-card .badge { position: absolute; top: 20px; right: 20px; }
.price-card .tier-glyph { margin-bottom: 16px; }
.price-name { font-size: 17px; font-weight: 600; letter-spacing: -.012em; }
.price-amt { margin-top: 6px; font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price-what { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.price-inc { list-style: none; display: grid; gap: 10px; margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.price-inc li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.price-inc svg { width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }
.price-del { display: flex; align-items: center; gap: 6px; margin: auto 0 20px; padding-top: 16px; font-size: 12px; color: var(--muted); }
.matrix th[scope="row"] { font-weight: 500; color: var(--ink); background: none; }
.matrix thead th { text-align: center; }
.matrix thead th:first-child { text-align: left; }
.matrix td { text-align: center; }
.matrix thead th.is-featured { color: var(--accent); background: var(--tint); }
.rec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px; background: var(--alt); border-radius: var(--r-lg); }
.rec-form { display: grid; gap: 14px; }
.rec-out { padding: 22px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.rec-name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.rec-name span { font-size: 15px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rec-out > p:not(.rec-name) { font-size: 14px; color: var(--ink-2); }
.rec-out .btn { margin-top: 16px; }

/* ---------- About / contact ---------- */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.glance > div { padding: 18px; background: var(--alt); border-radius: var(--r); }
.glance dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.glance dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.glance-wide { grid-template-columns: minmax(0, 1fr); }
.ftr-mail-inline { font-weight: 600; }
.contact-aside { padding: 28px; background: var(--tint); border-radius: var(--r-lg); }
.contact-aside > p:not(.kicker) { color: var(--ink-2); }
.contact-aside .small { margin-top: 12px; }
.two-copy .glance + p { margin-top: 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar { padding: 24px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.band-soft .pillar { border-color: transparent; }
.pillar-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); margin-bottom: 16px; }
.pillar-ic svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--ink-2); }

/* ---------- Prose / legal ---------- */
.prose { padding-top: 48px; padding-bottom: 72px; }
.prose h2 { font-size: 21px; margin: 36px 0 10px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose .note { padding: 16px 18px; background: var(--sand); border-radius: var(--r); color: #5C4A1F; font-size: 14px; margin: 16px 0; }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .15s var(--ease); }
.cmdk-box { position: relative; width: 100%; max-width: 640px; max-height: 70vh; display: flex; flex-direction: column; background: rgba(255,255,255,.97); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.22); overflow: hidden; animation: popIn .2s var(--ease); }
.cmdk-in { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.cmdk-in svg { width: 18px; height: 18px; color: var(--muted); }
.cmdk-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; }
.cmdk-list { list-style: none; overflow-y: auto; padding: 6px; flex: 1; }
.cmdk-item { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.cmdk-item:hover { text-decoration: none; background: var(--alt); }
.cmdk-item.is-sel { background: var(--tint); }
.cmdk-k { grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--alt); color: var(--muted); font-size: 11px; font-weight: 600; }
.cmdk-item.is-sel .cmdk-k { background: #fff; color: var(--accent); }
.cmdk-t { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-s:empty { display: none; }
.cmdk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); background: var(--alt); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }
.cmdk-count { margin-left: auto; }
.cmdk-list:empty::after { content: "No matches"; display: block; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 320; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 980px; background: rgba(29,29,31,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.ftr { background: var(--alt); border-top: 1px solid var(--line-2); padding: 56px 0 28px; font-size: 13px; color: var(--muted); }
.ftr-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px; margin-bottom: 48px; background: #fff; border-radius: var(--r-lg); }
.ftr-cta h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 6px; }
.ftr-cta p:not(.kicker) { color: var(--ink-2); font-size: 14px; max-width: 520px; }
.ftr-cta .actions { margin-top: 0; flex-shrink: 0; }
.ftr-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.ftr-brand .brand { margin-bottom: 12px; }
.ftr-brand p { font-size: 13px; line-height: 1.55; max-width: 300px; }
.ftr-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink); font-weight: 500; }
.ftr-mail svg { width: 16px; height: 16px; color: var(--muted); }
.ftr h3 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: 0; }
.ftr-h-gap { margin-top: 24px; }
.ftr-links { display: grid; gap: 9px; }
.ftr-links a { color: var(--muted); font-size: 13px; line-height: 1.35; }
.ftr-links a:hover { color: var(--ink); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font-size: 12px; line-height: 1.5; }
.ftr-since { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.ftr-bottom span:last-child { max-width: 760px; }

/* ---------- Reveal ---------- */
[data-reveal].pre { opacity: 0; transform: translateY(8px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.985); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr-search-t { display: none; }
  .hdr-search { padding: 0 8px 0 10px; }
}
@media (max-width: 1100px) {
  .stiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sizing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sz-out { grid-column: 1 / -1; }
  .ftr-top { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ftr-brand { grid-column: 1 / -1; }
  .ftr-brand p { max-width: 520px; }
}
@media (max-width: 1023px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero h1, .hero .lead, .hero-search { max-width: 640px; }
  .rgrid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rhead { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-kpi { max-width: 520px; }
  .rgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .buy { position: static; max-width: 560px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prices { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sample { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rec { grid-template-columns: minmax(0, 1fr); }
  .contents { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  :root { --hdr: 52px; }
  .hdr-cta { display: none; }
  .hdr-menu { display: inline-flex; }
  .hdr-in { gap: 12px; }
  .hdr-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; max-height: calc(100vh - var(--hdr)); max-height: calc(100dvh - var(--hdr)); overflow-y: auto;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 48px rgba(0,0,0,.08);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .hdr-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .22s var(--ease), visibility 0s; }
  .hdr-nav > a, .dd-btn { height: 48px; padding: 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line-2); width: 100%; justify-content: space-between; }
  .hdr-nav > a:hover, .dd-btn:hover { background: none; }
  .dd-panel { position: static; width: auto; padding: 4px 0 8px; border: 0; box-shadow: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; opacity: 1; visibility: visible; display: none; }
  .dd.is-open .dd-panel { display: block; }
  .dd-panel a { padding: 10px 4px; }
  .nav-cta { display: flex !important; align-items: center; justify-content: center; height: 48px; margin-top: 20px; border-radius: 980px; background: var(--accent); color: #fff !important; font-size: 16px; font-weight: 500; border: 0 !important; }
  .nav-cta:hover { background: var(--accent-dk); text-decoration: none; }
  .hdr-search kbd { display: none; }
  .hdr-search { width: 44px; height: 44px; padding: 0; justify-content: center; background: none; border-color: transparent; }
  .hdr-search svg { width: 18px; height: 18px; color: var(--ink); }
  .subnav { top: var(--hdr); }
  .buy { scroll-margin-top: calc(var(--hdr) + 56px); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.9);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line-2);
  }
  .mbar-n { font-size: 13px; color: var(--muted); }
  .mbar-n strong { display: block; color: var(--ink); font-size: 15px; }
  .mbar .btn { height: 44px; }
  body:has(.mbar) .ftr { padding-bottom: 96px; }
  .cta-in, .ftr-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .band { padding: 48px 0; }
  .cta { padding-bottom: 48px; }
  .phead, .phead-tall { padding: 32px 0 32px; }
  .hero { padding: 36px 0 48px; }
  .lead { font-size: 16px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head-gap { margin-top: 44px; }
  .btn { min-height: 44px; }
  .btn-sm { height: 44px; }
  .hero-viz { padding: 14px; }
  .hv-tiles { grid-template-columns: minmax(0, 1fr); }
  .hv-tile { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .hv-tile .hv-art { grid-row: 1 / span 2; margin: 0; }
  .flow, .sizing, .stiles, .rgrid-cards, .pillars, .kpis, .cos, .glance { grid-template-columns: minmax(0, 1fr); }
  .anatomy { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .anat-page { max-width: 280px; }
  .cta-in, .ftr-cta, .sample, .rec, .contact-aside { padding: 24px 20px; }
  main > .sample { width: calc(100% - 40px); margin-bottom: 48px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .field input, .field select { height: 48px; font-size: 16px; }
  .field textarea { font-size: 16px; }
  .seg { width: 100%; }
  .seg button { flex: 1; height: 40px; padding: 0 8px; }
  .fchip { height: 40px; }
  .search { flex-basis: 100%; max-width: none; height: 48px; }
  .hero-search { height: 56px; }
  .hero-search .btn { height: 44px; }
  .hero-pop a { height: 36px; }
  .rsec { padding-bottom: 36px; margin-bottom: 36px; }
  .figure { padding: 14px; }
  .qa-a { padding-right: 0; }
  .subnav a { height: 44px; }
  .price-card { padding: 24px 20px 20px; }
  .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .ftr-links a { display: inline-block; padding: 4px 0; }
  .ftr-bottom { flex-direction: column; }
  .cmdk { padding-top: 8vh; }
  .cite { height: 32px; }
}
@media (max-width: 560px) {
  .hero-actions .btn, .cta-actions .btn, .ftr-cta .actions .btn, .actions:not(.center) .btn { flex: 1 1 100%; }
  .hero-search input { font-size: 16px; }
  .rcard-val { font-size: 22px; }
  .hero-kpi-val { font-size: 30px; }
}
@media (max-width: 374px) {
  .wrap { padding: 0 16px; }
  .brand-word span { display: none; }
  .hero-search .btn { padding: 0 14px; }
  .ftr-top { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal].pre { opacity: 1; transform: none; }
  .rcard:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .hdr, .hdr.is-scrolled, .subnav, .mbar, .dd-panel, .cmdk-box, .toast { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toast { background: var(--ink); }
}
@media (prefers-contrast: more) {
  :root { --muted: #48484C; --line: #8E8E93; --line-2: #AEAEB2; }
  .hdr { background: #fff; border-bottom-color: var(--line); }
  .btn-ghost, .btn-light, .fchip, .tier { border-color: var(--ink-2); }
}
@media print {
  .hdr, .subnav, .mbar, .ftr-cta, .buy, .cmdk, .toast, .progress { display: none !important; }
  .rgrid { grid-template-columns: 1fr; }
}
