/* ============================================================
   Click & Cook — All Access Sales Page
   Design system converted from Claude Design handoff
   (click-cook-design-system tokens + page rules)
   (fonts load via <link> ใน <head> ของ index.html — @import ทำให้
   CSS block ต้องรอ font CSS รอบสองก่อนเริ่ม render)
   ============================================================ */

:root {
  /* --- Master brand --- */
  --ivory: #EBE5D9;
  --ivory-50: #F5F1E9;
  --black: #000000;
  --latte: #B39475;
  --latte-light: #D3BFA8;
  --latte-dark: #8C7154;

  /* --- Neutrals derived from ivory/black for UI chrome --- */
  --stone-100: #F5F1E9;
  --stone-200: #E4DED0;
  --stone-300: #CBC2AE;
  --stone-400: #A79C86;
  --stone-600: #6B6255;
  --stone-800: #34302A;

  /* --- Semantic aliases --- */
  --surface-page: var(--ivory);
  --surface-card: var(--stone-100);
  --surface-card-alt: #FFFFFF;
  --surface-inverse: var(--black);
  --text-primary: var(--black);
  --text-muted: var(--stone-600);
  --text-on-inverse: var(--ivory);
  --border-default: var(--stone-300);
  --border-strong: var(--black);

  /* --- Type --- */
  --font-display: 'Manrope', 'Anuphan', -apple-system, sans-serif;
  --font-body: 'Anuphan', 'Manrope', -apple-system, sans-serif;

  /* --- Effects --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.09);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  font-family: var(--font-body);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--latte-dark); }
a:hover { color: var(--black); }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Shared bits ---------- */

/* SectionLabel component — small uppercase kicker above headings */
.section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--latte-dark);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 200ms ease, color 200ms ease, transform 120ms ease;
}
.btn-pill:active { transform: scale(0.98); }

.btn-dark {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 16px 30px;
}
.btn-dark:hover { background: #1f1f1f; color: var(--ivory); }

.btn-outline {
  border: 1.5px solid var(--black);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 20px;
  background: transparent;
}
.btn-outline:hover { background: rgba(0, 0, 0, 0.04); color: var(--black); }

.btn-latte {
  background: var(--latte);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 15px 30px;
}
.btn-latte:hover { background: var(--latte-dark); color: #fff; }

.icon { width: 20px; height: 20px; color: var(--latte-dark); flex-shrink: 0; }

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero-logo { height: 34px; display: block; margin-bottom: 28px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 7.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 16px 0 0;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 20px 0 0;
  max-width: 480px;
}

.hero-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero-price-current {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1;
}
.hero-price-was { font-size: 16px; color: var(--stone-600); text-decoration: line-through; }
.hero-price-note { font-size: 13px; color: var(--stone-600); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.hero-link-detail { font-size: 14px; font-weight: 600; color: var(--stone-600); text-decoration: underline; }

.hero-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-gallery .ph {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Generic section heading blocks ---------- */
.section-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.2;
  margin: 14px 0 0;
}

/* ============================================================
   Section 2 — Pain
   ============================================================ */
.pain { max-width: 720px; margin: 0 auto; padding: 64px 24px; text-align: left; }
.pain p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone-600);
  margin: 18px 0 0;
}

/* ============================================================
   Section 3 — Teacher
   ============================================================ */
.teacher {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 72px;
}
.teacher-img {
  width: 100%;
  height: auto; /* ต้องมี — ไม่งั้น height attr 675 บังคับรูปแนวนอนให้สูงเต็มจอบนมือถือ */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: block;
}
.teacher-copy { max-width: 560px; }
.teacher-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.4px;
  margin: 12px 0 0;
}
.teacher-copy p { font-size: 16.5px; line-height: 1.8; color: var(--stone-600); text-wrap: pretty; }
.teacher-copy .lead-p { margin: 20px 0 0; }
.teacher-copy .follow-p { margin: 16px 0 0; }

