/* Nodmeter: neutral greys, one blue for main buttons and for "you" in charts. Light and dark follow the system. */
:root {
  --page: #f5f5f6;
  --card: #ffffff;
  --card-2: #f0f0f2;
  --line: #e2e2e6;
  --ink: #111114;
  --muted: #55555f;
  --faint: #8a8a94;
  --blue: #3672dc;
  --blue-ink: #ffffff;
  --blue-hover: #2b60c0;
  --blue-soft: rgba(54, 114, 220, 0.14);
  --bar: #c9c9d1;
  --ok: #0b7a6e;
  --warn: #a15c00;
  --bad: #c62828;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #111114;
    --card: #1a1a1e;
    --card-2: #222228;
    --line: #2d2d34;
    --ink: #f2f2f4;
    --muted: #a6a6b0;
    --faint: #7c7c86;
    --blue-soft: rgba(84, 140, 240, 0.2);
    --bar: #45454f;
    --ok: #26a69a;
    --warn: #e0a040;
    --bad: #ef5350;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(720px, 100% - 32px); margin: 0 auto; }
section { margin: 0 auto; padding: 72px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.fine { font-size: 0.88rem; color: var(--muted); }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); background: var(--page); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); }
.btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.icon-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.icon-card .pic { width: 56px; height: 56px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; color: var(--ink); }
.icon-card .pic svg { width: 30px; height: 30px; }
.icon-card p { color: var(--muted); margin: 0; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .lead { max-width: 640px; margin: 0 auto 6px; }
.hero .source-line { font-size: 0.92rem; color: var(--muted); margin-bottom: 36px; }

/* Forms */
.form-card { max-width: 620px; margin: 0 auto; text-align: left; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .help { font-size: 0.85rem; color: var(--muted); }
.field .err { font-size: 0.88rem; color: var(--bad); margin: 0; }
.field .err:empty { display: none; }
input[type="text"], input[type="url"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card-2); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.chip:hover { border-color: var(--faint); }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-msg { margin: 12px 0 0; font-size: 0.95rem; }
.form-msg.bad { color: var(--bad); }
.turnstile-box { margin: 0 0 14px; display: flex; justify-content: center; }
.turnstile-box:empty { margin: 0; }

/* Progress */
.progress { height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 0.4s ease; }
.qlist { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.qlist li { margin: 4px 0; }

/* Range bars (share of answers with a likely range) */
.range { position: relative; height: 12px; background: var(--card-2); border-radius: 999px; min-width: 120px; }
.range .band { position: absolute; top: 0; bottom: 0; background: var(--bar); border-radius: 999px; opacity: 0.75; }
.range .dot { position: absolute; top: -2px; width: 4px; height: 16px; margin-left: -2px; background: var(--ink); border-radius: 2px; }
.range.you .band { background: var(--blue); opacity: 0.35; }
.range.you .dot { background: var(--blue); }

/* Report */
.report-head { text-align: center; padding: 56px 0 24px; }
.report-head .kicker { color: var(--muted); font-size: 0.95rem; margin-bottom: 8px; }
.big-number { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 780; letter-spacing: -0.03em; margin: 0; }
.report-head .range { max-width: 420px; margin: 18px auto 10px; height: 14px; }
.facts { color: var(--muted); }
.report-section { margin-top: 28px; }
.report-section h2 { font-size: 1.3rem; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.85rem; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr.you td { background: var(--blue-soft); font-weight: 650; }
table.data td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data td.bar { width: 34%; }
@media (max-width: 600px) {
  table.data .bar { display: none; }
  table.data th, table.data td { padding: 8px 6px; }
}
.tag { display: inline-block; font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.tag.ahead { color: var(--bad); }
.tag.behind { color: var(--ok); }
.fixes { display: grid; gap: 12px; }
.fix { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.fix .n { width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-weight: 700; }
.fix h3 { margin: 4px 0 4px; }
.fix p { margin: 0; color: var(--muted); }
details.answer { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--card); }
details.answer summary { cursor: pointer; font-weight: 600; }
details.answer .text { white-space: pre-wrap; margin: 10px 0; color: var(--ink); }
details.answer ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cta-band { text-align: center; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 920px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.plan.featured { border: 2px solid var(--blue); }
.plan .price { font-size: 2.3rem; font-weight: 780; letter-spacing: -0.02em; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; color: var(--ink); }
.plan li::before { content: "✓"; color: var(--blue); font-weight: 800; }
.plan .spacer { flex: 1; }
.plan .label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 36px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-size: 1.25rem; font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; font-size: 1.02rem; }

/* Picks */
.pick-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 640px) { .pick-list { grid-template-columns: 1fr; } }
.pick-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; font-weight: 600; text-transform: capitalize; }
.pick-link:hover { border-color: var(--faint); }
.pick-link .arrow { color: var(--blue); }
ol.questions { padding-left: 20px; color: var(--muted); }

/* Dashboard */
.dash-grid { display: grid; gap: 16px; }
.prod-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; text-decoration: none; }
.prod-card .num { font-size: 1.8rem; font-weight: 760; }
.trend svg { width: 100%; height: auto; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; background: var(--card-2); color: var(--muted); }
.status-pill.on { color: var(--ok); }
.keybox { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--card-2); border-radius: 10px; padding: 12px; }
.keybox code { font-size: 0.92rem; word-break: break-all; flex: 1; min-width: 200px; }
.notice { border-left: 4px solid var(--blue); padding: 12px 16px; background: var(--card); border-radius: 8px; }

/* Legal and plain pages */
.prose { padding: 48px 0 72px; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.25rem; margin-top: 32px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.foot .wrap { display: grid; gap: 12px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 10px; opacity: 0; transition: 0.25s; pointer-events: none; z-index: 20; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
