/* ==========================================================================
   KedaiKeluarga — landing page
   Struktur:
   1.  Design tokens
   2.  Reset & base
   3.  Utilities (container, section-head, visually-hidden, skip-link)
   4.  Buttons & links
   5.  Header & navigasi
   6.  Hero (mockup toko + struk)
   7.  Trust strip
   8.  Fitur (value rows + mini visual)
   9.  Cara kerja
   10. Testimoni
   11. Harga (toggle + paket)
   12. FAQ
   13. CTA akhir
   14. Footer
   15. Modal checkout
   16. Motion & prefers-reduced-motion
   17. Media queries
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
  /* Warna: 60% terang (fog/white), 30% navy, 10% teal + mint.
     Bukan pola "gelap pekat + satu neon": navy = tinta buku kas yang digantikan produk ini,
     teal/mint = warna pembayaran digital (QRIS & dompet digital) yang familier buat UMKM,
     fog = kertas struk. Dominan halaman tetap terang; mint-nya pastel, bukan neon. */
  --ink: #071B2B;          /* navy utama: hero, section gelap, teks di area terang */
  --fog: #EEEEEE;          /* latar dominan area terang */
  --white: #FFFFFF;        /* panel & teks di atas navy */
  --teal: #167D8D;         /* aksen: CTA utama, border, ikon */
  --teal-deep: #0E5F6B;    /* varian aksen untuk teks link & hover (kontras AA) */
  --mint: #B9E4E8;         /* aksen pendukung: highlight, isi lembut, fokus di area gelap */

  /* Teks turunan (tetap lolos AA di atas masing-masing latar) */
  --muted: #3E5561;        /* teks sekunder di area terang: 7.8:1 vs white */
  --muted-dark: #9DB4BF;   /* teks sekunder di area gelap: 8.1:1 vs ink */

  /* Tipografi */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --fs-display: clamp(2.5rem, 1.55rem + 4.4vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.9vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-lead: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-tiny: 0.8125rem;

  /* Spasi */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);

  /* Bentuk & kedalaman */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 999px;

  /* Bayangan navy (bukan abu-abu default), dipakai hemat */
  --shadow-panel: 0 24px 48px -24px rgba(7, 27, 43, 0.35);
  --shadow-receipt: 0 18px 40px -18px rgba(7, 27, 43, 0.45);
  --shadow-modal: 0 32px 64px -24px rgba(7, 27, 43, 0.5);

  /* Garis */
  --line: rgba(22, 125, 141, 0.4);
  --line-dark: rgba(185, 228, 232, 0.22);

  /* Tekstur grain untuk area navy (kedalaman, bukan animasi) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");

  /* Fokus keyboard */
  --ring: var(--teal-deep);

  --container: 72rem;
}

/* 2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--fog);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-weight: 700;
}

h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { overflow-wrap: break-word; }

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

ul[class], ol[class] { list-style: none; padding: 0; }

a { color: var(--teal-deep); }
a:hover { color: var(--teal); }

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

[hidden] { display: none !important; }

[id] { scroll-margin-top: 5.5rem; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Target skip link: landmark yang menerima fokus programatik, bukan kontrol interaktif */
main:focus,
main:focus-visible { outline: none; }

/* Area gelap pakai ring terang supaya tetap terlihat */
.dark, .site-header, .site-footer { --ring: var(--mint); }

::selection {
  background: var(--teal);
  color: var(--white);
}

/* 3. Utilities
   ========================================================================== */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container--narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -4.5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible { top: 0; }

.section-head { max-width: 40rem; margin-bottom: var(--space-6); }

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Pemisah halus: sobekan struk pendek. Tidak menyiratkan urutan, hanya penanda visual */
.section-head::before {
  content: "";
  display: block;
  width: 2.5rem;
  margin-bottom: var(--space-3);
  border-top: 2px dashed var(--teal);
}

.section-head--center::before { margin-inline: auto; }

.dark .section-head::before { border-color: var(--mint); }

.section-head h2 { margin-bottom: var(--space-3); }

