/* Sourcream marketing site. Built by scripts/build-site.mjs into site/. */

:root {
  --bg: #fafdf8;
  --white: #ffffff;
  --surface-alt: #f0f7ed;
  --surface-dark: #0c1a0e;
  --surface-dark-2: #132617;
  --primary: #22c55e;
  --primary-mid: #16a34a;
  --primary-dark: #0d6832;
  --primary-light: #dcfce7;
  --primary-soft: #f0fdf4;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --muted: #9ca3af;
  --border: #e5e7eb;
  --border-soft: #eef2ec;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 16, 0.05);
  --shadow-md: 0 6px 18px rgba(16, 24, 16, 0.07);
  --shadow-lg: 0 24px 60px rgba(13, 104, 50, 0.12);
  --container: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary-mid); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; }
:focus-visible { outline: 2px solid var(--primary-mid); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------- buttons ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem/1 var(--font);
  padding: 13px 22px; border-radius: 10px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--primary-mid); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary-mid); color: var(--primary-dark); }
.btn-dark { background: var(--surface-dark); color: #fff; }
.btn-dark:hover { background: var(--surface-dark-2); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }

.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transition: transform 0.15s ease; }
.text-link:hover::after { transform: translateX(3px); }
:root { --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); --icon-dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E"); }

/* -------------------------------- header -------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 253, 248, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(255, 255, 255, 0.92); }
.nav { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; }
.logo-name em { font-style: normal; color: var(--primary-mid); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: 8px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.nav-links a:hover { color: var(--text); background: rgba(34, 197, 94, 0.08); }
.nav-links a[aria-current='page'] { color: var(--primary-dark); background: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-login { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.94rem; padding: 8px 10px; }
.nav-login:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; }
.mobile-nav { display: none; }

@media (max-width: 1040px) {
  .nav-links, .nav-actions .nav-login, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    background: var(--white); padding: 20px 24px 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav-open .mobile-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .mobile-nav ul { list-style: none; }
  .mobile-nav li a { display: block; padding: 14px 4px; font-size: 1.1rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-soft); }
  .mobile-nav li a[aria-current='page'] { color: var(--primary-dark); }
  .mobile-nav .mobile-actions { display: grid; gap: 10px; margin-top: 24px; }
}

/* -------------------------------- sections ------------------------------- */

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface-alt); }
.section-white { background: var(--white); }
.section-dark { background: var(--surface-dark); color: #d1e7d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section + .section:not(.section-alt):not(.section-dark):not(.section-white) { padding-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.74rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-mid); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::after { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow { color: #4ade80; }
.section-dark h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.section-dark .lead { margin-top: 16px; color: #a7c4ad; }
.section-dark a { color: #4ade80; }
.section-dark a:hover { color: #86efac; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; font-size: 1.08rem; color: var(--text-2); }
.section-dark .section-head p { color: #a7c4ad; }

.lead { font-size: 1.15rem; color: var(--text-2); }

/* ---------------------------------- hero --------------------------------- */

.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.16), rgba(34, 197, 94, 0) 62%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.02fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.hero h1 .accent { color: var(--primary-mid); }
.hero .lead { margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-3); }
.tagline {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 0.8rem/1 var(--mono); letter-spacing: 0.12em; color: var(--primary-dark);
  background: var(--primary-light); padding: 8px 14px; border-radius: 999px;
}
.tagline svg { width: 16px; height: 16px; }

.page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; top: -380px; right: -260px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.13), rgba(34, 197, 94, 0) 62%); pointer-events: none;
}
.page-hero h1 { position: relative; font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; max-width: 820px; }
.page-hero .lead { position: relative; margin-top: 18px; max-width: 680px; }
.page-hero .hero-actions { position: relative; }
.page-hero.center h1, .page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero.center .hero-actions { justify-content: center; }

/* ---------------------------- product visuals --------------------------- */

.window {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f7faf6; border-bottom: 1px solid var(--border-soft); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe6dc; }
.window-url { margin-left: 12px; font: 500 0.74rem/1 var(--mono); color: var(--text-3); background: var(--white); border: 1px solid var(--border-soft); padding: 6px 12px; border-radius: 6px; }
.window-body { padding: 22px; }

