@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #17233F;
  --ink-2: #3D4A66;
  --paper: #EEF1F4;
  --card: #FFFFFF;
  --line: #C9D0DB;
  --yellow: #F2C230;
  --yellow-deep: #D9A70F;
  --green: #2F7A57;
  --red: #C2363F;
  --amber: #B86A12;
  --grey: #8A93A3;
  --focus: #2457D6;
  --measure: 66ch;
  --tag-shadow: #17233F;
  --string: #17233F;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8ECF3;
    --ink-2: #B4BDCC;
    --paper: #121A2C;
    --card: #1A2439;
    --line: #2E3A52;
    --green: #5BBF8C;
    --red: #F06A72;
    --amber: #E5A04A;
    --grey: #7D879A;
    --focus: #8DB0FF;
    --tag-shadow: #3A4A6B;
    --string: #B4BDCC;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
code { font-size: .92em; background: var(--card); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-variation-settings: "wdth" 125; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; max-width: 14ch; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 760; }
h3 { font-size: 1.15rem; font-weight: 700; font-variation-settings: "wdth" 112; }

/* Layout shell */
.top, main > section, .foot { width: min(1140px, 100% - 32px); margin-inline: auto; }
main > section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
main > section.hero { border-top: 0; padding-top: clamp(32px, 6vw, 72px); }
.section-lede { max-width: var(--measure); color: var(--ink-2); margin: 14px 0 0; font-size: 1.12rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.2rem; text-decoration: none; }
.top nav { display: flex; gap: 22px; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .top nav { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.lede { font-size: 1.22rem; max-width: 44ch; color: var(--ink-2); margin: 22px 0 30px; }
.scan-form label, .waitlist label { display: block; font-weight: 650; margin-bottom: 8px; }
.field { display: flex; gap: 8px; max-width: 560px; }
.field input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 14px 16px;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px;
}
.field input::placeholder { color: var(--grey); }
.field button, .btn-primary, .btn-secondary {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px; padding: 14px 20px;
  font-variation-settings: "wdth" 110; text-decoration: none; display: inline-block; text-align: center;
}
.field button, .btn-primary { background: var(--yellow); color: #17233F; border: 2px solid #17233F; }
.field button:hover, .btn-primary:hover { background: var(--yellow-deep); }
.field button[disabled] { opacity: .7; cursor: progress; }
.btn-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-secondary:hover { background: var(--card); }
@media (max-width: 520px) { .field { flex-direction: column; } }
.hint { font-size: .95rem; color: var(--ink-2); margin: 10px 0 0; min-height: 1.5em; }
.hint.error { color: var(--red); font-weight: 600; }
.works-with { font-size: .95rem; color: var(--ink-2); margin-top: 26px; max-width: 46ch; }

/* The inspection tag: the one bold element on the page */
.tag-wrap { margin: 0; justify-self: center; width: min(360px, 100%); }
.tag {
  position: relative; background: var(--yellow); color: #17233F; border: 2.5px solid #17233F;
  border-radius: 18px 18px 26px 26px; padding: 64px 26px 26px;
  box-shadow: 8px 8px 0 var(--tag-shadow); transform: rotate(-2.5deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), background .4s;
}
.tag::before { /* string */
  content: ""; position: absolute; left: 50%; top: -46px; width: 2px; height: 56px; background: var(--string); transform: rotate(8deg); transform-origin: bottom;
}
.tag-hole { position: absolute; left: 50%; top: 18px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--paper); border: 2.5px solid #17233F; }
.tag-head { font-weight: 800; font-size: clamp(1.45rem, 6.5vw, 1.9rem); font-variation-settings: "wdth" 125; text-align: center; letter-spacing: .02em; border-bottom: 2.5px solid #17233F; padding-bottom: 12px; margin-bottom: 14px; }
.tag-rows { margin: 0; display: grid; gap: 10px; }
.tag-rows div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; border-bottom: 1.5px dashed rgba(23,35,63,.45); padding-bottom: 8px; }
.tag-rows dt { font-size: .85rem; font-weight: 600; }
.tag-rows dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; font-size: .95rem; }
.tag-stamp {
  margin-top: 20px; text-align: center; font-weight: 800; font-variation-settings: "wdth" 120; font-size: 1.15rem;
  border: 3px solid #17233F; border-radius: 8px; padding: 8px; transform: rotate(-4deg);
}
.tag[data-state="scanning"] .tag-stamp { border-style: dashed; }
.tag[data-state="pass"] { transform: rotate(0deg); }
.tag[data-state="pass"] .tag-stamp { color: #1F5E40; border-color: #1F5E40; background: rgba(255,255,255,.45); }
.tag[data-state="warn"] .tag-stamp { color: #7A4206; border-color: #7A4206; background: rgba(255,255,255,.45); }
.tag[data-state="fail"] { background: #F7D9DB; }
.tag[data-state="fail"] .tag-stamp { color: #9E1F28; border-color: #9E1F28; background: #fff; }
.tag-wrap figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 28px; text-align: center; }

/* Results */
.results-head p { max-width: var(--measure); color: var(--ink-2); margin: 12px 0 0; font-size: 1.12rem; }
.counts { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.counts li { border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 650; font-size: .95rem; background: var(--card); }
.findings { list-style: none; padding: 0; margin: 32px 0 0; border-top: 2px solid var(--ink); }
.finding { display: grid; grid-template-columns: 7.5rem 1fr; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .finding { grid-template-columns: 1fr; } }
.sev { font-weight: 750; font-size: .9rem; font-variation-settings: "wdth" 112; display: inline-flex; align-items: center; gap: 8px; height: fit-content; }
.sev::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--grey); flex: none; }
.sev-critical { color: var(--red); } .sev-critical::before { background: var(--red); }
.sev-high { color: var(--red); } .sev-high::before { background: transparent; border: 3px solid var(--red); }
.sev-medium { color: var(--amber); } .sev-medium::before { background: var(--amber); }
.sev-low { color: var(--ink-2); } .sev-low::before { background: var(--grey); }
.sev-info { color: var(--green); } .sev-info::before { background: transparent; border: 2px solid var(--green); border-radius: 50%; }
.finding h3 { font-variation-settings: "wdth" 100; font-size: 1.12rem; }
.finding p { margin: 6px 0 0; max-width: var(--measure); color: var(--ink-2); }
.finding .where { font-size: .9rem; margin-top: 8px; color: var(--ink-2); }
.empty { padding: 24px 0; font-weight: 600; }
.not-checked { margin-top: 40px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 26px; max-width: 760px; }
.not-checked p { color: var(--ink-2); margin: 8px 0 0; }
.not-checked ul { margin: 14px 0 22px; padding-left: 1.2em; }

/* What we check */
.checks { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }
.checks div { padding: 20px 0; border-top: 2px solid var(--ink); }
.checks dt { font-weight: 750; font-size: 1.12rem; font-variation-settings: "wdth" 112; }
.checks dd { margin: 6px 0 0; color: var(--ink-2); }

/* Badge */
.badge { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .badge { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; background: var(--yellow); color: #17233F;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
.steps p { margin: 6px 0 0; color: var(--ink-2); max-width: 52ch; }
.badge-demo { display: grid; gap: 18px; justify-items: start; padding: 36px; border: 2px dashed var(--line); border-radius: 16px; }
.mini-badge { display: inline-flex; border-radius: 6px; overflow: hidden; font-weight: 700; font-size: .95rem; border: 2px solid #17233F; }
.mb-left { background: #17233F; color: var(--yellow); padding: 6px 12px; font-variation-settings: "wdth" 120; }
.mb-right { background: #DDF0E5; color: #1F5E40; padding: 6px 12px; }
.mini-badge.grey .mb-right { background: #E4E7EC; color: #4A5468; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; }
.plan p { margin: 0; color: var(--ink-2); flex: 0 1 auto; }
.plan p:not(.price) { flex-grow: 1; }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--ink); font-variation-settings: "wdth" 115; }
.plan .price span { font-size: .95rem; font-weight: 500; color: var(--ink-2); font-variation-settings: "wdth" 100; }
.plan-badge { border-color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.plan button, .plan a { margin-top: 8px; }
.waitlist { margin-top: 32px; padding: 24px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); max-width: 640px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 820px; }
.faq details:first-of-type { margin-top: 28px; border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style-position: outside; }
.faq details p { color: var(--ink-2); margin: 10px 0 0; max-width: var(--measure); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 36px 48px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.foot nav { display: flex; gap: 18px; }

/* Legal pages */
.legal { width: min(760px, 100% - 32px); margin: 0 auto; padding: 32px 0 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); max-width: none; }
.legal h2 { font-size: 1.35rem; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-2); max-width: var(--measure); }
.draft-note { background: var(--yellow); color: #17233F; border: 2px solid #17233F; border-radius: 10px; padding: 12px 16px; font-weight: 600; margin: 20px 0; }

/* Fix guides */
.guide { width: min(760px, 100% - 32px); margin: 0 auto; padding: 24px 0 80px; }
.guide h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); max-width: none; }
.guide h2 { font-size: 1.5rem; margin: 44px 0 0; }
.guide h3 { font-size: 1.12rem; font-variation-settings: "wdth" 100; }
.guide p, .guide li { color: var(--ink-2); max-width: var(--measure); }
.guide .lede { font-size: 1.15rem; margin-top: 18px; }
.crumbs { margin: 0 0 14px; font-size: .95rem; }
.reviewed { font-size: .92rem; margin-top: 14px; }
.short-answer { margin-top: 28px; background: var(--card); border: 2px solid var(--ink); border-left: 10px solid var(--yellow); border-radius: 12px; padding: 20px 24px; }
.short-answer h2 { margin: 0; font-size: 1.15rem; }
.short-answer p { margin: 8px 0 0; color: var(--ink); font-size: 1.08rem; }
.fix-steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: f; }
.fix-steps > li { counter-increment: f; position: relative; padding: 0 0 24px 54px; }
.fix-steps > li::before {
  content: counter(f); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; background: var(--yellow); color: #17233F;
}
.fix-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 36px; bottom: 4px; width: 2px; background: var(--line); }
.fix-steps > li > div { margin-top: 6px; color: var(--ink-2); }
.guide pre { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; }
.guide pre code { background: none; border: 0; padding: 0; }
.prompt-box { margin-top: 14px; }
.prompt-box pre { margin: 0 0 12px; color: var(--ink); }
.guide-cta { margin-top: 48px; padding: 26px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); color: #17233F; }
.guide-cta h2 { margin: 0; color: #17233F; }
.guide-cta p { color: #17233F; margin: 8px 0 18px; }
.guide-cta .btn-primary { background: #fff; }
.guide details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.guide summary { cursor: pointer; font-weight: 700; }
.sources, .related { padding-left: 1.2em; }
.guide-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 2px solid var(--ink); }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 22px 0; text-decoration: none; }
.guide-list a:hover h2 { text-decoration: underline; }
.guide-list h2 { margin: 0; font-size: 1.25rem; font-variation-settings: "wdth" 105; color: var(--ink); }
.guide-list p { margin: 6px 0 0; }
