:root {
  --ink: #12202b;
  --ink-2: #1c3140;
  --paper: #f6f4ee;
  --paper-2: #ece9df;
  --card: #fffdf8;
  --line: #d9d5c8;
  --text: #1d2a33;
  --muted: #55636d;
  --teal: #1b6b73;
  --teal-dark: #135057;
  --amber: #d8862a;
  --amber-soft: #f3d9b2;
  --ok: #1f7a4d;
  --err: #a83232;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 32, 43, .06), 0 8px 24px rgba(18, 32, 43, .06);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.65 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }
section { padding: 76px 0; }
section.alt { background: var(--paper-2); }
section.dark { background: var(--ink); color: #dfe8ee; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark a { color: var(--amber-soft); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
section.dark .eyebrow, .hero .eyebrow { color: var(--amber); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .lede, section.dark .lede { color: #c5d3dc; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.15rem var(--display); letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--teal); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current] { color: var(--teal); }
.nav a.btn { color: #fff; }
.menu { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative; }
.menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu span:first-child { top: 17px; }
.menu span:last-child { top: 25px; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teal); color: #fff; border: 2px solid var(--teal); padding: 13px 24px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; min-height: 48px; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--teal-dark); }
.btn.ghost:hover { background: var(--teal); color: #fff; }
.hero .btn.ghost, section.dark .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn.ghost:hover, section.dark .btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.amber:hover { background: #e79a3f; border-color: #e79a3f; color: var(--ink); }
.btn.small { padding: 8px 18px; min-height: 40px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.center .btn-row { justify-content: center; }

/* hero */
.hero { position: relative; background: var(--ink); color: #dfe8ee; padding: 96px 0 84px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { max-width: 620px; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .85; }
.circuit .traces path { fill: none; stroke: #2f5568; stroke-width: 1.6; }
.circuit .traces path.hot { stroke: var(--amber); stroke-opacity: .7; stroke-width: 2; }
.circuit .nodes circle { fill: var(--ink); stroke: #4d7e93; stroke-width: 2; }
.circuit .nodes circle.hot { stroke: var(--amber); fill: var(--amber); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 30%, rgba(18, 32, 43, .55) 70%, rgba(18, 32, 43, .2)); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 38px 0 0; font: 500 .85rem var(--mono); color: #9fb6c4; }
.facts li::before { content: "\2192\00a0"; color: var(--amber); }

/* page head */
.page-head { background: var(--paper-2); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.crumbs { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.page-head .lede { margin-bottom: 0; }

/* cards and grids */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); position: relative; }
.card.featured { border: 2px solid var(--teal); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.tag { position: absolute; top: -13px; left: 24px; background: var(--amber); color: var(--ink); font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.tag.plain { position: static; display: inline-block; background: var(--paper-2); color: var(--teal-dark); margin-bottom: 12px; }
.price { font: 700 2.3rem/1.1 var(--display); color: var(--ink); margin: 6px 0 14px; letter-spacing: -.02em; }
.price small { font: 500 .85rem var(--body); color: var(--muted); letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.ticks.no li::before { border: 0; width: 12px; height: 2.5px; background: var(--muted); transform: none; top: 20px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--amber); display: grid; place-items: center; margin-bottom: 16px; font: 500 1rem var(--mono); }
.pill-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.pill-row li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
.answer { font-size: 1.18rem; border-left: 4px solid var(--amber); padding: 4px 0 4px 20px; color: var(--ink); }
.note { background: var(--amber-soft); border-radius: var(--radius); padding: 18px 22px; color: var(--ink); }
.note p:last-child { margin: 0; }

/* steps */
.timeline { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; }
.timeline li { counter-increment: s; position: relative; padding: 0 0 30px 64px; }
.timeline li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--amber); font: 500 1rem/42px var(--mono); text-align: center; }
.timeline li::after { content: ""; position: absolute; left: 20px; top: 48px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline h3 { margin-bottom: .2em; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; list-style: none; position: relative; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 500 1.5rem var(--mono); color: var(--teal); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--text); }

/* compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .98rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .82rem var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }

/* health check */
.check-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.check-box fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.check-box legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 10px; }
.q-progress { height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.q-progress i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .25s; }
.q-opts { display: grid; gap: 10px; }
.q-opts label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; min-height: 52px; }
.q-opts label:hover { border-color: var(--teal); }
.q-opts input { accent-color: var(--teal); width: 20px; height: 20px; }
.q-opts label:has(input:checked) { border-color: var(--teal); background: #e9f3f4; }
.q-meta { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 10px; }
.score { font: 700 3.4rem/1 var(--display); color: var(--ink); }
.score small { font: 500 1rem var(--body); color: var(--muted); }
.result-list { padding-left: 20px; }
.hidden { display: none !important; }

/* forms */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .98rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: 400 1rem var(--body); padding: 13px 14px; border: 1.5px solid #b8b4a6; border-radius: 10px; background: #fff; color: var(--text); width: 100%; min-height: 48px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(27, 107, 115, .25); }
.form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; }
.form .check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; accent-color: var(--teal); flex: none; }
.choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice label { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label:has(input:checked) { border-color: var(--teal); background: #e9f3f4; box-shadow: inset 0 0 0 1px var(--teal); }
.choice label:has(input:focus-visible) { outline: 3px solid var(--amber); }
.choice small { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { border-radius: 10px; padding: 0; }
.msg.ok { background: #e3f2ea; color: #14502f; padding: 14px 18px; }
.msg.err { background: #fbe8e8; color: #7a1f1f; padding: 14px 18px; }
.fine-print { font-size: .9rem; color: var(--muted); margin: 0; }

/* article */
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.meta { font: 500 .85rem var(--mono); color: var(--muted); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.post-list a.card { display: block; text-decoration: none; color: var(--text); }
.post-list a.card:hover { border-color: var(--teal); }
.post-list h3 { color: var(--ink); }
.cta-band { background: var(--ink); color: #dfe8ee; border-radius: var(--radius); padding: 34px; margin-top: 44px; }
.cta-band h3 { color: #fff; }
.cta-band .btn { margin-top: 6px; }
.cta-band a:not(.btn) { color: var(--amber-soft); }

/* footer */
.site-footer { background: var(--ink); color: #b6c6d1; padding: 56px 0 28px; font-size: .96rem; }
.site-footer a { color: #e9eef2; }
.cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.brand-foot { font: 700 1.2rem var(--display); color: #fff; margin-bottom: 8px; }
.brand-foot em { font-style: normal; color: var(--amber); }
.foot-h { font: 500 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.fine { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: .86rem; color: #8ea2b0; }

.sticky-cta { display: none; }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.rv.in { opacity: 1; transform: none; }

.price small { display: block; margin-top: 4px; }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .hero::after { background: linear-gradient(180deg, rgba(18, 32, 43, .9), rgba(18, 32, 43, .7)); }
  .menu { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; }
  .g2, .g3, .g4, .choice, .cols { grid-template-columns: 1fr; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 244, 238, .96); border-top: 1px solid var(--line); z-index: 40; }
  .sticky-cta .btn { width: 100%; }
  .sticky-cta { transition: transform .2s; }
  .sticky-cta.away { transform: translateY(110%); }
  body { padding-bottom: 72px; }
  body.on-contact .sticky-cta { display: none; }
  body.on-contact { padding-bottom: 0; }
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .q-progress i { transition: none; }
}

/* answer block and evidence charts */
.answer{max-width:62ch;margin:1rem 0 0;padding:.75rem 1rem;border-left:4px solid var(--teal,#1f8a8a);background:rgba(127,127,127,.1);font-size:1rem;line-height:1.5}
.hero .answer{background:rgba(255,255,255,.1);color:inherit}
.chart{margin:1.25rem 0 2rem}
.chart svg{width:100%;height:auto;display:block}
.chart figcaption{font-size:.9rem;margin-top:.5rem;opacity:.85}
.ct-l{font:500 14px "IBM Plex Sans",system-ui,sans-serif;fill:currentColor}
.ct-v{font:500 14px "IBM Plex Mono",monospace;fill:currentColor}
.ct-b{fill:#7c8b96}
.ct-b.hl{fill:var(--teal,#1f8a8a)}
