/* Meridian Decision Network — shared design system
   Goals: fast LCP (system fonts, no blocking webfonts), stable CLS (reserved
   ad + image slots), readable long-form typography, mobile-first. */

:root {
  --brand: #14584f;
  --brand-dark: #0c3b35;
  --brand-soft: #e8f3f0;
  --accent: #c2601a;
  --ink: #14181d;
  --ink-soft: #47525f;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --ok: #1c7c4a;
  --warn: #9a6700;
  --radius: 10px;
  --maxw: 1180px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); margin-top: 1.9em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
small { font-size: .84rem; }
code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 40; }
.net-bar { background: var(--brand-dark); color: #cfe4e0; font-size: .78rem; }
.net-bar .wrap { display: flex; gap: 14px; align-items: center; justify-content: space-between; min-height: 34px; flex-wrap: wrap; }
.net-bar a { color: #fff; text-decoration: none; }
.net-bar a:hover { text-decoration: underline; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1rem; flex: none;
}
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-tag { display: block; font-weight: 400; font-size: .72rem; color: var(--ink-soft); letter-spacing: 0; }
.site-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 6px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); border-bottom: 2px solid var(--brand); }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: .9rem; cursor: pointer;
}

/* ---------- Mega menu ---------- */
.site-nav .mega-toggle {
  font: inherit; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent;
}
.site-nav .mega-toggle:hover { color: var(--brand); border-bottom-color: var(--brand); }
.site-nav .mega-toggle .caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .15s ease; flex: none;
}
.site-nav .mega-toggle[aria-expanded="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.site-nav .mega-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }

.mega-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(16, 24, 40, .12);
  padding: 20px 0 18px; z-index: 45; display: none;
  /* Never let the panel run past the viewport: anything taller scrolls inside. */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mega-panel.open { display: block; }
.mega-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mega-lead { font-size: .85rem; color: var(--ink-soft); margin: 0 0 14px; max-width: 78ch; }
/* auto-fit keeps every generated column on one row whether there are 4 or 5 */
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 18px 26px; }
.mega-col h4 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin: 0 0 8px; font-weight: 700;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0 0 6px; }
.mega-col a {
  display: block; font-size: .865rem; color: var(--ink); text-decoration: none; line-height: 1.3;
  border-left: 2px solid transparent; padding-left: 9px;
}
.mega-col a:hover { color: var(--brand); border-left-color: var(--brand); }
/* Cluster descriptions are decoration, not navigation — hide them where height is tight */
.mega-col .mega-note { font-size: .78rem; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.4; }
.mega-foot {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: .83rem;
}
.mega-foot a { text-decoration: none; color: var(--ink); }
.mega-foot a:hover { color: var(--brand); text-decoration: underline; }
.mega-foot .mega-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }
/* Short viewports: drop the prose so all links fit without scrolling */
@media (max-height: 760px) {
  .mega-lead { display: none; }
  .mega-col .mega-note { display: none; }
}
@media (max-width: 1120px) and (min-width: 981px) {
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-col .mega-note { display: none; }
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 28px 0 56px; }
.layout.full { grid-template-columns: minmax(0, 1fr); }
.article { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 92px; }

.breadcrumbs { font-size: .82rem; color: var(--ink-soft); margin: 0 0 14px; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { margin: 0 6px; color: #aab3bd; }

.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.dek { font-size: 1.12rem; color: var(--ink-soft); margin: -.2em 0 1.2em; }
.byline {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .83rem;
  color: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: 26px;
}
.byline strong { color: var(--ink); font-weight: 600; }
.badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 2px 10px; font-size: .74rem; font-weight: 600;
}
.badge.rev { background: #eef4ff; color: #23408e; }

.answer-box {
  background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 0 0 26px;
}
.answer-box p:last-child { margin-bottom: 0; }
.answer-box .lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--brand-dark); }

.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 30px; background: var(--bg-alt); }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; color: var(--ink-soft); }
.toc ol { margin: 0; padding-left: 1.1em; font-size: .92rem; }
.toc li { margin-bottom: .3em; }

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.prose tbody tr:nth-child(even) { background: #fbfcfd; }
.prose blockquote {
  margin: 0 0 1.4em; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft);
}
.prose figure { margin: 0 0 1.6em; }
.prose figcaption { font-size: .82rem; color: var(--ink-soft); }