.teacher-badges {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
.teacher-badge { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }

.teacher-greeting {
  margin-top: 28px;
  background: var(--surface-card-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.teacher-greeting .hello { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1.5; }
.teacher-greeting .msg { margin: 10px 0 0; font-size: 15.5px; line-height: 1.8; color: var(--stone-600); }
.teacher-fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
}

/* ============================================================
   Section 3b — Recipe proof table
   ============================================================ */
.recipe { max-width: 1000px; margin: 0 auto; padding: 24px 24px 72px; }
.recipe h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.25;
  margin: 14px 0 0;
}
.recipe-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone-600);
  margin: 12px 0 28px;
  max-width: 640px;
}
.recipe-table-wrap {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.recipe-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-default);
}
.recipe-head-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.recipe-head-meta { font-size: 13px; color: var(--stone-600); }
.recipe-scroll { overflow-x: auto; }
.recipe table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.recipe thead td {
  padding: 12px 16px;
  color: var(--stone-600);
  font-size: 12.5px;
  font-weight: 600;
}
.recipe thead td:first-child { padding-left: 28px; }
.recipe thead td:last-child { padding-right: 28px; text-align: right; }
.recipe tbody tr { border-top: 1px solid var(--border-default); }
.recipe tbody td { padding: 14px 16px; }
.recipe tbody td:first-child { padding-left: 28px; font-weight: 600; }
.recipe tbody td:last-child { padding-right: 28px; text-align: right; font-weight: 700; }
.recipe tbody td.muted { color: var(--stone-600); }
.recipe-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 28px;
  background: var(--surface-card-alt); /* overridden to stone tone below */
  background: var(--stone-100);
  border-top: 1.5px solid var(--black);
  flex-wrap: wrap;
  gap: 8px;
}
.recipe-total-label { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.recipe-total-price { font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.recipe-total-perpiece { font-size: 12.5px; color: var(--stone-600); }

/* ============================================================
   Section 4 — Course cards
   ============================================================ */
.courses-sec { padding-top: 24px; padding-bottom: 32px; }
.courses-sec h2 { margin-bottom: 24px; }

.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.course-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-card-alt);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-card);
  position: relative;
}
.course-card-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-lock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--black);
  color: var(--ivory);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-body { padding: 20px; }
.course-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--latte-dark);
}
.course-num-unit { font-size: 15px; font-weight: 600; margin-left: 4px; }
.course-name { font-weight: 700; font-size: 17px; margin-top: 6px; }
.course-desc { font-size: 14px; line-height: 1.6; color: var(--stone-600); margin: 8px 0 0; }

.course-toggle {
  margin-top: 14px;
  border-top: 1px solid var(--border-default);
  padding-top: 14px;
}
.course-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--latte-dark);
  text-align: left;
}
.course-toggle-caret { font-size: 13px; }

.course-detail { display: none; }
.course-card.open .course-detail { display: block; }
.course-detail-inner { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.course-menus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
}
.course-menu-item {
  font-size: 13px;
  line-height: 1.5;
  color: var(--stone-600);
  display: flex;
  gap: 6px;
}
.course-menu-item::before { content: "·"; color: var(--latte); flex-shrink: 0; }
.course-facts {
  background: var(--ivory-50);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.course-fact { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; line-height: 1.5; }
.course-fact .k { color: var(--stone-600); }
.course-fact .v { font-weight: 700; text-align: right; }

.courses-more { text-align: center; margin-top: 28px; }
.courses-more a { font-size: 15px; font-weight: 700; text-decoration: underline; }

/* ============================================================
   Section 5 — What's included
   ============================================================ */
.included-sec { padding-top: 48px; padding-bottom: 56px; }
.included-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--stone-600);
  margin: 0 0 28px;
  max-width: 600px;
}
.included-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.included-card {
  background: var(--surface-card-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.included-card .icon-lg { width: 26px; height: 26px; color: var(--latte-dark); }
.included-title { font-weight: 700; font-size: 16px; margin-top: 14px; }
.included-body { font-size: 14px; line-height: 1.65; color: var(--stone-600); margin: 8px 0 0; }

/* ============================================================
   Section 6 — Social proof / review rail
   ============================================================ */
.reviews-sec { padding-top: 24px; padding-bottom: 56px; }
.reviews-headrow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px 0 8px;
}
.reviews-sub { font-size: 15px; line-height: 1.7; color: var(--stone-600); margin: 0 0 22px; }

/* Instagram-style stage: centered square slide, arrows overlaid left/right */
.reviews-stage {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
}
.review-rail {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.review-rail::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border-default);
  background: #fff;
}
.review-card img { width: 100%; height: 100%; object-fit: contain; display: block; }

.review-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background-color 120ms ease, transform 120ms ease;
  z-index: 2;
}
.review-arrow-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.review-arrow-btn:disabled { opacity: 0.35; cursor: default; }
.review-arrow-btn:disabled:hover { background: rgba(255, 255, 255, 0.92); transform: translateY(-50%); }
.review-arrow-prev { left: 16px; }
.review-arrow-next { right: 16px; }

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.review-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--stone-300);
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.review-dots button.active { background: var(--black); transform: scale(1.25); }

/* ============================================================
   Section 7 — Banana Crepe exclusive banner
   ============================================================ */
