/* Base */
:root {
  --bg: #f7f4ee;
  --bg-alt: #f0e9df;
  --text: #1f1e1c;
  --muted: #5c5a55;
  --brand: #b88a3b;
  --brand-dark: #8f6a2d;
  --card: #ffffff;
  --border: #e2d7c6;
  --success: #2f6a3b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
}

.section p {
  margin: 0.4rem 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #efe6d5;
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav-toggle {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.primary-nav {
  position: fixed;
  inset: 0 0 auto auto;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--card);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--border);
}

.primary-nav a {
  font-weight: 600;
  padding: 0.4rem 0;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

body.nav-open .primary-nav {
  transform: translateX(0);
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 1rem;
}

.hero .intro {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Cards */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card .price {
  font-weight: 700;
  color: var(--brand-dark);
}

/* Feature blocks */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  background: var(--card);
  border-radius: 12px;
  padding: 1.2rem;
  border: 1px solid var(--border);
}

.stat strong {
  font-size: 1.6rem;
  display: block;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial {
  background: #fff8ee;
  border-left: 4px solid var(--brand);
  padding: 1.2rem;
  border-radius: 8px;
}

/* Comparison */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison .panel {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 1.2rem;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-answer[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  background: #1f1e1c;
  color: #f7f4ee;
  padding: 2.5rem 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-grid a {
  color: #f7f4ee;
}

.footer-small {
  font-size: 0.85rem;
  color: #d6d1c8;
}

/* Cookie banner + modal */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 60;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 1.5rem;
}

.cookie-modal.active {
  display: flex;
}

.cookie-panel {
  background: #fff;
  width: min(560px, 100%);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1rem 0;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f4ee;
  padding: 0.8rem;
  border-radius: 8px;
}

.cookie-toggle button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.cookie-toggle button[aria-pressed="true"] {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

/* Responsive */
@media (min-width: 768px) {
  .header-inner {
    gap: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    height: auto;
    width: auto;
    transform: none;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 1.5rem;
  }

  .nav-overlay {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .card-grid,
  .feature-list,
  .stats,
  .testimonials,
  .comparison,
  .footer-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card,
  .feature,
  .stat,
  .testimonial,
  .comparison .panel {
    flex: 1 1 calc(50% - 1rem);
  }

  .feature {
    align-items: center;
  }

  .cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .card,
  .stat,
  .testimonial,
  .comparison .panel {
    flex: 1 1 calc(33.333% - 1rem);
  }
}
