/* ==========================================================================
   RIDB — Marketing site design system
   Inspired by the clarity and rhythm of airbyte.com, with a distinct identity:
   deep-space ink, indigo→cyan signal gradient, generous whitespace.
   ========================================================================== */

:root {
  --ink: #0a0e1f;
  --ink-2: #141a33;
  --body: #4d556e;
  --muted: #6b7390;
  --line: #e5e8f2;
  --line-strong: #d3d8e8;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eef0f8;
  --indigo: #5b5bf7;
  --indigo-dark: #4340e0;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --green: #10b981;
  --amber: #f59e0b;
  --grad: linear-gradient(115deg, #5b5bf7 0%, #8b5cf6 48%, #22d3ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(91, 91, 247, .12), rgba(34, 211, 238, .12));
  --shadow-sm: 0 1px 2px rgba(10, 14, 31, .06), 0 1px 3px rgba(10, 14, 31, .04);
  --shadow-md: 0 12px 32px -12px rgba(10, 14, 31, .18), 0 2px 8px rgba(10, 14, 31, .05);
  --shadow-lg: 0 40px 80px -32px rgba(20, 26, 51, .35);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.28rem; letter-spacing: -.018em; }
h4 { font-size: 1.02rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: rgba(91, 91, 247, .18); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1320px; }
.section { padding: 104px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #b9c0d8; }
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink .eyebrow { color: var(--cyan); }
.section-ink p { color: #a7b0cc; }

.center { text-align: center; }
.stack-sm > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--indigo);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

.lede { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 + .lede { margin-top: 18px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 24px -12px rgba(10, 14, 31, .7); }
.btn-primary:hover { background: #1b2240; color: #fff; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 28px -14px rgba(91, 91, 247, .9); }
.btn-grad:hover { color: #fff; filter: saturate(1.08) brightness(1.03); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); padding: 10px 14px; }
.btn-quiet:hover { background: var(--surface-3); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -20px rgba(10,14,31,.5); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; font-size: 1.16rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: var(--body); font-size: .93rem; font-weight: 500; padding: 8px 12px;
  border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-right .btn-quiet { display: none; }
  .site-header.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .site-header.open .nav-links a { padding: 12px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -10%, rgba(91, 91, 247, .16), transparent 70%),
    radial-gradient(700px 380px at 8% 10%, rgba(34, 211, 238, .12), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10,14,31,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(10,14,31,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
@media (max-width: 1020px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: .82rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
.pill b { font-weight: 600; }
.pill span.sep { color: var(--line-strong); }

.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.2rem; max-width: 54ch; }
.hero-cta { margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: .84rem; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero visual: pipeline card */
.hero-visual { position: relative; }
.pipeline-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.pipeline-card .pc-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.pc-dots { display: flex; gap: 5px; }
.pc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dfe3ef; display: block; }
.pc-title { font-family: var(--mono); font-size: .74rem; color: var(--muted); margin-left: 6px; }
.pc-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .68rem; color: var(--green); letter-spacing: .08em; }
.pc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.pipeline-body { padding: 22px 18px 24px; }
.pipe-row { display: grid; grid-template-columns: 1fr 74px 1fr; align-items: center; gap: 6px; }
.pipe-node {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff;
  box-shadow: var(--shadow-sm);
}
.pipe-node .pn-label { font-size: .68rem; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pipe-node .pn-name { font-size: .92rem; font-weight: 600; color: var(--ink); margin-top: 4px; display: flex; align-items: center; gap: 7px; }
.pipe-node .pn-meta { font-size: .72rem; color: var(--muted); margin-top: 6px; font-family: var(--mono); }
.pipe-link { position: relative; height: 2px; background: var(--line-strong); border-radius: 2px; }
.pipe-link::after {
  content: ""; position: absolute; top: -2px; left: 0; width: 22px; height: 6px; border-radius: 4px;
  background: var(--grad); animation: flow 2.4s linear infinite;
}
@keyframes flow { 0% { left: -20%; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.pipe-link .lat { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .62rem; color: var(--indigo); white-space: nowrap; }

.pipe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pipe-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pipe-stat b { display: block; font-size: 1.02rem; color: var(--ink); letter-spacing: -.02em; }
.pipe-stat span { font-size: .68rem; color: var(--muted); font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 10px 14px; font-size: .78rem; color: var(--ink);
  display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.float-chip .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-soft); display: grid; place-items: center; color: var(--indigo); }
.float-chip.a { top: -22px; right: -10px; }
.float-chip.b { bottom: -24px; left: -16px; }
@media (max-width: 600px) { .float-chip { display: none; } }

/* ---------- Logo strip ---------- */
.logo-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); padding: 26px 0; }
.logo-strip .wrap { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; justify-content: center; }
.logo-strip .ls-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.logo-strip .ls-items { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; justify-content: center; }
.logo-strip .ls-items span {
  font-weight: 650; color: #6a7290; letter-spacing: -.02em; font-size: .98rem;
  opacity: .9; transition: color .15s, opacity .15s;
}
.logo-strip .ls-items span:hover { color: var(--ink); opacity: 1; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.card .ic-lg {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--indigo); margin-bottom: 18px;
  border: 1px solid rgba(91,91,247,.14);
}
.card-plain { background: transparent; border: 0; box-shadow: none; padding: 0; }
.card-plain:hover { transform: none; box-shadow: none; }

.card-dark { background: var(--ink-2); border-color: #232b4d; color: #a7b0cc; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #98a1bd; }
.card-dark .ic-lg { background: rgba(91,91,247,.16); border-color: rgba(91,91,247,.3); color: #a9b4ff; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }

.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: rgba(16,185,129,.12); color: var(--green); display: grid; place-items: center;
}
.feature-list b { color: var(--ink); display: block; font-size: .98rem; font-weight: 600; }
.feature-list span { font-size: .92rem; color: var(--muted); }

/* ---------- Code / terminal ---------- */
.code-card {
  background: #0b1020; border: 1px solid #1c2440; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.code-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #1c2440; }
.code-head .pc-title { color: #6f7ba4; }
.code-head .tabs { margin-left: auto; display: flex; gap: 4px; }
.code-head .tabs button {
  background: transparent; border: 0; color: #7d88b0; font-family: var(--mono); font-size: .7rem;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
}
.code-head .tabs button.active { background: #1a2240; color: #c8d2f5; }
.code-card pre {
  margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono);
  font-size: .8rem; line-height: 1.75; color: #c3cbe8;
}
.code-card .c-key { color: #8b9dff; }
.code-card .c-str { color: #5eead4; }
.code-card .c-com { color: #5b6588; }
.code-card .c-num { color: #fbbf24; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats-band .stat { background: #fff; padding: 30px 26px; }
.stats-band .stat b { display: block; font-size: 2.1rem; color: var(--ink); letter-spacing: -.04em; line-height: 1.1; }
.stats-band .stat span { font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats-band { grid-template-columns: 1fr; } }

/* ---------- Modes ---------- */
.mode-card { position: relative; padding-top: 26px; }
.mode-card .badge-mode {
  position: absolute; top: -12px; left: 26px; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.mode-card .lat { font-family: var(--mono); font-size: .74rem; color: var(--indigo); margin-top: 14px; display: block; }

/* ---------- Connectors ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; color: var(--body);
  border-radius: 999px; padding: 7px 15px; font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.connector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 980px) { .connector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .connector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .connector-grid { grid-template-columns: 1fr; } }
.connector {
  display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 15px; transition: all .16s ease;
}
.connector:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.connector .mono-badge {
  width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font-family: var(--mono); font-size: .66rem; font-weight: 700; color: var(--indigo);
  background: var(--grad-soft); border: 1px solid rgba(91,91,247,.14);
}
.connector .cn { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.connector .cf { font-size: .68rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 20px; }
.quote-card blockquote { margin: 0; font-size: 1.04rem; color: var(--ink); line-height: 1.6; letter-spacing: -.01em; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: .82rem;
}
.quote-card .who b { display: block; color: var(--ink); font-size: .9rem; }
.quote-card .who span { font-size: .8rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--ink); color: #fff; padding: 68px 56px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(91,91,247,.45), transparent 70%),
              radial-gradient(600px 300px at 85% 100%, rgba(34,211,238,.28), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 0 auto 16px; }
.cta-band p { color: #b3bcd8; max-width: 56ch; margin: 0 auto 32px; }
@media (max-width: 640px) { .cta-band { padding: 44px 24px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #98a1bd; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer p { color: #8b94b3; font-size: .9rem; max-width: 34ch; }
.site-footer h5 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: #98a1bd; font-size: .9rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #1d2542;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem;
}
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #98a1bd; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Pricing ---------- */
.pricing-hero { padding: 76px 0 40px; text-align: center; position: relative; overflow: hidden; }
.pricing-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 380px at 50% -20%, rgba(91,91,247,.14), transparent 70%);
}
.pricing-hero .wrap { position: relative; }
.pricing-meta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .82rem; color: var(--muted); }
.pricing-meta .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; margin-top: 12px; }
@media (max-width: 1120px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan.featured { border-color: transparent; box-shadow: 0 0 0 2px var(--indigo), var(--shadow-lg); }
.plan .plan-tag {
  position: absolute; top: -12px; left: 24px; background: var(--grad); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 6px; }
.plan .plan-desc { font-size: .87rem; color: var(--muted); min-height: 42px; margin: 0 0 18px; }
.plan .price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 4px; }
.plan .price b { font-size: 2.5rem; letter-spacing: -.045em; color: var(--ink); line-height: 1; font-weight: 700; }
.plan .price span { font-size: .86rem; color: var(--muted); padding-bottom: 5px; }
.plan .price-note { font-size: .78rem; color: var(--muted); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan ul li { display: flex; gap: 9px; font-size: .88rem; color: var(--body); align-items: flex-start; }
.plan ul li svg { flex: none; margin-top: 3px; color: var(--indigo); }
.plan ul li.muted { color: var(--muted); }
.plan .plan-cta { margin-top: auto; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 780px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--surface-2); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); font-weight: 600; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td:first-child { color: var(--ink); font-weight: 500; }
table.compare td.num { font-variant-numeric: tabular-nums; }
table.compare tbody tr:hover { background: #fbfbfe; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 22px 0;
}
.faq details summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.02rem;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Modal / checkout ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 12, 28, .55);
  backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 560px; background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); overflow: hidden;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-head { padding: 22px 26px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 16px; }
.modal-head h3 { font-size: 1.18rem; }
.modal-head p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.modal-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--surface-3); color: var(--ink); }
.modal-body { padding: 24px 26px; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--line); background: var(--surface-2); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.step-pill {
  flex: 1; font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center;
  padding: 7px 4px; border-radius: 999px; background: var(--surface-3); font-family: var(--mono);
  letter-spacing: .04em; transition: all .2s;
}
.step-pill.active { background: var(--ink); color: #fff; }
.step-pill.done { background: rgba(16,185,129,.14); color: #0b8a63; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .74rem; }
.input, .select {
  width: 100%; padding: 11px 13px; font-family: var(--font); font-size: .92rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,91,247,.14); }
.input::placeholder { color: #a2a9c0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.gw-list { display: grid; gap: 9px; }
.gw-option {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: all .15s;
  background: #fff;
}
.gw-option:hover { border-color: var(--indigo); }
.gw-option.selected { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(91,91,247,.12); }
.gw-option.disabled { opacity: .5; cursor: not-allowed; }
.gw-option .gw-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.gw-option .gw-sub { font-size: .74rem; color: var(--muted); }
.gw-option .gw-flag { margin-left: auto; font-size: .68rem; font-family: var(--mono); color: var(--amber); }

.alert {
  border-radius: 10px; padding: 12px 14px; font-size: .86rem; margin-bottom: 16px;
  border: 1px solid transparent; display: flex; gap: 9px; align-items: flex-start;
}
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info { background: #eef2ff; border-color: #dbe2ff; color: #3730a3; }
.alert-success { background: #ecfdf5; border-color: #bbf7d0; color: #047857; }

.summary-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.summary-box .row { display: flex; justify-content: space-between; font-size: .88rem; padding: 3px 0; }
.summary-box .row b { color: var(--ink); }
.summary-box .row.total { border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 9px; font-size: .98rem; }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Misc ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-3); color: var(--body);
}
.tag-green { background: rgba(16,185,129,.12); color: #0b8a63; }
.tag-indigo { background: rgba(91,91,247,.1); color: var(--indigo-dark); }
.tag-amber { background: rgba(245,158,11,.14); color: #a16207; }

.skeleton { background: linear-gradient(90deg, #eef0f8 25%, #f7f8fc 50%, #eef0f8 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pipe-link::after, .pc-live i { animation: none; }
  html { scroll-behavior: auto; }
}

.breadcrumb { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }

.kpi-row { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.kpi-row .kpi b { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -.03em; }
.kpi-row .kpi span { font-size: .8rem; color: var(--muted); }
