:root {
  --bg: #f7f9f7;
  --white: #ffffff;
  --text: #0f1d14;
  --muted: #5f6f63;
  --border: #d7e2d8;
  --accent: #1d8f4b;
  --accent-dark: #187a3f;
  --accent-faint: #e8f4ec;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(15, 29, 20, 0.08);
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap {
  width: min(1200px, 92vw);
  margin: 0 auto;
}
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1d8f4b 0%, #1a7f44 100%);
  display: grid;
  place-items: center;
  color: #f7fff5;
  font-weight: 800;
  font-size: 18px;
  box-shadow: var(--shadow);
}
nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}
nav a:hover { color: var(--text); }
.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(29, 143, 75, 0.25);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}
main { padding: 40px 0 96px; }
section { padding: 64px 0; }
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 48px 0 12px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero p { color: var(--muted); margin: 0 0 22px; }
.note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.shape {
  background: radial-gradient(circle at 30% 30%, rgba(29, 143, 75, 0.12), transparent 44%),
              radial-gradient(circle at 80% 0%, rgba(24, 122, 63, 0.06), transparent 50%),
              var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  height: 340px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
.shape::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(24, 122, 63, 0.22);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
}
.hero-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.82);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 29, 20, 0.08);
}
.hero-tab {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f3f7f3;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border 120ms ease;
}
.hero-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff;
}
.hero-code {
  position: relative;
  z-index: 1;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f3a21;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 18px 20px 20px;
  box-shadow: 0 18px 36px rgba(13, 26, 18, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  height: 220px;
  overflow: auto;
}
.subhead { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--muted); font-size: 12px; }
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(15, 29, 20, 0.04);
}
h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 32px);
}
h3 { margin: 0 0 6px; font-size: 18px; }
.muted { color: var(--muted); }
.stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-faint);
  color: var(--accent-dark);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #d0ead6;
}
.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.list li { color: var(--muted); }
.tabs {
  margin-top: 46px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 29, 20, 0.06);
  width: fit-content;
}
.tab-btn {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease, border 120ms ease, transform 120ms ease;
}
.tab-btn[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}
.code-box {
  background: #0d1a12;
  color: #d5f2dd;
  border-radius: 18px;
  padding: 34px;
  border: 1px solid #163821;
  position: relative;
  overflow: hidden;
  box-shadow: 0 22px 52px rgba(13, 26, 18, 0.42);
  margin-top: 18px;
}
pre {
  margin: 0;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, SFMono, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid #245233;
  background: rgba(247, 249, 247, 0.08);
  color: #d5f2dd;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.faq { border-top: 1px solid var(--border); padding-top: 18px; }
.faq-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
footer {
  padding: 32px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
}

/* Inline code utility */
.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: var(--accent-faint);
  color: var(--accent-dark);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #d0ead6;
  word-break: break-all;
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 29, 20, 0.2);
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover {
  color: var(--text);
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--accent-faint);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.modal h2 {
  margin: 0 0 12px;
  font-size: 24px;
}
.modal p {
  color: var(--muted);
  margin: 0 0 24px;
}
.modal .email-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(29, 143, 75, 0.25);
  transition: transform 120ms ease, background 120ms ease;
}
.modal .email-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.modal .email-display {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--accent-faint);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 600;
}

/* Legal page styles */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 64px;
}
.legal-content h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-content h2 {
  font-size: 22px;
  margin: 36px 0 10px;
}
.legal-content h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}
.legal-content p {
  color: var(--muted);
  margin: 0 0 14px;
}
.legal-content ul,
.legal-content ol {
  color: var(--muted);
  padding-left: 24px;
  margin: 0 0 14px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content strong {
  color: var(--text);
}
.legal-content .effective-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  header { position: static; }
  nav ul { display: none; }
  .cta-row { display: none; }
  .hero { padding-top: 20px; }
  .shape { height: 220px; }
  .hero .cta-row { display: flex; flex-direction: column; align-items: stretch; }
}
