/* DompetZ landing — Neu-brutalism warm, token sama dengan NbTokens di app. */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Phosphor"; src: url("fonts/Phosphor-Bold.woff2") format("woff2"); font-display: block; }

/* ---------- Token ---------- */
:root {
  --bg: #FFF3DF;
  --surface: #FFFAF1;
  --raised: #FFE7C2;
  --ink: #1F1A15;
  --muted: #6B5E52;
  --on: #1F1A15;
  --expense: #FF5A36;
  --income: #5FC96B;
  --transfer: #FFC23A;
  --debt: #B48CF2;
  --accent: #FF9F68;
  --sky: #7CC4F5;
  --tosca: #3FB8A8;
  --lemon: #F4E04D;
  --expense-t: #B83A1C;
  --income-t: #22703A;
  --transfer-t: #865800;
  --debt-t: #6E43B8;
  --bezel: #1F1A15;
  --dot: rgba(31, 26, 21, .13);

  --b: 3px;          /* border halaman */
  --b-app: 2px;      /* border di dalam mockup */
  --sh: 6px;         /* offset bayangan keras */
  --r: 14px;
  --press: 90ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17130F; --surface: #241E18; --raised: #302820; --ink: #F6E7CF; --muted: #BFAE98; --on: #17130F;
    --expense: #FF6E4D; --income: #6FDB7B; --transfer: #FFCB4F; --debt: #C4A2FF; --accent: #FFAE7A; --sky: #8FD0FF;
    --expense-t: #FF6E4D; --income-t: #6FDB7B; --transfer-t: #FFCB4F; --debt-t: #C4A2FF;
    --bezel: #0C0A08; --dot: rgba(246, 231, 207, .07);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17130F; --surface: #241E18; --raised: #302820; --ink: #F6E7CF; --muted: #BFAE98; --on: #17130F;
  --expense: #FF6E4D; --income: #6FDB7B; --transfer: #FFCB4F; --debt: #C4A2FF; --accent: #FFAE7A; --sky: #8FD0FF;
  --expense-t: #FF6E4D; --income-t: #6FDB7B; --transfer-t: #FFCB4F; --debt-t: #C4A2FF;
  --bezel: #0C0A08; --dot: rgba(246, 231, 207, .07);
  color-scheme: dark;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px);
  background-size: 22px 22px;
  background-attachment: fixed;
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  overflow-x: clip;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}
main { overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
code { font: 800 .92em var(--body); background: var(--raised); border: 2px solid var(--ink); border-radius: 6px; padding: 0 .3em; }
.muted { color: var(--muted); }
.ph { font-family: "Phosphor"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; -webkit-font-smoothing: antialiased; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip:focus { left: 8px; background: var(--surface); border: var(--b) solid var(--ink); padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px dashed var(--accent); outline-offset: 3px; }

/* Primitive NbBox: border tebal + bayangan tanpa blur. */
.nbx {
  background: var(--c, var(--surface));
  border: var(--b) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh) var(--sh) 0 var(--ink);
}

/* ---------- Tombol ---------- */
.nb-btn {
  --bg-btn: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px;
  font: 800 16px/1.2 var(--body);
  color: var(--on);
  text-decoration: none;
  background: var(--bg-btn);
  border: var(--b) solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: translate var(--press) ease-out, box-shadow var(--press) ease-out, background-color .3s;
  white-space: nowrap;
}
.nb-btn .ph { font-size: 1.2em; }
.nb-btn:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--ink); }
.nb-btn:active { translate: 4px 4px; box-shadow: 0 0 0 var(--ink); }
.nb-btn--secondary { --bg-btn: var(--surface); color: var(--ink); }
.nb-btn--dense { padding: 7px 12px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.nb-btn--big { padding: 16px 26px; font-size: 18px; box-shadow: var(--sh) var(--sh) 0 var(--ink); }
.nb-btn--big:hover { box-shadow: 8px 8px 0 var(--ink); }
.nb-btn--big:active { translate: var(--sh) var(--sh); }
.nb-btn--ink { --bg-btn: var(--ink); color: var(--bg); border-color: var(--ink); }
.nb-btn--ink span { display: flex; flex-direction: column; text-align: left; line-height: 1.1; font-family: var(--display); font-size: 24px; }
.nb-btn--ink small { font: 600 12px var(--body); opacity: .8; }

.nb-icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  font-size: 20px; cursor: pointer; padding: 0;
  transition: translate var(--press) ease-out, box-shadow var(--press) ease-out;
}
.nb-icon:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--ink); }
.nb-icon:active { translate: 3px 3px; box-shadow: 0 0 0 var(--ink); }
.theme-toggle .ph { transition: rotate .6s var(--spring); }
.theme-toggle:hover .ph { rotate: 90deg; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--surface); box-shadow: 3px 3px 0 var(--ink);
  font: 800 13px/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Progress & Nav ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 5px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--expense); transform-origin: 0 50%; scale: var(--p, 0) 1; border-bottom: 2px solid var(--ink); }

