/* Base */
:root {
  --bg: #f7f4f1;
  --surface: #ffffff;
  --ink: #1f2a2e;
  --muted: #5a6a70;
  --primary: #2a6f73;
  --primary-2: #1f4d50;
  --accent: #d48a3a;
  --line: #e4ded7;
  --soft: #f0ebe5;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--surface);
}

.section.soft {
  background: var(--soft);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 12px 0 16px;
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0 0 16px;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  color: var(--primary);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 40;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand svg {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.nav-links a {
  padding: 6px 0;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--ink);
}

.menu-toggle {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.menu-toggle span {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.nav-open .nav-links {
  display: flex;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 18px;
  }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-feature {
  background: var(--soft);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hero-feature svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: stretch;
  }
  .hero-card {
    flex: 1.1;
  }
  .hero-grid {
    flex: 1;
  }
}

/* Cards and lists */
.card-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card.alt {
  background: var(--soft);
}

@media (min-width: 800px) {
  .card-grid {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .card-grid .card {
    flex: 1 1 calc(33.333% - 16px);
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-item svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

/* Split layout */
.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 900px) {
  .split {
    flex-direction: row;
    align-items: center;
  }
  .split.reverse {
    flex-direction: row-reverse;
  }
  .split > div {
    flex: 1;
  }
}

/* Stats */
.stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat strong {
  font-size: 1.4rem;
  color: var(--primary);
}

@media (min-width: 800px) {
  .stats {
    flex-direction: row;
  }
  .stat {
    flex: 1;
  }
}

/* Testimonials */
.testimonial {
  background: var(--surface);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.quote-author {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Comparison */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--line);
}

.comparison-row span {
  font-weight: 600;
}

@media (min-width: 900px) {
  .comparison-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: #1a2428;
  color: #f2f1ef;
  padding: 36px 0;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-grid a {
  color: #d5d2ce;
}

@media (min-width: 800px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Cookie banner and modal */
.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  width: min(720px, 94%);
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}

.cookie-banner.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 700px) {
  .cookie-actions {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px;
  width: min(680px, 92%);
  border: 1px solid var(--line);
}

.modal h3 {
  margin-top: 0;
}

.modal .options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
}

/* Utility */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.highlight {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 12px;
}
