/* api.html: the open API and the tools it connects to, in the homepage's language (31 Oct 2026).
   Hero: centred copy, then the homepage's tools wall (.tl) on a grey dot stage, wider (six columns on desktop), with a call to
   GET /api/classes and its answer on top; four uses with the tools' logos; the six groups of calls; three steps; the FAQ panel;
   the closing. Shared pieces come from site.css. */

/* ---------- Hero stage: the tools wall, wider, and the code card on top ---------- */
.api-stage { height: clamp(540px, 50vw, 620px); }
.api-wall { position: absolute; inset: 0; padding: 0 clamp(14px, 2.4vw, 28px); }
.api-wall .tl-grid { height: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 12px;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.api-wall .tl-t { font-size: 13.5px; }
/* still (reduced motion): each column at its own height, so the rows don't line up */
.api-wall .tl-col:nth-child(1) .tl-track { transform: translateY(-36px); }
.api-wall .tl-col:nth-child(2) .tl-track { transform: translateY(-82px); }
.api-wall .tl-col:nth-child(3) .tl-track { transform: translateY(-14px); }
.api-wall .tl-col:nth-child(4) .tl-track { transform: translateY(-64px); }
.api-wall .tl-col:nth-child(5) .tl-track { transform: translateY(-24px); }
.api-wall .tl-col:nth-child(6) .tl-track { transform: translateY(-74px); }
@media (prefers-reduced-motion: no-preference) {
  .api-wall .tl-col:nth-child(4) .tl-track { animation-name: tl-down; animation-duration: 34s; }
  .api-wall .tl-col:nth-child(5) .tl-track { animation-name: tl-up; animation-duration: 30s; }
  .api-wall .tl-col:nth-child(6) .tl-track { animation-name: tl-down; animation-duration: 42s; }
}
@container ihs (max-width: 899px) {
  .api-wall .tl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .api-wall .tl-col:nth-child(n+5) { display: none; }
  .api-wall .tl-t { font-size: 12.5px; }
}
@container ihs (max-width: 559px) {
  .api-wall .tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
  .api-wall .tl-col:nth-child(n+4) { display: none; }
  .api-wall .tl-t { font-size: 10.5px; }
}

/* the call and its answer: a dark code window, request beside response (left to right, as code reads) */
.api-code { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(760px, calc(100% - 48px)); transform: translate(-50%, -50%); overflow: hidden; border-radius: 20px;
  background: #0B0B0C; color: #E6EDF0; direction: ltr; text-align: left; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 50px 90px -36px rgba(0, 0, 0, .6); }
.api-code-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .1);
  font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.api-dots { display: flex; gap: 6px; }
.api-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A3C; }
.api-code-bar b { color: #fff; font-weight: 600; }
.api-code-bar em { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: rgba(24, 229, 136, .14); color: #18E588; font-style: normal; font-size: 12px; }
.api-code-body { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.api-code .code { padding: 18px 20px 20px; border-radius: 0; background: none; font-size: 13px; line-height: 1.7; overflow: hidden; }
.api-code .api-req { border-right: 1px solid rgba(255, 255, 255, .1); }
.api-code .code .s { color: #B9C2C9; }
.api-code .code .k { color: #fff; font-weight: 500; }
.api-code bdi { font-family: var(--sans); font-size: 1.16em; }
@container ihs (max-width: 699px) {
  .api-code { width: calc(100% - 28px); border-radius: 18px; }
  .api-code-body { grid-template-columns: minmax(0, 1fr); }
  .api-code .api-req { display: none; }
  .api-code .code { padding: 14px 16px 16px; font-size: 11.5px; }
  .api-code-bar { gap: 10px; height: 42px; padding: 0 14px; font-size: 12px; }
}

/* ---------- What you connect: four uses, each with the tools' logos on a small grey stage ---------- */
.uses2 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.u { display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 14px 14px 26px; border-radius: 26px; background: #fff; }
.u .h3, .u p { padding-inline: 8px; }
.u .h3 { margin-top: 10px; }
.u p { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.u-logos { display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 10px; height: 144px; padding: 12px; border-radius: 18px;
  background: #F2F2F3 radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.6px) 0 0 / 18px 18px; }
.u-t { display: flex; align-items: center; justify-content: center; gap: .5em; height: 4.4em; padding: 0 1em; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 24px -18px rgba(0, 0, 0, .25); direction: ltr; font-size: 12.5px; white-space: nowrap; }
.u-t svg { display: block; flex: none; }
.u-t .i { width: 1.65em; height: 1.65em; }
.u-t span { font-family: "Wix Madefor Display", var(--display); font-size: .92em; font-weight: 600; letter-spacing: -0.01em; color: #3C4043; }
.u-t.gpt span { font-size: 1.15em; color: #000; }
/* the studio's site: a small browser window with the schedule */
.u-site { display: grid; width: min(100%, 230px); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 14px 30px -20px rgba(0, 0, 0, .35); }
.u-bar { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-bottom: 1px solid #EDEDF0; }
.u-bar i { width: 7px; height: 7px; border-radius: 50%; background: #DADADF; }
.u-bar em { margin-inline-start: 6px; font-size: 11px; font-style: normal; color: var(--ink-2); }
.u-rows { display: grid; gap: 6px; padding: 8px; }
.u-rows > span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: 8px; background: #FCEDF2; color: #0B0B0C; font-size: 12px; font-weight: 600; }
.u-rows b { font-family: "Wix Madefor Text", var(--sans); font-size: 11.5px; color: #B0003C; }
.u-rows small { margin-inline-start: auto; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.u-rows small.ok { color: #1A7F4B; }
@media (max-width: 1099px) { .uses2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .uses2 { grid-template-columns: minmax(0, 1fr); } .u { border-radius: 22px; } }

/* ---------- What's in the API: six groups as cards, with the calls ---------- */
.eps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ep { display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 24px 24px 22px; border-radius: 24px; background: var(--paper-2); }
.ep-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px; background: #000; color: #fff; }
.ep-ic .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ep h3 { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.3; }
.ep > p:not(.ep-calls) { font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.ep-calls { margin-top: 10px; }
.ep-calls code { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px 5px 5px; border-radius: 10px; background: #fff; direction: ltr;
  font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #0B0B0C; overflow-wrap: anywhere; }
.ep-calls code b { flex: none; padding: 4px 7px; border-radius: 7px; background: #E7E7EA; font-size: 11px; font-weight: 700; }
.ep-calls code.he { direction: rtl; padding: 5px 5px 5px 12px; font-family: var(--sans); font-size: 15px; }
.ep-calls code.he b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ep-calls code.post b { background: #000; color: #fff; }
.eps-more { margin-top: 20px; font-size: 16px; color: var(--ink-2); }
@media (max-width: 899px) { .eps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .eps { grid-template-columns: minmax(0, 1fr); } .ep { border-radius: 22px; padding: 22px 20px 20px; } }

/* ---------- How to start: three steps stay in a row on tablets ---------- */
@media (min-width: 640px) and (max-width: 899px) { .steps2.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps2.s3 li { padding: 20px 18px 22px; } }
.api-more { margin-top: 28px; }

/* a Hebrew prefix and the Latin word after it stay on one line */
.nw { white-space: nowrap; }
