:root { color-scheme: light; --navy: #12304a; --navy-tint: #eef3f8; --navy-line: #dbe6f1; --green: #10b981; --green-dark: #047857; --green-line: #d1fae5; --gold-1: #f3d27a; --gold-2: #d4a537; --gold-ink: #2b1d02; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ---------- ikon ---------- */
:where(.ico) { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; }
.ico { stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- header ---------- */
.hero-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 99px; background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); color: #f1f5f9; }

/* ---------- navigasi ---------- */
.nav-link { display: flex; align-items: center; justify-content: center; min-height: 2.5rem; flex: 0 0 auto; padding: 0 .95rem; border-radius: .8rem; font-size: .8rem; font-weight: 700; color: #c7d6e6; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav-link:hover { color: #fff; }
.nav-link.active { background: var(--tone, var(--navy)); color: #fff; box-shadow: 0 3px 8px -3px var(--tone, var(--navy)); }
@media (min-width: 640px) { .nav-link { font-size: .875rem; } }

/* ---------- kartu & judul bagian ---------- */
.card { background: #fff; border-radius: 1.25rem; padding: 1.25rem; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 4px 16px rgb(15 23 42 / .04); }
.sec-head { display: flex; align-items: flex-start; gap: .75rem; margin: -1.25rem -1.25rem 0; padding: 1rem 1.25rem; border-radius: calc(1.25rem - 1px) calc(1.25rem - 1px) 0 0; background: var(--tone-bg, #f8fafc); border-bottom: 1px solid var(--tone-line, #e2e8f0); box-shadow: inset 0 4px 0 var(--tone, transparent); padding-top: calc(1rem + 4px); }
.sec-head > div { flex: 1; min-width: 0; }
.sec-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: .8rem; background: var(--tone, var(--navy)); color: #fff; box-shadow: 0 3px 8px -2px var(--tone, var(--navy)); }
.sec-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; color: #0f172a; }
.sec-desc { margin-top: .15rem; font-size: .85rem; line-height: 1.5; color: #64748b; }
.sub-title { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f1f5f9; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--green-dark); }
.pro-content > .sub-title:first-child { margin-top: 1.25rem; }
.note { font-size: .75rem; line-height: 1.5; color: #94a3b8; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem; }
.input { width: 100%; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.25rem; }
.label { font-size: .85rem; font-weight: 600; color: #334155; }
.hint { font-size: .8rem; color: #64748b; font-variant-numeric: tabular-nums; }
.out { font-size: .9rem; font-weight: 800; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.input-wrap { display: flex; align-items: center; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: .9rem; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.input-wrap:focus-within { border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgb(16 185 129 / .15); }
.affix { padding: 0 .9rem; font-weight: 600; color: #94a3b8; font-size: .85rem; white-space: nowrap; }
.input { flex: 1; min-width: 0; height: 3rem; background: transparent; border: 0; outline: none; font-size: 1.05rem; /* >=16px: cegah auto-zoom iOS */ font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
.input-wrap .input:first-child, .input-wrap [hidden] + .input { padding-left: .9rem; }
.input::placeholder { color: #cbd5e1; font-weight: 600; }

.seg { display: inline-flex; background: #f1f5f9; border-radius: .7rem; padding: 3px; }
.seg button { min-width: 2.75rem; height: 1.9rem; border-radius: .55rem; font-size: .8rem; font-weight: 700; color: #64748b; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgb(15 23 42 / .12); }

/* slider: thumb besar agar mudah digeser jempol */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 2rem; background: transparent; cursor: pointer; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: #e2e8f0; }
.range::-moz-range-track { height: 6px; border-radius: 99px; background: #e2e8f0; }
.range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--green); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px rgb(15 23 42 / .2); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 6px rgb(15 23 42 / .2); }
.range:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
.range-scale { display: flex; justify-content: space-between; font-size: .7rem; color: #94a3b8; margin-top: -.35rem; }

/* ---------- hasil ---------- */
.dot { width: .6rem; height: .6rem; border-radius: 99px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; padding: .3rem .65rem; border-radius: 99px; font-variant-numeric: tabular-nums; }
.badge-up { background: #fee2e2; color: #b91c1c; }
.badge-down { background: #dcfce7; color: #15803d; }

.summary > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #f1f5f9; font-size: .875rem; }
.summary > div:first-child { padding-top: 0; }
.summary > div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary dt { display: flex; align-items: center; gap: .5rem; color: #64748b; }
.summary dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: #0f172a; }
.summary dd.text-amber-600 { color: #d97706; }
.summary dd.text-brand-700 { color: var(--green-dark); }
.summary > div:has(+ .total) { border-bottom: 0; }
.summary .total { margin-top: .25rem; padding-top: .8rem; border-top: 1.5px solid #e2e8f0; }
.summary .total dt { color: #0f172a; font-weight: 700; }
.summary .total dd { font-size: 1rem; font-weight: 800; }

.stat { border-radius: 1rem; padding: .9rem; min-width: 0; }
.stat-label { font-size: .75rem; font-weight: 600; }
.stat-value { margin-top: .25rem; font-size: clamp(.95rem, 4.2vw, 1.15rem); font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: .2rem; font-size: .7rem; color: #64748b; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .stat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: .75rem; padding: .85rem 1rem; }
  .stat-value { margin-top: 0; font-size: 1.1rem; white-space: nowrap; }
  .stat-sub { flex-basis: 100%; text-align: right; }
}
.stat-green { background: #ecfdf5; box-shadow: inset 0 0 0 1px #d1fae5; color: #047857; }
.stat-blue { background: #f0f9ff; box-shadow: inset 0 0 0 1px #e0f2fe; color: #0369a1; }
.stat-gray { background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; color: #334155; }
.stat-brand { background: var(--navy-tint); box-shadow: inset 0 0 0 1px var(--navy-line); color: var(--navy); }

.verdict { display: flex; gap: .75rem; border-radius: 1rem; padding: 1rem; }
.verdict-good { background: #ecfdf5; color: #065f46; box-shadow: inset 0 0 0 1px #a7f3d0; }
.verdict-bad { background: #fff1f2; color: #9f1239; box-shadow: inset 0 0 0 1px #fecdd3; }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: .9rem; border: 1px solid #e2e8f0; }
.table-tall { max-height: 70vh; overflow-y: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th { position: sticky; top: 0; z-index: 1; background: #f8fafc; text-align: right; padding: .65rem .8rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748b; border-bottom: 1px solid #e2e8f0; }
.tbl td { text-align: right; padding: .6rem .8rem; border-bottom: 1px solid #f1f5f9; color: #334155; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { text-align: center; position: sticky; left: 0; background: #fff; font-weight: 700; color: var(--navy); box-shadow: 1px 0 0 #f1f5f9; }
.tbl th:first-child { background: #f8fafc; z-index: 2; }
.tbl tbody tr:nth-child(12n):not(:last-child) td { border-bottom: 2px solid var(--green-line); }
.tbl td.empty { text-align: center; color: #94a3b8; padding: 1.5rem; position: static; font-weight: 500; box-shadow: none; }

/* ---------- tombol ---------- */
.btn-primary, .btn-amber, .btn-pro, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: 0 1.1rem; border-radius: .9rem; font-weight: 800; font-size: .95rem; white-space: nowrap; transition: transform .1s, filter .15s, background-color .15s; }
.btn-primary:active, .btn-amber:active, .btn-pro:active, .btn-ghost:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-amber, .btn-pro { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); box-shadow: 0 6px 20px rgb(212 165 55 / .35); }
.btn-ghost { min-height: 2.75rem; font-size: .85rem; font-weight: 700; background: #fff; color: #334155; box-shadow: inset 0 0 0 1.5px #e2e8f0; }
.btn-ghost:hover { background: #f8fafc; }

/* ---------- gating Pro ---------- */
.pro-chip { flex-shrink: 0; align-self: center; font-size: .65rem; font-weight: 800; letter-spacing: .05em; padding: .2rem .5rem; border-radius: .4rem; background: #fef3c7; color: #92400e; }
.is-pro .pro-chip { display: none; }
.pro-gate { position: relative; overflow: hidden; }
.pro-content { filter: blur(5px); user-select: none; pointer-events: none; opacity: .7; transition: filter .3s, opacity .3s; }
.pro-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgb(255 255 255 / .6) 40%, rgb(255 255 255 / .6) 100%); }
.pro-overlay .btn-pro { pointer-events: auto; }
.is-pro .pro-content { filter: none; user-select: auto; pointer-events: auto; opacity: 1; }
.is-pro .pro-overlay, .is-pro .free-only { display: none; }
.pro-badge { display: none; }
.is-pro .pro-badge { display: inline-block; }

/* ---------- modal: bottom sheet di HP, dialog di desktop ---------- */
.modal-panel { position: absolute; inset-inline: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 1.5rem 1.5rem 0 0; padding: .75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); animation: sheet-up .25s ease-out; }
@media (min-width: 640px) {
  .modal-panel { inset: auto; top: 50%; left: 50%; bottom: auto; width: 26rem; transform: translate(-50%, -50%); border-radius: 1.5rem; padding: 1.5rem; animation: none; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.check-item { display: flex; align-items: flex-start; gap: .6rem; color: #334155; line-height: 1.45; }
.check-item .ico { width: 1.1rem; height: 1.1rem; margin-top: .1rem; color: var(--green); stroke-width: 2.5; }
.msg-err { color: #be123c; font-weight: 600; }
.msg-ok { color: #047857; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- cetak / PDF ---------- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff !important; }
  .no-print { display: none !important; }
  #print-area { display: block; font: 10px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; color: #000; }
  #print-area h1 { font-size: 16px; font-weight: 800; margin: 0; }
  .p-date { color: #555; margin: 2px 0 10px; }
  .p-summary { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
  .p-summary td { padding: 3px 6px; border: 1px solid #ccc; }
  .p-summary td:nth-child(odd) { background: #f3f4f6; font-weight: 600; width: 18%; }
  .p-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .p-table thead { display: table-header-group; }
  .p-table th { background: #e5e7eb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .p-table th, .p-table td { border: 1px solid #ccc; padding: 2px 5px; text-align: right; }
  .p-table th:first-child, .p-table td:first-child { text-align: center; }
  .p-table tr { break-inside: avoid; }
  .p-note { margin-top: 8px; color: #555; font-style: italic; }
}

/* ---------- komponen fitur tambahan ---------- */
.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }
.seg-wide { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
.seg-wide button { min-width: 0; height: 2.5rem; padding: 0 .25rem; font-size: .78rem; white-space: nowrap; }
.info-box { border-radius: 1rem; padding: 1rem; background: var(--navy-tint); color: #334155; font-size: .85rem; line-height: 1.5; box-shadow: inset 0 0 0 1px var(--navy-line); }
.info-box .font-bold { color: var(--navy); }
.verdict-warn { background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #fde68a; }

.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1rem; border-radius: .9rem; font-size: .85rem; font-weight: 800; white-space: nowrap; background: #16a34a; color: #fff; transition: transform .1s, filter .15s; }
.btn-wa:hover { filter: brightness(1.07); }
.btn-wa:active { transform: scale(.98); }

.assume { border-radius: 1rem; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; padding: .85rem 1rem; }
.assume summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.assume summary::-webkit-details-marker { display: none; }
.assume summary::after { content: '+'; font-size: 1.1rem; font-weight: 600; color: #94a3b8; }
.assume[open] summary::after { content: '−'; }
.assume .form-grid { margin-top: 1rem; }

.scen { border-radius: 1rem; padding: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px #e2e8f0; }
.scen-bad { background: #fff7f7; box-shadow: inset 0 0 0 1.5px #fecdd3; }
.scen-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.scen-rate { font-size: .8rem; font-weight: 800; color: var(--navy); }
.scen-tag { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; background: #f1f5f9; color: #475569; }
.scen-pay { margin-top: .4rem; font-size: 1.4rem; font-weight: 800; line-height: 1.1; color: #0f172a; font-variant-numeric: tabular-nums; }
.scen-pay span { font-size: .8rem; font-weight: 600; color: #64748b; }
.scen-grid { margin-top: .6rem; }
.scen-grid > div { display: flex; justify-content: space-between; gap: .75rem; padding: .35rem 0; font-size: .8rem; border-top: 1px dashed #e2e8f0; }
.scen-grid dt { color: #64748b; }
.scen-grid dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.bank-card { border-radius: 1rem; padding: .9rem; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; }
.bank-name { width: 100%; height: 2.5rem; padding: 0 .75rem; border-radius: .7rem; border: 1.5px solid #e2e8f0; background: #fff; font-size: 1rem; font-weight: 800; color: var(--navy); outline: none; }
.bank-name:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgb(16 185 129 / .15); }
.bank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .75rem; }
.label-sm { font-size: .72rem; font-weight: 600; color: #475569; }
.input-sm { border-radius: .7rem; background: #fff; }
.input-sm .input { height: 2.6rem; font-size: 1rem; }
.input-sm .affix { padding: 0 .6rem; font-size: .75rem; }
.input-sm .input:first-child, .input-sm [hidden] + .input { padding-left: .7rem; }
.bank-result { border-radius: 1rem; padding: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px #e2e8f0; min-width: 0; }
.bank-result.is-best { background: #f0fdf4; box-shadow: inset 0 0 0 2px #86efac; }
.bank-total { margin-top: .5rem; font-size: 1.25rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.best-tag { flex-shrink: 0; font-size: .65rem; font-weight: 800; padding: .2rem .5rem; border-radius: 99px; background: var(--green); color: #fff; }

/* menu geser: ujung memudar hanya di sisi yang masih punya isi */
.nav-track { --fl: 0px; --fr: 0px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); scroll-padding-inline: 2rem; }
.nav-track.more-l { --fl: 2.5rem; }
.nav-track.more-r { --fr: 2.5rem; }

/* warna pembeda tiap fitur: pita header + ikon */
.tone-blue   { --tone: #2563eb; --tone-bg: #dbeafe; --tone-line: #bfdbfe; }
.tone-green  { --tone: #059669; --tone-bg: #d1fae5; --tone-line: #a7f3d0; }
.tone-amber  { --tone: #d97706; --tone-bg: #fef3c7; --tone-line: #fde68a; }
.tone-rose   { --tone: #e11d48; --tone-bg: #ffe4e6; --tone-line: #fecdd3; }
.tone-teal   { --tone: #0d9488; --tone-bg: #ccfbf1; --tone-line: #99f6e4; }
.tone-violet { --tone: #7c3aed; --tone-bg: #ede9fe; --tone-line: #ddd6fe; }
.tone-pink   { --tone: #db2777; --tone-bg: #fce7f3; --tone-line: #fbcfe8; }
.tone-slate  { --tone: #475569; --tone-bg: #e2e8f0; --tone-line: #cbd5e1; }

/* ---------- bandingkan bank (versi ringkas) ---------- */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 1rem; background: #f8fafc; box-shadow: inset 0 0 0 1px #e2e8f0; cursor: pointer; }
.switch { -webkit-appearance: none; appearance: none; flex-shrink: 0; position: relative; width: 2.9rem; height: 1.7rem; border-radius: 99px; background: #cbd5e1; cursor: pointer; transition: background-color .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: calc(1.7rem - 6px); height: calc(1.7rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(15 23 42 / .3); transition: transform .2s; }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(1.2rem); }
.switch:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bank-no { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex-shrink: 0; border-radius: 50%; background: var(--tone, var(--navy)); color: #fff; font-size: .8rem; font-weight: 800; }
.bank-card .bank-name { flex: 1; min-width: 0; }
.bank-info { margin-top: .6rem; font-size: .85rem; color: #334155; line-height: 1.5; }
.link-btn { font-weight: 700; color: var(--tone, var(--navy)); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.icon-btn { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: .7rem; color: #64748b; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; }
.preset-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin-top: .75rem; }
.preset-row::-webkit-scrollbar { display: none; }
.chip-btn { height: 2.25rem; padding: 0 .3rem; border-radius: 99px; font-size: .78rem; font-weight: 700; color: #475569; background: #fff; box-shadow: inset 0 0 0 1.5px #e2e8f0; white-space: nowrap; }
.chip-btn[aria-pressed="true"] { color: #fff; background: var(--tone, var(--navy)); box-shadow: none; }
.bank-fees { margin-top: .75rem; }
.bank-fees summary { cursor: pointer; list-style: none; font-size: .78rem; font-weight: 700; color: #64748b; }
.bank-fees summary::-webkit-details-marker { display: none; }
.bank-fees summary::before { content: '+ '; }
.bank-fees[open] summary::before { content: '− '; }
.bank-fees .bank-grid { margin-top: .5rem; }
.add-bank { height: 3rem; border-radius: 1rem; font-size: .85rem; font-weight: 700; color: var(--tone, var(--navy)); background: #fff; box-shadow: inset 0 0 0 1.5px var(--tone-line, #e2e8f0); border: 1.5px dashed var(--tone, #94a3b8); }

.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* ---------- tampilan HP lebih ringkas ---------- */
@media (max-width: 639px) {
  .card { padding: 1rem; border-radius: 1.1rem; }
  .sec-head { margin: -1rem -1rem 0; padding: calc(.75rem + 4px) 1rem .75rem; border-radius: calc(1.1rem - 1px) calc(1.1rem - 1px) 0 0; gap: .65rem; }
  .sec-icon { width: 2.25rem; height: 2.25rem; border-radius: .7rem; }
  .sec-title { font-size: 1rem; line-height: 1.25; }
  .sec-desc { margin-top: .1rem; font-size: .8rem; line-height: 1.35; }
  .form-grid { gap: .75rem; margin-top: 1rem; }
  .field { gap: .3rem; }
  .field-row { min-height: 2rem; }
  .label { font-size: .82rem; }
  .hint, .note { font-size: .75rem; line-height: 1.35; }
  .input { height: 2.75rem; }
  .range { height: 1.75rem; }
  .sub-title { margin-top: 1.1rem; padding-top: .9rem; }
  .pro-content > .sub-title:first-child { margin-top: 1rem; }
  .summary > div { padding: .5rem 0; font-size: .85rem; }
  .summary .total { padding-top: .6rem; }
  .verdict, .info-box { padding: .8rem .9rem; line-height: 1.4; }
  .stat { padding: .7rem .9rem; }
  .scen, .bank-result { padding: .85rem; }
  .scen-grid > div { padding: .28rem 0; }
  .bank-card { padding: .8rem; }
  .bank-grid { gap: .5rem; margin-top: .6rem; }
  .assume { padding: .7rem .9rem; }
  .card .mt-6, .card .mt-5 { margin-top: .9rem; }
  .card .mt-4 { margin-top: .75rem; }
  .card .mt-3 { margin-top: .6rem; }
  .tbl td { padding: .45rem .7rem; }
  .tbl th { padding: .5rem .7rem; }
  .btn-primary, .btn-amber { min-height: 2.75rem; }
  .btn-ghost, .btn-wa { min-height: 2.6rem; }
}

/* abu-abu kurang kontras di atas menu navy: pakai versi terang */
.nav-link.tone-slate.active { background: #e2e8f0; color: var(--navy); box-shadow: none; }

/* ---------- target sentuh HP (min ±40px) ---------- */
.seg button { height: 2.25rem; }
.range { height: 2.5rem; }
.chip-btn { height: 2.5rem; }
.assume summary { margin: -.85rem -1rem; padding: .85rem 1rem; min-height: 2.75rem; }
.assume[open] summary { margin-bottom: 0; }
.bank-fees summary { display: flex; align-items: center; min-height: 2.75rem; cursor: pointer; }
.link-btn { display: inline-block; padding-block: .6rem; margin-block: -.6rem; }
[data-open-pro].free-only { min-height: 2.5rem; }
/* Keyboard HP: lembar Pro naik di atas keyboard; input tidak tertutup bar bawah. */
@media (max-width: 639px) { .modal-panel { bottom: var(--kb, 0px); max-height: calc(92vh - var(--kb, 0px)); } }
html { scroll-padding-bottom: 5rem; }

/* ---------- masukan ---------- */
.fb-text { display: block; width: 100%; resize: vertical; min-height: 6rem; padding: .75rem .9rem; border-radius: .9rem; background: #fff; box-shadow: inset 0 0 0 1.5px #e2e8f0; font-size: 1rem; /* >=16px: cegah auto-zoom iOS */ line-height: 1.5; color: #0f172a; outline: none; }
.fb-text:focus { box-shadow: inset 0 0 0 2px var(--tone, var(--navy)); }