.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 1.6em; background: #fff; }
.callout.tip { border-left: 4px solid var(--ok); background: #f3faf6; }
.callout.warn { border-left: 4px solid var(--warn); background: #fdf8ec; }
.callout .h { font-weight: 700; display: block; margin-bottom: 4px; }

.faq { margin-top: 2.2em; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { margin-bottom: 8px; color: var(--brand); }

.sources { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 22px; margin-top: 2.2em; font-size: .9rem; }
.sources h2 { margin-top: 0; font-size: 1rem; }
.sources ul { margin-bottom: 0; }

.disclosure {
  font-size: .82rem; color: var(--ink-soft); background: #fffdf7; border: 1px dashed #e3d3a8;
  border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: .6em; }
.card .kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.card a.stretch { text-decoration: none; color: inherit; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pill-row a {
  display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: .86rem; text-decoration: none; color: var(--ink-soft); background: #fff;
}
.pill-row a:hover { border-color: var(--brand); color: var(--brand); }

.btn {
  display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 20px; font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.alt { background: var(--accent); }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Media placeholders ----------
   aspect-ratio reserves the box before paint, so these never cause layout shift.
   Purely decorative: gradient mesh + drifting blobs + one-pass shimmer. */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 12% 18%, var(--brand-soft) 0%, transparent 55%),
    radial-gradient(100% 100% at 88% 82%, #fff5e8 0%, transparent 50%),
    linear-gradient(135deg, #f4f7f9 0%, #eef2f5 100%);
  display: grid; place-items: center; isolation: isolate;
}
.ph.r16 { aspect-ratio: 16 / 9; }
.ph.r43 { aspect-ratio: 4 / 3; }
.ph.r21 { aspect-ratio: 21 / 9; }
.ph.r11 { aspect-ratio: 1 / 1; }
.ph::before {
  content: ""; position: absolute; inset: -25%;
  background:
    radial-gradient(28% 34% at 26% 30%, color-mix(in srgb, var(--brand) 34%, transparent) 0%, transparent 70%),
    radial-gradient(24% 30% at 74% 68%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 70%);
  filter: blur(6px); opacity: .75; animation: ph-drift 18s ease-in-out infinite alternate;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-120%); animation: ph-sheen 5.5s ease-in-out 1s infinite;
}
.ph-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-align: center; padding: 14px;
}
.ph-glyph {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .82); box-shadow: var(--shadow);
  color: var(--brand); font-weight: 700; font-size: .95rem; letter-spacing: -.02em;
  backdrop-filter: blur(2px);
}
.ph-cap {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  color: var(--ink-soft); background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 3px 10px;
}
.ph-grid {
  position: absolute; inset: 0; z-index: 1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 75%);
}
@keyframes ph-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.03); }
}
@keyframes ph-sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }

/* Real bitmap layered over the reserved ratio box. The decorative gradient,
   grid, orbs, sheen and glyph are all suppressed once an image is present; if
   the file 404s, ads.js-style onerror drops [data-img] and they all return. */
.ph-img {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: inherit;
}
.ph[data-img] { background: var(--bg-alt); }
.ph[data-img]::before,
.ph[data-img]::after { content: none; animation: none; }
.ph[data-img] .ph-grid,
.ph[data-img] .ph-inner { display: none; }
/* Images are content, not decoration: no drift/sheen animation on them. */
@media (prefers-reduced-motion: reduce) {
  .ph::before, .ph::after { animation: none; }
}

/* Author / reviewer portrait tiles on the trust pages: a small square inset,
   not a full-bleed card header. */
.card.person .ph.portrait {
  width: 92px; margin: 0 0 12px; border-radius: 14px; overflow: hidden;
}
.card.person .ph.portrait .ph-glyph { width: 100%; height: 100%; border-radius: 14px; font-size: 1.5rem; box-shadow: none; }

.card .ph { margin: -20px -20px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.prose figure .ph { margin-bottom: 8px; }
.widget .ph { margin: -18px -18px 14px; border-radius: var(--radius) var(--radius) 0 0; }
.site-card .ph { width: 96px; flex: none; align-self: flex-start; }

/* ---------- Title icons ----------
   Inline SVG glyphs sized to the heading they sit in. Decorative only:
   every icon is aria-hidden and the heading text carries the meaning. */
.ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; flex: none; vertical-align: -.16em;
  color: var(--brand);
}
.ico svg { width: 100%; height: 100%; display: block; }
h1 .ico, h2 .ico, h3 .ico { margin-right: .44em; }