.nav { position: sticky; top: 0; z-index: 50; padding: 12px 20px 0; }
.nav__inner {
  max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 12px 0 16px;
  display: flex; align-items: center; gap: 16px;
  border: var(--b) solid transparent; border-radius: 18px;
  transition: background-color .35s, border-color .35s, box-shadow .35s var(--ease-out), translate .35s var(--ease-out);
}
.nav.is-scrolled .nav__inner { background: var(--surface); border-color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark {
  width: 38px; height: 38px; display: block; object-fit: contain;
  transition: rotate .5s var(--spring);
}
.logo:hover .logo__mark { rotate: -12deg; }
.logo__word { font: 700 26px/1 var(--display); }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { font-weight: 800; text-decoration: none; padding: 8px 14px; border-radius: 10px; border: 2.5px solid transparent; transition: border-color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-on { border-color: var(--ink); background: var(--raised); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }
.mobile-menu {
  display: grid; gap: 6px; max-width: 1200px; margin: 10px auto 0; padding: 14px;
  background: var(--surface); border: var(--b) solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink);
  transform-origin: top; animation: drop .35s var(--spring);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.nb-btn) { font: 700 22px var(--display); text-decoration: none; padding: 8px 6px; border-bottom: 2px dashed var(--muted); }
.mobile-menu .nb-btn { margin-top: 8px; }
@keyframes drop { from { opacity: 0; scale: 1 .7; } }

/* ---------- Reveal (muncul seperti NbBox "lepas ditekan") ---------- */
.reveal { opacity: 0; translate: 0 34px; transition: opacity .7s var(--ease-out), translate .8s var(--spring), box-shadow .45s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.nbx, .reveal.card { box-shadow: 0 0 0 var(--ink); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.reveal.nbx.is-in, .reveal.card.is-in { box-shadow: var(--sh) var(--sh) 0 var(--ink); transition-delay: var(--d, 0ms), var(--d, 0ms), calc(var(--d, 0ms) + 350ms); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px 72px;
  min-height: calc(100svh - 76px);
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
}
.hero__title { font-size: clamp(46px, 6.6vw, 96px); margin: 22px 0 22px; }
.hl {
  display: inline-block; padding: 0 .16em .04em; margin: .06em 0;
  border: var(--b) solid var(--ink); border-radius: 18px; box-shadow: var(--sh) var(--sh) 0 var(--ink);
  color: var(--on);
}
.hl--expense { background: var(--expense); rotate: -2.5deg; }
.hl--transfer { background: var(--transfer); rotate: 1.5deg; }
.is-in .hl { animation: stamp .75s var(--spring) both; }
.is-in .hl--transfer { animation-delay: .18s; }
@keyframes stamp { 0% { scale: 1.5; opacity: 0; box-shadow: 0 0 0 var(--ink); } 60% { opacity: 1; } 100% { scale: 1; } }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 33em; color: var(--muted); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin: 30px 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Form tester beta ---------- */
.beta-form { display: grid; gap: 12px; width: min(100%, 560px); margin: 30px 0 32px; }
.beta-form__row { display: flex; gap: 14px; }
.beta-form__input {
  flex: 1; min-width: 0; padding: 14px 18px;
  font: 700 18px/1.2 var(--body); color: var(--ink);
  background: var(--surface); border: var(--b) solid var(--ink); border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: box-shadow var(--press) ease-out, translate var(--press) ease-out;
}
.beta-form__input::placeholder { color: var(--muted); opacity: 1; }
.beta-form__input:focus { outline: none; translate: -2px -2px; box-shadow: 6px 6px 0 var(--accent), 6px 6px 0 2px var(--ink); }
.beta-form__msg { font-size: 15px; font-weight: 700; color: var(--muted); }
.beta-form.is-error .beta-form__msg { color: var(--expense-t); }
.beta-form.is-error .beta-form__input { box-shadow: 4px 4px 0 var(--expense); }
.beta-form.is-done .beta-form__row { display: none; }
.beta-form.is-done .beta-form__msg {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-size: 17px; font-weight: 800; color: var(--on); background: var(--income);
  border: var(--b) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  animation: stamp .6s var(--spring) both;
}
.beta-form.is-done .beta-form__msg::before { content: "\e182"; font: 22px "Phosphor"; }
.beta-steps { list-style: none; margin: 4px 0 calc(var(--peek, 0) * 11px); padding: 0; display: grid; gap: 10px; text-align: left; animation: drop .45s var(--spring) both; }
.beta-steps li {
  grid-column: 1; position: relative; z-index: 20;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  color: var(--ink); background: var(--surface); border: var(--b) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  transform-origin: 50% 100%;
  transition: translate .5s var(--spring), scale .5s var(--spring), opacity .3s, box-shadow .3s, padding .3s;
}
/* Kartu berikutnya: tepinya mengintip di bawah kartu aktif, isinya tersembunyi. */
.beta-steps li.is-next { z-index: calc(19 - var(--depth)); translate: 0 calc(var(--depth) * 11px); scale: calc(1 - var(--depth) * .05); box-shadow: none; background: var(--raised); }
.beta-steps li.is-next > * { visibility: hidden; }
.beta-steps li.is-current { animation: stamp .5s var(--spring); }
.beta-steps li.is-done { padding-block: 6px; box-shadow: 2px 2px 0 var(--ink); opacity: .85; }
.beta-steps li.is-done small { display: none; }
.beta-steps li.is-done .beta-steps__num { background: var(--income); font-size: 15px; }
.beta-steps li.is-done .nb-btn { --bg-btn: var(--surface); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.beta-steps__num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font: 700 18px var(--display); color: var(--on); background: var(--transfer); border: 2.5px solid var(--ink); border-radius: 50%; }
.beta-steps__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.beta-steps__text b { font-weight: 800; font-size: 16px; }
.beta-steps__text small { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.beta-steps .nb-btn { flex: none; }

.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; color: var(--muted); }
.hero__facts b { font: 700 24px var(--display); color: var(--ink); }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 600px; text-align: left; }
.hero__stage::before {
  content: ""; position: absolute; width: min(470px, 92%); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); border: var(--b) solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { scale: 1.05; rotate: 8deg; border-radius: 46% 54% 50% 50%; } }
.sticker { position: absolute; z-index: 3; }
.sticker > * { animation: bob 5s ease-in-out infinite; }
.sticker--a { top: 9%; left: -2%; }
.sticker--b { top: 26%; right: -6%; } .sticker--b > * { animation-delay: -1.3s; }
.sticker--c { bottom: 18%; left: 2%; } .sticker--c > * { animation-delay: -2.1s; animation-duration: 6s; }
.sticker--d { top: 3%; right: 12%; } .sticker--d > * { animation-delay: -.7s; animation-duration: 4.2s; }
.sticker--e { bottom: 24%; right: -8%; } .sticker--e > * { animation-delay: -3s; }
.sticker--f { top: 52%; left: -6%; } .sticker--f > * { animation-delay: -1.8s; animation-duration: 5.6s; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -14px; rotate: 3deg; } }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  font: 800 16px/1 var(--body); color: var(--on); white-space: nowrap;
  border: var(--b) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  font-feature-settings: "tnum";
}
.chip .ph { font-size: 19px; }
.chip--expense { background: var(--expense); }
.chip--income { background: var(--income); }
.chip--debt { background: var(--debt); }
.chip--sky { background: var(--sky); }
.key {
  display: grid; place-items: center; width: 62px; height: 62px;
  font: 700 32px var(--display); background: var(--surface); color: var(--ink);
  border: var(--b) solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink);
}
.coin {
  display: grid; place-items: center; width: 54px; height: 54px; font-size: 28px;
  background: var(--transfer); color: var(--on); border: var(--b) solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 var(--ink);
}

