/* ChurnAnchor marketing + docs site */
@font-face { font-family: "Jakarta"; src: url(/fonts/jakarta.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url(/fonts/jakarta-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --brand: #0d6b4f;
  --brand-600: #0a5a42;
  --brand-50: #ecf7f2;
  --brand-100: #d4eee3;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg-soft: #f6f8fa;
  --red: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px -8px rgba(15, 27, 45, .12);
  --shadow-lg: 0 2px 4px rgba(15, 27, 45, .05), 0 24px 48px -16px rgba(15, 27, 45, .22);
  --font: "Jakarta", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16.5px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
code { font: 500 .86em var(--mono); background: var(--bg-soft); border: 1px solid var(--line); padding: .08em .38em; border-radius: 6px; overflow-wrap: anywhere; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 880px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.screen-reader-text { position: absolute !important; 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; border-radius: 10px; font: 600 15px/1 var(--font); text-decoration: none; border: 1px solid transparent; padding: 11px 18px; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(13, 107, 79, .3), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(15, 27, 45, .05); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-white { background: #fff; color: var(--brand-600); }
.btn-white:hover { background: var(--brand-50); color: var(--brand-600); }
.btn-ghost-white { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-white:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 36px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font); letter-spacing: -.02em; color: var(--ink); text-decoration: none; margin: 0; }
.logo .mark { width: 30px; height: 30px; color: var(--brand); }
.masthead nav { display: flex; gap: 28px; flex: 1; }
.masthead nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--brand); }

/* Hero */
.hero { text-align: center; padding: 88px 0 56px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 14px 6px 10px; border: 1px solid var(--brand-100); background: #fff; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--brand-600); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.hero h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; margin: 0 auto; max-width: 15em; text-wrap: balance; overflow-wrap: anywhere; }
.section h2, .prose h1 { text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 40em; margin: 22px auto 0; line-height: 1.6; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 0; margin: 28px 0 0; font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--brand); }

/* Stage: demo store + dashboard card */
.stage { padding: 8px 0 96px; }
.stage-inner { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
.store { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; margin-right: -56px; }
.stage-inner .store-main { padding-right: 88px; }
.store-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.store-name { font: 700 17px/1 Georgia, "Times New Roman", serif; color: #3b2a1a; letter-spacing: .01em; }
.store-nav { display: flex; gap: 22px; font-size: 13.5px; color: #6b5d4f; }
.store-nav .on { color: #3b2a1a; font-weight: 600; }
.store-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.store-menu { display: flex; flex-direction: column; padding: 28px 0 28px 28px; font-size: 14px; color: #5b6472; }
.store-menu span { padding: 9px 12px; border-left: 2px solid transparent; }
.store-menu .on { border-left-color: #3b2a1a; color: #1e1e1e; font-weight: 600; background: #f7f5f0; }
.store-main { padding: 28px 36px 18px; color: #1e1e1e; font: 400 16px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; min-height: 560px; }
.demo-badge { display: inline-block; margin: 0 0 14px; font: 600 11.5px/1 var(--font); letter-spacing: .02em; color: var(--brand-600); background: var(--brand-50); border: 1px dashed var(--brand-100); padding: 6px 10px; border-radius: 6px; }
.demo-flow { --ca-accent: #3b2a1a; max-width: 620px; margin: 0; }
.demo-flow .ca-title { font-size: 1.45em; }
.demo-flow .ca-actions { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.demo-note { font-size: 13.5px; color: #4b5563; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 1.2em; }
[data-step][hidden] { display: none !important; }
.stage-card { position: relative; z-index: 1; margin: 180px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); }
.stage-card img { border-radius: 8px; border: 1px solid var(--line); }
.stage-card figcaption { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 10px 6px 4px; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.eyebrow { font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--brand); margin: 0 0 12px; }
.section h2, .cta-band h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.section-head p:not(.eyebrow) { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 26px; overflow: hidden; box-shadow: var(--shadow); }
.step-img { height: 260px; overflow: hidden; background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); padding: 22px 22px 0; }
.step-img img { width: 100%; border-radius: 8px 8px 0 0; box-shadow: 0 0 0 1px var(--line), 0 8px 20px -8px rgba(15, 27, 45, .2); background: #fff; }
.step-img-wide { padding: 22px 0 0 22px; }
.step-img-wide img { width: 150%; max-width: none; border-radius: 8px 0 0 0; }
.step-n { margin: 22px 26px 4px; font-size: 13px; font-weight: 700; color: var(--brand); }
.step h3 { margin: 0 26px 8px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.step p:last-child { margin: 0 26px; color: var(--ink-2); font-size: 15.5px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature svg { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17.5px; font-weight: 700; margin: 18px 0 6px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split h2 { max-width: 13em; }
.lead { font-size: 18px; color: var(--ink-2); margin: 18px 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.ledger { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px 10px; overflow-x: auto; }
.ledger-title { font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 0 0 12px; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
.ledger td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); }
.ledger .r { text-align: right; padding-right: 0; white-space: nowrap; }
.ledger tfoot td { border-bottom: 0; font-weight: 700; padding-top: 14px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); }
.badge-ok { background: var(--brand-50); color: var(--brand-600); }
.badge-bad { background: #fef3f2; color: var(--red); }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; margin-bottom: 24px; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 14px; font-weight: 700; color: var(--ink); background: #fbfcfd; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare .us { background: var(--brand-50); font-weight: 600; color: var(--brand-600); }
.compare thead .us { background: var(--brand); color: #fff; }

.faq details { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 8px; color: var(--ink-2); }
.faq details > div p { margin: 0 0 14px; }

.cta-band { background: var(--brand); color: #fff; text-align: center; padding: 88px 0; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 36em; margin: 18px auto 0; }
.cta-band .sha { font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-top: 30px; }
.cta-band .sha code { background: transparent; border: 0; color: inherit; }

/* Footer */
.colophon { background: var(--ink); color: #cbd5e1; padding: 56px 0 64px; font-size: 14.5px; }
.colophon .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.colophon .logo { color: #fff; margin-bottom: 14px; }
.colophon .logo .mark { color: var(--brand); }
.colophon .col-a p:not(.logo) { max-width: 30em; margin: 0; color: #94a3b8; }
.colophon .col-b { display: flex; flex-direction: column; gap: 9px; }
.colophon .label { color: #fff; font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.colophon .col-b a { color: #94a3b8; text-decoration: none; }
.colophon .col-b a:hover { color: #fff; }

/* Docs and guides */
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 40px; padding-bottom: 96px; }
.sidenav { position: sticky; top: 96px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 120px); overflow: auto; }
.sidenav .label { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.sidenav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.sidenav li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.sidenav li a:hover { background: var(--bg-soft); color: var(--ink); }
.sidenav li a[aria-current] { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.prose { max-width: 740px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.prose h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0 0 18px; }
.prose .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; }
.stamp { font-size: 13.5px; color: var(--muted); margin: 0 0 28px; }
.onpage { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 40px; }
.onpage .label { font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.onpage ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.onpage li { padding: 3px 0; break-inside: avoid; }
.prose h2 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 56px 0 14px; padding-top: 8px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 30px 0 8px; letter-spacing: -.01em; }
.prose p { margin: 0 0 16px; color: #1e293b; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; color: #1e293b; }
.prose li { margin: 0 0 8px; }
.prose li::marker { color: var(--brand); }
.prose img { border: 1px solid var(--line); border-radius: 10px; margin: 24px 0; box-shadow: var(--shadow); }
.prose .table { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th { background: var(--bg-soft); text-align: left; font-size: 13.5px; font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose pre { background: var(--ink); color: #e2e8f0; padding: 18px 20px; overflow: auto; font: 400 13.5px/1.6 var(--mono); border-radius: 10px; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.note { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 10px; padding: 14px 18px; margin: 22px 0; font-size: 15.5px; color: #134e3a; }

.notfound { padding-top: 120px; padding-bottom: 160px; text-align: center; }
.notfound .label { font-weight: 800; color: var(--brand); font-size: 15px; }
.notfound h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 14px; }
.notfound .lede { font-size: 18px; color: var(--ink-2); }

/* Responsive */
@media (max-width: 1080px) {
  .stage { padding-bottom: 64px; }
  .stage-inner { grid-template-columns: minmax(0, 1fr); }
  .store { margin-right: 0; }
  .stage-inner .store-main { padding-right: 36px; }
  .stage-card { width: auto; max-width: 560px; margin: 24px auto 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 900px) {
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .step-img { height: 300px; }
  .store-body { grid-template-columns: minmax(0, 1fr); }
  .store-menu, .store-nav { display: none; }
  .store-main { padding: 22px 20px 10px; min-height: 0; }
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .sidenav { position: static; max-height: none; order: 2; border-top: 1px solid var(--line); padding-top: 24px; }
  .onpage ol { columns: 1; }
  .colophon .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .colophon .col-a { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead .wrap { height: auto; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; padding-bottom: 10px; justify-content: space-between; }
  .masthead nav { order: 3; flex: 0 0 100%; gap: 20px; overflow-x: auto; }
  html { scroll-padding-top: 120px; }
  .hero { padding: 56px 0 40px; }
  .section { padding: 64px 0; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .faq summary::after { transition: none; } }
@media print { .masthead, .sidenav, .colophon, .cta-band { display: none; } }
