:root {
  --green: #2ba84a;
  --green-dark: #1f7a37;
  --ink: #1c2321;
  --ink-soft: #4a534f;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --border: #e2e8e4;
  --radius: 12px;
  --max-w: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--green-dark); }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--green-dark); }
nav.main { display: flex; gap: 20px; flex-wrap: wrap; }
nav.main a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
nav.main a:hover, nav.main a.active { color: var(--green-dark); }
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn.ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green);
}
.btn.ghost:hover { background: var(--bg-soft); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 780px) {
  header.site .bar {
    flex-wrap: nowrap;
    padding: 12px 20px;
    position: relative;
  }
  .logo { font-size: 1.05rem; }
  .logo img { height: 22px; width: 22px; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    padding: 4px 20px 12px;
  }
  nav.main.open { display: flex; }
  nav.main a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  nav.main a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  header.site .bar .btn {
    padding: 9px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
}

/* Hero */
.hero {
  background: var(--bg-soft);
  padding: 64px 0;
}
.hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 16px;
  max-width: 820px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 28px;
}
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-soft); }
h2 { font-size: 1.7rem; margin: 0 0 8px; }
h2 + p.section-sub { color: var(--ink-soft); margin: 0 0 32px; max-width: 640px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card img { margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stats .num { font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.stats .label { color: var(--ink-soft); font-size: 0.9rem; }

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step .n {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.step .n::before { content: counter(step); }

.cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-block h2 { color: #fff; }
.cta-block p { color: #d5dbd7; }

footer.site {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer.site .cols {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer.site a { color: var(--ink-soft); }
footer.site .legal { margin-top: 24px; font-size: 0.8rem; color: #8a938e; }

.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.breadcrumbs a { color: var(--ink-soft); }

.blog-list { display: grid; gap: 20px; }
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.blog-card .meta { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 8px; }

/* Logo icon */
.logo img { height: 26px; width: auto; vertical-align: middle; margin-right: 8px; }

/* Photo/video hero */
.hero.hero-media { position: relative; padding: 0; overflow: hidden; background: var(--ink); }
.hero.hero-media .media-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero.hero-media .media-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,20,18,0.55), rgba(15,20,18,0.85));
}
.hero.hero-media .wrap { position: relative; z-index: 2; padding: 72px 24px; }
.hero.hero-media h1 { color: #fff; }
.hero.hero-media p.lead { color: #dce3df; }

.hero.hero-photo { position: relative; background-size: cover; background-position: center; color: #fff; }
.hero.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,20,18,0.55), rgba(15,20,18,0.85));
}
.hero.hero-photo .wrap { position: relative; z-index: 1; }
.hero.hero-photo h1 { color: #fff; }
.hero.hero-photo p.lead { color: #dce3df; }
.hero.hero-photo .breadcrumbs, .hero.hero-photo .breadcrumbs a { color: #cfd6d2; }

/* Partners strip */
.partners-section { background: var(--ink); }
.partners-section h2, .partners-section p.section-sub { color: #fff; }
.partners-section p.section-sub { color: #b9c2be; }
.partners-strip {
  display: flex; flex-wrap: wrap; gap: 40px;
  align-items: center; justify-content: center;
}
.partners-strip img {
  height: 30px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.partners-strip img:hover { opacity: 1; }

/* Modals / forms */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,20,18,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: var(--radius);
  max-width: 460px; width: 100%;
  padding: 32px; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-card.wide { max-width: 680px; }
.privacy-body { margin-top: 16px; }
.privacy-body h4 { font-size: 1rem; margin: 20px 0 6px; }
.privacy-body h4:first-child { margin-top: 0; }
.privacy-body p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.4rem;
  line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.modal-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.quiz-sub { color: var(--ink-soft); margin: 0 0 20px; font-size: 0.95rem; }
.quiz-progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 20px; overflow: hidden; }
.quiz-progress-bar { display: block; height: 100%; background: var(--green); transition: width 0.2s; }
.quiz-question { font-weight: 600; margin-bottom: 12px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.quiz-opt, .field-label + .quiz-opt {
  display: block; text-align: left; width: 100%;
  border: 1px solid var(--border); background: #fff;
  border-radius: 10px; padding: 12px 16px; cursor: pointer;
  font-size: 0.95rem; color: var(--ink);
}
.quiz-opt:hover { border-color: var(--green); }
.quiz-opt.selected { border-color: var(--green); background: #eef8f0; font-weight: 600; }
.quiz-input {
  display: block; width: 100%; border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; font-size: 0.95rem;
  margin-bottom: 16px; font-family: inherit;
}
.field-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 6px; }
.quiz-last { color: var(--green-dark); font-size: 0.85rem; font-weight: 600; margin: 0 0 12px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--green); }
.quiz-disclaimer { font-size: 0.75rem; color: var(--ink-soft); margin: 16px 0 0; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 20px; }
.consent input { margin-top: 3px; }
.quiz-thanks { text-align: center; padding: 12px 0; }
.quiz-thanks p { color: var(--ink-soft); margin: 8px 0 20px; }

/* Comparison table */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare-table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 0.9rem; }
table.compare-table th, table.compare-table td {
  padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border);
  white-space: normal;
}
table.compare-table th:first-child, table.compare-table td:first-child {
  text-align: left; position: sticky; left: 0; background: var(--bg);
  min-width: 220px; font-weight: 500;
}
table.compare-table thead th {
  background: var(--bg-soft); font-size: 0.85rem; font-weight: 600;
  vertical-align: bottom;
}
table.compare-table thead th:first-child { background: var(--bg-soft); }
table.compare-table tbody tr:last-child td { border-bottom: none; }
table.compare-table .yes, table.compare-table .no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 0.8rem; font-weight: 700;
}
table.compare-table .yes { background: #25b309; }
table.compare-table .no { background: #f24612; }

/* Article / blog post */
.article { padding: 48px 0 64px; }
.article .wrap { max-width: 760px; }
.article h2 { margin-top: 48px; scroll-margin-top: 90px; }
.article h2:first-of-type { margin-top: 0; }
.article h3 { margin-top: 4px; font-size: 1.02rem; }
.article p { margin: 0 0 16px; line-height: 1.65; }
.article ul { margin: 0 0 20px; padding-left: 20px; }
.article ul li { margin-bottom: 6px; }
.article-meta { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 20px; }
.article .compare-table-wrap { margin: 0 0 32px; }
.article table.compare-table th, .article table.compare-table td { font-size: 0.85rem; }

.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 8px 0 40px; }
.toc h2 { font-size: 1.02rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--green-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.callout {
  background: var(--bg-soft); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 0 0 32px; color: var(--ink-soft); font-size: 0.95rem;
}

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; }
.faq-item p { margin: 0; color: var(--ink-soft); }

/* Photo gallery */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery-grid img { border-radius: var(--radius); width: 100%; height: 200px; object-fit: cover; }
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
