/* Provomatic product website. System fonts only, nothing loaded from other hosts. */

:root {
  color-scheme: light;
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f0f0f7;
  --border: #e2e2ec;
  --text: #16161f;
  --muted: #555566;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eceafe;
  --brand-ink: #ffffff;
  --accent: #0d9488;
  --ok: #15803d;
  --warn: #b45309;
  --code-bg: #f1f1f6;
  --shadow: 0 1px 2px rgba(20, 20, 40, .06), 0 8px 24px rgba(20, 20, 40, .06);
  --radius: 14px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d14;
    --surface: #15151f;
    --surface-2: #1c1c29;
    --border: #2a2a3a;
    --text: #ececf3;
    --muted: #a3a3b8;
    --brand: #8b85ff;
    --brand-strong: #a5a0ff;
    --brand-soft: #23214a;
    --brand-ink: #0d0d14;
    --accent: #2dd4bf;
    --ok: #4ade80;
    --warn: #fbbf24;
    --code-bg: #1c1c29;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d14;
  --surface: #15151f;
  --surface-2: #1c1c29;
  --border: #2a2a3a;
  --text: #ececf3;
  --muted: #a3a3b8;
  --brand: #8b85ff;
  --brand-strong: #a5a0ff;
  --brand-soft: #23214a;
  --brand-ink: #0d0d14;
  --accent: #2dd4bf;
  --ok: #4ade80;
  --warn: #fbbf24;
  --code-bg: #1c1c29;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

code, kbd, pre { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: .9em; }
code { background: var(--code-bg); padding: .1em .4em; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; overflow-wrap: normal; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -100px; background: var(--brand); color: var(--brand-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--brand); flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; padding: .45rem .7rem; border-radius: 8px; font-weight: 550; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .lang { border: 1px solid var(--border); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); padding: .75rem 16px 1.25rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { display: block; padding: .7rem .8rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-weight: 650; text-decoration: none; border: 1px solid transparent; min-height: 46px; }
.btn:hover { background: var(--brand-strong); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-light { background: #fff; color: #1e1b4b; }
.btn-light:hover { background: #eef; color: #1e1b4b; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent), radial-gradient(closest-side at 70% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 650; color: var(--brand); background: var(--brand-soft); padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1.2rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero .lead { font-size: 1.2rem; }
.hero-shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .45rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%234f46e5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.page-head { padding: 56px 0 24px; }
.page-head .lead { margin-bottom: 0; }

.grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card .icon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.card .icon svg { width: 22px; height: 22px; }
.card ul { padding-left: 1.1rem; color: var(--muted); margin: .4rem 0 0; }
.card li + li { margin-top: .25rem; }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); vertical-align: middle; }
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.badge-soon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }

/* Long text pages */
.prose { max-width: 50rem; }
.prose h2 { margin-top: 2.4rem; padding-top: .4rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 650; }
.note { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.note p:last-child { margin: 0; }
.note-warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }

.with-toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: 8px; }
@media (min-width: 1020px) { .with-toc { grid-template-columns: 220px minmax(0, 1fr); } .toc { position: sticky; top: 90px; align-self: start; } }
.toc { padding-top: 56px; }
.toc-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: .3rem .9rem; color: var(--muted); text-decoration: none; font-size: .93rem; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--brand); }
.toc-content .page-head { padding-left: 0; padding-right: 0; }
.toc-content .page-head .wrap, .toc-content .section .wrap { padding: 0; }
@media (max-width: 1019px) { .toc { display: none; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding: 1.2rem 1.3rem 1.2rem 4.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps > li::before { content: counter(step); position: absolute; left: 1.2rem; top: 1.15rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 750; }
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); }
.steps p:last-child { margin-bottom: 0; }

/* Screenshots */
.shots { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shot { margin: 0; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.shot button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.shot figcaption { margin-top: .7rem; color: var(--muted); font-size: .95rem; }
.shot figcaption strong { color: var(--text); display: block; }
.lightbox { position: fixed; inset: 0; background: rgba(5, 5, 12, .88); z-index: 200; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1600px, 100%); max-height: 92vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; width: 48px; height: 48px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 1.2rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; overflow-x: auto; }
.compare th, .compare td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface-2); }

/* CTA */
.cta { padding: 56px 0 72px; }
.cta-inner { background: linear-gradient(120deg, #4338ca, #6d28d9 60%, #0f766e); color: #fff; border-radius: 20px; padding: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 720px) { .cta-inner { padding: 2.6rem 3rem; } }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { color: #e0e0ff; margin: 0; max-width: 40rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 26rem; margin-top: .9rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--text) !important; }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 22%, transparent); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; max-width: 46rem; }
.footer-switches { display: flex; flex-wrap: wrap; gap: .6rem; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button { font: inherit; font-size: .85rem; padding: .35rem .7rem; border-radius: 7px; border: 0; background: none; color: var(--muted); cursor: pointer; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.seg a:hover, .seg button:hover { color: var(--text); text-decoration: none; }
.seg [aria-current="true"], .seg [aria-pressed="true"] { background: var(--surface-2); color: var(--text); font-weight: 650; }

/* Payment provider blocks */
.provider { display: grid; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--border); }
.provider:first-of-type { border-top: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 1rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