.section-head p {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.dark .section-head p { color: var(--muted-dark); }

/* 4. Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease, translate 0.12s ease, box-shadow 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary:hover,
.btn-mint:hover {
  translate: 0 -1px;
  box-shadow: 0 8px 16px -8px rgba(7, 27, 43, 0.5);
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: var(--fs-lead);
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-mint {
  background: var(--mint);
  color: var(--ink);
}

.btn-mint:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--mint);
  color: var(--mint);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(185, 228, 232, 0.12);
  color: var(--white);
}

.btn-outline {
  border-color: var(--teal-deep);
  color: var(--teal-deep);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(185, 228, 232, 0.4);
  color: var(--teal-deep);
}

/* 5. Header & navigasi
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 27, 43, 0.92);
  -webkit-backdrop-filter: blur(8px) saturate(1.4);
  backdrop-filter: blur(8px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--white);
}

.brand:hover { color: var(--white); }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-name span { color: var(--mint); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: transparent;
  color: var(--mint);
}

.menu-toggle-box {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 0.875rem;
}

.menu-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, translate 0.25s ease, rotate 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.menu-toggle-box span:nth-child(1) { top: 0; }
.menu-toggle-box span:nth-child(2) { top: 50%; translate: 0 -50%; }
.menu-toggle-box span:nth-child(3) { bottom: 0; }

.menu-toggle.is-active .menu-toggle-box span:nth-child(1) {
  top: 50%;
  translate: 0 -50%;
  rotate: 45deg;
}

.menu-toggle.is-active .menu-toggle-box span:nth-child(2) { opacity: 0; }

.menu-toggle.is-active .menu-toggle-box span:nth-child(3) {
  bottom: auto;
  top: 50%;
  translate: 0 -50%;
  rotate: -45deg;
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--line-dark);
}

.menu-inner {
  min-height: 0;
  overflow: hidden;
  /* saat menu tertutup, konten keluar dari urutan Tab (delay tunggu animasi lipat selesai) */
  visibility: hidden;
  transition: visibility 0s 0.3s;
}

.site-nav.is-open .menu-inner {
  visibility: visible;
  transition-delay: 0s;
}

.nav-list a {
  display: block;
  padding: 0.875rem 1.25rem;
  color: var(--muted-dark);
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--mint);
  border-left-color: var(--teal);
}

.nav-list a[aria-current] { color: var(--mint); }

.site-nav .btn {
  margin: 0.75rem 1.25rem 1.25rem;
}

body.menu-locked { overflow: hidden; }

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) var(--section-pad);
  background-color: var(--ink);
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    var(--noise),
    linear-gradient(rgba(185, 228, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 228, 232, 0.05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(46rem 30rem at 85% 8%, rgba(22, 125, 141, 0.32), transparent 62%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

/* Penekanan editorial: garis putus di bawah frasa kunci, bukan kata beda warna */
.ul-dash {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.hero-copy .lead {
  margin-top: var(--space-4);
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--muted-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero-note {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--muted-dark);
}

/* Mockup toko + struk */
.hero-visual {
  /* Variabel tilt 3D: di-update JS mengikuti pointer (fallback = pose statis) */
  --rx: 1.5deg;
  --ry: -4deg;
  --sx: 0px;
  --sy: 0px;
  position: relative;
  margin-bottom: var(--space-5);
  perspective: 1200px;
}

/* Bayangan lantai ambient di bawah mockup, ikut bergeser saat panel miring */
.hero-visual::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 2%;
  bottom: -1.25rem;
  height: 3rem;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 50%, rgba(2, 12, 20, 0.55), transparent 70%);
  filter: blur(14px);
  transform: translate(var(--sx, 0px), var(--sy, 0px));
}

.storefront {
  position: relative;
  z-index: 1;
  max-width: 24rem;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  color: var(--ink);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-origin: 50% 40%;
  will-change: transform;
}

/* Rim light tipis di tepi atas panel */
.storefront::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(185, 228, 232, 0.55), transparent);
}

.store-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.75rem 1rem;
  background: var(--fog);
  border-bottom: 1px solid rgba(22, 125, 141, 0.25);
}

.store-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
}

.store-live {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--ink);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.store-body { padding: 0.75rem; display: grid; gap: 0.5rem; }

.store-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid rgba(22, 125, 141, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.store-tile:hover { border-color: var(--teal); }

.store-tile[aria-pressed="true"] {
  border-color: var(--teal);
  background: rgba(185, 228, 232, 0.28);
}

.tile-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.375rem;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.15s ease, scale 0.15s ease;
}

.store-tile[aria-pressed="true"] .tile-check {
  opacity: 1;
  scale: 1;
}

.tile-check svg { width: 0.625rem; height: 0.625rem; }

