/* =====================================================================
   Landing distributor — design system ringan (tanpa framework/build).
   Mobile-first · CSP-safe · hemat (satu file, system font, SVG sprite).
   ===================================================================== */
:root {
  --navy-950: #061428;
  --navy-900: #0B1F3A;
  --navy-800: #12305A;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-50: #EFF4FF;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-50: #FFF8E6;
  --green-600: #16A34A;
  --wa: #1FAF55;
  --ink: #0F172A;
  --muted: #5B6B82;
  --line: rgba(15, 23, 42, .10);
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px -4px rgba(11, 31, 58, .18);
  --shadow: 0 16px 40px -20px rgba(11, 31, 58, .38);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
  --gutter: 16px;
  --hdr-h: 64px;
  --bnav-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber-400); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; margin-top: 1.5rem; }
[hidden] { display: none !important; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid transparent; font-weight: 650; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: .8rem 1.4rem; font-size: 1.02rem; }
.btn--sm { min-height: 36px; padding: .35rem .8rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--amber-500); color: var(--navy-950); box-shadow: 0 8px 20px -10px rgba(245, 158, 11, .9); }
.btn--accent:hover { background: var(--amber-400); }
.btn--outline { background: var(--surface); color: var(--navy-900); border-color: rgba(11, 31, 58, .2); }
.btn--outline:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.05); }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .85rem; padding: .25rem; }
.pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--navy-900); color: #fff; font-size: .75rem; font-weight: 700; }
.pill--dot { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: .68rem; background: var(--amber-500); color: var(--navy-950); }