.banana-sec { padding-top: 24px; padding-bottom: 56px; }
.banana-banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.banana-banner > img { width: 100%; height: 340px; object-fit: cover; display: block; }
.banana-panel {
  background: var(--black);
  color: var(--ivory);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.banana-copy { max-width: 640px; }
.banana-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--latte-light);
}
.banana-kicker .icon-sm { width: 14px; height: 14px; }
.banana-copy h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 10px 0 0; }
.banana-copy p { font-size: 15px; line-height: 1.6; color: var(--stone-300); margin: 10px 0 0; }
.banana-cta { flex-shrink: 0; white-space: nowrap; font-size: 15px; padding: 14px 26px; }

/* ============================================================
   Section 8 — Pricing
   ============================================================ */
.pricing-sec { padding-top: 24px; padding-bottom: 64px; }
.pricing-header { text-align: center; max-width: 600px; margin: 0 auto 40px; }

.pricing-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 20px; align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--surface-card-alt);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.price-card-tier { font-weight: 700; font-size: 16px; }
.price-card-pricing { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.price-was { font-size: 14px; color: var(--stone-600); text-decoration: line-through; }
.price-desc { font-size: 14px; line-height: 1.6; color: var(--stone-600); margin: 10px 0 0; }
.price-card .btn-outline { margin-top: auto; margin-top: 22px; }

.price-card.featured {
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--ivory);
  padding: 32px;
  box-shadow: var(--shadow-card-hover);
  position: relative;
  transform: scale(1.03);
}
.price-card.featured .price-desc,
.price-card.featured .benefit { color: var(--stone-300); }
.price-star-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--latte);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.price-card.featured .tier-name { font-weight: 800; font-size: 19px; margin-top: 20px; }
.price-card.featured .price-pricing { margin-top: 12px; }
.price-card.featured .price-big { font-size: 40px; }
.price-card.featured .price-was { color: var(--stone-400); }
.benefit-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.benefit { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.5; }
.benefit .icon-check-sm { width: 16px; height: 16px; color: var(--latte-light); flex-shrink: 0; margin-top: 2px; }
.price-card.featured .btn-latte { margin-top: auto; margin-top: 24px; font-weight: 800; font-size: 16px; padding: 16px 20px; }

/* Comparison table */
.compare-wrap { margin-top: 64px; }
.compare-wrap h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.3; margin: 0 0 6px; }
.compare-intro { font-size: 14px; line-height: 1.6; color: var(--stone-600); margin: 0 0 24px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) 1fr 1fr 1.15fr;
  min-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-default);
  background: var(--ivory);
}
.ct-cell { padding: 15px 18px; font-size: 14px; border-top: 1px solid var(--border-default); }
.ct-cell.center { padding-left: 14px; padding-right: 14px; text-align: center; }
.ct-head { background: var(--stone-100); padding: 18px 14px; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.4; border-top: none; }
.ct-head-sub { font-size: 13px; color: var(--stone-600); font-weight: 600; }
.ct-head-first { background: var(--stone-100); padding: 18px; border-top: none; }
.ct-head-allaccess {
  background: var(--black);
  color: var(--ivory);
  padding: 18px 14px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  border-top: none;
}
.ct-head-allaccess .num { font-size: 16px; color: var(--latte-light); font-weight: 800; }

.ct-band {
  grid-column: 1 / -1;
  background: var(--black);
  color: var(--ivory);
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-top: none;
}
.ct-cell.alt { background: var(--ivory-50); }
.ct-check { width: 20px; height: 20px; stroke-width: 3; color: var(--black); vertical-align: middle; }
.pick-one { font-size: 13px; font-weight: 600; color: var(--black); }

/* Lucide renders <i data-lucide> into <svg> keeping the class — size the ones with custom sizes */
svg.review-arrow, svg.icon-sm, svg.badge-icon, svg.lock,
.course-lock svg, .benefit svg.icon-check-sm {
  stroke-width: 2;
}
.review-arrow { width: 20px; height: 20px; color: var(--black); }
.icon-lg { width: 26px; height: 26px; color: var(--latte-dark); }
.note-icon { width: 19px; height: 19px; color: var(--latte-dark); flex-shrink: 0; margin-top: 2px; }
svg[class] { display: inline-block; vertical-align: middle; }
.ct-cross { width: 20px; height: 20px; stroke-width: 3; color: var(--black); vertical-align: middle; }

