/* ============================================================
   Halaman solusi (/solutions) — memakai token & komponen landing.css
   ============================================================ */

/* Hero dua kolom, lebar penuh container (--maxw) */
.sol-hero { padding: 72px 0 48px; }
.sol-hero .hero-inner {
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  max-width: none; align-items: center;
  gap: 34px clamp(28px, 4vw, 56px);
}
.sol-hero .hero-copy { max-width: 660px; }
.sol-hero h1 { font-size: clamp(34px, 4.2vw, 54px); margin: 0 0 18px; }

/* Visual: 4 use case → 1 endpoint */
.sol-visual { max-width: 460px; }
.sol-core {
  width: 208px; height: 126px; padding: 14px 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  text-align: center;
}
.sol-core-label {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.sol-core code {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  color: var(--heading); background: none; padding: 0;
}
.sol-core-meta { font-size: 10px; color: var(--muted); }

.sol-node {
  width: 86px; height: 86px; gap: 5px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.sol-node svg { width: 22px; height: 22px; color: var(--accent); }
.sol-node span {
  font-family: var(--font-mono); font-size: 8.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sol-node-a { top: 6%; left: 2%; }
.sol-node-b { top: 6%; right: 2%; animation-delay: -1.35s; }
.sol-node-c { bottom: 6%; left: 2%; animation-delay: -2.7s; }
.sol-node-d { right: 2%; bottom: 6%; animation-delay: -4.05s; }

.sol-note {
  margin: 18px 0 0; color: var(--muted);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6;
}

/* ---- Kartu solusi ---- */
.sol-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sol-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.sol-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.sol-card h3 { font-size: clamp(18px, 1.6vw, 21px); margin: 0; }

.sol-problem {
  margin: 0; color: var(--body); font-size: 14.5px; line-height: 1.65;
  border-left: 2px solid var(--border-strong); padding-left: 12px;
}

.sol-list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 9px; }
.sol-list li {
  position: relative; padding-left: 22px;
  color: var(--muted); font-size: 14px; line-height: 1.6;
}
.sol-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-family: var(--font-mono); font-size: 13px;
}

.sol-models {
  margin: auto 0 0; padding-top: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.6;
}
.sol-models span {
  display: inline-block; margin-right: 6px; padding: 2px 7px;
  border-radius: 5px; border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  background: var(--badge-bg); color: var(--accent);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}

.sol-link { padding-left: 0; color: var(--accent); align-self: flex-start; }
.sol-link:hover { color: var(--accent-hover); }

/* ---- Kenapa DataGo ---- */
.sol-why {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sol-why-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.sol-why-item h3 { font-size: 15.5px; margin: 10px 0 8px; }
.sol-why-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.sol-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--accent); background: var(--badge-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 6px; padding: 3px 8px;
}

/* ---- Matriks model ---- */
.sol-matrix-wrap {
  max-width: 980px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 8px 8px 22px;
  overflow-x: auto;
}
.sol-matrix { width: 100%; border-collapse: collapse; font-size: 14px; }
.sol-matrix thead th {
  text-align: left; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.sol-matrix tbody th {
  text-align: left; padding: 16px; color: var(--heading);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.sol-matrix tbody td {
  padding: 16px; border-bottom: 1px solid var(--border);
  color: var(--body); vertical-align: top;
}
.sol-matrix tbody tr:last-child th,
.sol-matrix tbody tr:last-child td { border-bottom: none; }
.sol-matrix code {
  display: block; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--accent); word-break: break-all;
}
.sol-why-text { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.sol-price { font-family: var(--font-mono); font-size: 13.5px; white-space: nowrap; }
.sol-na { color: var(--muted); }

/* Catatan/rekomendasi di bawah matriks */
.sol-tip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 4px 16px 0; padding: 14px 16px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius);
}
.sol-tip-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--badge-bg); color: var(--accent);
}
.sol-tip-icon svg { width: 16px; height: 16px; }
.sol-tip p {
  flex: 1 1 320px; margin: 0;
  color: var(--body); font-size: 13.5px; line-height: 1.6;
}
.sol-tip-link {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  color: var(--accent); font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.sol-tip-link svg { width: 15px; height: 15px; transition: transform var(--transition); }
.sol-tip-link:hover { color: var(--accent-hover); }
.sol-tip-link:hover svg { transform: translateX(3px); }

.sol-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Responsif ---- */
@media (max-width: 900px) {
  .sol-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sol-hero { padding: 52px 0 28px; }
  .sol-grid { grid-template-columns: minmax(0, 1fr); }
  .sol-card { padding: 22px; }
  .sol-matrix thead { display: none; }
  .sol-matrix, .sol-matrix tbody, .sol-matrix tr { display: block; }
  .sol-matrix tbody tr {
    padding: 14px 8px; border-bottom: 1px solid var(--border);
  }
  .sol-matrix tbody tr:last-child { border-bottom: none; }
  .sol-matrix tbody th, .sol-matrix tbody td {
    border: none; padding: 4px 8px; white-space: normal;
  }
  .sol-matrix tbody td { display: flex; justify-content: space-between; gap: 12px; }
  .sol-matrix tbody td::before {
    content: attr(data-label); color: var(--muted); font-size: 12px;
  }
  .sol-price { justify-content: space-between; }
}

@media (max-width: 560px) {
  .sol-why { grid-template-columns: minmax(0, 1fr); }
}
/* Nav: penanda halaman aktif */
.nav-links a.on { color: var(--heading); }
.nav-links a.on::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--accent); border-radius: 2px;
}

