/* APIM.in — India FinTech, Broker API & Personal Money Calculators Hub */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --navy: #0f172a;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #0284c7;
  --blue-dark: #0369a1;
  --blue-soft: #e0f2fe;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --saffron: #ea580c;
  --saffron-soft: #fff7ed;
  --wa: #16a34a;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* India Tricolor-Inspired Modern Accent Ribbon */
.top-accent { height: 4px; background: linear-gradient(90deg, #ea580c 0%, #ea580c 33%, #0284c7 33%, #0284c7 67%, #059669 67%, #059669 100%); }

/* Navbar */
.header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-t { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.1; }
.brand-s { font-size: 11px; color: var(--muted); font-weight: 600; display: block; }
.nav-links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav-links a { font-size: 13.8px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--blue); }
.nav-cta { display: flex; gap: 8px; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #0f172a 0%, #0284c7 100%); color: #fff; box-shadow: 0 8px 20px rgba(2,132,199,.22); }
.btn-emerald { background: var(--emerald); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 13px; font-size: 12.8px; border-radius: 9px; }

.mobile-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); align-items: center; justify-content: center; }
.mobile-drawer { display: none; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: 0 14px 30px rgba(15,23,42,.08); }
.mobile-drawer.open { display: block; }
.mobile-drawer a { display: block; padding: 11px 0; font-size: 14.5px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding: 48px 0 42px; background: radial-gradient(840px 420px at 85% 10%, rgba(2,132,199,.1), transparent 60%), radial-gradient(620px 340px at 8% 15%, rgba(5,150,105,.08), transparent 60%), #ffffff; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 36px; align-items: center; }
.hero-top { max-width: 640px; }
.hero-visual { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 22px 54px rgba(15,23,42,.1); background: #f8fafc; aspect-ratio: 16 / 10; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-vis-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 11px 14px; border-radius: 13px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.8); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; box-shadow: 0 10px 26px rgba(15,23,42,.12); }
.hero-vis-cap strong { font-family: var(--font-display); font-size: 13px; color: var(--ink); }
.hero-vis-cap span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #065f46; background: var(--emerald-soft); padding: 4px 9px; border-radius: 999px; }
.api-mesh-img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.16); margin-bottom: 18px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--emerald-soft); border: 1px solid rgba(5,150,105,.24); color: #065f46; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; line-height: 1.13; letter-spacing: -.025em; margin: 0 0 12px; }
.grad { background: linear-gradient(110deg, #0284c7 0%, #059669 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 15.8px; color: var(--ink-2); margin: 0 0 20px; }
.quick-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qpill { padding: 7px 13px; border-radius: 999px; background: #f8fafc; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.qpill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

/* Calculator Workbench */
.section { padding: 48px 0; }
.section-white { background: #ffffff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.ctab { padding: 10px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 700; transition: all .15s; }
.ctab:hover { border-color: var(--blue); color: var(--blue); }
.ctab.active { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 18px rgba(15,23,42,.18); }

.calc-shell { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 12px 34px rgba(15,23,42,.05); }
.calc-pane { display: none; }
.calc-pane.active { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-pane h2 { font-family: var(--font-display); font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.calc-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2,132,199,.14); }

.result-panel { background: linear-gradient(155deg, #f8fafc 0%, #f0f9ff 100%); border: 1px solid rgba(2,132,199,.22); border-radius: 18px; padding: 22px; }
.res-hero { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.res-hero span { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.res-hero strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--ink); }
.res-hero strong.pos { color: var(--emerald); }
.res-hero strong.neg { color: #dc2626; }

.res-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.res-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.res-table td:last-child { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.res-table tr:last-child td { border-bottom: none; font-weight: 700; }

.bar-track { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; display: flex; margin: 14px 0 6px; }
.bar-a { background: #0284c7; height: 100%; }
.bar-b { background: #059669; height: 100%; }
.bar-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.context-cta { margin-top: 16px; padding: 13px 15px; border-radius: 13px; background: #0f172a; color: #f8fafc; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.context-cta strong { color: #38bdf8; }

/* Broker & FinTech API Directory */
.sec-head { margin-bottom: 24px; }
.sec-kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; }
.sec-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 6px 0 8px; line-height: 1.18; }
.sec-desc { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 780px; }

.api-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.api-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.af-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.af-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.api-search { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-strong); min-width: 240px; font-size: 13.5px; }

.table-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow-x: auto; box-shadow: 0 6px 24px rgba(15,23,42,.04); }
.api-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 820px; }
.api-table th, .api-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.api-table th { background: #f8fafc; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.badge-free { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--emerald-soft); color: #065f46; font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.badge-paid { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-family: var(--font-mono); font-size: 11px; font-weight: 700; }

/* Lead Funnel & FAQ */
.lead-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.lead-info { background: linear-gradient(145deg, #0f172a 0%, #0369a1 100%); color: #fff; border-radius: 22px; padding: 30px; min-width: 0; }
.lead-info h3 { font-family: var(--font-display); font-size: 24px; margin: 0 0 10px; }
.lead-info p { color: #cbd5e1; font-size: 14.5px; margin: 0 0 18px; }
.lead-bullets { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lead-bullets li::before { content: '✓ '; color: #34d399; font-weight: 800; }
.lead-form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: 0 10px 30px rgba(15,23,42,.05); min-width: 0; max-width: 100%; }
.lead-form-card .btn, .lead-info .btn { white-space: normal; text-align: center; }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.faq-item h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.faq-item p { font-size: 13.8px; color: var(--ink-2); margin: 0; }

/* Footer */
.footer { background: var(--navy); color: #cbd5e1; padding: 44px 0 28px; font-size: 13px; }
.disclaimer { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; margin: 20px 0; font-size: 12.2px; line-height: 1.65; color: #94a3b8; }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); color: #94a3b8; }

/* Floating Desk Button */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: 13.5px; box-shadow: 0 14px 34px rgba(22,163,74,.36); }

@media (max-width: 1024px) {
  .hero-grid, .calc-pane.active, .lead-grid, .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-btn { display: inline-flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .hero { padding: 28px 0 30px; }
  .section { padding: 36px 0; }
  .calc-shell, .lead-info, .lead-form-card { padding: 18px 15px; }
  .grid-2 { grid-template-columns: 1fr; }
  .api-search { width: 100%; }
  .ctab { font-size: 12.5px; padding: 8px 11px; }
  .fab { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 12.5px; }
}


/* ==================== MEGA FINANCIAL API PORTAL EXTENSIONS ==================== */
.hero-consult-bar {
  margin-top: 22px;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(120deg, #0b1224 0%, #0f294a 58%, #0369a1 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 16px 36px rgba(11, 18, 36, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hcb-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 1 1 460px;
  min-width: 0;
}
.hcb-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.hcb-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
}
.hcb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hcb-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}
.hcb-text span {
  font-size: 13.2px;
  color: #cbd5e1;
  line-height: 1.45;
}
.hcb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.hcb-btn-light {
  background: #ffffff;
  color: #0b1224;
  border: 1px solid #ffffff;
  font-weight: 800;
}
.hcb-btn-light:hover {
  background: #f1f5f9;
  color: #0284c7;
}
@media (max-width: 640px) {
  .hero-consult-bar { padding: 16px; gap: 12px; }
  .hcb-text strong { font-size: 16.5px; }
  .hcb-actions { width: 100%; }
  .hcb-actions .btn { flex: 1 1 130px; text-align: center; justify-content: center; white-space: normal; }
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.pstat {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.pstat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.pstat strong span { color: var(--blue); }
.pstat small { font-size: 12px; color: var(--muted); font-weight: 600; }

.api-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.api-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 3px 12px rgba(15,23,42,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.api-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15,23,42,.08);
  border-color: rgba(2,132,199,.42);
}
.ac-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ac-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 999px;
}
.cat-broker { background: #e0f2fe; color: #0369a1; }
.cat-data { background: #eef2ff; color: #3730a3; }
.cat-payments { background: #ecfdf5; color: #065f46; }
.cat-stack { background: #fff7ed; color: #c2410c; }
.cat-kyc { background: #fdf2f8; color: #9d174d; }
.cat-wealth { background: #f5f3ff; color: #5b21b6; }

.ac-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin: 0; color: var(--ink); line-height: 1.24; }
.ac-desc { font-size: 13.2px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.ac-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-chip { font-family: var(--font-mono); font-size: 10.8px; font-weight: 600; color: var(--ink-2); background: #f8fafc; border: 1px solid var(--line); padding: 3px 8px; border-radius: 7px; }
.ac-foot { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Live API Sandbox Playground */
.pg-shell {
  background: #0b1224;
  color: #e2e8f0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11,18,36,.24);
}
.pg-head {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pg-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 410px;
}
.pg-left {
  padding: 20px 22px;
  border-right: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pg-right {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #070d1a;
}
.pg-ep-btn {
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
}
.pg-ep-btn:hover { border-color: #38bdf8; background: rgba(56,189,248,.1); }
.pg-ep-btn.active { border-color: #38bdf8; background: rgba(2,132,199,.25); color: #ffffff; }
.m-badge { font-family: var(--font-mono); font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; flex-shrink: 0; }
.m-get { background: rgba(16,185,129,.22); color: #34d399; }
.m-post { background: rgba(249,115,22,.24); color: #fb923c; }

.lang-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ltab { padding: 6px 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #cbd5e1; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; }
.ltab.active { background: #0284c7; border-color: #38bdf8; color: #fff; }
.code-pre {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #020617;
  border: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: #bae6fd;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.resp-pre { color: #86efac; max-height: 220px; overflow-y: auto; }

/* Architecture Blueprints */
.bp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bp-card { background: #ffffff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 4px 16px rgba(15,23,42,.04); }
.bp-card h3 { font-family: var(--font-display); font-size: 16.5px; margin: 0; line-height: 1.3; }
.bp-card p { font-size: 13.2px; color: var(--ink-2); margin: 0; }
.bp-stack { font-family: var(--font-mono); font-size: 11px; color: var(--blue-dark); background: var(--blue-soft); padding: 6px 10px; border-radius: 9px; margin-top: auto; }

/* API Inspector Modal */
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(11,18,36,.74); backdrop-filter: blur(7px); display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.modal-bg.open { display: flex; }
.modal-box { width: 100%; max-width: 760px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: 0 30px 72px rgba(11,18,36,.38); }
.modal-head { padding: 18px 22px; background: #0b1224; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; font-size: 20px; }

.free-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; padding: 6px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid var(--line); }

@media (max-width: 1060px) {
  .api-card-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-grid, .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .pg-grid { grid-template-columns: 1fr; }
  .pg-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 640px) {
  .api-card-grid, .bp-grid, .portal-stats { grid-template-columns: 1fr; }
  .modal-body { padding: 16px; }
}


/* ==================== MOBBIN LEGAL & TRADEMARK FAIR-USE COMPLIANCE UI ==================== */
.legal-panel {
  margin: 22px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.legal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.legal-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7dd3fc;
}
.legal-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.34);
  color: #e0f2fe !important;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s ease;
}
.legal-cta-link:hover {
  background: rgba(56, 189, 248, 0.25);
}
.legal-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.legal-pillar {
  padding: 14px 15px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  min-width: 0;
}
.legal-pillar span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.legal-pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 5px;
}
.legal-pillar p {
  margin: 0;
  font-size: 12px;
  line-height: 1.58;
  color: #94a3b8;
}

/* Full Legal Document Page (Mobbin Split Reading Layout) */
.legal-doc-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 92px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.legal-toc h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin: 0 0 12px;
}
.legal-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.legal-toc a:hover {
  background: #f0f9ff;
  color: var(--blue-dark);
}
.legal-doc-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.legal-article {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.legal-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.legal-art-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.legal-article h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.25;
}
.legal-article p,
.legal-article li {
  font-size: 14.2px;
  line-height: 1.72;
  color: var(--ink-2);
}
.legal-article ul {
  margin: 10px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal-callout {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  font-size: 13.5px;
  color: var(--ink);
}
@media (max-width: 960px) {
  .legal-pillars { grid-template-columns: 1fr; }
  .legal-doc-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
@media (max-width: 600px) {
  .legal-panel { padding: 15px; }
  .legal-doc-card { padding: 20px 16px; }
  .legal-cta-link { white-space: normal; text-align: center; }
}


/* ==================== CUSTOM DUOTONE SVG VECTOR SYSTEM ==================== */
.ic-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.ic-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ic-box {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
  border: 1px solid rgba(2, 132, 199, 0.18);
  flex-shrink: 0;
}
.ic-box-emerald { background: #ecfdf5; border-color: rgba(5, 150, 105, 0.22); }
.ic-box-indigo { background: #eef2ff; border-color: rgba(79, 70, 229, 0.22); }
.ic-box-orange { background: #fff7ed; border-color: rgba(234, 88, 12, 0.22); }
.ic-box-rose { background: #fdf2f8; border-color: rgba(190, 24, 93, 0.2); }
.ic-box-violet { background: #f5f3ff; border-color: rgba(109, 40, 217, 0.2); }
.bp-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}
.bp-card-head h3 { margin: 0; }
.gw-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.status-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.status-vector-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 18, 36, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.eyebrow, .legal-kicker, .fab span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.badge-free, .badge-paid, .badge-err {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-err {
  padding: 3px 9px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 960px) {
  .status-hero-split { grid-template-columns: 1fr; }
}


/* ==================== DISTINCT BRAND EMBLEM & ACCENT CARD SYSTEM ==================== */
.api-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--brand-c, #0284c7);
}
.api-card:hover {
  border-color: var(--brand-c, #0284c7);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09);
}
.ac-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-emblem {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-c, #0284c7) 0%, var(--brand-c2, #0369a1) 100%);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}
.brand-emblem-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 11.5px;
}
.ac-title-wrap {
  min-width: 0;
  flex: 1;
}
.ac-title-wrap .ac-title {
  margin: 0;
  font-size: 16.5px;
}
.ac-sub-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-c, #0284c7);
  display: block;
  margin-top: 2px;
}


/* ==================== OPTIONS 1, 2, 3 & 4: MARKET PULSE BAR, COMPARE TRAY & TV BUILDER ==================== */
.mkt-pulse-bar {
  background: #071022;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.mkt-pulse-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  padding: 5px 0;
}
.mkt-items {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.mkt-items::-webkit-scrollbar { display: none; }
.mkt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}
.mkt-chip strong { color: #f8fafc; }
.mkt-st {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.mkt-st.open { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.mkt-st.warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.mkt-st.closed { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
.mkt-links {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mkt-links a {
  color: #7dd3fc;
  font-weight: 700;
}
.mkt-links a:hover { color: #ffffff; }
@media (max-width: 960px) {
  .mkt-links { display: none; }
}

/* Interactive API Compare Toggle & Floating Tray */
.cmp-toggle-btn {
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.cmp-toggle-btn:hover { border-color: var(--blue); color: var(--blue); }
.cmp-toggle-btn.active { background: #0b1224; color: #34d399; border-color: #0b1224; }
.cmp-tray {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  z-index: 98;
  background: #0b1224;
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 22px 50px rgba(11, 18, 36, 0.38);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: calc(100vw - 28px);
  transition: transform 0.22s ease;
}
.cmp-tray.open { transform: translate(-50%, 0); }
.cmp-tray-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
  font-size: 12px;
  font-weight: 700;
}
.cmp-chip button {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.cmp-tray-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 720px) {
  .cmp-tray { bottom: 68px; width: calc(100vw - 24px); justify-content: space-between; }
}