/* ---------- Phone mockup ---------- */
.phone {
  --ps: 1;
  position: relative; z-index: 2;
  width: 340px; height: 700px; padding: 10px;
  background: var(--bezel);
  border: var(--b) solid var(--ink); border-radius: 46px;
  box-shadow: 10px 10px 0 var(--ink);
  scale: var(--ps);
  transform-origin: 50% 0;
  margin-bottom: calc((var(--ps) - 1) * 700px);
  font-size: 12px; line-height: 1.3;
}
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 82px; height: 20px; margin-left: -41px; background: var(--bezel); border-radius: 12px; z-index: 9; }
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--bg); border-radius: 36px; border: 2px solid var(--ink);
  --b: var(--b-app); --sh: 3px; --r: 11px;
}
.statusbar { height: 34px; padding: 10px 24px 0 26px; display: flex; justify-content: space-between; font: 800 12px var(--body); position: relative; z-index: 8; }
.appbar { height: 48px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 20px; border-bottom: 2px solid transparent; transition: background-color .45s var(--ease-out); }
.appbar__title { font: 700 20px var(--display); }
.appbar .push { margin-left: auto; }
.appbar--fill { background: var(--rec-c, var(--expense)); color: var(--on); border-bottom-color: var(--ink); margin-top: -34px; padding-top: 34px; height: 82px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; text-align: center; font: 600 12.5px var(--body); color: var(--muted); border-bottom: 2px solid var(--ink); }
.tabs span { padding: 8px 0 9px; }
.tabs .is-on { color: var(--ink); font-weight: 800; box-shadow: inset 0 -3px 0 var(--ink); margin: 0 12%; white-space: nowrap; }
.amount { font: 700 27px/1.05 var(--display); font-feature-settings: "tnum"; letter-spacing: -.01em; }

.h-body, .s-pad { padding: 12px 14px; display: grid; gap: 11px; }
.networth { --c: var(--accent); padding: 12px 14px; color: var(--on); display: grid; gap: 4px; }
.networth small { font-weight: 800; font-size: 11px; }
.networth em { font-style: normal; font-size: 10px; font-weight: 600; }
.networth--sm .amount { font-size: 24px; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { height: 70px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; color: var(--on); transition: translate var(--press), box-shadow var(--press); }
.tiles2 .tile { height: 78px; }
.tile span { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 11px; }
.tile span .ph { font-size: 14px; }
.tile b { font-size: 10.5px; font-weight: 800; font-feature-settings: "tnum"; white-space: nowrap; }
.tiles2 .tile b { font-size: 12px; }
.tile.is-pressed { translate: 3px 3px; box-shadow: 0 0 0 var(--ink); }
.tile.is-bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { scale: 1.08; } }
.h-feed { position: relative; height: 112px; overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.feed-row {
  position: absolute; left: 4px; right: 7px; height: 48px; padding: 0 10px; display: flex; align-items: center; gap: 9px;
  translate: 0 var(--y, 0); transition: translate .6s var(--spring), opacity .4s;
}
.feed-row.is-new { animation: feedIn .6s var(--spring); }
.feed-row.is-out { opacity: 0; }
@keyframes feedIn { from { translate: 0 -60px; opacity: 0; scale: .9; } }
.feed-row > span:nth-child(2) { display: grid; flex: 1; font-weight: 800; font-size: 12px; }
.feed-row small { color: var(--muted); font-weight: 600; font-size: 10px; }
.feed-row b { font-weight: 800; font-size: 12px; font-feature-settings: "tnum"; }
.t-expense { color: var(--expense-t); } .t-income { color: var(--income-t); } .t-transfer { color: var(--transfer-t); } .t-debt { color: var(--debt-t); }
.badge {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center; font-size: 15px;
  background: var(--c); color: var(--on); border: 2px solid var(--ink); border-radius: 50%;
  transition: background-color .4s;
}
.h-chips { display: flex; gap: 10px; }
.chipbtn { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-weight: 800; font-size: 12px; color: var(--on); border-radius: 9px; }
.mini-struct { padding: 10px 12px; display: grid; gap: 8px; margin-right: 60px; }
.mini-struct > b { font: 700 13px var(--display); }
.mini-struct > div { display: flex; align-items: center; gap: 12px; }
.mini-donut {
  flex: none; width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center;
  background: conic-gradient(#C9A27E 0 68%, var(--ink) 0 68.6%, #FF5A36 0 81%, var(--ink) 0 81.6%, #B48CF2 0 89%, var(--ink) 0 89.6%, #3FB8A8 0 95%, var(--ink) 0 95.6%, #F4E04D 0 98%, var(--ink) 0 98.6%, #7CC4F5 0);
  animation: spin 24s linear infinite;
}
.mini-donut span { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 9.5px; animation: spin 24s linear infinite reverse; }
.mini-struct ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; flex: 1; font-weight: 800; font-size: 10.5px; }
.mini-struct li { display: flex; align-items: center; gap: 6px; }
.mini-struct li i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--s); }
.mini-struct li span { margin-left: auto; color: var(--muted); }
.fab {
  position: absolute; right: 16px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; color: var(--on);
  background: var(--accent); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  animation: fab 3.2s var(--ease-out) infinite;
}
@keyframes fab { 0%, 70%, 100% { translate: 0 0; box-shadow: 3px 3px 0 var(--ink); } 76% { translate: 3px 3px; box-shadow: 0 0 0 var(--ink); } 84% { translate: 0 0; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; background: var(--ink); color: var(--bg);
  border-block: var(--b) solid var(--ink); rotate: -1.6deg; margin: 10px -20px 40px; padding: 16px 0;
  box-shadow: 0 8px 0 var(--expense);
}
.marquee__track { display: flex; width: max-content; align-items: center; gap: 28px; will-change: transform; }
.marquee__track span { font: 700 clamp(22px, 2.8vw, 34px)/1 var(--display); white-space: nowrap; }
.marquee__track .ph { color: var(--transfer); font-size: 26px; }

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin: 0 auto 48px; padding: 0 24px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.section-head h2 { font-size: clamp(36px, 5vw, 64px); }
.section-head p { font-size: 18px; color: var(--muted); font-weight: 600; }

/* ---------- Story ---------- */
.story { padding: 80px 0 40px; }
.story__grid { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story__sticky {
  position: sticky; top: 90px; height: calc(100svh - 110px); min-height: 520px;
  display: grid; place-items: center; align-content: center;
  --scene-c: var(--expense);
}
.story__sticky::before {
  content: ""; position: absolute; width: min(440px, 96%); aspect-ratio: 1; top: 50%; left: 50%; translate: -50% -50%;
  background: var(--scene-c); border: var(--b) solid var(--ink); border-radius: 40px; box-shadow: 10px 10px 0 var(--ink);
  rotate: var(--scene-r, -6deg);
  transition: background-color .7s var(--ease-out), rotate 1s var(--spring), border-radius 1s var(--spring);
}
.story__dots { position: absolute; left: 0; top: 50%; translate: 0 -50%; display: grid; gap: 10px; z-index: 3; }
.story__dots span { width: 12px; height: 12px; border: 2.5px solid var(--ink); border-radius: 99px; background: var(--surface); transition: height .4s var(--spring), background-color .3s; }
.story__dots .is-on { height: 34px; background: var(--ink); }
.phone--story.is-bump .phone__screen { animation: screenBump .55s var(--spring); }
@keyframes screenBump { 30% { scale: .975; } }

.story__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 0; opacity: .28; transition: opacity .5s var(--ease-out), translate .6s var(--spring); translate: 0 18px; }
.step.is-on { opacity: 1; translate: 0 0; }
.step__num {
  align-self: flex-start; font: 700 22px/1 var(--display); padding: 10px 14px;
  background: var(--c); color: var(--on); border: var(--b) solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  transition: rotate .6s var(--spring);
}
.step.is-on .step__num { rotate: -6deg; }
.step h3 { font-size: clamp(32px, 3.6vw, 48px); }
.step p { font-size: 18px; color: var(--muted); font-weight: 600; max-width: 30em; }
.step p b { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.ticks li::before {
  content: "\e182"; font-family: "Phosphor"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: 15px;
  background: var(--income); color: var(--on); border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink);
}

/* Scene switching */
.scene { position: absolute; inset: 34px 0 0; opacity: 0; translate: 0 var(--off, 40px); pointer-events: none; transition: opacity .45s var(--ease-out), translate .65s var(--spring); }
.scene.is-active { opacity: 1; translate: 0 0; }
.scene.no-anim { transition: none; }
.scene--record { inset: 34px 0 0; }

/* Scene 0: Catat */
.seg { --c: var(--rec-c, var(--expense)); position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; text-align: center; font: 800 12px var(--body); color: var(--on); transition: background-color .45s; }
.seg span:not(.seg__thumb) { position: relative; z-index: 1; padding: 8px 0; }
.seg__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 8px;
  translate: calc(var(--seg, 0) * 100%) 0; transition: translate .45s var(--spring);
}
.seg span:nth-child(2) { color: var(--ink); }
.seg[data-mode="1"] span:nth-child(2), .seg[data-mode="2"] span:nth-child(2) { color: var(--on); }
.seg[data-mode="1"] span:nth-child(3), .seg[data-mode="2"] span:nth-child(4) { color: var(--ink); }
.amountfield { height: 82px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.amountfield small { font-weight: 800; color: var(--muted); font-size: 12px; font-feature-settings: "tnum"; min-height: 16px; }
.amountfield > div { display: flex; align-items: baseline; gap: 4px; }
.amountfield__cur { font: 700 18px var(--display); color: var(--muted); }
.amountfield b { font: 700 36px/1 var(--display); font-feature-settings: "tnum"; }
.amountfield b.is-pop { animation: pop .35s var(--spring); }
@keyframes pop { 40% { scale: 1.12; } }
.pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker { display: flex; align-items: center; gap: 8px; padding: 8px; font-weight: 800; font-size: 12px; }
.picker small { display: block; font-size: 10px; color: var(--muted); }
.keypad {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 10px 14px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--raised); border-top: 2px solid var(--ink);
}
.k {
  height: 44px; display: grid; place-items: center; font: 700 19px var(--display);
  background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink);
  transition: translate 80ms ease-out, box-shadow 80ms ease-out;
}
.k--op { background: var(--raised); }
.k--save { grid-column: span 3; display: flex; gap: 6px; justify-content: center; font: 800 14px var(--body); background: var(--rec-c, var(--expense)); color: var(--on); transition: translate 80ms, box-shadow 80ms, background-color .45s; }
.k.is-down { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); }
.tap {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 22%, transparent); border: 2px solid var(--ink);
  translate: var(--tx, 160px) var(--ty, 520px); opacity: 0;
  transition: translate .26s var(--ease-out), opacity .3s, scale .12s;
  z-index: 6; pointer-events: none;
}
.tap.is-on { opacity: 1; }
.tap.is-press { scale: .7; }
.toast {
  position: absolute; left: 50%; top: 40%; translate: -50% 20px; scale: .8; opacity: 0;
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; font: 800 14px var(--body);
  background: var(--ink); color: var(--bg); border-radius: 12px; box-shadow: 4px 4px 0 var(--income);
  transition: all .4s var(--spring); z-index: 7;
}
.toast .ph { color: var(--income); font-size: 18px; }
.toast.is-on { opacity: 1; translate: -50% 0; scale: 1; }

