/* Reset and base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;
  --white: #FFFFFF;
  --red-600: #DC2626;
  --red-50: #FEF2F2;
  --amber-600: #D97706;
  --amber-50: #FFFBEB;
  --green-600: #059669;
  --green-50: #ECFDF5;
  --purple-600: #7C3AED;
  --purple-50: #F5F3FF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --max-width: 1120px;
}
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-900);
}
.main-nav {
  display: flex;
  gap: 8px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--gray-100);
  color: var(--gray-900);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: var(--white);
  padding: 80px 0 72px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 640px;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}
.btn-primary:hover { background: var(--blue-50); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }
.btn-danger {
  background: var(--red-50);
  color: var(--red-600);
  border-color: var(--gray-300);
}
.btn-danger:hover { background: var(--red-600); color: var(--white); border-color: var(--red-600); }

/* Section styles */
section { padding: 64px 0; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-intro {
  color: var(--gray-600);
  max-width: 680px;
  margin-bottom: 36px;
  font-size: 1.02rem;
}

/* Zone explorer */
.zone-explorer { background: var(--white); }
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.zone-card {
  text-align: left;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zone-card:hover {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
}
.zone-card.active {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
}
.zone-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-900);
}
.zone-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  flex: 1;
}
.zone-icon { margin-bottom: 4px; }
.zone-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  align-self: flex-start;
}
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-amber { background: var(--amber-50); color: var(--amber-600); }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-purple { background: var(--purple-50); color: var(--purple-600); }

.zone-detail {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.zone-detail h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gray-900);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.detail-grid h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.detail-grid p,
.detail-grid li {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.detail-grid ul { list-style: none; }
.detail-grid li { position: relative; padding-left: 16px; margin-bottom: 4px; }
.detail-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* Comparison table */
.comparison-section { background: var(--gray-50); }
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 600px;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.92rem;
  vertical-align: top;
}
.comparison-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover { background: var(--blue-50); }

/* Notes section */
.notes-section { background: var(--white); }
.notes-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.notes-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.save-status {
  font-size: 0.88rem;
  color: var(--green-600);
  font-weight: 500;
  min-height: 1.4em;
}
.notes-sidebar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.notes-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.notes-sidebar ol {
  padding-left: 18px;
  margin-bottom: 20px;
}
.notes-sidebar li {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 6px;
  line-height: 1.5;
}
.sidebar-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.sidebar-box h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 6px;
}
.sidebar-box p {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Checklist section */
.checklist-section { background: var(--gray-50); }
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.checklist-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.checklist-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
}
.print-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.print-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Info section */
.info-section { background: var(--white); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.info-card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* FAQ */
.faq-section { background: var(--gray-50); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
}
.faq-item dt {
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.faq-item dd {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 32px;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid strong {
  color: var(--white);
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-grid a { color: var(--gray-400); }
.footer-grid a:hover { color: var(--white); }
.footer-note {
  border-top: 1px solid var(--gray-800);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .main-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 4px; }
  .main-nav a { padding: 6px 10px; font-size: 0.85rem; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 1.6rem; }
  section { padding: 44px 0; }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-sidebar { order: -1; }
  .zone-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .checklist-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .zone-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* Print */
@media print {
  .site-header, .hero, .print-actions, .notes-sidebar, .site-footer, .main-nav { display: none; }
  body { background: white; color: black; }
  section { padding: 16px 0; page-break-inside: avoid; }
  .checklist-card, .info-card, .faq-item { break-inside: avoid; }
  .checklist input[type="checkbox"] { -webkit-appearance: checkbox; }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}



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