/* ==========================================================================
   KarbonKita — komponen & halaman v2
   Arah: catatan verifikasi warga kota.
   Urutan: reset → dasar → utilitas → navigasi → hero → seksi → responsif → gerak
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- Dasar tipografi ---------- */
h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: var(--color-heading);
  font-weight: 800;
  letter-spacing: var(--tracking-h2);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure-lead);
}

/* ---------- Utilitas ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--paper-soft);
}

.section--dark {
  background: var(--ink);
  color: var(--color-on-dark);
  --color-heading: var(--paper);
  --color-text: var(--color-on-dark);
  --color-muted: var(--color-on-dark-muted);
  --color-focus: var(--lime);
}

.section-head {
  max-width: 60ch;
}

.section-head .lead {
  margin-top: var(--space-4);
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.split-head .lead {
  margin-bottom: 0.35rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--forest) 45%, transparent);
}

.text-link:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--forest);
}

.inline-link {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--duration-base) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Tombol ---------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.btn:hover {
  --btn-bg: var(--color-primary-hover);
  box-shadow: 0 10px 24px -16px rgba(12, 33, 23, 0.55);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn--lg {
  min-height: 54px;
  padding: 0 var(--space-8);
  font-size: 0.98rem;
}

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  --btn-bg: rgba(12, 33, 23, 0.06);
  box-shadow: none;
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(244, 241, 232, 0.34);
}

.btn--on-dark:hover {
  --btn-bg: rgba(244, 241, 232, 0.1);
  box-shadow: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Navigasi ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.progress__bar {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--forest);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out);
}

@supports (backdrop-filter: blur(1px)) {
  .nav {
    backdrop-filter: blur(14px);
  }
}

.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-nav);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
}

.brand__logo {
  width: auto;
  height: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--space-2);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--forest);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  margin-left: var(--space-2);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle .icon-close {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav__toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem);
}

.hero__copy {
  max-width: 36rem;
}

.hero__title span {
  display: block;
}

.hero__lead {
  margin-top: var(--space-6);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
}

.spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec__item {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-right: 1px solid var(--line);
}

.spec__item:not(:first-child) {
  padding-left: var(--space-3);
}

.spec__item:last-child {
  border-right: 0;
}

.spec dt {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.spec dd {
  margin-top: 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.proof svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--forest);
}

.hero__stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 590px;
  padding: var(--space-4) 0 var(--space-8);
}

.hero__city {
  position: absolute;
  inset: 4% -3% 7% 3%;
  border: 1px solid var(--line);
  background-image: url("kota-karbonkita.webp");
  background-size: cover;
  background-position: center 62%;
  opacity: 0.58;
  filter: saturate(0.72) contrast(0.92) brightness(1.04);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 78%, transparent 100%);
}

.hero__city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(244, 241, 232, 0.08) 0%,
    rgba(244, 241, 232, 0.35) 55%,
    rgba(244, 241, 232, 0.92) 100%
  );
}

.phone {
  position: relative;
  z-index: 1;
  width: min(62%, 300px);
  height: 552px;
  margin-right: 4%;
  padding: 7px;
  overflow: hidden;
  border-radius: 42px;
  background: var(--ink);
  box-shadow: var(--shadow-phone);
  rotate: -1.2deg;
}

.phone__img {
  width: 100%;
  height: auto;
  border-radius: 35px;
}

.phone::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 35px;
  background: linear-gradient(
    to bottom,
    transparent 38%,
    rgba(244, 241, 232, 0.22) 56%,
    rgba(244, 241, 232, 0.92) 82%,
    var(--paper) 100%
  );
  pointer-events: none;
}

.receipt {
  position: absolute;
  left: 0;
  bottom: 2.2rem;
  z-index: 2;
  width: min(21rem, 64%);
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-receipt);
  transform: rotate(-2.2deg);
}

.receipt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--line);
}

.receipt__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.receipt__brand img {
  width: 18px;
  height: 18px;
}

.receipt__label {
  font-size: var(--text-2xs);
  color: var(--muted);
  text-align: right;
}

.receipt__mission {
  position: relative;
  margin-top: 0.8rem;
  padding-right: 5.2rem;
}

.receipt__mission-label {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.receipt__mission-name {
  margin-top: 0.15rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.receipt__stamp {
  position: absolute;
  top: 0.2rem;
  right: -0.15rem;
  padding: 0.24rem 0.42rem;
  border: 2px solid var(--forest);
  outline: 1px solid var(--forest);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
  color: var(--forest);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: 0.9;
  white-space: nowrap;
}

.receipt__rows {
  margin-top: 0.7rem;
}

.receipt__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.3rem;
  border-bottom: 1px dashed var(--line);
}

.receipt__rows dt {
  font-size: 0.7rem;
  color: var(--muted);
}

.receipt__rows dd {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.receipt__hash {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: 0.65rem;
  font-size: 0.66rem;
  color: var(--muted);
}

.receipt__hash code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  text-align: right;
}

.receipt__foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  font-size: 0.62rem;
  line-height: 1.45;
  color: var(--muted);
}

.receipt__foot svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--forest);
}

/* ---------- Masalah ---------- */
.problem .lead {
  max-width: 46ch;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.stat {
  padding-top: var(--space-4);
  border-top: 2px solid var(--lime);
}

.stat__value {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat__unit {
  font-size: 0.44em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__label {
  display: block;
  max-width: 30ch;
  margin-top: var(--space-4);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.stat__source {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--text-2xs);
  color: var(--on-dark-muted);
  opacity: 0.82;
}

.source-note {
  max-width: 82ch;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
  font-size: var(--text-2xs);
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.problem__closing {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: var(--space-8);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--lime);
  max-width: 58ch;
}

.problem__closing span {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  margin-top: 0.48rem;
  background: var(--lime);
}

/* ---------- Dua aksi ---------- */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-strong);
}

.action {
  padding: var(--space-6) clamp(1rem, 3vw, 2.5rem) var(--space-8);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.action:first-child {
  border-left: 0;
  padding-left: 0;
}

.action:last-child {
  padding-right: 0;
}

.action__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.action__icon {
  width: 36px;
  height: 36px;
  color: var(--forest);
}

.action__icon svg {
  width: 100%;
  height: 100%;
}

.action__tag {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.action h3 {
  margin-top: var(--space-4);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
}

.action > p {
  max-width: 48ch;
  margin-top: var(--space-3);
  font-size: 0.94rem;
  color: var(--muted);
}

.action__facts {
  margin-top: var(--space-5);
  border-top: 1px dashed var(--line);
}

.action__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.45rem;
  border-bottom: 1px dashed var(--line);
}

.action__facts dt {
  font-size: 0.74rem;
  color: var(--muted);
}

.action__facts dd {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.action__example {
  margin-top: 0.8rem;
  font-size: var(--text-2xs);
  color: var(--muted);
}

.action__link {
  margin-top: 0.6rem;
}

.note {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: var(--space-3);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 2px solid var(--forest);
}

.note__icon {
  width: 24px;
  height: 24px;
  color: var(--forest);
}

.note p {
  max-width: 78ch;
  font-size: 0.86rem;
  color: var(--muted);
}

.note strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.loop::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1.05rem;
  right: 1.05rem;
  height: 1px;
  background: var(--line-strong);
}

.loop__step {
  position: relative;
  padding-top: 2.8rem;
}

.loop__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.loop__title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.loop__text {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Verifikasi ---------- */
.verify__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.verify__head {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.verify__head h2 {
  max-width: 13ch;
}

.verify__head .lead {
  margin-top: var(--space-4);
}

.verify__aside {
  max-width: 38ch;
  margin-top: var(--space-8);
  padding-left: var(--space-4);
  border-left: 2px solid var(--forest);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
}

.ledger {
  border-top: 1px solid var(--line-strong);
}

.ledger__row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.55fr) minmax(0, 1fr) auto;
  gap: var(--space-3) var(--space-5);
  align-items: start;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.ledger__key h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.ledger__text {
  max-width: 52ch;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.ledger__text strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.ledger__tag {
  align-self: start;
  padding: 0.26rem 0.44rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  line-height: 1.3;
  color: var(--forest);
  white-space: nowrap;
}

.reject-note {
  max-width: 72ch;
  margin-top: var(--space-6);
  font-size: var(--text-2xs);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Reward ---------- */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.reward {
  padding-top: var(--space-5);
  border-top: 2px solid var(--ink);
}

.reward__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}

.reward__head h3 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.reward__head span {
  font-size: var(--text-2xs);
  color: var(--muted);
  text-align: right;
}

.reward > p {
  max-width: 48ch;
  margin-top: var(--space-3);
  font-size: 0.92rem;
  color: var(--muted);
}

.level-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.level-track::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 15%;
  right: 15%;
  height: 1px;
  background: var(--line-strong);
}

.level {
  position: relative;
  text-align: center;
}

.level__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}

.level__badge img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.level__name {
  margin-top: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.level__xp {
  font-size: var(--text-2xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.level-track__note {
  margin-top: var(--space-5);
  font-size: var(--text-2xs);
  line-height: 1.55;
  color: var(--muted);
}

.voucher {
  max-width: 22rem;
  margin-top: var(--space-6);
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-receipt);
  transform: rotate(-1deg);
}

.voucher__label {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.voucher__title {
  margin-top: 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.voucher__price {
  margin-top: 0.5rem;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.voucher__points {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--forest);
}

.voucher__note {
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  font-size: var(--text-2xs);
  line-height: 1.5;
  color: var(--muted);
}

.rule-note {
  max-width: 82ch;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

.rule-note strong {
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- Ekonomi & mitra ---------- */
.economy__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.economy__steps h3 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.steps {
  margin-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
}

.step__num {
  padding-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--lime);
}

.step__title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--paper);
}

.step__text {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.economy__cta {
  margin-top: var(--space-6);
}

.economy__note {
  max-width: 40ch;
  margin-top: var(--space-4);
  font-size: var(--text-2xs);
  line-height: 1.55;
  color: var(--on-dark-muted);
}

.payout {
  width: 100%;
  max-width: 28rem;
  justify-self: end;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-receipt);
  transform: rotate(1deg);
}

.payout__label {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.payout__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: 0.55rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed var(--line);
}

.payout__head span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.payout__price {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.payout__rows {
  margin-top: 0.35rem;
}

.payout__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.34rem;
  border-bottom: 1px dashed var(--line);
}

.payout__rows dt {
  font-size: 0.7rem;
  color: var(--muted);
}

.payout__rows dd {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.payout__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: var(--space-4);
}

.payout__track span {
  padding-top: 0.45rem;
  border-top: 2px solid var(--line);
  font-size: 0.6rem;
  line-height: 1.3;
  color: var(--muted);
}

.payout__track .is-done {
  border-top-color: var(--forest);
  color: var(--forest);
}

.payout__track .is-current {
  border-top-color: var(--amber);
  color: var(--amber);
  font-weight: 700;
}

.payout__foot {
  margin-top: var(--space-4);
  padding-top: 0.6rem;
  border-top: 1px dashed var(--line);
  font-size: 0.66rem;
  line-height: 1.55;
  color: var(--muted);
}

.funding {
  display: grid;
  grid-template-columns: minmax(9rem, 0.32fr) minmax(0, 1fr);
  gap: var(--space-4) var(--space-8);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-dark);
}

.funding h3 {
  font-size: 1.1rem;
  color: var(--paper);
}

.funding p {
  max-width: 74ch;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

/* ---------- Fitur ---------- */
.feature-rows {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.52fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
}

.feature-row:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.52fr);
}

.feature-row:nth-child(even) .feature-row__media {
  order: 2;
}

.feature-row__media {
  margin: 0;
  padding: clamp(0.4rem, 1vw, 0.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
  justify-self: center;
  width: 100%;
  max-width: 220px;
}

.feature-row:nth-child(even) .feature-row__media {
  justify-self: center;
}

.feature-row__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.feature-row__zoom:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.feature-row__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.feature-row__zoom:hover img,
.feature-row__zoom:focus-visible img {
  transform: scale(1.04);
  box-shadow: var(--shadow-receipt);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 33, 23, 0.82);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(92vw, 520px);
  max-height: 92vh;
  margin: 4vh auto;
  padding: var(--space-4);
}

.lightbox__close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.lightbox__close:hover {
  background: var(--paper-soft);
}

.lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 84vh;
  height: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-phone);
}

.feature-row__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

.feature-row h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.feature-row__copy > p {
  margin-top: var(--space-3);
  max-width: 56ch;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--muted);
}