/* Chip variant: icon in a soft tinted square, used on section headings */
.h-ico {
  display: inline-grid; place-items: center; width: 1.85em; height: 1.85em;
  border-radius: .42em; background: var(--brand-soft); color: var(--brand);
  margin-right: .5em; vertical-align: -.42em; flex: none;
}
.h-ico svg { width: 1em; height: 1em; }
.prose h2 { display: flex; align-items: flex-start; gap: 0; }
.prose h2 .h-ico { margin-top: -.05em; }
.card h3 .ico { color: var(--accent); }
.widget h3 .ico { width: 1em; height: 1em; }
.ph-glyph .ico { width: 1.35em; height: 1.35em; margin: 0; }
@media (max-width: 640px) {
  .prose h2 { display: block; }
  .prose h2 .h-ico { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--brand-soft), #fff 70%);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 46px; padding-bottom: 40px; position: relative; z-index: 2; }
.hero h1 { max-width: 20ch; }
.hero p.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; font-size: .84rem; color: var(--ink-soft); }
.trust-row span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; }

/* Animated hero backdrop: three drifting orbs behind the copy. */
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-orbs i {
  position: absolute; display: block; border-radius: 50%; filter: blur(38px); opacity: .5;
  will-change: transform;
}
.hero-orbs i:nth-child(1) { width: 380px; height: 380px; top: -120px; right: -60px; background: var(--brand); opacity: .22; animation: orb-a 22s ease-in-out infinite alternate; }
.hero-orbs i:nth-child(2) { width: 300px; height: 300px; bottom: -140px; left: 8%; background: var(--accent); opacity: .16; animation: orb-b 26s ease-in-out infinite alternate; }
.hero-orbs i:nth-child(3) { width: 240px; height: 240px; top: 30%; left: 46%; background: var(--brand-dark); opacity: .1; animation: orb-c 30s ease-in-out infinite alternate; }
@keyframes orb-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-70px, 60px, 0) scale(1.18); } }
@keyframes orb-b { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(80px, -50px, 0) scale(1.12); } }
@keyframes orb-c { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, -70px, 0) scale(1.25); } }

