:root {
  --ink: #0f2a1e;
  --ink-soft: #164a2c;
  --brand: #16a34a;
  --brand-dark: #0f7a37;
  --wa: #25d366;
  --wa-hover: #1fb858;
  --yellow: #fcd964;
  --mint: #e0f4e8;
  --bg: #fafafa;
  --card: #fff;
  --text: #555;
  --line: #e6e8e7;
  --radius: 16px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; max-width: 22ch; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font: 600 0.95rem/1.2 var(--font);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: center;
}
.btn-primary { background: var(--wa); color: var(--ink); }
.btn-primary:hover { background: var(--wa-hover); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #09190f; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(15, 42, 30, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand img { display: block; width: 150px; height: auto; margin: -14px 0; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform 0.2s, opacity 0.2s; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a, .menu-btn { color: var(--ink); text-decoration: none; font: 500 0.9rem var(--font); }
.site-nav > ul > li > a:hover, .menu-btn:hover { color: var(--brand-dark); }
.site-nav a.btn-primary { color: var(--ink); font-weight: 600; }
.has-menu { position: relative; }
.menu-btn { background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.submenu { display: none; position: absolute; top: 100%; left: -16px; min-width: 300px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 42, 30, 0.14); }
.has-menu.open .submenu { display: block; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; }
.submenu a:hover { background: var(--mint); }

@media (min-width: 1024px) and (max-width: 1199px) {
  .site-nav, .site-nav > ul { gap: 16px; }
  .site-nav a, .menu-btn { font-size: 0.85rem; white-space: nowrap; }
  .site-nav a.btn-primary { padding: 10px 16px; }
}
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: 8px 16px 20px; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15, 42, 30, 0.1); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a, .menu-btn { display: flex; width: 100%; padding: 14px 0; justify-content: space-between; }
  .submenu { position: static; display: none; border: 0; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .nav-cta { margin-top: 16px; }
}

/* sections */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } .section-sm { padding: 64px 0; } }
.tone-mint { background: var(--mint); }
.tone-dark { background: var(--ink); color: #cfe3d6; }
.tone-dark h2, .tone-dark h3 { color: #fff; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 14px; }
.tone-dark .eyebrow { color: var(--wa); }
.intro, .lead { font-size: 1.05rem; max-width: 62ch; margin-top: 18px; }
.lead { font-size: 1.12rem; }
.section .grid, .section .table-wrap, .section .tick-list, .section .note, .section .steps, .section .glossary, .section .faq-list, .section .prose { margin-top: 36px; }

/* hero */
.hero, .page-hero { padding: 56px 0 24px; }
.hero { padding-bottom: 72px; }
.accent { color: var(--brand); }
.hero h1 { max-width: 13em; margin-bottom: 22px; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 8px; }
.page-hero { padding-bottom: 8px; }
.byline { font-size: 0.9rem; color: var(--text); margin-top: 8px; }
.chips { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .chips { grid-template-columns: repeat(6, 1fr); } }
.chip { display: block; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.chip:hover { border-color: var(--brand); transform: translateY(-2px); }
.chip strong { display: block; color: var(--brand-dark); font-size: 0.95rem; line-height: 1.3; }
.chip span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text); }

/* grids and cards */
.grid { display: grid; gap: 16px; list-style: none; padding-left: 0; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-6 { grid-template-columns: repeat(3, 1fr); } }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.92rem; }
a.card { transition: border-color 0.15s, box-shadow 0.15s; }
a.card:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgba(15, 42, 30, 0.08); }
.card-more { display: inline-block; margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--brand-dark); }
.badge { display: inline-block; margin-bottom: 18px; padding: 3px 12px; background: var(--yellow); color: var(--ink); font-size: 0.75rem; font-weight: 700; border-radius: 999px; }
.steps { counter-reset: none; }
.note { max-width: 70ch; font-size: 0.95rem; }

/* lists */
.tick-list { list-style: none; padding: 0; max-width: 70ch; }
.tick-list li { position: relative; padding: 0 0 12px 32px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--wa); box-shadow: inset 0 0 0 4px var(--wa); background-image: radial-gradient(circle at 50% 50%, var(--ink) 0 2px, transparent 3px); }
.related-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a { display: inline-block; padding: 9px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.9rem; color: var(--ink); }
.related-list a:hover { border-color: var(--brand); }

/* tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--mint); color: var(--ink); font-size: 0.85rem; }
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table.compare { background: transparent; border: 0; color: #fff; }
.data-table.compare th, .data-table.compare td { border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: #fff; }
.data-table.compare thead th { background: transparent; color: var(--wa); border-bottom: 2px solid rgba(255, 255, 255, 0.25); }
.data-table.compare tbody th { color: #fff; font-weight: 500; }
.data-table.compare td:last-child, .data-table.compare thead th:last-child { color: var(--wa); font-weight: 700; }
.fine { font-size: 0.8rem; color: #9db8a8; margin-top: 14px; }
.fine-dark { font-size: 0.9rem; margin: 20px 0 0; }
.values { margin-top: 56px; }
.values h3 { color: var(--wa); margin-bottom: 8px; }
.values p { font-size: 0.92rem; }
.tone-dark .values { margin-top: 56px; }

/* dashboard */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split h2 { color: #fff; }
.split .btn { margin-top: 24px; }
/* screenshots */
.shot { margin: 36px 0 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(15, 42, 30, 0.12); background: #fff; }
.shot figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--text); }
.shot-phone { max-width: 300px; }
.shot-narrow { max-width: 420px; }
.tone-dark .shot figcaption { color: #9db8a8; }
.tone-dark .shot { margin-top: 40px; }
.shot-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .shot-grid { grid-template-columns: 1fr 1fr; } .shot-grid .shot { margin-top: 0; } }

/* faq */
.section-faq { background: var(--bg); }
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; position: relative; font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand-dark); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { margin: 0; font-size: 0.95rem; }
.section-faq h2 { max-width: none; }

/* glossary */
.glossary div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.glossary dd { margin: 4px 0 0; }

/* cta band */
.cta-band { background: var(--yellow); color: var(--ink); padding: 64px 0; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { margin: 14px 0 0; max-width: 52ch; color: var(--ink); }
.cta-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-outline { border-color: var(--ink); }

/* form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 30px rgba(15, 42, 30, 0.06); }
.form-card h2 { margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); font-size: 0.9rem; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdd3d0; border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(22, 163, 74, 0.3); border-color: var(--brand); }
.form-response { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; background: var(--mint); color: var(--ink); }
.form-response[hidden] { display: none; }
.form-response.info { background: #eef2ff; }

/* footer */
.site-footer { background: var(--ink); color: #cfe3d6; padding: 56px 0 28px; font-size: 0.9rem; }
.site-footer a { color: #cfe3d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
@media (min-width: 800px) { .footer-cols { grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr; } }
.footer-h { color: #fff; font-size: 0.9rem; margin-bottom: 12px; max-width: none; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* legal pages */
.legal-content { color: #222; }
.legal-content h1 { font-size: 1.9rem; margin-bottom: 8px; max-width: none; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; max-width: none; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal-content .updated { color: #555; font-size: 0.9rem; }
.legal-content table { border-collapse: collapse; width: 100%; margin: 1rem 0; display: block; overflow-x: auto; }
.legal-content th, .legal-content td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; font-size: 0.95rem; }
.legal-content th { background: #f5f5f5; }
.legal-content ol li { margin-bottom: 0.5rem; }
.legal-content a { color: #0a66c2; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
