/* ────────────────────────────────────────────────────────────────────────
   1. Shared 2TTEST base, copied verbatim from the inline <style> block in
      landing/index.html (that block isn't a shared file yet). /landing/premium.css
      is loaded after this file, exactly as on the landing page, and wins the
      cascade for brand tokens, pill buttons, header height and the hero.
   ──────────────────────────────────────────────────────────────────────── */
:root {
  --brand: #146EF5;
  --brand-700: #1058C4;
  --brand-50: #EAF3FF;
  --ink: #0B1F44;
  --ink-2: #526173;
  --muted: #526173;
  --line: #E2E8F0;
  --panel: #F6F8FB;
  --warm-bg: #FEF3C7;
  --warm-fg: #92400E;
  --warm-line: #FBBF24;
  --success: #16A34A;
  --warning: #D97706;
  --error: #DC2626;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', 'Sarabun', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
:lang(th), .th { font-family: 'Sarabun', 'Plus Jakarta Sans', system-ui, sans-serif; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover {
  box-shadow: 0 8px 28px -12px rgba(11, 18, 32, 0.18);
  border-color: #cfd6e3;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--brand-700); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
  border-radius: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.btn-ghost:hover { background: #F6F8FB; border-color: #cfd6e3; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-50);
  color: var(--brand-700);
}
.chip-neutral { background: #F1F4F9; color: var(--ink-2); }
.nav-shadow { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(11,18,32,0.18); }
.hairline { height: 1px; background: var(--line); }
details.faq[open] summary .chev { transform: rotate(180deg); }
details.faq summary { list-style: none; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ────────────────────────────────────────────────────────────────────────
   2. This page only. Same tokens; nothing here introduces a new look.
   ──────────────────────────────────────────────────────────────────────── */
body { overflow-x: hidden; }
[hidden] { display: none !important; }
a[data-buy][aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: auto; }
a[data-buy][aria-disabled="true"]:hover { transform: none; background: var(--brand); }

/* hero additions inside the landing .premium-hero / .hero-copy structure */
.hero-copy h1 { font-size: clamp(44px, 4.6vw, 64px); line-height: 1.12; }
.hero-description { margin-top: 20px; }
.hero-price { margin-top: 28px; font-family: 'Sarabun', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.hero-actions { margin-top: 24px; }
.hero-pay { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-state { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* hero visual: the illustration already sits on white, so no card frame,
   shadow or tilt (overrides .hero-art img in premium.css); width/height
   attributes reserve its 3:2 box before it loads */
.hero-art .hero-visual { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 0; box-shadow: none; transform: none; }

/* header: section links inline from 1024px; drawer below (no crowded strip on mobile) */
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .nav-toggle, .nav-drawer { display: none !important; } }

/* section headings sit closer to their content than the landing's (short sections) */
section h2 + * { margin-top: 32px; }

/* รายละเอียด — four steps on one line, no cards */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 0; font-size: 22px; font-weight: 600; color: var(--ink); }
.steps li { display: inline-flex; align-items: center; }
.steps li + li::before { content: "→"; color: var(--muted); font-weight: 400; margin: 0 18px; }

/* ข้อสอบ — rows with hairlines, beside the real results card */
.exam-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.list-title { font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.mt-after { margin-top: 40px !important; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.rows li span:last-child:not(:first-child) { color: var(--muted); }
.rows-total { font-weight: 700; }
.rows-total span:last-child { color: var(--ink) !important; }

/* results card: same geometry as the landing ResultPreview */
.bar { background: var(--panel); }
.tones .good { background: var(--success); } .tones .warn { background: var(--warning); }
.good-t { color: var(--success); } .warn-t { color: var(--warning); }
.review { border-top: 1px solid var(--line); padding-top: 20px; }
.rv-q { font-weight: 600; font-size: 17px; line-height: 1.5; margin: 0; }
.rv-q u { text-decoration-color: var(--success); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.rv-gap { margin-left: 16px; }

/* ตัวอย่างการเรียน — title + action above a typographic cover (video poster comes later) */
.learn { max-width: 960px; }
.learn-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.learn-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.learn-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: 16px; }
.media { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -16px rgba(11,31,68,.25); }
.media video { width: 100%; height: 100%; object-fit: cover; background: #fff; display: block; }
.cover { position: absolute; inset: 0; border: 0; padding: 0; cursor: default; background: var(--brand-50); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; font: inherit; }
.cover.ready { cursor: pointer; }
.cover-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.cover-play { width: 68px; height: 68px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; transition: background .15s; }
.cover-play svg { margin-left: 4px; }
.cover.ready:hover .cover-play { background: var(--brand-700); }
.learn-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ผู้สอน + การชำระเงิน — two short sections in one band */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.pair-strong { margin: 24px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.pair-text { margin: 12px 0 0; font-size: 17px; color: var(--ink-2); }
.pair h2 + .pair-text { margin-top: 24px; }

/* buy */
.final-price { margin-top: 16px; font-family: 'Sarabun', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; }
.final-actions { margin-top: 24px; display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.final-actions .btn-primary, .hero-actions .btn-primary { padding: 14px 38px; font-size: 17px; font-weight: 600; display: inline-flex; }

/* mobile purchase bar */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.mbar.show { transform: none; }
.mbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.mbar-price { font-family: 'Sarabun', sans-serif; font-weight: 800; font-size: 28px; }
.mbar .btn-primary { flex: 1; max-width: 240px; padding: 12px 20px; text-align: center; font-size: 16px; }

@media (max-width: 960px) {
  .exam-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 767px) {
  .mbar { display: block; }
  body { padding-bottom: 80px; }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 52px); }
  .hero-price { font-size: 40px; }
  .steps { flex-direction: column; font-size: 19px; gap: 0; }
  .steps li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .steps li + li::before { content: none; }
  .learn-meta { flex-direction: column; align-items: stretch; }
  .learn-btn { justify-content: center; }
  .cover-title { font-size: 24px; }
  .cover-play { width: 56px; height: 56px; }
  .pair { grid-template-columns: 1fr; gap: 56px; }
  .final-actions { flex-direction: column; gap: 18px; }
  .final-actions .btn-primary { width: 100%; justify-content: center; }
}
