/* ==========================================================================
   PasarRakyat — Salespage Styles
   Token system:
   --deep  : hijau pasar tua (dasar warna utama, dipercaya)
   --gold  : kuning kunyit (aksen utama, kehangatan pasar lokal)
   --brick : merah bata batik (urgensi, aksen sekunder)
   --paper : krem kertas pasar (latar)
   ========================================================================== */

:root {
  --deep: #17423A;
  --deep-2: #0F312B;
  --gold: #E3A73B;
  --gold-2: #F0C264;
  --brick: #BE4A3C;
  --paper: #FAF5EA;
  --paper-2: #F1E9D8;
  --ink: #1C2621;
  --ink-soft: #4A564F;
  --line: #E4D9C2;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: "Space Grotesk", var(--font-body);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 32px -12px rgba(23, 66, 58, 0.22);
  --shadow-card: 0 8px 24px -10px rgba(23, 66, 58, 0.16);

  --wa-green: #25D366;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.wrap.narrow { max-width: 720px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 12px;
}
.eyebrow--center { text-align: center; }
.eyebrow--onlight { color: var(--gold-2); }

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--deep-2);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--deep-2);
}
.h2--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }
.h2--onlight { color: var(--white); }

.lead-text {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.lead-text--wide { max-width: 620px; }
.lead-text--emph {
  color: var(--deep-2);
  font-weight: 600;
  font-size: 1.15rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--wa-green);
  color: var(--white);
  padding: 15px 28px;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.55);
}
.btn-primary::before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 2a10 10 0 00-8.6 15.1L2 22l5.1-1.3A10 10 0 1012 2zm5.7 14.2c-.2.6-1.2 1.2-1.7 1.3-.4.1-1 .1-1.6-.1-.4-.1-.9-.3-1.5-.6-2.6-1.1-4.3-3.7-4.4-3.9-.1-.2-1-1.4-1-2.6 0-1.2.6-1.8.9-2.1.2-.2.5-.3.7-.3h.5c.2 0 .4 0 .6.4.2.5.7 1.7.8 1.8.1.1.1.3 0 .5-.1.2-.1.3-.3.5-.1.2-.3.3-.4.5-.1.1-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1.1 2.2 1.4 2.5 1.6.3.1.5.1.6-.1.2-.2.7-.8.9-1.1.2-.3.4-.2.6-.1.2.1 1.5.7 1.7.8.2.1.4.2.4.3.1.2.1.6-.1 1.2z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(37, 211, 102, 0.65); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-header-cta {
  background: var(--deep);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.btn-header-cta:hover { background: var(--deep-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 245, 234, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { display: flex; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--deep-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero-cta-row { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-bottom: 28px; }
.hero-microcopy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.dot-badge { color: var(--gold); font-size: 0.6rem; }

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-2);
}
.trust-row li { display: flex; align-items: center; gap: 6px; }

/* Hero visual: kios (stall) card composition */
.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stall-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.stall-card--main {
  width: 78%;
  max-width: 280px;
}
.stall-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stall-tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--deep);
  background: var(--paper-2);
  padding: 4px 10px;
  border-radius: 999px;
}
.stall-star { font-size: 0.8rem; font-weight: 700; color: var(--gold); }
.stall-swatch {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold-2), var(--brick) 120%);
  margin-bottom: 12px;
}
.stall-title { font-weight: 700; font-size: 0.95rem; margin: 0 0 4px; color: var(--deep-2); }
.stall-price { font-size: 0.85rem; color: var(--ink-soft); margin: 0; font-weight: 600; }
.stall-price span { font-weight: 400; }

.stall-card--float {
  position: absolute;
  bottom: -6%;
  right: 2%;
  width: 52%;
  max-width: 190px;
  transform: rotate(3deg);
}
.stall-swatch--sm { aspect-ratio: 4/3; background: linear-gradient(135deg, #7FA88E, var(--deep)); }
.stall-title-sm { font-size: 0.8rem; font-weight: 700; margin: 8px 0 2px; color: var(--deep-2); }
.stall-price-sm { font-size: 0.75rem; color: var(--ink-soft); margin: 0; font-weight: 600; }

.commission-chip {
  position: absolute;
  top: 4%;
  left: -4%;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-4deg);
}
.commission-num { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-2); line-height: 1; }
.commission-label { display: block; font-size: 0.68rem; font-weight: 600; margin-top: 4px; opacity: 0.9; }

/* ---------- Generic Section ---------- */
.section { padding: 64px 0; }

/* Problem */
.problem-section { background: var(--white); }
.problem-grid { max-width: 640px; margin: 0 auto; text-align: left; }

/* Solution */
.solution-section { background: var(--paper); }
.solution-inner { max-width: 680px; }

/* Benefit */
.benefit-section { background: var(--white); }
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
.benefit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}
.benefit-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--deep-2);
  margin: 0 0 8px;
}
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Steps */
.steps-section { background: var(--paper); }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.step-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--brick);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.step-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 8px; color: var(--deep-2); }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* Proof */
.proof-section { background: var(--white); }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}
.proof-card {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border-left: 4px solid var(--gold);
  margin: 0;
}
.proof-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--deep-2);
  margin: 0 0 16px;
  line-height: 1.5;
}
.proof-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.proof-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.proof-note { font-size: 0.75rem; color: var(--brick); font-weight: 600; }

/* Offer */
.offer-section { background: var(--paper); }
.offer-card {
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.offer-price-row {
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.offer-price-main { margin-bottom: 14px; }
.offer-price-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1;
  display: block;
}
.offer-price-label { font-size: 0.85rem; color: rgba(255,255,255,0.85); line-height: 1.4; }
.offer-compare { font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.offer-compare strong { color: var(--gold-2); }

.offer-bonus {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
  text-align: left;
}
.offer-bonus-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep-2);
  background: var(--gold-2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.offer-bonus p { margin: 0; font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.92); }

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
}

.offer-note { font-size: 0.78rem; color: rgba(255,255,255,0.65); margin: 14px 0 0; }

/* FAQ */
.faq-section { background: var(--white); }
.accordion { margin-top: 36px; display: grid; gap: 12px; }
.accordion-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--deep-2);
  cursor: pointer;
}
.accordion-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--brick);
  transition: transform 0.2s ease;
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); background: var(--gold); color: var(--white); border-color: var(--gold); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }

/* Final CTA */
.final-cta-section {
  position: relative;
  background: var(--deep-2);
  overflow: hidden;
  text-align: center;
  padding: 72px 0;
}
.hero-pattern--dark {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  opacity: 1;
}
.final-cta-inner { position: relative; }
.final-cta-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* Footer */
.site-footer { background: var(--deep-2); color: rgba(255,255,255,0.85); padding: 40px 0 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin: 4px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-contact a { color: var(--gold-2); font-weight: 700; text-decoration: none; }
.footer-bottom { padding: 18px 0 24px; }
.footer-bottom p { margin: 0; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(250,245,234,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: block;
}
.sticky-cta .btn { padding: 14px 20px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero-cta-row { flex-direction: row; align-items: center; gap: 22px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-card { padding: 48px 56px; }
  .offer-price-row { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .offer-price-main { margin-bottom: 0; }
  .offer-bonus { display: flex; align-items: center; gap: 16px; }
}

body:not(.no-sticky-pad) { padding-bottom: 78px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
