@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10241c;
  --muted: #243f36;
  --deep: #064c3f;
  --deeper: #002e28;
  --paper: #f4fbf8;
  --card: #ffffff;
  --line: rgba(16, 36, 28, 0.16);
  --mint: #e7f6ef;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--deep); }
p, li { color: var(--muted); }
h1, h2, h3, strong { color: var(--ink); letter-spacing: -0.03em; }
h1 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 12px; font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.nav-wrap, .hero, .section, .cta, footer { width: min(var(--max), calc(100% - 32px)); margin-left: auto; margin-right: auto; }

header.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 251, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.menu-btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--deeper);
  color: #f7fffb;
  text-decoration: none;
  font-weight: 600;
  border: 1.5px solid var(--deeper);
}
.btn.secondary { background: transparent; color: var(--deep); border-color: var(--line); }
.btn:hover { transform: translateY(-1px); }

.hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: 48px 0 24px; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; color: var(--deep); margin: 0 0 10px; }
.lede { font-size: 1.15rem; max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--ink); font-size: 0.92rem; }
.hero-mark { background: var(--card); border: 1.5px solid var(--line); border-radius: 32px; padding: 28px; box-shadow: 0 16px 40px rgba(0, 46, 40, 0.08); text-align: center; }
.hero-mark img { width: min(280px, 100%); height: auto; }

.section { padding: 36px 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card, .guide-card, .faq details, article, .step {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}
.step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: var(--deep); display: grid; place-items: center; font-weight: 600; }
.guide-card { text-decoration: none; color: inherit; display: block; }
.guide-card:hover { border-color: var(--deep); }
.guide-card span { color: var(--deep); font-weight: 600; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }

.faq details { margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq a.more { font-weight: 600; }

.cta {
  margin: 20px auto 40px;
  background: var(--deeper);
  color: #f7fffb;
  border-radius: 32px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.cta h2, .cta p { color: #f7fffb; }
.cta .btn { background: #f7fffb; color: var(--deeper); border-color: #f7fffb; }
.cta img { width: 72px; height: 72px; border-radius: 18px; }

footer { padding: 12px 0 28px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot a { text-decoration: none; }
.disclaimer { font-size: 0.92rem; }

.crumbs { font-size: 0.92rem; margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
article.page { width: min(760px, calc(100% - 32px)); margin: 28px auto 40px; }
.related { display: grid; gap: 10px; }

.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: none;
}
.menu-panel { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: 84px; }
  .hero, .grid, .grid.three, .cta { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-btn {
    display: inline-flex;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    font: inherit;
    font-weight: 600;
  }
  .menu-panel.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 16px 16px;
  }
  .sticky-cta.is-visible { display: block; }
  .sticky-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
