:root {
  color-scheme: light;
  --navy: #10233f;
  --navy-2: #17375e;
  --blue: #2667ff;
  --blue-dark: #174fc9;
  --blue-soft: #e9f0ff;
  --green: #087f5b;
  --green-soft: #e8f7f1;
  --amber: #a15c00;
  --amber-soft: #fff3db;
  --red: #b42318;
  --red-soft: #ffebe9;
  --ink: #172033;
  --muted: #5c687c;
  --line: #dfe5ee;
  --surface: #ffffff;
  --page: #f3f6fa;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 35, 63, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
button, select, input { font: inherit; }
.hero {
  position: relative;
  overflow: hidden;
  padding: max(34px, env(safe-area-inset-top)) 20px 40px;
  color: #fff;
  background: radial-gradient(circle at 88% -12%, rgba(92,157,255,.58), transparent 41%), linear-gradient(145deg, var(--navy), var(--navy-2));
}
.hero::after { position: absolute; right: -90px; bottom: -135px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.hero-inner, main, .footer-inner { width: min(100%, 980px); margin: 0 auto; }
.eyebrow, .section-kicker { margin: 0 0 9px; font-size: .73rem; font-weight: 900; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow { color: rgba(255,255,255,.7); }
.section-kicker { color: var(--blue); }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.35rem, 9vw, 4.65rem); line-height: .98; letter-spacing: -.052em; }
.subtitle { max-width: 690px; margin: 18px 0 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 21px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.09); font-size: .82rem; font-weight: 800; backdrop-filter: blur(8px); }
.status span { width: 9px; height: 9px; border-radius: 50%; background: #55e0aa; box-shadow: 0 0 0 4px rgba(85,224,170,.15); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 14px; border-radius: 12px; font-size: .86rem; font-weight: 850; text-decoration: none; }
.button.primary { color: var(--navy); background: #fff; }
.button.ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }
main { padding: 18px 14px 110px; }
section { margin: 0 0 16px; padding: 21px 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: 18px; }
.priority-section { border-top: 5px solid var(--blue); background: linear-gradient(180deg, #fff, #f8faff); }
.stop-section { border-top: 5px solid var(--red); }
.section-heading { display: flex; flex-direction: column; gap: 9px; margin-bottom: 13px; }
h2 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 5vw, 2.1rem); line-height: 1.13; letter-spacing: -.032em; }
h3 { margin: 0; color: var(--navy); font-size: 1.02rem; line-height: 1.28; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.04rem; font-weight: 650; line-height: 1.48; }
.confidence { align-self: flex-start; display: inline-flex; min-height: 30px; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.confidence.high { color: var(--green); background: var(--green-soft); }
.confidence.medium { color: var(--amber); background: var(--amber-soft); }
.text-link { display: inline-flex; align-items: center; min-height: 38px; color: var(--blue); font-size: .82rem; font-weight: 850; text-decoration: none; }
.lock-grid, .split-grid, .method-grid, .failure-grid, .stop-grid, .research-grid, .accordion-grid, .case-grid { display: grid; gap: 10px; margin-top: 15px; }
.lock-card, .insight-card, .method-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcff; }
.lock-card strong, .lock-card span, .method-grid strong, .method-grid span { display: block; }
.lock-card strong, .method-grid strong { color: var(--navy); }
.lock-card span, .method-grid span { margin-top: 4px; color: var(--muted); font-size: .87rem; }
.open-issue { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-left: 4px solid var(--amber); border-radius: 12px; background: var(--amber-soft); color: #684100; }
.open-issue > span { width: fit-content; padding: 4px 8px; border-radius: 999px; color: #fff; background: var(--amber); font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
details { margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fafcff; }
summary { display: flex; align-items: center; min-height: 50px; padding: 12px 14px; color: var(--navy); font-weight: 820; cursor: pointer; }
.details-body { padding: 0 14px 14px; }
.details-body ul { margin: 4px 0 0; padding-left: 1.2rem; }
.details-body li { margin: 7px 0; }
.details-body li::marker { color: var(--blue); font-weight: 800; }
.tab-list { display: flex; gap: 7px; margin: 15px -2px 0; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: 0 0 auto; min-height: 44px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: #fff; font-size: .8rem; font-weight: 820; cursor: pointer; }
.tab-list button[aria-selected="true"] { border-color: var(--blue); color: #fff; background: var(--blue); }
.tab-panel { padding-top: 14px; }
.tab-panel[hidden] { display: none; }
.insight-card .card-label { display: inline-flex; margin-bottom: 9px; padding: 4px 8px; border-radius: 999px; font-size: .67rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.insight-card.positive { border-color: #bfe6d8; background: var(--green-soft); }
.insight-card.positive .card-label { color: var(--green); background: #fff; }
.insight-card.caution { border-color: #efd39d; background: var(--amber-soft); }
.insight-card.caution .card-label { color: var(--amber); background: #fff; }
.insight-card p { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.callout { margin-top: 13px; padding: 14px; border-left: 4px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.callout strong { display: block; color: var(--navy); }
.callout.amber { border-color: var(--amber); background: var(--amber-soft); color: #684100; }
.pattern-list { display: grid; gap: 8px; }
.pattern-list > div { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafcff; }
.pattern-list > div > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: var(--navy); background: var(--blue-soft); font-weight: 900; }
.pattern-list p { margin: 1px 0 0; font-size: .9rem; }
.source-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.source-actions a, .card-link { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 10px; border-radius: 10px; color: var(--blue-dark); background: var(--blue-soft); font-size: .78rem; font-weight: 850; text-decoration: none; }
.failure-grid article { display: flex; flex-direction: column; padding: 13px; border-radius: 13px; background: var(--red-soft); }
.failure-grid article strong { color: var(--red); }
.failure-grid article span { margin-top: 4px; color: #75433f; font-size: .86rem; }
.failure-grid article a { align-self: flex-start; min-height: 38px; margin-top: 8px; color: var(--red); font-size: .78rem; font-weight: 850; }
.fine-print { margin-top: 12px; color: var(--muted); font-size: .8rem; }
.offer-strip { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.offer-strip div { padding: 12px; border-radius: 12px; background: var(--blue-soft); }
.offer-strip strong, .offer-strip span { display: block; }
.offer-strip strong { color: var(--navy); font-size: 1.1rem; }
.offer-strip span { color: var(--muted); font-size: .75rem; }
.price-grid { display: grid; gap: 10px; margin-top: 14px; }
.price-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fafcff; }
.price-grid span, .price-grid strong, .price-grid small { display: block; }
.price-grid span { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.price-grid strong { margin-top: 3px; color: var(--navy); font-size: 1.45rem; letter-spacing: -.04em; }
.price-grid small { margin-top: 6px; color: var(--muted); }
.segmented { display: flex; gap: 6px; margin-top: 14px; overflow-x: auto; }
.segmented button { flex: 1 0 auto; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: #fff; font-size: .79rem; font-weight: 820; cursor: pointer; }
.segmented button.active { border-color: var(--blue); color: #fff; background: var(--blue); }
.economics-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.economics-card div { min-height: 92px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fafcff; }
.economics-card span, .economics-card strong { display: block; }
.economics-card span { color: var(--muted); font-size: .74rem; }
.economics-card strong { margin-top: 6px; color: var(--navy); font-size: 1.35rem; letter-spacing: -.04em; }
.margin-status { display: flex; gap: 10px; align-items: flex-start; margin-top: 11px; padding: 13px; border-radius: 13px; color: #684100; background: var(--amber-soft); }
.margin-status > span { flex: 0 0 auto; width: 11px; height: 11px; margin-top: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(161,92,0,.1); }
.math-block p { padding: 8px 0; border-bottom: 1px solid var(--line); }
.math-block p:last-child { border-bottom: 0; }
.gate-timeline { display: grid; gap: 8px; margin-top: 14px; }
.gate-timeline details { margin: 0; }
.gate-timeline summary { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 8px; }
.gate-timeline summary > span { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 4px 7px; border-radius: 999px; color: var(--blue-dark); background: var(--blue-soft); font-size: .7rem; font-weight: 900; }
.capital-rule, .gate-rule { display: grid; gap: 5px; margin-top: 13px; padding: 14px; border-radius: 13px; color: #e9effa; background: var(--navy); }
.capital-rule strong, .gate-rule strong { color: #fff; }
.case-grid details { margin: 0; }
.case-grid summary { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
.case-grid summary > div strong, .case-grid summary > div small { display: block; }
.case-grid summary > div small { margin-top: 2px; color: var(--muted); font-size: .75rem; }
.case-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--navy); background: var(--blue-soft); font-weight: 900; }
.case-icon.warning { color: var(--amber); background: var(--amber-soft); }
.stop-grid div { padding: 13px; border-radius: 13px; background: var(--red-soft); }
.stop-grid strong, .stop-grid span { display: block; }
.stop-grid strong { color: var(--red); }
.stop-grid span { margin-top: 4px; color: #75433f; font-size: .86rem; }
.expansion-map { display: grid; gap: 9px; margin-top: 14px; }
.expansion-map article { padding: 14px; border-left: 4px solid var(--blue); border-radius: 13px; background: #f7f9fc; }
.expansion-map article.now { border-color: var(--green); background: var(--green-soft); }
.expansion-map article.defer { border-color: #9aa6b8; }
.expansion-map span, .expansion-map strong { display: block; }
.expansion-map span { color: var(--blue); font-size: .69rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.expansion-map strong { margin-top: 3px; color: var(--navy); }
.expansion-map p { margin-top: 5px; color: var(--muted); font-size: .87rem; }
.proof-flow { display: grid; gap: 8px; margin-top: 14px; }
.proof-flow > div { position: relative; padding: 12px 13px 12px 46px; border: 1px solid var(--line); border-radius: 12px; background: #fafcff; }
.proof-flow > div::before { position: absolute; top: 12px; left: 12px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); content: attr(data-step); font-size: .73rem; font-weight: 900; }
.proof-flow strong, .proof-flow span { display: block; }
.proof-flow strong { color: var(--navy); }
.proof-flow span { margin-top: 2px; color: var(--muted); font-size: .85rem; }
.research-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fafcff; }
.research-grid article.featured { border-color: #b8ccff; background: var(--blue-soft); }
.research-grid article.source-card { color: #e8eef9; background: var(--navy); }
.research-grid article > span { color: var(--blue); font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.research-grid article.source-card > span, .research-grid article.source-card h3 { color: #fff; }
.research-grid h3 { margin-top: 6px; }
.research-grid p { margin-top: 7px; color: var(--muted); font-size: .87rem; }
.research-grid article.source-card p { color: #cbd5e5; }
.research-grid .card-link { margin-top: 10px; }
footer { padding: 0 16px calc(105px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .76rem; }
.footer-inner { padding: 0 4px; }
.footer-inner p + p { margin-top: 6px; }
.bottom-nav { position: fixed; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; z-index: 30; display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; max-width: 560px; margin: 0 auto; padding: 6px; border: 1px solid rgba(216,224,236,.9); border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 14px 36px rgba(16,35,63,.2); backdrop-filter: blur(14px); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 5px; border-radius: 11px; color: var(--muted); font-size: .68rem; font-weight: 850; text-decoration: none; }
.bottom-nav a span { color: #9aa6b8; font-size: .63rem; }
.bottom-nav a.active { color: var(--blue-dark); background: var(--blue-soft); }
.bottom-nav a.active span { color: var(--blue); }

@media (min-width: 700px) {
  main { padding: 28px 20px 120px; }
  section { margin-bottom: 20px; padding: 29px; }
  .section-heading { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .lock-grid, .split-grid, .method-grid, .failure-grid, .stop-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .offer-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .price-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .accordion-grid, .case-grid, .research-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .economics-card { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .expansion-map { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .proof-flow { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .proof-flow > div { padding: 46px 13px 13px; }
  .proof-flow > div::before { top: 12px; }
}

@media (min-width: 960px) {
  .lock-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .stop-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .bottom-nav, .hero-actions, .tab-list { display: none; }
  .tab-panel[hidden] { display: block; }
  body { background: #fff; }
  section { box-shadow: none; break-inside: avoid; }
}
