/*
 * css/protocol.css: /protocol only. Orange hero card, live strip, 01 CREDIT with the gravity well, 02 launchpad
 * loop (ring on the left, orange steps on the right), 03 Build with the client tabs, contracts list, CTA band.
 * Everything else comes from site.css.
 */

/* ---------- hero ---------- */
.pr-hero { min-height: min(700px, calc(100svh - 88px)); }
.pr-kicker {
  display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 251, 245, .5);
  font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--head);
}
.pr-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.pr-btns-c { margin-top: 10px; }
.pr-runs { font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: rgba(255, 251, 245, .82); margin-top: 4px; }

/* ---------- live strip ---------- */
.pr-live { padding: 40px 48px 48px; }
.pr-live-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.pr-dot { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ok); }
.pr-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, .15); }
.pr-asof { font: 400 12px/1.3 var(--mono); color: var(--dim); }
.pr-stats .stat b { white-space: nowrap; }

/* ---------- sections ---------- */
.pr-sec { border-top: 1px dashed var(--line); }
.pr-label { display: inline-block; font: 500 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.pr-soft { color: var(--mute); }
.pr-copy { display: grid; gap: 18px; align-content: start; }
.pr-copy .lede { max-width: 560px; }
.pr-links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 4px; }
.pr-links .link { min-height: 40px; }
.pr-btns-c .btn { min-height: 40px; }
.pr-chain-h .link { min-height: 40px; }
.pr-connect .copy-btn { position: relative; }
.pr-connect .copy-btn::after { content: ''; position: absolute; inset: -10px -8px; } /* a 40 px tap area around the small chip */

/* ---------- 01 CREDIT ---------- */
.pr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 64px; }
.pr-art { position: relative; width: 100%; max-width: 470px; justify-self: center; }
.pr-art::before {
  content: ''; position: absolute; inset: 8%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 68%, rgba(255, 94, 31, .22), rgba(255, 94, 31, 0) 62%);
}
.pr-well {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1; background: var(--or);
  -webkit-mask: url('/img/singularity-current.svg') center / contain no-repeat; mask: url('/img/singularity-current.svg') center / contain no-repeat;
}
.pr-call {
  position: absolute; z-index: 2; display: grid; gap: 3px; max-width: 200px; padding: 10px 12px; font-size: 13px; line-height: 1.35;
  color: var(--or-3); background: rgba(21, 20, 20, .88); border: 1px dashed rgba(255, 94, 31, .75);
}
.pr-call b { font-weight: 500; font-size: 15px; color: var(--or); }
.pr-call.c1 { left: -6%; top: 16%; }
.pr-call.c2 { right: -6%; bottom: 14%; }
.pr-cell-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.pr-cell-top .ic { margin-bottom: 0; }
.pr-four .cell { padding: 28px 26px 32px; }

/* ---------- 02 launchpad loop ---------- */
.pr-loop { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pr-ring-box {
  display: grid; place-items: center; padding: 36px; border-right: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255, 94, 31, .08), transparent 70%);
}
.pr-ring { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.pr-ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pr-orbit { position: absolute; inset: 16%; border-radius: 50%; animation: pr-spin 16s linear infinite; }
.pr-orbit i { position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--or); box-shadow: 0 0 0 4px rgba(255, 94, 31, .18), 0 0 14px rgba(255, 94, 31, .7); }
@keyframes pr-spin { to { transform: rotate(360deg); } }
.pr-core {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-1); border: 1px solid var(--line-2); color: var(--or);
}
.pr-core svg { width: 62%; height: 62%; }
.pr-node {
  position: absolute; display: grid; gap: 4px; padding: 9px 12px; text-align: center; white-space: nowrap;
  background: var(--bg-1); border: 1px dashed var(--line-2); border-radius: 10px;
}
.pr-node b { font-weight: 500; font-size: 15px; color: var(--head); }
.pr-node em { font: 500 11px/1 var(--mono); font-style: normal; color: var(--or); margin-right: 7px; }
.pr-node small { font: 500 10.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.pr-node.n1 { left: 50%; top: 16%; translate: -50% -50%; border-color: rgba(255, 94, 31, .7); }
.pr-node.n2 { right: 0; top: 50%; translate: 0 -50%; }
.pr-node.n3 { left: 50%; top: 84%; translate: -50% -50%; }
.pr-node.n4 { left: 0; top: 50%; translate: 0 -50%; }
.pr-steps {
  list-style: none; margin: 0; padding: 0; display: grid; background: var(--or); color: var(--head); position: relative; isolation: isolate;
}
.pr-steps::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 236, 214, .2) .75px, transparent 1.05px); background-size: 4px 4px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.pr-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 26px 30px; border-bottom: 1px solid rgba(255, 251, 245, .26); }
.pr-steps li:last-child { border-bottom: 0; }
.pr-n { font: 500 12px/1 var(--mono); letter-spacing: .06em; padding-top: 5px; color: rgba(255, 251, 245, .78); }
.pr-steps h3 { font-size: 19px; letter-spacing: -0.015em; }
.pr-steps p { margin-top: 5px; font-size: 15px; line-height: 1.45; color: rgba(255, 251, 245, .92); }

