@font-face { font-family: "Inter"; src: url("/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
[hidden] { display: none !important; }
:root {
  --bg: #0A0D12; --bg2: #0F141B; --card: #121821; --line: #1F2733; --line2: #2A3441;
  --text: #F5F7FA; --muted: #8A94A6; --dim: #7A8496;
  --green: #19E36B; --green-ink: #04150B; --amber: #F5B83D; --coral: #FF6B5E;
  --r: 18px; --max: 680px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line2); }
a:hover { text-decoration-color: var(--green); }
.glow { position: fixed; inset: -30vh -20vw auto; height: 70vh; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 50% at 60% 40%, rgba(25,227,107,.10), transparent 70%); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { max-width: var(--max); margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.pill { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 8px 20px 40px; }
.foot { max-width: var(--max); margin: 0 auto; padding: 28px 20px 40px; color: var(--dim); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; } .foot a { color: var(--muted); }

.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 14px; font-weight: 800; }
.h-sm { font-size: clamp(28px, 7vw, 38px); }
h2 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 34em; }
.muted { color: var(--muted); } .small { font-size: 13px; }

.hero { padding: 28px 0 8px; } .hero.narrow { padding-top: 48px; }
.grade { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.field { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; padding: 0 16px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(25,227,107,.12); }
.at { color: var(--dim); font-size: 20px; font-weight: 600; }
.field input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 20px; font-weight: 600; padding: 16px 6px; }
.field input::placeholder { color: var(--dim); font-weight: 500; }
.tz { color: var(--muted); font-size: 14px; }
.tz summary { cursor: pointer; list-style: none; } .tz summary::-webkit-details-marker { display: none; }
.tz summary span { color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.tz select { margin-top: 10px; width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 12px; padding: 12px; font: inherit; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--green); color: var(--green-ink); font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.err { color: var(--coral); margin: 0; font-size: 15px; }
.demo-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--green); }

.progress { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.progress li { display: flex; align-items: center; gap: 12px; color: var(--dim); transition: color .2s; }
.progress .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); flex: none; position: relative; }
.progress li.active { color: var(--text); }
.progress li.active .dot { border-color: var(--green); border-right-color: transparent; animation: spin .8s linear infinite; }
.progress li.done { color: var(--muted); }
.progress li.done .dot { background: var(--green); border-color: var(--green); }
.progress li.done .dot::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid var(--green-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.how { display: grid; gap: 14px; margin-top: 44px; }
.how-item { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; }
.how-item span { color: var(--muted); font-size: 15px; }

/* results */
.banner { background: rgba(245,184,61,.08); border: 1px solid rgba(245,184,61,.3); color: var(--amber); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }
.who { display: flex; align-items: center; gap: 12px; margin: 8px 0 20px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--card); }
.who-name { font-weight: 700; }
.who-handle { color: var(--muted); text-decoration: none; margin-right: 8px; }
.who-meta { color: var(--dim); font-size: 14px; }
.scorecard { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.ring { position: relative; width: 148px; height: 148px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--c, var(--green)); stroke-linecap: round; stroke-dasharray: var(--v) 100; animation: fill 1.1s cubic-bezier(.2,.7,.2,1) both; }
.ring-good { --c: var(--green); } .ring-ok { --c: var(--amber); } .ring-low { --c: var(--coral); }
.ring-starter { --c: var(--green); --v: 10 !important; }
@keyframes fill { from { stroke-dasharray: 0 100; } }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num { font-size: 56px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.ring .word { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.ring .den { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 4px; }
.type-name { font-size: clamp(26px, 6.5vw, 36px); margin: 0 0 6px; }
.type-blurb { margin: 0; color: var(--muted); }
.verdict { font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; margin: 22px 2px; }
.first { background: rgba(25,227,107,.07); border: 1px solid rgba(25,227,107,.35); border-radius: var(--r); padding: 16px 18px; margin: 0 0 8px; }
.first-action { margin: 0; font-size: 18px; font-weight: 700; }
.block { margin-top: 34px; }
.issue { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; }
.issue header { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; margin-bottom: 12px; }
.issue h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.issue .sev { grid-column: 2; justify-self: start; }
.rank { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 1px solid var(--line2); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.sev { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.sev-high { color: var(--coral); background: rgba(255,107,94,.1); } .sev-medium { color: var(--amber); background: rgba(245,184,61,.1); } .sev-low { color: var(--muted); background: var(--card); }
.issue dl { margin: 0; display: grid; grid-template-columns: 78px 1fr; gap: 8px 12px; font-size: 15px; }
.issue dt { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
.issue dd { margin: 0; color: #C9D1DD; overflow-wrap: anywhere; }
.fix { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.basis { margin: 10px 0 0; color: var(--dim); font-size: 12px; }
.week { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 18px 0 8px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.checklist b { display: block; font-size: 15px; } .checklist span { color: var(--muted); font-size: 14px; }
.box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line2); margin-top: 2px; position: relative; }
.checklist .done .box { background: var(--green); border-color: var(--green); }
.checklist .done .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--green-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checklist .done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--dim); }
.dims { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.dims li { display: grid; grid-template-columns: 96px 1fr 34px; gap: 12px; align-items: center; font-size: 15px; }
.dim-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.dim-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #7CF5AE); border-radius: 99px; }
.dim-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.card-img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.all { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.all summary { cursor: pointer; font-weight: 700; }
.allchecks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.allchecks li { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 10px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cid { color: var(--dim); font-variant-numeric: tabular-nums; } .cstatus { font-size: 12px; font-weight: 700; color: var(--muted); }
.st-fired .cstatus { color: var(--amber); } .st-passed .cstatus { color: var(--green); }
.cobs { grid-column: 2 / 4; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.meta { margin-top: 30px; color: var(--dim); font-size: 13px; } .meta p { margin: 4px 0; } .meta a { color: var(--muted); }

@media (min-width: 640px) {
  .wrap { padding-top: 24px; }
  .hero { padding-top: 56px; }
  .grade { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .grade .field { grid-column: 1; } .grade .btn { grid-column: 2; grid-row: 1; }
  .grade .tz, .grade .err { grid-column: 1 / -1; }
  .how { grid-template-columns: repeat(3, 1fr); }
  .ring { width: 172px; height: 172px; } .ring .num { font-size: 66px; }
  .scorecard { padding: 26px 30px; gap: 30px; }
}
@media (max-width: 380px) {
  .scorecard { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .share-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.score-note { margin: 10px 2px 0; line-height: 1.45; }
.draft { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.draft .eyebrow { color: var(--muted); letter-spacing: .06em; }
.draft-text { margin: 0 0 12px; white-space: pre-line; color: #E2E7EE; }
.draft-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.issue.st-passed, .issue.st-not_evaluated, .issue.st-report_only { opacity: .78; }
.bullets { color: #C9D1DD; padding-left: 20px; margin: 0 0 18px; } .bullets li { margin: 6px 0; }
.legal h2 { margin-top: 28px; } .legal p, .legal li { color: #C9D1DD; } .legal td, .legal th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.legal table { border-collapse: collapse; width: 100%; }
.pills { display: inline-flex; gap: 6px; } .pill { white-space: nowrap; }

/* keyboard focus: always visible, never on mouse click */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px;
}
.btn[disabled] { opacity: .7; cursor: progress; }

/* full-report call to action on the free result */
.upsell { border: 1px solid var(--line2); border-radius: 16px; padding: 18px 18px 14px; background: var(--card); }
.upsell h2 { margin-top: 4px; }
.upsell-list { margin: 10px 0 16px; padding-left: 18px; display: grid; gap: 6px; }
.upsell .btn { width: 100%; }