/* Bonus rows (All Access only) */
.ct-bonus-label {
  background: var(--latte-light);
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.ct-bonus-label .lock { width: 14px; height: 14px; color: var(--black); flex-shrink: 0; margin-top: 3px; }
.ct-cell.bonus { background: var(--latte-light); }
.ct-cell.allaccess-bonus {
  background: var(--latte);
  text-align: center;
  border-top: 1px solid var(--border-default);
  padding-left: 14px;
  padding-right: 14px;
}
.ct-circle-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--black);
}
.ct-circle-check svg { width: 16px; height: 16px; color: #fff; stroke-width: 3.2; }

.ct-total-label { padding: 17px 18px; font-weight: 800; font-size: 15px; border-top: 1.5px solid var(--black); }
.ct-total-num { padding: 17px 14px; text-align: center; font-weight: 700; font-size: 15px; border-top: 1.5px solid var(--black); }
.ct-total-num.final { background: var(--ivory-50); font-weight: 800; font-size: 22px; }

.ct-final-bar {
  grid-column: 1 / -1;
  background: var(--stone-100);
  border-top: 1px solid var(--border-default);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ct-final-bar span { font-size: 14px; font-weight: 600; }
.ct-final-bar .btn-dark { font-size: 14px; padding: 13px 26px; min-height: 44px; }

/* ============================================================
   Section 9 — ROI
   ============================================================ */
.roi { max-width: 720px; margin: 0 auto; padding: 56px 24px; }
.roi h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.25; margin: 14px 0 0; }
.roi p { font-size: 16px; line-height: 1.75; color: var(--stone-600); margin: 16px 0 0; }
.roi .btn-dark { margin-top: 24px; font-size: 15px; padding: 15px 28px; }

/* ============================================================
   Section 10 — How to enroll
   ============================================================ */
.enroll { max-width: 1100px; margin: 0 auto; padding: 24px 24px 64px; }
.enroll h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.25; margin: 14px 0 8px; }
.enroll-intro { font-size: 15px; line-height: 1.7; color: var(--stone-600); margin: 0 0 28px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.step-card {
  background: var(--surface-card-alt);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-head { display: flex; align-items: center; gap: 12px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.step-icon { width: 22px; height: 22px; color: var(--latte-dark); }
.step-title { font-weight: 700; font-size: 16px; }
.step-desc { font-size: 14.5px; line-height: 1.7; color: var(--stone-600); margin: 6px 0 0; }

.enroll-notes { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.enroll-note { display: flex; gap: 10px; align-items: flex-start; }
.enroll-note .note-icon { width: 19px; height: 19px; color: var(--latte-dark); flex-shrink: 0; margin-top: 2px; }
.enroll-note span { font-size: 14px; line-height: 1.65; color: var(--stone-600); }

.enroll-cta {
  margin-top: 32px;
  background: var(--black);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.enroll-cta-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.enroll-cta p { font-size: 14.5px; line-height: 1.65; color: var(--stone-300); margin: 6px 0 0; }

/* ============================================================
   Section 11 — FAQ
   ============================================================ */
.faq { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.faq h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.25; margin: 14px 0 24px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border-default); }
.faq-q { font-weight: 700; font-size: 16px; }
.faq-a { font-size: 15px; line-height: 1.6; color: var(--stone-600); margin-top: 8px; }

/* ============================================================
   Section 12 — Final CTA
   ============================================================ */
.final-cta {
  background: var(--black);
  color: var(--ivory);
  padding: 72px 24px 140px;
  text-align: center;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; }
.final-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--latte-light);
  color: var(--latte-light);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.final-badge .badge-icon { width: 14px; height: 14px; }
.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 6.5vw, 36px);
  line-height: 1.2;
  margin: 24px 0 0;
}
.final-cta .btn-latte.big { margin-top: 32px; font-weight: 800; font-size: 18px; padding: 19px 36px; }
.final-note { font-size: 14px; color: var(--stone-400); margin-top: 20px; }

/* ============================================================
   Sticky mobile CTA bar
   ============================================================ */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  color: var(--ivory);
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 40;
  transition: transform 200ms ease, opacity 200ms ease;
}
.sticky-bar.hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }

/* ============================================================
   In-app browser banner — สอนเปิดใน Safari/Chrome เมื่อเปิดหน้า
   ผ่าน browser ในแอป FB/IG/LINE (ไม่บังคับ redirect แล้ว)
   ============================================================ */
#iab-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 46px 13px 18px;
  background: var(--black);
  color: var(--ivory);
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
#iab-banner strong { color: var(--latte-light); }
#iab-banner button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--ivory);
  font-size: 24px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

