/* ==========================================================================
   Weft Docs — marketing site
   Brand-anchored design system. Cool indigo SaaS. Teal (--data) = live data ONLY.
   No webfonts, no external deps. Tokens mirror the app.
   ========================================================================== */

/* ---- Tokens: light (default) ---- */
:root {
  color-scheme:light;
  --accent:#4f46e5; --accent-hover:#4338ca; --tint:#eef0fe;
  --accent-fill:#4f46e5; --accent-fill-hover:#4338ca;   /* backgrounds under white text */
  --page:#edf0f5; --panel:#ffffff; --panel-2:#f7f8fb;
  --ink:#1b2130; --muted:#5f6775; --faint:#9aa1ad;
  --line:#e6e8ee; --line-strong:#d2d6df;
  --data:#0e7490; --data-bg:#e0f2f8;              /* teal: live/bound data ONLY */
  --chrome:#eef1f6; --weave:#4f46e5;

  --r-sm:6px; --r-md:8px; --r-lg:12px; --r-pill:999px;
  --elev-1:0 1px 2px rgba(27,33,48,.06), 0 1px 1px rgba(27,33,48,.04);
  --elev-2:0 8px 24px rgba(27,33,48,.10);
  --elev-lg:0 18px 48px rgba(27,33,48,.14);

  --font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --font-mono:ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --nav-h:64px;
  --maxw:1200px;
}

