:root {
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --border: #e2e8f0;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --success: #16a34a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-main);
  padding-bottom: 3rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.25rem;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.intro {
  margin-bottom: 2rem;
}

.intro h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
}

.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .app-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.checklist-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.phase {
  margin-bottom: 2rem;
}

.phase h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
}

.check-item:hover {
  background: var(--bg-color);
}

.check-item input[type="checkbox"] {
  margin-top: 0.3rem;
  margin-right: 1rem;
  width: 1.2rem;
  height: 1.2rem;
}

.check-item input[type="checkbox"]:checked + .check-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.warning-box {
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-sm {
  background: var(--bg-color);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.tools-pane > section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tools-pane h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.tools-pane p, .tools-pane ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tools-pane ul {
  padding-left: 1.5rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.input-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.result-box {
  background: #e0f2fe;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  color: #0369a1;
}

.educational-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.educational-content h2,
.educational-content h3 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.educational-content h2:first-child {
  margin-top: 0;
}

.educational-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 4rem;
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-links {
  margin: 1rem 0;
}

.legal-links a {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
}

@media print {
  .site-header, .tools-pane, .educational-content, .actions, .site-footer {
    display: none;
  }
  .app-layout {
    display: block;
  }
  .checklist-pane {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}


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