/* ==========================================================================
   Kybo — landing page
   Token warna & font sama dengan aplikasi (src/app/globals.css).
   Mobile-first. Tanpa framework. Kontras teks lolos WCAG AA.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --surface-2: #f7f2ed;
  --surface-3: #efe7df;
  --border: #ebe2d9;
  --border-strong: #d9ccbf;
  --fg: #1f1d22;
  --fg-muted: #5c5560;
  --fg-subtle: #6e6672;
  --brand: #fc5a33;
  --brand-strong: #ff7350;
  --accent: #c93e1a;
  --income: #0b7a53;
  --income-bg: #e7f6ef;
  --expense: #b42a43;
  --expense-bg: #fdecef;
  --warning: #9a4a07;
  --warning-bg: #fef3e2;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgb(31 29 34 / 0.05), 0 18px 40px -26px rgb(31 29 34 / 0.35);
  --shadow-brand: 0 14px 30px -14px rgb(252 90 51 / 0.85);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}
p {
  margin: 0;
}
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
::selection {
  background: rgb(252 90 51 / 0.22);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--fg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* ───────────────────────── Tombol ───────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font: 700 15px/1 var(--font);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--fg);
  box-shadow: inset 0 -3px 0 rgb(31 29 34 / 0.18), var(--shadow-brand);
}
.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--surface);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--fg-subtle);
}
.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
  border-radius: 16px;
}
.btn svg {
  flex: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
}
.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-muted);
  line-height: 1.65;
}
.section {
  padding-block: clamp(72px, 10vw, 128px);
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
}
.section-head .lead {
  margin-top: 14px;
}
.hl {
  color: var(--accent);
}

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled {
  background: rgb(251 248 245 / 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 40px;
  height: 40px;
}
.brand b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg-subtle);
  text-transform: uppercase;
  line-height: 1;
}
.nav-links {
  display: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 8px 4px;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav .login {
  display: none;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 6px;
}
.nav .btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  color: var(--fg);
}
.menu-btn .x {
  display: none;
}
.menu-btn[aria-expanded="true"] .x {
  display: block;
}
.menu-btn[aria-expanded="true"] .bars {
  display: none;
}
.mobile-menu {
  position: fixed;
  inset: 72px 0 auto 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 30px 40px -30px rgb(31 29 34 / 0.4);
  padding: 8px var(--gutter) 20px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn {
  width: 100%;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    gap: 28px;
    margin-right: 28px;
  }
  .nav .login {
    display: inline-block;
  }
  .menu-btn,
  .mobile-menu {
    display: none;
  }
}

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(28px, 6vw, 72px) clamp(64px, 9vw, 112px);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -320px;
  top: -380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(252 90 51 / 0.2), transparent);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgb(31 29 34 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(31 29 34 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000, transparent 75%);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 7.4vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 .hl {
  background: linear-gradient(180deg, #e8502c, #c93e1a 60%, #9c2f12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  margin-top: 20px;
  max-width: 540px;
}
.hero .lead q {
  quotes: "“" "”";
  font-weight: 700;
  color: var(--fg);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--income) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
  flex: none;
}

/* Komposisi berlapis di hero: kartu saldo di belakang, chat di depan, rubah mengintip */
.stage {
  position: relative;
  min-height: 540px;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.balance-card {
  position: absolute;
  right: 0;
  top: 0;
  width: 78%;
  padding: 20px 22px 22px;
  transform: rotate(2.5deg);
}
.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.money small {
  font-size: 0.55em;
  font-weight: 700;
  opacity: 0.7;
  margin-right: 3px;
}
.balance-card .money {
  font-size: 32px;
  margin-top: 6px;
}
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
  margin-top: 18px;
}
.mini-bars span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--surface-3);
}
.mini-bars span.on {
  background: var(--brand);
}
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-subtle);
}
.flow b {
  display: block;
  font-size: 14px;
}
.in {
  color: var(--income);
}
.out {
  color: var(--expense);
}

