/* ==========================================================================
   Avarith Learn — landing.css
   Styling section landing: nav (di base) → hero → hook → how → wow-blurt →
   wow-lembah → why → waitlist → footer (di base). Plus sheet return-from-demo.

   BG selang-seling (per build-spec):
     hero #F3F6E7 → hook #FBFCF4 → how #F3F6E7 → wow-blurt #FBFCF4
     → wow-lembah #EDF1D6 → why #F3F6E7 → waitlist #3F513B (satu-satunya gelap)
   Restraint: 1 primary CTA / section, warna flat, 1 shadow lembut, no glow.
   ========================================================================== */

/* ==========================================================================
   1 · HERO  (BG #F3F6E7, container 720)
   ========================================================================== */
.hero {
  background: var(--page);
  text-align: center;
  padding-block: clamp(96px, 14vh, 160px) clamp(64px, 10vw, 112px);
}
.hero__title {
  font-size: var(--h1);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.hero__title em { color: var(--accent); }
.hero__sub {
  font-size: var(--lead);
  color: var(--muted);
  max-width: 34ch;
  margin: 0 auto 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.hero__microcopy {
  font-size: var(--small);
  color: var(--muted);
  margin-top: 14px;
}
.hero__trust {
  font-size: var(--small);
  color: var(--sage);
  margin-top: 6px;
}

/* Hint visual grove: 3 pohon statik, baris rata bawah, redup */
.hero__grove {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  max-width: 520px;
  margin: 48px auto 0;
  opacity: 0.9;
}
.hero__tree { width: clamp(72px, 24vw, 128px); height: auto; }
.hero__tree:nth-child(2) { width: clamp(96px, 30vw, 168px); }

/* ==========================================================================
   2 · HOOK / PROOF  (BG #FBFCF4, container 720)
   ========================================================================== */
.hook { background: var(--card); }
.hook__title {
  font-size: var(--h2);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.hook__body {
  font-size: var(--body);
  color: var(--muted);
  max-width: 52ch;
}
.hook__proof {
  list-style: none;
  padding: 0;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.hook__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.hook__num {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.hook__label {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   3 · HOW IT WORKS  (BG #F3F6E7, container 1040)
   ========================================================================== */
.how { background: var(--page); }
.how__head { text-align: center; margin-bottom: 56px; }
.how__title { font-size: var(--h2); margin-bottom: 10px; }
.how__sub { color: var(--muted); }

.how__steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.how__step {
  display: flex;
  align-items: center;
  gap: 48px;
}
.how__step--alt { flex-direction: row-reverse; }
.how__art {
  flex: 0 0 clamp(140px, 22vw, 200px);
  display: flex;
  justify-content: center;
}
.how__art svg { width: 100%; height: auto; max-width: 200px; }
.how__text { flex: 1; max-width: 44ch; }
.how__no {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 6px;
}
.how__step-title { font-size: 22px; margin-bottom: 8px; }
.how__text p { color: var(--muted); font-size: var(--body); }

.how__cta { text-align: center; margin-top: 56px; }

/* ==========================================================================
   4 · WOW #1 · BLURTING  (BG #FBFCF4, container 760)
   ========================================================================== */
.wow-blurt { background: var(--card); text-align: center; }
.wow-blurt .container--read { max-width: 760px; }
.wow-blurt__title { font-size: var(--h2); margin-bottom: 12px; }
.wow-blurt__sub {
  font-size: var(--body);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
}

.wow-blurt__card {
  text-align: left;
  margin-top: 36px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}
.wow-blurt__label {
  display: block;
  font-size: var(--small);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.wow-blurt__input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--hair);
  border-radius: var(--r-btn);
  padding: 14px 16px;
  resize: vertical;
  min-height: 108px;
  transition: border-color 160ms var(--ease);
}
.wow-blurt__input:focus-visible {
  outline: none;
  border-color: var(--accent);
}
.wow-blurt__actions { margin-top: 14px; }

/* Hasil chip + skor (diisi blurt-mini.js) */
.wow-blurt__result { margin-top: 8px; }
.blurt-chips {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  line-height: 1;
}
.chip__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}
.chip--nyantol { background: rgba(78, 138, 87, 0.14); color: var(--accent); }
.chip--kurang  { background: rgba(157, 191, 138, 0.24); color: #5C7350; }
.chip--kelewat { background: transparent; border: 1px dashed var(--hair); color: var(--muted); }
.blurt-score { margin-top: 18px; font-size: 15px; color: var(--ink); }
.blurt-score strong { color: var(--accent); }
.blurt-empty { margin-top: 4px; font-size: 15px; color: var(--muted); }

.wow-blurt__disclaimer {
  font-size: var(--tiny);
  color: var(--muted);
  margin-top: 18px;
}
.wow-blurt__cta { margin-top: 28px; }
.wow-blurt__cta .text-link { justify-content: center; }

/* ==========================================================================
   5 · WOW #2 · LEMBAH  (BG #EDF1D6, container 1040)
   ========================================================================== */
.wow-lembah { background: var(--canvas); }
.wow-lembah__head { text-align: center; margin-bottom: 40px; }
.wow-lembah__title { font-size: var(--h2); }
.wow-lembah__body {
  max-width: 620px;
  text-align: center;
  margin-top: 36px;
}
.wow-lembah__body > p { color: var(--muted); font-size: var(--body); }
.wow-lembah__privacy {
  font-size: var(--small);
  color: var(--sage);
  margin-top: 12px;
}
.wow-lembah__cta { margin-top: 24px; }

/* ==========================================================================
   6 · WHY / BEDA  (BG #F3F6E7, container 720)
   ========================================================================== */
.why { background: var(--page); }
.why__title { font-size: var(--h2); margin-bottom: 40px; }
.why__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why__item {
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.why__item-title { font-size: 20px; margin-bottom: 6px; }
.why__item p { color: var(--muted); font-size: var(--body); }

/* ==========================================================================
   7 · WAITLIST  (BG #3F513B — satu-satunya gelap, container 620)
   ========================================================================== */
.waitlist {
  background: var(--ink);
  color: var(--page);
  text-align: center;
}
.waitlist__inner { max-width: 620px; }
.waitlist__eyebrow { color: var(--sage); }
.waitlist__title { color: var(--page); font-size: var(--h2); margin-bottom: 14px; }
.waitlist__sub { color: rgba(243, 246, 231, 0.82); font-size: var(--body); }

.waitlist__form { margin-top: 32px; }
.waitlist__label {
  display: block;
  text-align: left;
  font-size: var(--small);
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 8px;
}
.waitlist__row {
  display: flex;
  gap: 10px;
}
.waitlist__input {
  flex: 1;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  padding: 14px 16px;
  transition: border-color 160ms var(--ease);
}
.waitlist__input::placeholder { color: var(--muted); }
.waitlist__input:focus-visible { outline: none; border-color: var(--sage); }
.waitlist__row .btn { flex: none; }

.waitlist__error {
  text-align: left;
  font-size: var(--small);
  color: #E7B7A6;
  margin-top: 8px;
}
.waitlist__microcopy {
  text-align: left;
  font-size: var(--tiny);
  color: var(--sage);
  margin-top: 10px;
}
.waitlist__scarcity {
  font-size: var(--small);
  color: rgba(243, 246, 231, 0.7);
  margin-top: 24px;
}

/* Success in-place (waitlist.js ngisi) — kartu ganti form */
.waitlist__success { margin-top: 32px; }
.success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-card__icon { width: 48px; height: 48px; }
.success-card__title { font-size: 24px; }
.waitlist .success-card__title { color: var(--page); }
.success-card__body { font-size: var(--body); color: var(--muted); }
.waitlist .success-card__body { color: rgba(243, 246, 231, 0.82); }
.waitlist .success-card__body strong { color: var(--page); }
.success-card__share {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.waitlist .success-card__share .text-link { color: var(--sage); }
.success-card__copied {
  font-size: var(--small);
  color: var(--sage);
}

/* ==========================================================================
   SHEET / OVERLAY — fallback return-from-demo (waitlist.js show/hide)
   Panel terang di atas overlay gelap; non-agresif, muncul sekali.
   ========================================================================== */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.sheet[hidden] { display: none; }
.sheet.is-open { opacity: 1; }

.sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(63, 81, 59, 0.35);
}
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  padding: 28px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  transition: transform var(--dur) var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }

.sheet__title {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 18px;
}
.sheet__label {
  display: block;
  font-size: var(--small);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.sheet__row { display: flex; gap: 10px; flex-wrap: wrap; }
.sheet__input {
  flex: 1;
  min-width: 180px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--hair);
  border-radius: var(--r-btn);
  padding: 13px 15px;
  transition: border-color 160ms var(--ease);
}
.sheet__input:focus-visible { outline: none; border-color: var(--accent); }
.sheet__row .btn { flex: none; }
.sheet__error {
  font-size: var(--small);
  color: #9A5B44;
  margin-top: 8px;
}
.sheet__later {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 2px;
  background: none;
  border: none;
  font-size: var(--small);
  color: var(--muted);
  text-decoration: underline;
}
.sheet__later:hover { color: var(--ink); }
.sheet__success .success-card { align-items: flex-start; text-align: left; }
.sheet__success .success-card__title { font-size: 22px; }

/* Center sheet di layar lebar (bukan bottom-sheet) */
@media (min-width: 641px) {
  .sheet { align-items: center; }
  .sheet__panel { transform: translateY(24px) scale(0.98); }
  .sheet.is-open .sheet__panel { transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 720px) {
  .hook__proof { grid-template-columns: 1fr; gap: 4px; }
  .how__step, .how__step--alt { flex-direction: column; gap: 24px; text-align: center; }
  .how__text { max-width: none; }
  .how__no { text-align: center; }
}

@media (max-width: 520px) {
  .waitlist__row { flex-direction: column; }
  .waitlist__row .btn { width: 100%; }
}

/* Hormati prefers-reduced-motion: matiin transisi sheet */
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet__panel { transition: none; }
}
