/* ---------- Halaman depan CekMutasiku ---------- */

body.is-landing main { max-width: none; padding: 0; }
body.is-landing .topbar { max-width: 1320px; padding-left: 32px; padding-right: 32px; }

.landing { --gutter: 32px; --wrap: 1320px; }
.landing > section, .lp-footer { padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }

.landing h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 18ch; }
.landing p { font-size: 1.0625rem; line-height: 1.6; max-width: 60ch; }
.landing p + p { margin-top: 14px; }
.landing h2 + p { margin-top: 22px; }

.lp-section { padding-top: 168px; padding-bottom: 0; }

/* ---------- pembuka ---------- */

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  min-height: calc(100svh - 76px);
  padding-bottom: 48px;
}
.lp-hero h1 {
  font-size: clamp(2.75rem, 4.9vw, 5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 750;
  white-space: nowrap;
}
.lp-lead { margin-top: 28px; font-size: clamp(1.0625rem, 1.35vw, 1.25rem) !important; color: var(--ink); max-width: 34ch !important; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lp-small { margin-top: 18px; font-size: 0.9375rem !important; color: var(--ink-2); }

/* Peraga: lembar mutasi bank dan terjemahannya. */
.decoder {
  background: var(--surface);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 10px;
}
.mut-sheet { background: var(--paper); border-radius: 12px; overflow: hidden; }
.mut-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 128px;
  gap: 14px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.mut-head span:last-child { text-align: right; }
.mut-rows { display: grid; }
.mut-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: background-color 160ms ease, color 160ms ease;
}
.mut-row:hover { background: var(--step); color: var(--ink); }
.mut-row[aria-checked="true"] { background: var(--spend-soft); color: var(--ink); box-shadow: inset 4px 0 0 var(--accent); }
.mut-date { font-weight: 600; white-space: nowrap; }
.mut-desc { overflow-wrap: anywhere; letter-spacing: 0.01em; }
.mut-type { display: block; margin-top: 2px; font-size: 0.8125rem; opacity: 0.8; }
.mut-amt { text-align: right; font-weight: 600; white-space: nowrap; color: var(--ink); }
.mut-foot { padding: 10px 16px 12px; font-size: 0.8125rem !important; color: var(--ink-2); }

.decode-out { padding: 14px 18px 4px; }
.decode-grid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px 16px; margin: 0; align-items: baseline; }
.decode-grid dt { color: var(--ink-2); font-size: 0.9375rem; }
.decode-grid dd { margin: 0; font-size: 1.0625rem; font-weight: 550; overflow-wrap: anywhere; }
.decode-grid .decode-big { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.decode-verdict { margin-top: 12px; padding: 14px 16px; border-radius: 12px; font-size: 1rem !important; max-width: none !important; }
.decode-verdict.is-counted { background: var(--step); }
.decode-verdict.is-moved { background: var(--spend-soft); }
.decode-try { padding: 4px 8px 10px; }
.decode-try label { display: block; font-weight: 650; font-size: 0.9375rem; margin-bottom: 8px; }
.decode-input-row { display: flex; gap: 8px; }
.decode-input-row input {
  flex: 1; min-width: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--step);
  font-size: 0.9375rem;
}
.decode-input-row input:focus { outline: 2px solid var(--focus); outline-offset: 0; background: var(--paper); }
.decode-note { margin-top: 8px; font-size: 0.8125rem !important; color: var(--ink-2); }

/* ---------- uang keluar dan pengeluaran riil ---------- */

.lp-receipt { background: var(--step); margin-top: 120px; padding-top: 128px; padding-bottom: 128px; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.lp-split.reverse > :first-child { order: 0; }

.receipt { background: var(--surface); border-radius: 18px; padding: 28px 30px; }
.rc-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 1.0625rem; color: var(--ink-2); }
.rc-val { font-weight: 650; color: var(--ink); white-space: nowrap; }
.rc-total { font-size: 1.125rem; color: var(--ink); padding-bottom: 16px; }
.rc-total .rc-val { font-size: 1.375rem; font-weight: 800; }
.rc-result { margin: 16px -14px 0; padding: 18px 14px; border-radius: 12px; background: var(--step); color: var(--ink); align-items: baseline; font-weight: 700; }
.rc-result .rc-val { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.ledger-bar.big { height: 22px; margin-top: 20px; border-radius: 6px; }

/* ---------- kamu yang tahu artinya ---------- */

.ledger-frag { background: var(--surface); border-radius: 18px; padding: 24px 26px; }
.lf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.lf-head strong { font-size: 1.375rem; letter-spacing: -0.02em; }
.ledger-frag .book-table { margin-top: 14px; font-size: 0.9375rem; }
.lf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip-static { padding: 6px 14px; border-radius: 999px; background: var(--step); font-size: 0.875rem; font-weight: 550; }
.chip-static.on { background: var(--ink); color: var(--paper); }
.lp-list { margin: 20px 0 0; padding-left: 1.2em; font-size: 1.0625rem; line-height: 1.6; max-width: 58ch; }
.lp-list li + li { margin-top: 8px; }
.lp-list + p { margin-top: 20px; }

/* ---------- tangkapan layar ---------- */

.lp-shot-copy { max-width: 760px; }
.lp-figure { position: relative; margin: 56px 0 0; padding-right: 9%; }
.lp-figure img:first-child { width: 100%; border-radius: 16px; background: var(--surface); }
.lp-phone {
  position: absolute;
  right: 0;
  bottom: -64px;
  width: 22%;
  border-radius: 22px;
  outline: 8px solid var(--paper);
}
.lp-figure figcaption { margin-top: 88px; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- privasi: satu bidang warna penuh ---------- */

.lp-private { background: var(--field); color: var(--on-field); margin-top: 168px; padding-top: 136px; padding-bottom: 136px; }
.lp-private h2 { color: var(--on-field); font-size: clamp(2.5rem, 5.2vw, 4.75rem); max-width: 14ch; }
.lp-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 72px; margin-top: 72px; }
.lp-promises h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.025em; font-weight: 750; }
.lp-promises p { margin-top: 10px; color: var(--on-field-2); }

