:root {
  --bg: #080808;
  --ink: #ece8e1;
  --muted: #8b8680;
  --dim: #3a3733;
  --line: rgba(255,255,255,.1);
  --red: #c8ff00;
  --good: #c8ff00;
  --ok: #ffb039;
  --bad: #ff5a3c;
  --display: "Anton", Impact, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 3.6vw, 56px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(200,255,0,.08), transparent 60%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- header: css/nav.css; the account controls sit in its right side ---------- */
.red-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); flex: none; }
.me { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.me-hi { color: var(--ink); }
.me-out, .me-in, .me-mine { background: none; border: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.me-mine { border: 1px solid rgba(200,255,0,.5); color: #ecffb0; border-radius: 30px; padding: 5px 10px; }
.me-out:hover, .me-in:hover, .me-mine:hover { color: var(--ink); }

/* ---------- shared bits ---------- */
.kicker { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.kicker b { color: var(--ink); font-weight: 500; letter-spacing: .1em; text-transform: none; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field > span i { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--dim); margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; background: #0f0f0f; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 12px 14px; font: 15px/1.5 var(--sans); resize: vertical; transition: border-color .3s, box-shadow .3s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(200,255,0,.6); box-shadow: 0 0 0 3px rgba(200,255,0,.15); }
.field .bad, .bad { border-color: var(--red) !important; }
.auth-go { margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--red); border: 0; border-radius: 60px; padding: 16px 22px; width: 100%;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #0a0a0a; box-shadow: 0 10px 40px rgba(200,255,0,.35); transition: transform .25s, box-shadow .25s; }
.auth-go:hover { transform: translateY(-2px); box-shadow: 0 16px 50px rgba(200,255,0,.5); }
.auth-go svg { width: 18px; fill: none; stroke: #0a0a0a; stroke-width: 1.8; }
.auth-go:disabled { opacity: .6; transform: none; cursor: progress; }
.ghost { background: none; border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #c9c4bd; transition: all .25s; }
.ghost:hover { border-color: rgba(255,255,255,.35); color: var(--ink); }
em { font-style: normal; color: var(--red); }

/* ---------- auth ---------- */
.auth { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(200,255,0,.22), rgba(0,0,0,.92) 70%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.auth-card { position: relative; width: min(560px, 100%); background: linear-gradient(#121110, #0b0b0b); border: 1px solid rgba(200,255,0,.35); border-radius: 20px;
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 80px rgba(200,255,0,.18); }
.auth-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 16px; padding: 6px; }
.auth-x:hover { color: var(--ink); }
.auth-title { font: 400 clamp(38px, 5vw, 56px)/.95 var(--display); text-transform: uppercase; }
.auth-title em { text-shadow: 0 0 30px rgba(200,255,0,.5); }
.auth-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 14px 0 22px; }
.auth-form { display: grid; gap: 14px; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-err, .cta-err, .run-err { color: #e3ff8a; font-size: 13px; min-height: 1em; }
.auth-err:empty, .cta-err:empty, .run-err:empty { display: none; }
.auth-switch, .auth-fine { text-align: center; font-size: 13px; color: var(--muted); }
.auth-switch button { background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.auth-fine { font-size: 11px; color: var(--dim); margin-top: -4px; }
.auth-fine a { color: var(--muted); text-decoration: underline; }
.auth.login .for-signup, .auth:not(.login) .for-login { display: none; }
.auth.login .auth-title { margin-bottom: 24px; }

/* ---------- hero ---------- */
.audit { padding: 0 var(--gutter) 80px; }
.hero { padding: 64px 0 40px; max-width: 1100px; }
.title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 8vw, 128px); line-height: .92; }
.title span { display: block; }
.title span:last-child { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.sub { color: var(--muted); max-width: 620px; margin-top: 22px; line-height: 1.65; font-size: 15.5px; }
.run { display: flex; gap: 10px; margin-top: 32px; max-width: 680px; background: #0f0f0f; border: 1px solid var(--line); border-radius: 70px; padding: 6px 6px 6px 22px; transition: border-color .3s, box-shadow .3s; }
.run:focus-within { border-color: rgba(200,255,0,.6); box-shadow: 0 0 0 4px rgba(200,255,0,.12); }
.run input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 17px/1.4 var(--sans); outline: none; }
.run input::placeholder { color: var(--dim); }
.run button { display: flex; align-items: center; gap: 10px; background: var(--red); border: 0; border-radius: 60px; padding: 14px 22px; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #0a0a0a; white-space: nowrap; transition: transform .25s, box-shadow .25s; }
.run button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(200,255,0,.4); }
.run button svg { width: 16px; fill: none; stroke: #0a0a0a; stroke-width: 2; }
.run button:disabled { opacity: .6; cursor: progress; transform: none; }
.run input.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.run-err { margin-top: 12px; }
.what { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 56px; }
.what li { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; background: rgba(255,255,255,.02); }
.what b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 20px; letter-spacing: .04em; }
.what span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.audit[data-state="running"] .hero, .audit[data-state="report"] .hero { display: none; }

/* ---------- running ---------- */
.running { max-width: 720px; padding: 72px 0 40px; }
.run-title { font: 400 clamp(44px, 7vw, 96px)/.95 var(--display); text-transform: uppercase; margin-bottom: 36px; }
.stages { list-style: none; display: grid; gap: 14px; }
.stages li { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: center; color: var(--dim); font-size: 15px; transition: color .4s; }
.stages li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--dim); position: relative; transition: all .4s; }
.stages li.on { color: var(--ink); }
.stages li.on i { border-color: var(--red); box-shadow: 0 0 14px rgba(200,255,0,.5); animation: pulse 1.2s infinite; }
.stages li.done { color: var(--muted); }
.stages li.done i { border-color: var(--red); background: var(--red); }
.stages li.done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #0a0a0a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.stages li.fail i { border-color: var(--bad); background: var(--bad); }
.stages small { font-size: 12px; color: var(--muted); }
@keyframes pulse { 50% { transform: scale(1.18); } }
.run-note { margin-top: 28px; color: var(--muted); font-size: 13px; }
.run-fail { margin-top: 20px; padding: 16px 18px; border: 1px solid rgba(255,90,60,.5); border-radius: 12px; color: #ffb3a4; font-size: 14px; line-height: 1.5; }
.run-fail button { margin-left: 10px; }

/* ---------- report ---------- */
.report { padding-top: 40px; max-width: 1240px; display: grid; gap: 56px; }
.r-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.r-site { font: 400 clamp(36px, 5.5vw, 80px)/.95 var(--display); text-transform: uppercase; word-break: break-word; }
.r-meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.r-verdict { margin-top: 18px; font-size: 17px; line-height: 1.55; max-width: 620px; }
.r-verdict b { color: var(--red); font-weight: 500; }
.r-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.r-overall { display: grid; justify-items: center; gap: 10px; }
.r-grade { display: grid; justify-items: center; }
.r-grade span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.r-grade b { font: 400 64px/1 var(--display); color: var(--g, var(--ink)); }
.dial { --c: var(--bad); display: grid; justify-items: center; gap: 10px; }
.dial[data-grade="ok"] { --c: var(--ok); }
.dial[data-grade="good"] { --c: var(--good); }
.dial .ring { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; }
.dial .ring i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p, 0) * 360deg), rgba(255,255,255,.08) 0);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); filter: drop-shadow(0 0 10px var(--c)); }
.dial .num { font: 400 34px/1 var(--display); color: var(--c); }
.dial.big .ring { width: 190px; height: 190px; }
.dial.big .num { font-size: 72px; }
.dial .label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; }
.dial .sub { font-size: 12px; color: var(--muted); margin: 0; text-align: center; }
.dial .na { color: var(--dim); font-size: 22px; }
.r-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.r-cats .dial { border: 1px solid var(--line); border-radius: 16px; padding: 20px 10px 18px; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .25s; }
.r-cats .dial:hover { border-color: rgba(255,255,255,.3); }

.r-shots { display: grid; grid-template-columns: minmax(150px, 220px) 1fr minmax(240px, 320px); gap: 28px; align-items: start; }
.r-shots figure { display: grid; gap: 12px; }
.r-shots figcaption { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; }
.phone .screen { border-radius: 30px; padding: 9px; background: #0a0a0a; box-shadow: 0 0 0 1.5px rgba(255,255,255,.2), 0 30px 70px rgba(0,0,0,.8); }
.phone img, .browser img { display: block; width: 100%; height: auto; }
.phone img { border-radius: 22px; }
.browser .screen { border-radius: 0 0 12px 12px; overflow: hidden; background: #fff; }
.browser .chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #151413; border-radius: 12px 12px 0 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #3d3a36; }
.browser .chrome i:first-child { background: var(--red); }
.browser .chrome .url { margin: 0 auto; font-size: 11px; color: #8d877f; background: rgba(255,255,255,.05); padding: 4px 18px; border-radius: 20px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-shots .none { aspect-ratio: 9/16; display: grid; place-items: center; color: var(--dim); font-size: 12px; text-align: center; padding: 20px; }
.browser .none { aspect-ratio: 16/10; }
.metrics { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: rgba(255,255,255,.02); }
.m-k { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.m-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.m-table th { text-align: right; font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.m-table th:first-child, .m-table td:first-child { text-align: left; color: var(--muted); }
.m-table td { padding: 7px 0; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.m-table td.good { color: var(--good); } .m-table td.ok { color: var(--ok); } .m-table td.bad { color: var(--bad); }
.m-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }

.r-fixes h3, .r-all h3, .mine h3, .cta-card h3 { font: 400 clamp(32px, 4.5vw, 56px)/.95 var(--display); text-transform: uppercase; margin-bottom: 24px; }
.fixes { list-style: none; counter-reset: fix; display: grid; gap: 10px; }
.fixes li { counter-increment: fix; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.fixes li::before { content: counter(fix, decimal-leading-zero); font: 400 30px/1 var(--display); color: var(--dim); }
.fixes b { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 500; font-size: 16px; }
.fixes p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 6px; }
.fixes p.fix { color: #d8d3cb; }
.fixes p.fix::before { content: "Fix: "; color: var(--red); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; margin-right: 6px; }
.lvl { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; border: 1px solid; }
.lvl.fail { color: var(--bad); border-color: rgba(255,90,60,.6); }
.lvl.warn { color: var(--ok); border-color: rgba(255,176,57,.6); }
.lvl.pass { color: var(--good); border-color: rgba(200,255,0,.6); }
.lvl.info { color: var(--muted); border-color: var(--line); }
.fixes .empty { color: var(--muted); }

.r-cta .cta-card { max-width: 720px; background: linear-gradient(#121110, #0b0b0b); border: 1px solid rgba(200,255,0,.35); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 0 80px rgba(200,255,0,.12); }
.cta-card > p { color: var(--muted); line-height: 1.6; margin-bottom: 22px; }
.cta-form { display: grid; gap: 14px; }
.cta-done { text-align: center; padding: 20px 0; }
.cta-done .mark { color: var(--red); font-size: 28px; margin-bottom: 10px; }
.cta-done h4 { font: 400 40px/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.cta-done p { color: var(--muted); }

.cats-detail { display: grid; gap: 10px; }
.cats-detail details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.cats-detail summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; }
.cats-detail summary::-webkit-details-marker { display: none; }
.cats-detail summary b { font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.cats-detail summary .cnt { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.cats-detail summary .sc { font: 400 26px/1 var(--display); color: var(--c, var(--ink)); min-width: 40px; text-align: right; }
.cats-detail ul { list-style: none; border-top: 1px solid var(--line); padding: 8px 20px 16px; display: grid; }
.cats-detail li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.cats-detail li:last-child { border-bottom: 0; }
.cats-detail li .lvl { align-self: start; justify-self: start; margin-top: 2px; }
.cats-detail li b { font-weight: 500; display: block; }
.cats-detail li p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 3px; }
.cats-detail li p.fix { color: #d8d3cb; }
.cats-detail li p.fix::before { content: "Fix: "; color: var(--red); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; margin-right: 6px; }

/* ---------- my audits ---------- */
.mine { padding-top: 64px; max-width: 900px; }
.mine-list { list-style: none; display: grid; gap: 8px; }
.mine-list li button { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; text-align: left; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: border-color .25s; }
.mine-list li button:hover { border-color: rgba(255,255,255,.3); }
.mine-list .g { font: 400 30px/1 var(--display); color: var(--c, var(--muted)); }
.mine-list .u { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-list .u small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mine-list .s { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mine .empty { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .r-shots { grid-template-columns: 1fr 1fr; }
  .r-shots .metrics { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .auth-grid { grid-template-columns: 1fr; }
  .run { flex-direction: column; border-radius: 20px; padding: 14px; }
  .run button { justify-content: center; }
  .r-head { grid-template-columns: 1fr; }
  .r-overall { justify-items: start; }
  .r-shots { grid-template-columns: 1fr; }
  .phone { max-width: 220px; }
  .stages li { grid-template-columns: 22px 1fr; }
  .stages small { grid-column: 2; }
  .mine-list li button { grid-template-columns: 44px 1fr; }
  .mine-list .s { grid-column: 2; }
}

/* ---------- print: the report as a PDF ---------- */
@media print {
  body { background: #fff; color: #111; background-image: none; }
  .sh, .menu, .auth, .r-actions, .r-cta, .mine, .hero, .running { display: none !important; }
  .audit { padding: 0; }
  .report { gap: 28px; }
  .report, .r-head, .r-cats, .r-fixes, .r-all { break-inside: auto; }
  .fixes li, .cats-detail details, .r-cats .dial { break-inside: avoid; border-color: #ddd; background: none; }
  .cats-detail details { open: true; }
  .cats-detail summary { padding: 12px 16px; }
  .r-verdict b { color: #111; }
  em { color: #111; }
  .dial .ring i { filter: none; }
  .kicker, .m-k { color: #666; }
  .r-meta, .fixes p, .cats-detail li p, .m-table th, .m-table td:first-child, .dial .label, .dial .sub { color: #555; }
  .r-shots { grid-template-columns: 160px 1fr 260px; }
  .r-shots .none { display: none; }
}
