/* ================= Design Tokens ================= */
:root {
  --ink: #17212b;
  --muted: #71808c;
  --line: #e5e9ed;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --teal: #167d78;
  --teal-dark: #0d5f5b;
  --coral: #e7745f;
  --danger: #c9574d;
  --shadow: 0 8px 20px rgba(36, 64, 58, 0.06);
  --radius: 8px;
}

/* ================= Reset & Base ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
}

h1,
h2,
h3 {
  font-family: Georgia, serif;
  line-height: 1.25;
}

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

a {
  color: var(--teal);
}

a:hover {
  color: var(--teal-dark);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 72px 0;
}

/* Offset sticky header when jumping to anchored sections */
section[id] {
  scroll-margin-top: 80px;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 200;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  left: 0;
}

/* ================= Header / Nav ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand h1 {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}

.brand-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* ================= Hero ================= */
.hero {
  background: linear-gradient(145deg, #f7faf8 0%, #edf3f0 100%);
  padding: 96px 0 84px;
  text-align: center;
}

.hero p.lead {
  max-width: 640px;
  margin: 18px auto 32px;
  color: var(--muted);
  font-size: 18px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--teal-dark);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 0 6px 16px rgba(22, 125, 120, 0.25);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= Sections ================= */
.section-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid rgba(215, 224, 220, 0.85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  background: var(--canvas);
  border-radius: 10px;
  font-size: 22px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

/* Steps */
.steps {
  counter-reset: step;
  max-width: 720px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.step .num {
  flex: 0 0 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: var(--paper);
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 5px 12px rgba(231, 116, 95, 0.28);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 4px;
  display: flex;
}

.step p {
  color: var(--muted);
  font-size: 15px;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: bold;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--teal);
  font-size: 20px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq details>div {
  padding: 16px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--paper);
  text-align: center;
}

.cta-band .section-title {
  color: var(--paper);
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 28px;
  opacity: 0.9;
}

.cta-band .btn {
  background: var(--paper);
  color: var(--teal-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cta-band .btn:hover {
  background: var(--canvas);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #cfd8de;
  padding: 40px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #cfd8de;
  text-decoration: none;
  margin-left: 18px;
}

.site-footer a:hover {
  color: var(--coral);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ================= Mobile ================= */
@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .nav-hide-mobile {
    display: none;
  }

  .nav-cta {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h2 {
    font-size: 30px !important;
  }

  .section-title {
    font-size: 27px;
  }

  section {
    padding: 52px 0;
  }

  .site-footer a {
    margin-left: 0;
    margin-right: 18px;
  }
}