.demo-hint {
  padding: 0.625rem 1rem;
  border-top: 1px solid rgba(22, 125, 141, 0.25);
  background: var(--fog);
  font-size: var(--fs-tiny);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.tile-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--mint);
  color: var(--teal-deep);
}

.tile-icon svg { width: 1.25rem; height: 1.25rem; }

.tile-info { display: grid; gap: 0.125rem; min-width: 0; }

.tile-info strong {
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-info em {
  font-style: normal;
  font-size: var(--fs-tiny);
  color: var(--muted);
}

.tile-stock {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(185, 228, 232, 0.55);
  color: var(--teal-deep);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.tile-stock-low {
  background: rgba(22, 125, 141, 0.14);
  color: var(--teal-deep);
}

/* Blob "cair" statis di belakang mockup: cahaya untuk direfraksikan kaca */
.liquid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.liquid span {
  position: absolute;
  border-radius: 58% 42% 55% 45% / 45% 55% 44% 56%;
  filter: blur(44px);
  opacity: 0.55;
}

.liquid .blob-teal {
  width: 15rem;
  height: 11rem;
  top: -2.5rem;
  right: -2rem;
  background: radial-gradient(circle at 35% 35%, rgba(22, 125, 141, 0.9), rgba(22, 125, 141, 0.15));
  rotate: -14deg;
}

.liquid .blob-mint {
  width: 12rem;
  height: 9rem;
  bottom: 6rem;
  left: -3rem;
  background: radial-gradient(circle at 60% 40%, rgba(185, 228, 232, 0.75), rgba(185, 228, 232, 0.1));
  rotate: 22deg;
}

/* Chip melayang di sekitar mockup (bagian orkestrasi hero) */
.toast {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: var(--fs-tiny);
  font-weight: 600;
  box-shadow: var(--shadow-receipt);
  animation: toast-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.35) both;
}

.toast--order {
  top: -1.25rem;
  left: -0.75rem;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--ink);
  rotate: -2deg;
  transform: translateZ(90px) rotateX(calc(var(--rx) * 0.35)) rotateY(calc(var(--ry) * 0.35));
  animation-delay: 1.95s;
}

.toast--order .toast-ic { background: var(--mint); color: var(--ink); }

.toast--stock {
  /* menggantung di celah bawah panel: tidak menutupi tombol produk maupun hint */
  bottom: -2.75rem;
  left: clamp(-1rem, -3vw, -0.25rem);
  background: rgba(185, 228, 232, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink);
  rotate: 1.5deg;
  transform: translateZ(70px) rotateX(calc(var(--rx) * 0.4)) rotateY(calc(var(--ry) * 0.4));
  animation-delay: 2.1s;
}

.toast--stock .toast-ic { background: var(--ink); color: var(--mint); }

.toast-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}

.toast-ic svg { width: 0.875rem; height: 0.875rem; }

.toast-txt strong {
  display: block;
  line-height: 1.25;
}

/* Struk: motif khas KedaiKeluarga */
.receipt {
  position: absolute;
  right: clamp(-0.5rem, -2vw, -1.25rem);
  bottom: -1.5rem;
  z-index: 2;
  width: min(16rem, 72%);
  padding: 1rem 1.1rem 0.9rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top: 2px dashed var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-receipt);
  transform-origin: top center;
  rotate: 2deg;
  transform: translateZ(46px) rotateX(calc(var(--rx) * 0.5)) rotateY(calc(var(--ry) * 0.5));
  will-change: transform;
}

.receipt-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  margin-bottom: 0.625rem;
}

.receipt-list {
  padding: 0;
  margin-bottom: 0.625rem;
}

/* Baris struk hasil interaksi pengguna */
@keyframes row-pop {
  from { opacity: 0; translate: 0 -6px; scale: 0.97; }
}

.receipt-row.is-new { animation: row-pop 0.22s ease-out; }

@keyframes row-out {
  to { opacity: 0; translate: 0 -4px; scale: 0.96; }
}

.receipt-row.is-out { animation: row-out 0.2s ease-in both; }

@keyframes total-flash {
  0% { background: var(--mint); }
  100% { background: transparent; }
}

.receipt-total strong {
  padding: 0 0.25rem;
  border-radius: 2px;
}

#receipt-total.is-flash { animation: total-flash 0.4s ease; }

.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  font-size: var(--fs-tiny);
  margin-bottom: 0.375rem;
}

