/* ==========================================================================
   iampoom learn · stylesheet
   Stage 5 (11 Nov 2026): the look of iampoom.com itself, so the course site reads as part of it. Tokens,
   type, header, footer, buttons and cards come from iampoom-com/app/globals.css and
   app/(site)/redesign.css: one background for the whole page, sections split by space and a heading
   (never by a coloured band), cards only for things that are one item (a clip cover, the price), mono for
   small facts and numbers, one blue button per screen. Designed at 375px first. Light only, on every
   device (Khun Poom, 6 Nov 2026).
   ========================================================================== */

:root {
  color-scheme: light;

  /* iampoom.com */
  --bg: #e9edf2;
  --bg-soft: #e0e5ec;
  --card: #f3f6fa;
  --ink: #14171c;
  --ink-2: #222730;
  --ink-3: #4d5663;
  --ink-4: #5e6674;
  --line: #d7dee7;
  --line-strong: #c4cdd9;
  --accent: #2563eb;
  --accent-text: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.18);
  --field: #ffffff;
  /* the free tag and ticks (approved 2 Nov); forms only: the brand has no red. Both pass AA on --bg and --card. */
  --ok: #137a3c;
  --ok-soft: #e4f4ea;
  --danger: #b42318;
  --danger-soft: #fbeceb;

  /* names the other pages still use */
  --surface: var(--card);
  --sunk: var(--bg-soft);
  --muted: var(--ink-3);
  --faint: var(--ink-4);
  --accent-ink: var(--accent-text);

  --sans: "Geist", "IBM Plex Sans Thai", "Sukhumvit Set", "Thonburi", system-ui, sans-serif;
  --thai: "IBM Plex Sans Thai", "Geist", "Sukhumvit Set", "Thonburi", system-ui, sans-serif;
  --mono: "Geist Mono", "IBM Plex Sans Thai", ui-monospace, Menlo, monospace;
  --font: var(--thai);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 24px -8px rgba(0, 0, 0, 0.08);
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; accent-color: var(--accent); caret-color: var(--accent); scroll-padding-top: 72px; }
html, body { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--thai);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: var(--accent-text); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
button, input, select, textarea { font: inherit; }
p, li, dd { text-wrap: pretty; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--accent-glow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nb { white-space: nowrap; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.q { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* headings as iampoom.com sets them: Geist for Latin, Plex Thai for Thai, 600, drawn in tight */
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.2; letter-spacing: -0.025em; margin-bottom: 16px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.22; letter-spacing: -0.03em; margin-bottom: 10px; }
h3 { font-family: var(--thai); font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 4px; }

/* IconSaga icons (stage 6): line and soft fill come from each symbol; the box is about 20% larger than the
   Lucide one it replaced (iampoom's icon style, Khun Poom 10 Nov 2026) */
.icon { width: 21px; height: 21px; flex: 0 0 auto; fill: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-lg { width: 30px; height: 30px; }
/* IconSaga motion (public/icons.css holds each icon's move): still until public/motion.js gives an icon .on,
   so nothing moves without the script; a move may swing a little past the icon's box */
.isg-m:not(.on) * { animation: none !important; }
svg.isg-m { overflow: visible; }
.si { width: 16px; height: 16px; flex: 0 0 auto; }
.logo-mark { width: 30px; height: 30px; flex: 0 0 auto; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---- Header and footer (iampoom.com's nav and foot) ----------------------- */

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
}
.site-head .container { display: flex; align-items: center; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand .logo-mark { margin-left: -3px; }
.brand .wm { font-family: var(--mono); font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 22px; min-width: 0; font-size: 14px; }
.site-head nav a { position: relative; color: var(--ink-3); text-decoration: none; padding: 4px 0; white-space: nowrap; }
.site-head nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.18s;
}
.site-head nav a:hover { color: var(--accent); }
.site-head nav a:hover::after { transform: scaleX(1); }
.site-head nav a[aria-current="page"] { color: var(--ink); }
.site-head nav a.login { padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2); }
.site-head nav a.login::after { display: none; }
.site-head nav a.login:hover { border-color: var(--accent); }
.hide-sm { display: none; }
@media (min-width: 641px) { .site-head nav a.hide-sm { display: inline-block; } }

.site-foot { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 20px; }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-big { font-family: var(--sans); font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; color: var(--ink); }
.foot-note { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 13px; }
.foot-links a { color: var(--ink-4); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
.copy { margin: 36px 0 0; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
body.has-bottom-bar .site-foot { padding-bottom: 40px; }

/* ---- Shared blocks ------------------------------------------------------- */

.band { padding-block: 64px; }
.band.tight { padding-block: 44px; }
.band.white { background: var(--surface); }
.sec { padding-block: 72px; }
.lede { font-size: clamp(16.5px, 1.9vw, 18px); color: var(--ink-3); max-width: 52ch; margin: 0 0 24px; }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head h2 { margin-bottom: 0; }
.sec-head p { font-size: 15px; color: var(--ink-3); margin: 10px 0 0; max-width: 62ch; }
.sec-head .free-tag { margin-left: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: 1.4; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, opacity 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); opacity: 0.92; }
.btn-ghost, .btn-secondary { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover, .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--card); border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn s, .p-was { color: var(--ink-4); font-weight: 400; }
.btn-primary s { color: #cfe0ff; }
.ghost { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.ghost .icon { transition: transform 0.18s; }
.ghost:hover { color: var(--accent); }
.ghost:hover .icon { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14.5px; font-weight: 500; }

.chips, .facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li, .facts li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.chips .icon, .facts .icon { width: 19px; height: 19px; color: var(--accent); }
.fine { font-size: 13px; color: var(--ink-4); margin: 12px 0 0; text-wrap: balance; }

/* a clip cover: one item, so it gets the card edge iampoom.com gives its covers */
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); max-width: 100%; }
.phone img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1); }
a.phone { display: block; transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.2s, border-color 0.2s; }
a.phone:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow); }
a.phone:hover img { transform: scale(1.02); }

.free-tag {
  display: inline-block; vertical-align: middle; font-size: 11.5px; font-weight: 600; line-height: 1.55;
  color: #fff; background: var(--ok); border-radius: 999px; padding: 0 8px; margin-left: 6px; white-space: nowrap;
}
.free-tag.is-signup { background: var(--accent-soft); color: var(--accent-text); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink-4);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; line-height: 1.6; white-space: nowrap;
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }

.notice {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
  padding: 12px 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ink-2);
  font-size: 14.5px; line-height: 1.6;
}
.notice .icon { margin-top: 2px; color: var(--ok); }
.form-alert {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px;
  padding: 12px 14px; border: 1px solid var(--danger); border-radius: 12px; background: var(--danger-soft);
  color: var(--danger); font-size: 14.5px; font-weight: 500; line-height: 1.6;
}
.form-alert .icon { margin-top: 2px; }

/* ---- Home ---------------------------------------------------------------- */

/* iampoom.com's hero: the soft blue light in the top corner, a big headline with its last part in blue */
.hero { position: relative; padding-block: 48px 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 88% -5%, var(--accent-soft), transparent 62%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.18; letter-spacing: -0.035em; margin-bottom: 20px; }
.hero h1 .q { display: block; }
.hero .lede { margin-bottom: 28px; }
.fan-wrap { display: grid; gap: 16px; justify-items: center; }
.fan { position: relative; height: 420px; width: 100%; max-width: 480px; }
.fan .phone { position: absolute; top: 0; width: 210px; box-shadow: var(--shadow); }
.fan .phone:nth-child(1) { left: 0; top: 36px; }
.fan .phone:nth-child(2) { left: calc(50% - 105px); z-index: 2; }
.fan .phone:nth-child(3) { right: 0; top: 36px; }
.fan-note { font-size: 13.5px; color: var(--ink-4); text-align: center; text-wrap: balance; }

/* a course: laid out as iampoom.com's latest article (picture left, words right), no box around it */
#courses { padding-top: 40px; }
.tracks { display: flex; flex-direction: column; gap: 44px; }
.track { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 40px; align-items: center; }
.track .vis {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center;
  padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
}
.track .vis .phone { border-radius: 10px; }
.track .vis.plain { grid-template-columns: minmax(0, 1fr); place-items: center; color: var(--ink-4); min-height: 200px; }
.track .vis.plain .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.track .label {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 500;
}
.track .label .icon { width: 15px; height: 15px; }
.track .label.soon { color: var(--ink-3); background: var(--bg-soft); }
.track h3 { font-family: var(--thai); font-size: clamp(23px, 2.9vw, 32px); line-height: 1.25; letter-spacing: -0.02em; margin: 14px 0 12px; }
.track h3 a { color: inherit; text-decoration: none; transition: color 0.15s; }
.track h3 a:hover { color: var(--accent); }
.track p.d { color: var(--ink-3); font-size: 15.5px; margin: 0 0 18px; max-width: 48ch; }
.track-meta .facts-line { font-weight: 600; color: var(--ink-2); font-size: 15.5px; }
.track-meta .fine { margin-top: 2px; }
.more { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.more .icon { transition: transform 0.18s; }
.more:hover { color: var(--accent); }
.more:hover .icon { transform: translateX(3px); }
.notify-inline { display: grid; gap: 10px; }
.notify-inline .row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-inline .input { flex: 1 1 220px; min-width: 0; width: auto; }
.notify-inline .check { padding: 2px 0; }

/* ---- Teacher and story ----------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.about-pics { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.about-pics img { width: 100%; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); }
.about-pics .main { aspect-ratio: 3 / 2; }
.about-pics .strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.about-pics .strip img { aspect-ratio: 3 / 2; border-radius: 12px; }
.about h2 { margin-bottom: 2px; }
.role { color: var(--ink-3); margin: 0 0 14px; font-weight: 500; }
.role .part, .who .part { display: inline-block; }
.bio { margin: 0 0 12px; max-width: 58ch; color: var(--ink-2); }
.stats-note { font-size: 12.5px; color: var(--ink-4); margin: 14px 0 0; }
.about .stats-note { margin: 0 0 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.socials span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.socials .logo-mark { width: 20px; height: 20px; margin: -2px; }
.apps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.apps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-3); }
.apps img { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.apps b { color: var(--ink); font-weight: 600; }
.story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.story-pic { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.story h2 { margin-bottom: 18px; }
.story .bio { font-size: 17px; line-height: 1.75; margin: 0 0 12px; }
.story .bio b { color: var(--ink); font-weight: 600; }
.story .who { margin: 22px 0 16px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); max-width: 58ch; }
.story .who b { color: var(--ink); }
.teacher { display: flex; gap: 16px; align-items: flex-start; }
.teacher .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.teacher p { margin-top: 6px; color: var(--ink-2); max-width: 58ch; }
.teacher-name { font-weight: 600; font-size: 18px; }
.teacher-site { font-family: var(--mono); font-size: 12.5px; color: var(--ink-4); }

/* ---- FAQ ----------------------------------------------------------------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 56px; align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 17px 0; font-weight: 600; font-size: 16.5px; line-height: 1.5; transition: color 0.15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary .icon { transition: transform 0.2s; color: var(--ink-4); margin-top: 4px; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: -4px 0 18px; color: var(--ink-3); font-size: 15.5px; max-width: 62ch; }

/* ---- Sale page ----------------------------------------------------------- */

.crumb { font-size: 13.5px; color: var(--ink-4); margin: 0 0 30px; }
.crumb a { color: var(--ink-4); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.sale-hero { position: relative; padding-block: 28px 56px; }
/* the soft blue light in the top corner of iampoom.com's hero */
.sale-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 88% -5%, var(--accent-soft), transparent 62%);
}
.sale-hero .container { position: relative; }
.sale-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 18px; }
/* the blue part on a line of its own, so it never splits after a word or two */
.sale-hero h1 .q { display: block; }
.sale-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: center; }
.sale-grid.solo { grid-template-columns: minmax(0, 1fr); }
.launch-bar {
  display: inline-flex; flex-wrap: wrap; gap: 0 6px; margin: 0 0 20px; padding: 3px 10px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 13.5px; line-height: 1.6;
}
.launch-bar .cdown { font-family: var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.launch-note { margin: 0 0 14px; font-size: 13.5px; font-weight: 500; color: var(--accent-text); text-wrap: balance; }
.who-line { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 18px; }
.who-line b { color: var(--ink); font-weight: 600; }
.sig { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink-2); line-height: 1.5; letter-spacing: -0.01em; margin: 0 0 12px; }
.sale-main .lede { font-size: 16px; line-height: 1.7; margin-bottom: 22px; }
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.cta .btn { min-height: 48px; padding-inline: 22px; }
.pc-hint { display: none; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin: 14px 0 0; }
.pc-hint .icon { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; }
.slide-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); position: relative; }
.slide-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.slide-frame .play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px 6px 8px; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.slide-frame .play i { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.slide-frame .play .icon { fill: currentColor; stroke: none; width: 12px; height: 12px; margin-left: 2px; }
.feature-cap { text-align: center; font-size: 13px; color: var(--ink-4); margin: 10px 0 0; text-wrap: balance; }

#clips { padding-top: 8px; }
.wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.wall > * { min-width: 0; }
.wall-cap { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 18px 0 0; font-size: 13.5px; color: var(--ink-4); }
.wall-cap b { color: var(--ink); font-weight: 600; }

.fit-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.fit-list li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.fit-list .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 14px; }
.fit-list h3 { margin-bottom: 8px; }
.fit-list p { font-size: 15px; color: var(--ink-3); }
.notfit { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; }
.notfit h3 { font-size: 15px; color: var(--ink-3); }
.notfit ul { display: contents; }
.notfit li { list-style: none; }
.notfit li b { display: block; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.notfit li span { display: block; font-size: 14.5px; color: var(--ink-4); }

/* lessons: a list split by hairlines, as iampoom.com lists its articles (no box around each one) */
.phases { border-top: 1px solid var(--line-strong); }
.phase { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.phase-side { display: flex; align-items: flex-start; gap: 12px; }
.phase-side .icon { width: 30px; height: 30px; color: var(--accent); margin-top: -2px; }
.phase-name { font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--ink); }
.phase-name small { display: block; margin-top: 2px; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--ink-4); }
.phase-name .phase-sum { display: block; font-weight: 400; color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.lessons { list-style: none; margin: 0; padding: 0; }
.lessons > li + li { border-top: 1px solid var(--line); }
.lessons .row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; color: inherit; text-decoration: none; }
.phase .lessons > li:first-child .row { padding-top: 0; }
.phase .lessons > li:last-child .row { padding-bottom: 0; }
.lessons .num { grid-row: span 2; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.lessons .ttl { font-size: 16.5px; font-weight: 600; line-height: 1.55; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; transition: color 0.15s; }
.lessons .ttl .free-tag { margin-left: 0; }
.lessons .sum { color: var(--ink-3); font-size: 14.5px; }
a.row:hover .ttl { color: var(--accent); }
.len { margin-left: auto; font-family: var(--mono); font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--ink-4); white-space: nowrap; padding-left: 8px; }
.lessons-note { margin: -16px 0 20px; font-size: 14px; color: var(--ink-3); }
.try { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 32px; }
.try-text { display: flex; align-items: flex-start; gap: 14px; }
.try-text .icon { width: 30px; height: 30px; color: var(--accent); margin-top: 2px; }
.try h3 { font-family: var(--sans); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 2px; }
.try p { color: var(--ink-3); font-size: 15px; }