.chat {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88%;
  padding: 14px;
  border-radius: 24px;
  background: #f1ece6;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -30px rgb(31 29 34 / 0.55);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgb(31 29 34 / 0.08);
  margin-bottom: 12px;
}
.chat-top img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
}
.chat-top b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}
.chat-top span {
  font-size: 12px;
  color: var(--income);
  font-weight: 600;
}
.bubble {
  max-width: 86%;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.45;
  margin-top: 8px;
}
.bubble.me {
  margin-left: auto;
  background: var(--fg);
  color: #fff;
  border-bottom-right-radius: 6px;
  font-weight: 700;
}
.bubble.bot {
  background: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 1px rgb(31 29 34 / 0.06);
}
.bubble.bot b {
  font-weight: 800;
}
.bubble .meta {
  display: block;
  font-size: 12.5px;
  color: var(--fg-subtle);
  margin-top: 2px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg);
}
.chip.ok {
  background: var(--income-bg);
  border-color: rgb(11 122 83 / 0.3);
  color: var(--income);
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-subtle);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
.fox-peek {
  position: absolute;
  right: -6px;
  bottom: 118px;
  width: 132px;
  filter: drop-shadow(0 16px 20px rgb(201 62 26 / 0.22));
  animation: bob 5s var(--ease) infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

/* Urutan percakapan hero (hanya bila JS aktif & gerakan diizinkan) */
.js .seq > * {
  opacity: 0;
  transform: translateY(8px);
  animation: pop 0.5s var(--ease) forwards;
}
.js .seq > :nth-child(1) {
  animation-delay: 0.3s;
}
.js .seq > :nth-child(2) {
  animation-delay: 0.9s;
}
.js .seq > :nth-child(3) {
  animation-delay: 1.7s;
}
.js .seq > :nth-child(4) {
  animation-delay: 2s;
}
@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}
.js .seq .typing {
  animation: pop 0.3s var(--ease) 0.95s forwards, vanish 0.2s linear 1.65s forwards;
}
@keyframes vanish {
  to {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
  }
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
  }
  .stage {
    min-height: 600px;
  }
}

/* ───────────────────────── Strip angka/fakta ───────────────────────── */
.facts {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.facts ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 22px 8px;
  text-align: center;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.facts li + li {
  border-left: 1px solid var(--border);
}
.facts li:nth-child(3) {
  border-left: 0;
}
.facts li:nth-child(n + 3) {
  border-top: 1px solid var(--border);
}
.facts b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}
@media (min-width: 760px) {
  .facts ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .facts li:nth-child(3) {
    border-left: 1px solid var(--border);
  }
  .facts li:nth-child(n + 3) {
    border-top: 0;
  }
}

/* ───────────────────────── Sehari bareng Kybo (timeline) ───────────────────────── */
.day {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--brand), var(--border-strong));
  border-radius: 2px;
}
.moment {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 60px;
}
.time {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--bg);
}
.moment h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
}
.moment p {
  margin-top: 8px;
  color: var(--fg-muted);
  max-width: 460px;
}
.moment .card {
  padding: 16px;
  max-width: 440px;
}
.moment .chat {
  position: static;
  width: auto;
  max-width: 440px;
  box-shadow: var(--shadow);
}
.budget-row {
  display: grid;
  gap: 6px;
  padding: 10px 0;
}
.budget-row + .budget-row {
  border-top: 1px solid var(--border);
}
.budget-row header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
}
.budget-row header span {
  color: var(--fg-subtle);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 10px;
  border-radius: 10px;
  background: var(--surface-3);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: var(--income);
  width: var(--w, 50%);
  transform-origin: left;
}
.bar i.warn {
  background: #d98a1c;
}
.bar i.over {
  background: var(--expense);
}
.bar i.brand {
  background: var(--brand);
}
.js .reveal .bar i {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease) 0.2s;
}
.js .reveal.is-in .bar i {
  transform: scaleX(1);
}

@media (min-width: 900px) {
  .day {
    gap: 28px;
  }
  .day::before {
    left: 50%;
    margin-left: -1px;
  }
  .moment {
    grid-template-columns: 1fr 1fr;
    gap: 96px;
    padding-left: 0;
    align-items: center;
    min-height: 260px;
  }
  .time {
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    font-size: 13px;
  }
  .moment:nth-child(even) .copy {
    order: 2;
  }
  .moment:nth-child(odd) .copy {
    text-align: right;
    justify-self: end;
  }
  .moment:nth-child(odd) .copy p {
    margin-left: auto;
  }
  .moment:nth-child(even) .ui {
    justify-self: end;
  }
}

