/* Payzuno design system — shared across every generated page.
 * Extracted verbatim from the original single-page inline <style> so the look
 * is pixel-identical, then extended with prose / breadcrumb / docs-layout rules
 * that the new multi-page content needs. One external file → one cached download
 * for the whole site. */
:root {
  --indigo: #4F46E5; --indigo-600: #4338CA; --cyan: #22D3EE;
  --bg: #ffffff; --surface: #f7f8fb; --surface-2: #eef0f6;
  --ink: #0f1222; --muted: #5b6178; --border: #e4e7f0;
  --radius: 14px; --maxw: 1080px;
  color-scheme: light dark;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d18; --surface: #12152a; --surface-2: #1a1e38;
    --ink: #eef0fb; --muted: #a3a9c6; --border: #242a48;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d18; --surface: #12152a; --surface-2: #1a1e38;
  --ink: #eef0fb; --muted: #a3a9c6; --border: #242a48;
}
:root[data-theme="light"] {
  --bg: #ffffff; --surface: #f7f8fb; --surface-2: #eef0f6;
  --ink: #0f1222; --muted: #5b6178; --border: #e4e7f0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 10px;
       font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--indigo); color: #fff; }
.btn.primary:hover { background: var(--indigo-600); }
.btn.ghost { border-color: var(--border); background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }

/* header */
header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
         background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .c { color: var(--ink); } .brand .r { color: var(--indigo); }
.navlinks { display: flex; align-items: center; gap: 1.4rem; font-size: .92rem; color: var(--muted); }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 820px) { .navlinks .hide-sm { display: none; } }

/* hero */
.hero { padding: 5rem 0 3.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% 0 auto 0; height: 480px; z-index: -1;
  background: radial-gradient(560px 320px at 50% 0%, color-mix(in srgb, var(--indigo) 26%, transparent), transparent 70%); }
.hero.compact { padding: 3.5rem 0 1rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--muted);
        border: 1px solid var(--border); background: var(--surface); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.4rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 1rem; }
h1 .grad { background: linear-gradient(100deg, var(--indigo), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 660px; margin: 0 auto 2rem; font-size: 1.12rem; color: var(--muted); }
.hero.compact h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.assets { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; color: var(--muted); font-size: .82rem; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: .3rem .7rem; font-weight: 600; }

/* sections */
section { padding: 3.5rem 0; }
.eyebrow { color: var(--indigo); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -.02em; margin: .4rem 0 .6rem; }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 2rem; }
.center { text-align: center; } .center .lead { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1rem; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr; } .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin: .2rem 0 .4rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card a.more { color: var(--indigo); font-weight: 600; font-size: .9rem; display: inline-block; margin-top: .7rem; }
.ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: .9rem;
       background: color-mix(in srgb, var(--indigo) 14%, transparent); color: var(--indigo); font-size: 1.2rem; }