/* Scene 1: Akun */
.xfer { --c: var(--transfer); display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 800; font-size: 12.5px; color: var(--on); transition: scale .3s var(--spring); }
.xfer b { margin-left: auto; font-feature-settings: "tnum"; }
.xfer .ph { font-size: 17px; }
.xfer.is-pop { animation: pop .45s var(--spring); }
.coin--fly { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 18px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; opacity: 0; z-index: 5; }
.coin--fly.is-go { animation: fly 1s var(--ease-out) var(--delay, 0ms) both; }
@keyframes fly {
  0% { translate: var(--x0) var(--y0); scale: .3; opacity: 0; }
  12% { opacity: 1; scale: 1; }
  50% { translate: var(--xm) var(--ym); scale: 1.25; animation-timing-function: ease-in; }
  88% { opacity: 1; scale: .9; }
  100% { translate: var(--x1) var(--y1); scale: .4; opacity: 0; }
}

/* Scene 2: Laporan */
.summary { padding: 10px 14px; display: grid; gap: 6px; font-weight: 800; font-size: 12px; }
.summary p { display: flex; justify-content: space-between; }
.summary b { font-feature-settings: "tnum"; }
.summary__total { border-top: 2px solid var(--ink); padding-top: 6px; }
.donutcard { position: relative; padding: 12px 14px 14px; display: grid; justify-items: center; gap: 10px; }
.donut { width: 176px; height: 176px; rotate: -90deg; overflow: visible; }
.donut__track { fill: none; stroke: var(--ink); stroke-width: 26; }
.donut circle.seg-arc { fill: none; stroke-width: 22; stroke-dasharray: 0 400; transition: stroke-dasharray .9s var(--ease-out), stroke-width .35s var(--spring); }
.donut circle.seg-arc.is-hot { stroke-width: 30; }
.donut__center { position: absolute; top: 12px; left: 50%; width: 176px; height: 176px; margin-left: -88px; display: grid; place-content: center; text-align: center; pointer-events: none; }
.donut__center::before { content: ""; position: absolute; inset: 49px; background: var(--surface); border-radius: 50%; z-index: -1; }
.donut__center small { font-weight: 800; font-size: 10px; color: var(--muted); max-width: 70px; line-height: 1.1; }
.donut__center b { font: 800 18px var(--body); font-feature-settings: "tnum"; }
.donut__center .is-swap { animation: pop .35s var(--spring); }
.legend { list-style: none; padding: 0; margin: 0; width: 100%; display: grid; gap: 4px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 2px solid transparent; border-radius: 9px; font-weight: 800; font-size: 11.5px; opacity: 0; translate: -14px 0; transition: opacity .4s, translate .5s var(--spring), background-color .25s, border-color .25s; }
.legend li.is-in { opacity: 1; translate: 0 0; }
.legend li.is-hot { background: var(--raised); border-color: var(--ink); }
.legend i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: var(--s); flex: none; }
.legend span { margin-left: auto; color: var(--muted); font-feature-settings: "tnum"; }