.lead-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.lead-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex: none; }
.lead-who div { min-width: 0; }
.lead-who div strong { display: block; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-who div span { display: block; font-size: 0.8rem; color: var(--text-3); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.grey { background: #f1f3f1; color: var(--text-2); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.plain::before { display: none; }

.touch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.touch { border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px; background: #fbfdfa; }
.touch-label { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.touch-value { margin-top: 10px; font-weight: 700; font-size: 1.02rem; }
.touch-meta { margin-top: 6px; font-size: 0.8rem; color: var(--text-3); }
.touch-meta code { font-size: 0.76rem; color: var(--text-2); }

.journey { margin-top: 18px; border-top: 1px solid var(--border-soft); padding-top: 14px; }
.journey-title { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-3); margin-bottom: 10px; }
.journey ol { list-style: none; position: relative; }
.journey ol::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border-soft); }
.journey li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 6px 22px; font-size: 0.84rem; }
.journey li::before { content: ''; position: absolute; left: 0; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--primary); }
.journey li.direct::before { border-color: var(--muted); }
.journey li span:last-child { color: var(--text-3); font-variant-numeric: tabular-nums; }

.sync-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); border: 1px solid #c9efd5; font-size: 0.85rem; }
.sync-row strong { color: var(--primary-dark); }
.check-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-mid); display: grid; place-items: center; flex: none; }
.check-dot::after { content: ''; width: 12px; height: 12px; background: #fff; -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }

.float-card {
  position: absolute; background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 12px 14px; font-size: 0.8rem;
}
.hero-visual { position: relative; }
.hero-visual .float-card { right: -18px; bottom: -26px; width: 230px; }
.float-card .mono { font-family: var(--mono); font-size: 0.74rem; color: var(--text-2); }
.float-card .fc-title { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }

.bars { display: grid; gap: 12px; margin-top: 6px; }
.bar { display: grid; grid-template-columns: 112px 1fr 36px; align-items: center; gap: 12px; font-size: 0.84rem; }
.bar span { color: var(--text-2); }
.bar i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-mid)) left / var(--w) 100% no-repeat, #eef4ec; }
.bar b { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.client-list { display: grid; gap: 8px; }
.client { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: 12px; background: #fbfdfa; }
.client strong { display: block; font-size: 0.92rem; }
.client span:not(.avatar) { display: block; font-size: 0.78rem; color: var(--text-3); }
.client .avatar { width: 34px; height: 34px; font-size: 0.78rem; }
.client-leads { font-weight: 700; font-size: 0.82rem !important; color: var(--primary-dark) !important; white-space: nowrap; }
.facts.mini { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.facts.mini .fact { padding: 14px; background: #fbfdfa; border-color: var(--border-soft); }
.facts.mini .fact strong { font-size: 1.5rem; }
.facts.mini .fact span { font-size: 0.8rem; margin-top: 2px; }

/* ------------------------------- strip --------------------------------- */

.strip { padding: 28px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--white); }
.strip-inner { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; justify-content: center; }
.strip-label { font-size: 0.85rem; color: var(--text-3); }
.strip-names { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; list-style: none; }
.strip-names li { font-weight: 700; font-size: 0.98rem; color: #556157; letter-spacing: -0.01em; white-space: nowrap; }

/* -------------------------------- grids --------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover, .card.hover:hover { border-color: #b8e6c6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.96rem; }
.card p + p { margin-top: 10px; }
.card code, .step code, .kicker code { font-size: 0.86em; background: var(--primary-soft); color: var(--primary-dark); padding: 1px 5px; border-radius: 4px; }
.card .text-link { margin-top: 16px; font-size: 0.92rem; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary-dark); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-tag { font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; display: block; }
.section-alt .card { border-color: #dbe8d6; }

.problem-card { border-left: 3px solid var(--primary); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 700 0.85rem/1 var(--mono); color: var(--primary-mid); margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 0.96rem; }

/* ------------------------------- split rows ------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.split h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.split p { margin-top: 16px; color: var(--text-2); font-size: 1.04rem; }
.split .text-link { margin-top: 20px; }

.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-light);
}
.checks li::after {
  content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; background: var(--primary-dark);
  -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat;
}
.checks strong { color: var(--text); }
.section-dark .checks li { color: #b9d3bf; }
.section-dark .checks li::before { background: rgba(74, 222, 128, 0.16); }
.section-dark .checks li::after { background: #4ade80; }
.section-dark .checks strong { color: #fff; }

/* -------------------------------- code ---------------------------------- */

.code {
  background: #0b160d; color: #d7eadb; border-radius: 14px; padding: 18px 20px; overflow-x: auto;
  font: 500 0.84rem/1.7 var(--mono); border: 1px solid #1d3322; position: relative;
}
.code pre { margin: 0; font: inherit; }
.code.wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.code .c { color: #6f8f76; }
.code .t { color: #86efac; }
.code .a { color: #fcd34d; }
.code .s { color: #a5f3fc; }
.code-title { display: flex; justify-content: space-between; align-items: center; font: 500 0.74rem/1 var(--mono); color: #7da386; margin: -4px 0 12px; }
.copy-btn {
  font: 600 0.72rem/1 var(--font); color: #cfe8d5; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12); padding: 6px 10px; border-radius: 6px; cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.14); }

/* ------------------------------ mapping table ---------------------------- */

.map {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md);
}
.map-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); background: #f7faf6; font-size: 0.85rem; }
.map-head strong { font-weight: 700; }
.map table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.map th { text-align: left; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 12px 18px; border-bottom: 1px solid var(--border-soft); }
.map td { padding: 11px 18px; border-bottom: 1px solid var(--border-soft); }
.map tr:last-child td { border-bottom: 0; }
.map td:first-child { font-family: var(--mono); font-size: 0.8rem; color: var(--text-2); }
.map td:last-child { font-weight: 600; }
.map td code { font: inherit; color: inherit; }
.map tr.extended td { color: var(--text-3); }
.map tr.extended td:last-child { font-weight: 500; }
.map-foot { padding: 12px 18px; font-size: 0.8rem; color: var(--text-3); background: #fbfdfa; border-top: 1px solid var(--border-soft); }

/* ------------------------------- data tables ----------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.table thead th { font-size: 0.8rem; font-weight: 700; color: var(--text-2); background: #f7faf6; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody th { font-weight: 600; }
.table code { font-size: 0.82rem; background: var(--primary-soft); color: var(--primary-dark); padding: 2px 6px; border-radius: 5px; }
.table td.muted { color: var(--text-3); }

/* -------------------------------- pricing -------------------------------- */

.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; margin-top: 28px; }
.billing-toggle button { font: 600 0.9rem/1 var(--font); border: 0; background: transparent; color: var(--text-2); padding: 10px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button[aria-pressed='true'] { background: var(--surface-dark); color: #fff; }
.save { font-size: 0.72rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-light); padding: 3px 8px; border-radius: 999px; }
.billing-toggle button[aria-pressed='true'] .save { background: var(--primary); color: #06240f; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; }
.plan.featured { border: 2px solid var(--primary-mid); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 24px; font-size: 0.72rem; font-weight: 700; background: var(--primary-mid); color: #fff; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; }
.plan-for { margin-top: 6px; font-size: 0.9rem; line-height: 1.5; color: var(--text-3); min-height: 3em; }
.plan-price { margin-top: 20px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-price .per { color: var(--text-3); font-size: 0.92rem; }
.plan-billing { font-size: 0.82rem; color: var(--text-3); min-height: 1.3em; }
.plan .btn { margin-top: 22px; }
.plan ul { list-style: none; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-soft); display: grid; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; background: var(--primary-mid); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.plan li strong { color: var(--text); }
.pricing-note { margin-top: 28px; text-align: center; font-size: 0.9rem; color: var(--text-3); }

.compare { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 760px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 1rem; font-weight: 800; background: #f7faf6; position: sticky; top: 0; }
.compare thead th small { display: block; font-weight: 500; font-size: 0.8rem; color: var(--text-3); }
.compare tbody th { font-weight: 500; color: var(--text-2); text-align: left; }
.compare tr.group th { background: var(--surface-alt); font: 700 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-dark); padding: 12px 16px; }
.compare .yes, .compare .no { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.compare .yes { background: var(--primary-mid); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.compare .no { background: #c9cfc8; -webkit-mask: var(--icon-dash) center / contain no-repeat; mask: var(--icon-dash) center / contain no-repeat; }
.compare td.hl, .compare th.hl { background: rgba(34, 197, 94, 0.05); }

/* --------------------------------- faq ---------------------------------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq details[open] { border-color: #b8e6c6; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.02rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--primary-mid), var(--primary-mid)) center / 14px 2px no-repeat, linear-gradient(var(--primary-mid), var(--primary-mid)) center / 2px 14px no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }

/* ------------------------------ honesty band ----------------------------- */

.honest { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.honest-list { display: grid; gap: 16px; }
.honest-item { background: var(--surface-dark-2); border: 1px solid #1f3a25; border-radius: 14px; padding: 20px 22px; }
.honest-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.honest-item p { color: #a7c4ad; font-size: 0.95rem; }

/* ---------------------------------- stats -------------------------------- */

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fact { padding: 22px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); }
.fact strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--text-2); }

/* -------------------------------- cta band ------------------------------- */

.cta-band { padding: 0 0 96px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 48px; text-align: center;
  background: radial-gradient(120% 140% at 100% 0%, #1f7a3f 0%, #0d6832 35%, #0a3d1d 100%); color: #e3f5e8;
}
.cta-box::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M0 31.5h32M31.5 0v32' stroke='white' stroke-opacity='0.05'/%3E%3C/svg%3E"); pointer-events: none; }
.cta-box h2 { position: relative; color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-box p { position: relative; margin: 14px auto 0; max-width: 560px; font-size: 1.06rem; color: #c3e7cd; }
.cta-box .hero-actions { position: relative; justify-content: center; }

/* -------------------------------- footer -------------------------------- */

.site-footer { background: var(--surface-dark); color: #9fb8a5; padding: 72px 0 32px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 16px; max-width: 300px; line-height: 1.6; }
.footer-brand .tag { display: inline-block; margin-top: 18px; font: 600 0.72rem/1 var(--mono); letter-spacing: 0.14em; color: #4ade80; }
.site-footer h4 { color: #fff; font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #9fb8a5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #1f3424; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; color: #7a9580; }
.footer-bottom nav { display: flex; gap: 20px; }

/* -------------------------------- prose --------------------------------- */

.prose { font-size: 1.02rem; color: #2b3430; max-width: 760px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.025em; margin-top: 2.2em; padding-top: 0.2em; }
.prose h3 { font-size: 1.18rem; font-weight: 700; margin-top: 1.8em; }
.prose h4 { font-size: 1rem; font-weight: 700; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol, .prose li > p, .prose li > pre { margin-top: 0.5em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose code { font-size: 0.86em; background: var(--primary-soft); color: var(--primary-dark); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.prose pre { background: #0b160d; color: #d7eadb; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 0.84rem; line-height: 1.7; border: 1px solid #1d3322; position: relative; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: #f7faf6; font-weight: 700; }
.prose blockquote { margin-left: 0; padding: 14px 18px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 10px 10px 0; color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose strong { color: var(--text); }
.prose .updated { color: var(--text-3); font-size: 0.92rem; }
.prose pre .copy-btn { position: absolute; top: 10px; right: 10px; }

/* --------------------------------- docs --------------------------------- */

.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 0 96px; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; font-size: 0.92rem; }
.docs-nav h4 { font: 700 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; }
.docs-nav a:hover { background: rgba(34, 197, 94, 0.08); color: var(--text); }
.docs-nav a[aria-current='page'] { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.docs-crumbs { font-size: 0.86rem; color: var(--text-3); margin-bottom: 14px; }
.docs-crumbs a { color: var(--text-3); text-decoration: none; }
.docs-crumbs a:hover { color: var(--primary-dark); }
.docs-content h1 { font-size: clamp(2rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.6em; }
.docs-help { margin-top: 56px; padding: 22px; border-radius: 14px; background: var(--surface-alt); font-size: 0.95rem; color: var(--text-2); }
.docs-select { display: none; }

/* --------------------------------- misc --------------------------------- */

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--amber-soft); color: #78350f; font-size: 0.95rem; }
.notice strong { color: #78350f; }
.kicker { font-size: 0.92rem; color: var(--text-3); margin-top: 28px; }
.divider { height: 1px; background: var(--border); margin: 0; border: 0; }
.mt-0 { margin-top: 0 !important; }
.mt-l { margin-top: 48px; }
.contact-card { display: flex; flex-direction: column; gap: 6px; }
.contact-card a.email { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.not-found { padding: 120px 0; text-align: center; }
.not-found .code404 { font: 800 5rem/1 var(--font); letter-spacing: -0.05em; color: var(--primary-light); -webkit-text-stroke: 2px var(--primary-mid); }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero-grid, .split, .honest { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .split + .split { margin-top: 72px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .grid-4, .facts { grid-template-columns: 1fr 1fr; }
  .hero-visual .float-card { right: 12px; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .docs-nav { display: none; }
  .docs-select { display: block; }
  .docs-select select { width: 100%; font: 500 0.95rem var(--font); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); color: var(--text); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .grid-2, .grid-3, .grid-4, .steps, .plans, .facts { grid-template-columns: 1fr; }
  .touch-grid { grid-template-columns: 1fr; }
  .hero-visual .float-card { position: static; width: auto; margin-top: 14px; }
  .window-body { padding: 16px; }
  .cta-box { padding: 48px 22px; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card, .step { padding: 22px; }
  .page-hero { padding: 48px 0 40px; }
}

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