.receipt-row strong { font-weight: 600; white-space: nowrap; }

.receipt-item { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.receipt-qty { color: var(--muted); flex-shrink: 0; }

.leader {
  flex: 1;
  border-bottom: 2px dotted rgba(22, 125, 141, 0.4);
  translate: 0 -0.2em;
}

.receipt-total {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1.5px solid var(--ink);
  font-size: var(--fs-small);
}

.receipt-total strong { font-weight: 700; white-space: nowrap; }

.receipt-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--ink);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.receipt-paid svg { width: 0.875rem; height: 0.875rem; }

.receipt-thanks {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.barcode {
  margin-top: 0.625rem;
  height: 1.25rem;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px
  );
}

/* 7. Trust strip: band statistik + logo wall
   ========================================================================== */
.trust-strip {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-7);
}

.stat dt {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--mint);
}

.stat dd {
  margin: 0.25rem 0 0;
  font-size: var(--fs-small);
  color: var(--muted-dark);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-dark);
}

.trust-logos li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.trust-logos li svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  opacity: 0.8;
}

/* 8. Fitur / value props
   ========================================================================== */
.value {
  padding-block: var(--section-pad);
  background: var(--fog);
}

.value-row {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

.value-row + .value-row {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 2px dashed rgba(22, 125, 141, 0.25);
}

.value-copy h3 { margin-bottom: var(--space-3); }

.value-copy p {
  color: var(--muted);
  max-width: 32rem;
}

/* Panel mini: sengaja berbeda dari card biasa (motif garis putus) */
.value-visual {
  padding: var(--space-4);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

/* Variasi chrome antar panel (tidak seragam total): baris 2 bergaya struk, baris 3 bertint */
.value-row--flip .value-visual { border-style: dashed; }

.value-row:nth-of-type(3) .value-visual {
  background: linear-gradient(180deg, var(--white) 0%, rgba(185, 228, 232, 0.18) 100%);
}

.mini-catalog,
.mini-chart {
  display: grid;
  gap: var(--space-3);
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(22, 125, 141, 0.25);
}

.mini-chip {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(185, 228, 232, 0.55);
  color: var(--teal-deep);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2fr 1.5rem;
  align-items: center;
  gap: var(--space-3);
}

.mini-name {
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stockbar {
  height: 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(22, 125, 141, 0.15);
  overflow: hidden;
}

.stockbar span {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: var(--radius-pill);
  background: var(--teal);
}

.stockbar-low span { background: var(--teal-deep); }

.mini-stock {
  text-align: right;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--teal-deep);
}

.mini-stock-low { color: var(--ink); }

/* Visual alur WhatsApp */
.mini-wa {
  display: grid;
  gap: 0.625rem;
  font-size: var(--fs-small);
}

.bubble {
  justify-self: start;
  max-width: 80%;
  padding: 0.625rem 0.875rem;
  background: var(--fog);
  border: 1px solid rgba(22, 125, 141, 0.2);
  border-radius: var(--radius) var(--radius) var(--radius) 0.25rem;
}

.bubble-me {
  justify-self: end;
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  border-radius: var(--radius) var(--radius) 0.25rem var(--radius);
}

.mini-receipt {
  margin-top: 0.375rem;
  padding: 0.75rem 0.875rem;
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius);
}

.mini-receipt p:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
}

.mini-receipt-status {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  color: var(--teal-deep);
  font-weight: 600;
}

.mini-receipt-status svg { width: 0.875rem; height: 0.875rem; }

/* Visual grafik */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 8rem;
  padding-top: 1rem;
  border-bottom: 1.5px solid rgba(22, 125, 141, 0.3);
}

.chart-bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(22, 125, 141, 0.25);
}

.chart-bar-top {
  background: var(--teal);
}

.chart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--fs-small);
  color: var(--muted);
}

.chart-summary strong {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--ink);
}

.chart-note {
  font-size: var(--fs-tiny);
  color: var(--teal-deep);
  font-weight: 600;
}

/* Tabel perbandingan */
.compare {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 2px dashed rgba(22, 125, 141, 0.25);
}

.compare-title {
  margin-bottom: var(--space-4);
  text-align: center;
}

.compare-scroll {
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-panel);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.compare-table th,
.compare-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1.5px dashed rgba(22, 125, 141, 0.25);
}

.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: 0; }

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-tiny);
  letter-spacing: 0.02em;
  color: var(--muted);
}

