:root {
  --ink: #0d1412;
  --ink-2: #33403c;
  --muted: #66736f;
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --line: #d8d4c9;
  --accent: #1f8a5b;
  --accent-ink: #0f5c3b;
  --mint: #57e3a5;
  --good: #1f8a5b;
  --good-bg: #e3f3ea;
  --warn: #a86a00;
  --warn-bg: #fbf0d9;
  --bad: #b3261e;
  --bad-bg: #fbe5e2;
  --info: #3f5f8a;
  --info-bg: #e6edf6;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--ink); color: #e6efe9; padding: 1rem 1.1rem; border-radius: var(--radius); overflow-x: auto; font: 13.5px/1.55 var(--mono); }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }
.mono { font-family: var(--mono); font-size: .85rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { font: 600 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .8rem; }

/* Header */
header.site { background: var(--ink); color: #e6efe9; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 600; }
.brand b { color: var(--mint); }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--mint); color: var(--mint); border-radius: 7px; font: 700 .75rem var(--mono); }
header.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
header.site nav a { color: #b9c7c1; text-decoration: none; font-size: .92rem; }
header.site nav a:hover, header.site nav a[aria-current] { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: #f2f6f3; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(87,227,165,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(87,227,165,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .wrap { position: relative; }
.hero h1 em { font-style: italic; color: var(--mint); }
.hero .eyebrow { color: #9fb3ab; }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40em; color: #c9d6d0; }
.pulse::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: .55rem; vertical-align: 1px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(87,227,165,.6); } 50% { box-shadow: 0 0 0 6px rgba(87,227,165,0); } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } }
.try { font-size: .9rem; color: #9fb3ab; margin-top: 1rem; }
.try a { color: #d7e4de; margin-right: .8rem; font-family: var(--mono); font-size: .85rem; }

/* Form */
form.check { display: flex; gap: .5rem; max-width: 620px; margin: 2rem 0 0; }
form.check input {
  flex: 1; min-width: 0; font: 500 1.1rem var(--mono); padding: .95rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
form.check-hero input { border-color: #2c3a35; background: #f8faf9; }
form.check input:focus-visible { outline: 3px solid var(--mint); outline-offset: 1px; }
form.check button, .button {
  font: 600 1rem var(--sans); padding: .95rem 1.4rem; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--mint); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; justify-content: center;
}
form.check-inline button, .button { background: var(--accent); color: #fff; }
form.check button:hover, .button:hover { filter: brightness(1.07); color: inherit; }
.button:hover { color: #fff; }
.button.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.button.ghost:hover { border-color: var(--ink); color: var(--ink); }
form.check.busy button { opacity: .7; pointer-events: none; }
form.check.busy button::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { form.check { flex-direction: column; } }

/* Home sections */
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; padding-top: 3.5rem; padding-bottom: 1rem; }
.three h2 { margin-top: 0; font-size: 1.35rem; }
.num { font: 600 .8rem var(--mono); color: var(--accent); margin-bottom: .4rem; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; padding-top: 2rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.7rem; }
.split .card { margin-top: 2.4rem; }
.halves dt { font-weight: 700; margin-top: 1rem; display: flex; align-items: center; gap: .6rem; }
.halves dd { margin: .3rem 0 0; color: var(--ink-2); font-size: .95rem; }
.pill { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: .2rem .5rem; border-radius: 99px; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.info { background: var(--info-bg); color: var(--info); }
.faq { padding-top: 2.5rem; padding-bottom: 3rem; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

/* Result */
.result { padding-top: 2.5rem; padding-bottom: 2rem; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; border-radius: 16px; padding: 1.8rem 2rem; border: 1.5px solid; margin-bottom: 1.6rem; }
.verdict h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .35em; }
.verdict p { margin: 0; color: var(--ink-2); max-width: 52em; }
.verdict .big { font: 700 clamp(2.2rem, 6vw, 3.6rem)/1 var(--serif); margin: 0; min-width: 2.2ch; }
.verdict.good { background: var(--good-bg); border-color: #b5dcc6; } .verdict.good .big { color: var(--good); }
.verdict.warn { background: var(--warn-bg); border-color: #ecd29e; } .verdict.warn .big { color: var(--warn); }
.verdict.bad { background: var(--bad-bg); border-color: #efbbb4; } .verdict.bad .big { color: var(--bad); }
.verdict.neutral { background: var(--paper-2); border-color: var(--line); } .verdict.neutral .big { color: var(--muted); }
@media (max-width: 600px) { .verdict { grid-template-columns: 1fr; gap: .6rem; padding: 1.4rem; } }

table.findings { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: table; }
.findings th, .findings td { text-align: left; vertical-align: top; padding: 1rem 1.2rem; border-bottom: 1px solid var(--paper-2); }
.findings tr:last-child th, .findings tr:last-child td { border-bottom: 0; }
.findings th { width: 32%; font-weight: 600; font-size: .95rem; }
.findings td strong { display: block; font-family: var(--mono); font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.findings td span { display: block; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .6rem; background: var(--muted); }
tr.good .dot { background: var(--good); } tr.warn .dot { background: #e0a020; } tr.bad .dot { background: var(--bad); } tr.info .dot { background: var(--info); }
@media (max-width: 640px) { .findings th, .findings td { display: block; width: auto; } .findings th { padding-bottom: 0; border: 0; } }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 1rem; }
.actions .button { font-size: .95rem; padding: .75rem 1.1rem; }
.button.copied { background: var(--ink); }
.report { margin: 0 0 1.5rem; }
.report summary { cursor: pointer; color: var(--muted); font-size: .92rem; }
.report pre { white-space: pre-wrap; max-height: 460px; overflow: auto; margin-top: .8rem; }
.guide { margin: 1.5rem 0; }
.guide h2 { margin-top: 0; }
.guide ol { padding-left: 1.3rem; }
.guide li { margin-bottom: .7rem; }
.guide li p, .prose li p { margin: 0; }
.cta-inline { padding-bottom: 3rem; }
.cta-inline p { background: var(--paper-2); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0; }

/* Articles */
.prose-page { max-width: 780px; padding-top: 3rem; padding-bottom: 3rem; }
.article-head { margin-bottom: 2rem; }
.article-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1rem 0 2rem; background: #fff; }
.compare th, .compare td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; vertical-align: top; }
.compare thead th { background: var(--paper-2); }
.prose-page { overflow-wrap: break-word; }
@media (max-width: 640px) { .prose table.compare { display: block; overflow-x: auto; } }
.toc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1rem; }
.toc a { font: 500 .85rem var(--mono); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .3rem .8rem; text-decoration: none; }
.prose section h2 { scroll-margin-top: 1rem; }
.check-aside { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; margin: 3rem 0 2rem; }
.check-aside form.check { margin-top: .6rem; }
.related a { display: block; padding: .5rem 0; font-weight: 600; }
ul.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
ul.cards a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--ink); }
ul.cards a:hover { border-color: var(--accent); }
ul.cards strong { display: block; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .25rem; }
ul.cards span { color: var(--muted); font-size: .93rem; }

/* Footer */
footer.site { background: var(--ink); color: #c9d6d0; padding: 3rem 0 2.5rem; margin-top: 2rem; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid #23302b; flex-wrap: wrap; }
.cta-band > div { max-width: 640px; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band .eyebrow { color: var(--mint); }
.cta-band .button { background: var(--mint); color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2rem; }
.foot-grid nav { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
.foot-grid a { color: #b9c7c1; font-size: .9rem; text-decoration: none; }
.foot-grid a:hover { color: #fff; }
footer .muted { color: #8a9a94; font-size: .88rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.redirect-note { background: var(--warn-bg); border: 1px solid #ecd29e; border-radius: 12px; padding: 1rem 1.2rem; margin: -0.6rem 0 1.6rem; }

/* Share panel */
.share { margin: 1.5rem 0; }
.share h2 { margin-top: 0; }
.share-card { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); margin: 1rem 0 .4rem; background: #0b120f; }
.share .actions { margin: 1rem 0 .6rem; }
.badge-embed { border-top: 1px solid var(--paper-2); margin-top: 1.4rem; padding-top: 1.4rem; }
.badge-embed img { display: block; max-width: 100%; height: auto; margin-bottom: .6rem; }
.snippet { display: flex; gap: .6rem; align-items: center; margin-top: .6rem; }
.snippet code { flex: 1; min-width: 0; display: block; white-space: nowrap; overflow-x: auto; padding: .6rem .75rem; font-size: .78rem; border: 1px solid var(--line); background: var(--paper); }
.snippet .button { padding: .55rem .9rem; font-size: .88rem; }
@media (max-width: 600px) { .snippet { flex-direction: column; align-items: stretch; } }
.h-domain { font-family: var(--mono); font-size: .86em; font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }

/* Usage dashboard */
table.stats { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.stats th, table.stats td { padding: .45rem .6rem; border-bottom: 1px solid var(--paper-2); text-align: right; font-variant-numeric: tabular-nums; }
table.stats th { text-align: left; font-weight: 500; white-space: pre; }
table.stats thead th { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; }
table.stats thead th:first-child { text-align: left; }
table.stats.big { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 1rem 0 2rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.stat-grid .card h2 { margin-top: 0; font-size: 1.05rem; }
.stats-h1 { font-size: 2rem; }
