/* Kelas Masak Ibu Azzah — landing page styles (mobile-first) */

:root {
  --cream: #fbf6ee;
  --cream-2: #f4eadb;
  --paper: #fffdf9;
  --brown-900: #2e1c10;
  --brown-800: #3b2414;
  --brown-700: #5a3a22;
  --brown-500: #8a5a34;
  --brown-300: #c9a77f;
  --gold: #b8862f;
  --text: #2e1c10;
  --muted: #6b5442;
  --line: #e6d7c2;
  --wa: #1d7a46;
  --wa-hover: #16653a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(59, 36, 20, 0.28);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sticky-h: 0px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 84px; /* room for sticky CTA on mobile */
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

h1, h2, h3 { font-family: var(--font-display); color: var(--brown-800); line-height: 1.18; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 6.8vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 5.6vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3em; }
p { margin: 0 0 1em; }

a { color: var(--brown-700); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-500);
  margin-bottom: 0.9em;
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brown-800); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 58px; gap: 12px; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--brown-800); }
.logo em { font-style: italic; color: var(--brown-500); }
.header-link { font-size: 0.9rem; font-weight: 700; text-decoration: none; color: var(--brown-800); padding: 8px 14px; border: 1.5px solid var(--brown-300); border-radius: 999px; white-space: nowrap; }
.header-link:hover { background: var(--cream-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border-radius: 999px; border: 0;
  font: 700 1.02rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 122, 70, 0.6); }
.btn-wa:hover { background: var(--wa-hover); transform: translateY(-1px); }
.btn-wa:active { transform: translateY(0); }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.wa-icon { width: 22px; height: 22px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--cream-2); }
.section-dark { background: var(--brown-800); color: #f6ead8; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #e6d3b8; }

/* ---------- Hero ---------- */
.section-hero { padding: 0 0 48px; }
.hero-grid { display: grid; gap: 26px; }
.hero-media { position: relative; margin: 0 -20px; }
.hero-img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 40%; }
.hero-badge {
  position: absolute; right: 18px; bottom: -26px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--brown-800); color: #fff;
  display: grid; place-content: center; text-align: center;
  box-shadow: var(--shadow); border: 3px solid var(--cream);
}
.hero-badge span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brown-300); }
.hero-badge strong { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; }
.hero-copy { padding-top: 8px; }
.hero-price {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 4px 0 20px;
}
.hero-price-label { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brown-500); display: flex; flex-direction: column; gap: 2px; }
.hero-price-label small { font-size: 0.92rem; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--muted); }
.hero-price-value { display: flex; align-items: baseline; gap: 10px; }
.hero-trust { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.hero-copy .btn { width: 100%; }

.price-amount { font-family: var(--font-display); font-weight: 700; color: var(--brown-800); font-size: 2rem; line-height: 1; }
.price-currency { font-size: 0.55em; margin-right: 2px; vertical-align: 0.55em; }
.price-compare { text-decoration: line-through; color: var(--muted); font-size: 0.95rem; }

/* ---------- Pain points ---------- */
.pain-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.pain-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line); }
.pain-list p { margin: 0; }
.pain-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-content: center; background: var(--cream-2); color: var(--brown-700); font-weight: 700; font-family: var(--font-display); }
.bridge { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--brown-700); text-align: center; margin: 8px 0 0; }

/* ---------- Outcomes ---------- */
.outcome-grid { display: grid; gap: 16px; margin-top: 28px; }
.outcome { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.outcome p { margin: 0; color: var(--muted); }
.outcome-num { display: block; font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); margin-bottom: 10px; font-weight: 600; }

