@font-face { font-family: 'Archivo'; src: url('/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --blue: #0a6cf5;
  --blue-deep: #0b49c0;
  --purple: #cb80f5;
  --yellow: #ffd93b;
  --coral: #f27b76;
  --red: #e5342b;
  --ink: #1b2341;
  --ink-2: #566080;
  --pale: #eef2fa;
  --line: #e3e9f5;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; background: #dfe6f4; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
body {
  width: min(100%, 480px); margin: 0 auto; min-height: 100dvh;
  background: var(--pale); color: var(--ink);
  font: 400 15px/1.5 'Archivo', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--yellow); color: var(--ink); }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; padding: 0; }
p { text-wrap: pretty; }
ol, ul { list-style: none; }
h1, h2, h3 { font-stretch: 112%; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 15px; font-weight: 700; }
a { color: inherit; text-underline-offset: 3px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hero :focus-visible, .tabs :focus-visible { outline-color: #fff; }

/* Atas */
.hero {
  padding: max(12px, env(safe-area-inset-top)) 28px 124px; color: #fff;
  background: radial-gradient(90% 56% at 90% 0, #2a7ffb 0, #2a7ffb00 72%), linear-gradient(172deg, var(--blue) 0, var(--blue-deep) 100%);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; text-decoration: none; }
.wordmark .i { width: 24px; height: 24px; }
.pill-link { position: relative; display: inline-flex; border: 0; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 99px; background: #fff; color: var(--blue-deep); font-size: 13px; font-weight: 700; text-decoration: none; }
.pill-link::after { content: ''; position: absolute; inset: -7px -4px; }
.hero-rate { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 12px; border-radius: 99px; background: var(--blue-deep); box-shadow: inset 0 0 0 1px #ffffff40; font-size: 14px; }
.hero-rate b { font-weight: 800; font-stretch: 112%; }
.hero-rate .stars { width: 86px; height: 16px; color: var(--yellow); }
.hero h1 { margin-top: 14px; font-size: clamp(29px, 9.8vw, 40px); line-height: 1.06; font-weight: 800; letter-spacing: -.03em; }
.hero h1 span { display: block; margin-top: 10px; color: var(--yellow); font-size: .58em; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.lede { font-size: 15px; }

/* Mockup akrilik bening: pelat tebal dari tumpukan lapisan, latar biru tembus di tepinya */
.mock { position: relative; width: min(84%, 372px); margin: 32px auto 52px; perspective: 1100px; }
.mock::after { content: ''; position: absolute; left: 6%; right: -2%; bottom: -36px; height: 40px; border-radius: 50%; background: #041a4d; opacity: .6; filter: blur(16px); }
.plate { position: relative; z-index: 1; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(9deg) rotateY(-24deg) rotateZ(1.5deg); animation: settle 1s var(--ease) backwards; }
@keyframes settle { from { transform: rotateX(16deg) rotateY(-46deg) rotateZ(4deg) translateY(14px); } }
.plate i { position: absolute; inset: 0; border-radius: 26px; background: #ffffff1f; }
.plate i:nth-child(1) { transform: translateZ(-14px); background: #ffffff33; box-shadow: 18px 30px 44px -6px #041a4d8c; }
.plate i:nth-child(2) { transform: translateZ(-12.5px); }
.plate i:nth-child(3) { transform: translateZ(-11px); }
.plate i:nth-child(4) { transform: translateZ(-9.5px); }
.plate i:nth-child(5) { transform: translateZ(-8px); }
.plate i:nth-child(6) { transform: translateZ(-6.5px); }
.plate i:nth-child(7) { transform: translateZ(-5px); }
.plate i:nth-child(8) { transform: translateZ(-3.5px); }
.plate i:nth-child(9) { transform: translateZ(-2px); }
.plate i:nth-child(10) { transform: translateZ(-1px); }
.rim { position: absolute; inset: 0; border-radius: 26px; background: linear-gradient(135deg, #ffffff73 0, #ffffff26 42%, #ffffff14 68%, #ffffff4d 100%); box-shadow: inset 0 0 0 1.5px #ffffffd9, inset 3px 3px 5px #ffffffb3, inset -4px -4px 10px #ffffff40; }
.face { position: absolute; inset: 8%; display: flex; flex-direction: column; padding: 5.5%; border-radius: 16px; background: #fff; color: var(--ink); container-type: inline-size; transform: translateZ(.5px); box-shadow: 0 2px 6px #041a4d33; }
.face-head { display: flex; align-items: center; gap: 4cqw; margin-bottom: 4cqw; }
.face-head > svg { width: 16cqw; height: 16cqw; flex: none; }
.face-head p { font-size: 6cqw; font-weight: 700; line-height: 1.2; }
.face-head .stars { width: 34cqw; height: 6.2cqw; margin-top: 1cqw; color: var(--ink); }
.face-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2cqw; padding: 3cqw; border-radius: 12px; background: var(--pale); }
.face-body div { display: grid; justify-items: center; gap: 2cqw; }
.face-body b { font-size: 4.6cqw; white-space: nowrap; }
.face-body small { color: var(--ink-2); font-size: 4cqw; }
.face-body img { display: block; width: 30cqw; height: 30cqw; }
.face-ring { width: 26cqw; height: 26cqw; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); }
.face-ring .i { width: 13cqw; height: 13cqw; }
.gloss { position: absolute; inset: 0; border-radius: 26px; transform: translateZ(1px); pointer-events: none; background: linear-gradient(118deg, #fff0 24%, #ffffff66 33%, #ffffff26 39%, #fff0 48%, #fff0 62%, #ffffff3d 67%, #fff0 73%); }

.actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
.action { display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-align: center; text-decoration: none; }
.action span { width: min(64px, 17.5vw); height: min(64px, 17.5vw); border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); box-shadow: 0 10px 20px -10px #06205a; transition: transform .2s var(--ease); }
.action .i { width: 24px; height: 24px; }
.action:active span { transform: scale(.94); }

/* Tab melengkung di atas lembar putih. Kaki tab menimpa lembar, jadi tidak ada sambungan. */
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 56px; margin-top: -96px; padding-inline: var(--gutter); position: relative; z-index: 1; }
.tab-ink { --foot: 28px; position: absolute; left: var(--gutter); top: 0; bottom: calc(var(--foot) * -1); width: calc(50% - var(--gutter)); background: #fff; border-radius: 24px 24px 0 0; pointer-events: none; transition: left .42s var(--ease); }
.tab-ink::before, .tab-ink::after { content: ''; position: absolute; bottom: calc(var(--foot) - 1px); width: 21px; height: 21px; }
.tab-ink::before { right: calc(100% - 1px); background: radial-gradient(circle at 0 0, #fff0 19.5px, #fff 20px); opacity: 0; transition: opacity .12s; }
.tab-ink::after { left: calc(100% - 1px); background: radial-gradient(circle at 100% 0, #fff0 19.5px, #fff 20px); transition: opacity .2s .16s; }
.tabs[data-active='paket'] .tab-ink { left: 50%; }
.tabs[data-active='paket'] .tab-ink::before { opacity: 1; transition: opacity .2s .16s; }
.tabs[data-active='paket'] .tab-ink::after { opacity: 0; transition: opacity .12s; }
.tab { position: relative; border: 0; background: none; color: #fff; font-weight: 700; font-stretch: 112%; font-size: 15px; border-radius: 24px 24px 0 0; transition: color .25s; }
.tab[aria-selected='true'] { color: var(--ink); }
.tabs .tab:focus-visible { outline-color: currentColor; outline-offset: -6px; }
.sheet { position: relative; margin-inline: var(--gutter); padding: 32px 20px 28px; background: #fff; border-radius: 28px; box-shadow: 0 24px 40px -32px #1b23414d; transition: height .42s var(--ease); }
.sheet.moving { overflow: clip; }
.enter { animation: panel-in .42s var(--ease) backwards; }
#panel-cara.enter { --from: -20px; }
#panel-paket.enter { --from: 20px; }
@keyframes panel-in { from { opacity: 0; transform: translateX(var(--from)); } }

.steps { margin-top: 8px; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.steps li + li { border-top: 1px solid var(--line); }
.steps p { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.dot-blue { background: var(--blue); color: #fff; }
.dot-yellow { background: var(--yellow); }
.dot-purple { background: var(--purple); }
.dot-coral { background: var(--coral); }

/* Paket */
.plan { margin-top: 16px; padding: 20px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 16px 28px -22px #1b234159; display: grid; gap: 12px; }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--pale); color: var(--blue); }
.plan-icon .i { width: 24px; height: 24px; }
.plan h3 { font-size: 18px; }
.price { color: var(--ink-2); font-size: 14px; }
.price b { display: block; color: var(--ink); font-size: 28px; font-stretch: 112%; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.plan-desc { color: var(--ink-2); font-size: 14px; }
.plan ul { display: grid; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.plan li .i { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--blue); color: #fff; }
.plan-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; margin-top: 8px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.plan-btn .i { width: 16px; height: 16px; transform: rotate(180deg); }
.plan-note { color: var(--ink-2); font-size: 13px; text-align: center; }
.plan-pro { background: var(--blue); color: #fff; box-shadow: 0 20px 32px -20px #0a3fa066; }
.plan-pro .plan-icon { background: #fff; }
.plan-pro .price, .plan-pro .price b, .plan-pro .plan-desc, .plan-pro .plan-note { color: #fff; }
.plan-pro ul { border-top-color: #ffffff59; }
.plan-pro li .i { background: #fff; color: var(--blue); }
.plan-pro .plan-btn { background: #fff; color: var(--blue-deep); }

/* Contoh dasbor */
.stars { display: block; width: 92px; height: 17px; }
.proof { margin: 16px var(--gutter) 0; padding: 24px 20px 20px; border-radius: 28px; background: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.biz { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 24px; background: var(--pale); }
.biz-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.biz-icon .i { width: 22px; height: 22px; }
.biz div { display: grid; min-width: 0; }
.biz b { font-size: 15px; font-stretch: 112%; overflow-wrap: anywhere; }
.biz div span { color: var(--ink-2); font-size: 13px; }
.score { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border-radius: 24px; background: var(--blue); color: #fff; }
.score b { font-size: 56px; font-weight: 800; font-stretch: 112%; line-height: 1; letter-spacing: -.03em; }
.score > div { min-width: 0; }
.score .stars { width: min(108px, 100%); height: 20px; margin-bottom: 4px; color: var(--yellow); }
.score span { font-size: 13px; font-weight: 500; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tile { display: grid; align-content: start; gap: 2px; padding: 16px; border-radius: 24px; }
.tile-pale { background: var(--pale); }
.tile-yellow { background: var(--yellow); }
.tile dd { margin: 0; font-size: 32px; font-weight: 800; font-stretch: 112%; line-height: 1.1; letter-spacing: -.02em; }
.tile dt { font-size: 13px; line-height: 1.3; }
.meters { display: grid; gap: 10px; padding: 8px 4px; }
.meters h3 { margin-bottom: 2px; }
.meter { display: grid; grid-template-columns: 32px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 13px; }
.meter span { font-weight: 600; }
.meter b { text-align: right; }
.meter i { position: relative; display: block; height: 10px; border-radius: 99px; background: var(--pale); overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--blue); }
.meter-nfc::after { width: 66%; }
.meter-qr::after { width: 34%; }
.proof.in .meter i::after { animation: grow .9s var(--ease) backwards; }
@keyframes grow { from { width: 0; } }
.visits { display: grid; gap: 8px; padding: 8px 4px; }
.visit-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.visit-days button { min-height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--pale); color: var(--ink); font-size: 13px; font-weight: 600; transition: background .2s, color .2s; }
.visit-days button[aria-pressed='true'] { background: var(--blue); color: #fff; }
.visit-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 72px; }
.visit-bars i { display: block; border-radius: 4px 4px 0 0; background: #bcd4fb; transition: height .35s var(--ease), background-color .2s; }
.visit-bars i.hot { background: var(--red); }
.visit-bars i:nth-child(1) { height: 8px; }
.visit-bars i:nth-child(2) { height: 14px; }
.visit-bars i:nth-child(3) { height: 30px; }
.visit-bars i:nth-child(4) { height: 26px; }
.visit-bars i:nth-child(5) { height: 12px; }
.visit-bars i:nth-child(6) { height: 10px; }
.visit-bars i:nth-child(7) { height: 16px; }
.visit-bars i:nth-child(8) { height: 30px; }
.visit-bars i:nth-child(9) { height: 52px; }
.visit-bars i:nth-child(10) { height: 60px; }
.visit-bars i:nth-child(11) { height: 48px; }
.visit-bars i:nth-child(12) { height: 24px; }
.visit-axis { display: flex; justify-content: space-between; margin-top: -4px; color: var(--ink-2); font-size: 12px; }
.visit-note { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.visit-note i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--red); }
.insights-box { padding: 16px; border-radius: 24px; background: var(--pale); }
.insights-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.insights-nav { display: flex; gap: 8px; flex: none; }
.insights-nav button { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .2s var(--ease); }
.insights-nav button:active { transform: scale(.92); }
#insight-next .i { transform: rotate(180deg); }
.insights { margin-top: 8px; overflow: hidden; }
.insights-track { --i: 0; display: flex; gap: 16px; transform: translateX(calc(var(--i) * (-100% - 16px))); transition: transform .42s var(--ease); }
.insights article { flex: 0 0 100%; min-width: 0; }
.insights p { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.go.go { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Aktivasi */
.activate { margin: 16px var(--gutter) 0; padding: 24px 20px 20px; border-radius: 28px; background: #fff; }
.activate p { margin-top: 4px; color: var(--ink-2); }
#code-form { display: grid; gap: 12px; margin-top: 16px; }
#code-form input { width: 100%; min-height: 56px; padding: 0 20px; border: 1.5px solid #8892ad; border-radius: 99px; background: #fff; font-size: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; caret-color: var(--blue); }
#code-form input::placeholder { color: var(--ink-2); font-weight: 400; letter-spacing: 0; text-transform: none; }
#code-form input:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.go { position: relative; width: 100%; min-height: 64px; padding: 0 64px; border: 0; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; font-stretch: 112%; white-space: nowrap; }
.go span { position: absolute; left: 6px; top: 6px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue); transition: transform .22s var(--ease); }
.go .i { transform: rotate(180deg); }
.go:active span { transform: translateX(6px); }

.join { margin: 16px var(--gutter) 0; padding: 24px 20px 20px; border-radius: 28px; color: #fff; background: linear-gradient(172deg, var(--blue), var(--blue-deep)); }
.join p { margin-top: 6px; }
.join-btns { display: grid; margin-top: 16px; }
.join-btns > * { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 8px; border: 1.5px solid #fff; border-radius: 99px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.join-btns .join-main { border-color: var(--yellow); background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700; }

/* Pop up daftar reseller */
html:has(.dlg[open]) { overflow: hidden; }
.dlg { width: min(100% - 32px, 440px); max-height: calc(100dvh - 32px); margin: max(16px, 6vh) auto auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -20px #06205a80; overflow: hidden auto; overscroll-behavior: contain; }
.dlg[open] { animation: dlg-in .32s var(--ease); }
.dlg::backdrop { background: #0b1a3dad; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-body { display: grid; gap: 12px; padding: 20px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 14px; border-radius: 20px; background: var(--pale); color: var(--ink); text-decoration: none; transition: background .2s; }
.choice-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.choice-yellow { background: var(--yellow); color: var(--ink); }
.choice-text { display: grid; flex: 1; min-width: 0; }
.choice-text b { font-size: 16px; font-stretch: 112%; }
.choice-text small { color: var(--ink-2); font-size: 13px; }
.choice-go { transform: rotate(180deg); color: var(--ink-2); }
.choice:active { background: #e2e9f7; }
.dlg form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
.dlg .go { padding: 0 16px 0 66px; font-size: 14px; font-stretch: 100%; white-space: normal; line-height: 1.2; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg-close { width: 44px; height: 44px; flex: none; margin: -6px -6px 0 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--pale); color: var(--ink); }
.dlg-close .i { transform: rotate(45deg); }
.dlg-lede { margin-top: -6px; color: var(--ink-2); font-size: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1.5px solid #8892ad; border-radius: 16px; background: #fff; font-size: 16px; font-weight: 400; caret-color: var(--blue); resize: none; }
.field textarea { min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.field [aria-invalid='true'] { border-color: #c5221f; }
.dlg-msg { color: #c5221f; font-size: 14px; font-weight: 600; }
.dlg-msg:empty { display: none; }
.join :focus-visible { outline-color: #fff; }
.foot { padding: 20px var(--gutter) max(32px, env(safe-area-inset-bottom)); color: var(--ink-2); font-size: 13px; text-align: center; }

@media (hover: hover) {
  .pill-link:hover { background: var(--yellow); color: var(--ink); }
  .action:hover span { transform: translateY(-3px); }
  .plan-btn:hover, .go:hover { filter: brightness(1.1); }
  .join-btns > *:hover { background: #fff; border-color: #fff; color: var(--blue-deep); }
  .dlg-close:hover { background: var(--ink); color: #fff; }
  .choice:hover { background: #e2e9f7; }
  .visit-days button:hover { background: #dce6f8; }
  .visit-days button[aria-pressed='true']:hover { background: var(--blue); }
  .insights-nav button:hover { background: var(--ink); color: #fff; }
  .go:hover span { transform: translateX(6px); }
}

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