/* ---- Tokens: dark (mirrors the app) ---- */
:root[data-theme="dark"] {
  color-scheme:dark;   /* native widgets, scrollbars and focus rings follow the theme */
  /* text-on-dark indigo is lighter than the app's #6366f1, which is 4.0:1 on --page — below AA */
  --accent:#818cf8; --accent-hover:#a5b4fc; --tint:#232a46;
  --accent-fill:#4f46e5; --accent-fill-hover:#4338ca;   /* white on these: 6.3–7.9:1 */
  --page:#14161c; --panel:#1c2029; --panel-2:#20252e;
  --ink:#e6e9f0; --muted:#9aa3b2; --faint:#7c8494;
  --line:#2a2f3a; --line-strong:#3a4150;
  --data:#22a6c3; --data-bg:#0e2a33;              /* brief target, not #22d3ee */
  --chrome:#242a34; --weave:#8489f6;
  --elev-1:0 1px 2px rgba(0,0,0,.30);
  --elev-2:0 10px 30px rgba(0,0,0,.45);
  --elev-lg:0 24px 60px rgba(0,0,0,.55);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; scroll-padding-top:calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
body {
  margin:0;
  background:var(--page); color:var(--ink);
  font-family:var(--font-sans); font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  /* short pages (terms, privacy, 404) keep the footer at the bottom of the window */
  min-height:100vh; display:flex; flex-direction:column;
}
body > main { flex:1 0 auto; }
img { max-width:100%; display:block; }
a { color:var(--accent); text-decoration:none; }
a:hover { color:var(--accent-hover); }
::selection { background:var(--tint); color:var(--ink); }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.cta-band :focus-visible { outline-color:#fff; }   /* an indigo ring vanishes on the indigo band */
.skip-link { position:absolute; left:16px; top:-60px; z-index:100; padding:10px 14px; border-radius:var(--r-md); background:var(--panel); color:var(--ink); border:1px solid var(--line-strong); font-weight:600; }
.skip-link:focus { top:12px; }
h1,h2,h3,h4 { margin:0; letter-spacing:-.02em; }
p { margin:0; }
ul { margin:0; }

/* ---- Layout ---- */
.container { max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section { padding:88px 0; }
.section--tight { padding:56px 0; }
.section--panel { background:var(--panel); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head { max-width:660px; }
.section-head--center { max-width:660px; margin:0 auto; text-align:center; }
.stack-sm > * + * { margin-top:10px; }

/* ---- Type ---- */
.eyebrow {
  font-family:var(--font-mono); font-size:11px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:var(--accent); margin:0;
}
.h1 { font-size:clamp(2.4rem, 6vw, 3.5rem); line-height:1.04; font-weight:800; letter-spacing:-.035em; }
.h2 { font-size:clamp(1.7rem, 3.6vw, 2.35rem); line-height:1.1; font-weight:800; letter-spacing:-.03em; }
.h3 { font-size:1.2rem; line-height:1.3; font-weight:700; letter-spacing:-.01em; }
.lead { font-size:1.15rem; line-height:1.6; color:var(--muted); }
.muted { color:var(--muted); }
.mono { font-family:var(--font-mono); }
.measure { max-width:64ch; }
.nobr { white-space:nowrap; }

/* ---- Buttons ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:inherit; font-size:15px; font-weight:600; line-height:1;
  padding:12px 20px; border-radius:var(--r-md); border:1px solid transparent;
  cursor:pointer; transition:background .15s, border-color .15s, color .15s, transform .15s;
  white-space:nowrap;
}
.btn .arw { font-size:1.05em; line-height:1; }
.btn-primary { background:var(--accent-fill); color:#fff; box-shadow:var(--elev-1); }
.btn-primary:hover { background:var(--accent-fill-hover); color:#fff; }
.btn-secondary { background:var(--panel); color:var(--ink); border-color:var(--line-strong); }
.btn-secondary:hover { border-color:var(--accent); color:var(--accent); background:var(--panel); }
.btn-ghost { background:transparent; color:var(--muted); }
.btn-ghost:hover { color:var(--ink); }
.btn-sm { padding:9px 15px; font-size:14px; }
.btn-block { width:100%; }
.btn-on-accent { background:#fff; color:var(--accent-fill); }
.btn-on-accent:hover { color:var(--accent-fill-hover); transform:translateY(-1px); }
.btn-ghost-accent { background:transparent; color:#fff; border-color:rgba(255,255,255,.55); }
.btn-ghost-accent:hover { background:rgba(255,255,255,.12); border-color:#fff; color:#fff; }
.arrow-link { display:inline-flex; align-items:center; gap:7px; color:var(--accent); font-weight:600; font-size:14px; transition:gap .15s; }
.arrow-link:hover { gap:11px; }

/* ---- Pills / chips ---- */
.pill {
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-mono); font-size:10px; font-weight:600; letter-spacing:.09em;
  text-transform:uppercase; padding:4px 10px; border-radius:var(--r-pill);
}
.pill-live { color:var(--data); background:var(--data-bg); }
.pill-live .dot { width:6px; height:6px; border-radius:50%; background:var(--data); }
.pill-included { color:var(--accent); background:var(--tint); }
.pill-soon { color:var(--muted); background:var(--panel-2); border:1px solid var(--line); }
.pill-recommended { color:#fff; background:var(--accent-fill); }
.chip {
  font-family:var(--font-mono); font-size:12px; color:var(--ink);
  background:var(--panel-2); border:1px solid var(--line);
  padding:5px 11px; border-radius:var(--r-pill);
}
.badge-tag {
  font-family:var(--font-mono); font-size:9px; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); background:var(--tint);
  padding:3px 7px; border-radius:var(--r-pill);
}
.code {
  font-family:var(--font-mono); font-size:.86em; color:var(--ink);
  background:var(--panel-2); border:1px solid var(--line);
  padding:1px 6px; border-radius:var(--r-sm);
}

/* ---- Eyebrow pill (hero) ---- */
.eyebrow-pill {
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 13px 6px 10px; border-radius:var(--r-pill);
  background:var(--tint); border:1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.eyebrow-pill .eyebrow { color:var(--accent); }
.eyebrow-pill svg { color:var(--accent); }

/* ---- Nav ---- */
.nav {
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.nav-inner { display:flex; align-items:center; gap:22px; height:var(--nav-h); }
.brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-weight:800; font-size:19px; letter-spacing:-.02em; }
.brand:hover { color:var(--ink); }
.brand .sub { color:var(--muted); font-weight:600; }
.nav-links { display:flex; gap:26px; margin-left:12px; }
.nav-links a { color:var(--muted); font-weight:500; font-size:14.5px; white-space:nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color:var(--ink); }
.nav-right { margin-left:auto; display:flex; align-items:center; gap:14px; }
.nav-signin { color:var(--ink); font-weight:600; font-size:14.5px; white-space:nowrap; }
.nav-signin:hover { color:var(--accent); }
.theme-toggle {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:var(--r-md);
  border:1px solid var(--line); background:var(--panel); color:var(--ink); cursor:pointer;
  transition:border-color .15s;
}
.theme-toggle:hover { border-color:var(--accent); }
.theme-toggle .icon-dark { display:none; }
:root[data-theme="dark"] .theme-toggle .icon-light { display:none; }
:root[data-theme="dark"] .theme-toggle .icon-dark { display:inline-flex; }
.nav-hamburger {
  display:none; width:40px; height:40px; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:var(--r-md); background:var(--panel); color:var(--ink); cursor:pointer;
}
.nav-mobile { display:none; }

/* ---- Hero ---- */
.hero { position:relative; overflow:hidden; }
.hero-grid { display:grid; grid-template-columns:1.02fr 1.14fr; gap:52px; align-items:center; padding-top:64px; padding-bottom:84px; }
.hero-copy .h1 { margin-top:20px; }
.hero-copy .lead { margin-top:20px; max-width:34ch; }
.hero-cta { margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; }
.hero-trust { margin-top:18px; font-size:13.5px; line-height:1.5; color:var(--muted); }
.hero-trust svg { display:inline-block; vertical-align:-2px; margin-right:6px; color:var(--data); }

/* ---- Browser frame (product screenshot) ---- */
.frame {
  position:relative; border-radius:var(--r-lg); border:1px solid var(--line-strong);
  background:var(--panel); box-shadow:var(--elev-lg); overflow:hidden;
}
.frame-bar { display:flex; align-items:center; gap:7px; padding:11px 14px; border-bottom:1px solid var(--line); background:var(--chrome); }
.frame-dot { width:11px; height:11px; border-radius:50%; }
.frame-dot.r { background:#f87171; } .frame-dot.y { background:#fbbf24; } .frame-dot.g { background:#34d399; }
.frame-url {
  margin-left:12px; flex:1; max-width:320px; height:26px; border-radius:var(--r-sm);
  background:var(--page); border:1px solid var(--line);
  display:flex; align-items:center; gap:7px; padding:0 11px;
  color:var(--muted); font-family:var(--font-mono); font-size:12px; overflow:hidden; white-space:nowrap;
}
.frame-shot { display:block; width:100%; height:auto; background:var(--panel-2); }

/* ---- Weave motif (static; decorative) ---- */
.weave { position:absolute; color:var(--weave); pointer-events:none; }
.weave svg { width:100%; height:100%; }
.hero-weave { top:-30px; right:-70px; width:560px; height:300px; opacity:.12; transform:rotate(-9deg); }

/* ---- Audience strip ---- */
.audience-wrap { padding-top:22px; padding-bottom:22px; }
.audience { display:flex; flex-wrap:wrap; align-items:center; gap:14px 20px; justify-content:center; }
.audience .label { font-size:14.5px; color:var(--muted); font-weight:500; }
.audience .chips { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }

/* ---- Generic cards ---- */
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--elev-1); }
.card-pad { padding:26px; }
.icon-chip {
  width:44px; height:44px; border-radius:var(--r-md); background:var(--tint); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.icon-chip-sm { width:34px; height:34px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; }
.grid-auto { display:grid; grid-template-columns:repeat(auto-fit, minmax(210px,1fr)); gap:16px; }
.feature-card h3 { margin-top:16px; }
.feature-card p { margin-top:9px; font-size:14.5px; line-height:1.6; color:var(--muted); }
.card-pills { margin-top:14px; display:flex; flex-wrap:wrap; gap:7px; }

/* ---- Numbered step ---- */
.step { background:var(--page); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; }
.section--panel .step { background:var(--page); }
.step-num {
  width:38px; height:38px; border-radius:var(--r-md); background:var(--accent-fill); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:600; font-size:15px;
}
.step h3 { margin-top:16px; }
.step p { margin-top:9px; font-size:14.5px; line-height:1.6; color:var(--muted); }

/* ---- Wedge (before / after) ---- */
.wedge { display:grid; grid-template-columns:1fr auto 1fr; gap:28px; align-items:stretch; margin-top:40px; }
.wedge-panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--elev-1); overflow:hidden; display:flex; flex-direction:column; }
.wedge-panel .cap { padding:14px 18px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--muted); }
.wedge-body { padding:20px; }
.wedge-tokens { display:flex; flex-direction:column; gap:9px; }
.token-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 12px; border-radius:var(--r-sm); background:var(--panel-2); border:1px solid var(--line); }
.token-row .lbl { font-size:13px; color:var(--muted); }
.token { font-family:var(--font-mono); font-size:12.5px; color:var(--data); background:var(--data-bg); padding:3px 8px; border-radius:var(--r-sm); }
.wedge-shot { border-radius:var(--r-md); border:1px solid var(--line); }
.wedge-note { font-size:13px; margin-top:14px; }
.wedge-arrow { display:flex; align-items:center; justify-content:center; color:var(--accent); }

