/* Tracepaper site styles. dev/build-keyquill-site.py copies this file to keyquill-site, replacing the brand colour
   #2563eb with Keyquill's, so keep the brand written as that literal value. Pages may add their own <style> after it. */
@import url("https://cdn.shopify.com/static/fonts/inter/v4/styles.css");
:root {
  --ink: #0b1220; --ink2: #334155; --muted: #64748b; --line: #e6e8ef; --bg: #ffffff; --soft: #f6f7fb; --card: #ffffff;
  --brand: #0b63ce; --brand-ink: #ffffff; --dark: #1d1d1f;
  --brand2: color-mix(in srgb, var(--brand) 45%, #22b8e6);
  --grad: linear-gradient(135deg, var(--brand), var(--brand2));
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 18px 40px -18px rgba(15,23,42,.28);
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f1f5f9; --ink2: #cbd5e1; --muted: #94a3b8; --line: #1f2a40; --bg: #0b1120; --soft: #0f1729; --card: #111a2e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.7); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip;
  font: 17px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
img { max-width: 100%; }
code { font: 500 .9em ui-monospace, Consolas, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.top { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
header.top img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(15,23,42,.35); }
header.top .name { font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
header.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; font-weight: 500; align-items: center; }
header.top nav a { color: var(--ink2); text-decoration: none; }
header.top nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 650;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: var(--brand-ink); box-shadow: 0 10px 24px -10px var(--brand); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Generic blocks (pricing, legal, compare, guides use these) */
.hero { padding: 64px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 16px; font-weight: 850; }
.hero p { font-size: 20px; color: var(--ink2); max-width: 680px; margin: 0 auto 28px; }
.shot { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(15,23,42,.35); display: block; }
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 12px; font-weight: 820; }
.lead { color: var(--ink2); font-size: 18px; margin: 0 0 32px; max-width: 720px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.3fr 1fr; }
.split.flip > :first-child { order: 2; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink2); font-size: 15px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; }
.plan { padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.plan.pro { border: 2px solid var(--brand); }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 20px; color: var(--muted); }
.faq dt { font-weight: 700; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--ink2); }
.doc { max-width: 760px; padding-bottom: 56px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.1; margin: 40px 0 8px; }
.doc h2 { font-size: 22px; margin-top: 36px; letter-spacing: -.02em; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc p, .doc li { color: var(--ink2); }
kbd { font: 600 12px/1 ui-monospace, Consolas, monospace; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line);
  border-bottom-width: 2px; background: var(--card); color: var(--ink2); vertical-align: 2px; margin-left: 4px; }
video.shot { background: #0b1120; }

/* Pricing tiers (home and /pricing; pages add layout in their own <style>) */
.tier { background: var(--card); border-radius: 20px !important; transition: box-shadow .2s, transform .2s; }
.tier:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tier.best { border: 2px solid transparent !important; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box;
  box-shadow: 0 24px 50px -22px var(--brand) !important; }
.ribbon { background: var(--grad) !important; }
.seller, .guide .tip, .guide pre { background: var(--soft); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: 14px; background: var(--soft); margin-top: 40px; }
footer .wrap { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- Home page (h-* blocks) ---------- */
.h-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.h-nav header.top { padding: 13px 0; }
.h-nav .btn { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.h-hero { position: relative; padding: 64px 0 28px; }
.h-hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(560px 320px at 12% 18%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(620px 360px at 88% 10%, color-mix(in srgb, var(--brand2) 16%, transparent), transparent 70%); }
.h-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.h-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); box-shadow: 0 2px 8px -4px rgba(15,23,42,.15); }
.h-pill b { background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.h-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.037em; margin: 18px 0 18px; font-weight: 850; }
.h-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero .lead { font-size: 19px; margin: 0 0 26px; }
.h-hero .cta { justify-content: flex-start; }
.h-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; font-weight: 500; color: var(--ink2); }
.h-ticks li::before, .h-list li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.h-stage { position: relative; }
.h-frame { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 70px -22px rgba(15,23,42,.4); }
.h-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.h-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; } .h-bar i:nth-child(2) { background: #ffbd2e; } .h-bar i:nth-child(3) { background: #28c941; }
.h-bar span { margin: 0 auto; font-size: 12px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 1px 28px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.h-frame img, .h-frame video { display: block; width: 100%; height: auto; }
.h-float { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--card); color: var(--ink); border-radius: 14px; padding: 11px 14px;
  font-size: 13px; font-weight: 650; box-shadow: 0 18px 40px -14px rgba(15,23,42,.4), 0 0 0 1px var(--line); animation: h-bob 6s ease-in-out infinite; }
.h-float small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.h-float .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.h-float:nth-of-type(3) { animation-delay: -2s; } .h-float:nth-of-type(4) { animation-delay: -4s; }
@keyframes h-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.h-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; padding: 28px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.h-strip b { color: var(--ink); }
.h-alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-head { text-align: center; margin: 0 auto 48px; max-width: 760px; }
.h-head .lead { margin: 0 auto; }
.h-eyebrow { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.h-bento .card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; margin-bottom: 16px; box-shadow: 0 8px 18px -8px var(--brand); }
.h-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 6px; vertical-align: 2px;
  background: color-mix(in srgb, var(--brand) 12%, var(--card)); color: var(--brand); }