.feature-row__list {
  display: grid;
  gap: 0.5rem;
  margin-top: var(--space-5);
  padding-left: 1.1rem;
  list-style: disc;
}

.feature-row__list li {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.feature-row__list li::marker {
  color: var(--forest);
}

/* ---------- Unduh ---------- */
.download__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink);
  --color-focus: var(--ink);
}

.download__title {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
}

.download__lead {
  max-width: 44ch;
  margin-top: var(--space-4);
  color: var(--ink-soft);
}

.download__closing {
  max-width: 42ch;
  margin-top: var(--space-4);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--forest-deep);
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-6);
}

.download__size {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest-deep);
  font-variant-numeric: tabular-nums;
}

.download__hint {
  max-width: 54ch;
  margin-top: var(--space-4);
  font-size: var(--text-2xs);
  line-height: 1.6;
  color: var(--ink-soft);
}

.download__qr {
  justify-self: center;
  text-align: center;
}

.qr__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.qr__box {
  width: clamp(150px, 18vw, 190px);
  aspect-ratio: 1;
  margin: var(--space-4) auto 0;
  padding: var(--space-3);
  border: 1px solid rgba(12, 33, 23, 0.28);
  border-radius: var(--radius-sm);
  background: #fff;
}

.qr__box svg {
  width: 100%;
  height: 100%;
}