/* ---- Menu mobile ---- */
.sol-menu { display: none; }
@media (max-width: 1024px) {
  .sol-menu:not([hidden]) {
    display: grid; gap: 0;
    padding: 6px 24px 18px;
    background: var(--surface); border-bottom: 1px solid var(--border);
  }
  .sol-menu a {
    padding: 11px 0; color: var(--body); font-weight: 600; font-size: 14.5px;
    border-bottom: 1px solid var(--border);
  }
  .sol-menu a:hover { color: var(--accent); }
  .sol-menu-actions { display: flex; gap: 10px; padding-top: 14px; }
  .sol-menu-actions .btn { flex: 1; border-bottom: none; }
}

/* ---- Hero responsif ---- */
@media (max-width: 900px) {
  .sol-hero { padding: 60px 0 36px; }
  .sol-hero .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .sol-visual { margin-top: 6px; }
}

@media (max-width: 560px) {
  .sol-node { width: 64px; height: 64px; border-radius: 16px; }
  .sol-node svg { width: 18px; height: 18px; }
  .sol-node span { font-size: 7.5px; }
  .sol-core { width: 170px; height: 106px; padding: 10px 12px; }
  .sol-core code { font-size: 11px; }
  .sol-core-label { font-size: 8.5px; }
}

/* ---- Simulasi biaya 1.000 request ---- */
.sol-sim-section .section-head { margin-bottom: 38px; }

.sol-sim {
  max-width: 980px; margin: 0 auto;
  display: grid; gap: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 26px 28px 22px;
}

.sol-sim-row {
  display: grid;
  grid-template-columns: minmax(190px, 268px) minmax(0, 1fr) 152px;
  gap: 18px; align-items: center;
}
.sol-sim-meta { display: grid; gap: 2px; min-width: 0; }
.sol-sim-name { color: var(--heading); font-size: 14px; font-weight: 700; }
.sol-sim-meta code {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent);
  overflow-wrap: anywhere;
}
.sol-sim-tokens { font-size: 10.5px; color: var(--muted); line-height: 1.5; }

.sol-sim-track {
  position: relative; height: 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  overflow: hidden;
}
.sol-sim-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--pct);
  border-radius: 999px; transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 32%, transparent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 26%, transparent);
  animation: solSimGrow 1s cubic-bezier(.2, .7, .25, 1) both;
}
@keyframes solSimGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sol-sim-value { display: grid; gap: 1px; justify-items: end; text-align: right; }
.sol-sim-value strong { font-family: var(--font-mono); font-size: 15.5px; color: var(--heading); }
.sol-sim-value span { font-size: 10.5px; color: var(--muted); }
.sol-sim-value em {
  font-style: normal; font-family: var(--font-mono);
  font-size: 10.5px; color: color-mix(in srgb, var(--accent) 75%, var(--muted));
}

.sol-sim-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 18px;
}
.sol-sim-foot .sol-note { margin: 0; max-width: 620px; }

@media (max-width: 900px) {
  .sol-sim-row { grid-template-columns: minmax(0, 1fr) 132px; gap: 10px 14px; }
  .sol-sim-track { grid-column: 1 / -1; order: 3; }
  .sol-sim-value { justify-items: end; }
}

@media (max-width: 560px) {
  .sol-sim { padding: 20px 16px 18px; }
  .sol-sim-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sol-sim-value strong { font-size: 14px; }
}

/* ============================================================
   HALAMAN DETAIL SOLUSI
   ============================================================ */

/* ---- Remah roti ---- */
.sol-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 22px; text-transform: uppercase;
}
.sol-crumbs a { color: var(--muted); }
.sol-crumbs a:hover { color: var(--accent); }
.sol-crumbs span[aria-hidden] { color: var(--border-strong); }
.sol-crumbs > span:last-child { color: var(--body); }

