/* Tampilan ramah pengguna senior: terang, kontras tinggi, huruf besar, tombol besar.
   Semua ukuran memakai rem, jadi tombol "Ukuran huruf" memperbesar seluruh halaman. */
:root {
  --bg: #faf6f2;
  --panel: #ffffff;
  --panel2: #f4ede7;
  --line: #e4d9d0;
  --line2: #cfc1b5;
  --ink: #1f1a17;
  --mute: #514843;
  --dim: #6e645e;
  --coral: #c43d2e;
  --coral-hover: #a93224;
  --coral-soft: #fdebe7;
  --ok: #157f3b;
  --ok-soft: #e3f5e9;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --blue: #1f5fbf;
  --radius: 20px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --focus: 0 0 0 4px #c43d2e55;
  color-scheme: light;
}
html { font-size: 16px; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::selection { background: #c43d2e33; }
a { color: var(--coral); font-weight: 600; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
b, strong { font-weight: 700; }
.muted { color: var(--mute); }
.dim { color: var(--dim); }
.small { font-size: .88rem; }
.hidden { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--coral); animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tombol & isian ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; border-radius: 14px; padding: .7rem 1.3rem; font-size: 1rem; font-weight: 700; border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; text-decoration: none; line-height: 1.2; text-align: center; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 18px -8px #c43d2e99; }
.btn-primary:hover:not(:disabled) { background: var(--coral-hover); }
.btn-ghost { background: var(--panel); border-color: var(--line2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-text { background: none; color: var(--coral); padding: .5rem .7rem; min-height: 2.6rem; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--coral-hover); }
.btn-sm { min-height: 2.6rem; padding: .45rem .95rem; font-size: .92rem; border-radius: 12px; }
.btn-lg { min-height: 3.6rem; font-size: 1.1rem; padding: .9rem 1.6rem; border-radius: 16px; }
.btn-block { width: 100%; }
.btn.copied { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.input { width: 100%; min-height: 3.2rem; border-radius: 14px; border: 2px solid var(--line2); background: #fff; padding: .7rem 1rem; font-size: 1.05rem; outline: none; transition: .15s; }
.input::placeholder { color: #9a8f88; }
.input:focus { border-color: var(--coral); box-shadow: var(--focus); }
textarea.input { resize: vertical; min-height: 6rem; line-height: 1.6; }
.label { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.hint { font-size: .88rem; color: var(--dim); margin-top: .35rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px #1f1a170a, 0 8px 24px -16px #1f1a1726; }
.chip { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); padding: .25rem .8rem; font-size: .85rem; font-weight: 600; color: var(--mute); }
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--dim); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: #d99a00; }
.err { color: var(--bad); font-size: .95rem; font-weight: 600; }
.notice { border: 2px solid #f0b4ad; background: var(--bad-soft); border-radius: 14px; padding: 1rem 1.1rem; font-size: .98rem; color: #5c1a12; }
.good { border: 2px solid #a7dcb8; background: var(--ok-soft); border-radius: 14px; padding: 1rem 1.1rem; color: #0f4d25; }
.tip { border: 2px solid #f2d58a; background: var(--warn-soft); border-radius: 14px; padding: 1rem 1.1rem; color: #4d3500; font-size: .96rem; }
.tip b, .good b, .notice b { color: inherit; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side { padding: 3rem; display: flex; flex-direction: column; gap: 2rem; justify-content: center; background: linear-gradient(160deg, #fdebe7 0%, #faf6f2 60%); border-right: 1px solid var(--line); }
.login-side h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 800; margin: 1rem 0 .8rem; }
.login-side .lead { color: var(--mute); max-width: 32rem; font-size: 1.1rem; }
.mini-agents { display: grid; gap: .75rem; max-width: 32rem; }
.mini-agent { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.mini-agent .ic { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; flex: none; }
.mini-agent .ic svg { width: 1.5rem; height: 1.5rem; }
.mini-agent b { display: block; font-size: 1.05rem; }
.mini-agent span { font-size: .92rem; color: var(--mute); }
.login-main { display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.login-box { width: 100%; max-width: 30rem; }
.login-box h2 { font-size: 1.8rem; font-weight: 800; }
.stepper-mini { font-size: .9rem; font-weight: 700; color: var(--coral); letter-spacing: .02em; margin-bottom: .4rem; }
.code-input { font-family: var(--mono); font-size: 2rem; letter-spacing: .4rem; text-align: center; text-transform: uppercase; min-height: 4.4rem; font-weight: 600; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--dim); font-size: .9rem; margin: 1.3rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line2); }

/* ---------- Kerangka ---------- */
.top { position: sticky; top: 0; z-index: 20; background: #fffffff2; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 72rem; margin: 0 auto; padding: .7rem 1.5rem; display: flex; align-items: center; gap: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.brand svg { color: var(--coral); }
.badge-adv { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); background: var(--coral-soft); border: 1px solid #f3c2ba; padding: .2rem .65rem; border-radius: 999px; }
.spacer { flex: 1; }
.fontsize { display: inline-flex; border: 2px solid var(--line2); border-radius: 12px; overflow: hidden; }
.fontsize button { background: #fff; border: 0; padding: .3rem .7rem; min-height: 2.5rem; cursor: pointer; font-weight: 800; color: var(--mute); }
.fontsize button + button { border-left: 2px solid var(--line2); }
.fontsize button.on { background: var(--ink); color: #fff; }
.fontsize button:nth-child(1) { font-size: .85rem; } .fontsize button:nth-child(2) { font-size: 1.05rem; } .fontsize button:nth-child(3) { font-size: 1.25rem; }
.avatar { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 2rem 1.5rem 7rem; }
.section { margin-top: 3rem; scroll-margin-top: 5rem; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: .75rem; }
.sec-head p { color: var(--mute); margin-top: .35rem; font-size: 1.05rem; max-width: 46rem; }
.bignum { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--coral); color: #fff; font-size: 1.15rem; font-weight: 800; flex: none; }
.bignum.done { background: var(--ok); }

/* ---------- Sambutan & langkah ---------- */
.hero { padding: 2rem; display: grid; gap: 1.6rem; background: linear-gradient(135deg, #fff 40%, #fdebe7); }
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.hero .lead { color: var(--mute); font-size: 1.12rem; max-width: 46rem; margin-top: .5rem; }
.journey { display: grid; grid-template-columns: 1fr; gap: .9rem; margin: 0; padding: 0; list-style: none; }
.journey li { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.journey li.done { border-color: #a7dcb8; background: var(--ok-soft); }
.journey li.now { border-color: var(--coral); box-shadow: var(--focus); }
.journey .bignum svg { width: 1.2rem; height: 1.2rem; }
.journey b { display: block; font-size: 1.05rem; }
.journey small { display: block; color: var(--mute); font-size: .9rem; line-height: 1.5; }
.journey a { text-decoration: none; color: inherit; }

/* ---------- Sambungkan ---------- */
.connect { padding: 1.8rem; }
.q { font-size: 1.2rem; font-weight: 800; margin-bottom: .9rem; }
.choices { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; text-align: left; background: #fff; border: 2px solid var(--line2); border-radius: 18px; padding: 1.1rem 1.2rem; cursor: pointer; transition: .15s; min-height: 6rem; }
.choice:hover { border-color: var(--ink); }
.choice.on { border-color: var(--coral); background: var(--coral-soft); box-shadow: var(--focus); }
.choice b { font-size: 1.15rem; display: flex; align-items: center; gap: .55rem; }
.choice span { color: var(--mute); font-size: .92rem; line-height: 1.5; }
.choice .radio { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--line2); background: #fff; flex: none; }
.choice.on .radio { border: 6px solid var(--coral); }
.linkbox { margin-top: 1.6rem; padding: 1.3rem; border-radius: 18px; background: var(--panel2); border: 2px dashed var(--line2); }
.linkbox .label { font-size: 1.05rem; }
.keyrow { display: flex; gap: .6rem; align-items: stretch; margin-top: .5rem; }
.keybox { flex: 1; min-width: 0; display: flex; align-items: center; background: #fff; border: 2px solid var(--line2); border-radius: 14px; padding: .6rem 1rem; font-family: var(--mono); font-size: .92rem; overflow: hidden; }
.keybox span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps { margin: 1.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; font-size: 1.05rem; }
.steps li .bignum { width: 2.2rem; height: 2.2rem; font-size: 1.05rem; }
.steps li .stepbody { padding-top: .2rem; }
.steps li .stepbody .btn { margin-top: .7rem; }
.path { display: inline; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: .05rem .45rem; white-space: nowrap; }
.codeblk { position: relative; margin-top: .8rem; background: #1f1a17; color: #f6efe9; border-radius: 14px; padding: 1rem 1.1rem; padding-right: 6.5rem; font-family: var(--mono); font-size: .85rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.codeblk .btn, .steps li .stepbody .codeblk .btn { position: absolute; top: .6rem; right: .6rem; margin: 0; }
details.more { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
details.more > summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; align-items: center; gap: .6rem; min-height: 3.2rem; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--panel2); font-weight: 800; }
details.more[open] > summary::before { content: "−"; }
details.more > .inner { padding: 0 1.2rem 1.2rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tab { padding: .5rem 1rem; min-height: 2.6rem; border-radius: 999px; border: 2px solid var(--line2); background: #fff; color: var(--mute); font-size: .95rem; font-weight: 700; cursor: pointer; }
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Asisten ---------- */
.agents { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.agent { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; border-top: 6px solid var(--c); }
/* Layar lebar: setiap baris isi kartu (judul, deskripsi, daftar, contoh, tombol) sejajar persis antar kartu. */

.agent .head { display: flex; gap: .9rem; align-items: flex-start; }
.agent .icon { width: 3.4rem; height: 3.4rem; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--cs); color: var(--c); }
.agent .icon svg { width: 1.8rem; height: 1.8rem; }
.agent .order { font-size: .85rem; font-weight: 800; color: var(--c); letter-spacing: .03em; }
.agent h3 { font-size: 1.3rem; font-weight: 800; }
.agent .en { font-size: .88rem; color: var(--dim); }
.agent .tag { color: var(--mute); font-size: 1rem; }
.agent .subt { font-weight: 800; font-size: .95rem; }
.agent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.agent li { display: flex; gap: .55rem; font-size: .98rem; }
.agent li svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .2rem; color: var(--ok); }
.example { background: var(--panel2); border-radius: 14px; padding: .9rem 1rem; font-size: .98rem; }
.example p { font-style: italic; margin-bottom: .6rem; }
.agent .actions { display: grid; gap: .6rem; margin-top: auto; }
.uses { font-size: .88rem; color: var(--dim); text-align: center; }
.flow-note { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem; font-weight: 700; color: var(--mute); }
.flow-note .pill { background: #fff; border: 2px solid var(--line2); border-radius: 999px; padding: .3rem .9rem; color: var(--ink); }
.flow-note svg { width: 1.3rem; height: 1.3rem; color: var(--coral); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid2 .full { grid-column: 1 / -1; }

/* ---------- Status & FAQ ---------- */
.act-row { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.3rem; font-size: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.act-row:first-child { border-top: 0; }
.act-row .when { margin-left: auto; color: var(--dim); font-size: .9rem; white-space: nowrap; }
.empty { padding: 1.8rem; text-align: center; color: var(--mute); font-size: 1rem; }
.faq { display: grid; gap: .7rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; min-height: 3.4rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--coral); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 1.3rem 1.2rem; color: var(--mute); font-size: 1rem; }
.help-fab { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; display: inline-flex; align-items: center; gap: .6rem; background: #157f3b; color: #fff; text-decoration: none; font-weight: 800; padding: .85rem 1.3rem; border-radius: 999px; box-shadow: 0 10px 28px -10px #157f3bcc; min-height: 3.3rem; }
.help-fab svg { width: 1.4rem; height: 1.4rem; }
.help-fab:hover { background: #0f6a30; }

/* ---------- Jendela panduan ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: #1f1a1799; display: grid; place-items: center; padding: 1rem; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 56rem; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal-body { overflow: auto; padding: 1.5rem 1.8rem; }
.md { font-size: 1rem; line-height: 1.75; }
.md h1 { font-size: 1.5rem; margin: .4rem 0 1rem; }
.md h2 { font-size: 1.25rem; margin: 1.8rem 0 .7rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.md h3 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
.md h4 { font-size: 1rem; margin: 1rem 0 .4rem; }
.md p { margin: .5rem 0; }
.md ul, .md ol { margin: .5rem 0; padding-left: 1.4rem; }
.md code { background: var(--panel2); border: 1px solid var(--line); padding: .05rem .35rem; border-radius: 6px; font-size: .88em; }
.md pre { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; overflow: auto; font-size: .85rem; }
.md pre code { background: none; border: 0; padding: 0; }
.md blockquote { margin: .7rem 0; padding: .3rem 1rem; border-left: 4px solid var(--coral); color: var(--mute); }
.md table { border-collapse: collapse; width: 100%; margin: .7rem 0; font-size: .9rem; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; vertical-align: top; }
.md th { background: var(--panel2); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

/* ---------- Admin ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.stat { padding: 1.3rem; }
.stat b { display: block; font-size: 2rem; font-weight: 800; }
.stat span { color: var(--mute); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-size: .85rem; color: var(--dim); font-weight: 700; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.tbl td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }

/* ---------- Notifikasi ---------- */
#toast { position: fixed; left: 50%; top: 1.2rem; transform: translateX(-50%) translateY(-1rem); opacity: 0; pointer-events: none; z-index: 60; background: var(--ink); color: #fff; padding: .9rem 1.4rem; border-radius: 14px; font-weight: 700; font-size: 1.05rem; transition: .2s; box-shadow: 0 12px 30px -10px #0006; max-width: calc(100vw - 2rem); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Layar kecil ---------- */
@media (max-width: 1000px) {
  .login { grid-template-columns: 1fr; }
  .login-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.6rem 1.25rem; gap: 1rem; }
  .login-side .mini-agents, .login-side > div:not(.brand) { display: none; }
  .login-side { padding: 1rem 1.25rem; background: #fff; }
  .login-main { place-items: start center; padding-top: 1.8rem; }
}
@media (max-width: 640px) {
  .top-in, .wrap { padding-left: 1rem; padding-right: 1rem; }
  .hero, .connect { padding: 1.2rem; }
  .grid2, .stats { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
  .keyrow { flex-direction: column; }
  .keybox { min-height: 3rem; }
  .hide-sm { display: none !important; }
  .sec-head h2 { font-size: 1.35rem; }
  .modal-body { padding: 1.1rem; }
  .help-fab span { display: none; }
  .help-fab { padding: .9rem; }
  .codeblk { padding-right: 1.1rem; padding-top: 3.6rem; }
}

/* ================= Tata letak dengan menu samping ================= */
.layout { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.1rem .85rem; }
.side-brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .55rem 1.1rem; font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.side-brand svg { color: var(--coral); }
.side-brand .bt { display: grid; line-height: 1.2; }
.side-brand .bt b { font-size: 1.05rem; white-space: nowrap; }
.side-brand .bt small { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.nav { display: grid; gap: .2rem; }
.nav-sep { font-size: .74rem; font-weight: 800; letter-spacing: .07em; color: var(--dim); text-transform: uppercase; padding: 1rem .75rem .35rem; }
.nav a { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .55rem .75rem; border-radius: 12px; color: var(--mute); font-weight: 600; text-decoration: none; transition: background .12s, color .12s; }
.nav a:hover { background: var(--panel2); color: var(--ink); }
.nav a.on { background: var(--coral-soft); color: var(--coral); font-weight: 700; }
.nav a > svg { width: 1.3rem; height: 1.3rem; flex: none; }
.nav a .nav-end { margin-left: auto; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .72rem; font-weight: 800; }
.nav a .nav-end.ok { background: var(--ok); color: #fff; }
.nav a .nav-end.ok svg { width: .8rem; height: .8rem; }
.nav a .nav-end.todo { background: var(--warn-soft); color: var(--warn); border: 1px solid #f2d58a; }
.side-foot { margin-top: auto; padding-top: 1rem; display: grid; gap: .8rem; }
.side-status { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border-radius: 14px; background: var(--panel2); font-size: .85rem; line-height: 1.45; color: var(--mute); }
.side-status { align-items: center; }
.side-status .dot { margin-top: 0; }
.side-status b { display: block; color: var(--ink); font-size: .9rem; }
.userbox { display: flex; align-items: center; gap: .7rem; padding: .8rem .45rem 0; border-top: 1px solid var(--line); }
.userbox .who { min-width: 0; flex: 1; line-height: 1.35; }
.userbox .who b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox .who span { display: block; font-size: .8rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.userbox .btn { min-height: 2.4rem; padding: .4rem .6rem; }
.main { min-width: 0; }
.wrap { max-width: 66rem; padding: 2.2rem 2.4rem 6rem; container-type: inline-size; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; }
.page-head p { color: var(--mute); margin-top: .4rem; font-size: 1.02rem; max-width: 44rem; }
.page-next { display: flex; justify-content: space-between; gap: .8rem; margin-top: 2rem; flex-wrap: wrap; }
.quick { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.quick a { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; text-decoration: none; color: var(--ink); font-weight: 400; transition: border-color .12s; }
.quick a:hover { border-color: var(--ink); }
.quick .ic { width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; flex: none; }
.quick .ic svg { width: 1.45rem; height: 1.45rem; }
.quick b { display: block; }
.quick span { color: var(--mute); font-size: .9rem; line-height: 1.45; display: block; }
.quick .go { margin-left: auto; color: var(--dim); width: 1.2rem; height: 1.2rem; flex: none; }
.mtop { display: none; }
.scrim { display: none; }

/* Kolom ikut lebar area konten (bukan lebar layar), jadi tetap rapi dengan menu samping. */
@container (min-width: 40rem) {
  .journey, .choices { grid-template-columns: repeat(3, 1fr); }
  .quick { grid-template-columns: repeat(3, 1fr); }
}
@container (min-width: 54rem) {
  .agents { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, auto); row-gap: 0; }
  .agent { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 1rem; }
  .agent .example { align-self: start; }
}

/* HP & tablet: menu samping jadi laci yang dibuka lewat tombol "Menu". */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 45; width: min(18rem, 86vw); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px -10px #0004; }
  .side.open { transform: translateX(0); }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 44; background: #1f1a1766; }
  .mtop { display: flex; align-items: center; gap: .7rem; position: sticky; top: 0; z-index: 30; background: #fffffff2; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: .6rem 1rem; }
  .mtop .brand { font-size: 1rem; }
  .wrap { padding: 1.4rem 1rem 6rem; }
  .page-head h1 { font-size: 1.45rem; }
}

/* Logo aplikasi AI di kartu pilihan */
.choice-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: .45rem; }
.applogo { width: 2.5rem; height: 2.5rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); padding: .3rem; object-fit: contain; flex: none; }
.choice b { font-size: 1.1rem; }

/* ================= Wizard Sambungkan AI ================= */
.wz { overflow: hidden; }
.wz-head { padding: 1.2rem 1.6rem 0; }
.wz-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; font-weight: 700; color: var(--mute); min-height: 1.8rem; }
.wz-meta #wzApp { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.wz-prog { height: .45rem; background: var(--panel2); border-radius: 999px; margin-top: .7rem; overflow: hidden; }
.wz-prog-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), #ff8a6b); transition: width .6s cubic-bezier(.16,1,.3,1); }
.wz-viewport { padding: 1.8rem 1.6rem; min-height: 26rem; }
.wz-body { will-change: transform, opacity, filter; }
.wz-foot { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.6rem; border-top: 1px solid var(--line); background: #fdfbf9; }

/* Transisi antar langkah: blur + geser + sedikit mengecil */
.wz-body.out-l { animation: wzOutL .3s cubic-bezier(.4,0,1,1) forwards; }
.wz-body.out-r { animation: wzOutR .3s cubic-bezier(.4,0,1,1) forwards; }
.wz-body.in-r { animation: wzInR .6s cubic-bezier(.16,1,.3,1); }
.wz-body.in-l { animation: wzInL .6s cubic-bezier(.16,1,.3,1); }
@keyframes wzOutL { to { opacity: 0; filter: blur(16px); transform: translateX(-3.5rem) scale(.96); } }
@keyframes wzOutR { to { opacity: 0; filter: blur(16px); transform: translateX(3.5rem) scale(.96); } }
@keyframes wzInR { from { opacity: 0; filter: blur(16px); transform: translateX(3.5rem) scale(.96); } }
@keyframes wzInL { from { opacity: 0; filter: blur(16px); transform: translateX(-3.5rem) scale(.96); } }
/* Isi teks muncul bertahap */
.wz-body.in-r .wz-anim > *, .wz-body.in-l .wz-anim > * { animation: wzRise .7s cubic-bezier(.16,1,.3,1) backwards; }
.wz-anim > *:nth-child(2) { animation-delay: .06s !important; }
.wz-anim > *:nth-child(3) { animation-delay: .12s !important; }
.wz-anim > *:nth-child(4) { animation-delay: .18s !important; }
.wz-anim > *:nth-child(5) { animation-delay: .24s !important; }
.wz-anim > *:nth-child(6) { animation-delay: .3s !important; }
@keyframes wzRise { from { opacity: 0; transform: translateY(.9rem); filter: blur(6px); } }
.wz-body.in-r .wz-scene, .wz-body.in-l .wz-scene { animation: wzScene .8s .1s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes wzScene { from { opacity: 0; transform: translateY(1.2rem) scale(.95) rotate(-1deg); filter: blur(10px); } }

.wz-eyebrow { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.wz-title { font-size: 1.6rem; font-weight: 800; margin: .3rem 0 .6rem; }
.wz-text { color: var(--mute); font-size: 1.05rem; max-width: 40rem; }
.wz-action { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.wz-action .wz-code { width: 100%; margin-top: 0; }
.wz-hint { display: flex; gap: .4rem; align-items: center; margin-top: 1.1rem; font-size: .78rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-hint svg { width: .95rem; height: .95rem; flex: none; }
.wz-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.wz-anim, .wz-scene { min-width: 0; }
.wz-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.wz-logo.sm { width: 1.3rem; height: 1.3rem; border-radius: 5px; }

/* Kartu pilihan aplikasi */
.wz-apps { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.5rem; }
.wz-app { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.8rem 1.2rem 1.5rem; border-radius: 22px; border: 2px solid var(--line); background: #fff; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s; isolation: isolate; overflow: hidden; }
.wz-app::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--b) 16%, transparent), transparent 65%); opacity: 0; transition: opacity .3s; }
.wz-app:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--b) 60%, #000); border-color: color-mix(in srgb, var(--b) 45%, var(--line)); }
.wz-app:hover::before, .wz-app.on::before { opacity: 1; }
.wz-app.on { border-color: var(--b); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b) 22%, transparent), 0 18px 36px -20px color-mix(in srgb, var(--b) 70%, #000); transform: translateY(-4px); }
.wz-app-logo { width: 4.6rem; height: 4.6rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); padding: .8rem; box-shadow: 0 10px 22px -14px #1f1a1766; margin-bottom: .6rem; transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.wz-app:hover .wz-app-logo, .wz-app.on .wz-app-logo { transform: scale(1.08) rotate(-4deg); }
.wz-app b { font-size: 1.2rem; }
.wz-app-tag { color: var(--mute); font-size: .92rem; line-height: 1.45; }
.wz-app-note { margin-top: .4rem; font-size: .8rem; color: var(--dim); }
.wz-check { position: absolute; top: .9rem; right: .9rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--b); color: #fff; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.wz-check svg { width: 1rem; height: 1rem; }
.wz-app.on .wz-check { transform: scale(1); }
.wz-nudge { animation: wzNudge .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes wzNudge { 40% { transform: scale(1.07); } }

/* Langkah akhir */
.wz-say { margin: 1.1rem 0 .8rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--panel2); border-left: 4px solid var(--coral); font-size: 1.1rem; font-weight: 700; }
.wz-wait { display: flex; gap: .9rem; align-items: center; margin-top: 1.3rem; padding: 1rem 1.1rem; border-radius: 16px; border: 2px dashed var(--line2); }
.wz-wait b { display: block; }
.wz-wait > div { min-width: 0; }
.wz-wait > div > span { display: block; color: var(--dim); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-pulse { position: relative; width: .9rem; height: .9rem; border-radius: 50%; background: var(--coral); flex: none; }
.wz-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--coral); animation: wzPulse 1.4s ease-out infinite; }
@keyframes wzPulse { to { transform: scale(3); opacity: 0; } }

/* Berhasil */
.wz-success { text-align: center; display: grid; justify-items: center; padding: 1.5rem 0 1rem; }
.wz-success .wz-text { margin: 0 auto; }
.wz-success-btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.wz-burst { position: relative; width: 7rem; height: 7rem; margin-bottom: 1rem; }
.wz-okmark { width: 100%; height: 100%; }
.wz-okmark circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 4; stroke-dasharray: 227; stroke-dashoffset: 227; animation: wzDraw .7s .1s cubic-bezier(.65,0,.35,1) forwards; }
.wz-okmark path { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: wzDraw .45s .7s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes wzDraw { to { stroke-dashoffset: 0; } }
.wz-burst i { position: absolute; left: 50%; top: 50%; width: .55rem; height: .55rem; margin: -.275rem; border-radius: 3px; background: var(--coral); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: wzConf 1s calc(.75s + var(--d)) cubic-bezier(.16,1,.3,1) forwards; }
.wz-burst i:nth-child(3n) { background: var(--ok); }
.wz-burst i:nth-child(3n+1) { background: #f2b33d; border-radius: 50%; }
@keyframes wzConf { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-5.2rem) scale(1); } }

@container (min-width: 44rem) {
  .wz-apps { grid-template-columns: repeat(3, 1fr); }
  .wz-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.2rem; }
}

/* ================= Layar peraga (mock UI) ================= */
.mstage { position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 18px; padding: 4.5%; container-type: inline-size;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--b) 22%, #fff), transparent 60%), radial-gradient(100% 80% at 100% 100%, #efe7fb, transparent 60%), #f8f3ee; }
.mwin { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 12px; border: 1px solid #e6ddd5; box-shadow: 0 20px 40px -22px #1f1a1766; overflow: hidden; font-size: 2.15cqi; color: #2c2420; line-height: 1.3; }
.mwin-bar { flex: none; display: flex; align-items: center; gap: 1cqi; padding: 1.4cqi 1.8cqi; background: #f6f1ec; border-bottom: 1px solid #ebe3dc; }
.mwin-bar i { width: 1.4cqi; height: 1.4cqi; border-radius: 50%; background: #e2d6cc; flex: none; }
.mwin-bar i:first-child { background: #f1877a; } .mwin-bar i:nth-child(2) { background: #f4c35b; } .mwin-bar i:nth-child(3) { background: #7cc98f; }
.mwin-bar span { margin-left: 1.5cqi; flex: 1; background: #fff; border-radius: 99px; padding: .3cqi 1.6cqi; font-size: 1.7cqi; color: #8c817a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwin-body { position: relative; flex: 1; overflow: hidden; }
.mel { position: absolute; display: flex; align-items: center; gap: .55em; padding: 0 .75em; border-radius: .6em; font-weight: 600; white-space: nowrap; overflow: hidden; }
.mcursor { position: absolute; z-index: 9; width: 4.6cqi; height: 4.6cqi; left: 70%; top: 75%; pointer-events: none; transform-origin: 15% 10%; filter: drop-shadow(0 .4cqi .6cqi #0005); }
.mcursor svg { width: 100%; height: 100%; display: block; }
.mripple { position: absolute; z-index: 8; width: 6cqi; height: 6cqi; margin: -3cqi 0 0 -3cqi; border-radius: 50%; background: var(--b); opacity: 0; pointer-events: none; }
.mveil { position: absolute; inset: 0; z-index: 10; background: #fffffff0; backdrop-filter: blur(6px); opacity: 0; pointer-events: none; }
.m-side { background: #f6f1ec; border-radius: 0; align-items: flex-start; padding: 1.2em .8em; }
.m-sidelist { display: grid; gap: .9em; font-weight: 600; color: #6b5f58; font-size: .95em; }
.m-dark2 .m-sidelist span:first-child { font-size: .8em; letter-spacing: .06em; color: #9b9089; }
.m-plain { padding: 0; background: none; font-weight: 500; }
.m-col { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .8em; padding-top: .4em; }
.m-line { display: block; height: .55em; border-radius: 99px; background: #ece4dd; }
.m-pop { background: #fff; border: 1px solid #e4dad2; box-shadow: 0 1.4cqi 3cqi -1.4cqi #1f1a1755; border-radius: .8em; }
.m-page { background: #fff; border-radius: 0; border-left: 1px solid #ece4dd; }
.m-dlg { background: #fff; border: 1px solid #e4dad2; box-shadow: 0 2cqi 5cqi -1.5cqi #1f1a1766; border-radius: 1em; }
.m-dlg2 { z-index: 2; }
.m-dlg2 ~ .mel { z-index: 3; }
.m-field { background: #fff; border: 1.5px solid #d8cdc4; color: #a1958d; font-weight: 500; }
.m-text { background: none; color: #2c2420; font-weight: 600; z-index: 1; }
.m-mono { font-family: var(--mono); font-size: .88em; font-weight: 500; }
.m-label { padding: 0; font-size: .85em; color: #7a6f68; font-weight: 700; }
.m-btn { justify-content: center; background: var(--b); color: #fff; font-weight: 700; }
.m-btn2 { justify-content: center; background: #fff; border: 1.5px solid #2c2420; color: #2c2420; font-weight: 700; }
.m-round { justify-content: center; padding: 0; border-radius: 50%; font-size: 1.2em; }
.m-ghost { background: #f3ede8; color: #2c2420; }
.m-ok { background: #e3f5e9; color: #157f3b; font-weight: 700; }
.m-key { justify-content: center; background: #2c2420; color: #fff; font-family: var(--mono); font-size: .9em; box-shadow: 0 .5cqi 0 #000; z-index: 3; }
.m-row { border-bottom: 1px solid #ece4dd; border-radius: 0; }
.mdot { width: .7em; height: .7em; border-radius: 50%; background: #d6cdc6; flex: none; }
.mdot.ok { background: #22a356; box-shadow: 0 0 0 .25em #22a35633; }
.mav { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--b); color: #fff; display: grid; place-items: center; font-size: .85em; flex: none; }
.m-bubble { background: #f1ebe6; border-radius: 1em; white-space: normal; font-weight: 500; }
.m-tool { border: 1.5px dashed var(--b); color: var(--b); font-weight: 700; font-size: .9em; }
.m-reply { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: .55em; padding: .3em 0; font-weight: 500; }
.m-toggle { padding: 0; border-radius: 99px; background: #d6cdc6; }
.m-toggle .knob { position: absolute; left: .18em; top: 50%; width: 1.15em; height: 1.15em; margin-top: -.575em; border-radius: 50%; background: #fff; box-shadow: 0 .1em .3em #0004; }
.m-check { justify-content: center; padding: 0; border: 1.5px solid #b9ada4; border-radius: .35em; background: #fff; }
.m-check.m-on { background: var(--b); border-color: var(--b); color: #fff; font-weight: 800; }
.m-dark { color: #2c2420; }
.m-solid { background: #fff; }
.m-item { padding: 0 .75em; }
.m-chip { background: color-mix(in srgb, var(--b) 15%, #fff); color: var(--b); font-weight: 700; border-radius: 99px; font-size: .9em; }
.m-mutetxt { color: #9b9089; }
.m-agent { background: #fbf8f5; border-left: 1px solid #ece4dd; border-radius: 0; }
.m-editor { padding: 1.4em 1.2em; align-items: flex-start; }
.m-editor2 { background: #fff; border-radius: 0; align-items: flex-start; padding: 1em; }
.m-tab { background: #fff; border: 1px solid #ece4dd; border-bottom: 0; border-radius: .5em .5em 0 0; font-size: .85em; z-index: 2; }
.m-link { padding: 0; color: var(--b); text-decoration: underline; font-weight: 700; }
.m-code { align-items: flex-start; padding: .8em 1em; background: #1f1a17; color: #f4ece5; border-radius: .7em; }
.m-code pre { margin: 0; font-family: var(--mono); font-size: .82em; line-height: 1.55; white-space: pre; }

@media (prefers-reduced-motion: reduce) {
  .wz-body, .wz-body * { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .wz-viewport { padding: 1.3rem 1.1rem; }
  .wz-head, .wz-foot { padding-left: 1.1rem; padding-right: 1.1rem; }
  .wz-title { font-size: 1.35rem; }
  .wz-app { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; row-gap: .1rem; text-align: left; align-items: center; padding: 1rem 2.8rem 1rem 1rem; }
  .wz-app-logo { grid-row: 1 / span 3; width: 3.4rem; height: 3.4rem; margin: 0; padding: .55rem; border-radius: 16px; }
  .wz-foot .btn-lg { min-height: 3.2rem; padding: .7rem 1.2rem; }
}

/* ================= Agentic AI Saya (tanya-jawab) ================= */
.ag-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; }
#agWho { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); }
.ag-logo { border: 0 !important; display: grid !important; place-items: center; }
.ag-logo svg { width: 2.2rem; height: 2.2rem; }
.ag-step { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--b); }
.ag-order { display: flex; gap: .5rem; align-items: center; margin-top: 1.3rem; font-size: .85rem; color: var(--dim); }
.ag-order svg { width: 1rem; height: 1rem; flex: none; color: var(--coral); }

.qa { max-width: 46rem; margin: 0 auto; display: grid; gap: 1.4rem; }
.qa-ai { display: flex; gap: .9rem; align-items: flex-start; }
.qa-av { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -10px #c43d2e; }
.qa-av svg { width: 1.35rem; height: 1.1rem; color: #fff; }
.qa-bubble { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 4px 20px 20px 20px; padding: 1rem 1.25rem; font-size: 1.2rem; font-weight: 700; line-height: 1.45; box-shadow: 0 10px 24px -18px #1f1a1766; min-height: 3.4rem; min-width: 5rem; }
/* Titik "sedang mengetik" lalu pertanyaan muncul */
.qa-typing { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); display: inline-flex; gap: .3rem; animation: qaHide .01s .75s forwards; }
.qa-typing i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--dim); animation: qaDot .9s infinite ease-in-out; }
.qa-typing i:nth-child(2) { animation-delay: .15s; } .qa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes qaDot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-.35rem); opacity: 1; } }
@keyframes qaHide { to { opacity: 0; visibility: hidden; } }
.qa-q { display: block; animation: qaShow .5s .75s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes qaShow { from { opacity: 0; filter: blur(6px); transform: translateY(.4rem); } }
.qa-me { padding-left: 3.7rem; animation: qaShow .55s 1s cubic-bezier(.16,1,.3,1) backwards; }
.qa-hint { color: var(--mute); font-size: .95rem; margin-bottom: .7rem; }
.ag-input { font-size: 1.05rem; }
textarea.ag-input { min-height: 5.5rem; }
.ag-other { margin-top: .8rem; }
.ag-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.ag-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; min-height: 3rem; border-radius: 14px; border: 2px solid var(--line2); background: #fff; font-weight: 700; font-size: .98rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; text-align: left; }
.ag-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.ag-chip.on { border-color: var(--coral); background: var(--coral-soft); }
.ag-radio { width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 2px solid var(--line2); background: #fff; flex: none; transition: border .15s; }
.ag-chip.on .ag-radio { border: 6px solid var(--coral); }
.ag-box { width: 1.2rem; height: 1.2rem; border-radius: 6px; border: 2px solid var(--line2); background: #fff; display: grid; place-items: center; flex: none; color: transparent; }
.ag-box svg { width: .85rem; height: .85rem; }
.ag-chip.on .ag-box { background: var(--coral); border-color: var(--coral); color: #fff; }
.qa-under { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; min-height: 1.3rem; }
.qa-pre { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--ok); }
.qa-pre.dim { color: var(--dim); font-weight: 500; }
.qa-pre svg { width: .9rem; height: .9rem; }
.qa-enter { font-size: .8rem; color: var(--dim); }
.qa-enter kbd { font-family: var(--mono); font-size: .75rem; background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .35rem; }

/* Langkah akhir */
.ag-mini { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ag-mini li { display: flex; align-items: center; gap: .7rem; font-size: .98rem; }
.ag-mini li span.n { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line2); display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none; }
.ag-preview { margin-top: 1.6rem; }
.ag-preview pre { margin: 0; max-height: 22rem; overflow: auto; white-space: pre-wrap; font-family: var(--mono); font-size: .82rem; line-height: 1.6; background: var(--panel2); border-radius: 12px; padding: 1rem 1.1rem; }
.ag-end { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.3rem; }

@media (max-width: 640px) {
  .qa-bubble { font-size: 1.05rem; padding: .85rem 1rem; }
  .qa-me { padding-left: 0; }
  .qa-av { width: 2.3rem; height: 2.3rem; }
  .ag-chip { width: 100%; }
  #agSkip { padding-left: .4rem; padding-right: .4rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-typing { display: none; }
  .qa-q, .qa-me { animation: none; }
}

/* ---------- Pertanyaan warna (color picker) ---------- */
.ag-color-body { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.ag-pick { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; border-radius: 16px; background: #fff; border: 2px solid var(--line2); transition: border-color .15s; }
.ag-pick:hover, .ag-pick:focus-within { border-color: var(--coral); }
.ag-pick-sw { position: relative; width: 3.4rem; height: 3.4rem; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px #1f1a1726; cursor: pointer; flex: none; transition: transform .15s; }
.ag-pick-sw:hover { transform: scale(1.06); }
.ag-pick-sw::after { content: ""; position: absolute; right: -.25rem; bottom: -.25rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1a17' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E") center / .65rem no-repeat; box-shadow: 0 1px 3px #0003; }
.ag-pick-sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.ag-pick-txt { display: grid; line-height: 1.3; min-width: 0; flex: 1; }
.ag-pick-txt small { font-size: .8rem; color: var(--mute); font-weight: 600; }
.ag-pick-txt code { font-family: var(--mono); font-size: .95rem; font-weight: 600; }
.ag-eye { width: 2.4rem; height: 2.4rem; border-radius: 10px; border: 1px solid var(--line2); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; color: var(--ink); }
.ag-eye:hover { border-color: var(--ink); }
.ag-eye svg { width: 1.1rem; height: 1.1rem; }
.ag-prev { margin-top: .9rem; display: grid; gap: .4rem; }
.ag-prev-lab { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.ag-prev-page { border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .35rem; justify-items: start; border: 1px solid #1f1a1714; transition: background .2s; }
.ag-prev-page b { font-size: 1.15rem; }
.ag-prev-page span { font-size: .88rem; opacity: .85; }
.ag-prev-page i { font-style: normal; font-weight: 800; font-size: .88rem; padding: .55rem 1rem; border-radius: 10px; margin-top: .3rem; transition: background .2s; }
@container (min-width: 40rem) { .ag-color-body { grid-template-columns: 1fr 1fr; } }

/* ================= Beranda ================= */
.home-hero { position: relative; overflow: hidden; padding: 2.2rem 2.2rem; isolation: isolate;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f4 55%, #fdebe7 100%); animation: homeIn .7s cubic-bezier(.16,1,.3,1) backwards; }
.home-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(40px); opacity: .55; animation: homeFloat 14s ease-in-out infinite alternate; }
.home-blob.b1 { width: 18rem; height: 18rem; right: -4rem; top: -6rem; background: #ffb4a3; }
.home-blob.b2 { width: 14rem; height: 14rem; right: 14rem; bottom: -9rem; background: #f6d7c3; animation-delay: -6s; }
@keyframes homeFloat { to { transform: translate(-2.5rem, 1.5rem) scale(1.12); } }
.home-mark { position: absolute; z-index: -1; right: 1.5rem; bottom: -1.5rem; color: #c43d2e; opacity: .05; }
.home-mark svg { width: 15rem; height: auto; }
.home-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; align-items: center; }
.home-date { background: #ffffffcc; text-transform: capitalize; }
.home-date svg { width: .95rem; height: .95rem; }
.home-hello h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: .8rem 0 .55rem; letter-spacing: -.025em; }
.home-name { background: linear-gradient(90deg, #c43d2e, #f07a4f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hello .lead { color: var(--mute); font-size: 1.06rem; max-width: 38rem; }
.home-cta { margin-top: 1.4rem; }
.home-cta svg { transition: transform .2s; }
.home-cta:hover svg { transform: translateX(.25rem); }

/* Cincin progres */
.home-ring { position: relative; width: 10rem; height: 10rem; justify-self: center; }
.home-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.home-ring circle { fill: none; stroke-width: 11; }
.home-ring .trk { stroke: #f1e6df; }
.home-ring .val { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--off); animation: homeRing 1.2s .3s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes homeRing { from { stroke-dashoffset: var(--len); } }
.home-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.home-ring b { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.home-ring b small { font-size: 1.1rem; color: var(--dim); font-weight: 700; }
.home-ring span { font-size: .8rem; color: var(--mute); font-weight: 600; margin-top: .25rem; }

/* Langkah */
.home-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1rem; position: relative; }
.home-step { position: relative; animation: homeIn .6s calc(.15s + var(--i) * .08s) cubic-bezier(.16,1,.3,1) backwards; }
.home-step a { position: relative; height: 100%; display: grid; gap: .3rem; align-content: start; padding: 1.3rem 1.3rem 1.2rem; border-radius: 20px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 400; transition: transform .2s, border-color .2s, box-shadow .2s; }
.home-step a:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px #1f1a1780; border-color: var(--line2); }
.home-step-ic { width: 2.8rem; height: 2.8rem; border-radius: 14px; display: grid; place-items: center; background: var(--panel2); color: var(--mute); margin-bottom: .5rem; }
.home-step-ic svg { width: 1.35rem; height: 1.35rem; }
.home-step-pill { position: absolute; top: 1.3rem; right: 1.2rem; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 999px; background: var(--panel2); color: var(--dim); }
.home-step b { font-size: 1.05rem; }
.home-step small { color: var(--mute); font-size: .9rem; line-height: 1.45; }
.home-step.done a { border-color: #bfe5cb; background: linear-gradient(180deg, #f3fbf5, #fff); }
.home-step.done .home-step-ic { background: var(--ok); color: #fff; }
.home-step.done .home-step-pill { background: var(--ok-soft); color: var(--ok); }
.home-step.now a { border-color: var(--coral); box-shadow: 0 0 0 4px #c43d2e1f, 0 18px 34px -24px #c43d2e; }
.home-step.now .home-step-ic { background: var(--coral); color: #fff; }
.home-step.now .home-step-pill { background: var(--coral-soft); color: var(--coral); }
.home-step.now .home-step-ic::after { content: ""; position: absolute; width: 2.8rem; height: 2.8rem; border-radius: 14px; box-shadow: 0 0 0 0 #c43d2e66; animation: homePulse 2s infinite; }
@keyframes homePulse { 70% { box-shadow: 0 0 0 .7rem #c43d2e00; } 100% { box-shadow: 0 0 0 0 #c43d2e00; } }

/* Baris bawah */
.home-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; }
.home-card { padding: 1.4rem 1.5rem; animation: homeIn .6s .4s cubic-bezier(.16,1,.3,1) backwards; }
.home-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; }
.home-card-head h2 { font-size: 1.15rem; font-weight: 800; }
.home-card-head a { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; text-decoration: none; }
.home-card-head a svg { width: .95rem; height: .95rem; }
.home-acts { list-style: none; margin: 0; padding: 0; display: grid; }
.home-acts li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.home-acts li:first-child { border-top: 0; padding-top: .2rem; }
.home-act-ic { width: 2.1rem; height: 2.1rem; border-radius: 10px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); flex: none; }
.home-act-ic.ok { background: var(--ok-soft); color: var(--ok); }
.home-act-ic svg { width: 1.05rem; height: 1.05rem; }
.home-act-t { flex: 1; min-width: 0; font-size: .95rem; }
.home-act-when { font-size: .82rem; color: var(--dim); white-space: nowrap; }
.home-empty { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: 14px; background: var(--panel2); color: var(--mute); font-size: .92rem; }
.home-empty svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--dim); }
.home-help { background: linear-gradient(160deg, #fff, #faf3ee); }
.home-help-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
@keyframes homeIn { from { opacity: 0; transform: translateY(1rem); filter: blur(6px); } }

@container (min-width: 44rem) {
  .home-hero-in { grid-template-columns: minmax(0, 1fr) auto; }
  .home-steps { grid-template-columns: repeat(3, 1fr); }
  /* garis penghubung antar langkah */
  .home-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 2.7rem; right: -1rem; width: 1rem; height: 3px; border-radius: 3px; background: var(--line2); }
  .home-step.done:not(:last-child)::after { background: var(--ok); }
  .home-row { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 640px) {
  .home-hero { padding: 1.5rem 1.3rem; }
  .home-mark { display: none; }
  .home-hero-in { gap: 1.2rem; }
  .home-ring { position: absolute; top: 1.3rem; right: 1.2rem; width: 4.4rem; height: 4.4rem; }
  .home-ring circle { stroke-width: 12; }
  .home-ring b { font-size: 1.35rem; }
  .home-ring b small { font-size: .8rem; }
  .home-ring span { display: none; }
  .home-hello h1 { padding-right: 4.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero, .home-step, .home-card, .home-blob, .home-ring .val { animation: none !important; }
}
