/* Base */
:root {
  --bg: #f8f4ef;
  --surface: #ffffff;
  --ink: #2b2a28;
  --muted: #6c6a66;
  --brand: #b44b2a;
  --brand-dark: #8f3a21;
  --accent: #d9b55a;
  --sage: #2f4a3f;
  --line: #e5dfd6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.section {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.section.alt {
  background: var(--surface);
}

.section.dark {
  background: var(--sage);
  color: #f3efe8;
}

.section.compact {
  padding: 36px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 12px;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.25;
}

p {
  margin: 0 0 14px;
  color: var(--ink);
}

.dark p {
  color: #f3efe8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  border: 2px solid var(--brand);
  transition: all 0.2s ease;
}

.btn:hover,
.btn:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
}

.btn.ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 12px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
  letter-spacing: 0.4px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0 20px 16px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-nav.closed {
  display: none;
}

body.nav-open .site-nav.closed {
  display: flex;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* Layout utilities */
.split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.highlight {
  border-left: 6px solid var(--accent);
  background: #fffaf0;
}

.card.dark {
  background: #1f342b;
  border-color: #274437;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b2f1b;
  flex: 0 0 auto;
}

.stat-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat {
  background: var(--surface);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.stat strong {
  font-size: 28px;
  display: block;
}

.quote {
  font-size: 20px;
  font-style: italic;
  margin: 0;
}

.quote-source {
  margin-top: 10px;
  font-weight: 600;
}

.comparison {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison .card {
  background: #fff;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 2px solid var(--line);
  padding-left: 16px;
}

.timeline-item span {
  font-weight: 700;
  color: var(--brand);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  background: var(--surface);
  border: none;
  text-align: left;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item .faq-panel {
  padding: 0 16px 14px;
  display: none;
}

.faq-item.open .faq-panel {
  display: block;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.hero {
  background: linear-gradient(140deg, #ffffff 0%, #f3ece1 100%);
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: 32px;
}

.hero .card {
  background: #fff;
}

/* Buttons row */
.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  background: #1f1d1b;
  color: #eae5dd;
  padding: 40px 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-note {
  margin-top: 14px;
  color: #cfc7bc;
  font-size: 13px;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: none;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.cookie-banner.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 16px;
}

.cookie-modal.active {
  display: flex;
}

.cookie-modal .modal-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.toggle-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f6f1ea;
  font-weight: 600;
}

.toggle-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Responsive */
@media (min-width: 768px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: none;
    padding: 0;
  }

  .site-nav.closed {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    flex-direction: row;
    gap: 18px;
  }

  .nav-links a {
    border-bottom: none;
    padding: 0;
  }

  .nav-cta {
    flex-direction: row;
  }

  .split {
    flex-direction: row;
    align-items: center;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card {
    flex: 1 1 240px;
  }

  .stat-grid {
    flex-direction: row;
  }

  .stat {
    flex: 1;
  }

  .comparison {
    flex-direction: row;
  }

  .comparison .card {
    flex: 1;
  }

  .btn-row {
    flex-direction: row;
  }

  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .cookie-actions {
    flex-direction: row;
  }
}
