:root {
  --bg: #fbf7f1;
  --bg-alt: #f3ece0;
  --surface: #ffffff;
  --text: #2b2418;
  --text-muted: #6b5e4a;
  --accent: #c2572b;
  --accent-dark: #9a3f1a;
  --accent-light: #f4d9c6;
  --border: #e4d8c4;
  --success: #3f7d4e;
  --shadow: 0 1px 2px rgba(43, 36, 24, 0.06), 0 8px 24px rgba(43, 36, 24, 0.06);
  --radius: 12px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.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-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.brand-mark { color: var(--accent); }
.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); }

main { padding: 48px 0 80px; }
section { margin-bottom: 72px; }

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.eyebrow {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 24px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  max-width: 520px;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 28px; color: var(--accent); }
.hero-stats span { font-size: 13px; color: var(--text-muted); }

.builder {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
}
.builder-form, .builder-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.builder-form h2, .builder-result h2 { margin-top: 0; }
.form-intro { color: var(--text-muted); margin-top: 0; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}
.presets-label { font-size: 13px; color: var(--text-muted); margin-right: 4px; }
.preset {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.preset:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; color: var(--border); }
.empty-state h3 { margin: 0 0 8px; color: var(--text); }

.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-foot { margin-top: 20px; color: var(--text-muted); }

.phase {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 16px;
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}
.phase h3 { margin: 0 0 6px; font-size: 17px; }
.phase p { margin: 0 0 8px; color: var(--text-muted); }
.phase ul { margin: 0 0 8px; padding-left: 20px; }
.phase ul li { margin-bottom: 4px; }
.phase .resources { font-size: 13px; color: var(--text-muted); }
.phase .resources a { color: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 12px 0 0; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: none; }
.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checklist li.done label { text-decoration: line-through; color: var(--text-muted); }

.progress-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h3 { font-size: 18px; margin: 0 0 8px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-note {
  margin-top: 20px;
  color: var(--text-muted);
  max-width: 720px;
}

.examples-intro { color: var(--text-muted); margin-top: 0; }
.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .example-grid { grid-template-columns: 1fr; }
}
.example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.example-card h3 { color: var(--accent-dark); }
.example-card ul { padding-left: 20px; margin: 0 0 10px; }
.example-card ul li { margin-bottom: 4px; }
.example-src { font-size: 13px; color: var(--text-muted); margin: 0; }

.mistakes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .mistakes-grid { grid-template-columns: 1fr; }
}
.mistake {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.mistake h3 { margin-top: 0; }
.mistake p { margin: 0; color: var(--text-muted); }
.mistakes-note {
  margin-top: 20px;
  color: var(--text-muted);
  max-width: 720px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--text-muted); }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}
.site-footer strong { color: var(--text); display: block; margin-bottom: 4px; }
.site-footer p { margin: 0; }
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-footer nav a { color: var(--text-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer small { grid-column: 1 / -1; margin-top: 16px; display: block; }

@media print {
  .site-header, .site-footer, .builder-form, .result-actions, .hero-stats, .presets { display: none !important; }
  body { background: #fff; color: #000; }
  .builder-result { box-shadow: none; border: none; padding: 0; }
  .checklist li { border-bottom: 1px solid #ddd; }
}



/* 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;
}