/* ── Header ── */
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(246, 248, 251, .86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--navy-900); text-decoration: none !important; min-width: 0; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--navy-900); color: var(--amber-500); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.brand--light { color: #fff; }
.brand--light .brand__mark { background: rgba(255, 255, 255, .1); }
.nav { display: none; margin-left: auto; gap: .25rem; }
.nav a { padding: .5rem .8rem; border-radius: 999px; color: var(--navy-800); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav a.is-active { background: rgba(11, 31, 58, .06); }
.hdr__cta { display: none; }
.hdr__menu { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--navy-900); }
.hdr__menu svg { width: 26px; height: 26px; }
.mnav { display: grid; padding: .5rem var(--gutter) 1rem; gap: .25rem; border-top: 1px solid var(--line); background: var(--bg); }
.mnav a { padding: .8rem .5rem; font-weight: 600; color: var(--navy-900); border-radius: 10px; }

/* ── Hero ── */
.hero { position: relative; color: #fff; overflow: hidden; padding: 56px 0 72px; background: var(--navy-900); }
.hero__bg { position: absolute; inset: 0; background:
    radial-gradient(900px 420px at 85% 10%, rgba(37, 99, 235, .55), transparent 60%),
    radial-gradient(600px 380px at 0% 100%, rgba(245, 158, 11, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 85%); }
.hero__grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.08rem; color: rgba(255, 255, 255, .82); max-width: 38rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-400); margin-bottom: .75rem; }
.eyebrow--dark { color: var(--blue-700); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 30rem; }
.hero__stats li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: .75rem; }
.hero__stats b { display: block; font-size: 1.25rem; color: #fff; }
.hero__stats span { font-size: .78rem; color: rgba(255, 255, 255, .7); }

/* Visual alur dokumen */
.flowviz { position: relative; height: 380px; max-width: 420px; width: 100%; margin: 0 auto; }
.doc { position: absolute; width: 74%; padding: 16px 18px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55); display: grid; gap: 8px; animation: float 6s ease-in-out infinite; }
.doc b { font-size: .95rem; color: var(--navy-900); }
.doc i { display: block; height: 8px; border-radius: 6px; background: #E6ECF5; }
.doc i.short { width: 55%; }
.doc__tag { position: absolute; top: -12px; right: 14px; background: var(--blue-600); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.doc__tag--ok { background: var(--green-600); }
.doc__bar { height: 8px; border-radius: 6px; background: #E6ECF5; overflow: hidden; }
.doc__bar span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--amber-500), var(--amber-400)); animation: fill 3.6s ease-in-out infinite; }
.doc--1 { top: 0; left: 0; transform: rotate(-4deg); }
.doc--2 { top: 70px; left: 18%; animation-delay: -1.5s; }
.doc--3 { top: 150px; left: 6%; animation-delay: -3s; transform: rotate(2deg); }
.doc--4 { top: 240px; left: 26%; width: 62%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes fill { 0% { width: 10%; } 60% { width: 100%; } 100% { width: 100%; } }

/* ── Sections ── */
.sec { padding: 64px 0; }
.sec--tight { padding: 28px 0 64px; }
.sec--tint { background: linear-gradient(180deg, var(--blue-50), #fff); }
.sec--dark { background: var(--navy-900); color: rgba(255, 255, 255, .85); }
.sec--dark h2 { color: #fff; }
.sec__head { max-width: 44rem; margin-bottom: 2rem; }
.sec__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid3, .grid4 { display: grid; gap: 1rem; }
.feat { padding: 1.4rem; transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); margin-bottom: 1rem; }
.feat__icon svg { width: 26px; height: 26px; }
.feat p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Stepper */
.stepper { display: grid; gap: 1rem; }
.stepper__nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; }
.stepper__nav li { scroll-snap-align: start; flex: none; }
.stepper__nav button { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 650; color: var(--navy-800); min-height: 44px; }
.stepper__nav button[aria-selected="true"] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.stepper__num { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-700); font-size: .8rem; font-weight: 800; }
.stepper__nav button[aria-selected="true"] .stepper__num { background: var(--amber-500); color: var(--navy-950); }
.stepper__panels { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; min-height: 190px; overflow: hidden; }
.stepper__panel { animation: fadeUp .35s ease both; }
.stepper__big { display: block; font-size: 3.4rem; font-weight: 900; line-height: 1; color: var(--blue-50); -webkit-text-stroke: 1.5px var(--blue-600); margin-bottom: .5rem; }
.stepper__panel p { color: var(--muted); max-width: 46rem; margin: 0; }
.stepper__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blue-50); }
.stepper__progress span { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--blue-600), var(--amber-500)); transition: width .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Item katalog */
.item { display: grid; grid-template-columns: 44px 1fr; gap: .25rem .9rem; padding: 1rem; align-items: start; transition: border-color .2s, transform .2s; }
.item:hover { border-color: rgba(37, 99, 235, .35); transform: translateY(-2px); }
.item__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-50); color: #B45309; }
.item__icon svg { width: 24px; height: 24px; }
.item__code { font-size: .75rem; font-weight: 700; color: var(--blue-700); letter-spacing: .03em; }
.item__name { margin: .1rem 0 .25rem; font-size: 1rem; }
.item__desc { color: var(--muted); font-size: .875rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__add { grid-column: 1 / -1; justify-self: end; margin-top: .5rem; }
.item.is-added .item__add { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Search */
.search { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; box-shadow: var(--shadow-sm); max-width: 560px; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; min-height: 42px; }
.search--sm { padding-right: 1rem; }

/* Halaman katalog */
.pagehead { background: var(--navy-900); color: rgba(255, 255, 255, .85); padding: 40px 0 36px; }
.pagehead h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.pagehead .lead { margin-bottom: 1.25rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.empty { padding: 2rem; text-align: center; }

/* About & contact */
.about { display: grid; gap: 2rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .75rem; align-items: start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: .85rem 1rem; }
.checks svg { width: 22px; height: 22px; color: var(--amber-400); flex: none; margin-top: 1px; }
.contact { display: grid; gap: 2rem; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.contact__list li { display: flex; gap: .9rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.contact__list svg { width: 24px; height: 24px; color: var(--blue-700); flex: none; }
.contact__list span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.contact__list p { margin: 0; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue-700); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1rem; margin: 0; }

/* Footer */
.ftr { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 48px 0 24px; font-size: .92rem; }
.ftr h3 { color: #fff; font-size: .95rem; }
.ftr a { color: rgba(255, 255, 255, .85); }
.ftr__grid { display: grid; gap: 2rem; }
.ftr__tag { margin-top: .75rem; }
.ftr__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1rem; font-size: .8rem; }

/* Drawer permintaan penawaran (bottom sheet di HP, panel kanan di desktop) */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 20, 40, .55); animation: fade .2s ease both; }
.drawer__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; background: var(--surface); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1) both; padding-bottom: env(safe-area-inset-bottom); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1rem .5rem; }
.drawer__head h2 { font-size: 1.2rem; margin: 0; }
.drawer__body { padding: 0 1rem; overflow-y: auto; display: grid; gap: .9rem; align-content: start; }
.drawer__foot { padding: 1rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.qlist li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; }
.qlist .q-code { font-size: .72rem; color: var(--blue-700); font-weight: 700; display: block; }
.qlist .q-name { font-weight: 600; font-size: .92rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.qty button svg { width: 16px; height: 16px; }
.qty input { width: 52px; text-align: center; border: 0; outline: 0; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field { display: grid; gap: .35rem; font-size: .875rem; font-weight: 600; }
.field input, .field textarea { border: 1px solid rgba(15, 23, 42, .18); border-radius: 12px; padding: .7rem .8rem; font-weight: 400; background: #fff; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue-600); outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Bottom nav (HP) */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.bnav a, .bnav button { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; font-size: .72rem; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none !important; }
.bnav svg { width: 22px; height: 22px; }
.bnav .is-active { color: var(--navy-900); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--bnav-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--navy-900); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal saat scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── ≥ 640px ── */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__name { max-width: none; }
}

/* ── ≥ 960px (desktop) ── */
@media (min-width: 960px) {
  :root { --hdr-h: 72px; }
  body { padding-bottom: 0; }
  .bnav { display: none; }
  .nav { display: flex; }
  .hdr__cta { display: inline-flex; }
  .hdr__menu, .mnav { display: none !important; }
  .hero { padding: 96px 0 110px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .flowviz { height: 400px; }
  .sec { padding: 96px 0; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stepper { grid-template-columns: 300px 1fr; align-items: stretch; }
  .stepper__nav { flex-direction: column; overflow: visible; }
  .stepper__nav button { width: 100%; border-radius: 14px; }
  .stepper__panels { padding: 2.25rem; }
  .about, .contact { grid-template-columns: 1fr 1fr; align-items: center; }
  .ftr__grid { grid-template-columns: 2fr 1.5fr 1fr; }
  .drawer__panel { left: auto; top: 0; width: 420px; max-height: none; border-radius: 22px 0 0 22px; animation-name: sheetLeft; }
  .toast { bottom: 24px; }
  @keyframes sheetLeft { from { transform: translateX(100%); } to { transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .hdr, .bnav, .drawer, .hero__cta, .flowviz { display: none !important; }
  body { padding: 0; background: #fff; }
}
