:root {
  --bg: #ffffff; --bg-soft: #f6f7fb; --bg-card: #ffffff; --fg: #111827; --fg-soft: #4b5563; --muted: #6b7280;
  --line: #e5e7eb; --brand: #4f46e5; --brand-ink: #4338ca; --brand-soft: #eef2ff; --ok: #059669;
  --hero-a: #111330; --hero-b: #312e81; --code-bg: #0f172a; --code-fg: #e2e8f0;
  --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14; --bg-soft: #11141d; --bg-card: #151925; --fg: #e5e7eb; --fg-soft: #b6bcc8; --muted: #8b93a3;
    --line: #262b38; --brand: #8b8cf6; --brand-ink: #a5a6ff; --brand-soft: #1c1f3a; --ok: #34d399;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 99; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--fg-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 10px; color: var(--fg); font: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border-radius: 10px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--bg-card); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.light { background: #fff; color: #312e81; }
.btn.outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn.sm { padding: 7px 14px; font-size: .9rem; }

/* hero */
.hero { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #fff; overflow: hidden; }
.hero .wrap { padding-top: 80px; padding-bottom: 0; text-align: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: #c7d2fe;
  border: 1px solid rgba(199, 210, 254, .35); border-radius: 999px; padding: 4px 12px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 auto 18px; max-width: 900px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c7d2fe; max-width: 720px; margin: 0 auto 30px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.hero .fine { color: #a5b4fc; font-size: .9rem; margin: 0 0 48px; }
.hero-shot { max-width: 1060px; margin: 0 auto; border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); border-bottom: 0; }

/* sections */
section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--fg-soft); margin: 0; font-size: 1.08rem; }
.kicker { color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 60px 0; } }

.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--fg-soft); font-size: .97rem; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icon svg { width: 22px; height: 22px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num { font-weight: 800; color: var(--brand); font-size: .9rem; letter-spacing: .04em; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-bottom: 88px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.25; margin: 0 0 12px; }
.feature p { color: var(--fg-soft); margin: 0 0 14px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--fg-soft); }
.feature li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-card); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature.flip .text { order: 0; } }

/* logos / providers */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { border: 1px solid var(--line); background: var(--bg-card); border-radius: 999px; padding: 7px 14px; font-size: .92rem; color: var(--fg-soft); font-weight: 500; }
.chip.strong { color: var(--fg); }

/* video */
.video { max-width: 980px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }

/* pricing */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.01em; }
.plan .per { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--fg-soft); border-top: 1px solid var(--line); font-size: .96rem; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.badge { display: inline-block; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .03em; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--fg-soft); margin: 12px 0 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; border-radius: 20px; padding: 56px 32px; text-align: center; }
.cta-band h2 { margin: 0 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { margin: 0 0 26px; color: #c7d2fe; }
.cta-band .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* page header (inner pages) */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.page-head h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.01em; line-height: 1.2; }
.page-head p { margin: 0; color: var(--fg-soft); font-size: 1.1rem; max-width: 760px; }

/* docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 40px 20px 80px; }
.docs-nav { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.docs-nav h4 { margin: 18px 0 6px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--fg-soft); font-size: .95rem; }
.docs-nav a:hover { background: var(--bg-soft); text-decoration: none; color: var(--fg); }
.docs-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; gap: 24px; } .docs-nav { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 12px; } }
.prose { min-width: 0; overflow-wrap: anywhere; }
.prose pre { overflow-wrap: normal; }
.prose h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 18px; letter-spacing: -.01em; }
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose h4 { font-size: 1rem; margin: 22px 0 6px; }
.prose p, .prose li { color: var(--fg-soft); }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose code { font: .88em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--fg); }
.prose pre { background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .88rem; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--fg); }
.prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .headerlink { opacity: 0; margin-left: 6px; text-decoration: none; }
.prose h2:hover .headerlink, .prose h3:hover .headerlink { opacity: .6; }
.doc-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* doc cards on the docs index */
.doc-card { display: block; color: inherit; }
.doc-card:hover { text-decoration: none; border-color: var(--brand); }
.doc-card .card { height: 100%; transition: border-color .15s; }
.doc-card:hover .card { border-color: var(--brand); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: .93rem; background: var(--bg-soft); }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h5 { margin: 0 0 10px; color: var(--fg); font-size: .9rem; }
.site-foot a { display: block; color: var(--fg-soft); padding: 3px 0; }
.site-foot .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-intro h2 { margin: 0 0 20px; font-size: 1.5rem; }
.contact-intro .fine { color: var(--muted); font-size: .9rem; margin-top: 24px; }
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li { display: flex; gap: 14px; padding: 12px 0; }
.reasons li .icon { flex: none; width: 38px; height: 38px; }
.reasons strong { display: block; }
.reasons p { margin: 2px 0 0; color: var(--fg-soft); font-size: .95rem; }
.contact-form { padding: 28px; }
.contact-form .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-size: .88rem; font-weight: 600; margin: 16px 0 6px; }
.contact-form .frow label { margin-top: 0; }
.contact-form .frow + .frow label { margin-top: 16px; }
.contact-form .req { color: var(--brand); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: .97rem;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none;
  border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--fg-soft); margin: 18px 0 20px; line-height: 1.5; }
.contact-form label.consent input { width: auto; margin-top: 4px; flex: none; }
.contact-form .btn { width: 100%; }
.contact-form .btn:disabled { opacity: .7; cursor: progress; }
.form-status { display: none; margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.form-status.err { display: block; background: color-mix(in srgb, #dc2626 12%, transparent); color: #dc2626; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .contact-form .frow { grid-template-columns: 1fr; gap: 0; } .contact-form .frow label { margin-top: 16px; } .contact-form { padding: 20px; } }

.note { border: 1px solid var(--line); background: var(--bg-soft); border-radius: 12px; padding: 14px 18px; color: var(--fg-soft); }
.center { text-align: center; }
.mt { margin-top: 32px; }
