/* Zokiar marketing site - shared styles for every page.
   Palette is sampled from the Zokiar logo: blue -> sky -> aqua -> green -> lime. */
:root {
  --bg: #fafcfd;
  --card: #ffffff;
  --ink: #0a1626;
  --text: #142233;
  --muted: #5a6878;
  --border: #e2e9ef;

  --blue: #2864f0;
  --blue-soft: #eaf1ff;
  --sky: #3ca0dc;
  --aqua: #5fdcc0;
  --green: #12a150;
  --green-logo: #7aec7a;
  --mint: #e9f9f0;
  --mint-2: #d3f3e2;
  --lime: #b6f36b;

  --night: #061426;
  --night-2: #0a2238;
  --forest: #0b2e20;

  --grad: linear-gradient(120deg, #2864f0 0%, #3ca0dc 30%, #5fdcc0 58%, #7aec7a 80%, #b0ff5a 100%);
  --grad-btn: linear-gradient(120deg, #2864f0 0%, #1e8fc4 50%, #12a150 100%);
  --grad-text: linear-gradient(100deg, #2864f0 0%, #1d9bb5 50%, #12a150 100%);
  --grad-night: linear-gradient(140deg, #061426 0%, #08243a 50%, #0b2e20 100%);

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 22px;
  --shadow: 0 30px 60px -30px rgba(10, 34, 56, 0.35), 0 2px 6px rgba(10, 22, 38, 0.05);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
main { overflow-x: clip; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .grad-text, .grad-text.light { background: linear-gradient(100deg, #7cc4ff 0%, #5fdcc0 45%, #b6f36b 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.2; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); background-size: 160% 100%; background-position: 0% 0; color: #fff; box-shadow: 0 12px 26px -12px rgba(40,100,240,.6); transition: transform .25s ease, box-shadow .25s ease, background-position .5s ease; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 32px -12px rgba(18,161,80,.55); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(10,22,38,.6); }
.btn-dark:hover { background: var(--night-2); }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { box-shadow: 0 14px 30px -12px rgba(182,243,107,.7); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: ping 1.8s infinite; flex-shrink: 0; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }

/* ---------- nav ---------- */
.nav-shell { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; }
.nav { position: relative; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255,255,255,.74); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(226,233,239,.9); transition: box-shadow .3s ease, background .3s ease; }
.nav::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); opacity: 0; transform: scaleX(.3); transition: opacity .4s ease, transform .6s var(--ease); }
.nav-shell.scrolled .nav { background: rgba(255,255,255,.93); box-shadow: 0 14px 40px -20px rgba(10,34,56,.3); }
.nav-shell.scrolled .nav::after { opacity: 1; transform: scaleX(1); }
.nav-logo { display: flex; align-items: center; padding: 2px 4px; border-radius: 14px; transition: transform .3s var(--spring); }
.nav-logo:hover { transform: scale(1.04); }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { position: relative; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right .btn { padding: 10px 18px; font-size: 14px; }
.nav-login { font-size: 14.5px; font-weight: 600; color: var(--muted); padding: 0 10px; }
.nav-login:hover { color: var(--ink); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; }
.mobile-menu { display: none; }

/* ---------- background decoration ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.glow-blue { width: 560px; height: 560px; background: radial-gradient(circle, rgba(40,100,240,.32), transparent 70%); animation: drift 18s ease-in-out infinite; }
.glow-aqua { width: 520px; height: 520px; background: radial-gradient(circle, rgba(95,220,192,.42), transparent 70%); animation: drift 24s ease-in-out infinite reverse; }
.glow-lime { width: 600px; height: 600px; background: radial-gradient(circle, rgba(182,243,107,.5), transparent 70%); animation: drift 22s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,25px) scale(.95); } }
.grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(rgba(10,34,56,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10,34,56,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec { padding: 110px 0; }
.sec-tight { padding: 70px 0; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.kicker.green { color: var(--green); }
.sec-head h2, .h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); }
.sec-head h2 .serif, .h2 .serif { font-weight: 500; }
.sec-head p { font-size: 17.5px; color: var(--muted); margin-top: 18px; }
.on-dark { background: var(--grad-night); color: #e4eef6; overflow: hidden; }
.on-dark .sec-head h2, .on-dark .h2 { color: #fff; }
.on-dark .sec-head p { color: rgba(228,238,246,.72); }
.on-dark .kicker { color: #8fd3ff; }
.tint { background: linear-gradient(180deg, var(--bg), #eef6fd 30%, var(--mint) 70%, var(--bg)); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 160px 0 70px; overflow: hidden; text-align: center; }
.page-hero .glow-blue { top: -220px; left: -160px; }
.page-hero .glow-lime { top: -120px; right: -240px; }
.page-hero .wrap { position: relative; z-index: 1; max-width: 860px; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--night-2); margin-bottom: 24px; }
.page-hero .eyebrow img { width: 26px; height: 26px; object-fit: contain; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.page-hero h1 .serif { font-weight: 500; }
.page-hero .lead { font-size: 18.5px; color: var(--muted); max-width: 660px; margin: 0 auto; }
.page-hero .hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.card h3 { font-size: 20px; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.card p { font-size: 14.8px; color: var(--muted); }
.card .tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.card .tag.green { color: var(--green); background: var(--mint); }
.card .tag.muted { color: var(--muted); background: #f1f4f7; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--blue-soft); color: var(--blue); }
.ico.green { background: var(--mint); color: var(--green); }
.ico.aqua { background: #e3faf4; color: #0f9b80; }
.ico.grad { background: var(--grad-btn); color: #fff; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--blue); }
.card .more:hover { gap: 10px; }
.spot { --mx: 50%; --my: 50%; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(60,160,220,.12), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.spot:hover::before { opacity: 1; }
.card.dark { background: var(--grad-night); border-color: transparent; color: #fff; }
.card.dark h3 { color: #fff; } .card.dark p { color: rgba(255,255,255,.72); }
.card.dark .ico { background: rgba(124,196,255,.14); color: #8fd3ff; }

/* checklist */
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; font-size: 15px; }
.checks li::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a150' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; perspective: 1400px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 34px 30px; display: flex; flex-direction: column; position: relative; transition: transform .35s ease, box-shadow .35s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.popular { background: var(--grad-night); border: 0; color: #fff; box-shadow: 0 40px 80px -40px rgba(6,20,38,.85); }
.plan.popular::before { content: ""; position: absolute; inset: -2px; border-radius: 28px; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: var(--ink); font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
.plan-name { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--blue); margin-bottom: 4px; }
.plan.popular .plan-name { color: var(--lime); }
.plan-for { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.plan.popular .plan-for, .plan.popular .plan-sub, .plan.popular .plan-price small { color: rgba(255,255,255,.62); }
.plan-price { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.plan.popular .plan-price { color: #fff; }
.plan-price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-sub { font-size: 13px; color: var(--muted); margin: 10px 0 24px; min-height: 20px; }
.plan .checks { margin-bottom: 30px; }
.plan.popular .checks li::before { background-color: rgba(182,243,107,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6f36b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; width: 100%; }
.price-notes { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 30px; font-size: 14px; color: var(--muted); font-weight: 600; }
.price-notes span { display: flex; align-items: center; gap: 8px; }
.price-notes span::before { content: "✓"; color: var(--green); font-weight: 800; }

/* ---------- comparison table ---------- */
.compare { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.1); }
.cmp-row { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; }
.cmp-row > div { padding: 22px 26px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
.cmp-row:last-child > div { border-bottom: 0; }
.cmp-head > div { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cmp-label { font-weight: 700; color: #fff; }
.cmp-old { color: rgba(228,238,246,.55); display: flex; gap: 10px; }
.cmp-new { color: #fff; background: rgba(95,220,192,.06); display: flex; gap: 10px; }
.cmp-head .cmp-new { color: var(--lime); background: rgba(95,220,192,.1); }
.cmp-old::before, .cmp-new::before { flex-shrink: 0; font-weight: 800; }
.cmp-row:not(.cmp-head) .cmp-old::before { content: "✕"; color: #f87171; }
.cmp-row:not(.cmp-head) .cmp-new::before { content: "✓"; color: var(--lime); }

/* light table (pricing page / api) */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; font-size: 14.5px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { background: #f4f8fb; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table td.y { color: var(--green); font-weight: 800; }
.table td.n { color: #b6c0ca; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-side h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }
.faq-side p { color: var(--muted); margin: 18px 0 26px; font-size: 16.5px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-group { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 22px 0 2px; }
.faq-group:first-child { margin-top: 0; }
details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 0 24px; transition: border-color .3s, box-shadow .3s; }
details.faq[open] { border-color: #cfe0f5; box-shadow: 0 20px 40px -30px rgba(10,34,56,.4); }
details.faq summary { list-style: none; cursor: pointer; padding: 21px 0; font-weight: 700; font-size: 16.5px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
details.faq summary::-webkit-details-marker { display: none; }
.faq-plus { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .35s ease, background .3s, color .3s; }
.faq-plus::before { content: "+"; font-size: 20px; font-weight: 700; line-height: 1; }
details.faq[open] .faq-plus { transform: rotate(45deg); background: var(--grad-btn); color: #fff; }
.faq-a { color: var(--muted); font-size: 15px; }
.faq-a p { padding-bottom: 22px; }
.faq-a a { color: var(--blue); font-weight: 700; }
details.faq[open] .faq-a { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- closing CTA ---------- */
.final { position: relative; border-radius: 36px; overflow: hidden; background: var(--grad-night); padding: 90px 40px; text-align: center; color: #fff; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: -50%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 60%, rgba(40,100,240,.55), rgba(95,220,192,.55), rgba(182,243,107,.55), transparent 95%); animation: spin 10s linear infinite; }
.final::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 34px; background: var(--grad-night); }
@keyframes spin { to { transform: rotate(360deg); } }
.final .glow { z-index: -1; }
.final .glow-blue { top: -260px; left: -140px; opacity: .8; }
.final .glow-lime { bottom: -340px; right: -180px; opacity: .45; }
.final-logo { height: 64px; width: auto; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(95,220,192,.35)); }
.final h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin-bottom: 18px; }
.final p { font-size: 18px; color: rgba(255,255,255,.72); max-width: 560px; margin: 0 auto 34px; }
.final .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- prose (docs, api, legal) ---------- */
.prose-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; border-left: 2px solid var(--border); }
.toc-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 0 10px 16px; }
.toc a { padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-weight: 600; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--blue); border-left-color: var(--blue); }
.prose { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 48px 52px; max-width: 860px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 25px; letter-spacing: -0.02em; color: var(--ink); margin: 44px 0 12px; line-height: 1.25; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.prose p { margin: 0 0 14px; color: #3b4a5a; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: #3b4a5a; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(40,100,240,.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--blue); }
.prose code { font-family: var(--mono); font-size: .88em; background: #eef4fb; color: #1b4fc4; padding: 2px 6px; border-radius: 6px; }
.prose pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; background: var(--night); color: #d9e6f2; padding: 18px 20px; border-radius: 14px; overflow-x: auto; margin: 0 0 18px; white-space: pre; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 0 0 20px; font-size: 14.5px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: #f4f8fb; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.prose .note { background: var(--blue-soft); border: 1px solid #d3e2ff; border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; font-size: 15px; color: #26406e; }
.prose .draft { background: #fff7e6; border: 1px solid #fde3a7; border-left: 4px solid #f59e0b; border-radius: 12px; padding: 14px 18px; margin: 0 0 26px; font-size: 15px; color: #7a4b00; }
.prose .endpoint { border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px 6px; margin: 0 0 18px; background: #fbfdff; }
.prose .endpoint h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-all; }
.prose .method { font-family: var(--sans); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; padding: 4px 10px; border-radius: 8px; }
.prose .method.get { background: var(--mint); color: var(--green); }
.prose .method.post { background: var(--blue-soft); color: var(--blue); }
.prose .hero-box { background: linear-gradient(120deg, #eef4ff, #e9f9f0); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin: 0 0 24px; }
.prose .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 18px; }
.prose .grid .card { padding: 20px; }
.prose .grid .card h3 { margin-top: 0; font-size: 16.5px; }
.prose .updated { color: var(--muted); font-size: 14px; }
.prose .contact-box { background: linear-gradient(120deg, #eef4ff, #e9f9f0); border: 1px solid var(--border); border-radius: 18px; padding: 24px 26px; margin-top: 40px; }
.prose .contact-box h2 { margin-top: 0; }

/* ---------- footer ---------- */
footer.site { position: relative; padding: 90px 0 36px; overflow: hidden; background: linear-gradient(180deg, var(--bg), #eef5fb); }
footer.site::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.f-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.f-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.f-brand p { color: var(--muted); font-size: 14px; max-width: 300px; margin-bottom: 18px; }
.f-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 16px; }
.f-col a { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 10px; transition: color .2s, transform .2s; }
.f-col a:hover { color: var(--blue); transform: translateX(3px); }
.f-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: var(--muted); }
.f-bottom a:hover { color: var(--blue); }
.f-mark { display: flex; justify-content: center; margin-top: 50px; }
.f-mark img { width: min(520px, 80%); height: auto; opacity: .16; filter: saturate(1.2); transition: opacity .6s ease; }
.f-mark:hover img { opacity: .32; }

/* =========================================================
   Scroll animations - each section picks its own style with
   data-anim="..." (default: up). [data-stagger] staggers its
   direct children; JS assigns --d to each.
   ========================================================= */
[data-anim] { transition-property: opacity, transform, filter, clip-path; transition-duration: .9s; transition-timing-function: var(--ease); transition-delay: var(--d, 0s); }
[data-anim="up"]    { opacity: 0; transform: translateY(32px); filter: blur(8px); }
[data-anim="left"]  { opacity: 0; transform: translateX(-60px); }
[data-anim="right"] { opacity: 0; transform: translateX(60px); }
[data-anim="zoom"]  { opacity: 0; transform: scale(.88); }
[data-anim="pop"]   { opacity: 0; transform: scale(.6); transition-timing-function: var(--spring); transition-duration: .7s; }
[data-anim="flip"]  { opacity: 0; transform: perspective(1000px) rotateX(24deg) translateY(40px); transform-origin: 50% 100%; }
[data-anim="swing"] { opacity: 0; transform: perspective(1000px) rotateY(-22deg) translateX(-30px); transform-origin: 0 50%; }
[data-anim="wipe"]  { clip-path: inset(0 100% 0 0); transition-duration: 1.1s; }
[data-anim="rise"]  { opacity: 0; transform: translateY(80px) scale(.96); transition-duration: 1.1s; }
[data-anim="blur"]  { opacity: 0; filter: blur(18px); transform: scale(1.04); transition-duration: 1.2s; }
[data-anim].in-view { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }

/* split headline: each word slides up from behind a mask */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: var(--d, 0s); }
.split.in-view .w > span { transform: none; }

/* hero entrance (above the fold, runs on load) */
[data-hero] { opacity: 0; transform: translateY(26px); filter: blur(10px); animation: heroIn 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-anim], [data-hero] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .split .w > span { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .card-grid, .pricing { grid-template-columns: 1fr 1fr; }
  .card-grid.four { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .prose-wrap { grid-template-columns: minmax(0, 1fr); }
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
  .prose td, .prose th { white-space: normal; min-width: 120px; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .nav-login, .nav-right .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: block; position: fixed; top: 86px; left: 16px; right: 16px; z-index: 49; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; max-height: calc(100vh - 110px); overflow-y: auto; }
  .mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .mobile-menu a, .mobile-menu button { display: block; width: 100%; text-align: left; padding: 13px 16px; border-radius: 14px; font-weight: 700; font-size: 16px; color: var(--ink); }
  .mobile-menu a:hover, .mobile-menu button:hover { background: var(--blue-soft); }
  .mobile-menu .btn { text-align: center; margin-top: 6px; color: #fff; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-label { grid-column: 1 / -1; padding-bottom: 6px !important; border-bottom: 0 !important; background: rgba(255,255,255,.03); }
  .cmp-head .cmp-label { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 80px 0; }
  .page-hero { padding: 130px 0 50px; }
  .card-grid, .card-grid.two, .card-grid.four, .pricing { grid-template-columns: 1fr; }
  .nav-right .btn-primary { display: none; }
  .nav { padding-left: 12px; }
  .nav-logo img { height: 40px; }
  .final { padding: 64px 22px; border-radius: 28px; }
  .final::after { border-radius: 26px; }
  .cmp-row > div { padding: 16px; font-size: 14px; }
  .prose { padding: 30px 22px; border-radius: 20px; }
  .prose .grid { grid-template-columns: 1fr; }
  .table { font-size: 13.5px; } .table th, .table td { padding: 12px; }
}

/* ---------- feature rows (features page) ---------- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 50px 0; }
.feat-row.flip .feat-copy { order: 2; }
.feat-copy .tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.feat-copy .tag.green { color: var(--green); background: var(--mint); }
.h2-sm { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.h2-sm .serif { font-weight: 500; }
.feat-copy > p { font-size: 17px; color: var(--muted); margin-bottom: 22px; }
.feat-visual { position: relative; }
.feat-visual::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; background: var(--grad); filter: blur(50px); opacity: .25; z-index: -1; }
.mock-chat, .mock-inbox, .mock-funnel { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.mock-chat { display: flex; flex-direction: column; gap: 10px; background: #efeae2; background-image: radial-gradient(rgba(11,92,59,.07) 1px, transparent 1px); background-size: 14px 14px; }
.mc-in, .mc-out { max-width: 80%; padding: 10px 13px; border-radius: 12px; font-size: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.mc-in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.mc-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.mc-out b { display: block; font-size: 11px; color: var(--blue); }
.mc-handoff { align-self: center; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); background: rgba(255,255,255,.8); padding: 6px 14px; border-radius: 999px; }
.mock-inbox { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.mi-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; transition: background .2s; }
.mi-row:hover { background: #f4f8fb; }
.mi-row .av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.mi-row div { flex: 1; min-width: 0; }
.mi-row b { display: block; font-size: 14.5px; color: var(--ink); }
.mi-row div span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-row .st { font-style: normal; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.st.open { background: var(--blue-soft); color: var(--blue); } .st.ai { background: #e3faf4; color: #0f9b80; } .st.fu { background: #fef3c7; color: #a16207; } .st.done { background: var(--mint); color: var(--green); }
.mock-funnel { display: flex; flex-direction: column; gap: 16px; }
.mf-row { display: grid; grid-template-columns: 90px 1fr 48px; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.mf-row i { height: 14px; border-radius: 999px; background: #eef3f8; position: relative; overflow: hidden; }
.mf-row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 999px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.mock-funnel.in-view .mf-row i::after { transform: scaleX(1); }
.mf-row:nth-child(2) i::after { transition-delay: .15s; } .mf-row:nth-child(3) i::after { transition-delay: .3s; } .mf-row:nth-child(4) i::after { transition-delay: .45s; }
.mf-row b { text-align: right; color: var(--blue); }
.mf-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- industry detail rows ---------- */
.ind-detail { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; padding: 44px; border-radius: 28px; background: var(--card); border: 1px solid var(--border); margin-bottom: 22px; scroll-margin-top: 110px; }
.ind-detail .big-emoji { font-size: 54px; line-height: 1; margin-bottom: 18px; display: inline-block; }
.ind-detail h2 { font-size: 30px; letter-spacing: -0.025em; color: var(--ink); line-height: 1.15; margin-bottom: 10px; }
.ind-detail .who { color: var(--muted); font-size: 15px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 24px; }
.flow span { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: #f2f7fc; color: var(--night-2); }
.flow span.arrow { background: none; padding: 0; color: var(--sky); }
.ind-detail .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }

/* ---------- roadmap ---------- */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.road-col { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 26px; }
.road-col h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--ink); margin-bottom: 18px; }
.road-col h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.road-item { padding: 14px 16px; border-radius: 14px; background: #f6f9fc; font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 10px; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.road-item:hover { border-color: #cfe0f5; transform: translateX(4px); }

/* ---------- blog ---------- */
.post { display: flex; flex-direction: column; }
.post .thumb { height: 160px; border-radius: 16px; margin: -10px -10px 22px; position: relative; overflow: hidden; }
.post .thumb span { position: absolute; left: 16px; bottom: 14px; font-size: 40px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { text-align: center; padding: 38px 28px; }
.contact-card .ico { margin: 0 auto 18px; width: 56px; height: 56px; border-radius: 18px; }
.contact-card .btn { margin-top: 20px; }

@media (max-width: 1020px) {
  .feat-row { grid-template-columns: 1fr; gap: 36px; padding: 36px 0; }
  .feat-row.flip .feat-copy { order: 0; }
  .ind-detail { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .road, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ind-detail { padding: 24px; }
  .ind-detail .checks { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about-brand { text-align: center; max-width: 680px; margin: 0 auto; }
.about-brand img { width: min(420px, 80%); height: auto; margin: 0 auto 22px; filter: drop-shadow(0 20px 40px rgba(40,100,240,.18)); }
.about-brand p { font-size: 18px; color: var(--muted); }
.story { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.story-item { display: flex; gap: 28px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 34px 36px; }
.story-item .num { font-size: 52px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; flex-shrink: 0; }
.story-item h2 { font-size: 24px; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.story-item p { color: var(--muted); font-size: 16px; }
.visit { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding: 50px; }
.visit p { margin-bottom: 26px; font-size: 16.5px; }
.visit .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.visit-addr { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 24px; font-size: 14.5px; color: rgba(255,255,255,.75); line-height: 1.7; }
.visit-addr b { display: block; color: #fff; font-size: 16px; margin-bottom: 6px; }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; padding: 32px 24px; } .story-item { flex-direction: column; gap: 12px; padding: 26px; } }

/* ---------- integrations hub ---------- */
.hub { position: relative; width: min(560px, 100%); aspect-ratio: 1.6; margin: 0 auto; }
.hub-ring { position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; border: 2px dashed #cfe0f5; animation: spin 40s linear infinite; }
.hub-core { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%,-50%) scale(.4); opacity: 0; border-radius: 30px; background: #fff; box-shadow: 0 30px 60px -20px rgba(40,100,240,.45), 0 0 0 8px rgba(95,220,192,.15); display: flex; align-items: center; justify-content: center; transition: transform .8s var(--spring), opacity .5s; }
.hub-core img { width: 72px; height: auto; }
.hub.in-view .hub-core { transform: translate(-50%,-50%) scale(1); opacity: 1; }
.hub-node { position: absolute; left: 50%; top: 50%; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; white-space: nowrap; transform: translate(-50%,-50%) scale(.3); opacity: 0; transition: transform .9s var(--spring), opacity .5s; }
.hub.in-view .hub-node { opacity: 1; }
.hub.in-view .n1 { transform: translate(calc(-50% - 0px), calc(-50% - 150px)); transition-delay: .2s; }
.hub.in-view .n2 { transform: translate(calc(-50% + 210px), calc(-50% - 70px)); transition-delay: .3s; }
.hub.in-view .n3 { transform: translate(calc(-50% + 210px), calc(-50% + 70px)); transition-delay: .4s; }
.hub.in-view .n4 { transform: translate(calc(-50% - 0px), calc(-50% + 150px)); transition-delay: .5s; }
.hub.in-view .n5 { transform: translate(calc(-50% - 210px), calc(-50% + 70px)); transition-delay: .6s; }
.hub.in-view .n6 { transform: translate(calc(-50% - 210px), calc(-50% - 70px)); transition-delay: .7s; }
.code-snippet { max-width: 760px; margin: 0 auto; background: var(--night); border-radius: 20px; padding: 18px 24px 22px; box-shadow: var(--shadow); }
.cs-dots { display: flex; gap: 6px; margin-bottom: 14px; } .cs-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.cs-dots i:nth-child(1) { background: #f87171; } .cs-dots i:nth-child(2) { background: #fbbf24; } .cs-dots i:nth-child(3) { background: #4ade80; }
.code-snippet pre { font-family: var(--mono); font-size: 14px; color: #bfe3ff; line-height: 1.7; overflow-x: auto; }
.sec-head code { font-family: var(--mono); font-size: .9em; background: #eef4fb; color: #1b4fc4; padding: 2px 6px; border-radius: 6px; }
@media (max-width: 640px) {
  .hub { aspect-ratio: 1; }
  .hub-node { font-size: 12px; padding: 7px 11px; }
  .hub.in-view .n2, .hub.in-view .n3 { --x: 105px; } .hub.in-view .n5, .hub.in-view .n6 { --x: -105px; }
  .hub.in-view .n1 { transform: translate(-50%, calc(-50% - 130px)); } .hub.in-view .n4 { transform: translate(-50%, calc(-50% + 130px)); }
  .hub.in-view .n2 { transform: translate(calc(-50% + 105px), calc(-50% - 60px)); } .hub.in-view .n3 { transform: translate(calc(-50% + 105px), calc(-50% + 60px)); }
  .hub.in-view .n5 { transform: translate(calc(-50% - 105px), calc(-50% + 60px)); } .hub.in-view .n6 { transform: translate(calc(-50% - 105px), calc(-50% - 60px)); }
  .hub-ring { width: 80%; }
}

/* ---------- industries jump links ---------- */
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.jump a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: 14px; transition: border-color .2s, color .2s, transform .2s; }
.jump a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- small shared bits (contact / help / roadmap / community) ---------- */
.tip { max-width: 760px; margin: 30px auto 0; text-align: center; padding: 16px 22px; border-radius: 16px; background: linear-gradient(120deg, #eef4ff, #e9f9f0); border: 1px solid var(--border); font-size: 15px; color: var(--night-2); }
.tip a { color: var(--blue); font-weight: 700; }
.center-note { text-align: center; color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.help-search { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 30px auto 0; padding: 6px 8px 6px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 20px 40px -24px rgba(40,100,240,.4); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.help-search:focus-within { border-color: var(--blue); box-shadow: 0 20px 40px -20px rgba(40,100,240,.5); }
.help-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 12px 0; background: transparent; color: var(--ink); min-width: 0; }
.help-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.help-topics a { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: 14.5px; transition: border-color .2s, color .2s, transform .2s; }
.help-topics a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.help-list { max-width: 820px; margin: 0 auto; }
.help-list .faq-group { scroll-margin-top: 110px; }
.no-results { text-align: center; color: var(--muted); padding: 20px; }
button.card { font: inherit; color: inherit; width: 100%; }
.price-ask { text-align: center; margin-top: 30px; font-size: 15.5px; color: var(--muted); }
.price-ask button, .price-ask a { color: var(--blue); font-weight: 700; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.price-ask + .price-notes { margin-top: 14px; }
