/* ===== Slide 6 — The API ====================================================================
   Dev-center mockup styled to the hfpp Developer Center design system (rsup2/hfpp-dev-center,
   app/globals.css): dark elev #0D0D0D / line #2A2A2A / fg #F9F9F9 / muted #999 / accent #00A3FF,
   theme-invariant code panel #26292E / #484D54 / req #E1E1E1 / res #999. Suisse Intl + Suisse
   Intl Mono — same families the deck already ships. Type is vh-clamped so the full response
   JSON fits the slide at any height. */
.apis { width: min(1560px, 100%); display: grid; grid-template-columns: 36% 64%; gap: clamp(24px, 3vw, 56px); align-items: center; color: #fff; }
.apis .eyebrow { color: rgba(255,255,255,.8); }
.apis .title { font-size: clamp(26px, 2.7vw, 48px); margin: 14px 0 0; }
.apis__intro { font-size: clamp(14px, 1.4vw, 22px); line-height: 1.32; margin-top: 16px; max-width: 30ch; }
.apis .feat__h { font-weight: 600; font-size: clamp(14px, 1.2vw, 19px); }
.apis .feat__body { color: rgba(255,255,255,.92); }
.apis__stat { margin-top: 24px; font-size: clamp(12px, 1.2vw, 19px); line-height: 1.35; max-width: 40ch; color: rgba(255,255,255,.94); }

.apis__visual { display: flex; justify-content: center; }
.devcard { width: 100%; max-width: 880px; background: #0D0D0D; border: 1px solid #2A2A2A; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr 1.06fr; box-shadow: 0 10px 30px rgba(0,10,30,.25), 0 30px 70px rgba(0,10,30,.3); }

.devcard__docs { padding: clamp(14px, 2.2vh, 22px) clamp(14px, 1.6vw, 22px); display: flex; flex-direction: column; min-width: 0; }
.devcard__title { font-family: "suisseIntl", sans-serif; font-weight: 600; font-size: clamp(15px, 2.2vh, 20px); color: #F9F9F9; margin: 0 0 6px; }
.devcard__endpoint { font-size: clamp(9px, 1.35vh, 11.5px); color: #F9F9F9; margin-bottom: 10px; letter-spacing: .02em; }
.devcard__verb { color: #00A3FF; font-weight: 700; }
.devcard__desc { font-family: "suisseIntl", sans-serif; font-size: clamp(9px, 1.4vh, 12px); line-height: 1.5; color: #999999; margin: 0 0 8px; }
.devcard__desc--dim { color: #666666; }
.devcard__code-ref { color: #00A3FF; font-size: .92em; }
.devcard__paramhead { font-size: clamp(7.5px, 1.05vh, 9px); letter-spacing: .14em; color: #666666; border-top: 1px solid #2A2A2A; padding-top: 10px; margin-top: 4px; }
.devcard__param { border-bottom: 1px solid #2A2A2A; padding: 8px 0; }
.devcard__param:last-of-type { border-bottom: none; }
.devcard__pname { font-size: clamp(8.5px, 1.3vh, 11px); color: #00A3FF; }
.devcard__pmeta { color: #666666; font-size: .85em; letter-spacing: .04em; }
.devcard__pdesc { font-family: "suisseIntl", sans-serif; font-size: clamp(8.5px, 1.25vh, 11px); line-height: 1.45; color: #999999; margin: 3px 0 0; }
.devcard__pdesc .mono { color: #C9CDD6; font-size: .92em; }
.devcard__mcp { margin-top: auto; padding-top: 12px; }
.devcard__mcp { align-self: flex-start; background: #F9F9F9; color: #000; font-family: "suisseIntl", sans-serif; font-weight: 500; font-size: clamp(8.5px, 1.3vh, 11px); border-radius: 76px; padding: 8px 14px; margin-top: 14px; }

.devcard__code { background: #26292E; border-left: 1px solid #484D54; display: flex; flex-direction: column; min-width: 0; }
.devcard__codehead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #484D54; font-size: clamp(7px, 1vh, 8.5px); letter-spacing: .1em; color: #666666; }
.devcard__codehead--res { border-top: 1px solid #484D54; }
.devcard__codeactions { display: flex; gap: 12px; }
.devcard__tryit { color: #E1E1E1; }
/* pre-wrap, not pre: with `white-space: pre` + `overflow: hidden` an over-long line is silently
   hard-clipped mid-character with no scrollbar and no ellipsis, so a later copy edit can lengthen
   a line and quietly hide the tail of it. Wrapping keeps every character on screen instead. The
   sample JSON below is also kept under ~66 chars per line so nothing actually needs to wrap at
   desktop — this is the safety net, not the layout. */
.devcard__req { margin: 0; padding: 10px 14px; font-size: clamp(7.5px, 1.15vh, 10px); line-height: 1.45; color: #E1E1E1; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; }
.devcard__comment { color: #666666; }
.devcard__res { margin: 0; padding: 10px 14px; flex: 1; font-size: clamp(6.5px, 1.02vh, 9.5px); line-height: 1.34; color: #999999; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; }

@media (max-width: 1100px) {
  .apis { display: flex; flex-direction: column; align-items: stretch; }
  .apis__intro, .apis__stat { max-width: 46ch; }
  .apis__visual { margin-top: 20px; }
  .devcard { grid-template-columns: 1fr; max-width: 640px; }
  .devcard__code { border-left: none; border-top: 1px solid #484D54; }
  .devcard__res { max-height: 30vh; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .devcard__mcp { margin-top: 14px; }
}
@media (max-width: 720px) {
  .devcard__docs { padding: 14px; }
  .devcard__res { max-height: 24vh; }
}