/* Scene 3: Hutang */
.total-debt { --c: var(--debt); padding: 14px; display: flex; justify-content: space-between; align-items: center; color: var(--on); font-weight: 800; font-size: 12px; }
.total-debt b { font: 700 20px var(--display); font-feature-settings: "tnum"; }
.debtcard { position: relative; padding: 14px; display: grid; gap: 8px; font-size: 12px; overflow: hidden; }
.debtcard > b { font-size: 15px; font-weight: 800; }
.bar { height: 14px; border: 2px solid var(--ink); border-radius: 99px; background: var(--raised); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w, 0%); background: var(--debt); border-right: 2px solid var(--ink); border-radius: 99px; transition: width .8s var(--spring); }
.debtcard p { display: flex; justify-content: space-between; font-weight: 800; font-feature-settings: "tnum"; }
.debtcard p small { color: var(--muted); }
.stamp {
  position: absolute; right: 14px; top: 10px; padding: 4px 12px; font: 700 22px var(--display); letter-spacing: .06em;
  color: var(--income-t); border: 3px solid var(--income-t); border-radius: 10px; background: color-mix(in srgb, var(--income) 18%, var(--surface));
  rotate: -12deg; scale: 2.4; opacity: 0; transition: scale .45s var(--spring), opacity .2s;
}
.stamp.is-on { scale: 1; opacity: 1; }
.paylog { display: grid; gap: 8px; }
.payrow { display: flex; align-items: center; gap: 9px; padding: 8px 10px; font-weight: 800; font-size: 12px; animation: feedIn .55s var(--spring); }
.payrow b { margin-left: auto; font-feature-settings: "tnum"; }
.payrow.is-out { opacity: 0; transition: opacity .3s; }

/* Scene 4: Sync */
.cloud { display: flex; align-items: center; gap: 12px; padding: 12px; position: relative; }
.cloud__icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; font-size: 24px;
  background: var(--sky); color: var(--on); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink);
}
.cloud.is-busy .cloud__icon { animation: hop .9s var(--ease-out) infinite; }
.cloud.is-done .cloud__icon { background: var(--income); }
@keyframes hop { 30% { translate: 0 -5px; } 60% { translate: 0 0; } }
.cloud div { display: grid; font-size: 13px; }
.cloud small { color: var(--muted); font-weight: 600; font-size: 11px; }
.synclist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.synclist li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; font-weight: 800; font-size: 12px; transition: translate .3s var(--spring); }
.synclist .dot {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--accent);
  display: grid; place-items: center; font-style: normal; transition: background-color .3s, scale .3s var(--spring);
}
.synclist .dot::after { content: "\e182"; font-family: "Phosphor"; font-size: 10px; color: var(--on); scale: 0; transition: scale .35s var(--spring); }
.synclist li.is-sending .dot { animation: ping .6s ease-out infinite; background: var(--transfer); }
.synclist li.is-sending { translate: 3px 0; }
.synclist li.is-done .dot { background: var(--income); }
.synclist li.is-done .dot::after { scale: 1; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--transfer) 80%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.devices { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mini-dev { display: grid; justify-items: center; gap: 2px; font-weight: 800; font-size: 11px; }
.mini-dev .ph { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 2px 2px 0 var(--ink); }
.mini-wire { flex: 1; height: 6px; border: 2px solid var(--ink); border-radius: 9px; background: var(--raised); position: relative; overflow: hidden; margin-bottom: 16px; }
.mini-wire i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--sky); animation: wire 1.4s linear infinite; }
@keyframes wire { from { translate: -100% 0; } to { translate: 340% 0; } }

.backup-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 12px; }
.backup-row > span:nth-child(2) { display: grid; flex: 1; }
.backup-row small { color: var(--muted); font-weight: 600; font-size: 10.5px; }
.mini-btn { padding: 4px 10px; font-weight: 800; background: var(--accent); color: var(--on); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }

/* Scene 5: Kunci */
.lock { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 10px; padding-bottom: 40px; transition: scale .5s var(--ease-out), opacity .4s; }
.lock__icon { --c: var(--accent); width: 72px; height: 72px; display: grid; place-items: center; font-size: 34px; color: var(--on); border-radius: 20px; margin-bottom: 8px; }
.lock > b { font: 700 22px var(--display); }
.lock > small { font-weight: 600; color: var(--muted); font-size: 12px; }
.pin { display: flex; gap: 14px; margin: 10px 0 26px; }
.pin i { width: 18px; height: 18px; border: 2.5px solid var(--ink); border-radius: 50%; background: transparent; transition: background-color .15s, scale .3s var(--spring); }
.pin i.is-on { background: var(--ink); scale: 1.15; }
.pin.is-ok i { background: var(--income); }
.finger { position: relative; width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--surface); }
.finger::before, .finger::after { content: ""; position: absolute; inset: -3px; border: 2.5px solid var(--ink); border-radius: 50%; opacity: 0; }
.finger.is-scan { background: var(--sky); color: var(--on); }
.finger.is-scan::before { animation: ring 1s ease-out infinite; }
.finger.is-scan::after { animation: ring 1s ease-out .5s infinite; }
@keyframes ring { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 1.7; } }
.lock.is-open { scale: .85; opacity: 0; }
.shutter { position: absolute; inset: 0; padding: 16px 14px; display: grid; align-content: start; gap: 12px; background: var(--bg); translate: 0 100%; border-top: 2px solid var(--ink); transition: translate .7s var(--spring); }
.shutter.is-open { translate: 0 0; }

/* ---------- Screenshot asli ---------- */
.shots { padding: 80px 0; }
.nowrap { white-space: nowrap; }
.shots__rail {
  list-style: none; max-width: 1240px; margin: 0 auto; padding: 10px 24px 30px;
  display: flex; align-items: flex-end; justify-content: safe center; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  cursor: grab;
}
.shots__rail::-webkit-scrollbar { display: none; }
.shots__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.shots__rail img { -webkit-user-drag: none; user-select: none; }
.shot { flex: none; display: grid; justify-items: center; gap: 16px; scroll-snap-align: center; }
.shot b { font: 700 19px/1.2 var(--display); }
.shot__frame {
  display: block; height: clamp(360px, 33vw, 420px); aspect-ratio: var(--ar);
  padding: 7px; background: var(--bezel);
  border: var(--b) solid var(--ink); border-radius: 26px; box-shadow: var(--sh) var(--sh) 0 var(--ink);
  rotate: -1.5deg; transition: rotate .45s var(--spring), translate .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.shot:nth-child(even) .shot__frame { rotate: 1.5deg; }
.shot:hover .shot__frame { rotate: 0deg; translate: -3px -3px; box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 var(--ink); }
.shot__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; background: var(--raised); }

