/* arc.ai: the Kimi K3 API page (k3.html), on paper (the look approved on 18 Oct 2026).
   One arch at the scale of the room: the site's own engraved arch (js/engrave/frame.js), cut by its engraver at 4.4 px per
   plate unit into assets/arch/ (the crown, one period of each pier, the base), Kimi K3's price in its Arc-blue window and
   K3 on the keystone's tablet. Blue inside, paper outside. Below the arch: paper and ink, no second arch. */

/* the window's prices (the arch itself is css/arch.css) */
.k3-prices { list-style: none; margin: calc(100cqw * 17 / 600) 0 0; padding: 0; display: flex; justify-content: center; }
.k3-prices li { display: inline-flex; align-items: baseline; gap: 0.55em; padding: 0 calc(100cqw * 14 / 600); color: rgba(255, 255, 255, 0.84); font-size: max(0.92rem, calc(100cqw * 8.6 / 600)); }
.k3-prices li + li { border-left: 1px solid rgba(255, 255, 255, 0.42); }
.k3-prices b { font: 400 max(1.5rem, calc(100cqw * 17 / 600))/1 var(--f-display); color: #fff; letter-spacing: 0.01em; font-variant-numeric: lining-nums; }

/* narrow windows: the two prices stack, without the rule between them */
@container (max-width: 640px) {
  .k3-prices { flex-direction: column; align-items: center; gap: 6px; }
  .k3-prices li { padding: 0; }
  .k3-prices li + li { border-left: 0; }
}

/* ---------- below the arch: paper and ink ---------- */
.k3-sec { padding-block: clamp(96px, 14vh, 160px); }
.k3-sec + .k3-sec { border-top: 1px solid var(--rule-paper); }
.k3-head { display: grid; gap: 20px; justify-items: start; max-width: 48rem; }
.k3-head .eyebrow { color: var(--arc); }
.k3-head h2 { font: 400 clamp(2.1rem, 4.8vw, 4.6rem)/1.02 var(--f-display); letter-spacing: 0.01em; color: var(--ink); }
.k3-head .lead { color: var(--ink-soft); }

/* what you get: three numbered points under one ink rule */
.k3-get { list-style: none; margin: clamp(52px, 8vh, 84px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.k3-get li { display: grid; gap: 14px; align-content: start; padding: 30px clamp(20px, 2.8vw, 40px) 6px 0; }
.k3-get li + li { padding-left: clamp(20px, 2.8vw, 40px); border-left: 1px solid var(--rule-paper); }
.k3-num { font: 400 1.05rem/1 var(--f-display); letter-spacing: 0.1em; color: var(--arc); }
.k3-get h3 { font: 400 clamp(1.65rem, 2.4vw, 2.2rem)/1.08 var(--f-display); letter-spacing: 0.01em; color: var(--ink); }
.k3-get p { color: var(--ink-soft); max-width: 30em; }
.k3-get code { font: 500 0.92em var(--f-mono); color: var(--ink); white-space: nowrap; }
.nw { white-space: nowrap; }

/* the tariff: Live and Batch side by side, the live column in Arc blue, under a double rule as on a printed price list */
.k3-tariff { margin-top: clamp(48px, 7vh, 72px); overflow-x: auto; }
.k3-tariff table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.k3-tariff thead th { text-align: left; vertical-align: top; padding: 0 0 24px; border-bottom: 3px double var(--ink); }
.k3-tariff thead td { border-bottom: 3px double var(--ink); }
.k3-tier { display: block; font: 400 clamp(1.9rem, 3vw, 2.8rem)/1 var(--f-display); letter-spacing: 0.01em; color: var(--ink); }
.k3-tier-note { display: block; margin-top: 12px; max-width: 21em; font: 400 1rem/1.45 var(--f-body); color: var(--ink-soft); }
.k3-tariff tbody th { width: 28%; padding: 24px 16px 24px 0; text-align: left; vertical-align: baseline; font: 500 1.02rem var(--f-body); color: var(--ink-soft); border-bottom: 1px solid var(--rule-paper); }
.k3-tariff td { width: 36%; padding: 20px 0; vertical-align: baseline; font: 400 clamp(2rem, 3.4vw, 3.1rem)/1 var(--f-display); letter-spacing: 0.01em; color: var(--ink); border-bottom: 1px solid var(--rule-paper); }
.k3-tariff th + th, .k3-tariff td + td { padding-left: clamp(16px, 3vw, 44px); }
.k3-tariff td.k3-live { color: var(--arc); }
.k3-tariff thead th.k3-live .k3-tier { color: var(--arc); }
.k3-note { margin-top: 20px; font-size: 0.95rem; color: var(--ink-faint); }

/* get started: the address, the code in ink (one block, wide enough for its longest line), then the buttons */
.k3-start-col > * { max-width: 56rem; }
.k3-start .k3-code-wrap { margin-top: clamp(32px, 5vh, 48px); }
.k3-start-foot { display: grid; gap: 16px; justify-items: start; margin-top: clamp(28px, 4vh, 40px); }
.k3-start .cta-row { justify-content: flex-start; }
.k3-start .join-direct { color: var(--ink-soft); }
.k3-code-wrap { position: relative; margin: 0; min-width: 0; background: #0f1115; color: #e8eaf0; box-shadow: 0 30px 70px -40px rgba(15, 17, 21, 0.55); }
.k3-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 10px 8px 22px; border-bottom: 1px solid rgba(244, 245, 248, 0.12); font: 500 0.8rem var(--f-mono); color: rgba(244, 245, 248, 0.6); }
.k3-code-bar .copy { background: transparent; color: #f4f5f8; box-shadow: inset 0 0 0 1px rgba(244, 245, 248, 0.32); }
.k3-code-bar .copy:hover { background: #f4f5f8; color: #0f1115; }
.k3-code { margin: 0; padding: 22px 22px 26px; overflow-x: auto; white-space: pre; tab-size: 4; font: 400 0.9rem/1.72 var(--f-mono); color: #e8eaf0; }
.k3-code code { font: inherit; color: inherit; }
.k3-code .k { color: #ffffff; font-weight: 500; }
.k3-code .s { color: #a9bfff; }
.k3-code .c { color: rgba(232, 234, 240, 0.48); }
.k3-code:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; }

@media (max-width: 860px) {
  .k3-get { grid-template-columns: minmax(0, 1fr); }
  .k3-get li, .k3-get li + li { padding: 26px 0; border-left: 0; }
  .k3-get li + li { border-top: 1px solid var(--rule-paper); }
}
@media (max-width: 560px) {
  .k3-sec { padding-block: 72px; }
  .k3-tariff tbody th { width: 30%; font-size: 0.95rem; }
  .k3-tier-note { font-size: 0.9rem; }
  .k3-code { padding: 18px 16px 22px; font-size: 0.8rem; }
  .k3-start .cta-row { flex-direction: column; align-items: stretch; }
}