/* ---- Connectors ---- */
.connector-card { background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:20px; box-shadow:var(--elev-1); display:flex; flex-direction:column; gap:16px; }
.connector-card .top { display:flex; align-items:center; justify-content:space-between; }
.connector-logo { width:42px; height:42px; border-radius:var(--r-md); background:var(--panel-2); border:1px solid var(--line); color:var(--ink); display:flex; align-items:center; justify-content:center; }
.connector-card .name { font-weight:700; font-size:15.5px; }
.connector-card .desc { font-size:13px; color:var(--muted); margin-top:3px; line-height:1.45; }
.connector-note { margin-top:18px; font-family:var(--font-mono); font-size:12px; color:var(--muted); }
.divider-line { margin:26px 0 22px; height:1px; background:repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); }

/* ---- Trust strip ---- */
.trust-band { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.trust-row { display:flex; flex-wrap:wrap; gap:18px 40px; align-items:center; justify-content:center; }
.trust-item { display:flex; align-items:center; gap:10px; font-size:14.5px; font-weight:500; color:var(--ink); }
.trust-item svg { color:var(--accent); flex:none; }

/* ---- Comparison (vs Word) — a real table, so the pairs read as pairs to people and to crawlers ---- */
.compare { width:100%; border-collapse:separate; border-spacing:0; margin-top:36px; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--elev-1); background:var(--panel); }
.compare th, .compare td { width:50%; padding:16px 22px; text-align:left; vertical-align:top; font-size:14.5px; line-height:1.5; border-bottom:1px solid var(--line); }
.compare th { padding:18px 22px; font-weight:700; font-size:15px; }
.compare th.weft svg { vertical-align:-4px; margin-right:6px; }
.compare tbody tr:last-child td { border-bottom:0; }
.compare .old { color:var(--muted); }   /* body text: --faint fails contrast */
.compare .weft { background:var(--tint); color:var(--ink); }
.compare td .ic { display:inline-block; vertical-align:-2px; margin-right:9px; }
.compare td.old .ic { color:var(--faint); }
.compare td.weft .ic { color:var(--accent); }
.compare td::before { display:none; content:attr(data-col); font-family:var(--font-mono); font-size:10px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }

