:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #5b6470;
  --line: #e6ddd2;
  --accent: #c34d3f;
  --accent-ink: #ffffff;
  --green: #2f7a5e;
  --yellow: #b9791f;
  --red: #b33a2e;
  --shadow: 0 1px 2px rgba(31,41,51,0.06), 0 8px 24px rgba(31,41,51,0.06);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fde7ee;
}
.brand-text { font-size: 1.05rem; }

.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 48px 0 24px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
  max-width: 56ch;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hero-note { color: var(--muted); font-size: 0.85rem; margin: 0; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
}
.card-row + .card-row { border-top: 1px dashed var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); }
.dot-yellow { background: var(--yellow); }
.dot-green { background: var(--green); }

.checker {
  padding: 24px 0 48px;
}
.checker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel h2 { margin-top: 0; font-size: 1.3rem; }
.panel-note { color: var(--muted); margin-top: -4px; font-size: 0.9rem; }

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
select, input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}
select:focus, input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
  flex-wrap: wrap;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.seg-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.chip input { accent-color: var(--accent); }
.chip:hover { border-color: var(--accent); }

.presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.presets-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.preset {
  border: 1px dashed var(--line);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.preset:hover { border-color: var(--accent); color: var(--accent); }

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.status { font-size: 0.85rem; color: var(--green); min-height: 1em; margin: 8px 0 0; }

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.summary-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.summary-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.summary-label { font-size: 0.8rem; color: var(--muted); }

.empty {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 16px;
}
.empty-text { color: var(--muted); }

.flag-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.flag {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
}
.flag-red { border-left-color: var(--red); }
.flag-yellow { border-left-color: var(--yellow); }
.flag-green { border-left-color: var(--green); }
.flag h4 { margin: 0 0 4px; font-size: 1rem; }
.flag p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.materials h3, .design-tips h3 { font-size: 1rem; margin: 16px 0 6px; }
.materials ul, .design-tips ul { margin: 0; padding-left: 18px; }
.materials li, .design-tips li { margin-bottom: 4px; font-size: 0.93rem; }
.muted { color: var(--muted); list-style: none; padding-left: 0; }

.scenarios, .mistakes, .saved, .content {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.section-lede { color: var(--muted); margin-top: -12px; max-width: 70ch; }

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.scenario {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.scenario h3 { margin-top: 0; font-size: 1.05rem; }
.scenario p { font-size: 0.93rem; color: var(--ink); }

.mistake-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
.mistake-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.93rem;
}

.saved-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.saved-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.saved-card h4 { margin: 0; font-size: 1rem; }
.saved-meta { color: var(--muted); font-size: 0.85rem; }
.saved-card .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.saved-card .row button {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
}
.saved-card .row button:hover { border-color: var(--accent); color: var(--accent); }

.content h2 { font-size: 1.4rem; }
.content h3 { font-size: 1.1rem; margin-top: 24px; }
.content p { max-width: 72ch; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
  flex-wrap: wrap;
}
.footer-row p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 60ch; }
.footer-row nav { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-row nav a { color: var(--muted); font-size: 0.9rem; }
.footer-row nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .checker-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .mistake-list { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

@media print {
  .site-header, .site-footer, .actions, .presets, .hero-actions, .hero-note { display: none; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .flag { 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;
}
