:root {
  --brand: #0f766e; --brand-600: #0d9488; --brand-50: #f0fdfa; --brand-100: #ccfbf1; --brand-900: #134e4a;
  --sand: #fbf8f3; --sand-200: #ebdcc3; --clay: #c5864c; --clay-700: #9b5435;
  --ink: #1c2626; --muted: #5f6b6b; --line: #e5e1d8; --bg: #f6f4ef; --white: #fff;
  --good: #15803d; --bad: #b42318; --warn: #a15c07;
  --radius: 14px;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 21px; margin: 0 0 8px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.top { display: flex; align-items: center; gap: 16px; padding: 14px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; }
.top nav { display: flex; gap: 18px; margin-left: auto; align-items: center; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a.on { color: var(--ink); }
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 20px 64px; }
main.narrow { max-width: 560px; }
footer.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 10px 18px; cursor: pointer; font: inherit; color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--brand-600); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { background: #115e59; }
.btn.big { padding: 13px 26px; font-size: 17px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

form.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); width: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-100); border-color: var(--brand-600); }
.choice { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.choice label { cursor: pointer; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; font-weight: 400; background: var(--white); }
.choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.choice input { margin: 0 0 6px; }
.choice strong { display: block; font-size: 16px; }
.error { color: var(--bad); font-size: 15px; }
.ok { color: var(--good); }
.flash { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-900); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }

.steps { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.steps li.done { color: var(--brand-900); border-color: var(--brand-100); background: var(--brand-50); }
.steps li.now { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 600; }

.status { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 99px; background: var(--sand); border: 1px solid var(--sand-200); color: var(--clay-700); }
.status.live { background: #ecfdf3; border-color: #abefc6; color: var(--good); }

.progress-card { text-align: center; padding: 40px 24px; }
.bar { height: 10px; border-radius: 99px; background: var(--brand-50); overflow: hidden; margin: 18px auto 10px; max-width: 420px; }
.bar > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .6s; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* onboarding chat */
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 480px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; overflow-wrap: anywhere; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 20px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: var(--sand); border-bottom-left-radius: 5px; }
.msg .meta { font-size: 12px; opacity: .8; margin-top: 4px; }
.typing { align-self: flex-start; color: var(--muted); font-size: 14px; }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; }
.composer textarea { resize: none; }
.composer .row { margin-top: 8px; }
.composer .grow { flex: 1; }
.attach { font-size: 14px; color: var(--brand); cursor: pointer; }
.tray { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tray:empty { display: none; }
.chip { font-size: 13px; background: #fdf3e7; border: 1px solid var(--sand-200); color: var(--clay-700); padding: 3px 4px 3px 10px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { color: var(--muted); font-weight: 600; }
pre.log { white-space: pre-wrap; font-size: 12px; background: #1f2626; color: #d6e5e3; padding: 12px; border-radius: 10px; max-height: 320px; overflow: auto; }
.dns { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.dns td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.check-ok::before { content: "✓ "; color: var(--good); }
.check-no::before { content: "… "; color: var(--warn); }

.hero { padding: 40px 0 24px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }

@media (max-width: 640px) {
  .choice { grid-template-columns: 1fr; }
  .top { padding: 12px 16px; }
  main { padding: 22px 16px 48px; }
  .msg { max-width: 92%; }
  .top nav { gap: 12px; }
}