/* ---------- 03 build ---------- */
.pr-build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.pr-caps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
.pr-caps li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pr-caps b { display: block; font-weight: 500; font-size: 15px; color: var(--head); }
.pr-caps small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--mute); }
.pr-ti { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--head); display: grid; place-items: center; }
.pr-ti img { width: 18px; height: 18px; object-fit: contain; }
.pr-ti.pr-stack { width: auto; background: none; display: flex; }
.pr-stack img { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--head); border: 2px solid var(--bg); margin-left: -9px; }
.pr-stack img:first-child { margin-left: 0; }

.pr-connect { padding: 30px; background: var(--bg-1); }
.pr-connect h3 { font-size: 22px; letter-spacing: -0.015em; }
.pr-connect-sub { margin: 6px 0 20px; font-size: 15px; color: var(--mute); }
.pr-clients { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pr-clients button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 13px 6px 7px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); font: 500 13px/1 var(--mono); color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.pr-clients button:hover { border-color: var(--line-2); }
.pr-clients button[aria-selected='true'] { background: var(--or); border-color: var(--or); color: var(--head); }
.pr-ci { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--head); display: grid; place-items: center; }
.pr-ci img { width: 16px; height: 16px; object-fit: contain; }
.pr-panel { display: grid; gap: 14px; }
.pr-panel p { font-size: 15px; line-height: 1.5; color: var(--mute); }
.pr-panel .term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.pr-note { margin-top: 16px; font-size: 13px; line-height: 1.55; color: var(--dim); }
.pr-note + .pr-note { margin-top: 10px; }
.pr-note a { color: var(--or-2); white-space: nowrap; }
.pr-note a svg { display: inline-block; vertical-align: -1px; }
.pr-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contracts ---------- */
.pr-chain { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.pr-chain + .pr-chain { margin-top: 48px; }
.pr-chain-h { display: grid; gap: 8px; justify-items: start; position: sticky; top: 96px; }
.pr-chain-h p { font-size: 14.5px; line-height: 1.45; color: var(--mute); }
.pr-chain-h .link { font-size: 14.5px; margin-top: -6px; }
.pr-rows { list-style: none; margin: 0; padding: 0; }
.pr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pr-row:last-child { border-bottom: 0; }
.pr-row-t h3 { font-size: 16px; letter-spacing: -0.01em; }
.pr-row-t p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.pr-row-t code.inl { font-size: 12.5px; }
.pr-row-a { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 0; }
.pr-row-a .addr { font-size: 12.5px; }
.pr-cp {
  flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mute);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.pr-cp:hover { color: var(--head); border-color: var(--line-2); }
.pr-cp svg { width: 15px; height: 15px; }

/* ---------- CTA band ---------- */
.cta-card .float.f1 { left: 7%; top: 16%; rotate: -12deg; }
.cta-card .float.f2 { right: 8%; top: 12%; rotate: 10deg; }
.cta-card .float.f3 { left: 13%; top: 52%; rotate: 8deg; }
.cta-card .float.f4 { right: 12%; top: 50%; rotate: -9deg; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .pr-call.c1 { left: 0; }
  .pr-call.c2 { right: 0; }
}
@media (max-width: 980px) {
  .pr-build { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 900px) {
  .pr-split { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
  .pr-loop { grid-template-columns: 1fr; }
  .pr-ring-box { border-right: 0; border-bottom: 1px solid var(--line); }
  .pr-chain { grid-template-columns: 1fr; gap: 14px; }
  .pr-chain-h { position: static; }
}
@media (max-width: 760px) {
  .pr-live { padding: 32px 18px 40px; }
  .pr-row { grid-template-columns: minmax(0, 1fr); padding: 16px 16px; }
  .pr-row-a { justify-content: space-between; }
  .pr-connect { padding: 22px 18px; }
  .pr-steps li { padding: 22px 20px; }
}
@media (max-width: 600px) {
  .pr-art { display: grid; gap: 10px; max-width: 380px; }
  .pr-call { position: static; max-width: none; }
  .pr-ring-box { padding: 20px 12px; }
  .pr-node { padding: 8px 10px; }
  .pr-node small { display: none; }
  .pr-node b { font-size: 14px; }
  .pr-caps { grid-template-columns: 1fr; }
  .pr-kicker { font-size: 10.5px; letter-spacing: .06em; padding: 7px 11px; }
  .pr-stats .stat { padding: 20px 18px; }
  .pr-stats .stat b { font-size: 25px; }
  .pr-panel .term pre { padding: 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pr-orbit { animation: none; } }
