:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-ink: #0b5d57;
  --brand-soft: #ccfbf1;
  --pass: #15803d;
  --pass-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --fail: #b91c1c;
  --fail-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--brand-ink); }
img, svg { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #f1f5f9; padding: .1em .35em; border-radius: 4px; }
pre { white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 10px; overflow-x: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: #fff; font-size: 16px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 650; font-size: 1rem; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--brand-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
input[type=text], input[type=email] { font: inherit; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; width: 100%; background: #fff; color: var(--ink); }
input:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 50% -10%, #ccfbf1 0%, rgba(204, 251, 241, 0) 70%); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.02em; margin: 18px 0 14px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.scan-form { display: flex; gap: 10px; max-width: 620px; background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.scan-form input { border: 0; font-size: 1.05rem; }
.scan-form input:focus-visible { outline: none; }
.scan-form:focus-within { outline: 3px solid #5eead4; outline-offset: 2px; }
.form-note { font-size: .875rem; color: var(--soft); margin-top: 12px; }
.form-error { color: var(--fail); font-weight: 600; margin-top: 10px; min-height: 1.4em; }
@media (max-width: 560px) { .scan-form { flex-direction: column; } }

/* Sections */
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.015em; line-height: 1.2; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 65ch; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon { font-size: 1.4rem; }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 18px 20px; position: relative; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline strong { color: var(--ink); }
.callout { background: var(--info-bg); border: 1px solid #bfdbfe; color: #1e3a8a; padding: 16px 18px; border-radius: 12px; font-size: .95rem; }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: 12px; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--soft); }
.price-card ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: .95rem; }
.price-card li { margin: 4px 0; }
.price-card .btn { margin-top: auto; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 999px; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 650; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--soft); font-size: .875rem; border-top: 1px solid var(--line); background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--soft); }

/* Report */
.report-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 36px 0 12px; }
@media (max-width: 640px) { .report-head { grid-template-columns: 1fr; justify-items: start; } }
.ring { width: 150px; height: 150px; position: relative; }
.ring svg { transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .num b { font-size: 2.4rem; line-height: 1; display: block; letter-spacing: -.03em; }
.ring .num span { font-size: .8rem; color: var(--soft); }
.report-head h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.02em; word-break: break-all; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.chip { font-size: .85rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.verdict.ok { background: var(--pass-bg); color: var(--pass); }
.verdict.no { background: var(--warn-bg); color: var(--warn); }
.subscores { display: flex; gap: 12px; flex-wrap: wrap; }
.subscore { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 150px; }
.subscore b { font-size: 1.3rem; }
.subscore span { display: block; font-size: .8rem; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.group-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.group-title h2 { margin: 0; font-size: 1.3rem; }
.group-title p { margin: 0; color: var(--soft); font-size: .9rem; }
.finding { background: #fff; border: 1px solid var(--line); border-left-width: 5px; border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.finding.pass { border-left-color: var(--pass); }
.finding.warn { border-left-color: var(--warn); }
.finding.fail { border-left-color: var(--fail); }
.finding.info { border-left-color: var(--info); }
.finding.skip { border-left-color: #cbd5e1; }
.finding-top { display: flex; gap: 12px; align-items: flex-start; }
.badge { flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; margin-top: 2px; }
.badge.pass { background: var(--pass-bg); color: var(--pass); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.fail { background: var(--fail-bg); color: var(--fail); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.skip { background: #f1f5f9; color: var(--soft); }
.finding h3 { margin: 0 0 4px; font-size: 1rem; }
.finding p { margin: 0; color: var(--muted); font-size: .95rem; }
.finding .detail { margin-top: 6px; font-size: .875rem; color: var(--soft); }
.finding details { border: 0; background: var(--bg); padding: 10px 14px; margin: 12px 0 0; }
.finding details summary { color: var(--brand-ink); font-size: .92rem; }
.fix { white-space: pre-wrap; color: var(--ink); font-size: .92rem; margin-top: 8px; }

.loading { text-align: center; padding: 90px 20px; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; padding: 0; color: var(--soft); font-size: .95rem; }
.steps li.done { color: var(--pass); }
.steps li.done::before { content: "✓ "; }

.cta-box { background: linear-gradient(135deg, #0f766e, #115e59); color: #fff; border-radius: 18px; padding: 28px; margin: 40px 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.cta-box h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; }
.cta-box p, .cta-box li { color: #ccfbf1; }
.cta-box ul { margin: 8px 0 0; padding-left: 18px; }
.cta-box form { display: grid; gap: 10px; }
.cta-box .btn { background: #fff; color: var(--brand-ink); }
.cta-box .btn:hover { background: #f0fdfa; }
.cta-box .ok-msg { color: #fff; font-weight: 600; }
@media (max-width: 720px) { .cta-box { grid-template-columns: 1fr; } }
.embed { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.embed textarea { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 70px; resize: vertical; }
.muted { color: var(--soft); }
.hidden { display: none !important; }

/* Checkup */
.progress { height: 12px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.checkup-score { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; position: sticky; top: 76px; z-index: 5; box-shadow: var(--shadow); }
.checkup-score b { font-size: 1.8rem; letter-spacing: -.02em; }
.checkup-score .grow { flex: 1; }
.check-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
.check-item input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--brand); cursor: pointer; }
.check-item label { font-weight: 650; cursor: pointer; }
.check-item p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }
.check-item details { border: 0; background: var(--bg); padding: 8px 12px; margin: 10px 0 0; }
.check-item details summary { font-size: .9rem; color: var(--brand-ink); }
.check-item details ol, .check-item details ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink); font-size: .92rem; }
.check-item.done { background: #f0fdf4; border-color: #bbf7d0; }
.prio { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.prio.high { background: var(--fail-bg); color: var(--fail); }
.prio.med { background: var(--warn-bg); color: var(--warn); }

@media print {
  .site-header, .site-footer, .actions, .cta-box, .no-print { display: none !important; }
  body { background: #fff; }
  .finding details { display: block; }
  .finding details > *:not(summary) { display: block; }
  .finding { break-inside: avoid; }
}
