/* howsmy.site — tokens per BRAND.md */
:root {
  --ink: #14232b;
  --muted: #4b5d66;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #ddd8cc;
  --brand: #0b6e6e;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ef;
  --accent: #e8913a;
  --accent-text: #a8570c;
  --A: #15803d; --B: #4d7c0f; --C: #b45309; --D: #c2410c; --F: #b91c1c;
  --pass: #15803d; --warn: #b45309; --fail: #b91c1c; --info: #4b5d66;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 35 43 / 6%), 0 8px 24px rgb(20 35 43 / 6%);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #e8eef0; --muted: #a3b3ba; --paper: #0f181d; --card: #16222a; --line: #2a3a43;
    --brand: #4fc4bf; --brand-ink: #062524; --brand-soft: #143033; --accent: #f0a65a; --accent-text: #f0a65a;
    --A: #4ade80; --B: #a3e635; --C: #fbbf24; --D: #fb923c; --F: #f87171;
    --pass: #4ade80; --warn: #fbbf24; --fail: #f87171; --info: #a3b3ba;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .5em; }
h3 { font-size: 1.15rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .88em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand .tld { color: var(--accent-text); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); text-decoration: underline; }
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.site-footer a { color: inherit; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Hero and form */
.hero { padding: 40px 0 24px; text-align: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 auto 28px; }
.check-form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; background: var(--card); padding: 8px; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.check-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.1rem; padding: 10px 16px; }
.check-form input:focus { outline: none; }
.check-form:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.hero .fine { margin-top: 14px; font-size: .92rem; color: var(--muted); }
@media (max-width: 520px) {
  .check-form { flex-direction: column; border-radius: var(--radius); }
  .check-form input { text-align: center; }
}

/* Sections */
section { padding: 48px 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-text); margin-bottom: 6px; }
.center { text-align: center; }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); }
.plan .price { font-size: 2rem; font-weight: 700; margin: 4px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 1.2em; margin: 12px 0 20px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .btn { align-self: flex-start; }

/* Results */
#results:empty { display: none; }
.report { margin-top: 32px; }
.report-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 600px) { .report-head { grid-template-columns: 1fr; text-align: center; } .report-head .grade-xl { margin-inline: auto; } }
.grade-xl { width: 116px; height: 116px; border-radius: 28px; display: grid; place-items: center; color: #fff; font-size: 3.6rem; font-weight: 800; line-height: 1; }
.grade-xl small { display: block; font-size: .8rem; font-weight: 600; margin-top: 4px; }
.g-A { background: var(--A); } .g-B { background: var(--B); } .g-C { background: var(--C); } .g-D { background: var(--D); } .g-F { background: var(--F); } .g-none { background: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .grade-xl, :root:not([data-theme='light']) .chip { color: #0f181d; } }
.report-head h2 { margin-bottom: 4px; word-break: break-word; }
.cats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 24px 0; }
.cat { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--brand); }
.chip { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.cat .name { font-weight: 600; line-height: 1.2; }
.cat .score { font-size: .85rem; color: var(--muted); }
.pending { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .pending { animation: none; } }
.cat-block { margin-top: 28px; }
.cat-block h3 { display: flex; align-items: center; gap: 10px; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.finding { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--info); border-radius: 10px; padding: 12px 14px; }
.finding.pass { border-left-color: var(--pass); }
.finding.warn { border-left-color: var(--warn); }
.finding.fail { border-left-color: var(--fail); }
.finding .t { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.finding .badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 6px; border: 1.5px solid currentColor; flex: none; }
.finding.pass .badge { color: var(--pass); } .finding.warn .badge { color: var(--warn); } .finding.fail .badge { color: var(--fail); }
.finding p { margin: 6px 0 0; font-size: .95rem; }
.finding .detail { color: var(--muted); font-size: .85rem; word-break: break-word; }
.finding .fix { font-size: .92rem; }
details.passes summary { cursor: pointer; color: var(--muted); margin: 8px 0; }
.callout { background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.callout h3 { margin-bottom: 6px; }
.callout .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.error { background: var(--card); border: 1px solid var(--fail); color: var(--ink); border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; }
.report-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; justify-content: inherit; }
@media (max-width: 600px) { .report-tools { justify-content: center; } }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5em; font-weight: 600; }

/* FAQ and prose */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; }
.prose h2 { margin-top: 1.6em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll { overflow-x: auto; }
@media print {
  .site-header nav, .check-form, .callout, .site-footer nav, #plans, .report-tools { display: none !important; }
  body { background: #fff; }
}
.finding.info .badge { color: var(--info); }
.finding .link { font-size: .9rem; }
.chip.info { background: var(--info); font-size: 1.1rem; }
.cat-block .lead-in { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.cat-block .about { font-size: .9rem; color: var(--muted); margin: -4px 0 10px; }
.report-foot { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; }
/* Promotion mode (public/promo.js). data-show="vs": only when Vashon Software may be promoted;
   data-show="pro": only when howsmy.site's own offers may be shown. */
:root[data-promo="none"] [data-show], :root[data-promo="pro"] [data-show="vs"] { display: none !important; }