.sol-detail-hero { padding-top: 34px; }
.sol-detail-hero .hero-inner { align-items: center; }
.sol-detail-hero h1 { font-size: clamp(30px, 3.6vw, 46px); }

/* ---- Chip statistik di hero ---- */
.sol-stats {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border);
}
.sol-stats li { display: grid; gap: 2px; }
.sol-stats span {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.sol-stats strong { color: var(--heading); font-size: 13px; font-weight: 600; }

/* ---- Kartu contoh keluaran review ---- */
.sol-review {
  border: 1px solid var(--border-strong); border-radius: calc(var(--radius) + 4px);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  max-width: 460px; justify-self: end; width: 100%;
}
.sol-review-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.sol-review-head .term-dots { display: flex; }
.sol-review-title {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
}
.sol-review-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  padding: 3px 8px; border-radius: 5px; color: var(--accent);
  background: var(--badge-bg); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}
.sol-review-body {
  margin: 0; padding: 16px; background: var(--code-bg);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.75;
  color: var(--body); overflow-x: auto;
}
.sol-review-body .k { color: var(--muted); }
.sol-review-body .s { color: var(--accent); }
.sol-review-body .n { color: #E5A45B; }
.sol-review-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}
.sol-review-time { color: var(--accent); }

/* ---- Blok dua kolom (masalah) ---- */
.sol-two-col {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px); align-items: start;
}
.sol-two-col h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 14px; }
.sol-lead { color: var(--body); font-size: 15.5px; line-height: 1.75; margin: 0; }

.sol-bullets {
  list-style: none; margin: 0; padding: 0 0 0 20px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  display: grid; gap: 14px;
}
.sol-bullets li {
  position: relative; color: var(--muted); font-size: 14px; line-height: 1.7;
}
.sol-bullets li::before {
  content: ""; position: absolute; left: -26px; top: .55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); opacity: .8;
}

/* ---- Hasil / outcome ---- */
.sol-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sol-outcome {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); padding: 26px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.sol-outcome:hover { border-color: var(--accent); transform: translateY(-2px); }
.sol-outcome h3 { font-size: 16px; margin: 14px 0 8px; }
.sol-outcome p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---- Langkah alur ---- */
.sol-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  counter-reset: step;
}
.sol-step {
  position: relative; padding: 26px 24px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sol-step::after {
  content: ""; position: absolute; top: 34px; right: -19px; width: 18px;
  height: 1px; background: var(--border-strong);
}
.sol-step:last-child::after { display: none; }
.sol-step-num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 800;
  color: var(--accent); background: var(--badge-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 6px; padding: 3px 8px;
}
.sol-step h3 { font-size: 15.5px; margin: 14px 0 8px; }
.sol-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---- Tabel model detail ---- */
.sol-models-table tbody th { white-space: normal; }
.sol-models-table tbody th code {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  word-break: break-word;
}
.sol-models-table tbody td { font-size: 13px; }
.sol-price-accent { color: var(--accent); font-weight: 600; }

/* ---- Blok kode ---- */
.sol-code { max-width: 900px; margin: 0 auto; }
.sol-code .ide-body pre[hidden] { display: none; }
.sol-code .ide-body pre { white-space: pre; overflow-x: auto; }
.sol-code .ide-filename { text-transform: none; }

/* ---- Cocok / tidak ---- */
.sol-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sol-fit-col {
  border-radius: calc(var(--radius) + 4px); padding: 26px 24px;
  border: 1px solid var(--border); background: var(--surface);
}
.sol-fit-col h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 15.5px; margin: 0 0 16px;
}
.sol-fit-col h3 svg { width: 17px; height: 17px; flex: 0 0 auto; }
.sol-fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sol-fit-col li { color: var(--muted); font-size: 13.5px; line-height: 1.7; padding-left: 14px; position: relative; }
.sol-fit-col li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5;
}
.sol-fit-yes { border-color: color-mix(in srgb, var(--accent) 26%, var(--border)); }
.sol-fit-yes h3 { color: var(--accent); }
.sol-fit-no { border-color: var(--border); background: transparent; }
.sol-fit-no h3 { color: var(--muted); }

/* ---- Solusi lain ---- */
.sol-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sol-related { padding-top: 0; }

/* ---- Responsif ---- */
@media (max-width: 900px) {
  .sol-detail-hero .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .sol-review { justify-self: center; margin-top: 8px; }
  .sol-two-col { grid-template-columns: minmax(0, 1fr); }
  .sol-outcomes, .sol-steps, .sol-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sol-step::after { display: none; }
}

@media (max-width: 640px) {
  .sol-stats { gap: 12px 18px; }
  .sol-outcomes, .sol-steps, .sol-fit, .sol-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .sol-review-body { font-size: 11px; }
  .sol-models-table thead { display: none; }
}

