:root {
  --ink: #071a31;
  --ink-2: #102640;
  --blue: #124fda;
  --blue-bright: #1765ff;
  --lime: #c9f20f;
  --paper: #fbf8f0;
  --white: #fffefb;
  --text: #132033;
  --muted: #657185;
  --line: #dce1e8;
  --pale: #f1f4f8;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(7, 26, 49, .12);
  --shell: min(1180px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button, textarea, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(23,101,255,.38);
  outline-offset: 3px;
}
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.03; letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 7vw, 6.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.65rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.15rem; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 15px; padding: 10px 16px; background: var(--lime); }
.skip-link:focus { top: 15px; }
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(7,26,49,.12);
  background: rgba(255,254,251,.94);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: 76px; align-items: center; gap: 28px; }
.brand, .footer-brand { font-weight: 950; letter-spacing: -.03em; text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 9px; color: var(--ink); background: var(--lime); }
.main-nav { display: flex; gap: 23px; margin-left: auto; }
.main-nav a { color: #46566a; font-size: .92rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.menu-button { display: none; margin-left: auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { color: white; background: var(--blue); box-shadow: 0 10px 25px rgba(18,79,218,.28); }
.button.ghost { color: white; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.button.lime { color: var(--ink); background: var(--lime); }
.button.small { min-height: 40px; padding-inline: 15px; color: white; background: var(--ink); font-size: .86rem; }
.eyebrow { margin-bottom: 18px; color: var(--lime); font-size: .75rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark-text { color: var(--blue); }
.lead { max-width: 750px; color: rgba(255,255,255,.77); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.lead.dark-lead { color: var(--muted); }

.home-hero, .page-hero {
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 75% 12%, rgba(23,101,255,.36), transparent 32%),
    linear-gradient(135deg, #06172b, #0b2543);
}
.home-hero { padding: clamp(65px, 9vw, 118px) 0; }
.page-hero { padding: clamp(65px, 8vw, 100px) 0; }
.page-hero h1 { max-width: 930px; font-size: clamp(2.8rem, 6vw, 5.3rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(45px, 7vw, 90px); }
.home-hero h1 span { color: var(--lime); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: rgba(255,255,255,.55); font-size: .86rem; }
.hero-demo { border: 1px solid rgba(255,255,255,.15); border-radius: 22px; background: rgba(255,255,255,.06); box-shadow: 0 34px 70px rgba(0,0,0,.28); }
.demo-top { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.72); font-size: .83rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.score { margin-left: auto; color: var(--lime); font-weight: 800; }
.demo-stack { padding: 11px; }
.demo-stack > div { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; margin: 8px 0; padding: 14px; border-radius: 11px; color: var(--ink); background: var(--paper); }
.demo-stack > div:nth-child(even) { color: white; background: var(--blue); }
.demo-stack b { color: var(--blue); font-size: .76rem; }
.demo-stack > div:nth-child(even) b { color: var(--lime); }
.demo-stack strong { display: block; font-size: .86rem; }
.demo-stack span { color: inherit; font-size: .82rem; }
.signal-bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.signal-bar .shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-bar span { padding: 17px; border-right: 1px solid var(--line); color: #4c5b6c; font-size: .78rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.signal-bar span:last-child { border: 0; }

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section.pale { background: var(--pale); }
.section.blue { color: white; background: var(--blue); }
.section.ink { color: white; background: var(--ink); }
.section-heading { max-width: 770px; margin-bottom: 40px; }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.section-heading.light p { color: rgba(255,255,255,.72); }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 9px 28px rgba(7,26,49,.045);
}
.card p { color: var(--muted); }
.card a, .text-link { color: var(--blue); font-weight: 850; text-decoration: none; }
.center-action { margin-top: 32px; text-align: center; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 75px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); color: var(--blue); font-size: 1.65rem; font-weight: 950; }
.steps h3 { margin-bottom: .3em; font-size: clamp(1.4rem, 3vw, 2.1rem); }
.steps p { max-width: 750px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(44px, 8vw, 100px); }
.check-card, .myth-card { padding: 32px; border-radius: 20px; color: var(--ink); background: var(--paper); }
.check-card > span, .myth-card > b { display: block; margin-bottom: 15px; color: var(--blue); font-size: .75rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.check-card ul { margin: 0; padding: 0; list-style: none; }
.check-card li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.check-card li::before { content: "✓"; float: left; margin-left: -28px; color: var(--blue); font-weight: 950; }

.builder-shell { display: grid; grid-template-columns: 1fr .9fr; gap: 28px; align-items: start; }
.builder-form, .builder-output { padding: clamp(24px, 4vw, 38px); border-radius: 20px; }
.builder-form { color: var(--text); background: white; box-shadow: var(--shadow); }
.builder-form label { display: block; margin-bottom: 20px; color: var(--ink); font-size: .9rem; font-weight: 850; }
.builder-form textarea, .builder-form input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #ccd4df;
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  outline: none;
}
.builder-form textarea { min-height: 91px; resize: vertical; }
.builder-form textarea:focus, .builder-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,79,218,.12); }
.builder-form small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.builder-output { color: white; background: var(--ink); box-shadow: var(--shadow); }
.builder-output.sticky { position: sticky; top: 98px; }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; font-weight: 900; }
.output-head button, .copy-button { padding: 8px 12px; border: 0; border-radius: 7px; color: var(--ink); background: var(--lime); font-size: .78rem; font-weight: 900; cursor: pointer; }
.builder-output pre { min-height: 330px; margin: 0; white-space: pre-wrap; word-wrap: break-word; font: 500 .9rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.privacy-note { margin: 18px 0 0; color: rgba(255,255,255,.52); font-size: .78rem; }
.compact-builder .builder-output pre { min-height: 290px; }
.check-label { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 650 !important; }
.check-label input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.score-panel { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.score-panel span { font-size: .8rem; color: rgba(255,255,255,.64); }
.score-panel strong { float: right; color: var(--lime); }
.score-track { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.13); }
.score-track i { display: block; width: 0; height: 100%; background: var(--lime); transition: width .2s; }
.score-panel p { margin: 10px 0 0; color: rgba(255,255,255,.65); font-size: .8rem; }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.5em; }
.prose h3 { margin-top: 1.25em; }
.prose p, .prose li { font-size: 1.04rem; }
.prose a, .source-list a { color: var(--blue); font-weight: 750; }
.prompt-box { position: relative; margin: 30px 0; padding: 52px 23px 23px; border-radius: 14px; color: #eaf2ff; background: var(--ink); }
.prompt-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 .88rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-button { position: absolute; top: 13px; right: 13px; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
.do-dont > div { padding: 25px; border: 1px solid var(--line); border-radius: 15px; }
.do-dont > div:first-child { border-top: 5px solid var(--blue); }
.do-dont > div:last-child { border-top: 5px solid #dd694e; }
.top-space { margin-top: 45px; }
.notice, .safety { margin: 35px 0; padding: 20px 23px; border-left: 5px solid var(--blue); background: #eaf0ff; }
.safety { border-color: #d34e36; background: #fff0eb; }
.rubric { margin-top: 55px; padding: 30px; border: 1px solid var(--line); border-radius: 19px; }
.rubric-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); }
.rubric-grid > * { padding: 12px; border-top: 1px solid var(--line); font-style: normal; }
.rubric-grid > span { color: var(--muted); font-size: .78rem; font-weight: 850; }
.diagnosis { max-width: 900px; }
.diagnosis details { border-top: 1px solid var(--line); }
.diagnosis summary { padding: 23px 0; color: var(--ink); font-size: 1.18rem; font-weight: 900; cursor: pointer; }
.diagnosis p { max-width: 760px; padding: 0 0 24px; color: var(--muted); }
.source-list { padding-left: 1.2rem; }
.source-list li { margin-bottom: 12px; }
.claim-ledger { margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }

.model-table-wrap { margin: 26px 0 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.model-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .94rem; }
.model-table th, .model-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.model-table th { color: var(--navy); background: #f4f7fb; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.model-table tr:last-child td { border-bottom: 0; }
.model-table td:first-child { white-space: nowrap; }
.model-table .price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.model-table small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.35; }
.article-illustration { display: block; width: 100%; height: auto; margin: 30px 0 12px; border-radius: 24px; box-shadow: 0 24px 65px rgba(7,26,49,.14); }
.illustration-caption { margin: 0 0 34px; color: var(--muted); font-size: .88rem; text-align: center; }
.workflow-label { display: inline-block; margin-right: 8px; padding: 4px 9px; border-radius: 999px; color: var(--navy); background: #e7f3d0; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.claim-ledger > div { display: grid; grid-template-columns: 1.5fr 1fr auto; min-width: 650px; }
.claim-ledger > div + div { border-top: 1px solid var(--line); }
.claim-ledger > div:first-child { color: var(--muted); background: var(--pale); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.claim-ledger span, .claim-ledger b, .claim-ledger em, .claim-ledger strong { padding: 12px 14px; font-size: .82rem; font-style: normal; }
.claim-ledger strong { align-self: center; justify-self: end; margin-right: 10px; padding: 5px 9px; border-radius: 999px; }
.claim-ledger .supported { color: #386d24; background: #edf7e7; }
.claim-ledger .unknown { color: #8e4b2b; background: #fff1e9; }
.claim-ledger .inference { color: #315cae; background: #ebf1ff; }
.glossary { max-width: 850px; }
.glossary dl { margin: 0; }
.glossary dt { padding-top: 26px; border-top: 1px solid var(--line); color: var(--blue); font-size: 1.2rem; font-weight: 900; }
.glossary dd { margin: 7px 0 26px; color: #4f5d70; }

.response-preview-section { background: linear-gradient(180deg, #fffefb, #f5f7fb); }
.mini-compare {
  overflow: hidden;
  border: 1px solid #cfd7e4;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}
.mini-controls { display: flex; gap: 5px; padding: 13px; border-bottom: 1px solid var(--line); background: #f3f5f8; }
.mini-controls button, .lab-toolbar button, .lab-mode-switch button, .period-switch button {
  border: 1px solid transparent;
  border-radius: 999px;
  color: #526074;
  background: transparent;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}
.mini-controls button { padding: 9px 14px; }
.mini-controls button[aria-pressed="true"], .lab-toolbar button[aria-pressed="true"], .period-switch button[aria-pressed="true"] {
  color: white;
  background: var(--ink);
}
.mini-compare.is-effective .mini-controls button[aria-pressed="true"] { color: var(--ink); background: var(--lime); }
.mini-compare-grid { display: grid; grid-template-columns: .9fr 1.1fr; }
.mini-compare-grid article { min-height: 245px; padding: clamp(25px, 4vw, 45px); }
.mini-compare-grid article + article { border-left: 1px solid var(--line); background: var(--ink); }
.mini-compare-grid span { display: block; margin-bottom: 18px; color: var(--blue); font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.mini-compare-grid p { margin: 0; color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 780; line-height: 1.45; white-space: pre-line; }
.mini-compare-grid .mini-answer span { color: var(--lime); }
.mini-compare-grid .mini-answer p { color: rgba(255,255,255,.88); }
.mini-score { margin-top: 28px; }
.mini-score i { display: block; height: 8px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.14); }
.mini-score em { display: block; width: 0; height: 100%; border-radius: inherit; background: #ef765d; transition: width .55s cubic-bezier(.22,.8,.25,1); }
.mini-compare.is-effective .mini-score em { background: var(--lime); }
.mini-score b { display: block; margin-top: 10px; color: white; font-size: .82rem; }
.mini-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 17px 24px; border-top: 1px solid var(--line); }
.mini-bottom p { margin: 0; color: var(--muted); font-size: .85rem; }
.mini-bottom a { flex: 0 0 auto; }

.lab-section { background: linear-gradient(180deg, #f0f4fb 0, #fff 55%); }
.response-lab { overflow: hidden; border: 1px solid #ccd5e3; border-radius: 26px; background: white; box-shadow: 0 30px 80px rgba(7,26,49,.15); }
.lab-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #eef2f7; }
.lab-toolbar > span { margin-right: 7px; color: #758094; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.lab-toolbar button { padding: 8px 13px; }
.lab-grid { display: grid; grid-template-columns: .92fr 1.08fr; }
.lab-card { min-width: 0; padding: clamp(28px, 4.5vw, 55px); }
.lab-card + .lab-card { border-left: 1px solid var(--line); }
.lab-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.lab-card-head span { color: #d55039; font-size: .72rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.is-effective .lab-card-head span { color: #33721d; }
.lab-card-head strong { color: var(--muted); font-size: .8rem; }
.lab-prompt { min-height: 210px; margin: 0; color: var(--ink); font-size: clamp(1.18rem, 2vw, 1.52rem); font-weight: 790; line-height: 1.45; white-space: pre-line; }
.lab-findings { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0; }
.lab-findings span { padding: 6px 9px; border: 1px solid #f0b6aa; border-radius: 999px; color: #9b3c2b; background: #fff3f0; font-size: .72rem; font-weight: 800; }
.is-effective .lab-findings span { border-color: #b8d89e; color: #356722; background: #f1f9e9; }
.lab-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.lab-mode-switch button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-color: var(--line); border-radius: 9px; background: white; }
.lab-mode-switch button i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced7; }
.lab-mode-switch button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.lab-mode-switch button[aria-pressed="true"] i { background: #e15d45; }
.lab-mode-switch button[data-lab-mode="good"][aria-pressed="true"] { border-color: #85b548; background: #f5fbe9; }
.lab-mode-switch button[data-lab-mode="good"][aria-pressed="true"] i { background: #6ca133; }
.response-side { position: relative; color: white; background: var(--ink); transition: opacity .15s, transform .15s; }
.response-side.is-changing { opacity: .15; transform: translateY(8px); }
.response-side .lab-card-head strong { color: rgba(255,255,255,.53); }
.lab-response { min-height: 235px; margin: 0; color: rgba(255,255,255,.9); font-size: 1.02rem; line-height: 1.75; white-space: pre-line; }
.lab-metrics { display: grid; gap: 13px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.lab-metrics span { display: flex; justify-content: space-between; margin-bottom: 6px; color: rgba(255,255,255,.68); font-size: .76rem; }
.lab-metrics b { color: white; }
.lab-metrics i { display: block; height: 6px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.12); }
.lab-metrics em { display: block; height: 100%; border-radius: inherit; background: #e96d55; transition: width .65s cubic-bezier(.22,.8,.25,1), background .3s; }
.is-effective .lab-metrics em { background: var(--lime); }
.lab-note { margin: 20px 0 0; color: rgba(255,255,255,.58); font-size: .82rem; }
.lab-disclaimer { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); color: #6c788a; background: #f5f7fa; font-size: .75rem; text-align: center; }
.anatomy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.anatomy-grid article { position: relative; overflow: hidden; min-height: 245px; padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.anatomy-grid article::after { position: absolute; right: -25px; bottom: -38px; width: 110px; height: 110px; border-radius: 50%; background: rgba(18,79,218,.055); content: ""; }
.anatomy-grid span { display: block; margin-bottom: 38px; color: var(--blue); font-size: .76rem; font-weight: 950; }
.anatomy-grid p { color: var(--muted); }

.token-section { background:
  radial-gradient(circle at 80% 10%, rgba(201,242,15,.11), transparent 30%),
  var(--ink);
}
.cost-calculator { overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 25px; color: white; background: #0b213b; box-shadow: 0 35px 80px rgba(0,0,0,.28); }
.calculator-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: clamp(26px, 4vw, 45px); border-bottom: 1px solid rgba(255,255,255,.11); }
.calculator-head h2 { margin-bottom: .3em; font-size: clamp(2rem, 4vw, 3.3rem); }
.calculator-head p { max-width: 650px; margin: 0; color: rgba(255,255,255,.62); }
.tool-kicker { display: block; margin-bottom: 9px; color: var(--lime); font-size: .7rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.period-switch { display: flex; flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.06); }
.period-switch button { padding: 8px 12px; color: rgba(255,255,255,.64); }
.period-switch button[aria-pressed="true"] { color: var(--ink); background: var(--lime); }
.cost-settings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.11); }
.cost-settings label { padding: 18px; color: rgba(255,255,255,.61); background: #0b213b; font-size: .7rem; font-weight: 750; }
.cost-settings input, .cost-scenario input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 8px;
  color: white;
  background: rgba(255,255,255,.07);
  outline: none;
}
.cost-settings input:focus, .cost-scenario input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(201,242,15,.12); }
.cost-scenarios { display: grid; grid-template-columns: 1fr 1fr; }
.cost-scenario { padding: clamp(28px, 4.5vw, 48px); }
.cost-scenario + .cost-scenario { border-left: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.025); }
.scenario-label { display: flex; align-items: center; gap: 8px; margin-bottom: 17px; color: #ff917c; font-size: .73rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.scenario-label i { width: 9px; height: 9px; border-radius: 50%; background: #ed6b51; }
.efficient .scenario-label { color: var(--lime); }
.efficient .scenario-label i { background: var(--lime); }
.cost-scenario h3 { min-height: 2.4em; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.cost-scenario label { display: block; margin: 15px 0; color: rgba(255,255,255,.59); font-size: .76rem; }
.cost-number { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); }
.cost-number span { color: rgba(255,255,255,.47); font-size: .75rem; }
.cost-number strong { color: white; font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.cost-bar { height: 9px; margin-top: 13px; overflow: hidden; border-radius: 12px; background: rgba(255,255,255,.1); }
.cost-bar i { display: block; height: 100%; border-radius: inherit; background: #ee6d54; transition: width .55s cubic-bezier(.22,.8,.25,1); }
.efficient .cost-bar i { background: var(--lime); }
.savings-strip { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 20px clamp(25px, 4vw, 45px); color: var(--ink); background: var(--lime); }
.savings-strip span { font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.savings-strip strong { font-size: 1.05rem; }
.savings-strip b { padding: 5px 10px; border-radius: 999px; color: white; background: var(--ink); }
.calculator-note { margin: 0; padding: 14px 22px; color: rgba(255,255,255,.45); background: #071a31; font-size: .72rem; text-align: center; }
.cost-ladder { margin: 0; padding: 0; list-style: none; }
.cost-ladder li { display: grid; grid-template-columns: 58px 1fr; gap: 24px; padding: 27px 0; border-top: 1px solid var(--line); }
.cost-ladder b { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: white; background: var(--blue); }
.cost-ladder h3 { margin-bottom: .25em; font-size: 1.45rem; }
.cost-ladder p { max-width: 780px; margin: 0; color: var(--muted); }
.myth-stack { display: grid; gap: 14px; }
.myth-stack .myth-card { border: 1px solid var(--line); }
.source-panel { padding: 25px 28px; border-radius: 17px; color: var(--text); background: white; }
.source-panel .source-list { margin: 0; }

.context-stack { display: grid; max-width: 930px; margin-inline: auto; gap: 10px; }
.context-stack article { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 18px; padding: 20px 25px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 8px 25px rgba(7,26,49,.045); transition: transform .2s, border-color .2s; }
.context-stack article:hover { transform: translateX(6px); border-color: #9cb5e7; }
.context-stack b { color: var(--blue); font-size: .8rem; }
.context-stack strong { display: block; color: var(--ink); }
.context-stack span { color: var(--muted); }
.context-stack em { padding: 5px 9px; border-radius: 999px; color: #315bb2; background: #ebf1ff; font-size: .7rem; font-style: normal; font-weight: 850; }

.workflow-map { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 13px; }
.workflow-map article { min-height: 245px; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.workflow-map article:nth-of-type(even) { color: white; border-color: var(--blue); background: var(--blue); }
.workflow-map article:nth-of-type(even) p { color: rgba(255,255,255,.72); }
.workflow-map > i { color: var(--blue); font-size: 1.4rem; font-style: normal; font-weight: 950; }
.workflow-map span { color: var(--blue); font-size: .72rem; font-weight: 950; }
.workflow-map article:nth-of-type(even) span { color: var(--lime); }
.workflow-map h3 { margin-top: 45px; }
.workflow-map p { color: var(--muted); font-size: .91rem; }

.injection-demo { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 11px; }
.injection-demo article { min-height: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.injection-demo article.untrusted { border-color: #edab9d; background: #fff4f1; }
.injection-demo article.approved { border-color: #add080; background: #f5fbe9; }
.injection-demo > i { display: grid; place-items: center; color: var(--blue); font-style: normal; font-weight: 950; }
.injection-demo span { color: var(--blue); font-size: .7rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.injection-demo h3 { margin-top: 42px; }
.injection-demo p { color: var(--muted); font-size: .9rem; }

.modality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.modality-grid article { min-height: 285px; padding: 29px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.modality-grid article:nth-child(2), .modality-grid article:nth-child(4) { color: white; border-color: var(--ink); background: var(--ink); }
.modality-grid span { display: inline-block; padding: 5px 8px; border-radius: 6px; color: var(--blue); background: #eaf0ff; font-size: .67rem; font-weight: 950; letter-spacing: .1em; }
.modality-grid article:nth-child(2) span, .modality-grid article:nth-child(4) span { color: var(--ink); background: var(--lime); }
.modality-grid h3 { margin-top: 55px; }
.modality-grid p { color: var(--muted); }
.modality-grid article:nth-child(2) p, .modality-grid article:nth-child(4) p { color: rgba(255,255,255,.64); }
.reasoning-compare > div > span { display: block; margin-bottom: 16px; color: var(--blue); font-size: .72rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.reasoning-compare > div:last-child > span { color: #c64b36; }

.reading-next { overflow: hidden; border-top: 1px solid var(--line); background: var(--pale); }
.reading-next-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.reading-next-head h2 { margin-bottom: 0; }
.reading-next-head > p { max-width: 39ch; color: var(--muted); text-align: right; }
.reading-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reading-next-card { display: grid; grid-template-columns: 38px 1fr; gap: 15px; min-height: 230px; padding: 27px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: var(--white); text-decoration: none; box-shadow: 0 5px 18px rgba(7,26,49,.04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.reading-next-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 16px 35px rgba(7,26,49,.1); }
.reading-next-card > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: var(--ink); background: var(--lime); font-size: .7rem; font-weight: 950; }
.reading-next-card div { display: flex; flex-direction: column; }
.reading-next-card h3 { margin: 4px 0 11px; font-size: 1.16rem; }
.reading-next-card p { margin-bottom: 20px; color: var(--muted); font-size: .9rem; }
.reading-next-card b { margin-top: auto; color: var(--blue); font-size: .82rem; }

.site-footer { padding: 70px 0 30px; color: rgba(255,255,255,.69); background: #041323; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 60px; }
.footer-brand { display: block; margin-bottom: 12px; color: white; font-size: 1.3rem; }
.site-footer h3 { color: white; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { display: block; margin-bottom: 9px; text-decoration: none; }
.site-footer .fine { color: rgba(255,255,255,.42); font-size: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.11); font-size: .78rem; }

@media (max-width: 950px) {
  .menu-button { display: block; }
  .main-nav { position: absolute; top: 76px; right: 20px; left: 20px; display: none; flex-direction: column; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 9px; }
  .header-cta { display: none; }
  .hero-grid, .split, .builder-shell { grid-template-columns: 1fr; }
  .hero-demo { max-width: 650px; }
  .builder-output.sticky { position: static; }
  .three-grid { grid-template-columns: repeat(2, 1fr); }
  .reading-next-grid { grid-template-columns: 1fr; }
  .reading-next-card { min-height: 0; }
  .anatomy-grid, .modality-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-settings { grid-template-columns: repeat(3, 1fr); }
  .workflow-map, .injection-demo { grid-template-columns: repeat(2, 1fr); }
  .workflow-map > i, .injection-demo > i { display: none; }
}
@media (max-width: 650px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .brand { font-size: .87rem; }
  .home-hero, .page-hero { padding: 58px 0; }
  .section { padding: 68px 0; }
  .signal-bar .shell, .three-grid, .two-fields, .do-dont { grid-template-columns: 1fr; }
  .reading-next-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .reading-next-head > p { text-align: left; }
  .signal-bar span { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li { grid-template-columns: 50px 1fr; gap: 12px; }
  .builder-form, .builder-output { padding: 22px; }
  .rubric { padding: 18px; overflow-x: auto; }
  .rubric-grid { min-width: 610px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .mini-compare-grid, .lab-grid, .cost-scenarios, .anatomy-grid, .modality-grid, .cost-settings, .workflow-map, .injection-demo { grid-template-columns: 1fr; }
  .mini-compare-grid article + article, .lab-card + .lab-card, .cost-scenario + .cost-scenario { border-top: 1px solid var(--line); border-left: 0; }
  .mini-bottom, .calculator-head { align-items: stretch; flex-direction: column; }
  .lab-toolbar > span { width: 100%; }
  .lab-prompt, .lab-response { min-height: 0; }
  .cost-number { align-items: flex-start; flex-direction: column; }
  .savings-strip { grid-template-columns: 1fr; gap: 7px; }
  .context-stack article { grid-template-columns: 42px 1fr; padding: 17px; }
  .context-stack em { grid-column: 2; justify-self: start; }
  .period-switch { align-self: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .demo-stack > div { opacity: 0; animation: guide-rise .5s both; }
  .demo-stack > div:nth-child(2) { animation-delay: .08s; }
  .demo-stack > div:nth-child(3) { animation-delay: .16s; }
  .demo-stack > div:nth-child(4) { animation-delay: .24s; }
  .demo-stack > div:nth-child(5) { animation-delay: .32s; }
  .dot { animation: guide-pulse 2.4s ease-in-out infinite; }
  .response-lab { animation: guide-rise .55s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@keyframes guide-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes guide-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,242,15,.12); }
  50% { box-shadow: 0 0 0 9px rgba(201,242,15,0); }
}

.consent {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  width: var(--shell);
  transform: translateX(-50%);
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  box-shadow: var(--shadow);
}
.consent[hidden] { display: none; }
.consent-inner { display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent strong { display: block; margin-bottom: .3em; font-size: 1.02rem; }
.consent p { max-width: 70ch; color: var(--muted); font-size: .9rem; }
.consent a { color: var(--blue); font-weight: 750; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .button { min-height: 42px; }
@media (max-width: 650px) {
  .consent { padding: 18px; }
  .consent-actions { width: 100%; }
  .consent-actions .button { flex: 1; }
}
