:root {
  --bg: #f3f7ff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f8fbff;
  --text: #0f172a;
  --muted: #4f5f7d;
  --line: #d5deee;
  --brand: #3b82f6;
  --brand-strong: #1d4ed8;
  --success: #059669;
  --sales: #22c55e;
  --ops: #2563eb;
  --workflow: #a78bfa;
  --monetize: #d97706;
  --radius: 18px;
  --radius-tight: 14px;
  --max: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(circle at 8% -14%, rgba(59,130,246,.14), transparent 34%),
    radial-gradient(circle at 92% 6%, rgba(16,185,129,.1), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 45%, #eef3fb 100%);
  line-height: 1.65;
}
a { color: #1d4ed8; }
a:hover { color: #1e40af; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}
.topbar {
  min-height: 50px;
  display: grid;
  grid-template-columns: 1.1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
}
.brand { text-decoration: none; color: var(--text); display: grid; }
.brand__mark { font-size: 1rem; font-weight: 800; }
.brand__sub { font-size: 0.78rem; color: var(--muted); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  border: 1px solid #e2e8f6;
  border-radius: 999px;
  padding: 5px 8px;
  color: #314265;
  transition: all .2s ease;
  background: rgba(255,255,255,.75);
}
.nav a:hover { border-color: #bdd1f5; background: #f3f8ff; transform: translateY(-1px); color: #0f1f42; }

.site-search { position: relative; min-width: 260px; }
.site-search__input,
.searchbox__input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}
.site-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .18);
}
.site-search__item { display: block; text-decoration: none; padding: 10px 12px; border-bottom: 1px solid #e5ecf8; }
.site-search__item:last-child { border-bottom: 0; }
.site-search__meta { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.site-search__title { color: var(--text); font-weight: 700; }
.site-search__desc { color: var(--muted); font-size: .88rem; }
.site-search__empty { padding: 12px; color: var(--muted); }

main.container { padding-top: 6px; padding-bottom: 52px; }
.card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #cfdbed;
  border-radius: var(--radius-tight);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .07);
}
.card--soft { background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%); }
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-grid--tools { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid--hubs { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card-grid--routes { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stack { display: grid; gap: 10px; }

h1, h2, h3 { line-height: 1.16; margin: 0 0 12px; letter-spacing: -0.016em; }
h1 { font-size: clamp(1.62rem, 2.45vw, 2.15rem); max-width: 20ch; }
h2 { font-size: clamp(1.34rem, 2.15vw, 1.86rem); }
h3 { font-size: clamp(1.08rem, 1.45vw, 1.28rem); }
p { margin: 0 0 12px; }
.badge {
  display: inline-flex;
  border: 1px solid #c6d8f8;
  background: #edf4ff;
  color: #234780;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: .74rem;
  margin-bottom: 8px;
}
.lead { font-size: 1.09rem; color: #213a63; max-width: 70ch; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: #eff5ff;
  font-weight: 600;
  transition: all .2s ease;
}
.button:hover { background: #e2ecff; border-color: #b9ccef; transform: translateY(-1px); }
.button--primary {
  background: linear-gradient(92deg, #16a34a, var(--success));
  color: #f0fdf4;
  border-color: #138a5f;
}
.button--ghost { background: rgba(255,255,255,.62); }
.button--primary-hero { padding: 11px 16px; font-size: .95rem; }

.page-flow {
  margin-bottom: 8px;
  border-bottom: 1px solid #dce5f3;
  padding: 1px 0 6px;
}
.page-flow__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 20px; }
.breadcrumbs ol { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; font-size: .78rem; color: #4a5e86; }
.breadcrumbs li { font-size: .78rem; color: #4a5e86; }

.hero-panel--gradient {
  position: relative;
  background:
    radial-gradient(circle at 9% 8%, rgba(59,130,246,.22), transparent 48%),
    radial-gradient(circle at 88% 88%, rgba(16,185,129,.18), transparent 44%),
    linear-gradient(165deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid #c8d8f3;
  box-shadow: 0 24px 44px rgba(15,23,42,.11), inset 0 1px 0 rgba(255,255,255,.82);
}

.hero-panel {
  padding: 10px;
  border-radius: var(--radius-tight);
}

.hero-panel h1 {
  max-width: 18ch;
}

.home-hero { margin-bottom: 0; }
.home-subtext { max-width: 70ch; color: #213a63; }
.home-actions, .next-step-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.home-section { margin: 22px 0; }
.home-section > h2,
.home-section > p { max-width: 72ch; }
.section-rhythm { margin: 26px 0; }
.fold-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-bottom: 8px;
}
.fold-grid__rail {
  display: grid;
  gap: 7px;
}
.fold-grid .card { margin: 0; }
.fold-rail-card {
  border: 1px solid #bdd0ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  padding: 8px 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
}
.fold-rail-card h2,
.fold-rail-card h3 { margin-bottom: 8px; }
.fold-rail-list {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 6px;
}
.section-shell {
  position: relative;
  border: 1px solid #cfdbef;
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,250,255,.93));
}

.fold-grid--premium,
.fold-grid--flagship {
  grid-template-columns: .9fr 1.1fr;
}
.fold-grid--inner {
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.fold-grid--flagship {
  grid-template-columns: .84fr 1.16fr;
}
.fold-grid--premium .hero-panel h1,
.fold-grid--flagship .hero-panel h1 {
  max-width: 16ch;
}
.fold-grid--premium .home-actions,
.fold-grid--flagship .home-actions {
  margin-top: 8px;
}
.fold-grid--flagship .hero-panel {
  box-shadow: 0 14px 28px rgba(17, 24, 39, .1), inset 0 1px 0 rgba(255,255,255,.8);
}
.fold-grid--flagship .fold-grid__rail {
  border-left: 1px solid #d6e1f1;
  padding-left: 8px;
}
.home-subtext,
.hero-panel .lead {
  font-size: .97rem;
  margin-bottom: 8px;
}
.fold-rail-card--accent {
  background: linear-gradient(180deg, #fbfdff 0%, #eef5ff 100%);
  border-color: #adc4ea;
}
.fold-rail-card--accent p {
  margin-bottom: 6px;
  font-size: .9rem;
  color: #2b446e;
}

.fold-strip {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.fold-strip__item {
  border: 1px solid #cdd9ed;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  padding: 8px 9px;
}
.fold-strip__item p {
  margin: 0;
  font-size: .83rem;
  color: #32466b;
}
.fold-strip__item strong { display: block; color: #10203f; font-size: .87rem; margin-bottom: 2px; }

.media-anchor {
  border: 1px solid #c8d8f1;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(59,130,246,.16), rgba(16,185,129,.1)),
    linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  padding: 14px;
}

.media-anchor--warm {
  background:
    linear-gradient(145deg, rgba(217,119,6,.2), rgba(59,130,246,.12)),
    linear-gradient(180deg, #fffefd 0%, #f8f2e8 100%);
}

.media-anchor__kicker {
  display: inline-flex;
  border: 1px solid #b6caec;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .72rem;
  color: #234780;
  margin-bottom: 8px;
}

.media-anchor__title {
  margin-bottom: 6px;
}

.media-anchor__text {
  margin-bottom: 10px;
  color: #2f476f;
  font-size: .91rem;
}

.media-preview-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-preview {
  border: 1px solid #cbdaf0;
  border-radius: 11px;
  padding: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.media-preview strong {
  display: block;
  font-size: .82rem;
  color: #102544;
  margin-bottom: 2px;
}

.media-preview span {
  font-size: .75rem;
  color: #45608b;
}

.surface-life-module {
  overflow: hidden;
}

.surface-life-module::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,255,255,.55), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(59,130,246,.1), transparent 36%);
  mix-blend-mode: screen;
}

.surface-life-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 2px 0 11px;
}

.surface-life-strip__item {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #bdd0ee;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: #2b4774;
  font-size: .73rem;
  letter-spacing: .01em;
}

.featured-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 14px;
}

.featured-preview {
  border: 1px solid #c6d6ed;
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(59,130,246,.14), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  padding: 12px;
  display: grid;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.featured-preview:hover {
  transform: translateY(-2px);
  border-color: #aecaef;
  box-shadow: 0 14px 26px rgba(29, 78, 216, .11);
}

.featured-preview h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.featured-preview p {
  margin-bottom: 8px;
  color: #324a74;
  font-size: .9rem;
}

.featured-preview__meta {
  font-size: .76rem;
  color: #47638f;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.featured-preview__signal {
  margin: 0;
  font-size: .82rem;
  color: #2f4a74;
}
.featured-preview .button {
  justify-self: start;
}

.preview-cluster-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 12px;
}

.preview-cluster-card {
  border: 1px solid #c8d7ee;
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(59,130,246,.14), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.preview-cluster-card:hover {
  transform: translateY(-2px);
  border-color: #aac3e6;
  box-shadow: 0 12px 24px rgba(30, 64, 175, .1);
}

.preview-cluster-card h3 {
  font-size: .96rem;
  margin-bottom: 6px;
}

.preview-cluster-card p {
  font-size: .84rem;
  color: #334b73;
  margin-bottom: 8px;
}

.preview-cluster-card__label {
  display: inline-flex;
  font-size: .69rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #2c4d80;
  border: 1px solid #c3d4ef;
  border-radius: 999px;
  padding: 2px 7px;
  margin-bottom: 6px;
}

.preview-cluster-card__signal {
  font-size: .75rem;
  color: #425d88;
}
.section-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: rgba(59,130,246,.5);
}
.section-shell--route {
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf6 100%);
}
.section-shell--route::before { background: rgba(34,197,94,.72); }
.section-shell--compare {
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
}
.section-shell--compare::before { background: rgba(59,130,246,.72); }
.section-shell--proof {
  background: linear-gradient(180deg, #ffffff 0%, #f8f3ff 100%);
}
.section-shell--proof::before { background: rgba(139,92,246,.65); }
.section-shell--action {
  background: linear-gradient(180deg, #ffffff 0%, #fff8ed 100%);
}
.section-shell--action::before { background: rgba(217,119,6,.74); }
.card--featured {
  border-color: #9fd8c2;
  background:
    radial-gradient(circle at top right, rgba(22,163,74,.16), transparent 46%),
    linear-gradient(180deg, #fcfffd 0%, #effcf5 100%);
  box-shadow: 0 16px 34px rgba(5, 82, 51, .14);
}

.card--support {
  background: linear-gradient(180deg, #fdfefe 0%, #f6f9ff 100%);
  border-style: dashed;
}

.card-grid--hierarchy > :first-child {
  border-width: 2px;
  box-shadow: 0 12px 24px rgba(15,23,42,.12);
}
.card-grid--airy {
  gap: 22px;
}
.card-grid--inner {
  align-items: start;
}

.inner-surface {
  display: grid;
  gap: 4px;
}

.inner-surface .hero-panel {
  padding: 14px;
}

.content--inner :is(h2, h3) {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #d7e2f2;
}

.content--inner :is(table, blockquote) {
  width: 100%;
  border: 1px solid #d3dff1;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.content--inner table {
  border-collapse: collapse;
}

.content--inner th,
.content--inner td {
  border: 1px solid #d8e2f2;
  padding: 8px;
  text-align: left;
}

.content--inner ul li,
.content--inner ol li {
  margin: 8px 0;
}

.decision-split {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.3fr .9fr;
  align-items: start;
}

.decision-note {
  border: 1px solid #c3d7fa;
  border-radius: 14px;
  background: #f6faff;
  padding: 14px;
}

.scan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.scan-list li {
  border: 1px solid #d4e0f6;
  border-radius: 12px;
  background: #ffffff;
  padding: 9px 11px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  color: #2f4e7c;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
}

.home-grid { display: grid; gap: 14px; }
.home-grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.flow-step { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f7faff; }
.flow-step__label { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.quick-routes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.route-button { text-decoration: none; padding: 12px; border: 1px solid #b7ccf1; background: #f1f6ff; color: var(--text); border-radius: 12px; text-align: center; font-weight: 700; transition: all .2s ease; }
.route-button:hover { background: #e7f0ff; transform: translateY(-1px); }
.route-button--sales { border-color: #98d7b0; background: #effcf3; }
.route-button--ops { border-color: #b7ccf1; background: #f1f6ff; }
.route-button--workflow { border-color: #d6c7fb; background: #f7f3ff; }

.tool-card,
.hub-card,
.route-card,
.monetization-card {
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-card:hover,
.hub-card:hover,
.route-card:hover,
.monetization-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 10px 20px rgba(15,23,42,.14);
  border-color: #9bb8e9;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d0deef;
  background: #ffffff;
  margin-bottom: 10px;
}
.hub-card__preview {
  font-size: .82rem;
  color: #395074;
  border: 1px dashed #bbceed;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 10px;
}
.tool-card--sales, .route-card--sales, .hub-card--sales { border-color: rgba(22,163,74,.42); }
.tool-card--ops, .route-card--ops, .hub-card--ops { border-color: rgba(37,99,235,.36); }
.tool-card--workflow, .route-card--workflow, .hub-card--workflow { border-color: rgba(139,92,246,.34); }
.tool-card--premium, .monetization-card {
  border-color: rgba(217, 119, 6, .45);
  background: linear-gradient(180deg, #fffdfa 0%, #fff4dd 100%);
}

.section-gap { margin: 24px 0; }
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.searchbox { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.searchbox__btn { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.search-results { display: grid; gap: 12px; }
.search-results__shell { margin: 0; }
.search-results__header h2 { margin-bottom: 6px; }
.search-results__header .muted { margin-top: 0; }
.search-results__featured { margin-bottom: 10px; }
.search-results__grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.search-item { border: 1px solid var(--line); border-radius: 14px; background: #ffffff; padding: 14px; display: grid; gap: 8px; }
.search-item--top {
  border-color: rgba(22, 163, 74, .42);
  background:
    radial-gradient(circle at 98% 0%, rgba(22,163,74,.16), transparent 48%),
    linear-gradient(180deg, #f8fff9 0%, #f2fdf4 100%);
  box-shadow: 0 12px 24px rgba(5, 95, 71, .11);
}
.search-item__title a { text-decoration: none; }
.search-item__meta { color: var(--muted); font-size: .9rem; }
.search-item__meta .badge { margin: 0; }
.search-item__flag {
  display: inline-flex;
  border: 1px solid #b9d9c5;
  background: #edfbf0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: .72rem;
  color: #1f6246;
  margin-left: 6px;
}
.search-item__summary { color: #2b3e63; }
.search-item__intent {
  margin: 0;
  font-size: .84rem;
  color: #284876;
}
.search-item__cta {
  justify-self: start;
  border: 1px solid #b9cced;
  border-radius: 10px;
  padding: 7px 10px;
  text-decoration: none;
  color: #1f3d6e;
  font-weight: 600;
}
.search-item__cta:hover { border-color: #8faee5; background: #f4f8ff; }
.empty { color: var(--muted); padding: 10px 0; }
.list { margin: 0; padding-left: 18px; }
.list li { margin: 6px 0; }

.kpi-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #ffffff; }
.kpi__label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi__value { font-size: 1.2rem; font-weight: 700; color: #0b5f47; }

.next-step-block { margin-top: 20px; }
.sticky-cta { position: fixed; right: 16px; bottom: 16px; z-index: 25; box-shadow: 0 12px 28px rgba(13,148,90,.26); }
.quick-answer {
  border: 1px solid rgba(16,185,129,.34);
  background: linear-gradient(180deg, #f9fffc 0%, #effaf4 100%);
}
.quick-answer h2 {
  font-size: clamp(1.44rem, 2.2vw, 1.9rem);
}
.section-headline {
  font-size: clamp(1.5rem, 2.35vw, 2rem);
  margin-bottom: 10px;
}
.compare-block,
.proof-block,
.action-block {
  border-radius: 16px;
  padding: 16px;
}
.compare-block { border: 1px solid rgba(59,130,246,.4); background: #f4f8ff; }
.proof-block { border: 1px solid rgba(139,92,246,.34); background: #f8f4ff; }
.action-block { border: 1px solid rgba(217,119,6,.35); background: #fff6e8; }

.site-footer { border-top: 1px solid var(--line); background: #f8fbff; }
.footer-shell { padding: 18px; display: grid; gap: 12px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.footer-title { font-weight: 800; margin: 0 0 6px; }
.footer-nav-wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.footer-nav-wrap a { text-decoration: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: #33486f; background: #fff; }
.footer-credit { grid-column: 1 / -1; margin: 2px 0 0; }

.prose, .content { max-width: 76ch; }
.content :where(p, ul, ol, pre, blockquote) { margin-bottom: 10px; }
.content pre { overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7faff; }
.content code { font-family: var(--mono); border: 1px solid var(--line); border-radius: 8px; padding: 2px 5px; background: #f3f7ff; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; padding: 10px 0; }
  .site-search { min-width: 100%; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-nav-wrap { justify-content: flex-start; }
  .decision-split { grid-template-columns: 1fr; }
  .section-shell { padding: 20px; }
  .fold-grid { grid-template-columns: 1fr; }
  .fold-grid__rail { grid-template-columns: 1fr; }
  .fold-grid--premium { grid-template-columns: 1fr; }
  .fold-grid--flagship { grid-template-columns: 1fr; }
  .fold-grid--inner { grid-template-columns: 1fr; }
  .fold-grid--flagship .fold-grid__rail {
    border-left: 0;
    padding-left: 0;
  }
  .fold-strip { grid-template-columns: 1fr; }
}

@media (min-width: 920px) {
  .card-grid--hierarchy > :first-child {
    grid-column: span 2;
  }
}