/* ---------- Bento ---------- */
.bento-wrap { padding: 80px 24px; }
.bento { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card {
  position: relative; overflow: hidden;
  grid-column: span 2; padding: 24px; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: var(--b) solid var(--ink); border-radius: 20px; box-shadow: var(--sh) var(--sh) 0 var(--ink);
}
.card.is-settled { transition: opacity .7s var(--ease-out), translate .2s var(--ease-out), box-shadow .2s var(--ease-out); transition-delay: 0s; }
.card.is-settled:hover { translate: -3px -3px; box-shadow: calc(var(--sh) + 3px) calc(var(--sh) + 3px) 0 var(--ink); }
.card--offline, .card--palette { grid-column: span 3; }
.card h3 { font-size: 28px; }
.card p { color: var(--muted); font-weight: 600; }
.card .nb-btn { align-self: flex-start; margin-top: 6px; }
.card__art {
  height: 150px; margin: -4px -4px 8px; display: grid; place-items: center; position: relative;
  background: var(--c); border: var(--b) solid var(--ink); border-radius: 14px; overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--on) 18%, transparent) 1.3px, transparent 1.6px); background-size: 16px 16px;
}

.wifi { position: relative; width: 84px; height: 84px; display: grid; place-items: center; font-size: 46px; color: var(--on); background: var(--surface); border: var(--b) solid var(--ink); border-radius: 22px; box-shadow: 4px 4px 0 var(--ink); }
.wifi .ph { color: var(--ink); }
.slash { position: absolute; width: 4px; height: 0; background: var(--expense); outline: 2px solid var(--ink); rotate: -45deg; animation: slash 4s var(--ease-out) infinite; }
@keyframes slash { 0%, 10% { height: 0; } 30%, 80% { height: 92px; } 95%, 100% { height: 0; } }
.okbadge { position: absolute; right: 18%; bottom: 18px; display: flex; align-items: center; gap: 6px; padding: 6px 12px; font: 800 14px var(--body); background: var(--surface); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); animation: okpop 4s var(--spring) infinite; }
@keyframes okpop { 0%, 22% { scale: 0; rotate: -20deg; } 34%, 82% { scale: 1; rotate: 4deg; } 95%, 100% { scale: 0; rotate: 0deg; } }

.swatches { display: grid; grid-template-columns: repeat(5, 40px); align-content: center; justify-content: center; gap: 12px 14px; }
.swatches i { width: 40px; height: 40px; border-radius: 50%; background: var(--s); border: var(--b) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); animation: wave 2.6s ease-in-out infinite; }
.swatches i:nth-child(n) { animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes wave { 0%, 60%, 100% { translate: 0 0; } 30% { translate: 0 -14px; } }
.card--palette:hover .swatches i { animation-duration: 1.1s; }

.csv { display: flex; align-items: center; justify-content: center; gap: 12px; }
.csv__file { --c: var(--surface); padding: 10px; display: grid; justify-items: center; gap: 4px; font: 800 12px var(--body); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.csv__file .ph { font-size: 30px; }
.csv__arrow { font-size: 26px; color: var(--on); animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 6px 0; } }
.csv__rows { display: grid; gap: 6px; width: 74px; }
.csv__rows i { height: 14px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 5px; transform-origin: 0 50%; animation: rowIn 3s var(--spring) infinite; }
.csv__rows i:nth-child(2) { animation-delay: .25s; } .csv__rows i:nth-child(3) { animation-delay: .5s; }
@keyframes rowIn { 0%, 8% { scale: 0 1; } 25%, 85% { scale: 1 1; } 100% { scale: 0 1; } }

.ring { width: 96px; height: 96px; display: grid; place-items: center; font-size: 40px; color: var(--ink); background: var(--surface); border: var(--b) solid var(--ink); border-radius: 50%; position: relative; box-shadow: 4px 4px 0 var(--ink); }
.ring::before { content: ""; position: absolute; inset: -14px; border: 3px dashed var(--ink); border-radius: 50%; animation: spin 9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* Mini layar Catat: ketik 50.000 × 3 di keypad, lalu Simpan. Satu siklus 7 dtk. */
.catat { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 14px; }
.catat__screen { flex: 1; min-width: 0; max-width: 170px; display: grid; gap: 6px; justify-items: start; color: var(--ink); }
.catat__chip { padding: 1px 8px; font: 800 10.5px/1.5 var(--body); background: var(--surface); border: 2px solid var(--ink); border-radius: 8px; }
.catat__amount { width: 100%; display: flex; align-items: baseline; gap: 4px; padding: 4px 8px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); white-space: nowrap; overflow: hidden; }
.catat__amount small { font: 800 10px var(--body); color: var(--muted); }
.catat__num { font: 700 19px/1.2 var(--display); font-feature-settings: "tnum"; }
.catat__num::after { content: "50.000 × 3"; animation: typed 7s step-end infinite; }
.catat__caret { width: 2px; height: 17px; align-self: center; background: var(--ink); animation: blink 1s step-end infinite; }
.catat__sum { font: 800 11px var(--body); animation: sumIn 7s var(--ease-out) infinite; }
.catat__save { width: 100%; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 0; font: 800 12px var(--body); color: var(--on); background: var(--expense); border: 2.5px solid var(--ink); border-radius: 9px; box-shadow: 3px 3px 0 var(--ink); animation: savePress 7s infinite; }
.catat__pad { flex: none; width: 112px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.catat__pad i { height: 25px; display: grid; place-items: center; font: 700 13px var(--display); color: var(--ink); background: var(--surface); border: 2.5px solid var(--ink); border-radius: 7px; box-shadow: 2px 2px 0 var(--ink); }
.catat__pad .op { background: var(--accent); }
.catat__pad .eq { background: var(--transfer); }
.catat__pad .k5 { animation: kp5 7s infinite; }
.catat__pad .k0 { animation: kp0 7s infinite; }
.catat__pad .kx { animation: kpx 7s infinite; }
.catat__pad .k3 { animation: kp3 7s infinite; }
.catat__done { position: absolute; top: 10px; right: 12px; display: flex; align-items: center; gap: 5px; padding: 4px 10px; font: 800 12px var(--body); color: var(--on); background: var(--income); border: 2.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); animation: donePop 7s var(--spring) infinite; }
@keyframes typed {
  0% { content: "0"; } 8.6% { content: "5"; } 14.3% { content: "50"; } 20% { content: "500"; } 25.7% { content: "5.000"; }
  31.4% { content: "50.000"; } 40% { content: "50.000 ×"; } 47.1% { content: "50.000 × 3"; } 92% { content: "0"; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes sumIn { 0%, 47% { opacity: 0; translate: 0 4px; } 52%, 90% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 4px; } }
@keyframes savePress {
  0%, 53.5% { translate: 0 0; box-shadow: 3px 3px 0 var(--ink); } 54.5%, 57% { translate: 3px 3px; box-shadow: 0 0 0 var(--ink); } 59%, 100% { translate: 0 0; box-shadow: 3px 3px 0 var(--ink); }
}
@keyframes donePop { 0%, 55% { scale: 0; rotate: -12deg; } 61%, 90% { scale: 1; rotate: 3deg; } 95%, 100% { scale: 0; rotate: 0deg; } }
@keyframes kp5 {
  0%, 8% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--surface); } 9%, 11% { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); background: var(--sky); } 12.5%, 100% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--surface); }
}
@keyframes kp0 {
  0%, 13.7%, 16.6%, 19.4%, 22.3%, 25.1%, 28%, 30.8%, 33.7%, 100% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--surface); }
  14.7%, 15.7%, 20.4%, 21.4%, 26.1%, 27.1%, 31.8%, 32.8% { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); background: var(--sky); }
}
@keyframes kpx {
  0%, 39.4% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--accent); } 40.4%, 42% { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); background: var(--sky); } 43.5%, 100% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--accent); }
}
@keyframes kp3 {
  0%, 46.5% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--surface); } 47.5%, 49.5% { translate: 2px 2px; box-shadow: 0 0 0 var(--ink); background: var(--sky); } 51%, 100% { translate: 0 0; box-shadow: 2px 2px 0 var(--ink); background: var(--surface); }
}

