/* Base */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #5a5a5a;
  --brand: #1f6f63;
  --brand-dark: #165248;
  --accent: #e3a437;
  --border: #e2ded7;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--surface);
}

.section.accent {
  background: #f2f8f7;
}

.section.tight {
  padding: 40px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.secondary {
  background: transparent;
  color: var(--brand);
}

.btn:hover,
.btn:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  background: var(--brand);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 99, 0.12);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Header */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand svg {
  width: 32px;
  height: 32px;
  color: var(--brand);
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 16px;
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  background: var(--surface);
  padding: 20px 6%;
  border-bottom: 1px solid var(--border);
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  font-weight: 600;
  color: var(--ink);
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    gap: 22px;
    background: transparent;
  }
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-panel {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats div {
  flex: 1 1 120px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #f3f1ed;
}

/* Cards and grids (flex only) */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.dark {
  background: var(--brand);
  color: #fff;
}

.card.dark p {
  color: rgba(255, 255, 255, 0.85);
}

.icon {
  width: 44px;
  height: 44px;
  color: var(--brand);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-list span {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  align-items: center;
  justify-content: center;
  color: #1d1d1d;
  font-weight: 700;
}

.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 860px) {
  .hero {
    flex-direction: row;
    align-items: center;
  }

  .hero-panel {
    flex: 1;
  }

  .split {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Testimonials */
.quote {
  background: #f1f7f6;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 260px;
}

.quote strong {
  color: var(--ink);
}

/* Stats */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.stat {
  flex: 1 1 180px;
  padding: 18px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.stat h3 {
  margin-bottom: 6px;
  color: var(--brand-dark);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  background: #f8faf9;
  border-radius: 12px;
}

/* Comparison */
.comparison {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
}

@media (min-width: 860px) {
  .comparison-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq button {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq button span {
  color: var(--brand);
}

.faq .answer {
  padding: 0 18px 16px;
  color: var(--muted);
  display: none;
}

.faq .answer.open {
  display: block;
}

/* Footer */
footer {
  background: #0e231f;
  color: #e7f3f1;
}

footer a {
  color: #e7f3f1;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 860px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Cookie banner & modal */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--surface);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 40;
}

.cookie-banner.show {
  display: block;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 50;
}

.modal-overlay.show {
  display: block;
}

.modal {
  position: fixed;
  inset: auto 6% 10%;
  background: var(--surface);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
  z-index: 60;
  display: none;
}

.modal.show {
  display: block;
}

.modal h3 {
  margin-bottom: 6px;
}

.pref-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.pref-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pref-item button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-weight: 600;
}

.pref-item button.active {
  background: var(--brand);
  color: #fff;
}

/* Utility */
.muted {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight {
  background: #f4efe5;
  border-radius: 18px;
  padding: 22px;
}

.small {
  font-size: 0.9rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 10px;
}