/* ---------- mulai ---------- */

.lp-steps { margin: 0; padding-left: 1.4em; font-size: 1.125rem; line-height: 1.6; }
.lp-steps li { padding-left: 6px; }
.lp-steps li + li { margin-top: 18px; }
.lp-steps li::marker { font-weight: 800; color: var(--accent); }

/* ---------- pertanyaan ---------- */

.lp-faq h2 { max-width: none; }
.faq-list { display: grid; gap: 6px; margin-top: 40px; max-width: 920px; }
.faq-list details { background: var(--surface); border-radius: 14px; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-size: 1.125rem;
  font-weight: 650;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 24px 22px; color: var(--ink); }

/* ---------- penutup ---------- */

.lp-close { padding-top: 168px; padding-bottom: 40px; }
.lp-close-line { font-size: clamp(1.75rem, 3vw, 2.25rem) !important; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15 !important; max-width: 24ch !important; }

.lp-footer { padding-top: 96px; padding-bottom: 40px; overflow: hidden; }
.lp-wordmark {
  font-size: clamp(3.5rem, 14.4vw, 14rem) !important;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85 !important;
  max-width: none !important;
  color: var(--ink);
  margin-left: -0.04em;
  white-space: nowrap;
}
.lp-foot-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 64px; margin-top: 40px; }
.lp-foot-notes p { font-size: 0.875rem !important; color: var(--ink-2); margin: 0 !important; }

/* ---------- gerak ---------- */

.landing.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 640ms ease, transform 760ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.landing.motion .reveal.is-in { opacity: 1; transform: none; }

.decode-out.is-fresh .decode-grid > *, .decode-out.is-fresh .decode-verdict { animation: decode-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.decode-out.is-fresh .decode-grid > :nth-child(3), .decode-out.is-fresh .decode-grid > :nth-child(4) { animation-delay: 70ms; }
.decode-out.is-fresh .decode-grid > :nth-child(5), .decode-out.is-fresh .decode-grid > :nth-child(6) { animation-delay: 140ms; }
.decode-out.is-fresh .decode-grid > :nth-child(7), .decode-out.is-fresh .decode-grid > :nth-child(8) { animation-delay: 210ms; }
.decode-out.is-fresh .decode-verdict { animation-delay: 280ms; }
@keyframes decode-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }

.lp-phone { animation: drift 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  .landing.motion .reveal { opacity: 1; transform: none; transition: none; }
  .decode-out.is-fresh .decode-grid > *, .decode-out.is-fresh .decode-verdict, .lp-phone { animation: none; }
}

/* ---------- tablet dan HP ---------- */

@media (max-width: 1024px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: 0; }
  .lp-split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .lp-split.reverse > :first-child { order: 2; }
}

@media (max-width: 640px) {
  .landing { --gutter: 16px; }
  body.is-landing .topbar { padding-left: 16px; padding-right: 16px; }
  .lp-section { padding-top: 112px; }
  .lp-hero { padding-top: 32px; }
  .lp-hero h1 { font-size: 2.75rem; }
  .lp-actions .btn { width: 100%; }
  .decoder { padding: 6px; border-radius: 16px; }
  .mut-head { grid-template-columns: 58px minmax(0, 1fr) 92px; padding: 10px 12px; gap: 8px; font-size: 0.6875rem; letter-spacing: 0.04em; }
  .mut-row { grid-template-columns: 58px minmax(0, 1fr) 92px; padding: 12px; gap: 8px; font-size: 0.8125rem; }
  body.is-landing #btn-import { display: none; }
  .decode-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .decode-grid dd { margin-bottom: 10px; }
  .decode-out { padding: 16px 12px 4px; }
  .lp-receipt, .lp-private { padding-top: 88px; padding-bottom: 88px; margin-top: 112px; }
  .receipt, .ledger-frag { padding: 20px; }
  .lp-promises { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 48px; }
  .lp-figure { padding-right: 0; }
  .lp-phone { position: relative; width: 60%; margin: -96px 0 0 auto; bottom: auto; }
  .lp-figure figcaption { margin-top: 20px; }
  .lp-close { padding-top: 112px; }
  .lp-foot-notes { grid-template-columns: minmax(0, 1fr); }
}
body.is-landing { overflow-x: clip; }