.target { width: 104px; height: 104px; position: relative; display: grid; place-items: center; }
.target i { position: absolute; border: var(--b) solid var(--ink); border-radius: 50%; background: var(--surface); }
.target i:nth-child(1) { inset: 0; }
.target i:nth-child(2) { inset: 18px; background: var(--expense); }
.target i:nth-child(3) { inset: 36px; }
.target b { position: absolute; width: 70px; height: 5px; background: var(--ink); left: 50%; top: 50%; transform-origin: 0 50%; rotate: -35deg; animation: arrow 3s var(--ease-out) infinite; border-radius: 3px; }
@keyframes arrow { 0%, 10% { translate: 80px -60px; opacity: 0; } 35% { translate: 0 0; opacity: 1; } 40% { translate: -3px 2px; } 45%, 85% { translate: 0 0; opacity: 1; } 100% { opacity: 0; } }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 24px; }
.plans { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.plan { position: relative; padding: 28px; display: grid; gap: 20px; border-radius: 22px; }
.plan header { display: grid; gap: 6px; }
.plan h3 { font-size: 26px; }
.price { font: 700 48px/1 var(--display); font-feature-settings: "tnum"; }
.plan small { color: var(--muted); font-weight: 600; }
.price__per { font: 700 18px var(--body); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 700; }
.plan li { display: flex; align-items: center; gap: 10px; }
.plan li .ph { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; background: var(--income); color: var(--on); border: 2px solid var(--ink); border-radius: 7px; }
/* Premium: palet Lux dari app (premium_lux.dart) — navy, bingkai emas, garis
   diagonal, lengkung emas konsentris, kilau bintang, pita cahaya. */
.plan--premium {
  --lux-navy-top: #1C2550; --lux-navy-bottom: #0B1028; --lux-ink: #14182E; --lux-text: #EDE6D2;
  --lux-gold-light: #FFF1B8; --lux-gold: #E2B84A; --lux-gold-deep: #9A6E1C;
  --lux-gold-grad: linear-gradient(135deg, var(--lux-gold-light) 0%, var(--lux-gold) 35%, var(--lux-gold-deep) 75%, var(--lux-gold) 100%);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-2 -2 4 4'%3E%3Cpath d='M0-2Q0 0 2 0Q0 0 0 2Q0 0-2 0Q0 0 0-2Z' fill='%23FFF1B8'/%3E%3C/svg%3E");
  isolation: isolate; margin-top: -18px; color: var(--lux-text);
  border: 3px solid transparent;
  background:
    var(--star) 52% 3% / 14px no-repeat,
    var(--star) 98% 46% / 10px no-repeat,
    var(--star) 70% 98.5% / 10px no-repeat,
    var(--star) 1.5% 70% / 9px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260' fill='none' stroke='%23E2B84A'%3E%3Ccircle cx='265' cy='300' r='150' stroke-width='1.2' stroke-opacity='.42'/%3E%3Ccircle cx='265' cy='300' r='157' stroke-width='.6' stroke-opacity='.38'/%3E%3Ccircle cx='265' cy='300' r='164' stroke-width='1.2' stroke-opacity='.34'/%3E%3Ccircle cx='265' cy='300' r='171' stroke-width='.6' stroke-opacity='.3'/%3E%3Ccircle cx='265' cy='300' r='178' stroke-width='1.2' stroke-opacity='.26'/%3E%3Ccircle cx='265' cy='300' r='185' stroke-width='.6' stroke-opacity='.22'/%3E%3Ccircle cx='265' cy='300' r='192' stroke-width='1.2' stroke-opacity='.18'/%3E%3Ccircle cx='265' cy='300' r='199' stroke-width='.6' stroke-opacity='.14'/%3E%3Ccircle cx='265' cy='300' r='206' stroke-width='1.2' stroke-opacity='.1'/%3E%3C/svg%3E") right bottom / 300px no-repeat padding-box,
    linear-gradient(135deg, var(--lux-navy-top), var(--lux-navy-bottom)) padding-box,
    var(--lux-gold-grad) border-box;
}
.plans .plan--premium.nbx.is-in { box-shadow: var(--sh) var(--sh) 0 var(--ink), 0 0 30px rgba(226, 184, 74, .35); }
.plan--premium::before, .plan--premium::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 19px; pointer-events: none; }
.plan--premium::before {
  background: repeating-linear-gradient(135deg, rgba(226, 184, 74, .13) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%);
}
.plan--premium::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent) -60% 0 / 35% 100% no-repeat; }
.plan--premium.is-in::after { animation: luxShine 2.6s ease-in-out .9s 2; }
@keyframes luxShine { to { background-position: 160% 0; } }
.plan--premium h3, .plan--premium .price { background: var(--lux-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan--premium .price__per { color: var(--lux-text); opacity: .75; }
.plan--premium small { color: var(--lux-text); opacity: .72; }
.plan--premium li .ph { background: var(--lux-gold-grad); color: var(--lux-ink); border-color: var(--lux-gold-deep); }
.plan--premium .nb-btn { --bg-btn: var(--lux-gold-grad); color: var(--lux-ink); border-color: var(--lux-ink); box-shadow: 4px 4px 0 var(--lux-gold-deep); }
.plan--premium .nb-btn:hover { box-shadow: 6px 6px 0 var(--lux-gold-deep); }
.plan__crown {
  position: absolute; top: -26px; right: 30px; width: 60px; height: 60px; display: grid; place-items: center; font-size: 28px;
  color: var(--lux-ink); background: radial-gradient(circle at 35% 30%, var(--lux-gold-light), var(--lux-gold) 55%, var(--lux-gold-deep));
  border: 3px solid var(--lux-gold-light); border-radius: 50%;
  box-shadow: 0 0 18px rgba(226, 184, 74, .6), 4px 4px 0 var(--ink);
  animation: wobble 3.5s ease-in-out infinite;
}
@keyframes wobble { 0%, 100% { rotate: -10deg; } 50% { rotate: 10deg; translate: 0 -4px; } }
.plan__stamp { position: absolute; top: 34px; right: 26px; padding: 4px 10px; font: 800 11px var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--lux-ink); background: var(--lux-gold-grad); border: 1px solid var(--lux-gold-light); border-radius: 8px; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 24px; }
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.qa { overflow: hidden; border-radius: 16px; transition: background-color .3s; }
.qa[open] { --c: var(--raised); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 700 21px/1.2 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ph { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 17px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--accent); color: var(--on); transition: rotate .45s var(--spring), background-color .3s; }
.qa[open] summary .ph { rotate: 135deg; background: var(--income); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 22px 20px; color: var(--muted); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { padding: 60px 24px 100px; }
.cta__box { --c: var(--accent); position: relative; overflow: hidden; max-width: 1100px; margin: 0 auto; padding: 72px 24px; display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--on); border-radius: 30px; --sh: 10px; }
.cta__box h2 { font-size: clamp(42px, 7vw, 92px); position: relative; }
.cta__box p { font-size: 19px; font-weight: 700; max-width: 30em; position: relative; }
.cta__box .nb-btn { position: relative; --bg-btn: #1F1A15; color: #FFF3DF; border-color: #1F1A15; box-shadow: 6px 6px 0 #FFF3DF, 6px 6px 0 3px #1F1A15; }
.cta__box .beta-form { position: relative; margin: 10px 0 0; text-align: left; }
.cta__box .beta-form__msg, .cta__box .beta-form.is-error .beta-form__msg { color: var(--on); max-width: none; }
.cta__box .beta-form.is-error .beta-form__msg::before { content: "\e3d4"; display: inline-block; rotate: 45deg; margin-right: 6px; font: 16px "Phosphor"; }
.cta__rain { position: absolute; inset: 0; pointer-events: none; }
.cta__rain .ph { position: absolute; top: -60px; font-size: 34px; color: var(--on); opacity: .9; animation: rain 7s linear infinite; }
.cta__rain .ph:nth-child(1) { left: 6%; animation-delay: -1s; }
.cta__rain .ph:nth-child(2) { left: 18%; animation-delay: -4.5s; animation-duration: 8.5s; }
.cta__rain .ph:nth-child(3) { left: 31%; animation-delay: -2.8s; animation-duration: 6s; }
.cta__rain .ph:nth-child(4) { left: 46%; animation-delay: -6s; }
.cta__rain .ph:nth-child(5) { left: 60%; animation-delay: -.3s; animation-duration: 9s; }
.cta__rain .ph:nth-child(6) { left: 73%; animation-delay: -3.7s; }
.cta__rain .ph:nth-child(7) { left: 85%; animation-delay: -5.2s; animation-duration: 7.6s; }
.cta__rain .ph:nth-child(8) { left: 94%; animation-delay: -2s; animation-duration: 6.4s; }
@keyframes rain { from { translate: 0 0; rotate: 0deg; } to { translate: 0 620px; rotate: 360deg; } }

/* ---------- Footer ---------- */
.footer { border-top: var(--b) solid var(--ink); background: var(--surface); }
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 36px 24px 44px; display: grid; gap: 10px; font-weight: 600; }
.footer__inner .muted { font-size: 14px; }

/* Transisi tema: lingkaran membesar dari tombol (View Transitions). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; min-height: 0; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__ctas, .hero__facts { justify-content: center; }
  .hero .beta-form__msg { text-align: center; }
  .hero .beta-form.is-done .beta-form__msg { justify-content: center; text-align: left; }
  .hero__stage { min-height: 0; padding: 20px 0 10px; }
  .sticker--a { left: 2%; } .sticker--b { right: 0; } .sticker--e { right: 0; } .sticker--f { left: 0; }

  .story__grid { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .story__sticky { top: 76px; height: auto; min-height: 0; z-index: 4; padding: 14px 0 16px; background-color: var(--bg); background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px); background-size: 22px 22px; background-attachment: fixed; border-bottom: var(--b) solid var(--ink); margin: 0 -16px; }
  .story__sticky::before { width: auto; aspect-ratio: auto; inset: 26px 18%; top: 26px; left: 18%; translate: 0 0; border-radius: 30px; }
  .story__dots { left: auto; right: 16px; }
  .step { min-height: max(var(--vis, 50vh), 280px); justify-content: flex-start; padding: 26px 0 30px; }
  .step p { font-size: 16px; }
  .ticks { display: none; }

  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card--offline, .card--palette { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan--premium { margin-top: 18px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { padding: 8px 10px 0; }
  .nav__cta { display: none; }
  .logo__word { font-size: 23px; }
  .hero { padding-inline: 16px; }
  .hero__ctas .nb-btn { width: 100%; }
  .beta-form__row { flex-direction: column; }
  .beta-form__row .nb-btn { width: 100%; }
  .shots { padding: 56px 0; }
  .shots__rail { padding-inline: 16px; gap: 20px; }
  .plan { padding: 24px 20px; }
  .plan__stamp { position: static; justify-self: start; margin-bottom: -8px; }
  .price { font-size: 42px; }
  .chip { font-size: 13px; padding: 6px 10px; }
  .key { width: 48px; height: 48px; font-size: 24px; }
  .coin { width: 44px; height: 44px; font-size: 22px; }
  .sticker--b { top: 22%; } .sticker--e { bottom: 4%; }
  .bento { grid-template-columns: 1fr; }
  .bento-wrap, .pricing, .faq { padding: 56px 16px; }
  .qa summary { font-size: 18px; padding: 16px; }
  .qa__a p { padding: 0 16px 16px; }
  .cta { padding-inline: 16px; }
  .cta__box { padding: 56px 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; translate: none; }
}