/* ---- Pricing cards ---- */
.pricing-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; align-items:stretch; }
.price-card { position:relative; background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; box-shadow:var(--elev-1); display:flex; flex-direction:column; }
.price-card.recommended { border:1.6px solid var(--accent); box-shadow:var(--elev-2); }
.price-ribbon { position:absolute; top:-11px; left:26px; }
.price-name { display:flex; align-items:center; gap:8px; font-weight:700; font-size:16px; }
.price-amt { margin-top:14px; display:flex; align-items:baseline; gap:4px; }
.price-amt .num { font-size:2.5rem; font-weight:800; letter-spacing:-.03em; }
.price-amt .per { font-size:14px; color:var(--muted); }
.price-annual { margin-top:5px; font-family:var(--font-mono); font-size:11.5px; color:var(--muted); }
.price-annual.on { color:var(--accent); }
.price-for { margin-top:8px; font-size:13.5px; color:var(--muted); }
.price-feats { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:11px; list-style:none; padding-left:0; }
.price-feats li { display:flex; gap:9px; align-items:flex-start; font-size:13.5px; line-height:1.5; color:var(--ink); }
.price-feats li svg { flex:none; margin-top:2px; color:var(--accent); }
.price-feats li.off { color:var(--muted); }
.price-feats li.off svg { color:var(--muted); }
.price-cta { margin-top:auto; padding-top:24px; }
.price-trial { margin-top:10px; font-size:12.5px; line-height:1.5; color:var(--muted); text-align:center; }
.pricing-grid--2 { grid-template-columns:repeat(2,1fr); max-width:760px; margin-left:auto; margin-right:auto; }
.pricing-grid--3 { grid-template-columns:repeat(3,1fr); max-width:1120px; margin-left:auto; margin-right:auto; }
.price-contact { margin-top:auto; padding-top:24px; }
.price-foot { margin-top:22px; font-size:12.5px; color:var(--muted); text-align:center; }

