
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --ink: #0a0f1e;
  --ink-2: #394260;
  --muted: #6a7590;
  --line: #e3e8f1;
  --line-strong: #cfd7e6;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eaf1ff;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --shadow-sm: 0 1px 2px rgba(10,15,30,.05), 0 1px 3px rgba(10,15,30,.06);
  --shadow-md: 0 8px 24px rgba(10,15,30,.08);
  --shadow-lg: 0 24px 60px rgba(10,15,30,.14);
  --nav-bg: rgba(255,255,255,.82);
  --card-glass: rgba(255,255,255,.62);
  --card-glass-border: rgba(10,15,30,.08);
  --card-glow: rgba(37,99,235,.16);
  --grid-line: rgba(10,15,30,.045);
  --r: 12px;
  --r-lg: 18px;
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}
html[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-soft: #0e1530;
  --card: #111a38;
  --ink: #eef2fb;
  --ink-2: #c3cce3;
  --muted: #8e9bbd;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --brand: #4f8bff;
  --brand-2: #3b78f0;
  --brand-soft: rgba(79,139,255,.14);
  --ok: #34d399;
  --ok-soft: rgba(52,211,153,.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --nav-bg: rgba(10,15,30,.82);
  --card-glass: rgba(17,26,56,.52);
  --card-glass-border: rgba(255,255,255,.10);
  --card-glow: rgba(79,139,255,.22);
  --grid-line: rgba(255,255,255,.045);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s, color .2s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.18; color: var(--ink);
}
.lead { font-size: 17px; color: var(--ink-2); max-width: 620px; margin-top: 14px; }
.section-head { margin-bottom: 52px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 24px; border-radius: 10px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.34); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 9px; }
.btn:focus-visible, .nav-links a:focus-visible, .icon-btn:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.logo-on-dark { display: none; }
html[data-theme="dark"] .logo-on-dark { display: block; }
html[data-theme="dark"] .logo-on-light { display: none; }