.compare-table thead .is-brand {
  background: var(--mint);
  color: var(--ink);
  font-size: var(--fs-small);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.compare-table .is-brand {
  background: rgba(185, 228, 232, 0.5);
  color: var(--teal-deep);
  font-weight: 600;
}

/* 9. Cara kerja
   ========================================================================== */
.steps {
  position: relative;
  padding-block: var(--section-pad);
  background-color: var(--ink);
  background-image: var(--noise);
  color: var(--white);
}

.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(185, 228, 232, 0.35);
}

.steps::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(40rem 26rem at 12% 100%, rgba(22, 125, 141, 0.22), transparent 62%);
}

.steps .container {
  position: relative;
  z-index: 1;
}

.steps-grid {
  position: relative;
  display: grid;
  gap: var(--space-6);
}

.step { position: relative; }

/* Stempel struk: nomor langkah memakai bahasa visual struk, bukan lingkaran generik */
.step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-4);
}

.step-number {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px dashed var(--mint);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--mint);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  rotate: -2deg;
}

.step-chip {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--ink); /* solid: garis penghubung dashed tidak tembus di belakang */
  border: 1px solid var(--line-dark);
  color: var(--mint);
}

.step-chip svg { width: 1.125rem; height: 1.125rem; }

.step h3 { margin-bottom: var(--space-2); }

.step p { color: var(--muted-dark); max-width: 22rem; }

.step-meta {
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--mint);
}

/* 10. Testimoni
   ========================================================================== */
.testimonials {
  padding-block: var(--section-pad);
  background: var(--fog);
}

.quotes {
  display: grid;
  gap: var(--space-4);
}

.quote {
  margin: 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.quote blockquote p {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 500;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: var(--space-4);
}

.quote-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-weight: 700;
}

.quote--featured .quote-avatar {
  background: var(--ink);
  color: var(--mint);
}

.quote-meta { display: grid; gap: 0.125rem; }

.quote-name {
  font-weight: 600;
  font-size: var(--fs-small);
}

.quote-shop {
  font-size: var(--fs-tiny);
  color: var(--muted);
}

.quote--featured {
  background: var(--mint);
  border: none;
}

.quote--featured .quote-shop { color: var(--teal-deep); }

.quote--line {
  background: var(--white);
  border: 1px solid rgba(22, 125, 141, 0.3);
  border-left: 4px solid var(--teal);
}

.quote--dashed {
  background: var(--white);
  border: 1.5px dashed var(--teal);
}

/* 11. Harga
   ========================================================================== */
.pricing {
  padding-block: var(--section-pad);
  background: var(--white);
}

.billing {
  position: relative;
  display: flex;
  width: min(23rem, 100%);
  margin-inline: auto;
  margin-bottom: var(--space-6);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.billing::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  background: var(--teal);
  border-radius: var(--radius-pill);
  transition: translate 0.25s ease;
}

.billing.is-yearly::before { translate: 100% 0; }

.billing-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0; /* basis sama agar thumb ::before 50% selalu sejajar */
  flex-wrap: wrap;
  gap: 0.5rem;
  row-gap: 0.125rem;
  padding: 0.625rem 0.75rem;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--teal-deep);
  transition: color 0.2s ease;
}

.billing-btn[aria-pressed="true"] { color: var(--white); }

.badge-save {
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.billing-btn[aria-pressed="true"] .badge-save {
  background: var(--ink);
  color: var(--mint);
}

.plans {
  display: grid;
  gap: var(--space-4);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.plan--dashed { border-style: dashed; }

.plan--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.plan-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  translate: -50% 0;
  padding: 0.25rem 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--mint);
  color: var(--ink);
  font-size: var(--fs-tiny);
  font-weight: 600;
  white-space: nowrap;
}