/* Animasi muncul saat discroll */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ───────────────────────── Fitur (bento) ───────────────────────── */
.bento {
  display: grid;
  gap: 16px;
}
.tile {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tile h3 {
  font-size: 20px;
  font-weight: 800;
}
.tile > p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 15px;
}
.tile .demo {
  margin-top: 20px;
}
.tile.warm {
  background: linear-gradient(150deg, #fff1e9, #fff 60%);
}
.goal-big {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.goal-big .money {
  font-size: 30px;
}
.goal-big span {
  font-size: 13px;
  color: var(--fg-subtle);
}
.pct {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(252 90 51 / 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.hint {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-muted);
}
.hint b {
  color: var(--fg);
}
.acc-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
}
.acc-list .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  flex: none;
}
.acc-list .money {
  margin-left: auto;
  font-size: 14px;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.tag.warn {
  background: var(--warning-bg);
  color: var(--warning);
}
.tag.ok {
  background: var(--income-bg);
  color: var(--income);
}
.tag.bad {
  background: var(--expense-bg);
  color: var(--expense);
}
.debt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
}
.debt-row + .debt-row {
  border-top: 1px solid var(--border);
}
.debt-row b {
  display: block;
}
.debt-row small {
  color: var(--fg-subtle);
}
.nw .money {
  font-size: clamp(30px, 4vw, 40px);
  margin-top: 4px;
}
.nw .eq {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.mini-icons {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.mini-icons span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--accent);
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .t-goal {
    grid-column: span 4;
  }
  .t-acc {
    grid-column: span 2;
    grid-row: span 2;
  }
  .t-debt {
    grid-column: span 2;
  }
  .t-nw {
    grid-column: span 2;
  }
  .t-report,
  .t-pwa,
  .t-import {
    grid-column: span 2;
  }
}

/* ───────────────────────── Privasi (seksi gelap) ───────────────────────── */
.privacy {
  background: var(--fg);
  color: #f4f1ee;
  border-radius: clamp(24px, 4vw, 40px);
  margin-inline: clamp(8px, 2vw, 24px);
  position: relative;
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: -260px;
  bottom: -420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(252 90 51 / 0.28), transparent);
}
.privacy .eyebrow {
  color: var(--brand-strong);
}
.privacy .section-head h2 {
  color: #fff;
}
.privacy .lead {
  color: rgb(255 255 255 / 0.72);
}
.promises {
  position: relative;
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.promises li {
  padding: 26px 24px;
  background: var(--fg);
}
.promises h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.promises h3 svg {
  color: var(--brand-strong);
  flex: none;
}
.promises p {
  margin-top: 10px;
  font-size: 15px;
  color: rgb(255 255 255 / 0.7);
}
.privacy .more {
  position: relative;
  display: inline-block;
  margin-top: 28px;
  color: #fff;
  font-weight: 700;
  text-underline-offset: 4px;
}
@media (min-width: 760px) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .promises {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ───────────────────────── Harga ───────────────────────── */
.pricing {
  display: grid;
  gap: 24px;
  align-items: start;
}
.plan {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--fg);
  box-shadow: 10px 10px 0 var(--brand);
}
.plan .badge {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.plan h3 {
  font-size: 22px;
  font-weight: 800;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
}
.price .money {
  font-size: clamp(44px, 6vw, 60px);
  line-height: 1;
}
.price span {
  color: var(--fg-subtle);
  font-weight: 700;
}
.plan .note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}
.checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.checks li {
  display: flex;
  gap: 10px;
}
.checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1d22' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan .btn {
  width: 100%;
}
.guarantee {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--income-bg);
  color: var(--income);
  font-size: 14px;
  font-weight: 700;
}
.steps {
  counter-reset: s;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 20px 20px 20px 72px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 800;
}
.steps h3 {
  font-size: 17px;
  font-weight: 800;
}
.steps p {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--fg-muted);
}
.steps-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--fg-muted);
}
@media (min-width: 900px) {
  .pricing {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ───────────────────────── FAQ ───────────────────────── */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c93e1a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 20px 20px;
  color: var(--fg-muted);
}
.faq details > div p + p {
  margin-top: 10px;
}

/* ───────────────────────── CTA akhir ───────────────────────── */
.final {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff1e9, #ffffff 55%, #fff6f1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.final h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
}
.final p {
  margin-top: 12px;
}
.final img {
  width: 180px;
  justify-self: center;
}
@media (min-width: 860px) {
  .final {
    grid-template-columns: 1fr auto;
  }
  .final img {
    width: 230px;
  }
}

/* ───────────────────────── Footer ───────────────────────── */
.site-footer {
  margin-top: clamp(64px, 8vw, 96px);
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--fg-muted);
}
.foot-grid {
  display: grid;
  gap: 32px;
}
.foot-grid h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 12px;
}
.foot-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-grid a {
  text-decoration: none;
}
.foot-grid a:hover {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* ───────────────────────── Halaman legal ───────────────────────── */
.legal {
  padding-block: clamp(32px, 6vw, 64px) 0;
}
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
.legal-grid > * {
  min-width: 0;
}
.legal h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  margin-top: 14px;
}
.legal .updated {
  margin-top: 12px;
  color: var(--fg-subtle);
  font-size: 14px;
}
.toc {
  align-self: start;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
}
.toc b {
  display: block;
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.toc a {
  color: var(--fg-muted);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
.prose {
  max-width: 720px;
  font-size: 16.5px;
  line-height: 1.75;
}
.prose h2 {
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 800;
  margin: 44px 0 12px;
  scroll-margin-top: 90px;
}
.prose h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 26px 0 8px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}
.prose .summary {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #fff1e9;
  border: 1px solid rgb(252 90 51 / 0.25);
  margin-bottom: 8px;
}
.prose .summary ul {
  margin: 8px 0 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 8px 0 18px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  background: var(--surface-2);
  font-size: 13px;
  letter-spacing: 0.04em;
}
@media (min-width: 980px) {
  .legal-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 64px;
  }
  .toc {
    position: sticky;
    top: 96px;
  }
}

/* ───────────────────────── Gerak dikurangi ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .seq > *,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .seq .typing {
    display: none;
  }
  .js .reveal .bar i {
    transform: none !important;
  }
}