/* ---- FAQ — native <details>: collapsed from the first paint, no script, answers in the HTML ---- */
.faq { border-top:1px solid var(--line); }
.faq-item { border-bottom:1px solid var(--line); }
.faq-q { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 6px; cursor:pointer; list-style:none; color:var(--ink); }
.faq-q::-webkit-details-marker { display:none; }
.faq-q h3 { font-size:16.5px; font-weight:600; line-height:1.35; letter-spacing:0; }
.faq-q .chev { color:var(--muted); display:inline-flex; transition:transform .2s ease; flex:none; }
.faq-item[open] .chev { transform:rotate(180deg); }
.faq-a { padding:0 6px 22px; font-size:15px; line-height:1.65; color:var(--muted); max-width:70ch; }
/* one column: CSS columns re-balance as items open, so questions jumped between columns */
.faq-cols { max-width:760px; margin-left:auto; margin-right:auto; }

/* ---- CTA band ---- */
.cta-band {
  position:relative; overflow:hidden; text-align:center; border-radius:20px;
  background:linear-gradient(135deg, var(--accent-fill) 0%, var(--accent-fill-hover) 100%);
  padding:60px 40px; box-shadow:var(--elev-2); color:#fff;
}
.cta-band .weave { color:#fff; opacity:.12; top:-40px; right:-40px; width:420px; height:230px; transform:rotate(-8deg); }
.cta-band .weave.b { top:auto; right:auto; bottom:-50px; left:-40px; opacity:.09; transform:rotate(-8deg); }
.cta-inner { position:relative; }
.cta-band h2 { font-size:clamp(1.9rem, 4vw, 2.5rem); color:#fff; line-height:1.08; }
.cta-band p { margin:16px auto 0; max-width:52ch; font-size:17px; line-height:1.6; color:rgba(255,255,255,.88); }
.cta-actions { margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

/* ---- Footer ---- */
.footer { background:var(--panel); border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:32px; padding-top:52px; }
.footer .tagline { margin-top:14px; font-size:14px; color:var(--muted); max-width:30ch; line-height:1.6; }
.footer-col .footer-h { font-family:var(--font-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; font-weight:600; }
.footer-col a { display:block; color:var(--ink); font-size:14px; padding:6px 0; margin-bottom:2px; }   /* ≥24 px tall: WCAG 2.5.8 target size */
.footer-col a:hover { color:var(--accent); }
.footer-bottom { margin-top:40px; padding:22px 0 30px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.footer-bottom .fine { font-size:13px; color:var(--muted); }
.footer-bottom .mono-note { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
/* the UK trading disclosure (registered name, number, where registered, office): its own row */
.footer-bottom .legal { flex-basis:100%; font-size:12px; line-height:1.6; }

/* ---- Docs (link-out) page ---- */
.docs-start { max-width:1000px; }
.docs-start-title { font-size:1.5rem; }
.docs-help { margin-top:22px; font-size:14.5px; color:var(--muted); }
.howto-grid { margin-top:20px; display:grid; grid-template-columns:repeat(auto-fit, minmax(min(300px,100%),1fr)); gap:14px; }
.howto-card { display:flex; flex-direction:column; gap:11px; background:var(--panel); border:1px solid var(--line); border-radius:var(--r-lg); padding:18px 18px 20px; box-shadow:var(--elev-1); color:var(--ink); transition:border-color .15s, transform .15s; }
.howto-card:hover { border-color:var(--accent); transform:translateY(-2px); color:var(--ink); }
.howto-card .top { display:flex; align-items:center; gap:11px; }
.howto-card h3 { font-size:15px; }
.howto-card p { font-size:13.5px; line-height:1.55; color:var(--muted); }

/* ---- AI credits explainer (pricing) ---- */
.credits { padding:32px; }
.credits-title { margin-top:11px; font-size:1.35rem; }
.credits-grid { margin-top:22px; gap:22px; }
.credits-item { display:flex; gap:13px; align-items:flex-start; }
.credits-item .icon-chip { flex:none; }
.credits-item p { margin:0; font-size:14.5px; line-height:1.55; color:var(--muted); }
.credits-item strong { color:var(--ink); }
.packs-title { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); font-size:1rem; font-weight:700; }
.packs { margin-top:14px; display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.pack { padding:16px 18px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--panel-2); }
.pack-size { font-size:14px; font-weight:600; color:var(--ink); }
.pack-price { margin-top:6px; font-size:1.6rem; font-weight:800; letter-spacing:-.02em; color:var(--ink); }
.pack-per { margin-top:2px; font-family:var(--font-mono); font-size:11.5px; color:var(--muted); }
.packs-note { margin-top:12px; font-size:12.5px; color:var(--muted); }

/* ---- Simple pages (pricing header, docs, terms, privacy, 404) ---- */
.page-head { max-width:900px; text-align:center; padding:60px 24px 10px; }
.page-plain .page-head { padding-bottom:96px; }
.page-title { margin-top:14px; font-size:clamp(2.3rem,5vw,3.25rem); }
.page-lead { margin:18px auto 0; max-width:60ch; }
.page-note { margin:18px auto 0; max-width:60ch; font-size:15.5px; line-height:1.65; color:var(--ink); }
.page-cta { margin-top:28px; display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }

/* ---- Content pages (about, security, contact, integrations) ---- */
/* A topic: its heading on the left, the text on the right; one column on a phone. */
.topics { max-width:1000px; margin:0 auto; }
.topic { display:grid; grid-template-columns:minmax(0,15rem) minmax(0,1fr); gap:12px 44px; padding:34px 0; border-top:1px solid var(--line); }
.topic:first-child { border-top:0; padding-top:0; }
.topic-title { font-size:1.25rem; line-height:1.3; font-weight:700; letter-spacing:-.015em; }
.topic-body > * + * { margin-top:14px; }
.topic-body p, .topic-body li { font-size:15.5px; line-height:1.7; color:var(--muted); }
.topic-body strong { color:var(--ink); font-weight:600; }
.topic-body .arrow-link { font-size:14.5px; }
.ticks { list-style:none; padding:0; display:flex; flex-direction:column; gap:9px; }
.ticks li { position:relative; padding-left:26px; }
.ticks li::before { content:""; position:absolute; left:4px; top:.42em; width:5px; height:10px; border:solid var(--accent); border-width:0 2.2px 2.2px 0; transform:rotate(45deg); }
.ticks.nots li::before { top:.8em; width:10px; height:0; border-width:0 0 2px 0; border-color:var(--faint); transform:none; }
.link-row { display:flex; flex-wrap:wrap; gap:8px 22px; }
/* A data table: a header row, then one row per item, its first cell the row's heading. */
.spec { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; background:var(--panel); box-shadow:var(--elev-1); }
.spec th, .spec td { padding:13px 18px; text-align:left; vertical-align:top; font-size:14.5px; line-height:1.55; border-bottom:1px solid var(--line); }
.spec thead th { font-family:var(--font-mono); font-size:11px; letter-spacing:.09em; text-transform:uppercase; font-weight:600; color:var(--muted); background:var(--panel-2); }
.spec tbody th { font-weight:600; color:var(--ink); }
.spec td { color:var(--muted); }
.spec tbody tr:last-child > * { border-bottom:0; }
.spec td::before { display:none; content:attr(data-col); font-family:var(--font-mono); font-size:10px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); margin-bottom:3px; }
.spec-note { margin-top:14px; font-size:13.5px; line-height:1.6; color:var(--muted); }
/* Company details: label and value pairs. */
.facts-dl { display:grid; grid-template-columns:minmax(0,11rem) minmax(0,1fr); gap:9px 24px; margin:0; }
.facts-dl dt { font-size:14.5px; color:var(--muted); }
.facts-dl dd { margin:0; font-size:15px; line-height:1.55; color:var(--ink); }
.contact-card h2 { margin-top:16px; }
.contact-card p { margin-top:9px; font-size:14.5px; line-height:1.6; color:var(--muted); }
.contact-mail { display:inline-block; margin-top:14px; font-weight:700; font-size:16px; overflow-wrap:anywhere; }

/* ---- Reveal on scroll ---- */
.reveal { opacity:0; transform:translateY(16px); transition:opacity .55s cubic-bezier(.2,.6,.2,1), transform .55s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; transition:none !important; }
  * { animation:none !important; }
}
/* No-JS fallback: never leave content hidden */
.no-js .reveal { opacity:1; transform:none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:960px) {
  .hero-grid { grid-template-columns:1fr; gap:36px; padding-top:44px; padding-bottom:64px; }
  .hero-copy { text-align:center; }
  .hero-copy .lead { max-width:60ch; margin-left:auto; margin-right:auto; }
  .hero-cta { justify-content:center; }
  .grid-3 { grid-template-columns:1fr; }
  /* the comparison stacks: each pair becomes two labelled blocks */
  .compare, .compare tbody, .compare tr, .compare td { display:block; width:auto; }
  .compare thead { display:none; }
  .compare td::before { display:block; }
  .compare td.weft { border-bottom:1px solid var(--line); }
  .compare tbody tr:last-child td.weft { border-bottom:0; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
/* The full desktop nav needs ~885px (measured with the Start your trial CTA); the
   hamburger takes over below 980px to leave room for a longer label, and site.js closes
   the menu above the same width. */
@media (max-width:980px) {
  .nav-links, .nav-signin, .nav-right .btn { display:none; }   /* the theme toggle stays, beside the menu button */
  .nav-hamburger { display:inline-flex; }
  .nav-mobile { display:block; border-top:1px solid var(--line); background:var(--panel);
    /* the page is scroll-locked while the menu is open, so the menu must scroll itself or a
       landscape phone cannot reach Sign in / Start your trial */
    max-height:calc(100vh - var(--nav-h)); max-height:calc(100dvh - var(--nav-h)); overflow-y:auto; overscroll-behavior:contain; }
  body.menu-open { overflow:hidden; }
  .nav-mobile[hidden] { display:none; }
  .nav-mobile .container { display:flex; flex-direction:column; gap:4px; padding-top:14px; padding-bottom:18px; }
  .nav-mobile a { padding:12px 8px; color:var(--ink); font-weight:600; font-size:16px; border-radius:var(--r-sm); }
  .nav-mobile a:hover { background:var(--panel-2); }
  .nav-mobile .mrow { display:flex; gap:10px; margin-top:8px; }
  .nav-mobile .mrow .btn { flex:1; }
  /* .nav-mobile a sets --ink and out-ranks .btn-primary, which left dark text on indigo */
  .nav-mobile .mrow .btn-primary, .nav-mobile .mrow .btn-primary:hover { color:#fff; }
}
@media (max-width:840px) {
  .pricing-grid { grid-template-columns:1fr 1fr; }
  .pricing-grid--2 { grid-template-columns:1fr; max-width:520px; }
  .pricing-grid--3 { grid-template-columns:1fr; max-width:520px; }
  .packs { grid-template-columns:1fr; }
  .section { padding:64px 0; }
  .topic { grid-template-columns:1fr; padding:28px 0; }
}
@media (max-width:640px) {
  .grid-2 { grid-template-columns:1fr; }
  .wedge { grid-template-columns:1fr; gap:20px; }
  .wedge-arrow { transform:rotate(90deg); }
  .pricing-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:24px; }
  .cta-band { padding:40px 24px; }
  /* a data table stacks: each row becomes a block, each cell labelled by its column */
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display:block; width:auto; }
  .spec thead { display:none; }
  .spec td::before { display:block; }
  .spec th, .spec td { border-bottom:0; padding:5px 16px; }
  .spec tbody th { padding-top:14px; }
  .spec td:last-child { padding-bottom:14px; }
  .spec tbody tr { border-bottom:1px solid var(--line); }
  .spec tbody tr:last-child { border-bottom:0; }
  .facts-dl { grid-template-columns:1fr; gap:2px; }
  .facts-dl dd { margin-bottom:10px; }
}
@media (max-width:460px) {
  .footer-grid { grid-template-columns:1fr; }
}

/* ---- How-it-works screenshots + lightbox (assets/site.js) ---- */
.step-shot { display:block; margin:0 0 20px; border:1px solid var(--line); border-radius:var(--r-md, 10px); overflow:hidden; background:var(--panel-2); cursor:zoom-in; }
.step-shot img { display:block; width:100%; height:auto; aspect-ratio:16 / 10; object-fit:cover; object-position:top left; }
.step-shot:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.step-shot:hover { border-color:var(--accent); }
html.lightbox-open { overflow:hidden; }
.lightbox { padding:0; border:0; background:transparent; max-width:min(96vw, 1440px); max-height:92vh; overflow:visible; }
.lightbox::backdrop { background:rgba(8, 10, 16, .82); }
.lightbox-img { display:block; max-width:min(96vw, 1440px); max-height:88vh; width:auto; height:auto; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); background:#fff; }
.lightbox-close { position:absolute; top:-14px; right:-14px; width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.35); background:#111; color:#fff; font-size:24px; line-height:1; cursor:pointer; }
.lightbox-close:focus-visible { outline:2px solid #fff; outline-offset:2px; }
@media (max-width:640px) { .lightbox-close { top:6px; right:6px; } }
@media (prefers-reduced-motion: no-preference) { .lightbox[open] { animation:lightbox-in .18s ease-out; } }
@keyframes lightbox-in { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:none; } }