/* Entrance animation, shared by home + article heroes */
.rise { opacity: 0; transform: translateY(14px); animation: rise-in .62s cubic-bezier(.22, .68, .36, 1) forwards; }
.rise.d1 { animation-delay: .07s; }
.rise.d2 { animation-delay: .14s; }
.rise.d3 { animation-delay: .21s; }
.rise.d4 { animation-delay: .28s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ---------- Article page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; border: 1px solid var(--line);
  border-radius: 14px; padding: 24px 26px 22px; margin: 0 0 28px;
  background: linear-gradient(150deg, var(--brand-soft) 0%, #fff 62%);
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero .breadcrumbs { margin-bottom: 10px; }
.page-hero h1 { margin-bottom: .35em; }
.page-hero .dek { margin-bottom: .9em; }
.page-hero .byline { border-top-color: rgba(20, 24, 29, .1); border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.page-hero .hero-orbs i { filter: blur(30px); }
.page-hero .hero-orbs i:nth-child(1) { width: 260px; height: 260px; top: -110px; right: -50px; }
.page-hero .hero-orbs i:nth-child(2) { width: 200px; height: 200px; bottom: -120px; left: 20%; }
.page-hero .hero-orbs i:nth-child(3) { display: none; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--brand-dark);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(20, 24, 29, .08);
  border-radius: 999px; padding: 4px 11px; margin: 0 0 10px;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none;
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(28, 124, 74, .5); }
  50% { box-shadow: 0 0 0 6px rgba(28, 124, 74, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ph::before, .ph::after, .hero-orbs i, .hero-badge .pulse { animation: none !important; }
  .rise { opacity: 1; transform: none; animation: none !important; }
  html { scroll-behavior: auto; }
}

.section { padding: 40px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; }

/* ---------- Content edge ("what others miss") ----------
   The differentiating block. Visually distinct from ordinary prose because it
   carries the page's unique research; see CONTENT-EDGE-PLAYBOOK.md. */
.edge {
  margin: 32px 0; padding: 22px 24px;
  border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); background: var(--bg-alt);
}
.edge > h2 { margin-top: 0; }
.edge-item {
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.edge-item:last-child { border-bottom: 0; }
.edge-item p { margin: 0 0 7px; }
.edge-item p:last-child { margin-bottom: 0; }
.edge-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 2px 7px; border-radius: 4px; margin-right: 7px;
  background: #e6e9ec; color: #47525d; vertical-align: 1px;
}
.edge-tag.bad { background: #fbe6e6; color: #8c2f2f; }
.edge-tag.good { background: #e2f0e8; color: #1c7c4a; }
.edge-claim { color: var(--ink-soft); }
.edge-ours { font-weight: 500; }
.edge-only {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.edge-only h3 { margin: 0 0 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); }
.edge-only ul { margin: 0; padding-left: 20px; font-size: .94rem; }
@media (max-width: 640px) {
  .edge { padding: 18px 16px; }
}

/* ---------- Sidebar widgets ---------- */
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; background: #fff; }
.widget h3 { margin-top: 0; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.widget ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.widget li { border-bottom: 1px solid var(--line); padding: 8px 0; margin: 0; }
.widget li:last-child { border-bottom: 0; }
.widget.newsletter { background: var(--brand-soft); border-color: #cfe4df; }
.widget.newsletter h3 { color: var(--brand-dark); }

/* Reserved ad slots — fixed height prevents layout shift (CLS) */
.ad-slot {
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-alt);
  display: grid; place-items: center; color: #98a2ae; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .1em; margin: 0 0 22px;
}
.ad-slot.mrec { min-height: 250px; }
.ad-slot.leader { min-height: 90px; }
.ad-slot.footer { min-height: 100px; }
.ad-slot.inline { min-height: 280px; margin: 30px 0; }
.ad-slot { position: relative; }
.ad-slot .ad-label { pointer-events: none; position: absolute; z-index: 0; }
.ad-slot ins.adsbygoogle { position: relative; z-index: 1; }
.ad-slot ins.adsbygoogle[data-ad-status="filled"] { background: #fff; }
/* Full-width bands (top leaderboard / footer banner) stay inside the grid */
.ad-band { max-width: var(--maxw); margin: 18px auto; width: calc(100% - 40px); }
.ad-slot ins.adsbygoogle { display: block; width: 100%; }
@media (max-width: 640px) {
  .ad-slot.leader { min-height: 100px; }
  .ad-slot.inline { min-height: 250px; }
}
/* Pre-approval review mode (set by assets/js/ads.js from ADS_CONFIG.reviewMode):
   collapse every reserved slot completely so no dashed boxes, empty bands or
   unexplained gaps are visible to an AdSense reviewer. Reverting reviewMode to
   false restores all reserved heights above. */
html[data-review-mode="1"] .ad-slot {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* ---------- Forms / tools ---------- */
.form-row { margin-bottom: 14px; }
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 5px; }
label .hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .8rem; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #c9d1d9; border-radius: 8px;
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.checkbox { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; font-weight: 400; color: var(--ink-soft); }
.checkbox input { margin-top: 3px; }
.form-msg { font-size: .88rem; margin-top: 10px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #b3261e; }

.tool { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.tool-head { background: var(--brand); color: #fff; padding: 16px 22px; }
.tool-head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.tool-head p { margin: 4px 0 0; font-size: .88rem; opacity: .9; }
.tool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding: 22px; }
.tool-results { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; }
.result-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.result-item:last-child { border-bottom: 0; }
.result-item .rl { font-size: .82rem; color: var(--ink-soft); }
.result-item .rv { font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); line-height: 1.2; }
.result-item .rh { font-size: .8rem; color: var(--ink-soft); }

.checklist-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; }
.checklist-group h3 { margin-top: 0; }
.checklist-group label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .95rem; }
.checklist-group input { margin-top: 4px; }
.progress-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 18px; }
.progress-bar i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .2s ease; }

/* ---------- Comparison / money pages ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 1.6em; display: block; overflow-x: auto; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--brand); color: #fff; position: sticky; top: 0; }
.compare-table .best { background: #f3faf6; }
.rating { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1417; color: #aeb8c2; padding: 44px 0 26px; font-size: .9rem; margin-top: 20px; }
.site-footer a { color: #dbe3ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-legal { border-top: 1px solid #23292e; margin-top: 30px; padding-top: 18px; font-size: .8rem; color: #7d8892; }

/* ---------- Network hub ---------- */
.net-hero { background: #0f1417; color: #fff; padding: 60px 0; }
.net-hero h1 { color: #fff; max-width: 22ch; }
.net-hero p { color: #b7c2cc; max-width: 65ch; font-size: 1.12rem; }
.site-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; display: flex; gap: 16px; }
.site-card .dot { width: 40px; height: 40px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; }
.site-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.site-card p { font-size: .9rem; color: var(--ink-soft); margin: 0 0 10px; }
.site-card .meta { font-size: .78rem; color: #8b95a1; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sidebar { border-top: 1px solid var(--line); padding-top: 26px; }
  .sidebar-sticky { position: static; }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; padding-bottom: 14px; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .header-main { flex-wrap: wrap; }
  /* Mobile: panel flows in the page (scrolls with the document), no clipping */
  .mega-panel {
    position: static; box-shadow: none; padding: 10px 0 4px; border-bottom: 0;
    max-height: none; overflow: visible;
  }
  .mega-inner { padding: 0; }
  .mega-grid { grid-template-columns: 1fr; gap: 14px; }
  .mega-lead, .mega-col .mega-note { display: none; }
  .mega-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 980px) and (min-width: 641px) {
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-col .mega-note { display: none; }
}
@media (max-width: 640px) {
  .page-hero { padding: 18px 18px 16px; border-radius: 12px; }
  .card .ph { margin: -20px -20px 14px; }
}
@media print {
  .site-header, .sidebar, .site-footer, .ad-slot, .hero-orbs, .ph { display: none; }
  .page-hero { border: 0; padding: 0; background: none; }
}

/* ==========================================================================
   MODERN LAYER
   A refresh of the surface design: softer light, layered depth, gradient
   accents, spring easing and scroll-driven motion. Loaded last so it
   overrides the base rules above without touching any page shell.
   Everything here degrades to the base design if a feature is unsupported,
   and all motion is disabled under prefers-reduced-motion.
   ========================================================================== */

:root {
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --line: #e6eaef;
  --line-soft: #eef1f5;
  --ink: #101418;
  --ink-soft: #55606d;
  --bg-alt: #f7f9fb;
  --ease: cubic-bezier(.22, .68, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 6px rgba(16, 24, 40, .04);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 26px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, .06), 0 22px 48px rgba(16, 24, 40, .12);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
  --grad-brand: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 62%, var(--accent)) 100%);
}

body {
  background:
    radial-gradient(58rem 30rem at 108% -8%, color-mix(in srgb, var(--brand) 7%, transparent) 0%, transparent 60%),
    radial-gradient(46rem 26rem at -12% 2%, color-mix(in srgb, var(--accent) 6%, transparent) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Reading progress ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.read-progress i {
  display: block; height: 100%; width: 0%;
  background: var(--grad-brand);
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 55%, transparent);
  transition: width .12s linear;
}

/* ---------- Header: translucent, lifts on scroll ---------- */
.site-header {
  background: color-mix(in srgb, #fff 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 24, 40, .07);
  background: color-mix(in srgb, #fff 92%, transparent);
}
.net-bar { background: linear-gradient(90deg, var(--brand-dark), color-mix(in srgb, var(--brand-dark) 72%, var(--brand))); }
.brand-mark {
  border-radius: 11px; background: var(--grad-brand);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 34%, transparent);
  transition: transform .35s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }

/* Animated nav underline instead of a hard border */
.site-nav a, .site-nav .mega-toggle { position: relative; border-bottom: 0 !important; }
.site-nav a::after, .site-nav .mega-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after,
.site-nav .mega-toggle:hover::after,
.site-nav .mega-toggle[aria-expanded="true"]::after { transform: scaleX(1); }

.mega-panel {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: color-mix(in srgb, #fff 96%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mega-panel.open { animation: mega-in .26s var(--ease) both; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mega-col a { border-radius: 7px; padding: 4px 9px; transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.mega-col a:hover { background: var(--brand-soft); transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; border-radius: 12px; letter-spacing: -.01em;
  background: var(--grad-brand);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 26%, transparent);
  transition: transform .22s var(--ease-spring), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .38) 50%, transparent 66%);
  transform: translateX(-120%);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 34%, transparent);
  filter: saturate(1.05);
}
.btn:hover::after { animation: btn-shine .7s var(--ease) forwards; }
.btn:active { transform: translateY(0); }
@keyframes btn-shine { to { transform: translateX(120%); } }
.btn.alt { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #d98324)); box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }

/* ---------- Cards: lifted, gradient edge on hover ---------- */
.card, .widget, .tool, .faq details, .checklist-group, .site-card {
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card { position: relative; box-shadow: var(--shadow-sm); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; z-index: 3;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
/* Pointer-tracked glow; --mx/--my are set by motion.js on mousemove. */
.card::after, .site-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 68%);
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.card:hover::after, .site-card:hover::after { opacity: 1; }
.card > *, .site-card > * { position: relative; z-index: 1; }
.site-card { position: relative; }
.card h3 a { text-decoration: none; background-image: linear-gradient(var(--brand), var(--brand)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.card:hover h3 a { background-size: 100% 1.5px; }
.card .kicker { display: inline-block; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border-radius: 999px; padding: 3px 10px; }

.site-card { box-shadow: var(--shadow-sm); }
.site-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); }

.widget { box-shadow: var(--shadow-sm); }
.widget.newsletter { background: linear-gradient(160deg, var(--brand-soft), #fff 78%); border-color: color-mix(in srgb, var(--brand) 18%, var(--line)); }
.widget li { border-bottom-color: var(--line-soft); }
.widget li a { text-decoration: none; transition: color .2s var(--ease), padding-left .2s var(--ease); display: inline-block; }
.widget li a:hover { padding-left: 4px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(70% 100% at 78% 0%, color-mix(in srgb, var(--brand) 12%, transparent) 0%, transparent 62%),
    linear-gradient(165deg, var(--brand-soft) 0%, #fff 62%);
  border-bottom: 1px solid var(--line-soft);
}
.hero .wrap { padding-top: 62px; padding-bottom: 56px; }
.hero h1 {
  background: linear-gradient(120deg, var(--ink) 32%, var(--brand) 78%, var(--accent) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ink);
  letter-spacing: -.03em;
}
@supports not (background-clip: text) { .hero h1 { -webkit-text-fill-color: currentColor; color: var(--ink); } }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .72); border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  border-radius: 999px; padding: 5px 14px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--brand-dark);
  box-shadow: var(--shadow-sm);
}
.trust-row span {
  background: rgba(255, 255, 255, .68); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px;
}
.hero-orbs i { filter: blur(46px); }

/* Stat band */
.section .grid.c4 > .card {
  text-align: center; background: linear-gradient(170deg, #fff, var(--bg-alt));
}
.section .grid.c4 > .card > div:first-child {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-size: 2rem !important; letter-spacing: -.03em;
}

/* ---------- Article ---------- */
.page-hero {
  border-radius: var(--radius-lg);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
  background:
    radial-gradient(80% 120% at 92% 0%, color-mix(in srgb, var(--brand) 13%, transparent) 0%, transparent 60%),
    linear-gradient(150deg, var(--brand-soft) 0%, #fff 58%);
}
.page-hero h1 { letter-spacing: -.028em; }
.hero-badge { box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); }

.answer-box {
  border-left: 0; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-soft), #fff 88%);
  box-shadow: inset 3px 0 0 var(--brand), var(--shadow-sm);
  padding: 18px 22px;
}
.toc {
  background: linear-gradient(170deg, #fff, var(--bg-alt));
  border-color: var(--line-soft); box-shadow: var(--shadow-sm); border-radius: var(--radius);
}
.toc a { text-decoration: none; transition: color .2s var(--ease); }
.toc a:hover { text-decoration: underline; }
.toc li.active > a { color: var(--brand); font-weight: 700; }

.prose h2 { scroll-margin-top: 92px; }
.h-ico {
  background: var(--grad-brand); color: #fff; border-radius: .5em;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--brand) 28%, transparent);
}
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s var(--ease); }

.callout { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.callout.tip { border-left: 0; box-shadow: inset 3px 0 0 var(--ok), var(--shadow-sm); background: linear-gradient(135deg, #f2faf5, #fff 80%); }
.callout.warn { border-left: 0; box-shadow: inset 3px 0 0 var(--warn), var(--shadow-sm); background: linear-gradient(135deg, #fdf8ec, #fff 80%); }

.faq details { box-shadow: var(--shadow-sm); }
.faq details:hover { border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); }
.faq summary { list-style: none; display: flex; align-items: flex-start; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  display: grid; place-items: center; font-weight: 700; line-height: 1;
  background: var(--brand-soft); color: var(--brand);
  transition: transform .28s var(--ease), background .2s var(--ease);
}
.faq details[open] summary::before { content: "−"; transform: rotate(180deg); background: var(--grad-brand); color: #fff; }
.faq details[open] > div { animation: fade-up .3s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.sources { border-radius: var(--radius); background: linear-gradient(170deg, var(--bg-alt), #fff); border: 1px solid var(--line-soft); }
.disclosure { border-radius: var(--radius); }

/* ---------- Tables ---------- */
.compare-table, .prose table { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td, .prose th, .prose td { border-color: var(--line-soft); }
.compare-table thead th { background: var(--grad-brand); border-color: transparent; }
.compare-table tbody tr { transition: background .18s var(--ease); }
.compare-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.compare-table .best { background: color-mix(in srgb, var(--ok) 8%, transparent); }

/* ---------- Tools & forms ---------- */
.tool { box-shadow: var(--shadow); border-color: var(--line-soft); }
.tool-head { background: var(--grad-brand); }
.tool-results { background: linear-gradient(170deg, var(--bg-alt), #fff); border: 1px solid var(--line-soft); }
.result-item .rv {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; letter-spacing: -.02em;
}
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  border-radius: 11px; border-color: #d5dce4; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.progress-bar { height: 8px; background: var(--line-soft); }
.progress-bar i { background: var(--grad-brand); transition: width .45s var(--ease); }
.checklist-group { box-shadow: var(--shadow-sm); border-color: var(--line-soft); }
.checklist-group label { border-radius: 8px; padding: 4px 6px; margin-left: -6px; transition: background .18s var(--ease); }
.checklist-group label:hover { background: var(--bg-alt); }

/* ---------- Section rhythm ---------- */
.section { padding: 58px 0; }
.section.alt {
  background: linear-gradient(180deg, var(--bg-alt), #fff);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.section-head h2, .section > .wrap > h2 { letter-spacing: -.025em; }
.pill-row a { transition: all .2s var(--ease); }
.pill-row a:hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 40%, transparent); transform: translateY(-1px); }

/* ---------- Placeholders ---------- */
.ph { border-radius: var(--radius); }
.card .ph, .widget .ph { border-radius: var(--radius) var(--radius) 0 0; }
.ph-glyph { border-radius: 14px; box-shadow: 0 6px 18px rgba(16, 24, 40, .12); }
.card:hover .ph::before { animation-duration: 9s; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(50rem 22rem at 88% 0%, color-mix(in srgb, var(--brand) 26%, transparent) 0%, transparent 62%),
    linear-gradient(180deg, #12181d, #0b0f12);
  margin-top: 0;
}
.site-footer a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.site-footer li a:hover { color: #fff; padding-left: 3px; }

/* ---------- Hub hero ---------- */
.net-hero {
  background:
    radial-gradient(46rem 24rem at 84% -10%, color-mix(in srgb, var(--brand) 38%, transparent) 0%, transparent 60%),
    radial-gradient(38rem 20rem at 6% 110%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 58%),
    linear-gradient(165deg, #131a20, #0b0f12);
  padding: 78px 0;
}
.net-hero h1 { letter-spacing: -.03em; }

/* ---------- Scroll reveal (added by motion.js only) ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Custom scrollbar ---------- */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--bg-alt); }
  ::-webkit-scrollbar-thumb { background: #c8d1da; border-radius: 999px; border: 3px solid var(--bg-alt); }
  ::-webkit-scrollbar-thumb:hover { background: var(--brand); }
}

@media (max-width: 640px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 36px; }
  .section { padding: 40px 0; }
  .card:hover, .site-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .site-card:hover { transform: none; }
  .btn::after, .mega-panel.open, .faq details[open] > div { animation: none !important; }
  .read-progress i { transition: none; }
}