.cta-hint {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
.sticky-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sticky-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.sticky-bar .btn-latte { font-size: 14px; padding: 12px 22px; min-height: 44px; }

/* Body needs bottom clearance so sticky bar never covers final content */
body { padding-bottom: env(safe-area-inset-bottom); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr !important; gap: 32px !important; }
  .teacher { grid-template-columns: 1fr !important; gap: 24px !important; }
  .course-grid { grid-template-columns: 1fr !important; }
  .included-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pricing-grid { grid-template-columns: 1fr !important; }
  .price-card.featured { order: -1; transform: none !important; margin-bottom: 8px; }
  .steps-grid { grid-template-columns: 1fr !important; }
  .enroll-notes { grid-template-columns: 1fr; gap: 12px; }
  .banana-panel { padding: 28px 24px; }
  .banana-banner > img { height: 220px; }
}

@media (max-width: 520px) {
  .course-grid { grid-template-columns: 1fr !important; }
  .included-grid { grid-template-columns: 1fr !important; }
  .hero { padding-top: 28px; }
  .review-arrow-btn { width: 40px; height: 40px; }
  .review-arrow-prev { left: 10px; }
  .review-arrow-next { right: 10px; }
  .sticky-text { font-size: 13.5px; }
  .final-cta { padding: 56px 20px 120px; }
}

/* Mobile (≤640px) — ตารางทั้งสองเลิกเลื่อนข้าง:
   ตารางสูตร → การ์ดต่อวัตถุดิบ, ตารางเปรียบเทียบ → บีบ 4 คอลัมน์ให้พอดีจอ */
@media (max-width: 640px) {
  /* ---- ตารางสูตร: การ์ดต่อวัตถุดิบ เห็นครบทุกตัวเลขโดยไม่ต้องเลื่อน ---- */
  .recipe-head { flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 20px; }
  .recipe table { display: block; min-width: 0; border-collapse: separate; border-spacing: 0; }
  .recipe thead { display: none; }
  .recipe tbody { display: block; }
  .recipe tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: baseline;
    padding: 14px 20px;
  }
  .recipe tbody tr:first-child { border-top: none; }
  .recipe tbody td,
  .recipe tbody td:first-child,
  .recipe tbody td:last-child { padding: 0; }
  .recipe tbody td:first-child { grid-column: 1 / -1; font-size: 14.5px; padding-bottom: 4px; }
  .recipe tbody td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 13px; }
  .recipe tbody td:nth-child(2)::before { content: 'ใช้จริง '; font-size: 11.5px; font-weight: 600; color: var(--stone-600); }
  .recipe tbody td:last-child { grid-column: 2; grid-row: 2; font-size: 15.5px; font-weight: 800; }
  .recipe tbody td:last-child::before { content: 'ต้นทุน '; font-size: 11.5px; font-weight: 600; color: var(--stone-600); }
  .recipe tbody td:nth-child(3),
  .recipe tbody td:nth-child(4) { grid-column: 1 / -1; font-size: 12px; }
  .recipe tbody td:nth-child(3)::before { content: 'ราคาซื้อ '; font-weight: 600; }
  .recipe tbody td:nth-child(4)::before { content: 'ต่อ 100 หน่วย '; font-weight: 600; }
  .recipe-total { padding: 18px 20px; }

  /* ---- ตารางเปรียบเทียบ: 4 คอลัมน์แคบลงแต่อยู่ครบจอ All Access ไม่หลุด ---- */
  .compare-table { min-width: 0; grid-template-columns: minmax(112px, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .ct-head-first { padding: 14px 6px; }
  .ct-head { padding: 14px 6px; font-size: 12.5px; }
  .ct-head-allaccess { padding: 14px 6px; font-size: 12.5px; }
  .ct-head-allaccess .num { font-size: 14px; }
  .ct-band { padding: 10px 12px; font-size: 11px; }
  .ct-cell { padding: 13px 10px; font-size: 13px; }
  .ct-cell.center { padding-left: 6px; padding-right: 6px; }
  .ct-check, .ct-cross { width: 18px; height: 18px; }
  .pick-one { font-size: 11.5px; }
  .ct-bonus-label { padding: 13px 10px; font-size: 12.5px; gap: 6px; }
  .ct-cell.allaccess-bonus { padding-left: 6px; padding-right: 6px; }
  .ct-total-label { padding: 14px 10px; font-size: 13.5px; }
  .ct-total-num { padding: 14px 6px; font-size: 13.5px; }
  .ct-total-num.final { font-size: 19px; }
  .ct-final-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
  .ct-final-bar span { font-size: 13.5px; }
  .ct-final-bar .btn-dark { width: 100%; }
}

/* Reduced motion — disable smooth scroll/snap transitions */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .review-rail { scroll-behavior: auto; }
  .review-arrow-btn { transition: none; }
  .sticky-bar { transition: none; }
}