.plan-desc {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.plan--featured .plan-desc { color: var(--muted-dark); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-top: var(--space-4);
}

.plan-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-amount,
.plan-billing-note {
  transition: translate 0.16s ease, opacity 0.16s ease;
}

.plan-amount.is-swapping,
.plan-billing-note.is-swapping {
  translate: 0 6px;
  opacity: 0;
}

.plan-billing-note {
  margin-top: 0.5rem;
  font-size: var(--fs-tiny);
  color: var(--muted);
}

.plan--featured .plan-billing-note { color: var(--muted-dark); }

.plan-cycle {
  font-size: var(--fs-small);
  color: var(--muted);
}

.plan--featured .plan-cycle { color: var(--muted-dark); }

.plan-list {
  display: grid;
  gap: 0.625rem;
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
  font-size: var(--fs-small);
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.plan-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.95rem;
  margin: 0.05rem 0.5rem 0 0.15rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  rotate: 42deg;
  color: var(--teal-deep);
}

.plan--featured .plan-list li::before { color: var(--mint); }

.plan .btn { margin-top: auto; }

.pricing-note {
  margin-top: var(--space-5);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* 12. FAQ
   ========================================================================== */
.faq {
  padding-block: var(--section-pad);
  background: var(--fog);
}

.faq-list {
  border-top: 2px dashed rgba(22, 125, 141, 0.35);
}

.faq-item { border-bottom: 1px solid rgba(22, 125, 141, 0.3); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.25rem 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-item summary:hover { color: var(--teal-deep); }

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

.faq-item summary::marker { content: ""; }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--teal-deep);
  border-radius: 2px;
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  translate: 0 -50%;
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  translate: -50% 0;
  transition: rotate 0.25s ease;
}

.faq-item[open] .faq-icon::after { rotate: 90deg; }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item[open] .faq-body { grid-template-rows: 1fr; }

.faq-body > div { overflow: hidden; }

.faq-body p {
  padding: 0 0.25rem 1.25rem;
  color: var(--muted);
  max-width: 42rem;
}

/* 13. CTA akhir
   ========================================================================== */
.final-cta {
  position: relative;
  padding-block: var(--section-pad);
  background-color: var(--ink);
  background-image: var(--noise);
  color: var(--white);
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(185, 228, 232, 0.35);
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(40rem 26rem at 88% 100%, rgba(22, 125, 141, 0.22), transparent 62%);
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 { max-width: 20ch; margin-inline: auto; }

.final-cta p {
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  color: var(--muted-dark);
}

.cta-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

.cta-guarantees {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.cta-guarantees li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted-dark);
}

.cta-guarantees svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--mint);
  flex-shrink: 0;
}

.cta-note {
  font-size: var(--fs-small) !important;
}

/* 14. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--ink);
  background-image: var(--noise);
  color: var(--muted-dark);
  padding-top: var(--space-7);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}

.footer-brand p {
  margin-top: var(--space-3);
  max-width: 20rem;
  font-size: var(--fs-small);
}

.footer-col h2 {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mint);
  margin-bottom: var(--space-3);
}

.footer-col ul {
  display: grid;
  gap: 0.625rem;
}

.footer-col a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: var(--fs-small);
}

.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line-dark);
  font-size: var(--fs-tiny);
}

/* 15. Modal checkout
   ========================================================================== */
body.modal-locked { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: rgba(7, 27, 43, 0.62);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.is-open { opacity: 1; }

.checkout-modal {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(85vh, 44rem);
  overflow-y: auto;
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.25s ease, translate 0.25s ease;
}

.modal-backdrop.is-open .checkout-modal {
  opacity: 1;
  translate: 0 0;
}

.checkout-modal h2,
.checkout-modal h3 {
  margin-bottom: var(--space-3);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--fog);
  color: var(--ink);
}

.modal-close svg { width: 1rem; height: 1rem; }

.order-summary {
  margin-bottom: var(--space-4);
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}

/* Gema motif barcode: struk hadir di momen checkout */
.order-summary::after {
  content: "";
  display: block;
  height: 0.875rem;
  margin-top: 0.75rem;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 5px,
    var(--ink) 5px 6px,
    transparent 6px 9px
  );
  opacity: 0.85;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.25rem;
  font-size: var(--fs-small);
}

.order-row dt { color: var(--muted); }

.order-row dd {
  margin: 0;
  font-weight: 600;
}

.order-row--total {
  margin-top: 0.5rem;
  padding-top: 0.625rem;
  border-top: 1.5px solid var(--ink);
  font-size: var(--fs-body);
}

.order-row--total dt { color: var(--ink); font-weight: 600; }

.order-row--total dd {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
}

.pay-methods {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: 0.5rem;
}

