/* Verification API product page. Builds on product.css (.pr-*); page-only pieces use the .va- prefix. */

/* ---------- Hero: request / response panel ---------- */
.pr-app.va-app { width: min(940px, 100%); background: #0F172A; color: #E2E8F0; }
.va-app .pr-app-bar { background: #111B33; border-bottom-color: rgba(255,255,255,.08); }
.va-app .pr-app-bar span { color: #94A3B8; }
.va-panes { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); }
.va-pane { position: relative; height: 232px; padding: 14px 22px; overflow: hidden; font: 500 13px/1.55 ui-monospace, 'JetBrains Mono', Menlo, monospace; }
.va-pane + .va-pane { border-left: 1px solid rgba(255,255,255,.08); }
.va-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font: 700 11px/1 'Figtree', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #64748B; }
.va-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: #94A3B8; font: 700 11px/1 'Figtree', system-ui, sans-serif; letter-spacing: .02em; text-transform: none; transition: background-color .3s ease, color .3s ease; }
.va-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.va-app.is-sending .va-pill-req { background: rgba(52,97,255,.22); color: #A5B8FF; }
.va-app.is-sending .va-pill-req i { animation: va-blink .8s ease-in-out infinite; }
.va-app.is-done .va-pill-res { background: rgba(16,185,129,.18); color: #6EE7B7; }
@keyframes va-blink { 50% { opacity: .2; } }
.va-req { white-space: pre; color: #CBD5E1; }
.va-req .m { color: var(--mint); font-weight: 700; }
.va-req .h { color: #93C5FD; }
.va-req .k { color: #F9A8D4; }
.va-req .s { color: #FDE68A; }
.va-caret { display: inline-block; width: 7px; height: 15px; margin-left: 1px; vertical-align: -2px; background: var(--mint); animation: va-blink 1s step-end infinite; }
.va-app.is-sending .va-caret, .va-app.is-done .va-caret { visibility: hidden; }
.va-res { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
.va-ln { display: block; white-space: pre; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease, background-color .4s ease; border-radius: 4px; }
.va-ln.is-in { opacity: 1; transform: none; }
.va-ln .k { color: #93C5FD; }
.va-ln .s { color: #FDE68A; }
.va-ln .n { color: #FDBA74; }
.va-ln .b { color: #C4B5FD; }
.va-ln.is-key.is-in { background: rgba(154,238,172,.12); }
.va-ln.is-key .s { color: var(--mint); font-weight: 700; }

/* ---------- Language band ---------- */
.va-lang img { border-radius: 0; }

/* ---------- Steps: own illustrations (API allocation) ---------- */
.va-shot { width: 88%; height: 150px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 16px 30px -22px rgba(15,23,42,.45); }
.pr-step-pic .va-shot img { width: 325%; max-width: none; max-height: none; margin: -2% 0 0 -36%; mix-blend-mode: normal; }
.pr-step:hover .pr-step-pic .va-shot img { transform: none; }
.va-pic-call { flex-direction: column; gap: 18px; }
.pr-step-pic.va-pic-call img { width: 66px; max-width: none; height: auto; }
.va-pic-call code { padding: 8px 14px; border-radius: 10px; background: #fff; box-shadow: 0 10px 22px -16px rgba(15,23,42,.4); font: 600 13px/1 ui-monospace, 'JetBrains Mono', Menlo, monospace; color: var(--ink); }
.va-pic-call code b { color: #059669; }

/* ---------- Response explorer (dark band) ---------- */
.va-inl { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.1); font: 600 .9em ui-monospace, Menlo, monospace; color: #fff; }
.va-inl-l { background: #E7E5E0; color: var(--ink); }
.va-rx { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 48px; align-items: center; width: var(--pr-w); margin: 48px auto 0; text-align: left; }
.va-rx-code { border-radius: 20px; background: #fff; color: #334155; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); overflow: hidden; }
.va-rx-bar { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: #78716C; }
.va-rx-bar .va-rx-ok { padding: 3px 9px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-weight: 700; }
.va-rx-bar em { margin-left: auto; font-style: normal; padding: 3px 9px; border-radius: 999px; background: var(--grey); color: #78716C; }
.va-rx-code pre { padding: 14px 12px 18px; font: 500 13px/1.62 ui-monospace, 'JetBrains Mono', Menlo, monospace; white-space: pre; overflow-x: auto; }
.va-rx-ln { display: block; padding: 0 8px; border-radius: 6px; transition: background-color .3s ease, opacity .3s ease; }
.va-rx-ln .k { color: #1D4ED8; }
.va-rx-ln .s { color: #B45309; }
.va-rx-ln .n { color: #C2410C; }
.va-rx-ln .b { color: #7C3AED; }
.va-rx-ln.is-on { background: #DCFCE7; border-radius: 0 6px 6px 0; box-shadow: inset 3px 0 0 #10B981; }
.va-rx-list { align-self: start; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.18); }
.va-rx-list li { border-bottom: 1px solid rgba(255,255,255,.18); }
.va-rx-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; width: 100%; padding: 16px 10px; border: 0; border-radius: 0; background: none; color: #fff; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s ease; }
.va-rx-row:hover { background: rgba(255,255,255,.05); }
.va-rx-row:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
.va-rx-n { padding-top: 3px; font-size: 13px; font-weight: 600; color: #8C9BB8; font-variant-numeric: tabular-nums; }
.va-rx-q { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.va-rx-q b { font-size: 17px; line-height: 1.35; font-weight: 600; color: #E2E8F0; transition: color .25s ease; }
.va-rx-f { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.va-rx-f code { font: 600 12px/1 ui-monospace, Menlo, monospace; color: #A9B6CF; }
.va-rx-d { grid-column: 2; max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 1.55; color: #CBD5E1; transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease; }
.va-rx-row.is-on .va-rx-n, .va-rx-row.is-on .va-rx-f code { color: var(--mint); }
.va-rx-row.is-on .va-rx-q b { color: #fff; }
.va-rx-row.is-on .va-rx-d { max-height: 120px; opacity: 1; margin-top: 8px; }

/* ---------- Endpoints: grouped row list ---------- */
.va-jobs { width: min(1040px, calc(100% - 32px)); margin: 48px auto 0; border-top: 1px solid #0F172A; text-align: left; }
.va-job { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid #D6D3CC; }
.va-job-h { display: flex; align-items: baseline; gap: 14px; padding-top: 12px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.va-job-h span { font-size: 13px; font-weight: 600; color: #A8A29E; font-variant-numeric: tabular-nums; }
.va-job-rows li + li { border-top: 1px dashed #D6D3CC; }
.va-ep { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 12px; transition: background-color .2s ease; }
.va-ep:hover { background: #fff; }
.va-ep-t { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.va-ep-t b { font-size: 16.5px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.va-ep-t small { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.va-ep-t code { font: 500 13px/1.35 ui-monospace, 'JetBrains Mono', Menlo, monospace; color: #78716C; overflow-wrap: anywhere; }
.va-m { font: 700 11px/1 ui-monospace, Menlo, monospace; font-style: normal; letter-spacing: .04em; color: #3461FF; }
.va-m-get { color: #059669; } .va-m-delete { color: #DC2626; }
.va-ep-c { justify-self: end; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #EAF0FF; color: var(--blue); }
.va-ep-c.is-free { background: #E6F7EF; color: #059669; }
.va-eps-note { margin: 24px auto 0 !important; max-width: 640px; text-align: center; font-size: 14.5px; color: var(--mute); }
.va-eps-note code { font: 600 13px ui-monospace, Menlo, monospace; color: var(--ink); }
.va-link { font-weight: 600; color: var(--blue) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------- Webhooks / limits / bulk cards ---------- */
.va-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: var(--pr-w); margin: 52px auto 0; }
.va-card { display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: 24px; background: var(--tint); text-align: left; transition: transform .3s ease, box-shadow .3s ease; }
.va-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(15,23,42,.35); }
.va-card .pr-way-k { color: var(--acc); }
.va-card h3 { margin-top: 8px; font-size: var(--fs-h3, 20px); font-weight: 600; letter-spacing: -0.01em; }
.va-card > p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--mute); }
.va-card-vis { margin-top: auto; padding-top: 22px; }
.va-card .pr-code { border-radius: 16px; font-size: 12.5px; line-height: 1.65; }
.va-card .pr-code .c { color: #64748B; }
.va-card .pr-code .h { color: #93C5FD; }
.va-rate { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; }
.va-rate-row small { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #64748B; }
.va-rate-row small b { color: var(--ink); font-variant-numeric: tabular-nums; }
.va-rate-bar { height: 10px; margin-top: 7px; border-radius: 99px; background: #F1F5F9; overflow: hidden; }
.va-rate-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--acc); transition: width 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.va-rate-row.is-free .va-rate-bar i { background: #94A3B8; }
.va-cards.is-in .va-rate-bar i { width: var(--w); }
.va-bulk { padding: 18px; border-radius: 16px; background: #fff; text-align: center; }
.va-bulk b { display: block; font-size: 38px; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: var(--acc); font-variant-numeric: tabular-nums; }
.va-bulk small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: #64748B; }
.va-bulk-free { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--tint); font-size: 12.5px; font-weight: 600; color: #44403C; }

/* ---------- Billing: three calls, three receipts ---------- */
.va-rcpt { width: min(760px, calc(100% - 32px)); margin: 44px auto 0; padding: 10px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -36px rgba(15,23,42,.45); text-align: left; }
.va-rcpt-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 120px 170px; align-items: center; gap: 14px; padding: 16px 16px; border-radius: 14px; }
.va-rcpt-row + .va-rcpt-row { margin-top: 2px; }
.va-rcpt-mail { font: 500 14.5px ui-monospace, 'JetBrains Mono', Menlo, monospace; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.va-rcpt-st { display: inline-flex; align-items: center; gap: 7px; justify-self: start; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--bg); font: 700 12.5px ui-monospace, Menlo, monospace; color: var(--ink); }
.va-rcpt-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.va-rcpt-cu { justify-self: end; font: 500 14px ui-monospace, Menlo, monospace; color: #64748B; }
.va-rcpt-cu b { font-size: 18px; color: var(--blue); }
.va-rcpt-row.is-free { background: #ECFDF5; box-shadow: inset 0 0 0 1.5px #6EE7B7; }
.va-rcpt-row.is-free .va-rcpt-cu b { color: #059669; }
.va-rcpt-free { display: inline-block; padding: 4px 11px; border-radius: 999px; background: #059669; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.va-rcpt-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding: 14px 16px 6px; border-top: 1px dashed var(--line); font-size: 14.5px; color: #78716C; }
.va-rcpt-foot b { font-size: 16px; color: var(--ink); }
.va-rcpt-why { max-width: 560px; margin: 22px auto 0 !important; text-align: center; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.va-rcpt-why b { color: #059669; }
.va-bill-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; width: var(--pr-w); margin: 26px auto 0; }
.va-bill-foot .pr-ticks { margin: 0 !important; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
.va-bill-foot .pr-btn { height: 46px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .va-rx { grid-template-columns: 1fr; max-width: 720px; gap: 32px; }
}
@media (max-width: 860px) {
  .va-panes { grid-template-columns: 1fr; }
  .va-pane { height: auto; min-height: 0; }
  .va-pane + .va-pane { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); height: 236px; }
  .va-cards { grid-template-columns: 1fr; max-width: 560px; }
  .va-job { grid-template-columns: 1fr; gap: 8px; }
  .va-job-h { padding-top: 0; }
}
@media (max-width: 600px) {
  .va-pane { padding: 14px 16px; font-size: 12px; }
  .va-rx-code pre { font-size: 11.5px; }
  .va-ep { grid-template-columns: 1fr; gap: 8px; padding: 12px 6px; }
  .va-ep-c { justify-self: start; }
  .va-rcpt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .va-rcpt-row > span:not(.va-rcpt-st):empty { display: none; }
  .va-rcpt-cu { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .va-ln, .va-rate-bar i, .va-rx-ln, .va-rx-d { transition: none; }
  .va-caret, .va-app.is-sending .va-pill-req i { animation: none; }
}

/* ---------- Phone polish ---------- */
@media (max-width: 600px) {
  .va-rx-bar { gap: 8px; padding: 12px 14px; font-size: 12px; }
  .va-rx-bar > * { white-space: nowrap; }
}

/* ===== Mobile pass (<=767px) ===== */
@media (max-width: 767px) {
  .va-pane-h, .va-pill { font-size: 12px; }
  .va-rx-code pre { font-size: 12.5px; }
  .va-m { font-size: 12px; }
}

/* ===== Mobile pass round 2 (<=767px) ===== */
@media (max-width: 767px) {
  /* Step art is a cropped desktop screenshot: unreadable at 84px, so steps go text-only on phones. */
  .pr-steps:has(.va-shot) .pr-step-pic { display: none; }
  .pr-steps:has(.va-shot) .pr-step { grid-template-columns: minmax(0, 1fr); }
  .va-cards { margin-top: 32px; gap: 14px; }
  .va-rcpt-row { gap: 6px 12px; padding: 10px 12px; }
}
