:root {
  --ink: #14121f;
  --ink-2: #3d3a4f;
  --muted: #6b6880;
  --paper: #fbfaf7;
  --tint: #f2f0ea;
  --line: #e4e1d8;
  --card: #ffffff;
  --accent: #5b45e0;
  --accent-ink: #4330c4;
  --accent-soft: #ece9fd;
  --lime: #c9f26b;
  --green: #1f9d55;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 18, 31, .05), 0 12px 32px -12px rgba(20, 18, 31, .18);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 1rem/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.narrow { max-width: 760px; }

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

.eyebrow {
  font: 600 .78rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 46ch; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(91, 69, 224, .6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); box-shadow: none; }
.btn-light { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-light:hover { background: #d8f88f; border-color: #d8f88f; box-shadow: 0 8px 24px -8px rgba(201, 242, 107, .6); }
.btn-small { padding: .55em 1.1em; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(251, 250, 247, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: none; stroke: var(--lime); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: ''; transition: transform .25s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 18, 31, .25);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .2s, visibility .25s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding-inline: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.6rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; gap: .6rem; align-items: baseline; }
.hero-points li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-1px); }

.hero-visual { position: relative; min-height: 470px; }
.hero-visual::before {
  content: ''; position: absolute; inset: 6% -10% 0 8%;
  background: radial-gradient(60% 60% at 60% 40%, var(--accent-soft), transparent 70%);
  z-index: -1;
}

.mock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.mock small { display: block; color: var(--muted); font-size: .8rem; }
.mock-account { position: relative; width: min(100%, 400px); margin-left: auto; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-title { font-weight: 600; }
.pill { font-size: .75rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; }
.pill-green { background: #e3f6ea; color: var(--green); }
.mock-line { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.mock-line strong { font-size: .95rem; font-weight: 600; }
.mock-link { color: var(--accent); font-weight: 600; font-size: .88rem; }
.mock-row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }

.thumb { width: 44px; height: 44px; border-radius: 10px; display: block; flex: none; }
.thumb-a { background: linear-gradient(135deg, #6b4a32, #a87750); }
.thumb-b { background: linear-gradient(135deg, #e9e2cf, #cdbf9b); }
.thumb-c { background: linear-gradient(135deg, #2e3d34, #5f7a66); }

.chip { display: inline-block; font-size: .82rem; font-weight: 500; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.chip-solid { background: var(--ink); color: #fff; border-color: var(--ink); }

.mock-offer { position: absolute; left: 0; bottom: -24px; width: min(78%, 300px); border-color: var(--ink); }
.mock-kicker { margin: 0 0 4px; font-size: .8rem; color: var(--accent); font-weight: 600; }
.mock-offer strong { display: block; font: 700 1.1rem/1.25 var(--display); margin-bottom: 12px; }
.mock-offer-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.mock-stat { position: absolute; right: -6px; bottom: -6px; width: 180px; padding: 16px 18px; background: var(--ink); color: #fff; border-color: var(--ink); }
.mock-stat small { color: #b9b5cc; }
.mock-stat strong { display: block; font: 800 2rem/1.1 var(--display); color: var(--lime); margin: 4px 0 6px; }
.spark { width: 100%; height: 36px; display: block; }
.spark path { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .mock-offer { animation: float 7s ease-in-out infinite; }
  .mock-stat { animation: float 7s ease-in-out -3.5s infinite; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding-bottom: 150px; max-width: 480px; }
  .mock-account { margin-left: 0; }
  .mock-offer { bottom: 0; left: auto; right: 0; }
  .mock-stat { display: none; }
}

/* Strip */
.strip { background: var(--ink); color: #fff; padding: 28px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip-grid div { display: grid; gap: 2px; padding-left: 16px; border-left: 2px solid var(--lime); }
.strip-grid strong { font: 700 1.05rem/1.3 var(--display); }
.strip-grid span { color: #b9b5cc; font-size: .9rem; }
@media (max-width: 860px) { .strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .strip-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .lead { color: #cfcbe0; }
.section-dark .eyebrow { color: var(--lime); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { max-width: 60ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 2; }
}

/* Demo tabs */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.demo-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--paper); overflow-x: auto; }
.demo-tabs button {
  flex: 1 0 auto; border: 0; background: none; cursor: pointer;
  font: 600 .95rem/1 var(--body); color: var(--muted);
  padding: 12px 18px; border-radius: 10px;
  transition: background .2s, color .2s;
}
.demo-tabs button:hover { color: var(--ink); }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.demo-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); align-items: center; }
.demo-panel p { color: var(--ink-2); }
@media (max-width: 760px) { .demo-panel { grid-template-columns: 1fr; } }

.demo-ui { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.ui-label { font-weight: 600; font-size: .9rem; color: var(--muted); }
.ui-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 500; font-size: .95rem; }
.ui-option .thumb { width: 32px; height: 32px; border-radius: 8px; }
.ui-option em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .88rem; }
.ui-option.is-selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ui-row { display: flex; justify-content: space-between; padding: 6px 4px 0; font-size: .95rem; }
.ui-row strong { color: var(--green); }
.ui-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .85rem; }
.ui-cal span { color: var(--muted); font-weight: 600; font-size: .75rem; }
.ui-cal i { font-style: normal; padding: 8px 0; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.ui-cal i.is-on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }

/* Retention */
.checks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: #cfcbe0; }
.checks li strong { color: #fff; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2314121f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.flow::before { content: ''; position: absolute; left: 39px; top: 30px; bottom: 30px; width: 2px; background: linear-gradient(#3a3650, var(--lime)); }
.flow li { position: relative; display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: #1f1c2e; border: 1px solid #2e2a42; }
.flow li span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #2e2a42; font: 700 1rem/1 var(--display); color: #fff; position: relative; }
.flow li strong { display: block; }
.flow li small { color: #a7a3bb; }
.flow li.is-win { border-color: var(--lime); background: #232a17; }
.flow li.is-win span { background: var(--lime); color: var(--ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform .25s, box-shadow .25s; }
.card:hover, .card.reveal.is-visible:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.card-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Merchant tools */
.tool-list { display: grid; gap: 12px; }
.tool { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; box-shadow: 0 1px 2px rgba(20, 18, 31, .04); }
.tool:nth-child(even) { margin-left: clamp(0px, 4vw, 40px); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-a { background: var(--accent); }
.dot-b { background: var(--green); }
.dot-c { background: #e0a43a; }
.section-tint .split p:not(.lead):not(.eyebrow) { color: var(--ink-2); max-width: 52ch; }

/* Analytics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 6px; }
.metric small { color: var(--muted); font-weight: 500; }
.metric strong { font: 800 clamp(1.9rem, 3.5vw, 2.5rem)/1 var(--display); letter-spacing: -0.03em; }
.metric span { font-size: .88rem; font-weight: 600; color: var(--green); }
@media (max-width: 860px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.caption { color: var(--muted); font-size: .88rem; margin-top: 16px; }

.ai-callout {
  margin-top: 48px; display: flex; gap: 24px; align-items: flex-start;
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-soft), #f6f9e9);
  border: 1px solid #ddd8fb;
}
.ai-callout h3 { font-size: 1.4rem; }
.ai-callout p { margin: 0; color: var(--ink-2); max-width: 64ch; }
.badge { flex: none; font: 600 .75rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em; padding: .6em .9em; border-radius: 999px; background: var(--ink); color: var(--lime); }
@media (max-width: 560px) { .ai-callout { flex-direction: column; gap: 14px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 1.1rem/1.4 var(--display);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details p { color: var(--ink-2); padding-right: 44px; margin-bottom: 22px; }

/* CTA */
.cta { background: var(--ink); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; width: 640px; height: 640px; left: 50%; top: -320px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91, 69, 224, .45), transparent 65%);
}
.cta-inner { position: relative; max-width: 720px; }
.cta .lead { color: #cfcbe0; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }
.cta-note { color: #a7a3bb; font-size: .92rem; margin: 0; }

/* Footer */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { width: 100%; margin: 0; color: var(--muted); font-size: .88rem; }

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--muted); }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found .lead { margin-inline: auto; }

/* Scroll reveal (class added by main.js only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.cards .card.reveal:nth-child(2), .metrics .metric.reveal:nth-child(2), .flow li.reveal:nth-child(2) { transition-delay: .08s; }
.cards .card.reveal:nth-child(3), .metrics .metric.reveal:nth-child(3), .flow li.reveal:nth-child(3) { transition-delay: .16s; }
.cards .card.reveal:nth-child(4), .metrics .metric.reveal:nth-child(4), .flow li.reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 480px) {
  .demo-tabs button { padding: 10px 12px; font-size: .9rem; flex-basis: 0; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.plan h3 { font-size: 1.15rem; margin-bottom: .8rem; }
.plan-price { margin: 0 0 .3rem; display: flex; align-items: baseline; gap: 4px; }
.plan-price strong { font: 800 2.6rem/1 var(--display); letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-weight: 500; }
.plan-limit { font-weight: 600; margin-bottom: .8rem; }
.plan-fit { color: var(--ink-2); font-size: .95rem; flex: 1; margin-bottom: 1.4rem; }
.plan .btn { width: 100%; }
.plan-featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.plan-featured .plan-price span, .plan-featured .plan-fit { color: #cfcbe0; }
.plan-tag {
  position: absolute; top: -12px; left: 24px; margin: 0;
  font: 600 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em;
  padding: .55em .85em; border-radius: 999px; background: var(--lime); color: var(--ink);
}
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

.plan-includes { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.plan-includes h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.plan-includes ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; }
.plan-includes li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .95rem; }
.plan-includes li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%235b45e0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
@media (max-width: 1000px) { .plan-includes ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plan-includes ul { grid-template-columns: 1fr; } }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 700 1.05rem/1.2 var(--display); background: var(--paper); }
.compare tbody th { font-weight: 600; width: 26%; }
.compare small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; margin-top: 2px; }
.compare .is-us { background: var(--accent-soft); }
.compare thead .is-us { background: var(--accent); color: #fff; }
.compare .yes { display: inline-flex; align-items: center; gap: 6px; }
.compare .yes::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: #e3f6ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231f9d55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.compare .row-total > * { background: var(--paper); font-size: 1.05rem; }
.compare .row-total .is-us { background: var(--accent-soft); }
.compare .row-total strong { color: var(--accent-ink); font: 800 1.3rem/1 var(--display); }
/* Keep the row labels in view while the table scrolls sideways on phones. */
@media (max-width: 760px) {
  .compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--line); }
  .compare thead th:first-child, .compare .row-total th { background: var(--paper); }
}

/* Docs */
.docs { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 8vw, 104px); }
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.docs-aside { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-nav-group { font: 600 .74rem/1 var(--body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 24px 0 8px; }
.docs-nav-group:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.docs-nav a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.docs-nav a:hover { background: var(--tint); color: var(--ink); }
.docs-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.site-nav a[aria-current="page"] { color: var(--ink); }

.docs-menu { display: none; }
.docs-menu summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); font-weight: 600;
}
.docs-menu summary::-webkit-details-marker { display: none; }
.docs-menu summary span { color: var(--muted); font-weight: 500; font-size: .92rem; }
.docs-menu[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.docs-menu .docs-nav { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: var(--card); padding: 16px; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-aside { position: static; max-height: none; overflow: visible; }
  .docs-aside > .docs-nav { display: none; }
  .docs-menu { display: block; }
}

.doc { max-width: 760px; min-width: 0; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .4em; }
.doc h2 { font-size: 1.55rem; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.doc h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a:not(.docs-pager a) { color: var(--accent-ink); text-underline-offset: 3px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--muted); }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--tint); padding: .1em .35em; border-radius: 5px; }
.doc-lead { font-size: 1.15rem; color: var(--ink-2); }

.parts { list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 1.4em 0; }
.parts li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2em 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 48px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 .9rem/1 var(--display);
}
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 36px; bottom: 6px; width: 2px; background: var(--line); }
.steps h3 { margin: 3px 0 .35em; font-size: 1.05rem; }
.steps p { margin: 0; padding-top: 3px; }
.steps h3 + p { padding-top: 0; }

.note { padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink-2); }
.note.warn { background: #fdf3e2; border-left-color: #e0a43a; }

.doc .table-scroll { margin: 1.2em 0; }
.doc-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc-table thead th { background: var(--paper); font-weight: 600; color: var(--ink); }
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { font-weight: 600; color: var(--ink); width: 30%; }
.doc-table td { color: var(--ink-2); }

.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.docs-pager a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--card); }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.docs-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .docs-pager { grid-template-columns: 1fr; } .docs-pager .next { grid-column: 1; } }
.docs-menu summary { padding-right: 44px; font: 600 1rem/1.4 var(--body); }
.docs-menu summary::after { right: 18px; }
.docs-menu summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Doc tables become one card per row on phones. */
@media (max-width: 600px) {
  .doc .table-scroll { overflow: visible; border: 0; background: none; }
  .doc-table { min-width: 0; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: auto; }
  .doc-table tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 14px 16px; margin-bottom: 12px; }
  .doc-table td { border: 0; padding: 0; }
  .doc-table td:first-child { width: auto; font-size: 1rem; margin-bottom: 6px; }
  .doc-table td + td { margin-top: 8px; }
  .doc-table td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
}

/* Blog */
.blog { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.blog-head { margin-bottom: clamp(28px, 4vw, 44px); }
.blog-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-card a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.post-card a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.post-card h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 6px 0 8px; }
.post-card p { margin: 0; color: var(--ink-2); }
.post-more { display: inline-block; margin-top: 12px; color: var(--accent-ink); font-weight: 600; font-size: .95rem; }
.post-more::after { content: ' →'; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0; }
.post .post-meta { margin: -.2em 0 2em; }
.post .eyebrow a { color: inherit; text-decoration: none; }
.post h1 { font-size: clamp(2rem, 4.8vw, 3rem); }
.post .doc-lead { font-size: 1.2rem; }
.post .sources { font-size: .9rem; }
.post .sources li { color: var(--muted); }
.post .note { margin: 1.4em 0; }
.blog-pager { grid-template-columns: 1fr auto 1fr; align-items: center; }
.blog-pager .next { grid-column: 3; }
.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.page-numbers a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 !important; border-radius: 10px !important; font-weight: 500 !important; }
.page-numbers a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 560px) {
  .blog-pager { grid-template-columns: 1fr; }
  .blog-pager .next { grid-column: 1; }
  .page-numbers { justify-content: center; flex-wrap: wrap; }
}
.home-blog-head { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.home-blog-head h2 { margin: 0; }
.home-posts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.home-posts .post-card a { height: 100%; }
.home-posts h3 { font-size: 1.25rem; margin: 6px 0 8px; }
@media (max-width: 560px) { .home-blog-head { flex-direction: column; align-items: start; } }
.author-box { display: flex; gap: 18px; align-items: start; margin-top: 56px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.author-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 700 1.15rem/1 var(--display); }
.author-box p { margin: 0 0 .4em; }
.author-box .author-name { font: 700 1.1rem/1.2 var(--display); color: var(--ink); margin: 0; }
.author-box .author-role { color: var(--muted); font-size: .9rem; margin-bottom: .6em; }
.author-box a { font-weight: 600; font-size: .95rem; }
.author-box + .docs-pager { margin-top: 40px; }
@media (max-width: 480px) { .author-box { flex-direction: column; } }
