:root {
  --ink: #191c18; --muted: #555b52; --green: #477713; --lime: #b2ed58;
  --cream: #f7f8f4; --sand: #eff1e9; --line: #d6dbce; --red: #c53030;
  --r: 18px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif; }
a { color: var(--green); }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 1120px; margin: 0 auto; padding: 20px 24px; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo span { font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; }
.langs { display: flex; gap: 4px; background: var(--sand); padding: 4px; border-radius: 999px; }
.langs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; color: var(--muted); }
.langs button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px #0001; }

.hero { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: start; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; color: var(--green); background: #e6f5cf; padding: 4px 12px; border-radius: 999px; margin: 0 0 18px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; }
.sub { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 520px; }
.list li { font-size: 14px; color: var(--muted); padding-left: 24px; position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 4px #e6f5cf; }
.trust { margin-top: 32px; font-size: 13px; color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: 0 12px 40px -20px #191c1833; }
form label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--cream); }
input:focus, .opt:focus-within { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; font-size: 14px; font-weight: 400; }
.opt:has(input:checked) { border-color: var(--green); background: #f3fae8; }
.opt input { accent-color: var(--green); margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--muted); margin: 4px 0 16px; cursor: pointer; }
.consent input { accent-color: var(--green); margin-top: 3px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; border: 0; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--line); margin-top: 10px; }
.err { color: var(--red); font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.cf-turnstile { margin-bottom: 12px; min-height: 65px; }

.loading { text-align: center; padding: 40px 8px; }
.spinner { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid var(--sand); border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.score-row { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.ring { --p: 0; --c: var(--green); flex: none; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--c) calc(var(--p) * 1%), var(--sand) 0); }
.ring b { font-size: 34px; letter-spacing: -.03em; }
.score-row h1, .score-row h2 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.muted { color: var(--muted); margin: 0; }
.issues { list-style: none; padding: 0; margin: 0 0 18px; }
.issues li { padding: 10px 12px; background: #fdf3f2; border-radius: 10px; margin-bottom: 6px; font-size: 14px; }
.issues li::before { content: "✕ "; color: var(--red); font-weight: 700; }
.sent { background: var(--sand); border-radius: 12px; padding: 14px; font-size: 14px; margin-bottom: 14px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 16px 24px 80px; }
.wrap .card { margin-bottom: 18px; }
.report h1 { font-size: 26px; }
.insight { border-left: 3px solid var(--lime); background: #f9fcf3; padding: 14px 16px; border-radius: 0 12px 12px 0; margin-bottom: 22px; }
.checks { list-style: none; padding: 0; margin: 0; }
.check { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--sand); }
.check .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; background: var(--green); }
.check.bad .dot { background: var(--red); }
.check p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.check code { display: block; font-size: 12px; color: var(--muted); background: var(--cream); padding: 2px 6px; border-radius: 6px; margin-top: 4px; word-break: break-all; }
.cta { background: var(--ink); color: #fff; border: 0; }
.cta h2 { margin: 0 0 8px; }
.cta p { color: #c2cbbb; }
.cta .btn { background: var(--lime); color: var(--ink); width: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
  .list, .trust { display: none; } /* keep the form above the fold; the subheading already says 15 checks */
}
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
@media print { .top, .cta { display: none; } body { background: #fff; } .card { box-shadow: none; } }