.buy-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: start; }
.buy-info > h3 { font-size: 16px; margin-bottom: 4px; }
.gets { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.gets li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.gets .icon { width: 26px; height: 26px; color: var(--accent); margin-top: 1px; }
.gets b { display: block; font-weight: 600; font-size: 16px; line-height: 1.55; color: var(--ink); }
.gets p { margin-top: 2px; color: var(--ink-3); font-size: 14.5px; }
.files-note { font-size: 14px; color: var(--ink-4); margin: 0 0 6px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.price-card .pname { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; text-wrap: balance; }
.amount { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; }
.amount b { font-family: var(--sans); font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.amount span { color: var(--ink-3); }
.checks-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.checks-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink-2); }
.checks-list .icon { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; }
.price-card .btn-primary { width: 100%; min-height: 52px; font-size: 16px; }
.buy-form { display: grid; gap: 14px; }
.buy-form .notice, .buy-form .form-alert { margin-top: 0; }
.buy-hint { font-size: 13px; line-height: 1.6; color: var(--ink-4); text-align: center; text-wrap: balance; }
.price-card .notify { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.price-card .launch-note { margin: 0 0 14px; }
.closing { text-align: center; }
.closing h2 { margin-bottom: 16px; }
.closing .btns { justify-content: center; }
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  display: none; align-items: center; gap: 12px;
}
.sticky-buy .p { line-height: 1.3; }
.sticky-buy .p b { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.sticky-buy .p small { display: block; color: var(--ink-4); font-size: 12px; }
.sticky-buy .btn { margin-left: auto; }

/* ---- Owned course -------------------------------------------------------- */

.owned-hero { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; max-width: 720px; }
.owned-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-3); font-size: 14px; margin: 0 0 16px; }
.owned-meta span { display: inline-flex; align-items: center; gap: 6px; }
.owned-meta .icon { width: 16px; height: 16px; color: var(--ok); }
.bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: 0 0 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.prog { font-size: 14px; color: var(--ink-3); margin: 0 0 18px; }
.lessons.state .row { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; padding-block: 11px; }
.lessons.state .st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12.5px; background: var(--bg-soft); color: var(--ink-3); }
.lessons.state .st.done { background: var(--ok); color: #fff; }
.lessons.state .st.now { background: var(--accent); color: #fff; }
.lessons.state .st .icon { width: 15px; height: 15px; }
.lessons.state .ttl { font-size: 15.5px; }
.lessons.state .r { font-size: 13px; color: var(--ink-4); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lessons.state .r .free-tag { margin: 0; }
.lessons.state li.now .ttl, .lessons.state li.now .r { color: var(--accent-text); }
.lessons-group + .lessons-group { margin-top: 20px; }
.lessons-group h3 { font-size: 13.5px; color: var(--ink-3); margin: 0 0 6px; }

/* ---- Lesson page --------------------------------------------------------- */

.lesson-top { border-bottom: 1px solid var(--line); }
.lesson-top .container { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-block: 12px; }
.lesson-top a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.lesson-top a:hover { color: var(--accent); }
.lesson-top .where { color: var(--ink-4); font-size: 14px; min-width: 0; }
.lesson-top .step { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--ink-4); white-space: nowrap; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; padding-block: 28px 72px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; background: #0b0f19; border-radius: 14px; overflow: hidden; max-width: 100%; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #0b0f19; color: #d6d6d8; }
.poster { position: absolute; inset: 0; background: radial-gradient(120% 90% at 40% 55%, #1f3360 0%, #121c33 55%, #0b1120 100%); color: #fff; display: flex; flex-direction: column; justify-content: flex-start; padding: 7% 8%; overflow: hidden; }
.poster .k { font-size: clamp(11px, 1.5vw, 14px); color: #a9b8d6; font-weight: 600; margin-bottom: 4px; }
.poster .t { font-size: clamp(17px, 3vw, 30px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; max-width: 68%; text-wrap: balance; }
.poster .num { position: absolute; right: 6%; bottom: -4%; font-family: var(--mono); font-weight: 600; font-size: clamp(80px, 16vw, 170px); color: rgba(255, 255, 255, 0.07); line-height: 1; }
.player .locked { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 14px; background: rgba(11, 17, 32, 0.82); color: #fff; }
.player .locked > div > .icon { display: block; width: 26px; height: 26px; margin: 0 auto 6px; }
/* the video is not recorded yet: the poster stays readable, the note sits at the bottom */
.player.is-coming .locked { background: linear-gradient(180deg, rgba(11, 17, 32, 0) 30%, rgba(11, 17, 32, 0.88)); place-items: end center; padding-bottom: 14px; }
.player.is-coming .locked > div { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; justify-content: center; }
.player.is-coming .locked > div > .icon { margin: 0; width: 20px; height: 20px; }
.player.is-coming .locked b { font-size: 15px; }
.player.is-coming .locked span { margin: 0; }
.player .locked b { display: block; font-size: 17px; line-height: 1.4; text-wrap: balance; }
.player .locked span { display: block; font-size: 13.5px; color: #cfd8e8; margin: 2px 0 12px; text-wrap: balance; }
.player .locked .btn { margin-top: 2px; }
.player .locked .btn-ghost { border-color: transparent; }
.gate-note { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.gate-note + .gate-note { margin-top: 4px; }
.lesson-main h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; letter-spacing: -0.025em; margin: 24px 0 8px; }
.lesson-main h1 .free-tag { font-size: 12px; }
.lesson-meta { color: var(--ink-4); font-size: 14px; margin: -2px 0 10px; }
.lesson-main .desc { color: var(--ink-3); font-size: 16.5px; margin: 0 0 22px; max-width: 62ch; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 16px 0; border-block: 1px solid var(--line); }
.lesson-actions .btn { white-space: normal; text-align: left; line-height: 1.4; padding-block: 10px; }
.saved { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-left: auto; text-decoration: none; }
.saved .icon { width: 15px; height: 15px; color: var(--ok); }
a.saved .icon { color: var(--accent); }
.lesson-section { margin-top: 28px; }
.lesson-section h2 { font-family: var(--thai); font-size: 15px; letter-spacing: 0; color: var(--ink-3); margin-bottom: 10px; }
.side { position: sticky; top: calc(76px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 14px; }
.side h2 { font-family: var(--thai); font-size: 16px; letter-spacing: 0; margin: 0 0 8px; }
.side .prog { margin: 0 0 10px; }
.aside-note { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.unlock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.unlock h3 { font-size: 17px; }
.unlock p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
.unlock .amount { margin: 0 0 12px; gap: 6px; color: var(--ink); }
.unlock .amount b { font-size: 40px; }
.unlock .btn { width: 100%; margin-top: 6px; }
.unlock .fine { font-size: 13px; margin: 10px 0 0; }

.prose { max-width: 62ch; line-height: 1.8; color: var(--ink-2); }
.prose > * + * { margin-top: 14px; }
.prose h2, .prose h3 { font-size: 17px; margin-top: 22px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose code { font-family: var(--mono); font-size: 0.92em; background: var(--sunk); border-radius: 6px; padding: 1px 5px; }

/* ---- Files --------------------------------------------------------------- */

/* files: a list split by hairlines, like the lessons (no box around them) */
.file-list, .file-list.card { list-style: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); }
.file-list li { border-top: 1px solid var(--line); }
.file-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; }
.file-row > .icon { color: var(--muted); align-self: start; margin-top: 3px; }
.file-title { display: block; font-weight: 600; line-height: 1.5; }
.file-summary { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.file-btn { min-height: 40px; }

/* ---- Sign-in and short pages --------------------------------------------- */

.signin-wrap { display: grid; grid-template-columns: minmax(0, 460px); justify-content: center; }
.signin-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.signin-card h1 { font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.03em; margin: 0 0 6px; }
.signin-card .sub { color: var(--ink-3); margin: 0 0 20px; text-wrap: balance; }
.buying { display: flex; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; }
.buying > .icon { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.buying b { display: block; line-height: 1.4; }
.buying small { display: block; color: var(--muted); font-size: 13.5px; text-wrap: balance; }
.inapp-note { border: 1px solid #bcd0f7; background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.inapp-note b { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.inapp-note p { margin: 4px 0 0; }
/* Google's sign-in button (its branding guidelines, light theme): white, a #747775 border, #1F1F1F words, the four-colour G */
.btn-google { width: 100%; background: #ffffff; color: #1f1f1f; border-color: #747775; gap: 12px; font-weight: 500; }
.btn-google:hover { background: #f8fafd; border-color: #747775; color: #1f1f1f; }
.btn-google .g-logo { width: 20px; height: 20px; flex: 0 0 auto; }
.check-done { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.check-done .icon { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: #0b6e65; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.narrow { width: 100%; max-width: 492px; margin: 0 auto; padding: 32px var(--gutter-r) 56px var(--gutter-l); }
.page-head { padding-top: 32px; }
.page-title { font-size: clamp(28px, 3.8vw, 38px); letter-spacing: -0.03em; margin: 0; }
.page-title.spaced { margin-top: 20px; }
.page-lead { margin-top: 10px; color: var(--ink-3); }
.page-head .page-lead { margin-top: 6px; font-size: 15px; }
.sent-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.sent-email { display: block; margin-top: 4px; color: var(--ink); font-weight: 600; word-break: break-all; }
.help { margin-top: 28px; padding: 20px; }
.help h2 { font-family: var(--thai); font-size: 16px; letter-spacing: 0; }
.help ul { list-style: none; margin-top: 10px; display: grid; gap: 10px; }
.help li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--muted); }
.help li .icon { margin-top: 3px; color: var(--faint); }
.actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }

/* Forms */
.form { margin-top: 22px; display: grid; gap: 16px; }
.signin-card .form { margin-top: 0; }
.field label, .field-label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.input {
  display: block; width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); color: var(--ink);
  font-size: 16px; line-height: 1.4;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code-input { font-family: var(--mono); font-size: 24px; letter-spacing: 0.3em; text-align: center; min-height: 56px; }
select.input { appearance: auto; }
.checks { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.check-text { line-height: 1.6; text-wrap: pretty; }
.check-text a { white-space: nowrap; }
.check-text .tag { margin-left: 4px; color: var(--faint); }
.check-hint { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); }
.check.is-invalid { color: var(--danger); }
.check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 1px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--danger); }
.field-error .icon { margin-top: 3px; width: 16px; height: 16px; }
.form-notes { display: grid; gap: 6px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: var(--faint); }
.form-note .icon { margin-top: 2px; width: 15px; height: 15px; }

/* "แจ้งฉันเมื่อเปิด" */
.notify { display: grid; gap: 14px; }
.notify-title { font-size: 16px; letter-spacing: 0; }
.notify-hint { font-size: 13px; line-height: 1.6; color: var(--faint); }
.notify .form-alert { margin-top: 0; }
.notify-done { margin-top: 0; }
.soon-card { max-width: 520px; margin-top: 20px; padding: 22px; }
.sale-hero > .container > .badge { margin-bottom: 10px; }

/* ---- My courses, account, policy, owner ---------------------------------- */

.my-courses { list-style: none; display: grid; gap: 18px; margin-top: 24px; }
.my-card { display: flex; flex-direction: column; padding: 20px; }
.my-card h2 { font-family: var(--thai); font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; margin: 0; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--accent-ink); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.meta .dot { color: var(--line-strong); }
.progress-wrap { margin-top: 16px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }
.progress-label .mono { font-size: 13px; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.my-card .resume { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.my-card .resume strong { color: var(--ink-2); font-weight: 600; }
.my-card-foot { margin-top: auto; padding-top: 16px; }
.my-card-foot-inner { display: grid; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.access { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.access .icon { margin-top: 2px; color: var(--ok); width: 16px; height: 16px; }
.access strong { font-weight: 600; color: var(--ink); }
.access .sub { display: block; color: var(--faint); font-size: 13px; }
.empty { margin-top: 24px; padding: 28px 20px; }
.empty h2 { font-family: var(--thai); font-size: 20px; letter-spacing: -0.01em; }
.empty p { margin-top: 6px; color: var(--muted); max-width: 32em; }
.empty .btn { margin-top: 18px; }
.me-foot { margin-top: 28px; padding-bottom: 56px; font-size: 14px; color: var(--muted); }

.narrow-page { max-width: 752px; padding-bottom: 56px; }
.account-card { margin-top: 18px; padding: 20px; display: grid; gap: 10px; justify-items: start; }
.account-card h2 { font-family: var(--thai); font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.account-card .form { margin-top: 4px; width: 100%; gap: 14px; }
.account-status { font-weight: 600; }
.account-note { font-size: 14px; color: var(--muted); line-height: 1.6; }
.kv { display: grid; gap: 10px; width: 100%; }
.kv dt { font-size: 13px; color: var(--faint); }
.kv dd { word-break: break-word; }
.danger-zone { border-color: #e7b7b2; }
.bought { list-style: none; display: grid; gap: 10px; width: 100%; }
.bought-title { display: block; font-weight: 600; }
.bought-sub { display: block; font-size: 14px; color: var(--muted); }

.policy { max-width: 752px; padding-top: 32px; padding-bottom: 56px; }
.policy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.policy .prose { margin-top: 22px; max-width: none; }
.policy .prose h2 { font-size: 21px; letter-spacing: -0.02em; margin-top: 34px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.stat { padding: 18px; display: grid; gap: 4px; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-value { font-size: 30px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.owner-grid { display: grid; gap: 18px; margin-top: 18px; }
.owner-grid > * { min-width: 0; }
.owner-card { margin-top: 18px; padding: 20px; }
.owner-grid .owner-card { margin-top: 0; }
.owner-card h2 { font-family: var(--thai); font-size: 16px; letter-spacing: 0; margin-bottom: 10px; }
.owner-card h3 { font-family: var(--thai); font-size: 15px; letter-spacing: 0; margin: 24px 0 6px; }
.owner-pending { list-style: none; margin: 10px 0 0; padding: 0; }
.owner-pending li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.owner-pending-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.owner-pending-text .mono { font-size: 13px; }
.owner-section { margin-top: 44px; }
.owner-section + .stat-grid { margin-top: 14px; }
.owner-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.owner-table th { text-align: left; font-weight: 500; color: var(--faint); padding: 8px 0; border-bottom: 1px solid var(--line); }
.owner-table td { padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.owner-table tr:last-child td { border-bottom: 0; }
.owner-table .num { text-align: right; padding-left: 16px; white-space: nowrap; }
.owner-table .nowrap { white-space: nowrap; padding-right: 12px; }
.owner-table td + td, .owner-table th + th { padding-left: 12px; }
.owner-table.wide td, .owner-table.wide th { white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .owner-table { min-width: 480px; }
.table-scroll .owner-table.wide { min-width: 860px; }
.owner-form { margin-top: 14px; gap: 14px; max-width: 420px; }
.owner-page { padding-bottom: 56px; }

/* the owner page's dashboard (28 Nov 2026, src/views/owner-dashboard.tsx): the eBook at a glance, no script, bars are
   elements with a height or width */
.dash { margin-top: 24px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.dash-head h2 { font-family: var(--thai); font-size: 18px; letter-spacing: 0; margin: 0; }
.dash-note { font-size: 13px; color: var(--faint); margin: 0; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dash-kpi { padding: 16px; display: grid; gap: 2px; align-content: start; }
.dash-kpi-label { font-size: 14px; color: var(--muted); }
.dash-kpi-value { font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.dash-kpi-value small { font-family: var(--thai); font-size: 13px; font-weight: 500; color: var(--muted); }
.dash .nw { white-space: nowrap; }
.dash-kpi-sub { font-size: 13px; color: var(--faint); }
.dash-kpi.is-ok .dash-kpi-value { color: var(--ok); }
.dash-launch { margin-top: 12px; padding: 16px; }
.dash-launch-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 0; }
.dash-launch-label { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.dash-launch-n { font-size: 24px; font-weight: 600; color: var(--accent-ink); }
.dash-launch-of { font-size: 14px; color: var(--muted); }
.dash-launch-track { display: block; height: 10px; margin-top: 10px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.dash-launch-bar { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.dash-launch-note { font-size: 13px; color: var(--faint); margin: 8px 0 0; }
.dash-grid { display: grid; gap: 12px; margin-top: 12px; }
.dash-grid > * { min-width: 0; }
.dash-card { padding: 18px 16px; }
.dash-card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.dash-card h3 { font-family: var(--thai); font-size: 16px; font-weight: 600; letter-spacing: 0; margin: 0; }
.dash-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin: 0; }
.dash-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.dash-key.is-open { background: var(--accent); }
.dash-key.is-sale { background: var(--ok); border-radius: 50%; }
.dash-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; }
.dash-bars li { display: grid; grid-template-rows: 136px 20px 14px; justify-items: center; gap: 4px; min-width: 0; }
.dash-bar-n { flex: none; font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; }
.dash-bar-track { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 100%; height: 100%; border-bottom: 1px solid var(--line-strong); }
.dash-bar { display: block; width: min(100%, 22px); border-radius: 4px 4px 0 0; background: rgba(37, 99, 235, 0.32); }
.dash-bars li.is-today .dash-bar { background: var(--accent); }
.dash-bars li.is-today .dash-bar-n, .dash-bars li.is-today .dash-day { color: var(--accent-ink); font-weight: 600; }
.dash-sale { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.dash-sale.is-none { background: none; }
.dash-day { font-size: 11px; line-height: 14px; color: var(--faint); white-space: nowrap; }
.dash-channels, .dash-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-channels li, .dash-funnel li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; }
.dash-ch-name, .dash-fn-name { font-size: 14px; color: var(--ink-2); }
.dash-ch-n { font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.dash-ch-n small { font-size: 12px; font-weight: 400; color: var(--faint); }
.dash-ch-track, .dash-fn-track { grid-column: 1 / -1; display: block; height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.dash-ch-bar, .dash-fn-bar { display: block; height: 100%; border-radius: 99px; background: rgba(37, 99, 235, 0.5); }
.dash-ch-bar.is-ads { background: var(--accent); }
.dash-fn-n { font-size: 18px; font-weight: 600; color: var(--ink); text-align: right; }
.dash-fn-track { height: 12px; }
.dash-fn-bar.is-0 { background: rgba(37, 99, 235, 0.32); }
.dash-fn-bar.is-1 { background: rgba(37, 99, 235, 0.7); }
.dash-fn-bar.is-2 { background: var(--ok); }
.dash-fn-note { grid-column: 1 / -1; font-size: 12px; color: var(--faint); }
.dash-empty { font-size: 14px; color: var(--muted); margin: 0; }
.dash-foot { font-size: 12px; color: var(--faint); margin: 14px 0 0; }
.owner-more { margin-top: 44px; }
.owner-more > summary { cursor: pointer; padding: 10px 0; font-size: 16px; font-weight: 600; color: var(--ink-2); }
@media (min-width: 760px) {
  .dash-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-kpi-value { font-size: 36px; }
  .dash-kpi-value small { font-size: 15px; }
  .dash-bars li { grid-template-rows: 190px 20px 14px; }
}
@media (min-width: 1000px) {
  .dash-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-areas: "days from" "funnel from"; align-items: start; }
  .dash-card.is-days { grid-area: days; }
  .dash-card.is-from { grid-area: from; }
  .dash-card.is-funnel { grid-area: funnel; }
}

/* ---- Cookie banner (shown by /consent.js on the first scroll) ------------- */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
}
.consent-in { max-width: 1088px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.consent p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.consent a { color: var(--accent-ink); text-decoration: underline; }
.consent-more { white-space: nowrap; } /* or a phone breaks "รายละเอียด" in the middle */
.consent-ph { white-space: nowrap; } /* the sentence's two phrases, each whole ("การ|ตลาด" broke on a phone) */
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent .btn { min-height: 42px; padding: 8px 12px; font-size: 15px; }
.consent-page { margin-top: 20px; }

/* ---- Wider screens ------------------------------------------------------- */

@media (min-width: 760px) {
  .consent-in { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .consent-btns { flex: none; grid-template-columns: 128px 128px; }
}
@media (min-width: 900px) {
  .my-courses, .owner-grid { grid-template-columns: 1fr 1fr; }
  .page-head, .policy { padding-top: 48px; }
  .narrow { padding-top: 56px; }
}


/* ---- Narrower screens ------------------------------------------------------ */

@media (max-width: 900px) {
  .hero-grid, .buy-wrap, .lesson-grid { grid-template-columns: minmax(0, 1fr); }
  .about, .story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sale-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pc-hint { display: flex; }
  .hero-grid { gap: 36px; }
  .fan { height: 360px; max-width: 440px; }
  .fan .phone { width: 178px; }
  .fan .phone:nth-child(2) { left: calc(50% - 89px); }
  .track { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fit-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fit-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; }
  .fit-list li .icon { grid-row: span 2; margin: 0; }
  .fit-list li:last-child { border-bottom: 1px solid var(--line-strong); }
  .notfit { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 32px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 860px) {
  .foot-links { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 10px 18px; }
}
@media (max-width: 640px) {
  .band { padding-block: 44px; }
  .sec { padding-block: 52px; }
  .hero { padding-block: 32px 24px; }
  .hero h1 { font-size: 34px; }
  .sale-hero { padding-block: 20px 44px; }
  .crumb { margin-bottom: 22px; }
  .who-line { font-size: 15px; margin-bottom: 14px; }
  .sale-hero h1 { font-size: 32px; line-height: 1.22; margin-bottom: 14px; }
  .sig { font-size: 18px; }
  .fan { height: 300px; }
  .fan .phone { width: 148px; }
  .fan .phone:nth-child(1), .fan .phone:nth-child(3) { top: 30px; }
  .fan .phone:nth-child(2) { left: calc(50% - 74px); }
  .track .vis { padding: 14px; gap: 10px; }
  .track .vis.plain { display: none; }
  .notify-inline .row .btn { flex: 1 1 auto; }
  /* the 24 covers: two rows to swipe through, edge to edge */
  .wall {
    grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 104px; gap: 10px;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    padding: 2px var(--gutter-r) 6px var(--gutter-l); scroll-padding-inline: var(--gutter-l);
  }
  .wall::-webkit-scrollbar { display: none; }
  .wall > * { scroll-snap-align: start; }
  .wall .phone { border-radius: 10px; }
  .phase { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 0; }
  .phase-name small { display: inline; margin: 0 0 0 8px; }
  .gets { grid-template-columns: minmax(0, 1fr); }
  /* the price (or the notify form) right under the heading the buy buttons jump to; what you get follows */
  .buy-wrap { gap: 40px; }
  .buy-wrap .price-card { order: -1; }
  .try { align-items: flex-start; }
  .story .bio { font-size: 16px; }
  .sticky-buy { display: flex; }
  body.has-bottom-bar .site-foot { padding-bottom: 110px; }
  .owned-hero { padding: 20px; }
  .owned-hero .btn { white-space: normal; text-align: center; line-height: 1.4; padding-block: 10px; }
  .site-head nav a.all { display: none; }
  .saved { margin-left: 0; }
  .signin-card { padding: 22px 18px; }
  .price-card { padding: 22px 20px; }
  .amount b { font-size: 52px; }
  .lessons.state .row { gap: 2px 10px; }
  .player .locked b { font-size: 15.5px; }
  .player .locked span { margin-bottom: 8px; }
}

/* eBook (27 Nov 2026): the sale page /ebook (ebook-lp-step2-brief.md: the direction page's ten parts on the first
   screen Khun Poom chose) and "ไฟล์ของฉัน". iampoom's tone: light, blue, white, ink; the page on --bg, every card white,
   blue for the button, the marks and the ticks. The first screen stands on the book cover's own ground. Every rule is
   scoped to these pages (.ebp, .my-files), so no other page changes. Phone first, then from 760, 960 and 1080px. */
.ebp { padding-bottom: 8px; overflow-x: clip; }
/* One frame for the whole page (round 1 of the quality pass, 27 Nov 2026; Khun Poom: "มันก้ำกึ่งเหมือนจะ Full Width"):
   every part's content, pictures and cards sit in .container, the header's and the footer's width (1132px of content
   at most), and start and end on its edges; a part's ground may run to the window's edges, nothing else does. On a
   phone, 16px from its edges: the site's gutters, set on this page's body only (Layout's bodyClass), so the header and
   the footer follow and no other page changes. */
.ebp-frame .consent-in { max-width: 1132px; }
@media (max-width: 759px) {
  .ebp-frame { --gutter-l: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px)); }
}
/* round 5 (C5; Khun Poom: "ช่องไฟระหว่าง section เหมือนจะกว้างเกินไป เวลาที่ดูจากใน desktop"): 40 px a side on a phone, 56 from
   900 (it was 48 and 72); two parts on the same ground share one gap */
.ebp-sec { padding-block: 40px; }
.ebp-sec:not(.ebp-white) + .ebp-sec:not(.ebp-white) { padding-top: 0; }
/* round 5 (C1; Khun Poom: "ไม่ได้ถูกตรึงไว้ด้านบนของเว็บ เวลาที่เลื่อนดูจากในมือถือ แต่ถ้าในคอม มันอยู่ด้านบนสุดค้างไว้ได้"): the
   menu bar back; on a phone it scrolls away with the page, from 760 it stays at the top (the site's own), and a part a
   link jumps to starts below it */
@media (max-width: 759px) {
  .ebp-frame .site-head { position: relative; }
}
@media (min-width: 760px) {
  .ebp [id] { scroll-margin-top: 68px; }
}
.ebp-head { max-width: 780px; margin-bottom: 22px; }
.ebp-head h2, .ebp-prove h2 { margin: 0; font-family: var(--thai); font-weight: 700; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.22; letter-spacing: -0.02em; color: #14171c; }
/* round 6 (the last review): on a phone a heading's mint highlight on its second line covered the vowel under the line
   above ("ทุก" read "ทก" at 320); a little more room between the lines there */
@media (max-width: 759px) {
  .ebp-head h2, .ebp-prove h2 { line-height: 1.4; }
}
.ebp-lead { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.ebp-tag { display: inline-block; margin: 0; padding: 2px 9px; border-radius: 6px; background: var(--ph-soft, #eceff4); color: var(--ph, #3d4350); font-size: 12.5px; font-weight: 600; }

/* 1 · the first screen, on the book cover's ground: #f6f7fa with its dots and a blue glow; the cover's grey kicker and
   blue pill; the name in two lines, its second line ink then blue; the wall of real clip covers above it on a phone,
   beside it on a computer (Khun Poom's pick, 27 Nov 2026), and in front of the wall the two things in the box, the book
   and the skill set (round 1). The words stay as they were; on a phone the gaps are a little tighter, so the button
   stays on a 375×667 screen under the picture. */
.ebp-hero { position: relative; overflow: hidden; background: #f6f7fa; border-bottom: 1px solid var(--line); }
.ebp-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(20, 23, 28, 0.075) 1.1px, transparent 1.4px); background-size: 22px 22px; background-position: 11px 11px; }
.ebp-hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.13), rgba(59, 130, 246, 0)); }
.ebp-hero-in { position: relative; z-index: 1; display: grid; padding-top: 12px; padding-bottom: 28px; }
.ebp-hero-note { margin: 0 0 14px; }
.ebp-kicker { display: inline-flex; align-items: center; margin: 0 0 10px; padding: 3px 12px 4px; border-radius: 999px; background: #eceff4; color: #3d4350; font-size: 15px; font-weight: 600; line-height: 1.5; }
.ebp-title { margin: 0 0 12px; font-family: var(--thai); font-weight: 700; color: #14171c; }
.ebp-name { display: block; max-width: 7.4em; font-size: 36px; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.ebp-sub { display: block; margin-top: 8px; font-size: 19px; line-height: 1.38; letter-spacing: -0.01em; }
.ebp-sub-line { display: block; white-space: nowrap; }
.ebp-sub-line + .ebp-sub-line { color: #14171c; }
/* round 3 (Khun Poom: "มีสีมากขึ้นอีกนิดนึง โดยยังคงความเป็น iamPoom"): the colours of his slides and book. The slides'
   mint highlight (#c9efd8, the course deck's and the book's) behind a part's key words, one a part at most; ink on it */
.ebp-hl { padding: 0 0.14em; margin: 0 -0.02em; border-radius: 2px; background: #c9efd8; color: #14171c; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ebp-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 13px 6px 9px; border: 1px solid #b5e3da; border-radius: 999px; background: #e3f5f1; color: #0b6e65; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.ebp-pill .icon { flex: 0 0 auto; width: 18px; height: 18px; }
.ebp-line { margin: 0 0 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.ebp-buyrow { display: grid; gap: 10px; }
.ebp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; margin: 0; }
.ebp-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.ebp-price b { font-family: var(--sans); font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); }
.ebp-price span { font-size: 16px; color: var(--ink-3); }
.ebp-price-note { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
/* the launch price beside every 490, in brackets (Khun Poom, 27 Nov 2026): one line with the price, the price's own
   note on the next; quiet blue, no strike, no countdown */
.ebp-price-promo { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--accent-text); }
.ebp-price-row .ebp-price-note, .ebp-buy-price .ebp-buy-note { flex-basis: 100%; }
.ebp-cta { width: 100%; min-height: 52px; font-size: 16.5px; box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.55); }
.ebp-owned { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--ok-soft); }
.ebp-owned p { margin: 0; font-weight: 600; color: var(--ok); }
.ebp-hero .ebp-kicker { margin-bottom: 8px; }
.ebp-hero .ebp-title { margin-bottom: 10px; }
.ebp-hero .ebp-pill { margin-bottom: 8px; }
.ebp-hero .ebp-line { margin-bottom: 10px; text-wrap: balance; }
.ebp-hero .ebp-buyrow { gap: 8px; }
/* the label: an open book before "eBook", the zipped skill set before "ชุดสกิล" (IconSaga; Khun Poom: "ควรจะเพิ่มไอคอน
   อะไรบางอย่างให้เห็น") */
.ebp-hero .ebp-kicker-pair { gap: 6px; padding: 3px 13px 4px 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15.5px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.ebp-kicker-pair .icon { width: 22px; height: 22px; color: #1d4ed8; }
.ebp-kicker-pair .iconsaga-compressed-file-duo-once { color: #0b6e65; }
.ebp-plus { margin-inline: 2px; color: var(--ink-3); }


/* the wall: the cover's tilted columns (-11°), its card shadow and hairline; each column drifts at its own pace,
   15–30 px a second (--wall-ch + --wall-cg every --wall-ct, times the column's --wall-k), the even ones down */
.ebp-wall { --wall-ch: 120px; --wall-cg: 9px; --wall-ct: 5.6s; --wall-cw: calc(var(--wall-ch) * 9 / 16); position: relative; overflow: hidden; }
.ebp-wall-tilt { position: absolute; left: 50%; top: 50%; display: flex; gap: var(--wall-cg); height: calc(6 * (var(--wall-ch) + var(--wall-cg))); transform: translate(-50%, -50%) rotate(-11deg); }
.ebp-wall-col { flex: 0 0 auto; width: var(--wall-cw); }
.ebp-wall-strip { animation: ebp-wall-drift calc(6 * var(--wall-ct) * var(--wall-k, 1)) linear infinite; will-change: transform; }
.ebp-wall-col:nth-child(even) .ebp-wall-strip { animation-direction: reverse; }
.ebp-wall-strip img { display: block; width: var(--wall-cw); height: var(--wall-ch); margin-bottom: var(--wall-cg); border-radius: 7px; object-fit: cover; background: #e3e7ee; box-shadow: 0 0 0 1px rgba(20, 30, 60, 0.09), 0 2px 4px rgba(20, 30, 60, 0.14); }
.ebp-wall-col:nth-child(1) { --wall-k: 1; translate: 0 -18px; }
.ebp-wall-col:nth-child(2) { --wall-k: 1.18; translate: 0 34px; }
.ebp-wall-col:nth-child(3) { --wall-k: 0.9; translate: 0 -52px; }
.ebp-wall-col:nth-child(4) { --wall-k: 1.1; translate: 0 8px; }
.ebp-wall-col:nth-child(5) { --wall-k: 0.95; translate: 0 -30px; }
.ebp-wall-col:nth-child(6) { --wall-k: 1.22; translate: 0 46px; }
.ebp-wall-col:nth-child(7) { --wall-k: 0.88; translate: 0 -8px; }
.ebp-wall-col:nth-child(8) { --wall-k: 1.14; translate: 0 26px; }
.ebp-wall-col:nth-child(9) { --wall-k: 1.02; translate: 0 -44px; }
.ebp-wall-col:nth-child(10) { --wall-k: 1.2; translate: 0 14px; }
.ebp-wall-col:nth-child(11) { --wall-k: 0.92; translate: 0 -24px; }
.ebp-wall-col:nth-child(12) { --wall-k: 1.08; translate: 0 40px; }
@keyframes ebp-wall-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@media (prefers-reduced-motion: reduce) {
  .ebp-wall-strip { animation: none; }
}
/* the picture, in the frame: the wall fading at every edge into the ground; in front, the book (its approved cover as a
   file, a page or two under it: flat, no 3D) and the launch clip's skill-set card over the book's corner. On a phone
   it stands above the words, the book left and the card right, on the frame's edges */
.ebp-hero.is-wall .ebp-hero-vis { order: -1; position: relative; width: 100%; max-width: 560px; aspect-ratio: 343 / 192; margin: 0 0 12px; }
/* the wall recedes: a clear band along the top, fading in at its top edge, out downwards and at the sides */
.ebp-wall.is-hero { position: absolute; inset: 0; opacity: 0.8; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 38%, transparent 92%), linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 28px, #000 38%, transparent 92%), linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-composite: intersect; }
.ebp-pair { position: absolute; inset: 0; z-index: 1; margin: 0; }
/* a soft pool of the ground behind the two, so the wall steps back */
.ebp-pair::before { content: ""; position: absolute; left: -8%; right: -8%; top: -6%; bottom: -10%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(246, 247, 250, 0.92) 55%, rgba(246, 247, 250, 0)); }
/* the book: its cover with a hairline, two white sheets under it (flat: a file with pages, no 3D) */
.ebp-pair-book { position: absolute; left: 0; top: 4%; width: 64%; isolation: isolate; --sheet: 4px; }
.ebp-pair-book::before, .ebp-pair-book::after { content: ""; position: absolute; inset: 0; z-index: -1; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 6px; background: #fff; }
.ebp-pair-book::after { translate: var(--sheet) var(--sheet); }
.ebp-pair-book::before { translate: calc(2 * var(--sheet)) calc(2 * var(--sheet)); box-shadow: 0 24px 48px -16px rgba(30, 64, 175, 0.28); }
.ebp-pair-book img { display: block; width: 100%; height: auto; border: 1px solid rgba(15, 23, 42, 0.1); border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.ebp-kitcard { position: absolute; right: 0; bottom: 0; width: 66%; padding: 10px 10px 11px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06), 0 22px 40px -16px rgba(30, 64, 175, 0.3); }
.ebp-kitcard-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; margin-bottom: 8px; }
.ebp-kitcard-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(150deg, #2fb5a5, #0b7f73); color: #fff; }
.ebp-kitcard-icon .icon { width: 19px; height: 19px; }
.ebp-kitcard-title { margin: 0; font-family: var(--thai); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.ebp-kitcard-sub { margin: 0; font-size: 11px; line-height: 1.35; color: var(--ink-3); }
.ebp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ebp-chip { padding: 1px 5px 2px; border-radius: 5px; background: var(--ph-soft, #eceff4); color: var(--ph, #4d5663); font: 500 10.5px/1.5 var(--mono); white-space: nowrap; }
/* they rise once as the page loads, a move only: the cover is the first screen's picture and is never hidden */
.ebp-pair-book, .ebp-kitcard { animation: ebp-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ebp-kitcard { animation-delay: 0.12s; }
@keyframes ebp-rise { from { transform: translateY(12px); } to { transform: none; } }
/* the smallest phones (320): the card a size smaller, so it keeps clear of the cover's name */
@media (max-width: 359px) {
  .ebp-kitcard { width: 72%; padding: 8px 8px 9px; border-radius: 10px; }
  .ebp-kitcard-head { column-gap: 6px; margin-bottom: 6px; }
  .ebp-kitcard-icon { width: 26px; height: 26px; border-radius: 7px; }
  .ebp-kitcard-icon .icon { width: 17px; height: 17px; }
  .ebp-kitcard-title { font-size: 11px; }
  .ebp-kitcard-sub { font-size: 10px; }
  .ebp-chips { gap: 3px; }
  .ebp-chip { padding: 0 5px 1px; font-size: 9.5px; }
}
/* round 6 (the last review): a common Android screen (360 × 640) left the button's foot 10 px under the first screen
   once the menu bar was back; the gaps between the first screen's lines a little tighter on short phones */
@media (max-width: 389px) and (max-height: 660px) {
  .ebp-hero.is-wall .ebp-hero-vis { margin-bottom: 8px; }
  .ebp-hero .ebp-kicker, .ebp-hero .ebp-pill { margin-bottom: 5px; }
  .ebp-hero .ebp-line { margin-bottom: 6px; }
}
/* the smallest phones with a short screen (320 × 568): the picture and the words a little smaller, so the button shows on
   the first screen (round 4); round 5: the menu bar back above it, so the bar a little lower and the picture shorter */
@media (max-width: 359px) and (max-height: 600px) {
  .ebp-frame .site-head .container { height: 48px; }
  .ebp-hero.is-wall .ebp-hero-vis { aspect-ratio: 288 / 114; margin-bottom: 8px; }
  .ebp-pair-book { width: 48%; }
  .ebp-name { font-size: 32px; }
  .ebp-sub { margin-top: 6px; font-size: 17.5px; }
  .ebp-hero .ebp-kicker, .ebp-hero .ebp-pill { margin-bottom: 4px; }
  .ebp-hero .ebp-line { margin-bottom: 8px; font-size: 14px; }
}

/* 28 Nov 2026 (a visitor to Khun Poom, on a phone: the first screen "ค่อนข้างดูรกมาก"): on a phone the first screen says
   each thing once. The book's cover already shows the name, its two lines and "ไม่ต้องออกกล้อง ไม่ต้องตัดต่อเอง", and
   the card says ชุดสกิล, so: no wall of covers behind them, the card without its five skill names (they come again in the
   skill-set part), no "eBook + ชุดสกิล" pill over the name, "ไม่ต้องออกกล้อง…" a plain line instead of a third kind of
   pill. The picture a little shorter; the price and the button on the first screen of a phone in Facebook's browser
   (390 × 690), the cookie bar's first-scroll strip included. */
@media (max-width: 759px) {
  .ebp-hero .ebp-wall.is-hero { display: none; }
  .ebp-hero.is-wall .ebp-hero-vis { aspect-ratio: 343 / 150; margin-bottom: 14px; }
  .ebp-hero .ebp-pair-book { width: 56%; top: 0; }
  .ebp-hero .ebp-kitcard { width: 58%; bottom: 6%; padding: 9px 10px; }
  .ebp-hero .ebp-kitcard-head { margin-bottom: 0; }
  .ebp-hero .ebp-chips { display: none; }
  .ebp-hero .ebp-kicker-pair { display: none; }
  .ebp-hero .ebp-pill { padding: 0; border: 0; background: none; font-size: 15px; }
}
/* a short phone (360 × 640 and smaller): the picture shorter still, so the cookie bar does not cover the button */
@media (max-width: 759px) and (max-height: 660px) {
  .ebp-hero.is-wall .ebp-hero-vis { aspect-ratio: 343 / 124; margin-bottom: 10px; }
  .ebp-hero .ebp-pair-book { width: 46%; }
  .ebp-hero .ebp-kitcard { width: 60%; bottom: 0; }
}
/* the cookie bar on a phone: one row, the sentence at the left, the two answers stacked at the right, the same size
   (no answer looks preferred); about 90 px instead of 120 */
@media (max-width: 759px) {
  .consent { padding-top: 9px; padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
  .consent-in { flex-direction: row; align-items: center; gap: 12px; }
  .consent p { flex: 1 1 auto; font-size: 13px; line-height: 1.45; }
  .consent-btns { flex: 0 0 108px; grid-template-columns: 1fr; gap: 6px; }
  .consent .btn { min-height: 36px; padding: 4px 10px; font-size: 14px; }
}
/* the narrowest phones (320): no room beside the sentence, so the answers go back under it, side by side */
@media (max-width: 359px) {
  .consent-in { flex-direction: column; align-items: stretch; gap: 8px; }
  .consent-btns { flex: none; grid-template-columns: 1fr 1fr; }
}

/* the phone: an ink body, the launch clip edge to edge, one play button of the page's own over its cover */
/* round 2 (Khun Poom: "scale ของมือถือตอนนี้มันดูเหมือน ผิดขนาด"): a real phone's shape, a 19.5 : 9 screen, a thin edge
   (2.4% of its width), corners as a real phone's, the camera's pill; the 9 : 16 clip in the middle of the screen on the
   clip's own ground (#f6f8fb), so the bands above and below read as the screen itself */
.ebp-phone { --phone-w: 132px; position: relative; width: var(--phone-w); margin: 0; padding: calc(var(--phone-w) * 0.024); border-radius: calc(var(--phone-w) * 0.15); background: #10141d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.16), 0 30px 50px -24px rgba(20, 30, 60, 0.45), 0 10px 20px -12px rgba(20, 30, 60, 0.25); }
.ebp-phone-screen { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; aspect-ratio: 9 / 19.5; border-radius: calc(var(--phone-w) * 0.128); background: #f6f8fb; }
.ebp-phone-island { position: absolute; z-index: 2; top: calc(var(--phone-w) * 0.03); left: 50%; width: 31%; height: calc(var(--phone-w) * 0.088); translate: -50% 0; border-radius: 999px; background: #0b0d12; }
.ebp-phone-home { position: absolute; z-index: 2; bottom: calc(var(--phone-w) * 0.028); left: 50%; width: 36%; height: 4px; translate: -50% 0; border-radius: 999px; background: rgba(15, 23, 42, 0.72); }
.ebp-phone-video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.ebp-play { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--phone-w) * 0.065); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 14.5px/1.2 var(--thai); white-space: nowrap; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.7), 0 0 0 5px rgba(255, 255, 255, 0.55); }
.ebp-play[hidden] { display: none; }
.ebp-play-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--accent); }
.ebp-play-dot .icon { width: 18px; height: 18px; margin-left: 2px; }
.ebp-play:hover { background: #1d4ed8; }
.ebp-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Round 5 (ROUND-5.md 2 and 3): the white ground (one of the page's three: white, #f6f7fa, #e9edf2), a part's own,
   never a ground in a ground. What you get: a list of five, not cards (the skill set's are boxed, five across): an icon
   on its phase's tint, the result in bold, its line under it; a hairline between rows. On a phone one under another, the
   icon beside; from 760 two across; from 1080 three across with the heading in the first cell, the six in two rows. */
.ebp-white { background: #fff; border-block: 1px solid var(--line); }
.ebp-hero + .ebp-white { border-top: 0; }
.ebp-white .ebp-kicker { background: #eceff4; }
.ebp-gains { list-style: none; margin: 0; padding: 0; display: grid; }
/* the review (round 5): text alone read as the plainest part after the first screen; each result now a card on its
   phase's tint, its icon on white (not the skill set's white cards with their names and in → out) */
.ebp-gains { gap: 10px; }
/* on a phone the icon beside the result, its line under both at the card's full width (fewer lines to read) */
.ebp-gain { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: start; padding: 14px 16px 16px; border-radius: 18px; background: var(--ph-soft); }
.ebp-gain-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--ph); box-shadow: 0 1px 2px rgba(20, 30, 60, 0.08); }
.ebp-gain-icon .icon { width: 26px; height: 26px; }
.ebp-gain h3 { margin: 0; font-family: var(--thai); font-size: 18px; font-weight: 700; line-height: 1.4; color: #14171c; }
.ebp-gain p { grid-column: 1 / -1; margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (min-width: 760px) {
  .ebp-gains { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .ebp-gain:last-child:nth-child(odd) { grid-column: 1 / -1; } /* two across: the fifth card the row's width (the review at 768) */
}
@media (min-width: 960px) {
  .ebp-gains-in { display: grid; }
  .ebp-gains-in > .ebp-head, .ebp-gains-in > .ebp-gains { grid-area: 1 / 1; }
  .ebp-gains-in > .ebp-head { width: calc((100% - 32px) / 3); margin: 0; align-self: start; padding-top: 8px; }
  .ebp-gains { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ebp-gain { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 22px 22px 24px; }
  .ebp-gain:first-child { grid-column-start: 2; }
  .ebp-gain:last-child:nth-child(odd) { grid-column: auto; }
  .ebp-gain p { margin-top: 6px; }
  .ebp-gain-icon { grid-row: auto; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 16px; }
  .ebp-gain-icon .icon { width: 32px; height: 32px; }
  .ebp-gain h3 { margin-bottom: 6px; font-size: 20px; }
  .ebp-gain p { font-size: 15.5px; }
}

/* The teacher: the photo, then "ผู้สอน", his name and three short items (28 Nov 2026, Khun Poom: "ให้ข้อมูลจบเป็นเรื่องๆ"
   iampoom, IconSaga, RealSmart), each its mark, what he is there and one line; the channels under iampoom. From 760 the
   photo as tall as the words beside it (Khun Poom: the photo "ดูลอยๆ" beside a tall column): it takes no height of its own
   (contain: size), fills its place, no shorter than 340 px */
.ebp-teacher { display: grid; gap: 18px; }
.ebp-teacher-pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; }
.ebp-teacher .ebp-head { margin: 0; }
.ebp-teacher-name { display: block; margin: 0 0 4px; font-size: 21px; line-height: 1.45; color: #14171c; }
.ebp-roles { list-style: none; margin: 0; padding: 0; }
.ebp-roles li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.ebp-roles li:last-child { padding-bottom: 0; }
.ebp-role-mark { display: block; width: 40px; height: 40px; border-radius: 10px; }
.ebp-role-logo .logo-mark { display: block; width: 57px; height: 57px; margin: -7px 0 0 -7px; }
.ebp-role-icon { display: grid; place-items: center; background: #eef3ff; border: 1px solid #d6e0fa; color: #2563eb; }
.ebp-role-icon .icon { width: 22px; height: 22px; }
.ebp-role-head { margin: 0 0 3px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.ebp-role-head b { font-size: 17px; font-weight: 700; color: #14171c; }
.ebp-role-line { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.ebp-roles .socials { margin-top: 10px; gap: 6px 14px; }
@media (min-width: 760px) {
  .ebp-teacher { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-template-areas: "pic head" "pic text"; gap: 12px 32px; }
  .ebp-teacher .ebp-head { grid-area: head; align-self: end; }
  .ebp-teacher-pic { grid-area: pic; align-self: stretch; height: 100%; min-height: 340px; aspect-ratio: auto; contain: size; object-position: 42% 50%; }
  .ebp-teacher-text { grid-area: text; align-self: start; }
}
@media (min-width: 760px) and (max-width: 959px) {
  .ebp-roles .socials { display: grid; grid-template-columns: repeat(2, max-content); } /* two by two, none alone (the review) */
}
@media (min-width: 960px) {
  .ebp-teacher { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 14px 56px; }
}

/* 2 · proof: the three numbers (a list on a phone, tiles from 760px), then the launch clip. Round 3: the numbers in the 9
   steps' blue, teal and purple, one a card; round 4 (Khun Poom: the cream "ไม่เข้ากันกับโดยรวมของ iampoom"): the site's ground */
.ebp-prove h2 { margin-bottom: 20px; }
.ebp-sec .ebp-kicker { background: #dde3eb; }
.ebp-stats { list-style: none; margin: 0; padding: 0 18px; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ebp-stat { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "i k" "b b" "w w"; align-items: center; column-gap: 10px; row-gap: 2px; padding: 15px 0; }
/* round 4 (Khun Poom: "เพิ่ม icon เพื่อตกแต่งให้น่าสนใจขึ้น"): the card's icon on its tint */
.ebp-stat-icon { grid-area: i; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ph-soft); color: var(--ph); }
.ebp-stat-icon .icon { width: 20px; height: 20px; }
.ebp-stat + .ebp-stat { border-top: 1px solid var(--line); }
.ebp-stat-k { grid-area: k; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.ebp-stat b { grid-area: b; font-family: var(--thai); font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: #14171c; white-space: nowrap; text-align: left; margin-top: 6px; }
.ebp-stat[data-phase] b { color: var(--ph); }
/* "จากหลักร้อย เป็น" over "กว่า 6,500 คน" */
.ebp-stat-from { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--ink-3); }
.ebp-stat small { grid-area: w; font-size: 13px; color: var(--ink-4); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ebp-prove-film { display: grid; justify-items: center; gap: 12px; margin-top: 32px; }
/* round 2: under the numbers, the channel's real clip covers, one look all through, the rest of the 46 counted in the
   last place (three by two on a phone, a row of six on a computer) */
.ebp-covers-fig { margin-top: 18px; }
.ebp-covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ebp-covers-more { display: grid; place-content: center; justify-items: center; aspect-ratio: 9 / 16; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--ink-3); }
.ebp-covers-more b { font: 600 26px/1.1 var(--sans); letter-spacing: -0.02em; color: #14171c; }
.ebp-covers img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 6px; background: #e3e7ee; box-shadow: 0 0 0 1px rgba(20, 30, 60, 0.09), 0 2px 5px rgba(20, 30, 60, 0.12); }
/* round 4: each cover opens its clip on iampoom.com; it lifts a little under the pointer */
.ebp-covers a { position: relative; display: block; border-radius: 6px; }
.ebp-covers a::after { content: ""; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16 16 8M9 8h7v7'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 2px 6px rgba(20, 30, 60, 0.25); opacity: 0; transition: opacity 0.2s; }
.ebp-covers a:hover::after, .ebp-covers a:focus-visible::after { opacity: 1; }
.ebp-covers a img { transition: transform 0.2s, box-shadow 0.2s; }
.ebp-covers a:hover img { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(20, 30, 60, 0.12), 0 10px 20px -8px rgba(20, 30, 60, 0.35); }
.ebp-covers a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* round 4 (Khun Poom: "มันต้องเป็นหลายๆปกคลิป เล่นไปเรื่อยๆ"): the last place shows more covers in turn, the count over them */
.ebp-covers-more { position: relative; overflow: hidden; }
.ebp-covers-cycle { position: absolute; inset: 0; }
.ebp-covers-cycle img { position: absolute; inset: 0; height: 100%; border-radius: 0; box-shadow: none; opacity: 0; animation: ebp-cover-cycle 18s linear infinite; }
.ebp-covers-cycle img:nth-child(2) { animation-delay: 3s; }
.ebp-covers-cycle img:nth-child(3) { animation-delay: 6s; }
.ebp-covers-cycle img:nth-child(4) { animation-delay: 9s; }
.ebp-covers-cycle img:nth-child(5) { animation-delay: 12s; }
.ebp-covers-cycle img:nth-child(6) { animation-delay: 15s; }
@keyframes ebp-cover-cycle { 0% { opacity: 0; } 3% { opacity: 1; } 17% { opacity: 1; } 20% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .ebp-covers-cycle img { animation: none; }
  .ebp-covers-cycle img:first-child { opacity: 1; }
}
.ebp-covers-count { position: relative; z-index: 1; display: grid; justify-items: center; padding: 6px 12px 7px; border-radius: 12px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 16px -8px rgba(20, 30, 60, 0.45); }
.ebp-covers-cap { margin: 10px 0 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-3); }
.ebp-covers-cue { white-space: nowrap; }
.ebp-prove-film .ebp-phone { --phone-w: 220px; }
.ebp-film-cap { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-3); }

/* the first screen's ground, again for the end: #f6f7fa, its dots, a blue glow, hairlines */
.ebp-ground { position: relative; overflow: hidden; background: #f6f7fa; border-block: 1px solid var(--line); }
.ebp-ground::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(20, 23, 28, 0.075) 1.1px, transparent 1.4px); background-size: 22px 22px; background-position: 11px 11px; }
.ebp-ground::after { content: ""; position: absolute; right: -140px; top: -120px; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0)); }
.ebp-ground > * { position: relative; z-index: 1; }
.ebp-ground .ebp-kicker { background: #eceff4; }

/* the 9 steps' phase colours (the course slides: steps 0–3 blue, 4–6 teal, 7–9 purple; 0 = not a step), for the book's
   page labels, the skill cards and the 9 steps; each passes AA as small text on its tint and on white */
.ebp [data-phase="0"] { --ph: #4d5663; --ph-soft: #eceff4; }
.ebp [data-phase="1"] { --ph: #1d4ed8; --ph-soft: #e8f0fe; }
.ebp [data-phase="2"] { --ph: #0b6e65; --ph-soft: #dbf2ee; }
.ebp [data-phase="3"] { --ph: #6d28d9; --ph-soft: #efe7fd; }

/* 3 · the eBook: two plain points (round 5: its pages in their own part after the 9 steps) */
.ebp-points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ebp-points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ebp-points .icon { width: 20px; height: 20px; margin-top: 3px; color: #0b6e65; }
/* 5 · the book's pages (round 5, C2; Khun Poom: "สไลด์โชว์ที่ค่อยๆไหลไปเรื่อยๆ … คล้ายๆกับที่เราทำแบบปกวิดีโอ"): a row of twelve
   slides drifting slowly, as the cover wall does (about 30 px a second), its heading small and on one line with how to
   open a page; each slide a sheet with a soft shadow and the magnifier, its step's label under it in its phase colour. It
   stops under the pointer, on the keyboard, on a touch, with its button; without the script or for reduced motion, a row
   to swipe. Its edges fade into the white ground */
.ebp-pages-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 14px; }
.ebp-pages-head h2 { margin: 0; font-family: var(--thai); font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: #14171c; }
.ebp-pages-head p, .ebp-head-hint { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink-3); }
.ebp-head-hint { margin-top: 8px; }
.ebp-pages-pause { align-self: center; margin-left: auto; padding: 5px 13px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 13.5px/1.3 var(--thai); color: var(--ink-2); cursor: pointer; }
.ebp-pages-pause:hover { border-color: var(--line-strong); color: var(--ink); }
.ebp-pages-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ebp-pages { overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 4px 6px; scrollbar-width: none; }
.ebp-pages::-webkit-scrollbar { display: none; }
.ebp-pages-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; }
.ebp-slide { flex: 0 0 auto; display: grid; gap: 8px; justify-items: start; width: 248px; margin-right: 14px; scroll-snap-align: start; }
.ebp-slide-link { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 6px 18px rgba(15, 23, 42, 0.09); cursor: zoom-in; }
.ebp-slide-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ebp-slide-link::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171c' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.16); }
.ebp-slide-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ebp-slide-tag { padding: 1px 9px 2px; border-radius: 999px; background: var(--ph-soft); color: var(--ph); font-size: 13px; font-weight: 600; line-height: 1.5; }
.ebp-slide-line { margin-top: -2px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.ebp-pages:not(.is-flowing) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 72px), transparent); } /* round 6: wider, so a cut page reads as more to swipe */
.ph-nw { white-space: nowrap; } /* Phrases ranges: "3–4" never breaks at its dash */
.ebp-pages.is-flowing { overflow: hidden; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.ebp-pages.is-flowing .ebp-pages-track { animation: ebp-pages-flow 110s linear infinite; }
.ebp-pages:hover .ebp-pages-track, .ebp-pages.is-paused .ebp-pages-track, .ebp-pages:focus-within .ebp-pages-track { animation-play-state: paused; }
@keyframes ebp-pages-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ebp-pages-track { animation: none !important; }
}
@media (min-width: 960px) {
  .ebp-pages-head { margin-bottom: 18px; }
  .ebp-pages-head h2 { font-size: 24px; }
  .ebp-slide { width: 384px; margin-right: 20px; }
  .ebp-pages.is-flowing .ebp-pages-track { animation-duration: 160s; }
}
html:has(dialog.ebp-viewer[open]) { overflow: hidden; }
.ebp-viewer { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #0c0f16; color: #fff; }
.ebp-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.ebp-viewer::backdrop { background: #0c0f16; }
.ebp-viewer-bar { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 12px 10px 16px; }
.ebp-viewer-cap { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ebp-viewer-hint { flex: 0 0 auto; margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.68); }
.ebp-viewer-close { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font: 400 28px/1 var(--sans); cursor: pointer; }
.ebp-viewer-close:focus-visible, .ebp-viewer-zoom:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ebp-viewer-frame { overflow: auto; display: grid; place-items: center; padding: 6px 12px max(16px, env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.ebp-viewer-zoom { padding: 0; border: 0; background: none; cursor: zoom-in; }
.ebp-viewer-zoom img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 96px); border-radius: 6px; background: #fff; }
.ebp-viewer.is-zoomed .ebp-viewer-frame { place-items: start; }
.ebp-viewer.is-zoomed .ebp-viewer-zoom { cursor: zoom-out; }
.ebp-viewer.is-zoomed .ebp-viewer-zoom img { width: 1000px; max-width: none; max-height: none; }

/* 5 · the skill set (round 2, simplified in 2c): a card each. Its English name in mono on its phase's tint; its job in a
   few words; what it does for you; then on a quiet panel what goes in → what comes out, an IconSaga icon each. A phone
   and a tablet: in and out side by side; a computer: five cards in a row, in over out, the "ได้" rows level. Then what
   comes with them on one strip, then the band to buy */
.ebp-skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ebp-skill { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ebp-skill-name { align-self: flex-start; justify-self: start; margin: 0; padding: 2px 9px 3px; border-radius: 7px; background: var(--ph-soft); color: var(--ph); font: 600 14px/1.45 var(--mono); }
.ebp-skill h3 { margin: 6px 0 0; font-size: 20px; line-height: 1.35; }
.ebp-skill-does { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
/* round 5 (C6; Khun Poom: "ดูไม่สมมาตรตรงกลาง และดูไม่เรียบร้อย … ทำให้ดูปราณีตได้มากขึ้น"): "ให้" and "ได้" one size, the word in
   its middle (1 px lower: the tone marks above make a Thai word look high), "ให้" framed and "ได้" filled in the card's
   colour; the panel's sides even */
.ebp-flow { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: start; padding: 14px; background: #f6f8fb; border: 1px solid #edf0f4; border-radius: 14px; }
.ebp-flow-row { display: grid; gap: 10px; align-content: start; }
.ebp-flow-label { justify-self: start; display: grid; place-items: center; width: 38px; height: 24px; margin: 0; padding: 1px 0 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ph, #8a94a3); font-size: 13px; font-weight: 700; line-height: 1; color: var(--ph, #4d5663); }
.ebp-flow-row.is-get .ebp-flow-label { background: #0b6e65; box-shadow: none; color: #fff; }
.ebp-flow ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ebp-flow li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
/* no word left alone on a benefit's last line, at every width */
.ebp-skill-does { text-wrap: pretty; }
.ebp-flow li .icon { width: 24px; height: 24px; color: var(--accent); }
.ebp-flow-get li { font-weight: 600; color: var(--ink); }
/* round 3 (the review): a card's icons and its "ได้" in the card's colour (its chip's: blue, teal or purple) */
.ebp-skill .ebp-flow li .icon { color: var(--ph); }
.ebp-skill .ebp-flow-row.is-get .ebp-flow-label { background: var(--ph); }
/* in → out: an arrow from the one to the other, down under the in (a fixed size: the review); drawn by the panel
   itself, put between the two by order */
.ebp-flow-row.is-give { order: 1; }
.ebp-flow-row.is-get { order: 3; }
.ebp-flow::after { content: ""; order: 2; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6'/%3E%3C/svg%3E") 2px 50% / 20px no-repeat; }
/* what comes with them: a quiet strip under the cards, not a sixth card */
.ebp-with { margin-top: 14px; padding: 16px 18px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 16px; }
.ebp-with h3 { margin: 0 0 12px; font-size: 16.5px; }
.ebp-with ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ebp-with li span { min-width: 0; }
.ebp-with li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ebp-with .icon { width: 22px; height: 22px; color: #1d4ed8; }
.ebp-with li:nth-child(3n + 2) .icon { color: #0b6e65; }
.ebp-with li:nth-child(3n) .icon { color: #6d28d9; }
/* the band to buy that closes the part (round 2b, refined in 2c): on the extras' pale blue, the book with a sheet under
   it as on the first screen, its name and what it is, the price with its launch line, the note and the button */
.ebp-band { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "cover text" "price price" "act act"; gap: 14px 16px; align-items: center; margin-top: 28px; padding: 18px; border: 1px solid #cdebd9; border-radius: 22px; background-color: #f0faf4; background-image: radial-gradient(circle, rgba(11, 110, 101, 0.07) 1.1px, transparent 1.4px); background-size: 22px 22px; background-position: 11px 11px; }
.ebp-band > img { grid-area: cover; }
.ebp-band-text { grid-area: text; }
.ebp-band > img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 4px 4px 0 -1px #fff, 4px 4px 0 0 rgba(15, 23, 42, 0.12), 0 14px 26px -12px rgba(20, 30, 60, 0.45); }
.ebp-band-name { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.ebp-band-kind { margin: 2px 0 0; font-size: 14px; color: var(--ink-3); }
.ebp-band-price { grid-area: price; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ebp-band .ebp-price { margin: 0; }
.ebp-band .ebp-price b { font-size: 30px; }
.ebp-band .ebp-price-promo { margin: 0; font-size: 13px; }
.ebp-band-act { grid-area: act; display: grid; gap: 8px; }
.ebp-band-note { order: 2; margin: 0; text-align: center; font-size: 13.5px; color: var(--ink-3); }

/* 6 · 9 steps (round 2c): the course slide's three phases as a graphic. Step 0 first, once; then each phase a card, its
   name on its tint, its three steps down a line, each an IconSaga icon on the phase's tint with its number, its name, who
   does what; then the time per clip. A phone: the phases one under another; from 700 the name beside its steps; from 900
   the three side by side, an arrow from one to the next */
.ebp-map { display: grid; gap: 12px; }
/* round 5 (C4; Khun Poom: "สีของ step 0 ผมไม่อยากให้ใช้สีเทา เพราะมันกลืนกันกับ background เกินไป"): the 9 steps' blue, its icon on
   the blue, its card framed in blue on the blue's tint */
.ebp-zero { display: flex; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; background: #e8f0fe; border: 1.5px solid #9db8f5; border-radius: 16px; }
.ebp-zero p { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.ebp-zero-icon, .ebp-step-icon { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.ebp-zero-icon { background: #fff; color: #1d4ed8; box-shadow: inset 0 0 0 1.5px #1d4ed8; }
.ebp-zero-icon .icon, .ebp-step-icon .icon { width: 28px; height: 28px; }
.ebp-zero-n, .ebp-step-n { position: absolute; left: -6px; top: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; box-shadow: 0 0 0 2px #fff; font: 700 12px/1 var(--sans); color: #fff; }
.ebp-zero-n { background: #1d4ed8; }
.ebp-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ebp-phase { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ebp-phase-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 12px 18px; background: var(--ph-soft); }
.ebp-phase-head b { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--ph); }
.ebp-phase-head span { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.ebp-steps { list-style: none; margin: 0; padding: 18px 18px 6px; display: grid; }
.ebp-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; padding-bottom: 14px; }
/* the line down from one step to the next */
.ebp-step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 54px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--ph); opacity: 0.28; }
.ebp-step-icon { grid-row: 1 / span 2; background: var(--ph-soft); color: var(--ph); }
.ebp-step-n { background: var(--ph); }
.ebp-step-name { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.ebp-step-who { margin: 2px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ebp-time { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.ebp-time p { margin: 0; }
.ebp-time .icon { flex: 0 0 auto; width: 24px; height: 24px; color: var(--accent); }
.ebp-time small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-4); }
/* round 5b (Khun Poom: "เราตัดส่วนนี้ออกเลยได้"; "ใช้พื้นที่ส่วนนี้ไปเยอะมาก แบบว่างๆ"): the 9 steps without a heading of their
   own, in the eBook's part; its heading and its two points one row on a computer, then step 0 and the phases at once */
.ebp-book-head { margin-bottom: 20px; }
.ebp-book-head .ebp-head { margin-bottom: 0; }
@media (min-width: 960px) {
  .ebp-book-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 16px 48px; align-items: end; margin-bottom: 24px; }
  .ebp-book-head .ebp-head { max-width: none; }
  .ebp-book-head .ebp-points { margin: 0 0 6px; }
}

/* 8 · who it is for (round 5b; Khun Poom: "ทำให้ช่องมันอยู่แบบเดียวกัน 2x2 ไปเลย"): four white cards of one look, each its icon
   on its phase's tint beside its title, its line under both; one under another on a phone, two by two from 760 */
.ebp-who { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ebp-who-card { padding: 18px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ebp-who-card h3 { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; margin: 0 0 10px; font-size: 18px; line-height: 1.4; }
.ebp-who-card h3 .icon { box-sizing: content-box; width: 22px; height: 22px; padding: 6px; border-radius: 10px; background: var(--ph-soft); color: var(--ph, #4d5663); }
.ebp-who-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* 9 · the extras: two cards (round 5, C11; Khun Poom: "Section นี้มันแปลกๆ มันมี background ซ้อนกัน"): on the part's white
   ground itself, no panel around them; a soft shadow lifts them off the white */
.ebp-extras > .ebp-head { margin-bottom: 18px; }
.ebp-extras > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ebp-extra { display: flex; flex-direction: column; padding: 14px 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 32px -20px rgba(20, 30, 60, 0.28); }
.ebp-extra h3, .ebp-extra > p, .ebp-extra-note { margin-inline: 4px; }
/* round 4: a picture each, the same shape (16 : 9): the course's cover as a lesson to play; IconSaga's logo and its icons */
.ebp-extra-vis { position: relative; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 18px; aspect-ratio: 16 / 9; margin-bottom: 14px; border-radius: 12px; background-color: #f6f7fa; background-image: radial-gradient(circle, rgba(20, 23, 28, 0.06) 1.1px, transparent 1.4px); background-size: 22px 22px; background-position: 11px 11px; box-shadow: inset 0 0 0 1px var(--line); }
.ebp-extra-vis.is-course { display: block; background: #f6f7fa; }
.ebp-extra-vis.is-course img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the player's control strip along the foot, over the slide's own footer (the review: not the footer under the timeline) */
.ebp-extra-vis.is-course::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: rgba(255, 255, 255, 0.95); border-top: 1px solid rgba(20, 23, 28, 0.06); }
/* the main chat (round 4): a play button that does nothing would puzzle; the picture is an illustration, so a player's
   control bar along its foot (a small play mark and the timeline), no pointer, no hover */
.ebp-extra-play { position: absolute; left: 12px; bottom: calc(6.5% - 8px); width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l12-7.5z' fill='%236d28d9'/%3E%3C/svg%3E") center / 16px no-repeat; pointer-events: none; }
.ebp-extra-vis.is-course::after { content: ""; position: absolute; left: 36px; right: 14px; bottom: calc(6.5% - 2px); height: 4px; border-radius: 2px; background: linear-gradient(90deg, #6d28d9 32%, rgba(20, 23, 28, 0.16) 32%); }
/* round 5 (C10; Khun Poom: "อยากให้มีเยอะกว่านี้ เต็มภาพไปเลยก็ได้ หรือให้เห็นเป็นเหมือน background ที่เห็นหลายๆไอคอน"): a wall of
   IconSaga's icons fills the picture, the logo on white over its middle */
.ebp-isg-wall { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ebp-isg-badge { position: relative; display: grid; place-items: center; padding: 14px 22px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 14px 30px -10px rgba(20, 30, 60, 0.4); }
.ebp-isg-logo { display: block; width: 150px; height: auto; }
@media (min-width: 960px) {
  .ebp-isg-badge { padding: 16px 26px; }
  .ebp-isg-logo { width: 180px; }
}
/* the course's sum: eBook + the difference = the course, in chips */
.ebp-upgrade { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 4px 12px !important; }
.ebp-up-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.ebp-up-chip b { font: 700 16px/1.2 var(--sans); color: var(--ink); }
.ebp-up-chip .icon { width: 18px; height: 18px; color: #1d4ed8; }
.ebp-up-chip.is-total { border-color: transparent; background: var(--ph-soft); color: var(--ph); }
.ebp-up-chip.is-total b, .ebp-up-chip.is-total .icon { color: var(--ph); }
.ebp-up-op { font: 700 16px/1 var(--sans); color: var(--ink-3); }
.ebp-up-res { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 899px) {
  .ebp-up-res { flex-basis: 100%; }
}
.ebp-extra h3 { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.ebp-extra h3 .icon { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; color: var(--ph, #4d5663); }
.ebp-extra p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.ebp-extra p + p { margin-top: 6px; }
.ebp-extra-note { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.ebp-extra .ebp-extra-note p { font-size: 13.5px; color: var(--ink-3); }
.ebp-extra .ebp-extra-note p + p { margin-top: 2px; }

/* 9 · the price box: the price, what you get, no refund and the AI cost before the ticks, the form */
.ebp-buy { margin: 0; padding: 24px 20px; background: #fff; border: 1px solid #d9dee6; border-radius: 20px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px -22px rgba(20, 30, 60, 0.3); }
.ebp-buy .ebp-kicker { background: #eceff4; color: #3d4350; }
.ebp-buy-name { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
@media (max-width: 479px) {
  .ebp-buy-kind { display: block; }
  .ebp-buy-kind .ebp-dot { display: none; }
}
.ebp-buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 18px; }
.ebp-buy-note { margin: 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.ebp-includes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ebp-includes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
/* round 4 (Khun Poom: "ควรจะตกแต่งด้วยไอคอนด้วย"): an icon a line, on its colour's tint */
.ebp-includes .icon { box-sizing: content-box; width: 22px; height: 22px; padding: 6px; border-radius: 10px; background: var(--ph-soft, #eceff4); color: var(--ph, #0b6e65); }
.ebp-buy-terms { margin: 0 0 16px; }
.ebp-cost { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.ebp-buy .buy-form { gap: 12px; }
.ebp-buy .notice, .ebp-buy .form-alert { margin: 0 0 14px; }

/* 13 · the FAQ (round 5: Poom's card gone, the teacher part says it), 14 · the end: the book small, the price, the button */
.ebp-faq .faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.ebp-faq .faq details:last-child { border-bottom: 0; }
.ebp-faq .faq summary .icon { color: #0b6e65; }
.ebp-endsec { padding-bottom: 36px; }
/* round 4: the wall fades in at its top as on the first screen (it was cut straight by the line above) */
.ebp-wall.is-end { height: 200px; margin: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 64px), radial-gradient(ellipse 62% 90% at 50% 25%, #000 40%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 64px), radial-gradient(ellipse 62% 90% at 50% 25%, #000 40%, transparent 100%); mask-composite: intersect; }
/* round 4: the end's box in the band's look, over the wall's foot; the book and the skill set as their icons */
.ebp-band.is-end { position: relative; z-index: 2; margin: -70px 0 0; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 22px 44px -24px rgba(20, 30, 60, 0.35); }
.ebp-band-pair { grid-area: cover; display: flex; justify-content: center; gap: 8px; }
.ebp-band-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(20, 30, 60, 0.35); }
.ebp-band-tile .icon { width: 26px; height: 26px; }
.ebp-band-tile.is-book { color: #1d4ed8; }
.ebp-band-tile.is-kit { color: #0b6e65; }
/* a way in for those who bought before (the menu bar is gone from this page) */
.ebook-signin { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.ebook-signin a { font-weight: 600; }
.ebook-ask { margin: 24px 0 0; font-size: 14.5px; color: var(--ink-3); }
.ebook-legal { margin: 16px 0 0; text-align: center; font-size: 14px; }

@media (min-width: 760px) {
  .ebp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; background: none; border: 0; border-radius: 0; }
  .ebp-stat { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "b" "w"; align-items: start; row-gap: 4px; padding: 18px 20px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
  .ebp-stat b { align-self: end; text-align: left; }
  .ebp-stat { grid-template-rows: auto 1fr auto; }
  .ebp-stat-icon { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px; }
  .ebp-stat-icon .icon { width: 24px; height: 24px; }
  .ebp-stat b { margin-top: 0; }
  .ebp-stat + .ebp-stat { border-top: 1px solid var(--line); }
  .ebp-covers { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .ebp-who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .ebp-who-card { padding: 22px 26px 24px; }
  .ebp-extras > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the picture on a tablet: the card's words at the computer's size */
  .ebp-kitcard { padding: 14px 16px 16px; border-radius: 16px; }
  .ebp-kitcard-head { column-gap: 12px; margin-bottom: 12px; }
  .ebp-kitcard-icon { width: 40px; height: 40px; border-radius: 11px; }
  .ebp-kitcard-icon .icon { width: 24px; height: 24px; }
  .ebp-kitcard-title { font-size: 15.5px; }
  .ebp-kitcard-sub { font-size: 13.5px; }
  .ebp-chips { gap: 6px; }
  .ebp-chip { padding: 2px 8px 3px; border-radius: 6px; font-size: 13px; }
}
/* a tablet: the picture across the frame, the button not wider than it needs */
@media (min-width: 760px) and (max-width: 959px) {
  .ebp-hero-in { padding-top: 28px; }
  .ebp-name { font-size: 48px; }
  .ebp-hero.is-wall .ebp-hero-vis { max-width: none; aspect-ratio: 720 / 380; margin-bottom: 18px; }
  .ebp-pair-book { width: 58%; }
  .ebp-kitcard { width: 56%; }
  .ebp-hero .ebp-cta { max-width: 420px; }
}
@media (min-width: 900px) {
  .ebp-sec { padding-block: 56px; }
  .ebp-cta { width: auto; padding-inline: 28px; }
  .ebp-extras > ul { align-items: stretch; }
  .ebp-wall.is-end { --wall-ch: 180px; --wall-cg: 12px; --wall-ct: 8.4s; height: 280px; }
  .ebp-band.is-end { margin-top: -90px; }
  .ebp-band-tile { width: 64px; height: 64px; border-radius: 18px; }
  .ebp-band-tile .icon { width: 36px; height: 36px; }
  /* the price box across the frame, one block read top to bottom (round 4: Khun Poom, "มันกลายเป็น 2 คอลัมภ์ดูแปลกๆ"): the name
     and the price on one line; what you get two by two; the two terms side by side; the two ticks; the button across */
  .ebp-buy { padding: 34px 40px 36px; }
  .ebp-buy-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
  .ebp-buy-top .ebp-buy-price { flex-direction: column; align-items: flex-end; gap: 2px; margin: 0; text-align: right; }
  .ebp-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin-bottom: 22px; }
  .ebp-buy-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 32px; margin-bottom: 22px; padding: 14px 18px; border-radius: 14px; background: #f6f7fa; }
  .ebp-buy-terms p { margin: 0; }
  .ebp-buy .buy-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
  .ebp-buy .buy-form > :not(.check) { grid-column: 1 / -1; }
  .ebp-buy .buy-form .btn { min-height: 54px; font-size: 17px; }
  .ebp-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 56px; align-items: start; }
  .ebp-faq .ebp-head { position: sticky; top: 80px; }
}
/* round 2c: the book's pages, the skill set and the 9 steps from a tablet up. Each block on its own, at the top level */
@media (min-width: 700px) {
  /* the band on a tablet: the phone's, the book larger, the button its own width in the middle */
  .ebp-band { grid-template-columns: 120px minmax(0, 1fr); margin-top: 36px; padding: 20px 24px; }
  .ebp-band-name { font-size: 19px; }
  .ebp-band .ebp-price b { font-size: 34px; }
  .ebp-band .ebp-price-promo { font-size: 14px; }
  .ebp-band-act { justify-items: start; }
  .ebp-band-note { text-align: left; }
  .ebp-band .ebp-cta { width: auto; }
  /* what comes with them: the title beside the things, the things in two columns */
  .ebp-with { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 12px 20px; padding: 18px 22px; }
  .ebp-with h3 { margin: 1px 0 0; }
  .ebp-with ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
  /* the 9 steps: a phase's name beside its three steps */
  .ebp-phase { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
  .ebp-phase-head { flex-direction: column; align-items: flex-start; align-content: flex-start; padding: 20px; }
  .ebp-steps { padding: 20px 22px 6px; }
}
/* a small computer (900–1179): a skill a row, its words on the left, in → out side by side on the right */
@media (min-width: 900px) and (max-width: 1179px) {
  .ebp-skill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto 1fr; column-gap: 28px; row-gap: 6px; padding: 20px 22px; }
  .ebp-skill > :not(.ebp-flow) { grid-column: 1; }
  .ebp-skill-does { margin: 0; }
  .ebp-flow { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 10px; }
  .ebp-flow::after { align-self: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); background-position: center; }
}
@media (min-width: 900px) {
  /* the band in one row in the middle: the book, its name and price, the button; a clear space above it */
  .ebp-band { grid-template-columns: 150px max-content max-content; grid-template-areas: "cover text act" "cover price act"; justify-content: center; gap: 6px 56px; margin-top: 44px; padding: 22px 32px; }
  .ebp-band-text { align-self: end; }
  .ebp-band-price { align-self: start; }
  .ebp-band-act { justify-items: center; }
  .ebp-band-note { text-align: center; }
  /* the three phases side by side, an arrow from one to the next */
  .ebp-map { gap: 16px; }
  .ebp-zero { justify-self: start; padding-right: 22px; }
  .ebp-phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .ebp-phase { position: relative; display: block; overflow: visible; }
  .ebp-phase-head { flex-direction: row; align-items: baseline; padding: 14px 20px; border-radius: 17px 17px 0 0; }
  .ebp-steps { padding: 20px 20px 8px; }
  .ebp-phase:not(:last-child)::after { content: ""; position: absolute; z-index: 1; right: -19px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 7l5 5-5 5'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(15, 23, 42, 0.08); }
  .ebp-time { margin-top: 18px; }
}
/* a computer: the five skills in one row, the same size; in over out, the "ได้" rows level across the row */
@media (min-width: 1180px) {
  .ebp-skills { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); gap: 0 14px; }
  /* each card's name, job, benefit, in, arrow, out on the grid's six rows: every row level across the five */
  .ebp-skill { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 6px; padding: 18px 16px 16px; }
  .ebp-skill h3 { font-size: 19px; }
  .ebp-skill-does { margin-bottom: 6px; font-size: 14.5px; }
  .ebp-flow { grid-row: span 3; grid-template-rows: subgrid; row-gap: 2px; margin: 0; padding: 12px; }
  .ebp-flow li { font-size: 14px; }
  .ebp-with { display: block; padding: 18px 22px 20px; }
  .ebp-with h3 { margin: 0 0 12px; }
  .ebp-with ul { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 20px; } /* six things, one row (28 Nov 2026) */
  .ebp-with li { grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; }
}
/* the first screen and part 2 on a computer: words on the left; on the right, in the frame, the wall from the section's
   top to its bottom, fading at its edges, the book up right and the skill-set card over its lower left corner, towards
   the button; the clip beside the numbers */
@media (min-width: 960px) {
  .ebp-hero::after { right: auto; left: 52%; top: 8%; width: 640px; height: 640px; }
  .ebp-hero-in { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); align-items: center; column-gap: 48px; min-height: 600px; padding-top: 56px; padding-bottom: 64px; }
  .ebp-kicker { padding: 4px 13px 5px; font-size: 14.5px; }
  .ebp-name { font-size: 68px; }
  .ebp-sub { margin-top: 18px; font-size: 27px; }
  .ebp-pill { margin-bottom: 18px; padding: 6px 16px 7px 11px; font-size: 16px; }
  .ebp-pill .icon { width: 20px; height: 20px; }
  .ebp-line { margin-bottom: 28px; font-size: 17px; }
  .ebp-buyrow { grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 12px 28px; }
  /* a computer: the price, its launch line right under it, then its note, in one column beside the button */
  .ebp-price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ebp-price-row .ebp-price-note { flex-basis: auto; }
  .ebp-price-row .ebp-price { margin-bottom: 2px; }
  .ebp-price b { font-size: 46px; }
  .ebp-cta { min-height: 56px; padding-inline: 30px; font-size: 17px; }
  .ebp-buyrow .notice, .ebp-buyrow .ebp-owned { grid-column: 2; }
  .ebp-hero .ebp-kicker { margin-bottom: 10px; }
  .ebp-hero .ebp-title { margin-bottom: 12px; }
  .ebp-hero .ebp-pill { margin-bottom: 18px; }
  .ebp-hero .ebp-line { margin-bottom: 28px; }
  .ebp-hero .ebp-buyrow { gap: 12px 28px; }
  .ebp-hero .ebp-kicker-pair { padding: 4px 15px 5px 11px; font-size: 16px; }
  .ebp-kicker-pair .icon { width: 23px; height: 23px; }
  .ebp-hero.is-wall .ebp-hero-vis { order: 0; max-width: none; aspect-ratio: auto; align-self: stretch; margin: -56px 0 -64px; }
  /* the wall in a box behind the book's upper right, 64px clear of the section's top line, fading 64px at every edge,
     lighter than the book: it shows above and beside the book, never through it */
  .ebp-wall.is-hero { --wall-ch: 238px; --wall-cg: 14px; --wall-ct: 11s; inset: 64px 0 auto 16%; height: 460px; opacity: 0.6; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 64px, #000 calc(100% - 64px), transparent), linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to bottom, transparent, #000 64px, #000 calc(100% - 64px), transparent), linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
  /* the two as on a phone: the book from the column's left, its name and logo clear; the card on the frame's right edge
     over the book's lower right corner (the cover's own wall), its top 24px under the cover's pill (72% down) */
  .ebp-pair { inset: auto 0; top: 50%; translate: 0 calc(-50% + 24px); }
  .ebp-pair::before { left: -6%; right: 2%; top: -12%; bottom: -36%; background: radial-gradient(closest-side, rgba(246, 247, 250, 0.75) 50%, rgba(246, 247, 250, 0)); }
  .ebp-pair-book { position: relative; top: auto; width: min(440px, calc(100% - 64px)); --sheet: 5px; }
  .ebp-kitcard { bottom: auto; top: calc(72% + 24px); width: max(min(372px, 74%), 330px); padding: 16px 18px 18px; }
  /* round 2: the numbers and the covers on the left, the phone beside them, the two of a height */
  .ebp-prove-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 64px; }
  .ebp-prove-text { display: flex; flex-direction: column; align-items: flex-start; }
  .ebp-prove-text .ebp-stats, .ebp-prove-text .ebp-covers-fig { align-self: stretch; }
  .ebp-prove-film { align-content: space-between; }
  .ebp-prove h2 { margin-bottom: 26px; }
  .ebp-prove-film { margin-top: 0; }
  .ebp-prove-film .ebp-phone { --phone-w: clamp(200px, calc(10.16vw + 106px), 236px); }
  .ebp-covers-fig { margin-top: auto; padding-top: 24px; }
  .ebp-stat { padding: 20px 22px 18px; }
  .ebp-stat b { font-size: clamp(26px, calc(3.2vw - 5px), 36px); }
}

/* IconSaga Pro with the eBook (ebook-iconsaga-gift-brief.md): IconSaga's line on the download pages, and its state
   on the owner page */
.gift-note { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 14px 16px; border: 1px solid #cfe0fb; border-radius: 14px; background: #eef4fd; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); text-align: left; }
.gift-note .icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.gift-note a { color: var(--accent-text); overflow-wrap: anywhere; }
.owner-gift-error { color: var(--danger); }
.my-files h2 { margin: 28px 0 4px; font-size: 19px; line-height: 1.4; }
.my-files .file-name { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.phrases > span { display: inline-block; max-width: 100%; } /* Phrases (eBook pages): each phrase wraps whole */
.ph-whole > span { white-space: nowrap; } /* Phrases whole: inside a phrase, a break only at its marks */
/* the utm tags beside a link's name in words (28 Nov 2026) */
.owner-utm { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
/* the links table: a name in words and two numbers fit a phone, so no sideways scroll (28 Nov 2026) */
.table-scroll .owner-table.fit { min-width: 0; }

/* short links on /owner (28 Nov 2026): a hint under a field, a long target wraps inside its cell */
.field-hint { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.owner-target { overflow-wrap: anywhere; }
.owner-short { font-weight: 600; overflow-wrap: anywhere; }
#short-links .owner-form + .table-scroll, #short-links .owner-form + .account-note { margin-top: 18px; }