/* ---- Panel hero: jejak agent ---- */
.sol-trace-body {
  list-style: none; margin: 0; padding: 14px 16px;
  background: var(--code-bg); display: grid; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55;
}
.sol-trace-body li {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding-left: 12px; position: relative;
}
.sol-trace-body li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45;
}
.sol-trace .t-key { color: var(--accent); flex: 0 0 auto; }
.sol-trace .t-arg, .sol-trace .t-val { color: var(--muted); word-break: break-word; }
.sol-trace .t-plan .t-key { color: #7FB8FF; }
.sol-trace .t-ok .t-key { color: #E5A45B; }

/* ---- Panel hero: smartphone + demo chat ---- */
.sol-phone {
  justify-self: end; width: 100%; max-width: 332px;
  display: grid; gap: 10px;
}
.phone-frame {
  position: relative; padding: 10px; border-radius: 40px;
  background: linear-gradient(160deg, var(--surface-2), var(--bg));
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .7), 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
}
.phone-notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 20px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border); z-index: 3;
}
.phone-screen {
  display: flex; flex-direction: column; height: 512px;
  border-radius: 32px; overflow: hidden; background: var(--surface);
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 32px 14px 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--badge-bg); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.chat-avatar img { width: 16px; height: 16px; }
.chat-id { display: grid; gap: 1px; line-height: 1.2; min-width: 0; }
.chat-id strong { font-size: 12.5px; color: var(--heading); }
.chat-status { font-family: var(--font-mono); font-size: 9.5px; color: var(--accent); }

.chat-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 12px; display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 84%; padding: 9px 12px; border-radius: 14px;
  font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere;
}
.chat-msg.bot {
  align-self: flex-start; color: var(--body);
  background: var(--surface-2); border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.chat-msg.user {
  align-self: flex-end; font-weight: 600;
  background: var(--accent); color: var(--on-accent);
  border-bottom-right-radius: 5px;
}
.chat-msg.typing { display: flex; align-items: center; gap: 4px; padding: 12px; }
.chat-msg.typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted);
  animation: chatDots 1.1s infinite;
}
.chat-msg.typing span:nth-child(2) { animation-delay: .16s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .32s; }
@keyframes chatDots {
  0%, 80% { opacity: .3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.chat-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px; border-top: 1px solid var(--border);
}
.chat-chips button {
  font: inherit; font-size: 10.5px; line-height: 1.2;
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--border));
  background: transparent; color: var(--body);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.chat-chips button:hover { border-color: var(--accent); color: var(--accent); background: var(--badge-bg); }

.chat-input {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px 14px; border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input input {
  flex: 1; min-width: 0; font: inherit; font-size: 12.5px;
  padding: 9px 11px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--heading);
}
.chat-input input::placeholder { color: var(--muted); }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  flex: 0 0 auto; width: 34px; height: 34px; border: none; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
}
.chat-input button svg { width: 16px; height: 16px; }
.chat-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sol-phone-note {
  margin: 0; text-align: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}

@media (max-width: 900px) {
  .sol-phone { justify-self: center; }
}
@media (max-width: 560px) {
  .sol-phone { max-width: 300px; }
  .phone-screen { height: 470px; }
  .phone-frame { border-radius: 34px; }
}

/* ---- Panel hero: run log otomasi ---- */
.sol-run-body {
  list-style: none; margin: 0; padding: 14px 16px;
  background: var(--code-bg); display: grid; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.5;
}
.sol-run-body li {
  display: grid; grid-template-columns: 56px 62px minmax(0, 1fr);
  gap: 8px; align-items: baseline; position: relative;
}
.run-time { color: var(--muted); opacity: .75; font-size: 10.5px; }
.run-stage {
  color: var(--accent); font-weight: 700; font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
}
.run-detail { color: var(--body); overflow-wrap: anywhere; }
.sol-run-body li.is-done .run-stage { color: #E5A45B; }
.sol-run-body li.is-done .run-detail { color: var(--accent); }

.sol-run-out {
  position: relative; padding: 12px 16px 14px;
  background: var(--code-bg); border-top: 1px dashed var(--border);
}
.sol-run-out-label {
  position: absolute; top: 8px; right: 14px;
  font-family: var(--font-mono); font-size: 9.5px; color: var(--muted); opacity: .8;
}
.sol-run-out pre {
  margin: 0; padding-top: 8px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  color: var(--body); overflow-x: auto;
}

@media (max-width: 560px) {
  .sol-run-body li { grid-template-columns: 50px 56px minmax(0, 1fr); gap: 6px; font-size: 10.5px; }
  .sol-run-out pre { font-size: 10px; }
}
