:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e5dfd4;
  --brand: #0f4c3a;
  --brand-2: #1a6b52;
  --accent: #c4a35a;
  --danger: #a33;
  --ok: #0f4c3a;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26, 26, 26, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--brand); }
.wrap { width: min(960px, calc(100% - 2rem)); margin: 0 auto; }
.wrap-sm { width: min(560px, calc(100% - 2rem)); margin: 0 auto; }
.wrap-lg { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1rem;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav a {
  margin-left: 1rem; text-decoration: none; color: var(--muted); font-size: 0.95rem;
}
.nav a:hover { color: var(--brand); }

.hero {
  padding: 2.5rem 0 1.5rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 1.5rem; max-width: 40rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.card + .card { margin-top: 1rem; }

.steps {
  display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.step-pill {
  font-size: 0.8rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: #ebe6dc; color: var(--muted);
}
.step-pill.active { background: var(--brand); color: #fff; }
.step-pill.done { background: #d7ebe3; color: var(--brand); }

label { display: block; font-size: 0.9rem; font-weight: 600; margin: 0.85rem 0 0.35rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(15, 76, 58, 0.25); border-color: var(--brand);
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }
.err { color: var(--danger); font-size: 0.9rem; margin-top: 0.75rem; }
.okmsg { color: var(--ok); font-size: 0.95rem; margin-top: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; border-radius: 8px; padding: 0.75rem 1.2rem; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #e8c9c9; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.choice {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.35rem;
}
.choice label.chip {
  margin: 0; font-weight: 500; padding: 0.55rem 0.9rem; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: #fff;
}
.choice input { display: none; }
.choice input:checked + span,
.choice label.chip:has(input:checked) {
  border-color: var(--brand); background: #e8f3ee; color: var(--brand); font-weight: 600;
}
.choice label.chip span { pointer-events: none; }

.price-big {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--brand);
  margin: 0.5rem 0;
}
.muted { color: var(--muted); }
.footer {
  margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.85rem; text-align: center;
}

/* Dashboard */
.dash-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.5rem 0 3rem;
}
@media (max-width: 800px) {
  .dash-layout { grid-template-columns: 1fr; }
}
.side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; height: fit-content;
}
.side button, .side a.side-link {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 0.65rem 0.75rem; border-radius: 8px; font: inherit; color: var(--ink);
  cursor: pointer; text-decoration: none; margin-bottom: 0.25rem;
}
.side button.active, .side a.side-link.active, .side button:hover, .side a.side-link:hover {
  background: #e8f3ee; color: var(--brand);
}
.panel { display: none; }
.panel.active { display: block; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem;
  background: #ebe6dc; color: var(--muted);
}
.badge.ok { background: #d7ebe3; color: var(--brand); }
.badge.no { background: #f3d9d9; color: var(--danger); }
.zip-list { list-style: none; padding: 0; margin: 0; }
.zip-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line);
}
.strike { text-decoration: line-through; color: var(--muted); margin-right: 0.35rem; }
.price-tag { font-weight: 700; color: var(--brand); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.marketing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2rem 0;
}
.marketing-grid .card h3 { margin-top: 0; font-family: var(--serif); }


/* Permanent subdomain warning */
.callout-warn {
  background: #fff4e5;
  border: 1px solid #e6a23c;
  border-left: 4px solid #d48806;
  color: #5c3b00;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.callout-warn strong { color: #8a4b00; }
.slug-confirm {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #faf7f2;
  border: 1px dashed #c9a06a;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.slug-confirm input { margin-top: 0.2rem; flex-shrink: 0; }
