/* ===================================================================
   GuCourse — Framer course pre-order landing page
   Monochrome dark UI system (black / white / gray only)
   =================================================================== */
:root {
  --bg: #08090a;
  --bg-2: #0e0f11;
  --surface: #121314;
  --surface-2: #1a1b1d;
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .22);
  --ink: #f5f5f6;
  --ink-soft: #a8abb0;
  --muted: #6f7278;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, .55);
  --maxw: 1080px;
  --font: "IBM Plex Sans Thai", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: -0.005em;
}
img { max-width: 100%; display: block; }
s { color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82em;
  background: rgba(255, 255, 255, .08);
  color: var(--ink-soft);
  padding: 1px 6px;
  border-radius: 6px;
}

/* ===== layout ===== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 88px 0; border-top: 1px solid var(--border); background: var(--bg); }
.section--tint { background: var(--bg-2); }
.section--dark {
  background:
    radial-gradient(80% 260px at 50% 0%, rgba(255, 255, 255, .06), transparent),
    var(--bg);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

h1, h2, h3 { line-height: 1.28; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.12rem; font-weight: 600; color: var(--ink); }

.section__lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 620px; margin: 14px auto 0; }
.section__lead--light { color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--ink-soft); }

/* ===== buttons ===== */
.btn {
  --pad-y: 12px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: #fff; color: #0a0a0b; box-shadow: 0 8px 24px rgba(255, 255, 255, .10); }
.btn--primary:hover { background: #e4e6ea; }
.btn--ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn--ghost:hover { border-color: #fff; }
.btn--ghost-light { border-color: var(--border-strong); color: var(--ink); }
.btn--ghost-light:hover { border-color: #fff; }
.btn--light { background: var(--surface-2); color: var(--ink); border-color: var(--border-strong); }
.btn--lg { --pad-y: 15px; --pad-x: 30px; font-size: 1.02rem; }
.btn--sm { --pad-y: 8px; --pad-x: 16px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; margin-top: 10px; }

/* ===== topbar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: #000; color: #fff;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  transition: transform .3s ease;
}
.topbar__inner { display: flex; align-items: center; gap: 16px; justify-content: center; padding: 9px 24px; flex-wrap: wrap; }
.topbar__text s { color: var(--muted); white-space: nowrap; }
.topbar__text strong { color: #fff; white-space: nowrap; }
.topbar__timer { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .04em; color: #fff; }

/* ===== 1. hook ===== */
.hook {
  padding: 64px 0 88px; border-top: none; text-align: center;
  background:
    radial-gradient(70% 420px at 50% 0%, rgba(255, 255, 255, .07), transparent 70%),
    var(--bg);
}
.pill-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.pill {
  font-size: .82rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  padding: 6px 14px; border-radius: 999px;
}
.pill--hot { background: transparent; border-color: #fff; color: #fff; font-weight: 700; }

/* tier 2 emphasis — supports the primary CTA without competing with it */
.hook__scarcity {
  margin: 22px auto 0; max-width: 520px;
  font-size: .95rem; color: var(--ink-soft); font-weight: 500;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 9px 18px;
}
.hook__scarcity strong { color: #fff; font-weight: 700; }
.hook__scarcity--light {
  background: transparent; border: 1px solid var(--border-strong); color: var(--ink-soft); font-weight: 500;
}
.hook__scarcity--light strong { color: #fff; }
.hook__title { font-size: clamp(1.9rem, 5vw, 3.35rem); letter-spacing: -0.03em; color: #fff; }
.hl { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hook__sub { font-size: 1.18rem; color: var(--ink-soft); margin: 20px auto 0; max-width: 560px; }
.hook__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.countdown {
  margin: 34px auto 0; max-width: 520px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.countdown__label { font-size: .95rem; color: var(--ink-soft); margin-bottom: 12px; }
.countdown__label s { color: var(--muted); white-space: nowrap; }
.countdown__label strong { color: #fff; white-space: nowrap; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown__unit {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 4px; display: flex; flex-direction: column; align-items: center;
}
.countdown__unit span { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: #fff; }
.countdown__unit small { font-size: .72rem; color: var(--muted); }
.countdown--dark { background: var(--surface); border-color: var(--border); }
.countdown--dark .countdown__unit { background: var(--surface-2); border-color: var(--border); color: #fff; }
.countdown--dark .countdown__unit small { color: var(--muted); }

/* ===== placeholders ===== */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 220px; padding: 24px;
  background: repeating-linear-gradient(-45deg, var(--surface) 0 12px, var(--surface-2) 12px 24px);
  color: var(--muted); font-size: .9rem; border-radius: var(--radius-sm);
}
.ph--tall { min-height: 420px; }

/* ===== student profile card (testimonial) ===== */
.student-card {
  max-width: 420px; margin: 0 auto 28px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.student-card__photo {
  aspect-ratio: 16 / 9; min-height: 0; border-radius: 0;
  background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.student-card__photo img { width: 100%; height: 100%; object-fit: contain; }
.student-card__info { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; }
.student-card__info strong { font-size: 1rem; color: var(--ink); }
.student-card__info span { font-size: .88rem; color: var(--ink-soft); }

/* ===== 2/3. video ===== */
.video {
  position: relative; margin: 30px auto 0; max-width: 820px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 14px; cursor: pointer; box-shadow: var(--shadow-md);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--portrait { aspect-ratio: 9 / 16; max-width: 320px; }
.video__play {
  width: 74px; height: 74px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; position: relative; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .15s ease;
}
.video:hover .video__play { transform: scale(1.06); }
.video__play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #0a0a0b;
}
.video__hint { color: var(--muted); font-size: .82rem; }
.video__hint code { background: rgba(255, 255, 255, .10); color: var(--ink-soft); }

/* thumbnail (auto จาก YouTube หรือ data-thumb กำหนดเอง) */
.video--thumb { background-size: cover; background-position: center; }
.video--thumb::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .4));
}
.video--thumb .video__play,
.video--thumb .video__hint { position: relative; z-index: 1; }
.video--thumb .video__hint { color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* ===== before / after ===== */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.ba__card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm); position: relative; text-align: left;
}
.ba__card .ph { border-radius: 0; }
.video--ba { margin: 0; max-width: none; border: none; border-radius: 0; box-shadow: none; }
.ba__card figcaption { padding: 16px 18px; font-size: .95rem; color: var(--ink-soft); }
.ba__tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: #000; color: #fff; font-size: .78rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border-strong);
}
.ba__tag--green { background: #fff; color: #0a0a0b; border-color: transparent; }

/* ===== 4. pain ===== */
.pain__lead { font-size: 1.15rem; color: var(--ink-soft); margin: 12px auto 0; }
.pain__list {
  list-style: none; margin: 32px 0 0;
  display: grid; gap: 12px;
}
.pain__list li {
  position: relative; padding: 14px 16px 14px 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .98rem; color: var(--ink-soft);
}
.pain__list li::before {
  content: "✕"; position: absolute; left: 16px; top: 13px;
  color: var(--ink); font-weight: 700;
}
.pain__note { margin-top: 34px; display: grid; gap: 12px; font-size: 1.03rem; color: var(--ink-soft); }
.pain__note em { color: var(--ink); font-style: normal; }
.pain__note strong { color: var(--ink); }
.pain__punch {
  margin-top: 8px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #fff;
  color: var(--ink) !important; border-radius: var(--radius);
  font-weight: 500;
}

/* ===== 5. mechanism ===== */
.mech { list-style: none; margin: 44px 0 0; display: grid; gap: 16px; }
.mech__item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.mech__no {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: #fff; color: #0a0a0b; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.mech__item h3 { font-size: 1.14rem; margin-bottom: 4px; }
.mech__item p { color: var(--ink-soft); font-size: .98rem; }
.mech__coach {
  margin-top: 28px; padding: 30px; text-align: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.mech__coach h3 { color: var(--ink); }
.mech__coach p { color: var(--ink-soft); margin-top: 6px; }
.mech__coach strong { color: var(--ink); }
.mech__arrow { margin-top: 18px; display: grid; gap: 6px; font-weight: 600; color: var(--ink); }

/* ===== 6. pricing ===== */
.pricing__mini { font-size: .95rem; color: var(--muted); margin-top: 14px; }
.pricing__h {
  margin: 56px 0 20px; font-size: 1.35rem; text-align: center; color: #fff;
}
.deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.deliverables--2 { grid-template-columns: repeat(2, 1fr); }
.del {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.del header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.del__no { font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.del__val {
  font-size: .78rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  background: rgba(255, 255, 255, .08); padding: 3px 10px; border-radius: 999px;
}
.del h4 { margin-bottom: 8px; }
.del p { font-size: .95rem; color: var(--ink-soft); }
.del__foot { margin-top: 12px; font-weight: 600; color: var(--ink) !important; font-size: .92rem !important; }
.del--bonus { border-style: dashed; }

.ticks { list-style: none; display: grid; gap: 6px; margin: 12px 0 0; }
.ticks li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--ink); font-weight: 700;
}
.ticks--lg li { font-size: 1rem; padding: 4px 0 4px 28px; }

.assets { margin-top: 20px; }
.assets__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asset {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.asset span { font-size: .8rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .08em; }
.asset h4 { margin: 6px 0; color: #fff; letter-spacing: .04em; }
.asset p { font-size: .9rem; color: var(--ink-soft); }

.stack { margin-top: 24px; max-width: 640px; margin-left: auto; margin-right: auto; }
.stack__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stack__table td { padding: 12px 4px; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
.stack__table td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.stack__total td { font-weight: 700; font-size: 1.05rem; color: #fff !important; border-bottom: none; padding-top: 16px; }

/* focal card of the pricing section — the one place the eye should land last and act */
.pricebox {
  margin: 30px auto 0; max-width: 460px; text-align: center;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid #fff;
  border-radius: 20px; padding: 32px 28px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, .04), 0 0 80px rgba(255, 255, 255, .08);
}
.pricebox__label { font-size: .95rem; color: var(--muted); }
.pricebox__was { font-size: 1.4rem; color: var(--muted); text-decoration: line-through; margin-top: 4px; }
.pricebox__now { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.pricebox__promo { font-size: .95rem; color: var(--ink-soft); margin-top: 8px; }
.pricebox__promo strong { color: #fff; font-size: 1.05rem; white-space: nowrap; }
.pricebox__seats {
  margin-top: 14px; font-size: .9rem; color: var(--ink-soft); font-weight: 600;
  background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 12px;
}
.pricebox .countdown { max-width: none; margin-top: 18px; }
.pricebox .countdown--dark { background: var(--bg); border-color: var(--border); }
.pricebox .countdown--dark .countdown__unit { background: var(--surface); border-color: var(--border); color: #fff; }
.pricebox .countdown--dark .countdown__unit small { color: var(--muted); }

.guarantee {
  margin: 44px auto 0; max-width: 620px; text-align: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 32px; background: var(--surface);
}
.guarantee h3 { margin: 6px 0 12px; }
.guarantee p { color: var(--ink-soft); font-size: .98rem; margin-top: 8px; }
.guarantee strong { color: #fff; }
.guarantee__fine { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ===== 7. coaching ===== */
.coach { max-width: 640px; margin: 0 auto; text-align: center; }
.coach__text .btn { margin: 8px 8px 0 0; }
.coach__text .ticks--lg { text-align: left; max-width: 360px; margin: 20px auto 0; }

/* ===== 8. final cta ===== */
.finalcta .countdown { max-width: 520px; margin-top: 26px; }
.finalcta .hook__cta { margin-top: 26px; }

/* ===== footer ===== */
.footer { background: #000; color: var(--muted); padding: 28px 0; font-size: .85rem; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ===== reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== responsive ===== */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .ba, .deliverables, .deliverables--2, .assets__grid { grid-template-columns: 1fr; }
  .topbar__inner { font-size: .82rem; gap: 10px; }
  .topbar .btn--sm { display: none; }
  .countdown__unit span { font-size: 1.25rem; }
  .mech__item { padding: 18px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .hook__cta .btn, .finalcta .hook__cta .btn { width: 100%; }
}