.h-show { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.h-show + .h-show { margin-top: 96px; }
.h-show.flip > :first-child { order: 2; }
.h-show h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 14px; }
.h-show p { color: var(--ink2); font-size: 17px; margin: 0 0 18px; }
.h-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; color: var(--ink2); font-size: 15.5px; }
.h-video { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(15,23,42,.5); background: #0b1120; }
.h-video video { display: block; width: 100%; height: auto; }
.h-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.h-steps .card::before { counter-increment: s; content: counter(s); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--grad); margin-bottom: 14px; }
.h-cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 15px; }
.h-cmp th, .h-cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.h-cmp tr:last-child td { border-bottom: 0; }
.h-cmp thead th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.h-cmp td:nth-child(2) { font-weight: 650; color: #059669; background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.h-cmp td:nth-child(3) { color: var(--muted); }
.h-faq { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.h-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.h-faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.h-faq details[open] summary::after { transform: rotate(45deg); }
.h-faq details p { margin: 0 0 18px; color: var(--ink2); }
.h-final { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; color: #fff; background: var(--grad);
  box-shadow: 0 40px 80px -30px var(--brand); }
.h-final::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 220px at 20% 0%, rgba(255,255,255,.28), transparent 70%), radial-gradient(500px 260px at 90% 110%, rgba(0,0,0,.2), transparent 70%); }
.h-final > * { position: relative; z-index: 1; }
.h-final h2 { color: #fff; margin: 0 0 12px; }
.h-final p { margin: 0 auto 28px; max-width: 560px; font-size: 18px; opacity: .92; }
.h-final .btn.primary { background: #fff; color: #0b1220; box-shadow: none; }
.h-final .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.h-final .note, .h-final .note a { color: rgba(255,255,255,.85); }

@media (max-width: 980px) {
  .h-grid, .h-show, .h-show.flip { grid-template-columns: 1fr; gap: 32px; }
  .h-show.flip > :first-child { order: 0; }
}
@media (max-width: 760px) {
  .split, .split.flip, .grid3, .plans, .h-steps { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  header.top nav { gap: 14px; font-size: 14px; }
  .h-nav header.top nav a:not(.btn) { display: none; }
  section { padding: 56px 0; }
  .h-float { display: none; }
  .h-hero .cta .btn, .h-final .cta .btn { width: 100%; }
  .h-final { padding: 44px 22px; }
  .h-cmp th, .h-cmp td { padding: 11px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .h-float { animation: none; } .btn, .card, .tier { transition: none; } }
.h-show .h-eyebrow { color: var(--brand); }

/* Crisp additions */
.cr-doc table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.cr-doc th, .cr-doc td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.cr-doc th { background: var(--soft); }
.cr-doc pre { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.cr-doc pre code { background: none; border: 0; padding: 0; }
.cr-doc blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 0 10px 10px 0; }
.cr-doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.cr-doc h3 { margin-top: 28px; }
.cr-crumbs { margin: 28px 0 -24px; font-size: 14px; }
.cr-diagram { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.cr-diagram pre.mermaid { background: none; border: 0; text-align: center; padding: 0; }
.cr-diagram details { margin-top: 10px; font-size: 14px; }
.cr-toc { list-style: none; padding: 0; margin: 10px 0 0; }
.cr-toc li { margin: 8px 0; }
.cr-links { text-align: center; margin-top: 22px; }
