/* Demo "Coba catat sekarang — tanpa daftar" (beranda & /fitur/catat-ai). Markup: src/gen/_fitur-demo.mjs. Kelas berawalan .dc- */
.dc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "teks chat" "hari chat"; gap: 28px 64px; align-items: start; }
.dc-teks { grid-area: teks; } .dc-chat { grid-area: chat; } .dc-hari { grid-area: hari; }
.dc-teks h2 { margin-bottom: 14px; }
.dc-sub { font-size: 18px; color: var(--muted); line-height: 1.6; }
.dc-checks { margin-top: 22px; }
.dc-ringkas { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); grid-template-areas: "chat hari"; gap: 28px 40px; max-width: 1040px; margin: 0 auto; }
.dc-head h2 { margin-bottom: 0; }

/* tiruan layar Chat Asisten */
.dc-app { background: #F0F2F7; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-3); overflow: hidden; display: flex; flex-direction: column; }
.dc-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.dc-top > div { flex: 1; min-width: 0; }
.dc-top b { display: block; font-size: 15px; line-height: 1.3; } .dc-top small { display: block; font-size: 12px; color: var(--muted); }
.dc-top .mi { width: 34px; height: 34px; border-radius: 10px; }
.dc-top .badge { flex: none; }
.dc-log { height: 380px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 2px 12px; scroll-behavior: smooth; }
.dc-log:focus-visible { outline-offset: -3px; }
.dc-log .bub { font-size: 13.5px; width: fit-content; max-width: 86%; overflow-wrap: anywhere; }
.dc-konf { margin: 6px 12px 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2px 12px 12px; box-shadow: var(--sh-1); }
.dc-konf .trx .tx b, .dc-hari .trx .tx b { font-size: 13.5px; }
.dc-konf .trx small, .dc-hari .trx small { font-size: 11.5px; }
.dc-konf .trx .amt, .dc-hari .trx .amt { font-size: 13px; }
.dc-ok { display: flex; gap: 8px; margin-top: 10px; }
.dc-b { flex: 1; padding: 10px 8px; border: 0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; background: var(--bg-3); color: var(--fg-2); cursor: pointer; }
.dc-b:hover { background: #E3E8F3; }
.dc-b.p { background: var(--navy); color: #fff; } .dc-b.p:hover { background: var(--navy-2); }
.dc-st { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.dc-st.ok { color: var(--in); background: var(--in-soft); } .dc-st.batal { color: var(--muted); background: var(--bg-3); }
.dc-tunggu { display: flex; gap: 4px; width: max-content; padding: 13px 14px; }
.dc-tunggu i { width: 6px; height: 6px; border-radius: 50%; background: var(--soft); animation: dc-titik 1s infinite ease-in-out; }
.dc-tunggu i:nth-child(2) { animation-delay: .15s; } .dc-tunggu i:nth-child(3) { animation-delay: .3s; }
@keyframes dc-titik { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.dc-ajak p { margin-bottom: 10px; }
.dc-ajak .gp-badge { height: 40px; width: max-content; }

.dc-bawah { background: #fff; border-top: 1px solid var(--line); }
.dc-contoh { display: flex; flex-wrap: wrap; gap: 10px 7px; padding: 12px 12px 4px; }
.dc-chip { flex: none; position: relative; min-height: 34px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--fg-2); cursor: pointer; white-space: nowrap; }
.dc-chip:hover:not(:disabled) { border-color: var(--navy-2); color: var(--navy); background: var(--navy-soft-2); }
.dc-chip:disabled { cursor: default; }
/* sasaran sentuh ≥ 44 px tanpa membesarkan tampilan chip */
.dc-chip::after { content: ''; position: absolute; left: -3px; right: -3px; top: -5px; bottom: -5px; }
.dc-in { display: flex; gap: 8px; padding: 10px 12px 14px; }
.dc-in input { flex: 1; min-width: 0; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font: inherit; font-size: 16px; color: var(--fg); }
.dc-in input::placeholder { color: var(--soft); }
.dc-in input:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--navy-soft); }
.dc-in input:disabled { background: var(--bg-2); }
.dc-kirim { flex: none; height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--oranye); color: #fff; font: inherit; font-size: 14.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.dc-kirim:hover:not(:disabled) { background: var(--oranye-d); }
.dc-kirim:disabled { opacity: .55; cursor: default; }
.dc-kirim .ic { width: 17px; height: 17px; }

/* Catatan hari ini */
.dc-hari { padding: 18px 18px 14px; box-shadow: var(--sh-1); }
.dc-hari .panel-h { margin-bottom: 12px; }
.dc-n { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dc-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.dc-tot div { background: var(--bg-2); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.dc-tot span { display: block; font-size: 12px; color: var(--muted); }
.dc-tot b { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dc-tot b.dc-min { color: var(--out); }
.dc-daftar { min-height: 168px; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; }
.dc-kosong { color: var(--muted); font-size: 13.5px; text-align: center; padding: 58px 12px; }
.dc-kaki { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); line-height: 1.45; }
.dc-kaki > span { display: flex; gap: 6px; align-items: flex-start; }
.dc-kaki .ic { width: 14px; height: 14px; color: var(--in); margin-top: 2px; }
.dc-ulang { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin: -12px 0; background: none; border: 0; padding: 4px 6px; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy-2); cursor: pointer; }
.dc-ulang .ic { width: 13px; height: 13px; color: inherit; margin: 0; }

@media (prefers-reduced-motion: reduce) { .dc-log { scroll-behavior: auto; } .dc-tunggu i { animation: none; } }
@media (max-width: 980px) {
  .dc-grid, .dc-ringkas { grid-template-columns: minmax(0, 1fr); grid-template-areas: "teks" "chat" "hari"; gap: 24px; max-width: 600px; margin: 0 auto; }
  .dc-ringkas { grid-template-areas: "chat" "hari"; }
}
@media (max-width: 640px) {
  .dc-sub { font-size: 16px; }
  .dc-checks { margin-top: 16px; gap: 7px; font-size: 14.5px; }
  .dc-app { border-radius: 22px; }
  .dc-log { height: 340px; }
  .dc-contoh { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .dc-contoh::-webkit-scrollbar { display: none; }
  .dc-kirim { padding: 0 13px; }
  .dc-hari { padding: 16px 14px 12px; }
  .dc-tot { gap: 6px; } .dc-tot div { padding: 8px 7px; }
  .dc-tot b { font-size: 12.5px; letter-spacing: -0.01em; }
}
@media (max-width: 380px) { .dc-kirim span { display: none; } .dc-kirim { width: 46px; justify-content: center; padding: 0; } .dc-tot b { font-size: 12px; } .dc-tot span { font-size: 11px; } }
