/* AI API — endpoint deck, model catalogue, integration code, saldo plans */

#ai-plans,
#ai-integrasi,
#ai-model {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.page-head-side .hero-actions {
  flex-direction: column;
  align-items: stretch;
}

.page-head-side .hero-actions .btn {
  justify-content: center;
}

/* Hero endpoint deck */

.ai-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0d9488;
  white-space: nowrap;
}

.ai-ok .status-dot {
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.ai-terminal {
  margin: 0;
  padding: 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0c22;
  color: #ece8ff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-x: auto;
}

.ai-deck-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 19, 54, 0.1);
}

.ai-deck-meta > div {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  background: #ffffff;
}

.ai-deck-meta strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #151233;
}

.ai-deck-meta span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8782a0;
}

/* Model catalogue */

.ai-model-wrap {
  margin-top: 26px;
}

.ai-model-table .num {
  text-align: right;
}

.ai-model-name {
  display: grid;
  gap: 2px;
  min-width: 180px;
}

.ai-model-name strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.ai-model-id {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-text);
}

.ai-model-use {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--dim);
}

.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.ai-note .ico {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent-text);
}

/* Integration */

.ai-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.ai-panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.ai-panel .step-list {
  display: grid;
  margin-top: 18px;
}

.ai-panel .step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.ai-panel .step:first-child {
  padding-top: 0;
  border-top: 0;
}

.ai-panel .step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 10px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-text);
}

.ai-panel .step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ai-panel .step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.ai-compat {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
}

.ai-compat li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-compat .ico {
  width: 11px;
  height: 11px;
  color: var(--accent-text);
}

.ai-code-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #0f0c22;
  color: #ece8ff;
  box-shadow: var(--shadow);
}

.ai-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.ai-code {
  margin: 0;
  padding: 18px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-x: auto;
}

.ai-code .c {
  color: #8c86ad;
}

.ai-code .s {
  color: #ffd9a0;
}

.ai-code .k {
  color: #b9a6ff;
}

/* Prepaid plans */

.plan-term {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.plan.is-popular .plan-term {
  color: rgba(255, 255, 255, 0.62);
}

.ai-plans-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.ai-plans-note .ico {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent-text);
}

.ai-plans-note p {
  margin: 0;
}

.plan .plan-foot .billing-note {
  text-align: center;
}

@media (max-width: 900px) {
  .ai-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ai-deck-meta {
    grid-template-columns: 1fr;
  }

  .ai-terminal,
  .ai-code {
    font-size: 10px;
  }
}
