:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-alt: #eef3f7;
  --text: #14222b;
  --text-soft: #3b4a55;
  --muted: #6b7a85;
  --border: #d6dde4;
  --accent: #0f4c5c;
  --accent-2: #c94a2a;
  --accent-3: #1f7a5c;
  --warn: #b35a00;
  --shadow: 0 1px 2px rgba(20,34,43,0.06), 0 6px 18px rgba(20,34,43,0.06);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}
.brand-mark { display: block; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

main { padding: 32px 0 64px; }
section { margin-bottom: 48px; }
.section-head h2 { margin: 0 0 8px; font-size: 26px; }
.section-head p { margin: 0; color: var(--text-soft); max-width: 720px; }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 10px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.lede { font-size: 17px; color: var(--text-soft); margin: 0 0 18px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.meta-note { font-size: 13px; color: var(--muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0a3a47; color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-small { padding: 6px 10px; font-size: 13px; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 16px; margin: 0 0 12px; color: var(--accent); }
.stat-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.stat-list li { font-size: 14px; color: var(--text-soft); }
.stat-list strong { color: var(--accent-2); }
.card-foot { font-size: 12px; color: var(--muted); margin: 0; }

.audit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  margin-top: 20px;
}
.audit-form { display: grid; gap: 18px; }
.field {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-alt);
}
.field legend { font-weight: 700; color: var(--accent); padding: 0 6px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
select, input[type="number"] {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
}
.row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.chip input { margin: 0; }
.chip:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.tier-group { display: grid; gap: 8px; }
.tier {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
}
.tier input { margin: 0; }
.tier:has(input:checked) { border-color: var(--accent); background: #e8f1f4; }
.tier span { color: var(--muted); font-size: 13px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.audit-results { display: grid; gap: 16px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.results-head h3 { margin: 0; font-size: 18px; }
.results-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.summary {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-soft);
}
.summary strong { color: var(--text); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.checklist li.done { background: #e8f5ec; border-color: var(--accent-3); }
.checklist li input { width: 18px; height: 18px; }
.checklist li .name { font-weight: 600; }
.checklist li .qty { color: var(--muted); font-size: 13px; }
.checklist li .tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.checklist li .tag.critical { background: #fde7e1; color: var(--accent-2); }
.checklist li .tag.recommended { background: #e8f1f4; color: var(--accent); }
.checklist li .tag.optional { background: #eef3f7; color: var(--muted); }

.warnings {
  background: #fff4e0;
  border: 1px solid #f0c48a;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #6b3f00;
}
.warnings h4 { margin: 0 0 6px; font-size: 14px; color: var(--warn); }
.warnings ul { margin: 0; padding-left: 18px; }
.warnings li { margin: 4px 0; }

.budget {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-soft);
}
.budget h4 { margin: 0 0 6px; font-size: 14px; color: var(--accent); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.why-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent); }
.why-card p { margin: 0; color: var(--text-soft); font-size: 14px; }

.guide-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-top: 20px;
}
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  counter-increment: step;
  position: relative;
  padding-left: 54px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.steps h3 { margin: 0 0 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 14px; }

.side-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.side-note h3 { margin: 0 0 10px; font-size: 16px; color: var(--accent-2); }
.side-note ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; color: var(--text-soft); }
.side-note li { margin: 6px 0; }
.note-foot { font-size: 13px; color: var(--muted); margin: 0; }

.faq-list { display: grid; gap: 12px; margin-top: 20px; }
.faq-list > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.faq-list dt { font-weight: 700; color: var(--accent); margin-bottom: 6px; font-size: 15px; }
.faq-list dd { margin: 0; color: var(--text-soft); font-size: 14px; }

.related { text-align: center; padding: 16px 0; }
.related-note { font-size: 13px; color: var(--muted); margin: 0; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .audit-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .hero-cta, .results-actions, .form-actions, .related { display: none; }
  body { background: #fff; color: #000; }
  .audit { box-shadow: none; border: none; padding: 0; }
  .checklist li { break-inside: avoid; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