.nav-links { display: flex; gap: 6px; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 9px; border: 1.5px solid var(--line); background: transparent;
  color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.hamburger { display: none; }
.signin { font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 10px; }
.signin:hover { color: var(--brand); }



/* ---------- mobile side drawer (opens from the left, like SyllHost) ---------- */
.zp-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(4,8,20,.58); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.zp-drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001; width: min(82vw, 340px); display: flex; flex-direction: column;
  background: var(--card); border-right: 1px solid var(--line); box-shadow: 18px 0 50px rgba(0,0,0,.35);
  transform: translateX(-102%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
}
body.zp-drawer-open .zp-ov { opacity: 1; visibility: visible; }
body.zp-drawer-open .zp-drawer { transform: none; visibility: visible; }
body.zp-drawer-open { overflow: hidden; }
.zp-d-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.zp-d-close { width: 38px; height: 38px; border-radius: 9px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.zp-d-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 18px 8px; }
.zp-d-item { border-bottom: 1px solid var(--line); }
.zp-d-link, .zp-d-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 17px 2px; border: 0; background: none; text-align: left;
  font: inherit; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer;
}
.zp-d-toggle i { font-size: 12px; color: var(--muted); transition: transform .2s; }
.zp-d-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.zp-d-sub { display: none; padding: 0 0 12px 2px; }
.zp-d-item.open .zp-d-sub { display: block; }
.zp-d-sub a { display: block; padding: 11px 12px; margin: 2px 0; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.zp-d-sub a small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.zp-d-sub a:hover, .zp-d-sub a:active { background: var(--bg-soft); color: var(--brand); }
.zp-d-actions { display: grid; gap: 12px; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-shrink: 0; }
.zp-d-actions .btn { width: 100%; justify-content: center; padding: 14px 16px; font-size: 16px; }
.zp-d-actions .zp-d-outline { background: var(--brand-soft); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
@media (min-width: 821px) { .zp-ov, .zp-drawer { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: 0; top: -180px; right: -120px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.18), transparent 65%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(36px, 5vw, 58px); line-height: 1.08; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-points i { color: var(--ok); font-size: 13px; }

/* checkout mock */
.mock-wrap { position: relative; }
.mock-label { position: absolute; top: -26px; right: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.mock {
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-url { flex: 1; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.mock-body { display: grid; grid-template-columns: .9fr 1.1fr; }
.mock-sum { background: var(--bg-soft); padding: 22px 20px; border-right: 1px solid var(--line); }
.mock-sum .k { font-size: 11px; color: var(--muted); }
.mock-sum .amt { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 14px; color: var(--ink); }
.mock-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; padding: 8px 0; border-top: 1px solid var(--line); }
.mock-row span:first-child { color: var(--muted); }
.mock-row span:last-child { font-weight: 600; color: var(--ink); font-family: var(--mono); font-size: 10.5px; }
.mock-pay { padding: 22px 20px; }
.mock-pay .t { font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 12px; color: var(--ink); }
.mock-tiles { display: flex; gap: 8px; margin-bottom: 16px; }
.mock-tile { flex: 1; height: 54px; border: 1px solid var(--line); border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); background: var(--card); }
.mock-tile i { font-size: 15px; color: var(--muted); }
.mock-tile.on { border: 2px solid #5aaaf7; box-shadow: 0 0 0 3px rgba(74,163,255,.22); color: var(--ink); }
.mock-tile.on i { color: var(--brand); }
.mock-label2 { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.mock-input { display: flex; align-items: stretch; height: 40px; border: 1.5px solid #8fd9bb; border-radius: 9px; overflow: hidden; margin-bottom: 14px; background: var(--card); }
.mock-input .ic { width: 38px; display: flex; align-items: center; justify-content: center; background: var(--ok-soft); color: var(--ok); font-size: 13px; border-right: 1px solid var(--line); }
.mock-input .v { flex: 1; display: flex; align-items: center; padding: 0 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: 1px; color: var(--ink); }
.mock-input .ok { width: 34px; display: flex; align-items: center; justify-content: center; color: var(--ok); font-size: 12px; }
.mock-btn { height: 40px; border-radius: 8px; background: #19b37a; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .8px; display: flex; align-items: center; justify-content: center; }
.mock-toast {
  position: absolute; left: -30px; bottom: -26px; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-md);
  animation: floaty 5s ease-in-out infinite;
}
.mock-toast .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mock-toast .a { font-size: 13px; font-weight: 700; color: var(--ink); }
.mock-toast .b { font-size: 11.5px; color: var(--muted); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- channels strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.strip-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; padding: 22px 24px; }
.strip-label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .3px; }
.strip-list { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.chip i { color: var(--brand); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.fact { padding: 30px 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .n { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.fact .n small { font-size: 18px; color: var(--brand); font-weight: 700; }
.fact .l { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ---------- cards / features (glass + accent border + hover) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* Two-column grid (Nov 24 2026): used by the homepage "two ways to take
   payments" section and the method pages' "Two ways to integrate" blocks.
   It was referenced by templates but had no rule, so those cards stacked. */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--card-glass-border); border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--brand) 0%, transparent 35%, transparent 65%, var(--brand) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none; z-index: 1;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(.4); opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md), 0 0 0 1px var(--card-glow); border-color: var(--line-strong);
}
.card:hover::before { opacity: 1; }
.card:hover::after { opacity: 1; transform: scaleX(1); }
.card > * { position: relative; z-index: 2; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 20px; transition: transform .3s ease, background .3s ease; }
.card:hover .card-icon { transform: scale(1.08); }
.card h3 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--ink-2); }

/* channels */
.channel-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.channel-ic { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; }
.channel-ic.jc { background: linear-gradient(135deg, #e11d48, #be123c); }
.channel-ic.ep { background: linear-gradient(135deg, #22c55e, #15803d); }
.channel-ic.rq { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.channel-top h3 { margin: 0; }
.channel-top span { font-size: 13px; color: var(--muted); }
.tick-list { margin-top: 16px; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tick-list i { color: var(--ok); margin-top: 5px; font-size: 12px; }

/* ---------- developers ---------- */
.dev-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.dev-grid .tick-list li { font-size: 15px; }
.code {
  border-radius: var(--r-lg); background: #0b1226; border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #0f1830; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-tabs { display: flex; gap: 4px; }
.code-tab { background: transparent; border: 0; color: #8f9cc0; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 7px; transition: background .2s, color .2s; }
.code-tab.active { background: rgba(79,139,255,.18); color: #cfe0ff; }
.code-tab:hover { color: #fff; }
.code-copy { background: transparent; border: 1px solid rgba(255,255,255,.14); color: #aab6d6; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 7px; transition: background .2s, color .2s; }
.code-copy:hover { background: rgba(255,255,255,.08); color: #fff; }
.code pre { display: none; margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 12.8px; line-height: 1.75; color: #d6def5; tab-size: 2; }
.code pre.active { display: block; }
.code .c { color: #6f7ca3; }
.code .s { color: #8fe3b0; }
.code .k { color: #8fb4ff; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.step {
  position: relative; overflow: hidden; padding: 28px 24px;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--card-glass-border); border-radius: var(--r-lg);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(.4); opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), 0 0 0 1px var(--card-glow); border-color: var(--line-strong); }
.step:hover::after { opacity: 1; transform: scaleX(1); }
.step-n { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 6px 14px rgba(37,99,235,.3); transition: transform .3s ease; }
.step:hover .step-n { transform: scale(1.08); }
.step h3 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 14px; color: var(--ink-2); }

/* ---------- use cases ---------- */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.usecase {
  position: relative; overflow: hidden; display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  border: 1px solid var(--card-glass-border); border-radius: var(--r);
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  transition: border-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.usecase:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 0 1px var(--card-glow); }
.usecase i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 17px; transition: transform .3s ease; }
.usecase:hover i { transform: scale(1.08); }
.usecase h4 { font-family: var(--display); font-size: 15.5px; font-weight: 600; margin-bottom: 3px; color: var(--ink); }
.usecase p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.trust-card {
  position: relative; overflow: hidden;
  background: var(--card-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--card-glass-border); border-radius: var(--r-lg); padding: 32px 30px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.trust-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  transform: scaleX(.4); opacity: 0; transition: opacity .3s ease, transform .3s ease;
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 0 1px var(--card-glow); border-color: var(--line-strong); }
.trust-card:hover::after { opacity: 1; transform: scaleX(1); }
.trust-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.trust-card p { font-size: 14.5px; color: var(--ink-2); }
.trust-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust-links a { font-size: 13.5px; font-weight: 600; color: var(--brand); padding: 7px 14px; border-radius: 8px; background: var(--brand-soft); transition: background .2s; }
.trust-links a:hover { background: var(--brand); color: #fff; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 96px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 48px; text-align: center;
  background: linear-gradient(135deg, #0a0f1e 0%, #14246b 55%, #2563eb 130%); color: #fff;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.cta-box > * { position: relative; }
.cta-box h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; max-width: 700px; margin: 0 auto; }
.cta-box p { margin: 14px auto 0; max-width: 520px; color: rgba(255,255,255,.78); font-size: 16.5px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta-btns .btn-light { background: #fff; color: #0a0f1e; }
.cta-btns .btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.cta-btns .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-btns .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
.footer { background: #0a0f1e; color: #aab4d0; padding: 72px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .brand img { height: 36px; }
.footer-about { margin-top: 18px; font-size: 14px; line-height: 1.7; max-width: 340px; }
.footer h4 { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: #aab4d0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: #8591b2; }

/* ---------- reveal ---------- */
.js .reveal {
  --reveal-x: 0px; --reveal-y: 26px;
  opacity: 0; transform: translate(var(--reveal-x), var(--reveal-y)) scale(.97);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* Mixed-direction entrance: left column of a card grid slides in from the left,
   right column slides in from the right, the middle column keeps the vertical rise. */
.grid-3 > .reveal:nth-child(3n+1),
.usecases > .reveal:nth-child(3n+1) { --reveal-x: -42px; --reveal-y: 10px; }
.grid-3 > .reveal:nth-child(3n),
.usecases > .reveal:nth-child(3n) { --reveal-x: 42px; --reveal-y: 10px; }

.steps > .reveal:nth-child(4n+1) { --reveal-x: -42px; --reveal-y: 10px; }
.steps > .reveal:nth-child(4n) { --reveal-x: 42px; --reveal-y: 10px; }
.steps > .reveal:nth-child(4n+2) { --reveal-x: -18px; --reveal-y: 20px; }
.steps > .reveal:nth-child(4n+3) { --reveal-x: 18px; --reveal-y: 20px; }

.trust > .reveal:nth-child(2n+1) { --reveal-x: -48px; --reveal-y: 6px; }
.trust > .reveal:nth-child(2n) { --reveal-x: 48px; --reveal-y: 6px; }

@media (max-width: 620px) {
  .reveal { --reveal-x: 0px !important; --reveal-y: 22px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .dev-grid { grid-template-columns: 1fr; }
  .mock-wrap { max-width: 560px; margin: 8px auto 0; }
  .mock-toast { left: 8px; bottom: -22px; }
  .mock-wrap { margin-bottom: 22px; }
  .grid-3, .usecases { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .signin, .nav-actions .btn { display: none; }
  .hamburger { display: inline-flex; }
  .trust { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .hero { padding: 52px 0 64px; }
  .grid-3, .grid-2, .usecases, .steps { grid-template-columns: 1fr; }
  .hero-sub { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-sum { border-right: 0; border-bottom: 1px solid var(--line); }
  .mock-toast { display: none; }
  .cta-box { padding: 48px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

/* ======================= v2 additions ======================= */
.brand { gap: 9px; text-decoration: none; flex-shrink: 0; }
.zp-mark { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#2563eb,#7c3aed); box-shadow: 0 4px 12px rgba(37,99,235,.35); flex-shrink: 0; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; line-height: 1; }
.zp-word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); line-height: 1; white-space: nowrap; }
.zp-word b { font-weight: 800; color: var(--brand); }
.footer .zp-word { color: #fff; }
.footer .zp-word b { color: #4f8bff; }
@media (max-width: 480px) { .zp-mark { width: 30px; height: 30px; border-radius: 9px; } .zp-word { font-size: 20px; } }

/* dropdown nav */
.nav-links > li { position: relative; }
.nav-links .has-dd > a::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; margin-left: 7px; opacity: .6; }
.dd {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px; margin-top: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.dd::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.has-dd:hover > .dd, .has-dd:focus-within > .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.dd a small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.dd a:hover { background: var(--bg-soft); color: var(--brand); }


/* badges */
.live { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #166534; background: var(--ok-soft); border: 1px solid rgba(22,163,74,.25); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
html[data-theme="dark"] .live { color: var(--ok); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--brand); }
.link-arrow i { font-size: 12px; transition: transform .2s; }
.link-arrow:hover i { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px; }
.note { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }

.chip.is-pending { border-style: dashed; color: var(--ink-2); }
.chip.is-pending i { color: var(--muted); }

/* channel cards: 5 cards, last row centered */
.channel-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.channel-grid > .card { flex: 0 1 calc((100% - 44px) / 3); min-width: 0; }
.card.is-pending { border-style: dashed; border-color: var(--line-strong); }
.channel-ic.bk { background: linear-gradient(135deg, #0ea5a4, #0f766e); }
.channel-ic.cd { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.channel-top h3 .live { margin-left: 6px; font-family: var(--body); }
@media (max-width: 1020px) { .channel-grid > .card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 620px)  { .channel-grid > .card { flex-basis: 100%; } }

/* two-column feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.panel h4 { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.flow { display: grid; gap: 0; }
.flow-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); }
.flow-row:first-child { border-top: 0; padding-top: 0; }
.flow-row:last-child { padding-bottom: 0; }
.flow-n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-family: var(--display); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.flow-row b { display: block; font-size: 14.5px; color: var(--ink); }
.flow-row span { font-size: 13.5px; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 auto; font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; border-radius: 12px; }
.faq .ans { padding: 0 22px 20px; font-size: 15px; color: var(--ink-2); }

/* landing pages */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--brand); }
.crumbs i { font-size: 9px; opacity: .6; }
.page-hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 30% 0%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 80% 80% at 30% 0%, #000 25%, transparent 75%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; max-width: 820px; color: var(--ink); }
.page-hero h1 em { font-style: normal; color: var(--brand); }
.page-hero .lead { font-size: 18px; max-width: 700px; }
.prose p { font-size: 16px; color: var(--ink-2); max-width: 760px; margin-bottom: 14px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related a { display: block; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, transform .2s; }
.related a:hover { border-color: var(--brand); transform: translateY(-2px); }
.related b { display: block; font-family: var(--display); font-size: 15.5px; color: var(--ink); margin-bottom: 4px; }
.related span { font-size: 13.5px; color: var(--ink-2); }
.disclosure { font-size: 13px; color: var(--muted); max-width: 760px; margin-top: 18px; }

/* footer agent band */
.footer-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 26px 30px; margin-bottom: 52px; border-radius: 16px; background: linear-gradient(135deg, rgba(37,99,235,.28), rgba(37,99,235,.08)); border: 1px solid rgba(79,139,255,.35); }
.footer-band b { display: block; font-family: var(--display); font-size: 18px; color: #fff; margin-bottom: 4px; }
.footer-band span { font-size: 14px; color: #c3cce3; }
.footer-band .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-band .btn-light { background: #fff; color: #0a0f1e; }
.footer-band .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.footer-band .btn-line:hover { border-color: #fff; }
/* Fixed 5-column layout (brand + Payment methods + Solutions + Company + Legal)
   on the desktop breakpoint only — explicit column count, not auto-fit, so
   Legal always stays on the same row as the others. Mobile / tablet widths
   get their own column grids via the media queries below. The !important
   is scoped to >= 1021px via the @media wrapper so it NEVER wins on mobile. */
@media (min-width: 1021px) {
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr !important; gap: 18px; }
}
.footer-col { min-width: 0; }
.footer-col a { font-size: 12.5px; padding: 3px 0; white-space: normal; word-break: break-word; }
.footer h4 { font-size: 11.5px; margin-bottom: 10px; letter-spacing: .4px; }
.footer-contact { display: grid; gap: 8px; margin-top: 18px; font-size: 14px; }
.footer-contact a, .footer-contact span { color: #aab4d0; word-break: break-word; }
.footer-contact a:hover { color: #fff; }
.footer-contact i { width: 18px; color: #6ea5ff; }

/* Tablet: two equal columns. !important to beat any earlier footer-top rule. */
@media (max-width: 1020px) {
  .related { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 28px 24px; }
  .footer-about { max-width: 100%; }
}
/* Phone: single column, columns stack cleanly. */
@media (max-width: 620px) {
  .related { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 0 52px; }
  .footer-band { padding: 22px 20px; }
  .footer-top { grid-template-columns: 1fr !important; gap: 26px; padding-bottom: 32px; }
  .footer .container { padding: 0 20px; }
  .footer { padding: 48px 0 0; }
  .footer-col h4 { margin-top: 4px; }
  .footer-bottom { padding: 18px 0 22px; font-size: 12px; }
}
/* Small phones (≤ 380px — iPhone SE, old Androids, DevTools emulator): tighten
   padding + line-height so the stacked columns don't feel claustrophobic. */
@media (max-width: 380px) {
  .footer { padding: 36px 0 0; }
  .footer .container { padding: 0 16px; }
  .footer-top { gap: 22px; }
  .footer-col a { font-size: 13px; padding: 4px 0; }
  .footer-about { font-size: 13.5px; }
  .footer-band { padding: 18px 16px; gap: 14px 20px; }
  .footer-band b { font-size: 16px; }
  .footer-band .btns .btn { font-size: 13px; padding: 10px 14px; }
}

/* ======================= v3: inner pages (blog, policy, contact, docs, cookie) ======================= */
.skip:focus { left: 8px !important; }
.crumbs { margin-bottom: 18px; }

/* ---- prose (policy pages, blog posts) ---- */
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--display); color: var(--ink) !important; letter-spacing: -.015em; line-height: 1.25; margin: 1.9em 0 .6em; scroll-margin-top: 90px; }
.prose h2 { font-size: 1.65rem; font-weight: 700; padding-bottom: .35em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.25rem; font-weight: 600; }
.prose h4 { font-size: 1.05rem; font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--muted); font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.2em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; }
.prose pre { background: #0b1226; color: #d6def5; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin: 1.3em 0; }
.prose pre code { background: transparent; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--ink); }
/* text pasted from the admin editor carries inline styles that fight the theme */
.prose [style*="font-size"], .prose [style*="font-family"] { font-size: inherit !important; font-family: inherit !important; }
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: transparent !important; }

/* grid children must be allowed to shrink (long code blocks / URLs) */
.page-shell > *, .contact-grid > *, .article-wrap > * { min-width: 0; }
.prose pre, .prose table { max-width: 100%; }

/* ---- two-column page shell with side navigation ---- */
.page-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.side-nav { position: sticky; top: 96px; }
.side-nav h4 { font-family: var(--display); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-nav a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-left: 3px solid transparent; transition: background .2s, color .2s; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.is-active { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.side-nav .side-cta { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); font-size: 13.5px; color: var(--ink-2); }
.side-nav .side-cta b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 4px; }
.side-nav .side-cta .btn { margin-top: 12px; width: 100%; }

/* ---- forms ---- */
.zp-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-sm); }
.zp-form h2 { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.zp-form .form-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.zp-form .form-group { margin-bottom: 18px; }
.zp-form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.zp-form label .req { color: #d93a3a; }
.zp-form input[type="text"], .zp-form input[type="email"], .zp-form textarea, .zp-form .form--control {
  display: block; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink);
  font: 500 15px var(--body); outline: none; box-shadow: 0 1px 2px rgba(10,15,30,.04); transition: border-color .2s, box-shadow .2s;
}
.zp-form textarea { min-height: 150px; resize: vertical; }
.zp-form input:hover, .zp-form textarea:hover { border-color: #b8c4d6; }
.zp-form input:focus, .zp-form textarea:focus { border-color: #5aaaf7; box-shadow: 0 0 0 4px rgba(74,163,255,.2); }
.zp-form input[readonly] { background: var(--bg-soft); color: var(--ink-2); }
.zp-form ::placeholder { color: var(--muted); opacity: .8; font-weight: 400; }
.zp-form .btn { width: 100%; height: 52px; font-size: 15px; }
.zp-form .mb-2 img { max-width: 100%; border-radius: 8px; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.info-list { display: grid; gap: 16px; margin-top: 30px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .2s; }
.info-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.info-card .ic { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.info-card h3 { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.info-card p, .info-card a { font-size: 14.5px; color: var(--ink-2); }
.info-card a:hover { color: var(--brand); }

/* ---- blog index ---- */
.search-bar { display: flex; gap: 10px; max-width: 520px; margin-top: 26px; }
.search-bar input { flex: 1; min-width: 0; height: 50px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); font: 500 15px var(--body); outline: none; }
.search-bar input:focus { border-color: #5aaaf7; box-shadow: 0 0 0 4px rgba(74,163,255,.2); }
.search-bar .btn { height: 50px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0a0f1e, #14246b 60%, #2563eb); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; margin-bottom: 10px; }
.post-body h2 { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); margin-bottom: 10px; }
.post-body h2 a:hover { color: var(--brand); }
.post-body p { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.post-body .link-arrow { margin-top: 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 44px; font-size: 14px; color: var(--muted); }
.pager a, .pager span.btn-off { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 9px; border: 1.5px solid var(--line-strong); font-weight: 600; color: var(--ink); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager span.btn-off { opacity: .4; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---- article ---- */
.article-head { max-width: 800px; }
.article-head h1 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: var(--ink); margin: 6px 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.article-meta i { margin-right: 6px; color: var(--brand); }
.article-cover { max-width: 800px; margin: 30px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.article-cover img { width: 100%; height: auto; display: block; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 800px) 260px; gap: 56px; justify-content: space-between; align-items: start; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share b { font-family: var(--display); font-size: 14px; color: var(--ink); margin-right: 4px; }
.share a, .share button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; transition: border-color .2s, color .2s, background .2s; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.share .copied { font-size: 13px; color: var(--ok); }
.cta-inline { margin-top: 44px; padding: 30px; border-radius: 18px; background: linear-gradient(135deg, #0a0f1e 0%, #14246b 60%, #2563eb 140%); color: #fff; }
.cta-inline h3 { font-family: var(--display); font-size: 22px; color: #fff !important; margin-bottom: 8px; }
.cta-inline p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 18px; }
.cta-inline .btn-light { background: #fff; color: #0a0f1e; }
.cta-inline .btn-line { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-inline .row-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- cookie bar ---- */
.cookie-bar { position: fixed; left: 20px; bottom: 20px; z-index: 300; max-width: 420px; padding: 20px 22px; background: var(--card); color: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); font-size: 14px; transform: translateY(20px); opacity: 0; animation: cookieIn .5s ease 1.5s forwards; }
.cookie-bar p { margin-bottom: 14px; }
.cookie-bar a.more { color: var(--brand); font-weight: 600; }
.cookie-bar .btn { height: 40px; width: 100%; }
@keyframes cookieIn { to { transform: none; opacity: 1; } }
@media (max-width: 520px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---- documentation (re-skin of the legacy markup; keeps its JS hooks) ---- */
.zp-docs .documentation-section > .container > .row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.zp-docs .col-lg-2, .zp-docs .col-lg-10 { width: auto; min-width: 0; }
.zp-docs .documentation-menu-wrapper { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.zp-docs .sidebar-menu-open-btn, .zp-docs .sidebar-close-btn { display: none; }
.zp-docs .sidebar-menu .menu { list-style: none; margin: 0; padding: 0; }
.zp-docs .sidebar-menu .menu > li { margin-bottom: 18px; }
.zp-docs .sidebar-menu .menu > li > a { display: block; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); padding: 0 12px 8px; }
.zp-docs .drp-menu { list-style: none; margin: 0; padding: 0; }
.zp-docs .drp-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); border-left: 3px solid transparent; }
.zp-docs .drp-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.zp-docs .drp-menu a.active, .zp-docs .drp-menu li.active a { background: var(--brand-soft); color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.zp-docs .doc-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 46px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.zp-docs .doc-section:first-child { padding-top: 6px; }
.zp-docs .doc-content:only-child { grid-column: 1 / -1; }
.zp-docs .doc-content { min-width: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.zp-docs .doc-content h2, .zp-docs .doc-content h3, .zp-docs .doc-content h4 { font-family: var(--display); color: var(--ink) !important; letter-spacing: -.015em; margin: 0 0 12px; }
.zp-docs .doc-content h2 { font-size: 1.7rem; font-weight: 700; } .zp-docs .doc-content h3 { font-size: 1.35rem; font-weight: 700; } .zp-docs .doc-content h4 { font-size: 1.05rem; font-weight: 600; margin-top: 22px; }
.zp-docs .doc-content hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 18px; }
.zp-docs .doc-content p { margin: 0 0 1em; }
.zp-docs .doc-content ul, .zp-docs .doc-content ol { margin: 0 0 1em; padding-left: 1.4em; } .zp-docs .doc-content ul { list-style: disc; } .zp-docs .doc-content ol { list-style: decimal; }
.zp-docs .doc-content a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.zp-docs code { font-family: var(--mono); font-size: .86em; background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 6px; }
.zp-docs .table-responsive { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; }
.zp-docs table { width: 100%; border-collapse: collapse; font-size: 14px; }
.zp-docs th, .zp-docs td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.zp-docs th { background: var(--bg-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.zp-docs tr:last-child td { border-bottom: 0; }
.zp-docs .badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 3px 10px; border-radius: 6px; margin-right: 6px; }
.zp-docs .badge--success { background: var(--ok-soft); color: var(--ok); } .zp-docs .badge--primary { background: var(--brand-soft); color: var(--brand); }
.zp-docs .alert { padding: 16px 18px; border-radius: 12px; margin: 0 0 1.4em; font-size: 14.5px; background: var(--brand-soft); border: 1px solid rgba(37,99,235,.25); color: var(--ink-2); }
.zp-docs .mt-2 { margin-top: .5rem; } .zp-docs .mt-3 { margin-top: 1rem; } .zp-docs .mt-4 { margin-top: 1.5rem; }
.zp-docs .doc-code { min-width: 0; position: sticky; top: 92px; align-self: start; }
.zp-docs .doc-code-inner { border-radius: 14px; overflow: hidden; background: #0b1226; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg); }
.zp-docs .code-block { position: relative; }
.zp-docs .code-block-header { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 76px 10px 12px; background: #0f1830; border-bottom: 1px solid rgba(255,255,255,.07); }
.zp-docs .lang-tab { background: transparent; border: 0; color: #8f9cc0; font: 600 12.5px var(--body); padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: background .2s, color .2s; }
.zp-docs .lang-tab:hover { color: #fff; } .zp-docs .lang-tab.active { background: rgba(79,139,255,.2); color: #cfe0ff; }
.zp-docs .clipboard-btn { position: absolute; top: 9px; right: 12px; z-index: 2; background: transparent; border: 1px solid rgba(255,255,255,.16); color: #aab6d6; font: 600 12px var(--body); padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.zp-docs .clipboard-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.zp-docs .lang-pane { display: none; margin: 0; padding: 18px 20px; overflow-x: auto; max-height: 560px; background: transparent; font-size: 12.5px; line-height: 1.75; color: #d6def5; tab-size: 2; }
.zp-docs .lang-pane.active { display: block; }
.zp-docs .lang-pane code { background: transparent !important; color: inherit; padding: 0; font-size: inherit; font-family: var(--mono); }
.zp-docs .hljs-keyword, .zp-docs .hljs-built_in, .zp-docs .hljs-literal { color: #8fb4ff; }
.zp-docs .hljs-string, .zp-docs .hljs-attr, .zp-docs .hljs-regexp { color: #8fe3b0; }
.zp-docs .hljs-comment, .zp-docs .hljs-quote { color: #6f7ca3; font-style: italic; }
.zp-docs .hljs-number, .zp-docs .hljs-title, .zp-docs .hljs-variable, .zp-docs .hljs-params { color: #ffcf8f; }
.zp-docs .plugins .plugin-item { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: var(--card); }
.zp-docs .plugin-item__thumb img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; }

@media (max-width: 1020px) {
  .page-shell, .contact-grid, .article-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side-nav { position: static; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .zp-docs .documentation-section > .container > .row { grid-template-columns: 1fr; gap: 20px; }
  .zp-docs .doc-section { grid-template-columns: 1fr; }
  .zp-docs .doc-code { position: static; }
  .zp-docs .sidebar-menu-open-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 9px; background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; }
  .zp-docs .documentation-menu-wrapper { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); max-height: none; z-index: 400; padding: 64px 18px 24px; background: var(--card); border-right: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateX(-105%); transition: transform .3s ease; }
  .zp-docs .documentation-menu-wrapper.open { transform: none; }
  .zp-docs .sidebar-close-btn { display: inline-flex; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .zp-form { padding: 24px 20px; }
  .article-head h1 { font-size: 28px; }
}
