:root {
  --forest: #1e4d2b;
  --forest-light: #2d6a3e;
  --earth: #8b6914;
  --earth-light: #c49a2a;
  --sky: #4a90a4;
  --cream: #faf7f2;
  --sand: #f0e6d3;
  --charcoal: #2c2c2c;
  --muted: #5c5c5c;
  --white: #ffffff;
  --good: #4caf50;
  --better: #ff9800;
  --best: #e53935;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--forest-light); text-decoration: none; }
a:hover { color: var(--earth); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-light) 100%);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo span { color: var(--earth-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  padding: .4rem .8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,.9);
  padding: .5rem .85rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  transition: background .2s;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, #163d20 40%, var(--sky) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2rem;
  opacity: .92;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--earth-light); color: var(--charcoal); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.btn-primary:hover { color: var(--charcoal); }
.btn-secondary { background: rgba(255,255,255,.15); color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-secondary:hover { color: var(--white); background: rgba(255,255,255,.25); }
.btn-amazon { background: #ff9900; color: #111; }
.btn-amazon:hover { color: #111; background: #e88b00; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
main { flex: 1; }

.section { padding: 3.5rem 0; }
.section-alt { background: var(--sand); }
.section-title {
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: .5rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s;
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.card h3 { color: var(--forest); margin-bottom: .5rem; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card .btn { font-size: .9rem; padding: .6rem 1.2rem; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: var(--white);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.page-header p { opacity: .9; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  padding: 1rem 0;
  font-size: .9rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--forest-light); }

.content { padding: 2.5rem 0 4rem; max-width: 900px; margin: 0 auto; }
.content-wide { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.content h2 { color: var(--forest); margin: 2rem 0 1rem; font-size: 1.5rem; }
.content h3 { color: var(--forest-light); margin: 1.5rem 0 .75rem; }
.content p, .content li { margin-bottom: .75rem; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* Checklists */
.checklist {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.checklist-section { margin-bottom: 1.5rem; }
.checklist-section h3 {
  color: var(--forest);
  border-bottom: 2px solid var(--sand);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.checklist-item:last-child { border-bottom: none; }

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--forest);
  flex-shrink: 0;
}

.checklist-item label { cursor: pointer; flex: 1; }
.checklist-item .tip { font-size: .85rem; color: var(--muted); display: block; margin-top: .15rem; }

.print-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--sand);
  border-radius: var(--radius);
}

/* Good Better Best */
.tier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tier-table th, .tier-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.tier-table th { background: var(--forest); color: var(--white); }
.tier-good { border-left: 4px solid var(--good); }
.tier-better { border-left: 4px solid var(--better); }
.tier-best { border-left: 4px solid var(--best); }

.tier-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-good { background: #e8f5e9; color: #2e7d32; }
.badge-better { background: #fff3e0; color: #e65100; }
.badge-best { background: #ffebee; color: #c62828; }

/* Deals */
.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  border-left: 4px solid var(--earth-light);
}

.deal-price { font-size: 1.5rem; font-weight: 800; color: var(--forest); }
.deal-was { text-decoration: line-through; color: var(--muted); font-size: .95rem; }
.deal-save { color: var(--best); font-weight: 600; font-size: .9rem; }

/* Checklist builder */
.builder-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--forest); }

.form-group select, .form-group input {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--sand);
  padding: .5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}

/* Feature boxes */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.feature-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--forest-light);
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.8);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-inner h4 { color: var(--white); margin-bottom: 1rem; }
.footer-inner ul { list-style: none; }
.footer-inner li { margin-bottom: .4rem; }
.footer-inner a { color: rgba(255,255,255,.7); }
.footer-inner a:hover { color: var(--earth-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .85rem;
}

.affiliate-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: #5d4037;
  margin: 1.5rem 0;
}

/* Print styles */
@media print {
  .site-header, .site-footer, .print-bar, .nav-toggle, .hero-cta, .affiliate-note { display: none !important; }
  body { background: white; }
  .checklist { box-shadow: none; border: 1px solid #ccc; }
  .checklist-item input { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border: 1px solid #333; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .hero { padding: 2.5rem 1rem; }
  .deal-card { grid-template-columns: 1fr; }
  .tier-table { font-size: .85rem; }
  .tier-table th, .tier-table td { padding: .75rem; }
}