:root {
    --primary: #0f7a3a;
    --primary-dark: #0b5c2c;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f8fafc;
    --surface: #fff;
    --danger: #b91c1c;
    --ok: #15803d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.top { background: var(--primary); color: #fff; }
.top .wrap { min-height: 56px; display: flex; align-items: center; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 8px; }
main.wrap { padding-top: 24px; padding-bottom: 32px; }
.hero h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.form { display: grid; gap: 6px; }
.form h2 { font-size: 1rem; margin: 18px 0 4px; color: var(--primary-dark); }
.form h2:first-of-type { margin-top: 0; }
label { font-weight: 600; font-size: .95rem; margin-top: 8px; }
input { width: 100%; font: inherit; font-size: 16px; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: inherit; }
input:focus { outline: 3px solid rgba(15, 122, 58, .25); border-color: var(--primary); }
input[aria-invalid=true] { border-color: var(--danger); }
.domain-input { display: flex; align-items: stretch; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.domain-input:focus-within { outline: 3px solid rgba(15, 122, 58, .25); border-color: var(--primary); }
.domain-input input { border: 0; border-radius: 0; min-width: 0; flex: 1; outline: none; }
.domain-input span { display: flex; align-items: center; padding: 0 12px; background: #f1f5f9; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.hint { font-size: .85rem; color: var(--muted); }
.hint.good { color: var(--ok); font-weight: 600; }
.hint.bad, .err { color: var(--danger); font-size: .85rem; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 18px; padding: 12px 20px; border: 0; border-radius: 10px;
    background: var(--primary); color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.small { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.alert { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot { color: var(--muted); font-size: .85rem; padding-bottom: 32px; text-align: center; }
.foot p { margin: 4px 0; }
.foot a { color: inherit; font-weight: 600; text-decoration: none; }
.foot a:hover, .foot a:focus-visible { color: var(--primary); text-decoration: underline; }

/* Status */
.status { text-align: center; }
.status h1 { font-size: 1.4rem; margin: 8px 0; }
.status .big { font-size: 1.1rem; font-weight: 700; word-break: break-all; }
.status dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; text-align: left; background: var(--bg); border-radius: 8px; padding: 12px 16px; margin: 16px 0 0; }
.status dt { color: var(--muted); }
.status dd { margin: 0; font-weight: 600; }
.icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #fff; }
.icon.ok { background: var(--ok); }
.icon.bad { background: var(--danger); }
.spinner { width: 56px; height: 56px; margin: 8px auto; border-radius: 50%; border: 5px solid #d1f0dc; border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { text-align: left; display: grid; gap: 8px; padding: 0; list-style: none; margin: 20px 0 0; }
.steps li { padding: 10px 12px 10px 40px; border-radius: 8px; background: var(--bg); color: var(--muted); position: relative; }
.steps li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid #cbd5e1; }
.steps li.done { color: var(--ok); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps li.now { color: var(--text); font-weight: 600; background: #eefaf2; }
.steps li.now::before { border-color: var(--primary); border-top-color: transparent; animation: spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spinner, .steps li.now::before { animation: none; } }
@media (min-width: 600px) { .hero h1 { font-size: 2rem; } .card { padding: 28px; } }

.opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