.qr__box:empty::after {
  content: "QR";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.75rem;
}

.qr__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--space-2);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}

.qr__note {
  max-width: 24ch;
  margin: var(--space-3) auto 0;
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.download__spec {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-strip {
  padding: var(--space-4) var(--space-3) var(--space-4) 0;
  border-right: 1px solid var(--line);
}

.spec-strip:not(:first-child) {
  padding-left: var(--space-3);
}

.spec-strip:last-of-type {
  border-right: 0;
}

.spec-strip dt {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.spec-strip dd {
  margin-top: 0.15rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sha {
  grid-column: 1 / -1;
  padding: var(--space-3) 0;
  border-top: 1px dashed var(--line);
  font-size: var(--text-2xs);
  color: var(--muted);
}

.sha summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 600;
}

.sha code {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.55;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: 48rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--forest);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item summary:hover {
  color: var(--forest);
}

.faq__item p {
  max-width: 62ch;
  padding-bottom: var(--space-5);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.faq__note {
  margin-top: var(--space-6);
  font-size: var(--text-2xs);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-6);
  border-top: 2px solid var(--lime);
  background: var(--ink);
  color: var(--paper);
  --color-focus: var(--lime);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__mark {
  width: 36px;
  height: 36px;
}

.footer__name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--paper);
}

.footer__tagline {
  max-width: 34ch;
  margin-top: var(--space-4);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--paper);
}

.footer__list {
  display: grid;
  gap: 0.45rem;
  margin-top: var(--space-4);
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

.footer__list a {
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: var(--text-2xs);
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.footer__source {
  max-width: 70ch;
  margin-top: var(--space-2);
  font-size: 0.64rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
  opacity: 0.78;
}

.footer__top {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
}

.footer__top:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Gerak ---------- */
.hero__copy > * {
  animation: rise var(--duration-slow) var(--ease-out) both;
}

.hero__copy > :nth-child(1) {
  animation-delay: 40ms;
}

.hero__copy > :nth-child(2) {
  animation-delay: 120ms;
}

.hero__copy > :nth-child(3) {
  animation-delay: 200ms;
}

.hero__copy > :nth-child(4) {
  animation-delay: 260ms;
}

.hero__copy > :nth-child(5) {
  animation-delay: 320ms;
}

.hero__stage {
  animation: rise 800ms var(--ease-out) 100ms both;
}

.receipt__stamp {
  animation: stamp 560ms var(--ease-spring) 950ms both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-14deg) scale(1.35);
  }
  to {
    opacity: 0.9;
    transform: rotate(-7deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsif ---------- */
@media (max-width: 1120px) {
  .hero__stage {
    min-height: 550px;
  }

  .phone {
    width: min(64%, 286px);
    height: 526px;
  }

  .receipt {
    width: min(20rem, 70%);
  }

  .action {
    padding-inline: var(--space-5);
  }
}

@media (max-width: 980px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--space-4) var(--gutter) var(--space-6);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow-receipt);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity var(--duration-base) var(--ease-out),
      transform var(--duration-base) var(--ease-out),
      visibility var(--duration-base) var(--ease-out);
  }

  .nav__links[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__link {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    width: 100%;
    margin: var(--space-5) 0 0;
  }

  .nav__toggle {
    display: grid;
    place-items: center;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }

  .hero__copy {
    max-width: 42rem;
  }

  .hero__stage {
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 0 0 var(--space-4);
  }

  .hero__city {
    inset: 0 0 30% 0;
    opacity: 0.5;
  }

  .phone {
    width: min(72%, 300px);
    height: 540px;
    margin: 0;
  }

  .receipt {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(22rem, 92%);
    margin-top: -3rem;
  }

  .split-head,
  .verify__grid,
  .reward-grid,
  .economy__grid,
  .download__panel,
  .funding {
    grid-template-columns: minmax(0, 1fr);
  }

  .verify__head {
    position: static;
  }

  .verify__head h2 {
    max-width: 18ch;
  }

  .verify__aside {
    max-width: 52ch;
  }

  .payout {
    justify-self: start;
    max-width: 30rem;
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-row:nth-child(even) .feature-row__media {
    order: 0;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:last-child {
    grid-column: 1 / -1;
    max-width: 30rem;
  }

  .action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .action {
    padding-inline: 0;
    border-left: 0;
  }

  .action + .action {
    border-top: 1px solid var(--line);
  }

  .loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .loop::before {
    display: none;
  }

  .download__spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-strip:nth-child(2) {
    border-right: 0;
  }

  .spec-strip:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 640px) {
  .spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec__item:nth-child(2n) {
    border-right: 0;
  }

  .spec__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions .text-link {
    justify-content: center;
  }

  .stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat:last-child {
    grid-column: auto;
  }

  .ledger__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .ledger__tag {
    justify-self: start;
  }

  .level__badge {
    width: 56px;
    height: 56px;
  }

  .level__badge img {
    width: 46px;
    height: 46px;
  }

  .level-track::before {
    top: 1.75rem;
  }

  .payout {
    transform: none;
  }

  .funding {
    grid-template-columns: minmax(0, 1fr);
  }

  .download__panel {
    padding: var(--space-6);
  }

  .download__qr {
    justify-self: start;
    text-align: left;
  }

  .qr__box {
    margin-inline: 0;
  }

  .qr__note {
    margin-inline: 0;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .receipt {
    width: 100%;
    margin-top: -2.2rem;
  }

  .loop {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    position: relative;
    padding-left: 2.8rem;
  }

  .loop::before {
    display: block;
    top: 0;
    bottom: 0;
    left: 1.05rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .loop__step {
    padding-top: 0;
    padding-bottom: var(--space-6);
  }

  .loop__num {
    top: 0;
    left: -2.8rem;
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(2.7rem, 13vw, 3.2rem);
  }

  .receipt__mission {
    padding-right: 4.6rem;
  }

  .receipt__stamp {
    font-size: 0.52rem;
  }

  .feature-rows {
    gap: var(--space-10);
  }

  .download__spec {
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-strip {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .spec-strip:last-of-type {
    border-bottom: 0;
  }
}