.pay-methods legend {
  padding: 0;
  margin-bottom: 0.375rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(22, 125, 141, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pay-option:has(input:checked) {
  border-color: var(--teal);
  background: rgba(185, 228, 232, 0.3);
}

.pay-option input {
  accent-color: var(--teal);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.pay-option input:focus-visible {
  outline-offset: 3px;
}

.pay-label {
  display: grid;
  gap: 0.1rem;
}

.pay-label strong { font-size: var(--fs-small); }

.pay-label em {
  font-style: normal;
  font-size: var(--fs-tiny);
  color: var(--muted);
}

.modal-note {
  margin-top: var(--space-3);
  text-align: center;
  font-size: var(--fs-tiny);
  color: var(--muted);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
}

.success-mark svg { width: 1.75rem; height: 1.75rem; }

/* 16. Motion
   ==========================================================================
   Satu-satunya orkestrasi animasi: urutan reveal di hero saat pertama dimuat.
   Animasi lain hanya merespons aksi user (menu, toggle, FAQ, modal, tombol). */

@keyframes rise-in {
  from { opacity: 0; translate: 0 1.25rem; }
  to { opacity: 1; translate: 0 0; }
}

.hero-copy > * {
  animation: rise-in 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.16s; }
.hero-copy > :nth-child(3) { animation-delay: 0.27s; }
.hero-copy > :nth-child(4) { animation-delay: 0.38s; }

@keyframes panel-in {
  from { opacity: 0; translate: 0 1.5rem; }
  to { opacity: 1; translate: 0 0; }
}

.storefront {
  animation: panel-in 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) 0.45s both;
}

/* Struk "tercetak" dari atas ke bawah */
@keyframes print-in {
  0% { scale: 1 0.06; opacity: 0.4; }
  60% { opacity: 1; }
  100% { scale: 1 1; opacity: 1; }
}

.receipt {
  animation: print-in 0.5s cubic-bezier(0.3, 0.7, 0.3, 1) 0.72s both;
}

@keyframes row-in {
  from { opacity: 0; translate: 0 -6px; }
  to { opacity: 1; translate: 0 0; }
}

.receipt > * { animation: row-in 0.3s ease-out both; }
.receipt > :nth-child(1) { animation-delay: 1.05s; }
.receipt > :nth-child(2) { animation-delay: 1.15s; }
.receipt > :nth-child(3) { animation-delay: 1.25s; }
.receipt > :nth-child(4) { animation-delay: 1.35s; }
.receipt > :nth-child(5) { animation-delay: 1.47s; }
.receipt > :nth-child(6) { animation-delay: 1.57s; }
.receipt > :nth-child(7) { animation-delay: 1.67s; }

/* Baris struk ikut orkestrasi load (hanya saat boot; JS copot kelasnya setelah interaksi pertama) */
.receipt--boot li:nth-child(1) { animation: row-in 0.3s ease-out 1.28s both; }
.receipt--boot li:nth-child(2) { animation: row-in 0.3s ease-out 1.36s both; }

@keyframes toast-in {
  from { opacity: 0; translate: 0 12px; scale: 0.9; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

.trust-strip {
  animation: rise-in 0.5s ease-out 1.1s both;
}

/* Hormati pengguna yang mematikan animasi */
@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;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }

  .menu-toggle-box span,
  .faq-icon::after,
  .billing::before { transition: none !important; }
}

/* 17. Media queries (mobile-first, naik dari 48rem)
   ========================================================================== */
@media (min-width: 48rem) {
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    display: block;
    background: transparent;
    border-bottom: 0;
  }

  .site-nav.is-open { border-bottom-color: transparent; }

  .menu-inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    overflow: visible;
    visibility: visible; /* reset pola mobile: di desktop nav selalu terlihat */
  }

  .nav-list {
    display: flex;
    gap: var(--space-2);
  }

  .nav-list a {
    padding: 0.5rem 0.75rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted-dark);
  }

  .nav-list a:hover {
    border-bottom-color: var(--teal);
  }

  .site-nav .btn {
    margin: 0;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-7);
  }

  .storefront {
    margin-left: auto;
    margin-right: 0;
  }

  .value-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }

  .value-row--flip .value-visual { order: -1; }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  .steps-grid::before {
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 5%;
    right: 5%;
    border-top: 2px dashed rgba(185, 228, 232, 0.35);
  }

  .step { padding-right: var(--space-4); }

  .quotes {
    grid-template-columns: 1.35fr 1fr;
  }

  .quote--featured { grid-row: span 2; }

  .quote--featured blockquote p {
    font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  }

  .plans {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .receipt {
    right: -1.25rem;
    bottom: -1.75rem;
  }

  .quotes { gap: var(--space-5); }
}
