/* Fitur Aplikasi (/fitur-aplikasi.html) — page sections. Requires site.css. */

/* Page-scoped: anchors land below the header (72px) + sticky sub-nav (~59px). */
html { scroll-padding-top: 144px; }

.section-head--780 { max-width: 780px; }
.lead--17 { font-size: 17px; }
.split--440 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }

/* ---------- Hero ---------- */
.fitur-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.fitur-hero__eyebrow { margin-top: 20px; }
.fitur-hero__title { margin-top: 18px; line-height: 1.08; }
.fitur-hero__lead { margin-top: 20px; color: var(--text-2); max-width: 580px; }
.fitur-hero__cta { margin-top: 30px; }
.fitur-visual { position: relative; }
.fitur-visual__frame { aspect-ratio: 1 / .9; border-radius: 32px; background: linear-gradient(160deg, #dcefeb, #f5faf9); border: 1px solid #d6e8e4; overflow: hidden; display: grid; place-items: center; }
.fitur-visual__frame img { display: block; width: 88%; height: 88%; object-fit: contain; }
.fitur-visual .fc-qris { bottom: 8%; left: -3%; }
@media (max-width: 560px) { .fitur-visual .fc-qris { left: 0; bottom: 4%; } }
.quick-wrap { margin-top: clamp(40px, 5vw, 64px); }
.quick { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.quick__item { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.quick__item strong { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1.3; }
.quick__item span { font-size: 14px; color: var(--text-3); line-height: 1.5; }

/* ---------- Sticky sub-nav with scroll-spy ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav__in { position: relative; display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav__link { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--text-1); white-space: nowrap; transition: background .25s, color .25s; }
.subnav__link:hover { background: var(--chip); color: var(--ink); }
.subnav__link[aria-current="true"] { background: var(--ink); color: #fff; }

/* ---------- Role tabs ---------- */
.roles { margin-top: 44px; display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.roles__list { display: flex; flex-direction: column; gap: 8px; }
.rtab { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.rtab:hover { border-color: var(--line-hover); }
.rtab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rtab__n { font-size: 12px; font-weight: 800; letter-spacing: .06em; opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtab__name { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.rtab__arrow { margin-left: auto; font-size: 14px; opacity: 0; transition: opacity .25s; }
.rtab[aria-selected="true"] .rtab__arrow { opacity: .8; }
.roles__panels { display: grid; }
.rpanel { grid-area: 1 / 1; background: var(--tint); border-radius: 28px; padding: clamp(24px, 3vw, 40px); }
.js .rpanel { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s, transform .55s var(--ease), visibility .45s; }
.js .rpanel.is-active { opacity: 1; visibility: visible; transform: none; }
html:not(.js) .roles { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .roles__list { display: none; }
html:not(.js) .roles__panels { gap: 20px; }
html:not(.js) .rpanel { grid-area: auto; }
.rpanel__n { font-size: 13px; font-weight: 800; color: var(--primary); letter-spacing: .06em; }
.rpanel__title { margin: 8px 0 0; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rpanel p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.rpanel__points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.rpanel__points li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--text-1); font-weight: 500; }
.rpanel__points li::before { content: "✓"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
@media (max-width: 899px) {
  .roles { grid-template-columns: minmax(0, 1fr); }
  .roles__list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .roles__list::-webkit-scrollbar { display: none; }
  .rtab { flex: none; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 16px; }
  .rtab__name { font-size: 16px; }
  .rtab__arrow { display: none; }
}

/* ---------- Matrix ---------- */
.matrix { min-width: 860px; font-size: 14px; }
.matrix thead th { padding: 16px 14px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.matrix th, .matrix td { padding: 10px 14px; vertical-align: middle; }
.matrix tbody th { padding: 14px; font-weight: 800; letter-spacing: .02em; }
.mrow { cursor: pointer; transition: background .3s; }
.mrow:hover { background: #f7fbfa; }
.mrow.is-selected { background: var(--amber-bg); }
.mrow__role { color: var(--ink); text-decoration: none; }
.mrow__role:hover { color: var(--primary); }
.lvl { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.35; white-space: nowrap; background: var(--chip); color: var(--primary-deep); }
.lvl--full { background: var(--primary); color: #fff; }
.lvl--no { background: #f1f4f4; color: #687b7c; }
.lvl--warn { background: #fff3d6; color: #5a4100; }

/* ---------- Fitur lengkap (masonry columns) ---------- */
.fcats { margin-top: 44px; columns: 340px; column-gap: 20px; }
.fcat { break-inside: avoid; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flow-root; transition: border-color .25s, box-shadow .25s; }
.fcat:hover { border-color: var(--line-hover); box-shadow: var(--shadow-card); }
.fcat__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
.fcat__n { font-size: 13px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.fcat__title { margin: 10px 0 0; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.fcat__list { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.fcat__list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.fcat__list li::before { content: "✓"; flex: none; color: var(--primary); font-weight: 800; }
.fcat__link { display: inline-flex; gap: 6px; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.fcat__link:hover { color: var(--primary-deep); text-decoration: underline; }
.fcat--ai { background: var(--ink); border-color: var(--ink); }
.fcat--ai:hover { border-color: var(--ink); }
.fcat--ai .fcat__n { color: var(--mint); }
.fcat--ai .fcat__title { color: #fff; }
.fcat--ai .fcat__list li { color: #d5e7e4; }
.fcat--ai .fcat__list li::before { color: var(--amber); }
.fcat--ai .fcat__link { color: var(--mint); }
.fcat--ai .fcat__link:hover { color: #fff; }
.fcat .chip--amber { font-size: 11px; letter-spacing: .06em; padding: 4px 9px; }

/* ---------- Fakta (dark) ---------- */
.fakta__glow { width: 560px; height: 560px; background: var(--brand); filter: blur(140px); opacity: .25; top: -220px; right: -120px; }
#fakta > .container { position: relative; }
.facts { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.facts__n { font-size: 13px; font-weight: 800; color: var(--mint); font-variant-numeric: tabular-nums; padding-top: 3px; }
.facts p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.fakta__frame { aspect-ratio: 1 / 1; border-radius: 32px; background: var(--dark-card); border: 1px solid rgba(255, 255, 255, .08); display: grid; place-items: center; overflow: hidden; }
.fakta__frame img { display: block; width: 84%; height: 84%; object-fit: contain; }

/* ---------- Alur role (same pattern as the homepage workflow) ---------- */
.flow { position: relative; margin: 52px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 20px; }
.flow::before, .flow::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--line); }
.flow::after { background: var(--brand); transform-origin: left; transform: scaleX(0); transition: transform 2.2s cubic-bezier(.6, 0, .2, 1); }
.flow.is-on::after, html:not(.js) .flow::after { transform: scaleX(1); }
.flow__step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.flow__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: #fff; color: #5f7774; border: 2px solid var(--line); transition: background .4s, color .4s, border-color .4s; }
.flow.is-on .flow__n, html:not(.js) .flow__n { background: var(--primary); color: #fff; border-color: var(--primary); }
.flow__step:nth-child(2) .flow__n { transition-delay: .35s; }
.flow__step:nth-child(3) .flow__n { transition-delay: .7s; }
.flow__step:nth-child(4) .flow__n { transition-delay: 1.05s; }
.flow__step:nth-child(5) .flow__n { transition-delay: 1.4s; }
.flow__step .h3 { font-size: 17px; line-height: 1.3; }
.flow__role { color: var(--primary); }
.flow__step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-3); }
@media (max-width: 959px) { .flow::before, .flow::after { display: none; } }

/* ---------- SEO & AI ---------- */
.seo-panel { padding: clamp(28px, 5vw, 56px); }
.seo-panel__head { max-width: 820px; }
.seo-panel__title { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.seo-panel__lead { margin-top: 14px; font-size: 16px; }
.seo-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.seo-card { padding: 24px; border-radius: 20px; }
.seo-card .h3 { font-size: 18px; }
.seo-card p { margin-top: 10px; }

/* ---------- FAQ + CTA ---------- */
#faq-fitur .faq-list { margin-top: 36px; }
.fitur-cta { padding-bottom: var(--section-y-sub); }
.fitur-cta .cta-band__title { font-size: clamp(30px, 4vw, 50px); max-width: 760px; }
.fitur-cta .btn--ghost-dark { border-color: rgba(255, 255, 255, .5); }
.fitur-cta .btn--ghost-dark:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* Fitur unggulan showcase */
.showcase { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.show-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.show-card:hover { border-color: var(--line-hover); box-shadow: var(--shadow-card); }
.show-card__media { background: linear-gradient(160deg, #eef7f5, #dcefeb); padding: 28px 28px 0; display: flex; justify-content: center; align-items: flex-end; aspect-ratio: 16 / 11; overflow: hidden; }
.show-card__media img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.show-card__body { padding: 26px 28px 30px; }
.show-card__kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal, #1f7a6f); margin-bottom: 8px; }
.show-card__title { margin-bottom: 10px; }
.show-card__body p { color: var(--muted); }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } .show-card__media { padding: 20px 16px 0; } }