/* ---------- Learn ---------- */
.learn-grid { display: grid; gap: 32px; align-items: center; }
.learn-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.learn-list li { display: flex; gap: 14px; }
.learn-list p { margin: 0; color: var(--muted); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brown-700); position: relative; margin-top: 3px; }
.tick::after { content: ""; position: absolute; left: 8px; top: 4.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 74px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brown-800); color: #fff; display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.steps p { margin: 0; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 28px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0 0; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--brown-800); }
.stats dt { font-size: 0.88rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.testi { display: flex; flex-direction: column; }
.testi-open {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; background: #111; cursor: zoom-in;
  box-shadow: var(--shadow);
}
.testi-open img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: top; transition: transform 0.35s ease; }
.testi-open:hover img { transform: scale(1.02); }
.zoom-hint { position: absolute; right: 8px; bottom: 8px; background: rgba(46, 28, 16, 0.85); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.testi-caption { font-size: 0.92rem; line-height: 1.45; margin: 10px 2px 0; color: var(--brown-700); }

/* ---------- Offer ---------- */
.offer-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 32px 22px; text-align: center; box-shadow: var(--shadow); position: relative; }
.offer-card::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--brown-300); border-radius: 18px; pointer-events: none; }
.offer-price { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin: 18px 0 22px; }
.offer-price .price-amount { font-size: 4.2rem; }
.offer-list { list-style: none; padding: 0; margin: 0 auto 26px; display: grid; gap: 12px; text-align: left; max-width: 380px; }
.offer-list li { display: flex; gap: 12px; align-items: flex-start; }
.offer-note { font-size: 0.88rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 26px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; background: none; border: 0; cursor: pointer; text-align: left;
  font: 600 1.05rem/1.4 var(--font-body); color: var(--brown-800); min-height: 56px;
}
.faq-icon { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--brown-300); position: relative; transition: transform 0.25s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--brown-700); transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity 0.2s ease; }
.faq-q[aria-expanded="true"] .faq-icon::after { opacity: 0; }
.faq-a { padding: 0 2px 18px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- Final CTA ---------- */
.final-price { color: #e6d3b8; margin: 0 0 22px; }
.final-price strong { color: #fff; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-900); color: #cdb89c; padding: 28px 0 32px; font-size: 0.9rem; }
.site-footer p { margin: 0 0 6px; }
.footer-small { font-size: 0.8rem; color: #a38c70; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(59, 36, 20, 0.3);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.3s ease; visibility: hidden;
}
.sticky-cta.is-visible { transform: translateY(0); visibility: visible; }
.sticky-inner { max-width: 560px; margin: 0 auto; }
.sticky-cta .btn { min-height: 52px; padding: 12px 20px; font-size: 1.02rem; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; margin: 0; }
.lightbox::backdrop { background: rgba(20, 12, 6, 0.9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: 56px 12px 16px; max-width: 560px; width: 100%; }
.lightbox-inner img { max-height: calc(100vh - 170px); width: auto; max-width: 100%; border-radius: 10px; }
.lightbox-caption { color: #f1e3cf; text-align: center; margin: 12px 8px 10px; font-size: 0.95rem; }
.lb-nav { display: flex; gap: 14px; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-content: center; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { position: absolute; top: 4px; right: 12px; }

/* ---------- Reveal (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

.noscript { padding: 48px 20px; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(4, 1fr); }
  .offer-card { padding: 44px 40px; }
  .hero-copy .btn { width: auto; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ================= Desktop ================= */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .section { padding: 96px 0; }
  .section-hero { padding: 48px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding: 0 20px; }
  .hero-media { margin: 0; order: 2; }
  .hero-img { border-radius: 28px; aspect-ratio: 1 / 1.05; box-shadow: var(--shadow); }
  .hero-badge { width: 112px; height: 112px; left: -28px; right: auto; bottom: 36px; }
  .hero-badge strong { font-size: 1.9rem; }
  .hero-copy { order: 1; padding-top: 0; }
  .hero-price { max-width: 460px; }
  .learn-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .testi-grid { gap: 22px; }
  .outcome-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- V2 additions ---------- */
.section-cta { margin-top: 26px; }
.testi-disclaimer { font-size: 0.85rem; color: var(--muted); margin: 18px 0 0; }
.offer-access { font-size: 0.95rem; color: var(--brown-700); background: var(--cream-2); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 auto 20px; max-width: 380px; }
.stats-note { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.testi-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Lightbox fallback untuk pelayar tanpa sokongan <dialog> */
.lightbox.is-fallback { display: none; }
.lightbox.is-fallback[open] { display: grid; position: fixed; inset: 0; width: 100%; height: 100%; max-height: none; max-width: none; z-index: 100; background: rgba(20, 12, 6, 0.92); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Label CTA panjang: kekal satu baris pada telefon kecil */
.btn span { text-align: center; }
@media (max-width: 420px) {
  .btn, .btn-lg { font-size: 0.97rem; padding-left: 16px; padding-right: 16px; gap: 8px; letter-spacing: -0.005em; }
  .offer-card { padding-left: 16px; padding-right: 16px; }
}
.offer-card .btn { padding-left: 14px; padding-right: 14px; }
@media (max-width: 380px) { .offer-card .btn { font-size: 0.92rem; gap: 6px; } .offer-card .btn .wa-icon { width: 20px; height: 20px; } }