.steps { counter-reset: step; }
.step { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: 0; }
.step .n { counter-increment: step; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
           font-weight: 800; color: #fff; background: var(--indigo); }
.step .n::before { content: counter(step); }
.step h3 { margin: .2rem 0 .2rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* code */
.code { background: #0b0d18; color: #e6e9f5; border: 1px solid #242a48; border-radius: var(--radius); padding: 1.15rem 1.25rem;
        font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; line-height: 1.7; overflow-x: auto; }
.code .k { color: #c4b5fd; } .code .s { color: #6ee7b7; } .code .c { color: #6b7394; } .code .p { color: #22D3EE; }
pre.code { margin: 0; white-space: pre; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
@media (max-width: 720px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric .v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.metric .v .u { color: var(--cyan); } .metric .l { color: var(--muted); font-size: .85rem; }

.final { text-align: center; padding: 4rem 0; }
.final .box { background: linear-gradient(135deg, var(--indigo), var(--indigo-600)); color: #fff; border-radius: 20px; padding: 3rem 1.5rem; }
.final h2 { color: #fff; } .final p { color: color-mix(in srgb, #fff 82%, transparent); margin: 0 auto 1.6rem; max-width: 520px; }
.final .btn.primary { background: #fff; color: var(--indigo); } .final .btn.primary:hover { background: #eef0fb; }
.final .btn.ghost { border-color: color-mix(in srgb, #fff 40%, transparent); color: #fff; }

footer { border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; color: var(--muted); font-size: .86rem; }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1.5rem; margin-bottom: 1.75rem; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }
.fcol h4 { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.fcol a { display: block; color: var(--ink); font-size: .9rem; padding: .18rem 0; }
.fcol a:hover { color: var(--indigo); }
.fcol p { margin: .4rem 0 0; max-width: 30ch; }
.fnav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
        border-top: 1px solid var(--border); padding-top: 1.25rem; }
.note { font-size: .8rem; color: var(--muted); }

/* comparison table — wrapper scrolls, not the page */
.tablewrap { overflow-x: auto; margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 14px; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
table.cmp th, table.cmp td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp thead th { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody th { font-weight: 600; }
table.cmp .col-us { background: rgba(79,70,229,.08); font-weight: 600; }
table.cmp thead .col-us { color: var(--indigo); }
.yes { color: #34D399; font-weight: 700; }
.no  { color: #F87171; font-weight: 700; }

/* FAQ — <details> so answers sit in the DOM even when collapsed */
.faq { margin-top: 1.5rem; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 600; list-style: none;
               display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 1.35rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: var(--surface); }
.faq p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--muted); max-width: 74ch; }
.suited { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.suited li { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; font-size: .93rem; }
@media (max-width: 720px) { .suited { grid-template-columns: 1fr 1fr; } }

/* ── breadcrumbs ── */
.crumbs { padding: 1.1rem 0 0; font-size: .82rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: .4rem; color: var(--border); }
.crumbs li:last-child::after { content: ""; }
.crumbs a:hover { color: var(--indigo); }
.crumbs [aria-current] { color: var(--ink); }

/* ── long-form prose (solution + entity pages) ── */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; letter-spacing: -.01em; }
.prose p { color: var(--ink); margin: 0 0 1rem; }
.prose p.lede { font-size: 1.12rem; color: var(--muted); }
.prose ul, .prose ol { color: var(--ink); padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin: .35rem 0; }
.prose strong { color: var(--ink); }
.prose a.inline { color: var(--indigo); font-weight: 600; }
.prose a.inline:hover { text-decoration: underline; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--indigo);
           border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: .95rem; color: var(--muted); }
.related { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.related a { border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
             padding: .4rem .9rem; font-size: .88rem; font-weight: 600; }
.related a:hover { border-color: var(--indigo); color: var(--indigo); }

/* ── docs layout (sidebar + content) ── */
.docs { display: grid; grid-template-columns: 232px 1fr; gap: 2.5rem; align-items: start; padding: 2rem 0 4rem; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs .side { position: static; } }
.docs .side { position: sticky; top: 84px; font-size: .9rem; }
.docs .side h4 { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 .5rem; }
.docs .side h4:first-child { margin-top: 0; }
.docs .side a { display: block; color: var(--muted); padding: .28rem 0; }
.docs .side a:hover { color: var(--ink); }
.docs .side a[aria-current] { color: var(--indigo); font-weight: 700; }
.docs .content { min-width: 0; }
.docs .content h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.4rem; }
.pager a { border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; max-width: 48%; }
.pager a:hover { border-color: var(--indigo); }
.pager .lbl { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pager .nx { margin-left: auto; text-align: right; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 6px;
       background: color-mix(in srgb, var(--indigo) 14%, transparent); color: var(--indigo); vertical-align: middle; }
.tag.get { background: color-mix(in srgb, #34D399 18%, transparent); color: #059669; }
.tag.post { background: color-mix(in srgb, var(--indigo) 16%, transparent); color: var(--indigo); }
:root[data-theme="dark"] .tag.get, @media (prefers-color-scheme: dark) { }
