/* FeederShield Styles */
:root {
  --green-700: #3B6B4A;
  --green-600: #4A7C59;
  --green-100: #E8F0EA;
  --brown-700: #5C4033;
  --brown-500: #8B7355;
  --brown-100: #F5F0EB;
  --gold-500: #DAA520;
  --red-600: #C05050;
  --red-100: #FDE8E8;
  --gray-900: #1A1A1A;
  --gray-700: #444;
  --gray-500: #777;
  --gray-200: #E0E0E0;
  --gray-100: #F7F7F7;
  --white: #FFFFFF;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--gray-900); background: var(--white); line-height: 1.6; }

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

/* Header */
.site-header { background: var(--white); border-bottom: 2px solid var(--green-100); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--green-700); font-weight: 700; font-size: 1.2rem; }
.logo-text { letter-spacing: -0.02em; }
.main-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--gray-700); font-size: 0.9rem; font-weight: 500; padding: 0.25rem 0; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.main-nav a:hover, .main-nav a:focus { color: var(--green-700); border-bottom-color: var(--green-600); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-700); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green-100) 0%, var(--brown-100) 100%); padding: 4rem 0 3.5rem; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--green-700); line-height: 1.2; margin-bottom: 1rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-sub { font-size: 1.1rem; color: var(--gray-700); max-width: 560px; margin: 0 auto 2rem; }

/* Buttons */
.btn { display: inline-block; padding: 0.7rem 1.5rem; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; font-family: var(--font-sans); }
.btn-primary { background: var(--green-600); color: var(--white); border-color: var(--green-600); }
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-700); color: var(--white); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn-outline:hover { background: var(--green-100); }

/* Section basics */
section { padding: 3.5rem 0; }
section h2 { font-size: 1.6rem; font-weight: 700; color: var(--green-700); margin-bottom: 0.5rem; }
.section-intro { color: var(--gray-500); margin-bottom: 2rem; max-width: 600px; }

/* Planner */
.planner-section { background: var(--white); }
.planner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-step { border: none; padding: 0; margin-bottom: 2rem; }
.form-step legend { font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--green-600); color: var(--white); border-radius: 50%; font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.field-hint { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 0.5rem; }

.radio-group, .checkbox-group { display: grid; gap: 0.6rem; }
.radio-card, .check-card { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.radio-card:hover, .check-card:hover { border-color: var(--green-600); background: var(--green-100); }
.radio-card input, .check-card input { margin-top: 0.2rem; accent-color: var(--green-600); }
.radio-body, .check-body { display: flex; flex-direction: column; }
.radio-body strong, .check-body strong { font-size: 0.95rem; }
.radio-body small, .check-body small { font-size: 0.8rem; color: var(--gray-500); }
.radio-card:has(input:checked), .check-card:has(input:checked) { border-color: var(--green-600); background: var(--green-100); }

.slider-label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
input[type="range"] { width: 100%; accent-color: var(--green-600); }
.slider-hints { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--gray-500); }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.save-notice { font-size: 0.85rem; color: var(--green-700); margin-top: 0.5rem; min-height: 1.2em; }

/* Plan output */
.plan-output { background: var(--brown-100); border-radius: var(--radius); padding: 1.5rem; min-height: 300px; }
.plan-empty { text-align: center; color: var(--gray-500); padding: 2rem 0; }
.plan-empty svg { margin-bottom: 1rem; }
.plan-result h3 { color: var(--green-700); margin-bottom: 0.75rem; font-size: 1.15rem; }
.plan-result h4 { color: var(--brown-700); margin: 1.25rem 0 0.5rem; font-size: 0.95rem; }
.plan-result ul, .plan-result ol { padding-left: 1.25rem; margin-bottom: 0.5rem; }
.plan-result li { margin-bottom: 0.35rem; font-size: 0.92rem; }
.plan-tag { display: inline-block; background: var(--green-100); color: var(--green-700); padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.8rem; font-weight: 600; }

/* Diagram */
.diagram-section { background: var(--gray-100); }
.diagram-wrap { max-width: 340px; margin: 0 auto 1.5rem; }
.diagram-notes { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; max-width: 500px; margin: 0 auto; font-size: 0.85rem; }
.diagram-notes dt { font-weight: 700; color: var(--brown-700); }
.diagram-notes dd { color: var(--gray-700); }

/* Seed table */
.seed-section { background: var(--white); }
.table-wrap { overflow-x: auto; }
.seed-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.seed-table th { background: var(--green-600); color: var(--white); padding: 0.65rem 1rem; text-align: left; font-weight: 600; }
.seed-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--gray-200); }
.seed-table tr:nth-child(even) td { background: var(--gray-100); }
.seed-table tr:hover td { background: var(--green-100); }
.seed-note { margin-top: 1.5rem; background: var(--brown-100); border-radius: var(--radius); padding: 1rem 1.25rem; }
.seed-note summary { font-weight: 600; cursor: pointer; color: var(--brown-700); }
.seed-note p { margin-top: 0.5rem; color: var(--gray-700); font-size: 0.92rem; }

/* Mistakes */
.mistakes-section { background: var(--gray-100); }
.mistake-list { list-style: none; counter-reset: mistakes; display: grid; gap: 1.5rem; }
.mistake-list li { counter-increment: mistakes; padding-left: 3rem; position: relative; }
.mistake-list li::before { content: counter(mistakes); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; background: var(--red-600); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.mistake-list strong { display: block; color: var(--brown-700); font-size: 1rem; margin-bottom: 0.25rem; }
.mistake-list p { color: var(--gray-700); font-size: 0.92rem; }

/* Checklist */
.checklist-section { background: var(--white); }
.checklist-items { list-style: none; margin-bottom: 1.5rem; }
.checklist-items li { padding: 0.6rem 0; border-bottom: 1px solid var(--gray-200); display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.93rem; }
.checklist-items input { accent-color: var(--green-600); margin-top: 0.2rem; }

/* About */
.about-section { background: var(--brown-100); }
.about-section p { color: var(--gray-700); margin-bottom: 1rem; max-width: 680px; }
.last-updated { font-size: 0.82rem; color: var(--gray-500); font-style: italic; }

/* Footer */
.site-footer { background: var(--gray-900); color: var(--gray-200); padding: 2rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.footer-brand { font-weight: 700; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 1.25rem; margin-left: auto; }
.footer-nav a { color: var(--gray-200); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--gold-500); }
.footer-copy { font-size: 0.8rem; color: var(--gray-500); width: 100%; text-align: center; margin-top: 0.5rem; }

/* Print */
@media print {
  .site-header, .site-footer, .form-actions, .nav-toggle, .hero { display: none; }
  body { font-size: 12pt; }
  .plan-output, .diagram-wrap, .checklist-print { break-inside: avoid; }
}

/* Responsive */
@media (max-width: 860px) {
  .planner-grid { grid-template-columns: 1fr; }
  .plan-output { order: -1; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem 1.25rem; border-bottom: 2px solid var(--green-100); box-shadow: var(--shadow); }
  .nav-toggle { display: block; }
}
@media (max-width: 500px) {
  .hero { padding: 2.5rem 0 2rem; }
  section { padding: 2rem 0; }
  .form-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
}



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