/* ============================================================================
   RPACPC — Get API Access page styles (extends css/styles.css tokens)
   ============================================================================ */

/* ── Request-demo hero (2-column: metadata + form) ─────────────────────── */
.demo { position: relative; padding: calc(56px * var(--pad)) 0 calc(60px * var(--pad)); overflow: hidden; }
.demo-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 480px at 18% -12%, var(--primary-tint) 0%, transparent 60%),
    radial-gradient(620px 420px at 92% 4%, var(--green-tint) 0%, transparent 62%);
  opacity: .85;
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Left metadata */
.demo-meta { max-width: 540px; min-width: 0; }
.demo-meta h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.03em; line-height: 1.04; margin-top: 16px; }
.demo-meta h1 .hl { color: var(--primary); }
.demo-lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--body); margin-top: 18px; line-height: 1.6; }

.demo-points { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.demo-points li { display: flex; gap: 14px; }
.dp-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.dp-ico svg { width: 21px; height: 21px; }
.dp-tx { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.dp-tx b { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.dp-tx span { font-size: 13.5px; color: var(--body); line-height: 1.5; }

.demo-stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.dstat { display: flex; flex-direction: column; gap: 3px; }
.dstat-v { font-family: var(--f-display); font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.dstat-k { font-size: 12.5px; color: var(--muted); }

.demo-logos { margin-top: 28px; }
.demo-logos-label { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .01em; margin-bottom: 16px; max-width: 340px; line-height: 1.45; }
.logo-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.logo-track { display: flex; align-items: center; gap: 38px; width: max-content; animation: logoScroll 32s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; gap: 22px 32px; } }
.logo-item { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--muted); opacity: .72; transition: opacity .18s, color .18s; }
.logo-item:hover { opacity: 1; color: var(--ink); }
.client-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.client-logo img { height: 32px; width: auto; max-width: 112px; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.15); opacity: .8; transition: filter .25s, opacity .25s; }
.client-logo:hover img { filter: none; opacity: 1; }
.logo-mark { width: 22px; height: 22px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-name { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }

/* Right form */
.demo-form-wrap { position: relative; min-width: 0; }

/* ── Form card ─────────────────────────────────────────────────────────── */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-md); }
.form-card > .fc-head { margin-bottom: 22px; }
.fc-head h2 { font-size: 24px; letter-spacing: -.02em; }
.fc-head p { font-size: 14px; color: var(--muted); margin-top: 6px; }

.form-sec { padding-top: 26px; margin-top: 26px; border-top: 1px solid var(--line-2); }
.form-sec:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.form-sec-title { display: flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.form-sec-title .n { width: 20px; height: 20px; border-radius: 6px; background: var(--primary-tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--primary); margin-left: 2px; }
.field-ctl {
  appearance: none; width: 100%; font-family: var(--f-body); font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field-ctl::placeholder { color: var(--faint); }
.field-ctl:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
select.field-ctl { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237B86A1' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
textarea.field-ctl { resize: vertical; min-height: 110px; line-height: 1.55; }
.field-hint { font-size: 12px; color: var(--muted); font-style: italic; }

/* Suite checkboxes */
.suite-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.suite-check { position: relative; }
.suite-check input { position: absolute; opacity: 0; pointer-events: none; }
.suite-check label {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s; user-select: none;
}
.suite-check label .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; transition: all .15s; }
.suite-check label .box svg { width: 12px; height: 12px; opacity: 0; transition: opacity .12s; }
.suite-check label:hover { border-color: var(--primary); }
.suite-check input:checked + label { border-color: var(--primary); background: var(--primary-tint-2); }
.suite-check input:checked + label .box { background: var(--primary); border-color: var(--primary); }
.suite-check input:checked + label .box svg { opacity: 1; }
.suite-check input:focus-visible + label { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }

/* Volume radio cards */
.vol-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vol-opt { position: relative; }
.vol-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vol-opt label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; user-select: none;
}
.vol-opt label .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex-shrink: 0; position: relative; transition: border-color .15s; }
.vol-opt label .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .15s; }
.vol-opt .vo-text { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.vol-opt label:hover { border-color: var(--primary); }
.vol-opt input:checked + label { border-color: var(--primary); background: var(--primary-tint-2); }
.vol-opt input:checked + label .dot { border-color: var(--primary); }
.vol-opt input:checked + label .dot::after { transform: scale(1); }

/* Submit */
.form-foot { margin-top: 24px; }
.form-foot .btn { width: 100%; justify-content: center; padding: 15px 28px; font-size: 15.5px; }
.form-privacy { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-privacy svg { width: 15px; height: 15px; color: var(--green-strong); flex-shrink: 0; margin-top: 1px; }
.field label .opt { color: var(--faint); font-weight: 400; margin-left: 3px; }

/* Success state */
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.show { display: block; animation: fadePanel .35s var(--ease); }
.form-success .fs-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green-tint); color: var(--green-strong); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.form-success .fs-ico svg { width: 32px; height: 32px; }
.form-success h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--body); max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ── Aside ─────────────────────────────────────────────────────────────── */
.aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card.dark { background: var(--ink); border-color: transparent; }
.aside-title { font-family: var(--f-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 16px; }
.aside-card.dark .aside-title { color: var(--d-text); }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.why-list li { display: flex; gap: 11px; font-size: 14px; color: var(--d-body); line-height: 1.4; }
.why-list li .wl-check { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.why-list li .wl-check svg { width: 17px; height: 17px; }
.why-list li b { color: var(--d-text); font-weight: 600; }

.assist-item { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.assist-item:first-of-type { border-top: none; padding-top: 4px; }
.assist-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assist-ico svg { width: 19px; height: 19px; }
.assist-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.assist-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* ── Process timeline ──────────────────────────────────────────────────── */
.process { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 0 26px; }
.step:first-child { padding-left: 0; }
.step::before { content: ""; position: absolute; left: 0; top: 19px; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.step:first-child::before { left: 19px; width: calc(100% - 19px); }
.step:last-child::before { width: 19px; }
.step-n { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 600; font-size: 16px; margin-bottom: 18px; }
.step h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--body); line-height: 1.55; }

/* ── Trust strip ───────────────────────────────────────────────────────── */
.atrust { text-align: center; }
.atrust-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.atrust-check { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.atrust-check .ac-ico { width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint); color: var(--green-strong); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.atrust-check .ac-ico svg { width: 13px; height: 13px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .demo { padding-top: calc(40px * var(--pad)); }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .demo-meta { max-width: 640px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .step:nth-child(3) { padding-left: 0; }
  .step:nth-child(3)::before { left: 19px; width: calc(100% - 19px); }
}
@media (max-width: 768px) {
  .field-grid { grid-template-columns: 1fr; }
  .suite-checks, .vol-opts { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .demo { padding-bottom: calc(40px * var(--pad)); }
  .form-card { padding: 24px; }
  .demo-stats { gap: 16px 24px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-left: 0; }
  .step::before { display: none; }
}
