/* Learnly landing page — รอบรื้อดีไซน์ 15 ส.ค. 2569
   ยึดโทนจาก assets/hero-headline.svg (หัวเรื่องที่ Dear ทำเอง) เป็นศูนย์กลาง
   เขียวเข้ม/เขียวสด/ทอง = ค่าที่เคาะแล้ว · เขียวอ่อน/น้ำตาล = ดึง fill จริงจากไฟล์ SVG */

:root {
  --white: #ffffff;
  --mint: #f5faf7;
  --ink: #0a3b2c;
  --ink-soft: #4a6b5d;
  --line: #dceae2;

  /* เขียวเข้มหลัก — หัวข้อ, ปุ่ม, พื้นบล็อกเข้ม */
  --green-deep: #155F46;
  --green-dark: #155F46; /* alias ชื่อเดิมที่ใช้ทั่วไฟล์ ค่าเดียวกับ green-deep */

  /* เขียวสด — ไอคอน, kicker, จุดเน้น */
  --green: #41B681;

  /* เขียวอ่อน + น้ำตาล — ดึง fill จริงจาก assets/hero-headline.svg (ห้ามกะเอง) */
  --green-light: #2e8b57; /* fill ของคำ "มากขึ้น" — 19 ส.ค. Dear เปลี่ยนสีในไฟล์ SVG เอง แล้วให้ทั้งเว็บใช้เฉดเดียวกัน (คอนทราสต์ 4.00:1 ผ่านเกณฑ์) */
  --brown: #86461a;       /* fill ของคำ "ครูมีเวลา" ในหัวเรื่อง */
  --brown-soft: #f3e6d8;

  /* ทอง — ไฮไลต์บรรทัดที่ควรดู + ชิปสถานะ "จุดที่ควรดู" */
  --gold: #FFE27A;
  --gold-soft: #fff3c4;
  --gold-ink: #926616;   /* 19 ส.ค. เข้มขึ้นให้ผ่าน 4.5:1 บนพื้นทองอ่อน (เดิม #c68a1f = 2.67) */

  /* เทา — ชิปสถานะ "ยังไม่ส่ง" */
  --grey-chip: #e8ebe9;
  --grey-chip-ink: #5c6b64;

  /* แดง — ชิปสถานะ "ต้องดูด่วน" (บล็อกครูได้อะไร) */
  --red-soft: #fbe1e0;
  --red-ink: #b73e38;    /* 19 ส.ค. เข้มขึ้นให้ผ่าน 4.5:1 บนพื้นแดงอ่อน (เดิม #d84a42 = 3.40) */

  /* ครีมอุ่น — พื้นหลังบล็อกครูได้อะไร (ดึงจากม็อกอัพจริง Dear ส่งมา 16 ส.ค. ไม่ใช่มิ้นท์เย็นแบบส่วนอื่น) */
  --cream: #f8f5ef;
  --cream-soft: #f2ede3;
  --cream-ink: #6b6459;

  /* 18 ส.ค. — ภาษาพื้นหลังจากม็อกอัพ "เด็กได้อะไร" (19_39_26) วัดพิกเซลจริง:
     ฐานครีมอุ่นเกือบขาว + ก้อนเขียวซีดนุ่มเกาะขอบ/มุม + pill kicker พื้นเขียวครีม
     Dear สั่งเพิ่ม: ให้ทุกหน้าเข้ากับหน้าฮีโร่ → อุ่นฐานขึ้นเล็กน้อยเข้าหาโทนผนังครีมในรูปฮีโร่ (วัดจริง #efebe3) */
  --bg-base: #fbf8f1;
  --blob: #edf3df;
  --blob-soft: #f3f7ea;
  --pill-bg: #f8faee;
  --pill-line: #e6eed7;

  --radius: 18px;
  --shadow: 0 10px 28px rgba(10, 59, 44, .12);
  --container: 1600px; /* 15 ส.ค. ดึก: กว้างขึ้นจาก 1120 — Dear ยืนยันเองว่าอยากให้อัตราส่วนตรงกับม็อกอัพ (Downloads/มากขึ้น.png) ที่นาว/เนื้อหาชิดขอบเกือบเต็มจอ ไม่ใช่คอลัมน์แคบลอยกลาง */

  --section-pad-d: 96px;
  --section-pad-m: 56px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* 🪤 ต้องตั้ง overflow-x:hidden ที่ body เท่านั้น — ถ้าตั้งที่ html ด้วย body จะกลายเป็น scroll box แยกจาก viewport เอง
   ทำให้ position:sticky ของ .nav คำนวณผิดฐาน ตามไม่ติดตอนเลื่อนลง */
body { overflow-x: hidden; }

/* กันบล็อกลูกในกริด/เฟล็กซ์ดันหน้าให้กว้างเกินจอ */
.hero-grid > *, .kid-grid > *, .steps > *, .tile-row > *,
.trust > *, .app-cols > *, .nav-inner > * { min-width: 0; }

body {
  position: relative; /* ให้ .page-blobs (absolute) อิงความสูงทั้งเอกสาร */
  margin:0;
  font-family: "Anuphan", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg-base); /* 18 ส.ค. — พื้นทั้งเว็บใช้ครีมอุ่นเดียวกับม็อกอัพ ทุก section แล้วคุมจังหวะด้วยก้อนเขียวซีดแทนการสลับสีพื้น */
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* ภาษาไทยไม่มีเว้นวรรคระหว่างคำ ถ้าไม่บังคับตัดคำ หัวเรื่องยาวจะดันหน้าจนล้นขอบบนมือถือ */
  overflow-wrap: break-word;
  word-break: normal;
}

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

a { color: inherit; text-decoration: none; }

h2 { color: var(--green-deep); }

.container {
  width: 100%;
  max-width: var(--container);
  margin:0 auto;
  padding:0 24px;
}

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap:8px;
  padding:14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--green-deep); }
.btn-ghost:hover { background: var(--mint); transform: translateY(-1px); }
.btn-on-dark { background: #fff; color: var(--green-deep); }
.btn-on-dark:hover { transform: translateY(-1px); filter: brightness(.96); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { padding:12px 28px; font-size: 18px; }

/* ---------- โลโก้ ---------- */
.logo { display: inline-flex; align-items: center; gap:12px; }
/* 16 ส.ค. Dear สั่งขยับโลโก้ในนาวมาทางขวานิดนึง — สั่งเพิ่มมาแล้ว 8px → 20px */
.nav .logo { margin-left:28px; }
.logo-mark { width: 50px; height: 50px; flex: none; }
.logo-text { font-size: 40px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }

/* ---------- แถบนำทาง ---------- */
/* 15 ส.ค. ดึก: ขยายทั้งแถบตามม็อกอัพของ Dear — วัดพิกเซลจริงจาก Downloads/มากขึ้น.png
   (ไอคอนโลโก้ ~47px, ตัวอักษร cap-height ~35px, นาวสูงรวม ~97px, ขอบซ้าย-ขวาแทบชิดขอบจอ) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, .92); /* โทนเดียวกับ --bg-base */
  backdrop-filter: blur(8px);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(10, 59, 44, .05), 0 8px 24px rgba(10, 59, 44, .04);
  transition: transform .3s ease;
}
/* 17 ส.ค. Dear สั่ง: เลื่อนลงไม่ต้องแสดงบาร์ เลื่อนขึ้นค่อยแสดง (ดู script ท้าย index.html) */
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:24px;
  padding-top:16px;
  padding-bottom:16px;
}
.nav-links { display: flex; align-items: center; gap:32px; font-size: 18px; }
.nav-links a:hover { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap:16px; }
.nav-login { font-size: 18px; }

/* ปุ่มแฮมเบอร์เกอร์ — โผล่เฉพาะจอแคบ */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap:4px;
}
.nav-toggle:hover { background: var(--mint); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* 15 ส.ค. (ดึก, รอบภาพห้องเรียน): ภาพเต็มขวา + ตัวหนังสือทับบนผนังครีมฝั่งซ้ายของภาพเอง
   ความสูงของ .hero มาจากเนื้อหาจริง (ตัวหนังสือ + padding) ไม่ใช่ vh/min-height —
   .hero-photo เป็น position:absolute; inset:0 เลยแค่ "เติมเต็ม" กล่องที่เนื้อหาสร้างไว้ ไม่ใช่ตัวกำหนดความสูงเอง
   🩸 16 ส.ค.: เคยลองเพิ่ม min-height:100vh ตามที่ Dear สั่ง (กันบล็อกถัดไปโผล่ขอบล่างจอ) — Dear สั่งปรับกลับ ห้ามใส่ vh/min-height ซ้ำอีกจนกว่าจะสั่งใหม่ */
.hero { position: relative; padding:0; overflow: hidden; }
/* 18 ส.ค. ขอบล่างภาพเฟดละลายเข้าพื้นครีมของหน้า — ตัดรอยต่อแข็งระหว่างฮีโร่กับบล็อกถัดไป */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: linear-gradient(180deg, rgba(251, 248, 241, 0), var(--bg-base));
  pointer-events: none; z-index: 1;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; background: var(--white); }
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  display: block;
}
/* padding เท่ากันบน-ล่างตาม token เดิมของไซต์ (--section-pad-d) — ห้ามดันแค่ padding-bottom ให้ยาวเพื่อไล่กรอบภาพ
   ตามม็อกอัพ เพราะจะสร้างพื้นกระเบื้องว่างเปล่าใต้คอลัมน์ตัวหนังสือ (บทเรียนซ้ำจาก feedback-css-height-hacks-vs-real-content) */
/* วัดพิกเซลจริงจาก Downloads/มากขึ้น.png: gap นาว→หัวเรื่อง ~150px (เดิม 96 ตาม --section-pad-d) — ขยับเฉพาะฮีโร่ ยังคง top=bottom เท่ากันตามบทเรียนเดิม
   🩸 16 ส.ค.: เคยลองดัน 200px เพราะเข้าใจผิดว่ารูปถูกครอปบนมากไป — เช็คจริงแล้วรูปที่ 150px ตรงกับม็อกอัพเป๊ะอยู่แล้ว (เทียบเด็กผู้ชายพิกเซลต่อพิกเซล) ตอนนั้นห้ามดันขึ้นอีก
   🩸🩸 16 ส.ค. (รอบใหม่): ลอง min-height:100vh เพื่อกันบล็อกถัดไปโผล่ขอบล่างจอ Dear สั่ง "ปรับกลับ" แล้วสั่งใหม่ "ขยับลงมาแค่นิดเดียว" — ลอง 150→170 แล้ว Dear บอก "ยังเยอะไปอยู่" ลดเหลือ 150→158
   🩸🩸🩸 16 ส.ค.: หลังลดความสูงนาว (padding 24→16) ทำให้ nav+hero รวมเตี้ยลง ขอบมิ้นท์โผล่กลับมานิดนึง (~10px วัดจริง) — เพิ่มอีกเป็น 166px ชดเชย */
.hero-grid { position: relative; z-index: 1; padding:160px 0; }
/* 16 ส.ค. Dear ชี้ตรงๆ ว่าตัวหนังสือชิดซ้ายเกิน สั่งขยับมาขวา — ใช้ margin-left (ไม่ใช่ padding) กันไม่ให้กินพื้นที่ในกล่อง 540 จนปุ่มตกบรรทัด (border-box) */
.hero-copy { max-width: 540px; margin-left:48px; }
.eyebrow { color: var(--green); font-weight: 700; margin:0 0 14px; }
.hero h1 {
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.18;
  font-weight: 700;
  margin:0 0 20px;
  letter-spacing: -.01em;
}
/* หัวเรื่อง = ไฟล์ SVG ที่ Dear ทำมาเอง — ตั้ง viewBox ให้พอดีเนื้อหาแล้ว (อัตราส่วน 714:215)
   ม็อกอัพวัดได้กว้าง ~607px ที่จอ 1672 (กว้างกว่าคอลัมน์ตัวหนังสือ 540 ที่ใช้กับย่อหน้า/ปุ่ม) — ให้ width คงที่ ไม่อิง 100% ของ hero-copy ที่แคบกว่า
   🩸 16 ส.ค. Dear ชี้ "ทางขวาชิดเกิน" ที่จอเธอเอง (~1456px แคบกว่าที่ผมเทสต์) — ต้นเหตุคือ width 600px ตายตัวไม่ย่อตามจอ ในขณะที่ภาพห้องเรียน (.hero-photo) เต็มจอเสมอเลยย่อขนาด/ตำแหน่งเด็กตามจอไปด้วย
   ที่จอแคบลง หัวเรื่องเลยไม่ย่อตาม ยื่นชนตัวเด็กในรูป → ใช้ vw ให้ย่อสัดส่วนตามจอเหมือนกัน (คำนวณจาก 600/1672 ≈ 35.9vw) เพดานบนไว้ที่ 600 ไม่ให้ใหญ่เกินจอกว้างมาก */
/* 22 ส.ค. — บรรทัดโปรยเหนือหัวเรื่อง ใช้ clamp ชุดเดียวกับหัวเรื่องเป๊ะ ๆ ขอบซ้าย/ขวาจะได้ตรงกัน */
/* 7 ก.ย. — บรรทัดโปรยกลับมาเป็นตัวหนังสือจริง (เดิมเป็น .svg ที่ Dear ส่งมา) เพราะ Dear เปลี่ยนคำเอง
   กว้างกว่าหัวเรื่องได้เพราะประโยคใหม่ยาวกว่าเดิม — คุมไว้ให้จบใน 1 บรรทัดที่จอกว้าง */
/* 8 ก.ย. — กลับมาเป็นไฟล์ .svg ที่ Dear ส่งมา (มีแถบไฮไลต์ทองมาในไฟล์แล้ว)
   กฎ font-size/color ไม่ได้ใช้แล้วแต่คงไว้เผื่อสลับกลับเป็นตัวหนังสือ */
.hero .hero-tagline {
  margin:0 0 20px;
  width: clamp(320px, 48vw, 780px);
  font-size: clamp(19px, 1.9vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--green-deep);
  letter-spacing: -.005em;
}
.hero-tagline img { width: 100%; height: auto; display: block; }
/* ไฮไลต์ทองแบบปากกาเน้นข้อความ — ยึดสีเดียวกับ --gold ที่ใช้ทั้งเว็บ */
.hero-tagline .hl {
  background: var(--gold);
  color: inherit;
  padding:.06em .18em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .hero-title { margin:0 0 20px; width: clamp(320px, 35.9vw, 600px); }
.hero-title img { width: 100%; height: auto; display: block; }

.hero-sub { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.55; margin:0 0 60px; max-width: 30em; }
.hero-sub-brand { text-transform: uppercase; }
.hero-cta { display: flex; flex-wrap: wrap; gap:14px; margin-bottom:0; }
.hero-cta .btn { padding:28px 36px; font-size: 18px; }
.hero-note { font-size: 16px; color: var(--ink-soft); margin:40px 0 0; text-align: center; }

/* ---------- หน้าจอมือถือ (ฝั่งเด็ก) — ต้นฉบับสำหรับยิงภาพใส่ม็อกอัพ ---------- */
.ph {
  width: 390px;
  background: var(--white);
  display: flex; flex-direction: column; gap:14px;
  padding:24px 16px 20px;
  font-size: 16px;
}
.ph-top { display: flex; align-items: center; gap:8px; font-weight: 700; font-size: 18px; }
.ph-back { color: var(--green-deep); font-size: 24px; line-height: 1; }
.ph-status {
  display: flex; align-items: center; gap:8px;
  margin:0; padding:10px 14px;
  background: #e7f4ee; color: var(--green-deep);
  border-radius: 12px; font-weight: 700;
}
.ph-status svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.ph-shot { position: relative; margin:0; border-radius: 12px; overflow: hidden; height: 220px; background: #eef0ee; }
.ph-shot img { width: 100%; height: 100%; object-fit: cover; }
.ph-mark {
  position: absolute; left: 6%; top: 66%; width: 46%; height: 24%;
  background: rgba(255, 224, 110, .45);
  border: 1.5px solid rgba(235, 175, 25, .9);
  border-radius: 8px;
}
.ph-msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding:14px; box-shadow: 0 1px 3px rgba(10,59,44,.10); }
.ph-msg b { display: block; margin-bottom:6px; color: var(--green-deep); font-size: 16px; }
.ph-msg p { margin:0; color: var(--ink-soft); line-height: 1.5; font-size: 16px; }
.ph-btn {
  margin-top:auto;
  background: var(--green-deep); color: #fff;
  border-radius: 12px; padding:14px;
  text-align: center; font-weight: 700; font-size: 16px;
}

/* ---------- หน้าจอแล็ปท็อป (ฝั่งครู) — ต้นฉบับสำหรับยิงภาพใส่ม็อกอัพ
   3 องค์ประกอบ: หัวงาน+ความคืบ / รายชื่อเด็ก ~4 คน / เด็กที่เลือก+ไฮไลต์+ร่างคำแนะนำ+ปุ่มยืนยัน ---------- */
.app {
  width: 1180px;
  background: var(--white);
  padding:28px 32px;
  display: flex; flex-direction: column; gap:20px;
  font-size: 16px; color: var(--ink);
}
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap:20px; }
.app-crumb { margin:0 0 6px; font-size: 16px; color: var(--ink-soft); }
.app-title { margin:0; font-size: 24px; font-weight: 700; }
.app-progress {
  flex: none; background: var(--mint); color: var(--green-deep);
  border: 1px solid var(--line); border-radius: 999px;
  padding:10px 20px; font-size: 16px; font-weight: 700; white-space: nowrap;
}
.app-progress b { font-size: 18px; }

.app-cols { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap:24px; align-items: start; }

.app-roster { display: flex; flex-direction: column; gap:10px; }
.app-roster-row {
  display: flex; align-items: center; justify-content: space-between; gap:10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding:12px 14px;
}
.app-roster-row.is-active { border-color: var(--green); background: var(--mint); }
.app-roster-name { font-size: 16px; font-weight: 700; }
.app-chip { font-size: 12px; font-weight: 700; padding:4px 10px; border-radius: 999px; white-space: nowrap; }
.app-chip.is-gold { background: var(--gold-soft); color: var(--gold-ink); }
.app-chip.is-grey { background: var(--grey-chip); color: var(--grey-chip-ink); }
.app-chip.is-ok { background: #d9f0e4; color: var(--green-deep); }

.app-detail { display: flex; flex-direction: column; gap:16px; }
.app-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding:16px 20px; }
.app-panel-gold { background: var(--gold-soft); border-color: #f0d98c; }
.app-panel-head { display: flex; align-items: center; gap:8px; font-size: 16px; font-weight: 700; margin-bottom:8px; }
.app-panel-head svg { width: 20px; height: 20px; fill: none; stroke: var(--green-deep); stroke-width: 1.8; flex: none; }
.app-conf { margin-left:auto; font-size: 14px; font-weight: 700; color: var(--green-deep); background: #fff; border-radius: 999px; padding:4px 12px; white-space: nowrap; }
.app-panel p { margin:0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.app-quote { font-style: normal; }
.app-confirm {
  display: flex; align-items: center; justify-content: center; gap:10px;
  background: var(--green-deep); color: #fff;
  border-radius: var(--radius); padding:16px; font-size: 16px; font-weight: 700;
}
.app-confirm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- บล็อก "เด็กได้อะไร" — ปรับใหม่ 16 ส.ค. ตามม็อกอัพ: คอลัมน์ข้อความ + ม็อกอัพแล็ปท็อป (จอเขียวรอ Dear แปะภาพจริง) + การ์ดลอย 2 ใบ ---------- */
/* 🪤 ห้ามใช้ overflow:hidden ที่นี่ — มันทำให้ section กลายเป็น scroll container
   แล้ว position:sticky ของ .pin-stage ข้างในจะยึดกับ section แทน viewport = ปักหมุดพัง
   ใช้ overflow:clip แทน: กันของล้นได้เหมือนกันแต่ไม่สร้าง scroll container */
.kid-section { overflow: clip; }
/* ทรงกลมแก้วใส 3D หลังบล็อก (three.js) — วางใต้เนื้อหา (.decor > .container มี z-index:1 อยู่แล้ว)
   ปล่อยว่างไว้ถ้า WebGL ใช้ไม่ได้ พื้นหลังก้อนเขียว .page-blobs ยังอยู่เหมือนเดิม */
.kid-orbs {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; display: block;
  /* 18 ส.ค. — Dear: "ตรงขอบจอล่างซ้ายมันขาด"
     ลูกแก้วที่ยื่นพ้นขอบ canvas ถูกตัดตรง ๆ เลยเห็นเป็นเส้นคม
     ใส่ mask ให้ขอบภาพค่อย ๆ จางหายแทน รอยตัดจึงหายไปทุกด้าน */
  -webkit-mask-image: radial-gradient(118% 118% at 50% 50%, #000 55%, rgba(0,0,0,.55) 78%, transparent 97%);
          mask-image: radial-gradient(118% 118% at 50% 50%, #000 55%, rgba(0,0,0,.55) 78%, transparent 97%);
}
.kid-grid {
  display: grid;
  /* 18 ส.ค. เย็น — Dear สั่ง "จอ Mac ต้องใหญ่ประมาณนี้ · ปรับอัตราส่วนตามในรูปเลย"
     วัดพิกเซลจริงจากม็อกอัพ 19_39_26 (เฟรม 1672px): คอลัมน์ตัวหนังสือ 460 (27.5%) · ช่องไฟ 83 (5%) · แล็ปท็อป 1027 (61.4%)
     → 31fr : 69fr และขยายกรอบเป็น 1440 เพื่อให้แล็ปท็อปได้ ~940px (เดิม 714px) */
  grid-template-columns: minmax(0, 32.5fr) minmax(0, 67.5fr);
  gap:5.25%;
  align-items: center;
  max-width: 1400px;
  margin:0 auto;
}
.kid-copy { max-width: 100%; margin-left:32px; }   /* 18 ส.ค. Dear: ชิดขอบซ้ายเกิน ดูอึดอัด — ขยับเข้ามา */
/* 18 ส.ค. เย็น (รอบแก้) — Dear ตีกลับ "ตำแหน่งตัวหนังสือผิดไป · ขอแกะจากรูปตัวอย่างเลย"
   วัดจากม็อกอัพ 19_39_26 แล้วคูณ 1440/1672 = 0.861 (ถือว่าม็อกอัพคือหน้าจอ 1440 ที่ถูกขยายเป็น 1672)
   kicker 19→16 · heading 57→49 · sub 22→19 · title 26→22 · desc 21→18 · กล่องไอคอน 73→63 */
.kid-kicker {
  display: inline-flex; align-items: center; gap:8px;
  font-size: 16px; font-weight: 700; color: var(--green-deep);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding:8px 16px 8px 14px; margin-bottom:20px;
}
.kid-heading { font-size: clamp(29px, 3.15vw, 45px); line-height: 1.24; font-weight: 700; color: var(--ink); margin:0 0 48px; }   /* 19 ส.ค. Dear เอาบรรทัดรอง "ไม่ใช่แค่เห็นกากบาทแล้วจบ" ออก — ยกช่องไฟเดิม (79px) มาไว้ที่หัวข้อแทน ไม่ให้หัวข้อชนรายการ */
.kid-heading .hl-ink { color: var(--ink); }
.kid-heading .hl-green-light { color: var(--green-light); }
.kid-heading .hl-brown { color: var(--brown); }
.kid-heading .hl-custom { color: #016301; }

.kid-features { display: flex; flex-direction: column; gap:28px; }
.kid-feature { display: flex; align-items: center; gap:20px; }
/* 18 ส.ค. เย็น — Dear บอก "ไอคอนในรูปมันดูเด่นกว่า"
   วัดจากม็อกอัพ: กล่อง 73px (4.4% ของเฟรม) มุมมน ~22% ไม่มีเส้นขอบ เงานุ่มลงล่าง ไอคอนข้างในเขียวเข้ม 32px */
.kid-feature-icon {
  flex: none; width: 58px; height: 58px; border-radius: 17px;
  display: grid; place-items: center;
  background: var(--white); border: 0;
  box-shadow: 0 6px 18px rgba(20, 65, 45, .10), 0 1px 3px rgba(20, 65, 45, .06);
  color: var(--green-deep);
}
.kid-feature-icon svg { width: 30px; height: 30px; }
.kid-feature-title { margin:0 0 4px; font-size: 20px; font-weight: 700; color: var(--ink); }
.kid-feature-desc { margin:0; font-size: 16px; color: var(--ink-soft); line-height: 1.6; }

/* ฉากแล็ปท็อป+มือถือบนแท่น 16 ส.ค. (รอบแก้สุดท้าย): เรนเดอร์จริงด้วย Blender (แท่น 3D ทรงกล่องมนมุม)
   + ประกอบ bezel จริงของ Apple (จาก ม็อกอัพ Apple Bezel/) ทับด้วย PIL เป็นภาพเดียว assets/kid-scene.png
   — จอเขียว = ที่พักรอ Dear แปะภาพจริงทับภายหลัง สคริปต์เรนเดอร์อยู่ที่ scratchpad เซสชันนี้ ทำซ้ำได้ถ้าต้องแก้แท่น/มุมกล้อง */
.kid-visual { position: relative; padding:10px 12px 20px; margin-top:64px; }  /* 18 ส.ค. Dear: เลื่อนทั้งกลุ่ม (เครื่อง+การ์ด) ลงมา */
.kid-scene-img { display: block; width: 100%; max-width: 620px; height: auto; margin:0 auto; }

/* 18 ส.ค. (รอบแก้) — แล็ปท็อปตัวใหญ่หันหน้าตรงเต็มคอลัมน์ ตามม็อกอัพ 19_39_26 เป๊ะ (ไม่มีแท่น/มือถือ)
   ใช้ bezel Apple จริง (kid-mac-3d.png ย่อจากไฟล์ 4K) + เงา drop-shadow ตามรูปทรงเครื่องจริง */
.kid-mac-big {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(10, 59, 44, .16));
}

/* ---------- จอในเครื่อง: 2 หน้าจอสลับกันตอนเลื่อน (18 ส.ค. Dear สั่ง) ----------
   พิกัดกรอบจอวัดพิกเซลจริงจาก assets/kid-mac-3d.png (พื้นที่สีเขียวเดิม): 193,36 → 1853,1108 ของ 2048×1256
   รูปทั้งสองถูกเติมขอบให้ได้อัตราส่วนเท่ากรอบจอพอดีแล้ว จึงไม่ถูกบีบและไม่โดนครอปเนื้อหา */
.kid-mac { position: relative; }
.kid-screen {
  position: absolute;
  left: 9.424%; top: 2.866%;
  width: 81.104%; height: 85.430%;
  overflow: hidden;
  border-radius: 0.8%;
  /* 🪤 พื้นที่จอในไฟล์ kid-mac-3d.png เป็น "เขียว placeholder"
     ถ้าไม่ปูพื้นขาวไว้ ช่วงที่จอเก่ากับจอใหม่โปร่งพร้อมกันจะเห็นเขียวแวบขึ้นมา
     (นี่คือ "อันเขียว ๆ ตอนเปลี่ยนหน้า" ที่ Dear เห็น) */
  background: #fff;
}
/* 20 ส.ค. — ป้ายกำกับใต้เครื่อง: บอกว่าคลิปคือ "หน้าจอที่ครูเห็น" (Dear สั่ง)
   🪤 ต้องวางแบบ absolute อยู่ใน .kid-mac เท่านั้น — ถ้าปล่อยเป็น flow ปกติใน .kid-visual
      ความสูงของ .kid-visual จะเปลี่ยน แล้วการ์ดลอย 2 ใบ (top:-8% / bottom:7%) จะเลื่อนหลุดจากขอบเครื่อง */
.kid-tag {
  /* 🪤 ผูกกับ "ใต้เครื่อง" ด้วย top:100% ไม่ใช่ bottom:-46px — บนมือถือป้ายตัดเป็น 2 บรรทัด
     ถ้าใช้ bottom ป้ายจะสูงขึ้นแล้วเลยขึ้นไปทับฐานเครื่อง */
  position: absolute; left: 50%; transform: translateX(-50%); top: 100%;   /* 20 ส.ค. Dear: ขยับให้อยู่กึ่งกลางเครื่อง */
  display: inline-flex; align-items: center; gap:9px;
  margin: 14px 0 0; max-width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding:8px 16px 8px 13px;
  font-size: 14px; line-height: 1.45; color: var(--ink-soft);
  box-shadow: 0 6px 16px rgba(10, 59, 44, .07);
}
.kid-tag svg { flex: none; color: var(--green-deep); }
.kid-tag strong { color: var(--ink); font-weight: 700; }

/* 19 ส.ค. (ดึก) — คลิปหน้าจอระบบจริงในจอแล็ปท็อป (แทนภาพนิ่ง 2 ใบ + เมาส์จำลอง)
   สัดส่วนคลิป 1400x848 (1.65) กว้างกว่ากรอบจอ (1.55) → ใช้ contain ไม่ใช่ cover
   🪤 ลอง cover แล้วโดนตัดข้างละ ~3% ซึ่งกินเนื้อหาจริงในช่วงที่คลิปซูมเข้า (ตัวหนังสือขาดขอบขวา)
      contain = เห็นครบทุกพิกเซล ไม่บีบภาพ เหลือขอบบน-ล่างบาง ๆ ซึ่งเป็นสีขาวเท่าพื้นจอพอดี */
.kid-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; object-fit: contain;
  background: #fff;
  border: 0;
}

.kid-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; object-fit: cover;
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.kid-shot.is-on { opacity: 1; }
/* จอแรกซูมเข้าหาการ์ดนักเรียน "เลขที่ 1" — พิกัดวัดจากไฟล์จริง (ศูนย์กลางการ์ด = 19.7% , 41.4%) */
.kid-shot-1 { transform-origin: 19.7% 41.4%; }

/* จำลองการคลิกจริงในจอ (18 ส.ค. Dear: "เป็นเมาส์คลิกแล้วเปลี่ยนหน้า ขอสมจริง")
   พิกัดการ์ดนักเรียนเลขที่ 1 บนกรอบจอ (วัดจากไฟล์จริง): ซ้าย 16.27% บน 37.57% กว้าง 7.0% สูง 7.74% */
.kid-hotspot {
  position: absolute;
  left: 16.27%; top: 37.57%; width: 7.0%; height: 7.74%;
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgba(20, 90, 55, 0);
  opacity: 0;
  pointer-events: none;
}
/* เคอร์เซอร์มือชี้ (ไฟล์ที่ Dear ส่งมา 18 ส.ค.) — 2 สถานะ: ปกติ / ตอนกด (มีเส้นกระจาย)
   ครอปสองภาพด้วยกรอบเดียวกัน ปลายนิ้วจึงอยู่ระบบพิกัดเดียวกัน
   ปลายนิ้ว = 24.07% , 6.65% ของภาพ → เลื่อนตัวเองด้วย translate ให้ left/top ที่ JS ตั้ง = จุดที่นิ้วชี้พอดี */
.kid-cursor {
  position: absolute;
  width: 5.6%;
  transform: translate(-24.07%, -6.65%);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.22));
  pointer-events: none;
  opacity: 0;
  line-height: 0;
}
.kid-cursor img { position: absolute; inset: 0; width: 100%; height: auto; display: block; }
.kid-cursor .kid-cursor-idle  { position: static; }
.kid-cursor .kid-cursor-press { opacity: 0; }
.kid-cursor.is-press .kid-cursor-idle  { opacity: 0; }
.kid-cursor.is-press .kid-cursor-press { opacity: 1; }
.kid-shot-2 { transform-origin: 50% 50%; }
/* ตอนปักหมุด: สลับหน้าทันที ห้ามมี transition ค้างให้เห็นเหลื่อม */
.kid-pin.is-pinned .kid-shot { transition: none; }

.kid-pin:not(.is-pinned) .kid-shot { transition: opacity .55s ease; }
.kid-pin:not(.is-pinned) .kid-hotspot,
.kid-pin:not(.is-pinned) .kid-ripple,
.kid-pin:not(.is-pinned) .kid-cursor { display: none; }

/* ---------- ปักหมุดบล็อกนี้แล้วสลับจอ (คลาส is-pinned ติดด้วย JS เท่านั้น) ---------- */
.kid-pin.is-pinned .pin-track { position: relative; }
.kid-pin.is-pinned .pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.kid-pin.is-pinned .kid-grid { width: 100%; }
.kid-pin.is-tight .kid-visual { margin-top:48px; }

.kid-callout {
  position: absolute;
  display: flex; align-items: flex-start; gap:10px;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  padding:14px 16px; max-width: 235px; /* ย่อตามสเกลใหม่ของแล็ปท็อป */
}
.kid-callout strong { display: block; font-size: 14px; color: var(--ink); margin-bottom:2px; }
.kid-callout p { margin:0; font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
/* ตำแหน่งวัดจากม็อกอัพ: การ์ดบนขอบบนเสมอขอบบนเครื่อง ยื่นพ้นขอบขวาเล็กน้อย · การ์ดล่างเกาะในขอบขวา เหนือฐานเครื่อง */
.kid-callout-top { top: -8%; right: -6px; }   /* 18 ส.ค. Dear: ยกให้พ้นจอ แล้วหย่อนลงนิดหนึ่ง */
.kid-callout-top svg { flex: none; color: var(--gold-ink); margin-top:2px; }
.kid-callout-bottom { bottom: 7%; right: 2%; }
.kid-callout-bulb {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink);
}

/* ---------- บล็อกทั่วไป ---------- */
.section { padding:var(--section-pad-d) 0; }
.section-mint { background: transparent; } /* 18 ส.ค. โปร่งใสให้พื้นผืนเดียวไหลผ่าน */
/* 18 ส.ค. — พื้นหลังบล็อกนี้เปลี่ยนไปใช้ --bg-base เดียวกับทั้งเว็บตามม็อกอัพ 19_39_26 (Dear สั่ง "พื้นหลังเหมือนกันทุก section")
   padding-top 40px ยังคงไว้ตามคำสั่ง Dear 16 ส.ค. (ขยับทั้งชุดขึ้นชิดฮีโร่) */
/* 18 ส.ค. Dear สั่งเพิ่มช่องไฟให้เท่ากันทุกรอยต่อ (~192px) — เลิก padding-top 40 ของคำสั่งเก่า
   ฮีโร่ไม่มี padding ล่างของตัวเอง เลยต้องให้บล็อกนี้แบกช่องไฟทั้งก้อน (วัดจริง: บล็อกอื่นเว้น ~195px) */
#ครูได้อะไร.section-mint { background: transparent; padding-top:192px; }  /* ช่องไฟรอยต่อ ~192px ตามที่ Dear จูนไว้ (ลงสเกล 8) */
/* สีตัวหนังสือในบล็อกนี้วัดจากม็อกอัพจริงแล้วเป็นคนละโทนกับ --ink/--green ปกติของเว็บ: kicker เขียวหม่นกว่า · ย่อหน้ารองเทากลางไม่อมเขียว — override เจาะจงเฉพาะ section นี้ */
#ครูได้อะไร .kicker { color: #4c7c63; }
#ครูได้อะไร .section-head p { color: #6c7172; }
/* หัวข้อไล่สี 3 โทนตามแบรนด์เดียวกับ assets/hero-headline.svg: "ครูมีเวลา" น้ำตาล · "มากขึ้น" เขียวอ่อน */
#ครูได้อะไร .hl-brown { color: var(--brown); }
#ครูได้อะไร .hl-green-light { color: var(--green-light); }
.section-head { text-align: center; max-width: 46em; margin:0 auto 24px; }
.kicker { color: var(--green); font-weight: 700; font-size: 16px; margin:0 0 6px; }
.section-head h2 {
  font-size: clamp(24px, 2.5vw, 31px);
  line-height: 1.32;
  font-weight: 700;
  margin:0 0 10px;
}
.section-head p { margin:0; font-size: 16px; color: var(--ink-soft); }

/* บล็อกครูได้อะไร — เปรียบเทียบ "แบบเดิม" / "ตอนนี้" ตามม็อกอัพที่ Dear ส่งมา 16 ส.ค. */
.compare-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Dear สั่งให้กว้าง-สูงเท่ากันทั้งสองแผง */
  gap:48px;
  align-items: stretch;
  max-width: 1280px; /* Dear สั่งย่อกรอบทั้งสองข้างลง 16 ส.ค. */
  margin:0 auto;
}
.compare-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.compare-panel.is-old { background: var(--cream); }
.compare-panel.is-new { border-color: var(--green); }

.compare-badge {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  padding:6px 16px;
  border-radius: 999px;
  margin:0 0 14px;
}
.compare-panel.is-new .compare-badge { align-self: center; }
.badge-old { background: var(--cream-soft); color: var(--cream-ink); }
.badge-new { background: var(--green-deep); color: var(--white); } /* 19 ส.ค. เขียวสด+ขาว = 2.55 ตกเกณฑ์ ใช้เขียวเข้มแทน */

.compare-heading { font-size: 20px; font-weight: 700; color: var(--ink); margin:0 0 16px; }
/* หัวข้อในแผง "แบบเดิม" เป็นเทาเข้มกลาง ไม่ใช่เขียวแบรนด์ (วัดจากม็อกอัพจริง — เขียวสงวนไว้ให้ฝั่ง "ตอนนี้" เท่านั้น) */
.compare-panel.is-old .compare-heading { color: #3d3d3c; }
.compare-panel.is-new .compare-heading { text-align: center; }

/* flex:1 ให้ภาพยืดเต็มพื้นที่ที่เหลือของแผงเสมอ กันช่องว่างโล่งเวลาแผงถูกดึงให้สูงเท่าแผงขวา (align-items:stretch) โดยไม่ต้องพึ่ง aspect-ratio ตายตัว */
.compare-media { border-radius: 14px; overflow: hidden; background: var(--white); flex: 1; min-height: 0; }
.compare-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.compare-arrow {
  position: absolute;
  top: 50%; left: 50%;
  width: 68px; height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 2;
}

/* การ์ดรายชื่อนักเรียนซ้อนในแผง "ตอนนี้" */
.roster-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.roster-toolbar { display: flex; justify-content: flex-end; padding:8px 10px 0; }
.roster-all {
  display: inline-flex; align-items: center; gap:6px;
  font-size: 12px; font-weight: 700; color: #2f4c57;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding:4px 8px;
}
.roster-columns {
  display: flex; justify-content: space-between;
  padding:6px 10px 4px;
  font-size: 12px; font-weight: 700; color: #5f6b6e;
  border-bottom: 1px solid var(--line);
}

/* รายชื่อนักเรียน */
.roster { display: flex; flex-direction: column; }
.roster-row {
  display: flex;
  align-items: center;
  gap:8px;
  padding:6px 10px;
  border-bottom: 1px solid var(--line);
}
.roster-row:last-child { border-bottom: 0; }
.roster-avatar { width: 24px; height: 24px; border-radius: 50%; background: #d9ece3; flex: none; display: grid; place-items: center; overflow: hidden; }
.roster-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.roster-name { font-size: 14px; font-weight: 700; color: #2f4c57; flex: 1; min-width: 0; }
.roster-caret { color: #b7bcbc; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap:4px;
  font-size: 12px; font-weight: 700; padding:4px 10px; border-radius: 999px;
  white-space: nowrap;
}
/* ชิปสถานะ: แดง = ต้องดูด่วน · ทอง = ควรเช็กเพิ่ม · เขียว = ปกติ */
.chip-ok { background: #d9f0e4; color: var(--green-deep); }
.chip-warn, .chip-alert { background: var(--gold-soft); color: var(--gold-ink); }
.chip-danger { background: var(--red-soft); color: var(--red-ink); }
.chip-grey { background: var(--grey-chip); color: var(--grey-chip-ink); }

.compare-foot {
  margin:28px auto 0;
  max-width: 640px;
  display: flex; align-items: center; justify-content: center; gap:10px;
  padding:0;
  font-size: 16px; font-weight: 700; color: #33524f;
}
.compare-foot svg { color: var(--green); flex: none; }

/* ---------- ปักหมุดบล็อก "ครูได้อะไร" แล้วไล่โผล่ทีละอัน (18 ส.ค.) ----------
   คลาส .is-pinned ติดด้วย JS เท่านั้น และความสูง .pin-track ก็ตั้งจาก JS
   → ปิด JS / จอเตี้ย / มือถือ / reduced-motion = ไหลตามปกติ เห็นครบทุกบรรทัด */
.pin-stage > .container { width: 100%; }
.teacher-pin.is-pinned .pin-track { position: relative; }
.teacher-pin.is-pinned .pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
/* ชื่อนักเรียน + บรรทัดสรุป: ซ่อนแบบไม่กินพื้นที่ (opacity/transform เท่านั้น) การ์ดจึงไม่ยุบ-ยืดตอนไล่โผล่ */
/* ตอนปักหมุด บล็อกต้องพอดี 1 จอ — รัดช่องไฟแนวตั้งลงนิดเดียว (เฉพาะตอนปักหมุด ไม่แตะเลย์เอาต์ปกติ) */
.teacher-pin.is-tight .section-head { margin-bottom:28px; }
.teacher-pin.is-tight .compare-foot { margin-top:20px; }
.teacher-pin.is-stagger .roster-row,
.teacher-pin.is-stagger .compare-foot {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1);
}
.teacher-pin.is-stagger .roster-row.is-on,
.teacher-pin.is-stagger .compare-foot.is-on {
  opacity: 1;
  transform: none;
}


/* ---------- 3 ขั้น ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:24px; }
.step { text-align: center; }
.step-media {
  background: var(--mint);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom:16px;
}
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { margin:0 0 8px; font-size: 20px; font-weight: 700; color: var(--green-deep); }
.step p { margin:0; color: var(--ink-soft); font-size: 16px; }

/* ---------- ฟีเจอร์ 12 รายการ — รีดีไซน์ 19 ส.ค. (Mobbin: Better Stack / Twenty)
   การ์ดหมวด 3 ใบ = หน้าจอจริงจำลอง (mini UI) ด้านบน + ชื่อหมวด + ชิปฟีเจอร์ 4 อัน ---------- */
/* 8 ก.ย. (รอบสุดท้าย) Dear สั่งถอดการ์ด ตั้งห้อง/สั่ง-ส่งงาน/ติดตาม ออก **เหลือ 2 ใบ**
   → กลับมาเป็นกริด 2 คอลัมน์ธรรมดา · คุมความกว้างไว้ 1020 ไม่ให้การ์ดยืดจนรูปเบลอบนจอกว้าง
   (ของเดิม 6 คอลัมน์ การ์ดละ 2 ช่อง ใช้ตอนมี 5 ใบ ถ้าเอา 5 ใบกลับต้องเอากฎชุดนั้นคืนด้วย) */
.feat-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:24px;
  max-width: 1060px;
  margin:0 auto;
}
/* ============ 8 ก.ย. รื้อรอบ Mobbin ============
   Dear: "ไม่ได้เรื่องเท่าไหร่ ใช้ mcp mobbin" → ดูของจริงจาก Bird / Aboard / 1Password / Mixpanel
   ท่าที่เว็บพวกนี้ใช้เหมือนกันหมด และเป็นสิ่งที่ของเดิมเราไม่มี:
     1. **ตัวหนังสืออยู่บน รูปอยู่ล่าง** (ของเดิมเอารูปขึ้นก่อน อ่านแล้วไม่รู้ว่ากำลังดูอะไร)
     2. **รูปทะลุขอบล่างการ์ด** ไม่ใช่สี่เหลี่ยมลอยอยู่กลางกล่อง — ให้ความรู้สึกว่า "แอปจริงมีต่อข้างล่าง"
     3. eyebrow ตัวเล็กเว้นวรรคกว้างเหนือหัวข้อ แทนไอคอน
     4. คำอธิบายเป็นประโยคจริง 1 ประโยค ไม่ใช่ลิสต์คีย์เวิร์ด
   ⛔ ห้ามเอากลับไปเป็น "รูป > หัวข้อ > ลิสต์คั่นจุด" โดยไม่ถาม Dear ก่อน */
.feat-card {
  background: #f2f8f4;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 24px;
  padding:30px 30px 0;
  box-shadow: 0 18px 44px rgba(4, 32, 22, .22);
  overflow: hidden;          /* 🪤 ตัวนี้แหละที่ทำให้รูป "ทะลุขอบล่าง" ได้ ห้ามเอาออก */
  display: flex; flex-direction: column;
}
.feat-eyebrow {
  margin:0 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--green);
}
.feat-desc {
  margin:0 0 26px;
  font-size: 16px; line-height: 1.75; color: var(--ink-soft);
}
/* กรอบพื้นอ่อนรองหน้าจอจำลอง — ให้ mini UI ดูเป็น "ภาพ" ไม่ใช่กล่องข้อความอีกใบ */
/* รูปเยื้องเข้ามาจากซ้าย ชนขอบขวา แล้วโดนขอบล่างการ์ดตัด (ท่าเดียวกับ Bird) */
.feat-shot {
  margin:auto -30px 0 26px;   /* 🪤 margin-top:auto = ดันรูปไปชนก้นการ์ดเสมอ
                                 การ์ด 2 ใบคำยาวไม่เท่ากันก็ยังเริ่มรูปที่ระดับเดียวกัน */
  height: 218px;
  overflow: hidden;
  display: block;
}
.feat-shot .mui { width: 100%; margin:0; }
/* 8 ก.ย. เนื้อในหน้าต่างเป็น "ภาพหน้าจอจริง" แล้ว ไม่ใช่ UI ที่วาดด้วย HTML
   16/10 คงที่ทุกใบ ทำให้หัวข้อใต้การ์ดอยู่ระดับเดียวกันโดยไม่ต้องล็อก min-height */
/* 🩸 ครอปแต่ละใบ "กว้างไม่เท่ากัน" ตั้งใจ — ภาพต้นทางมาคนละความละเอียด (จอ 2x / ภาพในสไลด์)
      ถ้าครอปกว้างเท่ากันหมด ตัวหนังสือจะโตไม่เท่ากัน · เกณฑ์คือให้ตัวหนังสือที่เห็นจริงราว 14-15px ทุกใบ
      สูตร: ความกว้างครอป = ความสูงตัวหนังสือในภาพต้นทาง × ความกว้างรูปในการ์ด ÷ 15 */
.mui-img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.6;
  object-fit: cover; object-position: top left;
  background: #fff;
}
.mui {
  background: #fff;
  border: 1px solid #dfeae3;
  border-right: 0; border-bottom: 0;
  border-radius: 14px 0 0 0;
  box-shadow: -16px -10px 40px rgba(4, 32, 22, .10);
  overflow: hidden;
  margin:0;
}
.mui-head { display: flex; align-items: center; gap:6px; padding:8px 12px; background: #f7faf8; border-bottom: 1px solid #edf3ef; }
.mui-dot { width: 8px; height: 8px; border-radius: 50%; background: #dde7e2; flex: none; }
.mui-head-t { margin-left:8px; font-size: 14px; font-weight: 700; color: var(--ink); }   /* 19 ส.ค. Dear: "ตัวหนังสือตรงนี้ไม่เด่นเลย ทั้งที่มันเป็นหัวข้อ" — เดิม 12px เทา #5f7169 */
.mui-body { padding:12px; display: grid; gap:10px; }
.mui-row { display: flex; align-items: center; gap:10px; }
.mui-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #eaf5ef; color: var(--green-deep); }
.mui-tt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mui-tt b { font-size: 14px; color: var(--ink); line-height: 1.35; }
.mui-tt i { font-style: normal; font-size: 12px; color: #5f7169; }
.mui-due { flex: none; display: inline-flex; align-items: center; gap:4px; font-size: 12px; font-weight: 700; color: var(--gold-ink); background: var(--gold-soft); border-radius: 999px; padding:4px 8px; }
.mui-code { display: flex; align-items: center; gap:8px; padding:8px 10px; border: 1px dashed #cfe3d7; border-radius: 10px; background: #f8fbf9; }
.mui-code span { font-size: 12px; font-weight: 700; color: #5f7169; }
.mui-code b { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--green-deep); }
.mui-code em { margin-left:auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--green-deep); background: #dff0e7; border: 1px solid #bfdccd; border-radius: 8px; padding:3px 8px; }   /* 19 ส.ค. squint test: เขียวเข้มทึบสงวนไว้ให้ปุ่มจริงเท่านั้น ปุ่มในภาพจำลองใช้เขียวอ่อน สีเดียวกันแต่คนละน้ำหนัก */
.mui-note { display: flex; align-items: center; gap:6px; font-size: 12px; font-weight: 700; color: #7a6224; background: var(--gold-soft); border: 1px solid #f2e3b6; border-radius: 10px; padding:6px 10px; }
.mui-note svg { flex: none; color: var(--gold-ink); }
.mui-note-green { color: var(--green-deep); background: #e7f5ed; border-color: #cfe8dc; }
.mui-note-green svg { color: var(--green); }
.mui-file { display: flex; align-items: center; gap:8px; font-size: 12px; font-weight: 700; color: #5e7a6d; border: 1px solid #e6efe9; border-radius: 10px; padding:8px 10px; }
.mui-file svg { flex: none; color: var(--green); }
.mui-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #5f7169; margin-bottom:6px; }
.mui-bar { height: 8px; border-radius: 999px; background: #eaf1ed; overflow: hidden; }
.mui-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.mui-stu { display: flex; align-items: center; gap:8px; }
.mui-stu img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.mui-stu span { font-size: 14px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; }
.mui-score { font-size: 12px; font-weight: 700; color: var(--green-deep); background: #d9f0e4; border-radius: 999px; padding:4px 8px; }

.feat-title { margin:0 0 12px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--green-deep); }
.feat-title svg { color: var(--green); flex: none; }
/* 🩸 8 ก.ย. Dear: "ต้องปรับใหม่ ดูเยอะอ่านยาก" — ต้นเหตุคือชิปติ๊กถูก 4 ใบ × 5 การ์ด = 20 เม็ด
      กลายเป็นลายพรุนเต็มบล็อก → ยุบเหลือ "บรรทัดเดียวคั่นด้วยจุด" ไม่มีกรอบ ไม่มีไอคอน
      (คำเดิมทุกคำ ไม่ได้ตัดเนื้อหาทิ้ง) · คลาส .feat-chips ยังอยู่ในไฟล์ เผื่อสั่งเอากลับ */
.feat-list {
  margin:0; padding:0 4px;
  font-size: 15px; line-height: 1.7;
  color: var(--ink-soft);
  min-height: 2.7em;          /* กันบรรทัดยาว 2 บรรทัดทำให้การ์ดสูงไม่เท่ากัน */
}
.feat-chips { list-style: none; margin:0; padding:0 2px; display: flex; flex-wrap: wrap; gap:8px; }
.feat-chips li { display: inline-flex; align-items: center; gap:6px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--pill-bg); border: 1px solid var(--pill-line); border-radius: 999px; padding:6px 12px 6px 10px; }
.feat-chips svg { color: var(--green); flex: none; }

/* ---------- 19 ส.ค. Dear สั่งสลับพื้นหลัง 2 บล็อกนี้ ----------
   บล็อกฟีเจอร์ = แถบสีทึบเต็มความกว้างจอ (ไม่ใช่กล่องมุมมนลอยกลางหน้าแบบเดิม)
   บล็อกครูตัดสิน = พื้นสว่างเหมือนบล็อกอื่นของเว็บ */
.sec-solid {
  background: var(--green-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sec-solid::before {                       /* ก้อนแสงจางๆ กันพื้นทึบดูแบน */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 460px at -80px 18%, rgba(255,255,255,.07) 0 52%, rgba(255,255,255,0) 76%),
    radial-gradient(680px 500px at calc(100% + 120px) 88%, rgba(255,255,255,.05) 0 52%, rgba(255,255,255,0) 76%);
}
.sec-solid > .container { position: relative; z-index: 1; }
.sec-solid .section-head h2 { color: #fff; }

/* 🪤 บล็อกนี้อยู่ติดแถบสีทึบ: ช่องไฟที่ "เห็น" คือ padding ของบล็อกนี้ฝั่งเดียว (ของแถบเขียวถูกกลืนไปกับสีพื้น)
   ต้องเบิ้ลเป็น 2 เท่าถึงจะได้ช่องไฟเท่ารอยต่ออื่นของเว็บ (~192px) — Dear แจ้งเอง 19 ส.ค. */
.sec-light { background: transparent; padding:calc(var(--section-pad-d) * 2) 0; }
.sec-light h2 {
  color: var(--green-deep);
  text-align: center;
  font-size: clamp(24px, 2.5vw, 31px);   /* 19 ส.ค. เท่ากับ .section-head h2 ของบล็อกอื่น */
  font-weight: 700;
  margin:0 0 32px;
}
.sec-light .pill-center { margin-bottom:2px; }

/* รีดีไซน์ 19 ส.ค. รอบ 3 (Dear: "ดูไม่เห็นภาพและต้องเพ่งอ่าน" · แล้วสั่งถอดใบที่ใช้ภาพการบ้านจริงออก)
   เดิม 4 คอลัมน์แถวเดียว = การ์ดกว้าง ~300px บีบให้ตัวหนังสือในภาพจำลองเหลือ 12px และเหลือที่ให้แค่แท่งเทา
   ใหม่ 3 ใบแถวเดียว กว้าง/ระยะเท่าบล็อกฟีเจอร์กับวิธีทำงาน (1280 · gap 24) · ในหน้าจอจำลองใช้ตัวหนังสือ 14–16px */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:24px; max-width: 1280px; margin:0 auto; }
/* 20 ส.ค. Dear: "ขอคลีน ๆ เหลือแค่หัวข้อ" — ถอดหน้าจอจำลองออกแล้ว การ์ดจึงไม่ต้องเป็นกล่องขาวมีเงาอีก
   เหลือเส้นคาดบางบนหัวข้อเป็นตัวแบ่งคอลัมน์แทน */
.trust-card {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  padding:26px 2px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  display: flex; flex-direction: column;
}
.trust-shot {
  background: #f4f9f6;
  border: 1px solid #e6efe9;
  border-radius: 16px;
  padding:16px;
  height: 430px;                    /* คงที่ ให้หัวข้อทั้ง 4 ใบอยู่ระดับเดียวกันเป๊ะ */
  display: flex;
}
.trust-card h3 { margin:0 2px 10px; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--green-deep); }
.trust-card p { margin:0 2px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---- หน้าต่างจำลองในการ์ด (โครงเดียวกับ .mui ของบล็อกฟีเจอร์ แต่ตัวหนังสือใหญ่กว่า) ---- */
.ts-win {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e6efe9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(10, 59, 44, .06);
}
.ts-bar { display: flex; align-items: center; gap:6px; padding:10px 14px; background: #f7faf8; border-bottom: 1px solid #edf3ef; }
.ts-dot { width: 8px; height: 8px; border-radius: 50%; background: #dde7e2; flex: none; }
.ts-bar-t { margin-left:8px; font-size: 14px; font-weight: 700; color: var(--ink); }   /* หัวหน้าต่างจำลอง ใช้น้ำหนักเดียวกับ .mui-head-t */
.ts-body { flex: 1; min-width: 0; padding:14px; display: flex; flex-direction: column; justify-content: center; gap:12px; }

/* ---- ใบที่ 2 · แถบความมั่นใจ + เส้นเกณฑ์ 60% ---- */
.cf-legend { display: flex; align-items: center; gap:7px; font-size: 14px; font-weight: 700; color: #5f7169; }
.cf-legend-mark { width: 3px; height: 15px; border-radius: 2px; background: var(--green-deep); flex: none; }
.cf-row {
  display: grid; align-items: center;
  grid-template-columns: 1fr auto; grid-template-areas: "n v" "b b" "c c"; gap:8px 12px;
  background: #fff; border: 1px solid #e6efe9; border-radius: 12px; padding:12px;
}
.cf-row.is-low { background: #f7faf9; }
.cf-name { grid-area: n; display: flex; align-items: center; gap:8px; min-width: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.cf-name img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.cf-bar { grid-area: b; position: relative; height: 12px; border-radius: 999px; background: #e5ede9; }
.cf-bar i { display: block; height: 100%; border-radius: 999px; background: #b9c9c1; }
.cf-bar i.is-ok { background: var(--green); }
.cf-bar u { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: 2px; background: var(--green-deep); }
.cf-val { grid-area: v; font-size: 16px; font-weight: 700; color: var(--ink); }
.cf-chip {
  grid-area: c; justify-self: start; display: inline-flex; align-items: center; gap:5px;
  font-size: 14px; font-weight: 700; color: #4a6b5d;
  background: #eef2f0; border-radius: 999px; padding:6px 10px;
}
.cf-chip.is-ok { color: var(--green-deep); background: #e0f2e8; }
.cf-note { margin:0; font-size: 14px; font-weight: 700; color: #5f7169; }

/* ---- ใบที่ 3 · ร่างข้อความ + ปุ่มคู่ ---- */
.ts-to { display: flex; align-items: center; gap:10px; font-size: 16px; color: #5f7169; }
.ts-to img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.ts-to b { color: var(--ink); font-weight: 700; }
.ts-quote { background: #f8fbf9; border: 1px solid #e2ede7; border-radius: 12px; padding:12px 14px; }
.ts-quote-tag { display: inline-flex; align-items: center; gap:6px; font-size: 14px; font-weight: 700; color: var(--green-deep); }
.ts-quote-tag svg { fill: var(--green); color: var(--green); }
.ts-quote p { margin:8px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.ts-hint { display: flex; align-items: center; gap:7px; margin:0; font-size: 14px; font-weight: 700; color: #5f7169; }
.ts-hint svg { flex: none; color: var(--green-deep); }
.ts-acts { display: flex; gap:10px; }
.ts-go { font-size: 16px; font-weight: 700; color: var(--green-deep); background: #dff0e7; border: 1.5px solid #a9d3bd; border-radius: 12px; padding:12px 16px; }   /* 19 ส.ค. squint test: เขียวเข้มทึบสงวนไว้ให้ปุ่มจริงเท่านั้น ปุ่มในภาพจำลองใช้เขียวอ่อน สีเดียวกันแต่คนละน้ำหนัก */
.ts-no { font-size: 16px; font-weight: 700; color: var(--ink-soft); background: #fff; border: 1.5px solid #d9e5df; border-radius: 12px; padding:12px 16px; }

/* ---- ใบที่ 4 · แถวตั้งค่าข้อมูล ---- */
.dt-label { display: flex; align-items: center; gap:7px; font-size: 14px; font-weight: 700; color: #5f7169; }
.dt-label svg { color: var(--green-deep); flex: none; }
.dt-panel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap:12px;
  background: #fff; border: 1px solid #e2ede7; border-radius: 14px; padding:28px 20px;
}
.dt-ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #e7f5ed; color: var(--green-deep); }
.dt-title { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.dt-sub { margin-top:-6px; font-style: normal; font-size: 14px; line-height: 1.5; color: #5f7169; }
.dt-btn { display: inline-flex; align-items: center; gap:6px; font-size: 16px; font-weight: 700; color: var(--green-deep); background: #dff0e7; border: 1.5px solid #a9d3bd; border-radius: 12px; padding:12px 20px; }   /* 19 ส.ค. squint test: เขียวเข้มทึบสงวนไว้ให้ปุ่มจริงเท่านั้น ปุ่มในภาพจำลองใช้เขียวอ่อน สีเดียวกันแต่คนละน้ำหนัก */

/* ---------- ปิดท้าย — แบนเนอร์ CTA เขียวเข้มมุมมน (รีดีไซน์ 18 ส.ค. ตามแพทเทิร์น Mobbin: Slack/OpenTable) ---------- */
.closing { background: transparent; padding:var(--section-pad-d) 0; text-align: center; }

/* ---------- บล็อกปิดท้าย: วิดีโอเดินตามการเลื่อน แล้วจบด้วยข้อความ+ปุ่ม (18 ส.ค.) ----------
   คลิปเป็น "ดินแตกระแหง → ฝนตก → ต้นกล้างอก" 5 วิ · JS เลื่อนเฟรมตามตำแหน่งสกรอลล์
   จบคลิปแล้วผ้าคลุมสีครีมค่อยทึบขึ้นมารับข้อความ (SVG หัวเรื่องเป็นสีเข้ม ต้องมีพื้นสว่าง)
   ไม่ปักหมุด (จอเตี้ย/มือถือ) → วิดีโอเล่นวนเองเป็นพื้นหลัง ข้อความโชว์ตลอด */
.closing-film { padding:0; overflow: clip; }
.closing-film.is-pinned .pin-track { position: relative; }
.closing-film.is-pinned .pin-stage {
  position: sticky; top: 0;
  height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
}
.closing-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.closing-veil {
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 50%, #fdfcf7 0 42%, #f7f8f0 100%);
  opacity: 0;
}
.closing-film .closing-panel {
  position: relative;
  background: none;
  border: 0;
  box-shadow: none;
  max-width: 900px;
  padding:0 24px;
}
.closing-film .closing-panel::before { content: none; }
.closing-film .closing-title,
.closing-film .closing-line,
.closing-film .closing-cta { opacity: 0; }

/* ไม่ได้ปักหมุด (จอเตี้ย/มือถือ/ปิด JS): วิดีโอเป็นพื้นหลังเบา ๆ ข้อความอ่านได้ตามปกติ */
.closing-film:not(.is-pinned) .pin-stage {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: center;
  padding:var(--section-pad-d) 0;
  overflow: hidden;
}
.closing-film:not(.is-pinned) .closing-veil { opacity: .88; }
.closing-film:not(.is-pinned) .closing-title,
.closing-film:not(.is-pinned) .closing-line,
.closing-film:not(.is-pinned) .closing-cta { opacity: 1; }
/* 18 ส.ค. (รอบแก้): Dear สั่งใช้หัวเรื่อง SVG ตัวเดียวกับฮีโร่ → แผงเปลี่ยนจากเขียวเข้มเป็นการ์ดขาวสว่าง
   (SVG ตัวหนังสือเขียวเข้ม/น้ำตาล วางบนพื้นเข้มจะจม) โครงมุมมน 28px เดิมคงไว้ */
.closing-panel {
  position: relative;
  overflow: hidden;
  max-width: 1280px;
  margin:0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding:72px 40px;
  box-shadow: 0 18px 44px rgba(10, 59, 44, .08);
}
.closing-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(460px 340px at -60px 20%, var(--blob) 0 52%, rgba(237,243,223,0) 75%),
    radial-gradient(520px 380px at calc(100% + 90px) 90%, var(--blob-soft) 0 52%, rgba(243,247,234,0) 76%);
}
.closing-panel > * { position: relative; }
.closing-title { margin:0 0 16px; }
.closing-title img {
  display: block;
  width: clamp(300px, 42vw, 560px);
  height: auto;
  margin:0 auto;
}
.closing-line { margin:0 0 28px; font-size: clamp(18px, 1.6vw, 20px); font-weight: 700; color: var(--green-deep); }
.closing-cta { display: flex; flex-wrap: wrap; gap:16px; justify-content: center; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }
.closing-cta { display: flex; flex-wrap: wrap; gap:16px; justify-content: center; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); transform: translateY(-1px); }

/* ---------- ท้ายเว็บ ---------- */
.footer { background: transparent; padding:44px 0 32px; text-align: center; } /* ตัดเส้น border-top ที่เป็นรอยต่อ */
.footer .logo { justify-content: center; margin-bottom:20px; }
.footer-links { display: flex; gap:40px; justify-content: center; flex-wrap: wrap; margin-bottom:14px; }
.footer-links a:hover { color: var(--green); }
.footer-org { color: var(--ink-soft); font-size: 16px; margin:0 auto 8px; max-width: 46em; line-height: 1.7; }
.footer-copy { color: var(--ink-soft); font-size: 16px; margin:0; }

/* ---------- แท็บเล็ต ---------- */
/* 🩸 8 ก.ย. ปุ่มบนเมนูเปลี่ยนจาก "ขอเดโม" (6 ตัว) เป็น "ทดลองใช้ฟรีเร็ว ๆ นี้" (ยาวขึ้น ~120px)
      ช่วง 1001–1200px แถบเมนูเลยตกบรรทัด (จริง ๆ ช่วง 1001–1100 ตกอยู่ก่อนแล้วตั้งแต่ก่อนแก้)
      → รัดช่องไฟ/ขนาดตัวอักษรเฉพาะช่วงนี้ ให้ทุกอย่างอยู่บรรทัดเดียวเหมือนจอกว้าง · ต่ำกว่า 1000 เป็นแฮมเบอร์เกอร์อยู่แล้ว */
@media (min-width: 1001px) and (max-width: 1200px) {
  .nav .logo   { margin-left:14px; }
  .nav-links   { gap:20px; font-size: 16px; }
  .nav-actions { gap:10px; }
  .nav-login   { font-size: 16px; }
  .nav-actions .btn-sm { padding:9px 15px; font-size: 15px; }
}

@media (max-width: 1000px) {
  /* จอแคบ: ภาพเต็มขวาบังตัวหนังสือไม่ได้แล้ว (คอนเทนเนอร์กว้างเกือบเท่าจอ) —
     สลับภาพจาก "พื้นหลังเต็ม .hero" เป็นรูปกองกองอยู่ใต้ตัวหนังสือแทน (DOM มันอยู่หลังอยู่แล้ว) */
  .hero-grid { padding:48px 0 0; }
  .hero-photo {
    position: static;
    aspect-ratio: 1672 / 941;
    margin:32px 0 0;
  }
  /* จอเดียวคอลัมน์เดียว มีที่ว่างเยอะ หัวเรื่องขยายได้ — เลิกใช้ width คงที่ 600px ของจอกว้าง กลับไปอิงคอลัมน์แทน
     🪤 ต้องใช้ selector .hero .hero-title (2 คลาส) ให้ specificity เท่ากับกฎจอกว้าง ไม่งั้นกฎ 600px ชนะทับ แม้จะมาทีหลังในไฟล์ */
  .hero .hero-title { width: auto; }
  .hero-title img { max-width: 560px; }
  .hero .hero-tagline { width: auto; max-width: 640px; }

  /* เมนูมือถือ: ปุ่มแฮมเบอร์เกอร์ + เมนูเลื่อนลง */
  .nav-inner { position: relative; justify-content: flex-start; }
  .logo { margin-right:auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap:0;
    padding:6px 24px 14px;
    box-shadow: 0 16px 28px rgba(10, 59, 44, .10);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding:12px 4px; min-height: 44px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }

  /* 🪤 8 ก.ย. กริดใหญ่เป็น 6 คอลัมน์ (การ์ดละ 2) — พอมาคอลัมน์เดียวต้องล้าง grid-column ทิ้งด้วย
        ไม่งั้น span 2 / 2 4 ของจอกว้างยังค้างอยู่ แล้วการ์ดหายไปครึ่งหนึ่ง */
  .feat-groups { grid-template-columns: 1fr; max-width: 520px; }
  .feat-card { padding:26px 24px 0; }
  .feat-desc { margin-bottom:22px; }
  .feat-shot { margin:auto -24px 0 18px; height: 190px; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin:0 auto; }
  .step-media { aspect-ratio: 16 / 10; }
  /* จอสัมผัส: นิ้วกดโดนยากถ้าพื้นที่กดสูงไม่ถึง ~44px — เพิ่มระยะกดให้ลิงก์เปล่าที่ไม่ใช่ปุ่ม */
  .nav-login { padding:8px 6px; white-space: nowrap; }
  .footer-links a { padding:8px 4px; }
}

/* จอ 1000–1200: การ์ดฟีเจอร์ 3 ใบเริ่มแคบ — บีบระยะในการ์ดแทนที่จะปล่อยให้ข้อความในหน้าจอจำลองตัดบรรทัด */
@media (max-width: 1200px) {
  .feat-groups { gap:16px; }
  .feat-card { padding:12px 12px 16px; }
  .feat-shot { padding:12px; min-height: 232px; }
  .feat-title { font-size: 20px; margin-top:16px; }
  .feat-chips li { font-size: 14px; padding:6px 10px 6px 8px; }
  .mui-tt b { font-size: 12px; }
  .mui-due { font-size: 12px; }
}

/* การ์ดหลักประกัน 4 ใบ (2×2): จอกลางบีบระยะในการ์ด ไม่ให้แถวความมั่นใจล้น */
@media (max-width: 1180px) {
  .trust { gap:20px; }
  .trust-shot { padding:14px; }
  .cf-chip { font-size: 12px; padding:6px 8px; }
  .dt-btn { font-size: 12px; padding:8px 10px; }
}

/* จอเล็กกว่า 900: 3 ใบเรียงลงมาเป็นคอลัมน์เดียว กว้างพอให้หน้าจอจำลองยังอ่านออก */
@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; max-width: 620px; }
}

/* จอแคบมาก: แถวนำทางแน่น ต้องบีบระยะ+ตัวหนังสือไม่ให้ตัดบรรทัด/ทับกัน */
@media (max-width: 480px) {
  .nav-inner { gap:8px; }
  .nav-actions { gap:6px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 20px; }
  .nav-login { font-size: 14px; padding:8px 2px; }
  .nav-actions .btn-sm { padding:8px 12px; font-size: 14px; }
}

/* ---------- มือถือ ---------- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding:0 16px; }
  .section, .closing { padding:var(--section-pad-m) 0; }
  .sec-light { padding:calc(var(--section-pad-m) * 2) 0; }
  .hero-grid { padding:40px 0 0; }
  .hero-photo { margin-top:28px; }
  /* จอแคบพื้นที่จำกัด — margin-left 48px ของจอกว้างมากไป ดันหัวเรื่องล้นขอบ ลดเหลือน้อยลง */
  .hero-copy { margin-left:16px; }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { padding:16px 24px; font-size: 16px; }

  /* ปุ่มหลักเต็มแถวอันเดียว ปุ่มรองเป็นลิงก์ตัวหนังสือ */
  .hero-cta { flex-direction: column; align-items: stretch; gap:6px; }
  .hero-cta .btn-primary { width: 100%; }
  .hero-cta .btn-ghost {
    width: auto; align-self: center;
    background: transparent; border-color: transparent;
    color: var(--green-deep); text-decoration: underline;
    padding:10px 8px; box-shadow: none;
  }

  /* บล็อกเด็กได้อะไร: ซ้อนคอลัมน์แนวตั้ง + การ์ดลอยเปลี่ยนเป็นวางต่อท้ายแบบปกติ (ไม่ absolute ลอยทับกันบนจอแคบ) */
  .kid-grid { grid-template-columns: 1fr; gap:36px; }
  .kid-copy { max-width: none; margin-left:0; }
  .kid-feature-icon { width: 52px; height: 52px; border-radius: 15px; }
  .kid-feature-icon svg { width: 27px; height: 27px; }
  .kid-feature-title { font-size: 18px; }
  .kid-feature-desc { font-size: 16px; }
  .kid-heading { margin-bottom:40px; }
  .kid-kicker { font-size: 14px; }
  .kid-orbs { display: none; }
  .kid-visual { padding:0; margin-top:0; display: flex; flex-direction: column; gap:16px; }
  .kid-callout { position: static; max-width: none; }
  .trust { grid-template-columns: 1fr; }

  .facts-card { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }

  /* ภาพประกอบ AI ไม่กินพื้นที่เกิน ~200px บนมือถือ */
  .step-media { max-height: 190px; }

  /* บล็อกครูได้อะไร: ซ้อนแผงเป็นแนวตั้ง ซ่อนลูกศรกลม (ไม่มีที่ทางให้วางกึ่งกลาง 2 แผงที่ซ้อนกัน) */
  .compare-grid { grid-template-columns: 1fr; gap:20px; }
  .compare-arrow { display: none; }

  /* กริดฟีเจอร์บนมือถือ: การ์ดหมวดซ้อนแนวตั้ง แถวข้างในกระชับลง */
  .feat-groups { gap:16px; }
  .feat-title { font-size: 20px; margin-top:16px; }
  .feat-chips li { font-size: 14px; padding:6px 10px 6px 8px; }
  .feat-shot { padding:12px; }
  .trust-card { padding:20px 2px 0; }          /* 20 ส.ค. — เหลือแค่หัวข้อแล้ว ใช้ระยะเดียวกับเดสก์ท็อปแบบย่อ */
  .trust-card h3 { font-size: 18px; margin-top:0; }
  .trust-card p { font-size: 16px; }
  /* มือถือ: ปล่อยความสูงหน้าจอจำลองตามเนื้อหา (ไม่ต้องจัดหัวข้อให้อยู่ระดับเดียวกันแล้ว เพราะเรียงลงมาใบเดียว) */
  .trust-shot { height: auto; padding:12px; }
  .ts-body { gap:10px; }
  .ts-acts { flex-wrap: wrap; }
  .dt-btn { padding:8px 10px; }
  .closing-panel { padding:44px 20px; border-radius: 20px; }

  .roster-row { flex-wrap: wrap; padding:10px 12px; }
  .roster-name { flex: 1 0 60%; }
  .roster-caret { display: none; }
  .chip { font-size: 12px; }
  .roster-columns span:last-child { display: none; }
  .closing-cta .btn { width: 100%; }
  .footer-links { gap:24px; }
}

/* ====================================================================
   18 ส.ค. — รอบ "Layout มืออาชีพ" ตามม็อกอัพ 19_39_26
   Dear สั่ง: แกะองค์ประกอบ+พื้นหลังจากม็อกอัพมาใช้ทุก section + อนิเมชั่น
   ค่าสีทุกตัววัดพิกเซลจริงจากไฟล์ม็อกอัพ (ไม่กะสายตา)
   ==================================================================== */

/* ---------- ก้อนเขียวซีดประดับพื้นหลัง — ผืนเดียวไหลต่อกันทั้งหน้า (18 ส.ค. Dear สั่ง "สีต้องเชื่อมกันไร้รอยต่อ")
   เดิมวาดเป็น ::before รายบล็อก → ก้อนโดนตัดที่ขอบ section เกิดเส้นรอยต่อ
   ตอนนี้เป็น <div class="page-blobs"> ตัวเดียวสูงเต็มเอกสาร (z-index:-1) — ทุก section โปร่งใสให้ก้อนไหลลอดผ่าน
   ⚠️ ห้ามใส่ background ทึบให้ section โทนอ่อนอีก ไม่งั้นก้อนโดนบัง + รอยต่อกลับมา */
/* ---------- พื้นหลังรายบล็อก (18 ส.ค. — Dear: "อย่าให้ทุกหน้าพื้นหลังเหมือนกัน · ไม่ต้องมีทุกหน้า") ----------
   เดิมเป็นผืนเดียวตรึงจอ (.page-blobs) → เลื่อนไปบล็อกไหนก็เจอก้อนเดิมที่เดิม
   ตอนนี้ให้แต่ละบล็อกมีผังก้อนของตัวเอง ต่างกัน และบางบล็อกปล่อยว่างสนิท
   🪤 บล็อกที่ "ปักหมุด" ต้องวาดพื้นหลังไว้ที่ .pin-stage ไม่ใช่ที่ section
      ไม่งั้นตอนเนื้อหาค้างนิ่ง พื้นหลังจะไหลผ่านให้เห็นว่าขยับ */
.sec-bg::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background: var(--sec-blobs, none);
}
.sec-bg > .container { position: relative; z-index: 1; }

/* บล็อก "ครูได้อะไร" — ก้อนโผล่จากขอบซ้ายบน กับขอบขวาล่าง */
.teacher-pin .pin-stage::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  /* 🪤 ก้อนต้อง "ไม่แตะขอบบน/ล่างของเวที" — ขอบนั้นไม่ใช่ขอบจอเสมอไป (ตอนเลื่อนเข้า/ออกจะเห็นเป็นเส้นตัด)
     ให้แตะได้เฉพาะขอบซ้าย/ขวา ซึ่งเป็นขอบจอจริง วงจึงดูสมบูรณ์ไม่ขาดกลางคัน */
  background:
    radial-gradient(ellipse 14% 22% at -3% 30%,   #f4f8ee 0 100%, transparent 100%),
    radial-gradient(ellipse 18% 20% at 103% 74%,  #f2f6ea 0 100%, transparent 100%);
}
.teacher-pin .pin-stage > .container { position: relative; z-index: 1; }

/* บล็อก "เด็กได้อะไร" — ผังตามม็อกอัพ 19_39_26: โดมขอบบนค่อนขวา · ขอบซ้ายกลาง · ซ้ายล่าง · แถบขอบล่างขวา + ลายจุด 2 มุม */
.kid-pin .pin-stage::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  /* ทุกวงอยู่ในกรอบเวทีทั้งใบ (ไม่แตะขอบบน/ล่าง) จะได้ไม่มีรอยตัดกลางจอ */
  background:
    radial-gradient(ellipse 15% 20% at 79% 23%,   #f2f6ea 0 100%, transparent 100%),
    radial-gradient(ellipse 8% 13% at -1% 53%,    #f4f8ee 0 100%, transparent 100%),
    radial-gradient(ellipse 19% 15% at 6% 80%,    #f2f6ea 0 100%, transparent 100%);
}
/* ลายจุดถูกถอดออก (18 ส.ค. — Dear: "ขอดูมืออาชีพ เพราะขายโรงเรียนรัฐ ต้องน่าเชื่อถือ")
   บนหน้าจอจริงมันกระจายเต็มมุมจนดูรก ต่างจากในม็อกอัพที่เป็นภาพนิ่งย่อส่วน
   พื้นหลังเหลือเฉพาะก้อนโทนเขียวจาง ๆ ที่ขอบ ให้ดูสะอาดและสุภาพ */
.kid-pin .pin-stage > .container { position: relative; z-index: 1; }

/* บล็อกฟีเจอร์ — ผังคนละแบบ: ก้อนเดียวโผล่จากขอบขวาบน */
.sec-bg-feat { --sec-blobs:
  radial-gradient(ellipse 22% 28% at 104% 34%, #f4f8ee 0 100%, transparent 100%); }

/* บล็อก "วิธีทำงาน 3 ขั้น" · "ครูตัดสิน" · "ปิดท้าย" ตั้งใจปล่อยพื้นโล่ง ไม่มีก้อนเลย
   เพื่อให้เลื่อนแล้วรู้สึกว่าเปลี่ยนฉาก ไม่ใช่เจอพื้นหลังเดิมซ้ำทุกหน้า */
.decor { position: relative; }
.decor > .container, .decor .pin-stage > .container { position: relative; z-index: 1; }

/* ---------- pill kicker (จากม็อกอัพ: พื้น #f8faee ขอบเขียวจาง ตัวหนังสือเขียวเข้ม + ไอคอน) ---------- */
.pill-kicker, .kid-kicker {
  display: inline-flex; align-items: center; gap:8px;
  font-size: 14px; font-weight: 700; color: var(--green-deep);
  background: var(--pill-bg); border: 1px solid var(--pill-line); border-radius: 999px;
  padding:8px 16px 8px 14px; margin:0 0 16px;
}
.pill-kicker svg { color: var(--green); flex: none; }
.section-head .pill-kicker { margin-bottom:12px; }
.pill-center { display: flex; justify-content: center; }
.sec-solid .pill-kicker {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.24); color: #fff;
}
.sec-solid .pill-kicker svg { color: #a7dcc2; }

/* หายใจใต้หัวข้อ section มากขึ้นก่อนเข้ากริด (จังหวะแบบม็อกอัพ) — ไม่แตะขนาดตัวหนังสือ */
.section-head { margin-bottom:40px; }

/* ---------- วิธีทำงาน: ยกเป็นการ์ดขาว + หมายเลขขั้น ---------- */
.steps { gap:28px; max-width: 1280px; margin:0 auto; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:14px 14px 24px;
  box-shadow: 0 8px 22px rgba(10, 59, 44, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 59, 44, .11); }
.step-media { border-radius: 14px; }
.step-num {
  position: absolute; top: 26px; left: 26px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-deep); color: #fff;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 6px 14px rgba(10, 59, 44, .22);
}
.step h3 { padding:0 10px; }
.step p { padding:0 10px; }

/* ---------- การ์ดหมวดฟีเจอร์: hover ยกตัว (แถวข้างในมี hover ของตัวเองแล้ว) ---------- */
.feat-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(10, 59, 44, .12); border-color: #cfe3d7; }

/* ---------- การ์ดหลักประกันบนพื้นสว่าง: มีเส้นขอบ+เงาอ่อน ไม่งั้นจมพื้น ---------- */
/* 20 ส.ค. — เลิกทำการ์ดลอยในบล็อกนี้ (เหลือแค่หัวข้อ) จึงไม่มีกรอบ/เงา/ยกตอนชี้ */
.trust-card { border: 0; border-top: 1px solid var(--line); box-shadow: none; }

/* ---------- ท้ายเว็บกลืนโทนเดียวกัน ---------- */


/* ---------- อนิเมชั่นเข้าฉากตอนเลื่อนถึง ----------
   JS (ท้าย index.html) ติด .rv-init ให้เฉพาะตอน JS ทำงาน — ปิด JS ก็เห็นเนื้อหาปกติ
   เข้าฉากจบแล้ว JS ถอดคลาสทิ้ง เพื่อคืน transition ให้ hover ปกติของแต่ละการ์ด */
.rv-init {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
}
.rv-init.rv-in { opacity: 1; transform: none; }
.rv-init:nth-child(2) { transition-delay: .1s; }
.rv-init:nth-child(3) { transition-delay: .2s; }
.rv-init:nth-child(4) { transition-delay: .3s; }

/* บล็อก "วิธีทำงาน": เลื่อนถึงแล้วให้การ์ดเด้งขึ้นทีละใบ 1 → 2 → 3 (Dear สั่ง 19 ส.ค.)
   ต่างจากเข้าฉากปกติตรงที่ระยะห่างระหว่างใบชัดกว่า (.2s) และ easing มีโอเวอร์ชูตเล็กน้อย = "เด้ง" */
.step.rv-init { transform: translateY(36px) scale(.97); transition: opacity .5s ease, transform .62s cubic-bezier(.34, 1.5, .5, 1); }
.step.rv-init.rv-in { transform: none; }
.steps .step.rv-init:nth-child(1) { transition-delay: .06s; }
.steps .step.rv-init:nth-child(2) { transition-delay: .26s; }
.steps .step.rv-init:nth-child(3) { transition-delay: .46s; }

/* บล็อก "ย้ายมาแล้วไม่ต้องเรียนรู้ใหม่": ไฟนวลกวาดผ่านทีละใบ **ตามระยะที่เลื่อนลงมา** (Dear ย้ำ 19 ส.ค.
   "ต้องเป็นการที่เลื่อนเมาส์ลงไปเรื่อย ๆ แล้วมันค่อยเป็นตามลำดับ" = ผูกกับ scroll ไม่ใช่เล่นเองตามเวลา และไม่ใช่ hover)
   JS (ท้าย index.html) ติด .is-scrub ให้กริด แล้วสลับ .is-on รายใบตามเปอร์เซ็นต์ที่เลื่อน — เลื่อนขึ้นก็หรี่กลับ
   🪤 ต้องมี position:relative ที่การ์ด ไม่งั้น ::after ไปยึด ancestor ตัวอื่นแล้วแสงไม่โผล่บนการ์ดเลย */
.feat-card { position: relative; overflow: hidden; }
.feat-card::after {
  content: ""; position: absolute; inset: -25% -70%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .72) 50%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none; z-index: 2;
}
.feat-groups.is-scrub .feat-card { opacity: .34; transition: opacity .45s ease; }
.feat-groups.is-scrub .feat-card.is-on { opacity: 1; }
.feat-groups.is-scrub .feat-card.is-on::after { animation: feat-sweep .8s cubic-bezier(.4, 0, .2, 1); }
@keyframes feat-sweep {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}

/* ---------- ปักหมุดบล็อกฟีเจอร์ แล้วไล่ไฟทีละใบตามการเลื่อน (19 ส.ค. Dear: "ลงมาแล้วให้มันหยุดตรงนี้ก่อน
   แล้วพอเลื่อนเมาส์ลงมันก็จะเป็นอันที่ 1 แล้วพอเลื่อนต่อมันก็จะเป็นอันที่ 2 ถ้าไม่เลื่อนมันก็ไม่มา") ----------
   คลาส .is-pinned ติดด้วย JS เท่านั้น · ความสูง .pin-track ตั้งจาก JS
   → ปิด JS / จอเตี้ย / มือถือ / reduced-motion = ไหลตามปกติ เห็นการ์ดครบ */
.sec-solid.feat-pin { overflow: clip; }        /* 🪤 overflow:hidden ของ .sec-solid ทำลาย sticky — ต้องเป็น clip */
.feat-pin.is-pinned { padding: 0; }
.feat-pin.is-pinned .pin-track { position: relative; }
.feat-pin.is-pinned .pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.feat-pin .pin-stage > .container { position: relative; z-index: 1; }
/* 🪤 ก้อนแสงต้องอยู่กับ "เวที" ไม่ใช่ section ไม่งั้นตอนเนื้อหาค้างนิ่ง แสงจะไหลผ่าน */
.feat-pin.is-pinned::before { display: none; }
.feat-pin.is-pinned .pin-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(620px 460px at -80px 18%, rgba(255,255,255,.07) 0 52%, rgba(255,255,255,0) 76%),
    radial-gradient(680px 500px at calc(100% + 120px) 88%, rgba(255,255,255,.05) 0 52%, rgba(255,255,255,0) 76%);
}
/* ตอนปักหมุดต้องพอดี 1 จอ — รัดช่องไฟแนวตั้งลงนิดเดียว (ไม่แตะเลย์เอาต์ปกติ) */
.feat-pin.is-tight .section-head { margin-bottom:28px; }
.feat-pin.is-tight .feat-card { padding:12px 12px 16px; }

/* ---------- เปิดหน้า: ฮีโร่ลอยขึ้นทีละชั้น + ภาพซูมเข้าเบาๆ ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.hero .hero-title { animation: rise-in .8s .1s cubic-bezier(.22, .61, .36, 1) both; }
.hero-sub { animation: rise-in .8s .26s cubic-bezier(.22, .61, .36, 1) both; }
.hero-cta { animation: rise-in .8s .42s cubic-bezier(.22, .61, .36, 1) both; }
.hero-photo img { animation: photo-in 1.3s ease both; }

/* ---------- การ์ดลอยบล็อกเด็กได้อะไร: ลอยขึ้นลงนุ่มๆ คนละจังหวะ ---------- */
@keyframes float-y { from { transform: translateY(0); } to { transform: translateY(-10px); } }
/* 18 ส.ค. — Dear: "ยังขยับอยู่เลย" → หยุดการ์ดลอย 2 ใบให้อยู่นิ่ง
   ในบล็อกนี้เหลือของที่เคลื่อนเฉพาะสิ่งที่ผูกกับการเลื่อนของผู้ใช้ (เมาส์ · การกด · การเปลี่ยนหน้า) */

/* ---------- ลูกศรเชื่อมลำดับระหว่างการ์ด 3 ขั้น (เฉพาะจอกว้างที่การ์ดเรียงแถวเดียว) ---------- */
@media (min-width: 1001px) {
  .step + .step::before {
    content: "";
    position: absolute;
    left: -28px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341B681' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>") center/14px 14px no-repeat;
    box-shadow: 0 4px 10px rgba(10, 59, 44, .14);
    z-index: 1;
  }
}

/* ---------- ลูกศรกลางบล็อกเปรียบเทียบ: pulse นุ่มๆ ชวนมอง ---------- */
@keyframes pulse-soft {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 10px 28px rgba(10, 59, 44, .12), 0 0 0 12px rgba(65, 182, 129, .10); }
}
.compare-arrow { animation: pulse-soft 2.6s ease-in-out infinite; }

/* ---------- รายละเอียด UX เล็กๆ ทั้งหน้า ---------- */
section[id] { scroll-margin-top:96px; } /* กดลิงก์เมนูแล้วหัวข้อไม่มุดใต้แถบนำทาง sticky */
.btn:active { transform: translateY(0) scale(.98); }
.footer { padding:72px 0 56px; }
.footer-links { gap:36px; margin-bottom:16px; }
.footer-links a { transition: color .2s ease; }

/* 🪤 กฎบล็อกนี้อยู่ท้ายไฟล์ เลยชนะ media query มือถือด้านบนโดยไม่ตั้งใจ — ต้อง override คืนที่นี่ */
@media (max-width: 700px) {
  .steps { max-width: 460px; gap:20px; }
  .step-num { top: 22px; left: 22px; width: 34px; height: 34px; font-size: 16px; }

  #ครูได้อะไร.section-mint { padding-top:112px; } /* มือถือ: รอยต่อปกติ = 56+56 — ให้บล็อกนี้แบกเท่ากัน */
  .kid-callout-top, .kid-callout-bottom { animation: none; } /* การ์ดเรียงในฟลว์แล้ว ไม่ต้องลอย */
}

/* ---------- เข้าถึงได้ ---------- */
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   เอลิเมนต์ 3D ประกอบ (22 ส.ค. 2569) — ไอคอนชุดเดียวกับสไลด์พิตช์
   ต้นทาง: TLDR - FINAL (1).zip (สไลด์ 62-63) แกะเป็น PNG พื้นใสไว้ที่ assets/3d/
   โครงสร้าง: .orn-host (position:relative) > .orn-layer (คลุมเต็มบล็อก, ตัดขอบ)
              > .orn (ตำแหน่ง + parallax ตอนเลื่อน) > img (ลอยขึ้นลงเบา ๆ)
   🪤 ต้องแยกสองชั้น เพราะ transform ของ parallax กับของอนิเมชันลอยใช้ทับกันไม่ได้
   ============================================================ */
.orn-host { position: relative; }

.orn-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;      /* กันไอคอนล้นออกนอกบล็อกแล้วดันหน้าให้เลื่อนข้าง */
  pointer-events: none;
  z-index: 0;            /* ต่ำกว่า .container ที่ตั้ง z-index:1 ไว้แล้ว */
}

/* วางแบบ "เกาะขอบนอกคอลัมน์เนื้อหา" ไม่ใช่ % ของบล็อก
   --col = ครึ่งความกว้างคอลัมน์ (compare-grid / steps / trust กว้าง 1280 → 640)
   --gap = ระยะห่างจากขอบคอลัมน์ · คิดจาก 50% เสมอ ไอคอนเลยไม่มีวันล้ำเข้าไปทับเนื้อหาไม่ว่าจอกว้างเท่าไร */
.orn {
  --col: 640px;
  --gap: 14px;   /* 22 ส.ค. ลดจาก 20 → ไอคอนขยับออกจากขอบจอมาทางเนื้อหาอีกนิด */
  position: absolute;
  top: var(--y);
  width: var(--s, 62px);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.orn-l, .orn-r { --s: 62px; }
.orn-l { left: calc(50% - var(--col) - var(--s) - var(--gap)); }
.orn-r { left: calc(50% + var(--col) + var(--gap)); }
/* จอ 1460-1539: ริมข้างเหลือแค่ ~95px ไอคอน 62 จะไปติดขอบจอ (Dear 22 ส.ค. "ชิดขอบซ้ายเกิน")
   → ย่อไอคอนลง ระยะขอบจอกับระยะห่างการ์ดจะกลับมาสมดุล */
@media (min-width: 1460px) and (max-width: 1539px) {
  .orn-l, .orn-r { --s: 54px; }
}

.orn img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(var(--rot, 0deg));
  opacity: .94;
  filter: drop-shadow(0 10px 18px rgba(20, 113, 60, .12));  /* 22 ส.ค. ลดเงาลง Dear ว่า "ดูรก" */
  animation: orn-float var(--dur, 8s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes orn-float {
  from { transform: rotate(var(--rot, 0deg)) translateY(0); }
  to   { transform: rotate(calc(var(--rot, 0deg) + 5deg)) translateY(-13px); }
}


/* ---- ไอคอนประกอบแบบ "วางไว้หลังข้อความ" (22 ส.ค. Dear สั่ง) ----
   ไม่ใช่ไอคอนลอยริมขอบ แต่เป็นลายน้ำ 3D ใหญ่ ๆ จาง ๆ นั่งอยู่หลังตัวหนังสือ
   วางจากขอบขวาของกล่องข้อความ (--r) และจากขอบบน (--y เป็น px ไม่ใช่ %) */
.orn-bg {
  left: auto;
  right: var(--r, -10px);
  opacity: .2;
  z-index: 0;
}
.orn-bg img { opacity: 1; filter: none; }   /* ไม่ต้องมีเงา ที่ความจางระดับนี้เงาจะกลายเป็นคราบ */

/* แบบ "ต่อท้ายตัวหนังสือ" — การ์ด "ระบบเสนอ ครูตัดสิน" (Dear สั่ง 22 ส.ค. "ทำให้อิโมจิอยู่หลังตัวหนังสือพอดีสิ")
   🩸 ห้ามให้ทับตัวอักษร (Dear ตีกลับ 2 รอบ) และห้ามลอยห่างจนดูไม่เกี่ยวกัน
   → --l ตั้งเป็น px รายคอลัมน์ = ขอบขวาของ "ตัวอักษรจริง" ในคอลัมน์นั้น + 18px
     (วัดด้วย Range.getClientRects() ที่จอ 1600 · คอลัมน์กว้างคงที่ 411px ตั้งแต่จอ 1330 ขึ้นไป
      ถ้าแก้ข้อความในการ์ดต้องวัดใหม่) */
.orn-bg-mid { left: var(--l); right: auto; opacity: .22; }

/* หลอดไฟหลังหัวเรื่องบล็อกเด็ก — Dear ชอบใบนี้ ให้เด่นกว่าลายน้ำการ์ด */
.orn-bg-star { opacity: .28; }

/* กล่องที่รับไอคอนหลังข้อความ ต้องเป็นฐานตำแหน่ง และตัวหนังสือต้องถูกยกขึ้นมาข้างหน้า */
.kid-copy, .trust-card { position: relative; }
.kid-copy .kid-kicker,
.kid-copy .kid-heading,
.kid-copy .kid-features,
.trust-card h3,
.trust-card p { position: relative; z-index: 1; }

/* จอแคบกว่า 1460px: ปิดทั้งหมด
   คอลัมน์เนื้อหากว้าง 1280 → ต้องมีริมข้างละอย่างน้อย 62(ไอคอน)+20(ระยะห่าง) = 82px
   → ต้องใช้จอ >= 1280 + 164 = 1444 ตั้ง 1460 เผื่อไว้ แคบกว่านั้นซ่อนดีกว่าปล่อยให้ไปเบียดการ์ด */
@media (max-width: 1459px) {
  .orn:not(.orn-bg) { display: none; }   /* ไอคอนหลังข้อความไม่ต้องซ่อน มันอยู่ในคอลัมน์ ไม่ได้กินริม */
}
/* คอลัมน์ "ระบบเสนอ" แคบลงเมื่อจอ <1200 หัวข้อเริ่มตัดสองบรรทัด ที่ว่างขวาหาย → ซ่อนก่อนจะไปทับ */
@media (max-width: 1329px) {
  .trust-card .orn-bg { display: none; }   /* ต่ำกว่านี้คอลัมน์เริ่มแคบลงจาก 411 → ค่า --l ที่วัดไว้ใช้ไม่ได้ */
}
/* จอเล็กจริง ๆ คอลัมน์เดียว ตัวหนังสือเต็มความกว้าง ลายน้ำจะไปกวนการอ่าน */
@media (max-width: 900px) {
  .orn-bg { display: none; }
}

/* ผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหว: อยู่นิ่งสนิท */
@media (prefers-reduced-motion: reduce) {
  .orn img { animation: none; }
  .orn { transform: none; }
}

/* ==================================================================
   7 ก.ย. 2569 — บล็อกใหม่ 2 ก้อนที่ Dear สั่งเพิ่ม
   (1) .demo-sec  ตัวอย่างผลวิเคราะห์ 3 ใบงาน (เนื้อในคัดจากระบบจริง)
   (2) .price-sec ราคา 4 แพ็ก ยกจากสไลด์ SUBSCRIPTION MODEL
   ทั้งสองก้อนใช้ token เดิมทั้งหมด ไม่มีสีใหม่ ไม่มี dark mode
   ================================================================== */

/* ---------- (1) ตัวอย่างผลวิเคราะห์ ---------- */
.demo-sec .section-head { margin-bottom:32px; }

.demo-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap:12px;
  max-width: 1000px; margin:0 auto 32px;
}
.demo-tab {
  flex: 1 1 240px;
  display: flex; flex-direction: column; align-items: flex-start; gap:2px;
  padding:14px 20px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.demo-tab:hover { border-color: var(--green); transform: translateY(-1px); }
.demo-tab-no { font-size: 14px; font-weight: 700; color: var(--green); }
.demo-tab-name { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.demo-tab.is-on {
  border-color: var(--green-deep);
  box-shadow: 0 8px 20px rgba(21, 95, 70, .14);
}
.demo-tab.is-on .demo-tab-no { color: var(--green-deep); }

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:28px;
  align-items: start;
  max-width: 1180px;
  margin:0 auto;
}

.demo-paper { margin:0; }
.demo-paper img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.demo-paper figcaption {
  margin-top:10px; font-size: 15px; color: var(--ink-soft); text-align: center;
}

.demo-card {
  min-width: 0;   /* 8 ก.ย. กันการ์ดดันล้นจอตอนมือถือ — .demo-math มีบรรทัดสมการ nowrap */
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:24px 24px 20px;
}
.demo-card-head { margin:0 0 16px; font-size: 20px; font-weight: 700; color: var(--ink); }

.demo-legend {
  list-style: none; margin:0 0 16px; padding:0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:10px;
}
.demo-legend li {
  display: flex; flex-direction: column; gap:2px;
  font-size: 13px; color: var(--ink-soft); line-height: 1.3;
}
.demo-legend b { font-size: 19px; color: var(--ink); font-weight: 700; }
.demo-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: block; margin-bottom:4px; }
.dot-ok   { background: var(--green); }
.dot-warn { background: #b8860b; }
.dot-bad  { background: #b73e38; }
.dot-grey { background: #9aa8a1; }

.demo-bar {
  margin:0 0 16px; padding:10px 14px;
  background: var(--mint); border-radius: 10px;
  font-size: 15px; color: var(--ink-soft);
}

.demo-flag {
  border: 1px solid #ead9b8;
  background: #fdf9f0;
  border-radius: 14px;
  padding:16px 16px 14px;
}
.demo-flag-top { display: flex; flex-wrap: wrap; align-items: center; gap:8px; margin-bottom:12px; }
.demo-chip {
  background: var(--gold-soft); color: var(--gold-ink);
  font-weight: 700; font-size: 14px; padding:4px 12px; border-radius: 999px;
}
.demo-tag {
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; padding:4px 12px; border-radius: 999px; color: var(--ink);
}
.demo-conf { margin-left:auto; font-size: 14px; color: var(--ink-soft); }

.demo-label { margin:0 0 4px; font-size: 14px; color: var(--ink-soft); }
.demo-body  { margin:0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink); }

.demo-quote {
  margin:0 0 14px; padding:14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 17px; line-height: 1.6; color: var(--ink);
}
.demo-quote i { font-style: normal; color: var(--ink-soft); }
.demo-quote-thin { font-size: 20px; padding:22px 16px; }

/* ---- 8 ก.ย. กล่อง "AI อ้างอิงจากงาน" ของใบงานที่ 6 เป็นสมการ 3 บรรทัด (ระบบจริงเรนเดอร์เป็น LaTeX)
        ทำด้วย CSS ล้วน ไม่โหลดไลบรารีคณิต · เศษส่วนซ้อนสองชั้นด้วย .mfrac + วงเล็บยืดด้วย .mpar ---- */
.demo-math {
  margin:0 0 14px; padding:18px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  display: grid; gap:14px; justify-items: center;
  overflow-x: auto;
}
/* 🪤 ห้ามทำ .mrow เป็น flex — ข้อความกับ <sup>/<i> จะกลายเป็น flex item คนละอัน แล้วโดน gap ดันห่าง
      ("2⁴" อ่านเป็น "2 4") ต้องเป็น block ธรรมดา ให้ระยะห่างมาจากช่องว่างใน HTML ตามปกติ */
.mrow {
  display: block; text-align: center; white-space: nowrap;
  font-size: 20px; line-height: 1.35; color: var(--ink);
}
.mrow sup { font-size: .68em; }
.mth { white-space: nowrap; }
.mfrac {
  display: inline-flex; flex-direction: column; align-items: center;
  vertical-align: middle;
  font-size: .88em; line-height: 1.25;
}
.mfrac b { font-weight: 400; padding:0 6px 2px; }
.mfrac i { font-style: normal; padding:2px 6px 0; border-top: 1.4px solid currentColor; align-self: stretch; text-align: center; }
.mpar { display: inline-flex; align-items: stretch; vertical-align: middle; gap:3px; }
.mpar::before, .mpar::after {
  content: ""; width: 7px; align-self: stretch;
  border: 1.4px solid currentColor; border-radius: 60% / 50%;
}
.mpar::before { border-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mpar::after  { border-left: 0;  border-top-left-radius: 0;  border-bottom-left-radius: 0; }

@media (max-width: 480px) {
  .mrow { font-size: 17px; }
  .demo-math { justify-items: start; }
}

.demo-draft {
  padding:14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; line-height: 1.65; color: var(--ink);
}

.demo-acts { display: flex; flex-wrap: wrap; gap:10px; margin-top:14px; }
.demo-btn {
  padding:9px 18px; border-radius: 10px; font-size: 15px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--line); color: var(--ink);
}
.demo-btn-go { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.demo-btn-no { color: var(--red-ink); border-color: #f0cfcd; }

.demo-foot { margin:16px 0 0; font-size: 15px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .demo-panel { grid-template-columns: minmax(0, 1fr); gap:20px; }   /* 🪤 ต้องเป็น minmax(0,1fr) ไม่ใช่ 1fr ไม่งั้นสมการ nowrap ดันคอลัมน์ล้นจอ */
  .demo-paper img { max-height: 520px; object-fit: cover; object-position: top; }
  .demo-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
  .demo-conf { margin-left:0; width: 100%; }
}

/* ---------- (2) ราคา ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:20px;
  max-width: 1400px;
  margin:0 auto;
  align-items: stretch;
}
.price-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding:28px 24px 26px;
  box-shadow: 0 6px 20px rgba(10, 59, 44, .07);
}
.price-badge {
  align-self: flex-start;
  margin:0 0 18px;
  padding:5px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
.price-badge-school { background: var(--gold-soft); color: var(--gold-ink); letter-spacing: 0; }

.price-num {
  margin:0 0 16px;
  font-size: clamp(38px, 3.2vw, 52px);
  font-weight: 700; line-height: 1.05; color: var(--ink);
  display: flex; align-items: baseline; flex-wrap: wrap; gap:8px;
  padding-bottom:16px;
  border-bottom: 1px solid var(--line);
}
.price-num span { font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.price-num-word { font-size: clamp(30px, 2.4vw, 40px); color: var(--green-deep); }

.price-for { margin:0 0 20px; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

.price-btn { width: 100%; margin-bottom:22px; padding:14px 18px; }
.price-btn-free   { background: var(--green); color: #fff; }
.price-btn-pro    { background: var(--green-deep); color: #fff; }
.price-btn-max    { background: #0f4634; color: #fff; }
.price-btn-school { background: #f5b83d; color: #3d2a06; }
.price-btn:hover  { filter: brightness(1.06); transform: translateY(-1px); }

.price-list { list-style: none; margin:0; padding:0; display: grid; gap:12px; }
.price-list li {
  position: relative; padding-left:30px;
  font-size: 16px; line-height: 1.5; color: var(--ink);
}
.price-list li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2341B681' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px 12px no-repeat;
}

@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* 🪤 .demo-panel ตั้ง display:grid ไว้ ทับ [hidden] ของเบราว์เซอร์ ต้องปิดเองให้ชัด */
.demo-panel[hidden] { display: none; }

/* Clear learning insights — 8 September 2026. Scoped to this section. */
.learning-insights { padding: 88px 0 64px; }
.learning-insights > .container { max-width: 1224px; }
.insights-heading { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.insights-kicker { margin: 0 0 18px; color: #c9e6d7; font-size: 16px; font-weight: 700; }
.insights-heading h2 { margin: 0; font-size: clamp(34px, 3.4vw, 52px); line-height: 1.35; letter-spacing: -.025em; color: #fff; }
.insights-intro { margin: 20px 0 0; color: #e0eee6; font-size: 18px; line-height: 1.7; text-wrap: balance; }
.insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.insight-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dceae2; border-radius: 24px; overflow: hidden; color: var(--ink); }
.insight-copy { padding: 30px 30px 24px; }
.insight-label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--green-deep); font-size: 15px; font-weight: 700; }
.insight-label svg { width: 22px; height: 22px; flex: none; }
.insight-copy h3 { margin: 0 0 12px; font-size: clamp(23px, 2.1vw, 29px); line-height: 1.45; letter-spacing: -.025em; text-wrap: balance; }
.insight-copy > p:last-child { margin: 0; color: #455e52; font-size: 17px; line-height: 1.8; }
.insight-evidence { margin: auto 20px 20px; padding: 16px; border: 1px solid #dceae2; border-radius: 14px; background: #f0f5f2; }
.insight-evidence figcaption { display: flex; align-items: start; justify-content: space-between; gap: 10px; margin-bottom: 14px; color: #455e52; font-size: 13px; line-height: 1.6; }
.insight-real { white-space: nowrap; color: var(--green-deep); font-size: 12px; font-weight: 700; }
.insight-evidence a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #dceae2; background: #fff; }
.insight-evidence a:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 4px; }
.insight-evidence img { display: block; width: 100%; height: auto; }
.insight-takeaway { margin-top: auto; padding: 19px 30px 23px; border-top: 1px solid #dceae2; background: #eef7f1; }
.insight-takeaway > span { font-size: 13px; color: #455e52; }
.insight-takeaway p { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 5px 0 0; font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--green-deep); }
.insight-person .insight-takeaway { background: #faf4e9; }
.insights-footnote { margin: 28px 0 0; text-align: center; font-size: 16px; color: #e0eee6; }
@media (max-width: 960px) {
  .learning-insights { padding: 56px 0 44px; }
  .insights-heading { margin-bottom: 28px; }
  .insights-intro { font-size: 17px; }
  .insights-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
  .insight-copy { padding: 24px; }
  .insight-evidence { margin: 0 14px 16px; padding: 12px; }
  .insight-evidence figcaption { flex-wrap: wrap; }
  .insight-takeaway { padding: 18px 24px 22px; }
  .insight-takeaway p { font-size: 19px; }
}

/* Simplified feature copy: headings and screenshots only. */
.learning-insights .insight-copy { padding: 28px 28px 20px; }
.learning-insights .insight-copy h3 { margin: 0; }
.learning-insights .insight-evidence { margin-top: 0; }
@media (max-width: 960px) {
  .learning-insights .insight-copy { padding: 24px 24px 18px; }
}

/* End the individual screenshot after its complete timeline card. */
.learning-insights .insight-person .insight-evidence img {
  aspect-ratio: 444 / 190;
  height: auto;
  object-fit: cover;
  object-position: top;
}
.learning-insights .insight-card { align-self: start; }

/* Balanced feature pair using the site's existing student avatars and 3D art. */
.learning-insights .insights-heading { margin-bottom: 36px; }
.learning-insights .insights-heading h2 { font-size: clamp(32px, 3vw, 46px); }
.learning-insights .insight-card { align-self: stretch; padding-top: 24px; }
.insight-symbol { height: 106px; display: flex; align-items: center; justify-content: center; position: relative; isolation: isolate; }
.insight-symbol::before { content: ''; position: absolute; width: 226px; height: 84px; border-radius: 50%; background: #edf4df; z-index: -1; bottom: 0; }
.insight-symbol-group img { width: 76px; height: 76px; object-fit: cover; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 5px 12px #155f4612; }
.insight-symbol-group img:nth-child(2) { width: 96px; height: 96px; z-index: 1; margin: 0 -12px; transform: translateY(-5px); }
.insight-symbol-group img:first-child { transform: rotate(-9deg); }
.insight-symbol-group img:last-child { transform: rotate(9deg); }
.insight-symbol-person::before { background: #f5ecd9; width: 180px; }
.insight-student { width: 96px; height: 96px; object-fit: cover; border: 4px solid #fff; border-radius: 50%; transform: translateX(-8px); }
.insight-magnifier { width: 70px; height: 84px; object-fit: contain; margin-left: -30px; transform: translateY(14px) rotate(12deg); }
.learning-insights .insight-copy { padding: 20px 20px 24px; text-align: center; }
.learning-insights .insight-copy h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.5; }
.learning-insights .insight-evidence { margin: 0 20px 20px; padding: 12px; }
.insight-screen-stage { aspect-ratio: 1.6; display: flex; align-items: center; }
.insight-screen-stage a { width: 100%; }
.learning-insights .insight-person .insight-evidence { background: #f6f3ed; border-color: #e9e3d8; }
@media (max-width: 960px) {
  .learning-insights .insight-copy { padding: 18px 16px 20px; }
  .learning-insights .insight-evidence { margin: 0 14px 16px; padding: 10px; }
  .learning-insights .insight-card { padding-top: 20px; }
}

/* Site audit: readable evidence, consistent availability, and mobile gutters. */
.availability-note { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 16px 0 12px; }
.demo-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-details summary, .learnly-faq summary { cursor: pointer; font-weight: 700; color: var(--green-deep); padding: 12px 0; min-height: 44px; }
.demo-details summary:focus-visible, .learnly-faq summary:focus-visible, .demo-paper a:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 4px; }
.demo-preview-note { color: var(--ink-soft); font-size: 13px; margin: 18px 0 8px; }
.demo-paper a { display: block; }
.demo-paper img { max-height: 620px; object-fit: contain; background: #eeeae2; }
.demo-card { align-self: start; }
.learnly-faq .container { max-width: 900px; }
.learnly-faq h2 { text-align: center; margin: 0 0 28px; }
.learnly-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.learnly-faq p { margin: 8px 0 16px; line-height: 1.8; color: var(--ink-soft); }
.price-btn { font-family: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .hero .hero-grid { width: 100%; padding-left: 16px; padding-right: 16px; grid-template-columns: minmax(0,1fr); }
  .hero .hero-copy { min-width: 0; width: 100%; margin-left: 0; margin-right: 0; }
  .hero .hero-title, .hero .hero-title img { width: 100%; max-width: 100%; }
  .hero .hero-sub, .hero .hero-tagline { max-width: 100%; overflow-wrap: break-word; }
  .demo-paper img { height: 230px; max-height: 230px; width: 100%; object-fit: contain; }
  .demo-paper figcaption { font-size: 13px; }
  .demo-panel { gap: 16px; }
}

.price-feature-label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; }

/* Confirmed product positioning, Classroom import, and spacious FAQ. */
.hero-proof { margin: 18px 0 0; color: var(--green-deep); }
.hero-proof strong { display: block; font-size: clamp(18px,1.7vw,24px); line-height: 1.5; }
.hero-proof strong span { font-size: 1.35em; }
.hero-proof small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.classroom-import { background: #eef6ef; }
.classroom-import .container { max-width: 1180px; }
.classroom-heading { text-align: center; margin-bottom: 36px; }
.classroom-heading h2 { font-size: clamp(28px,3vw,42px); line-height: 1.45; margin: 12px 0 0; }
.classroom-heading h2 span { color: var(--green-deep); }
.classroom-flow { display: grid; grid-template-columns: minmax(0,1fr) 140px minmax(0,1fr); align-items: center; gap: 20px; }
.classroom-flow article { align-self: stretch; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.classroom-brand { display: inline-block; font-size: 15px; font-weight: 700; color: var(--green-deep); }
.classroom-flow h3 { margin: 14px 0 20px; font-size: 23px; line-height: 1.5; }
.classroom-flow ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.classroom-flow li strong, .classroom-flow li span { display: block; }
.classroom-flow li span { color: var(--ink-soft); font-size: 15px; margin-top: 4px; line-height: 1.7; }
.classroom-direction { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--green-deep); }
.classroom-direction img { object-fit: contain; }
.classroom-direction span { font-size: 14px; }
.classroom-direction b { font-size: 38px; line-height: 1; }
.classroom-boundary { margin: 24px auto 0; text-align: center; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.learnly-faq { background: linear-gradient(120deg,#f1f7f2,#fbf8f1); }
.learnly-faq .container { max-width: 1140px; }
.faq-heading { text-align: center; margin-bottom: 42px; }
.faq-heading h2 { font-size: clamp(32px,3.4vw,48px); margin: 0 0 14px; }
.faq-heading p { margin: 0; font-size: 18px; }
.learnly-faq details { background: #fff; border: 1px solid transparent; border-radius: 18px; margin-bottom: 14px; padding: 0; }
.learnly-faq details[open] { border-color: var(--line); }
.learnly-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding: 26px 30px; font-size: 22px; line-height: 1.6; }
.learnly-faq summary::-webkit-details-marker { display: none; }
.faq-toggle { width: 22px; height: 22px; position: relative; flex: none; }
.faq-toggle::before,.faq-toggle::after { content: ''; position: absolute; background: var(--green-deep); border-radius: 2px; }
.faq-toggle::before { width: 22px; height: 2px; top: 10px; left: 0; }
.faq-toggle::after { height: 22px; width: 2px; left: 10px; top: 0; }
details[open] > summary .faq-toggle::after { display: none; }
.learnly-faq details > p { margin: 0; padding: 0 30px 26px; max-width: 940px; font-size: 17px; }
@media(max-width:760px) {
 .classroom-flow { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .classroom-direction { flex-direction: row; justify-content: center; }
 .classroom-direction img { width: 48px; height: 48px; }
 .classroom-direction b { transform: rotate(90deg); }
 .classroom-flow article { padding: 24px; }
 .learnly-faq summary { padding: 22px 20px; font-size: 18px; gap: 16px; }
 .learnly-faq details > p { padding: 0 20px 22px; font-size: 16px; }
}

/* Fit hero copy and both CTAs into a laptop's first screen. */
.hero .hero-sub { margin-bottom: 18px; }
.hero .hero-proof { margin-top: 0; }
.hero .availability-note { margin: 14px 0 10px; }
@media (min-width: 1001px) {
  .hero .hero-grid { padding: clamp(24px,5vh,56px) 0; min-height: calc(100svh - 88px); display: flex; align-items: center; }
  .hero .hero-copy { width: min(35vw,540px); max-width: 540px; margin-left: clamp(24px,3.3vw,48px); }
  .hero .hero-tagline { width: 100%; max-width: 100%; font-size: clamp(18px,1.45vw,24px); line-height: 1.5; margin: 0 0 20px; }
  .hero .hero-title { width: 100%; margin: 0 0 20px; }
  .hero .hero-title img { width: 100%; }
  .hero .hero-sub { font-size: clamp(17px,1.3vw,21px); line-height: 1.65; font-weight: 400; }
  .hero .hero-sub-brand { font-weight: 700; }
  .hero .hero-proof strong { font-size: clamp(18px,1.45vw,23px); }
  .hero .hero-cta { gap: 12px; }
  .hero .hero-cta .btn { padding: 16px 20px; font-size: 16px; }
}
@media (min-width: 1001px) and (max-height: 720px) {
  .hero .hero-grid { padding: 20px 0; }
  .hero .hero-tagline, .hero .hero-title { margin-bottom: 14px; }
  .hero .hero-title { max-width: 420px; }
  .hero .hero-sub { margin-bottom: 12px; }
}

/* Essential hero copy only; availability stays next to the trial action. */
.hero .hero-proof { margin: 24px 0 22px; }
.hero .hero-cta { align-items: center; }
.hero-soon { font-size: 12px; color: var(--ink-soft); }
@media (min-width: 1001px) {
  .hero .hero-title { margin-bottom: 0; }
  .hero .hero-cta .btn { padding: 14px 18px; }
}

/* Classroom: match section badges; emphasize the two products and the transfer. */
.classroom-import { padding: 64px 0 48px; background: var(--bg-base); }
.classroom-import .container { max-width: 1120px; }
.classroom-heading { margin-bottom: 32px; }
.classroom-heading h2 { margin: 22px 0 0; font-size: clamp(28px,2.8vw,40px); line-height: 1.4; color: var(--ink); }
.classroom-flow { grid-template-columns: minmax(0,1fr) 128px minmax(0,1fr); gap: 22px; }
.classroom-flow article { padding: 28px 30px; border-radius: 22px; }
.classroom-flow .classroom-destination { background: #edf6ef; border-color: #c7ddcf; }
.classroom-step { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 8px; }
.classroom-flow h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: clamp(24px,2.2vw,30px); line-height: 1.4; color: var(--green-deep); }
.classroom-learnly-mark { width: 30px; height: 30px; flex: none; }
.classroom-flow li strong { font-size: 18px; line-height: 1.5; color: var(--ink); }
.classroom-flow li span { font-size: 15px; line-height: 1.65; color: #496354; }
.classroom-direction img { width: 108px; height: 108px; }
.classroom-direction span { font-size: 13px; color: var(--ink-soft); }
.classroom-direction b { font-size: 42px; }
.classroom-boundary { margin-top: 24px; font-size: 14px; line-height: 1.75; font-weight: 400; }
@media (max-width:760px) {
  .classroom-import { padding: 48px 0 36px; }
  .classroom-flow { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .classroom-flow article { padding: 24px; }
  .classroom-direction img { width: 52px; height: 52px; }
  .classroom-flow h3 { margin-bottom: 20px; padding-bottom: 16px; }
}

/* Icons follow their own heading rather than the edge of the card. */
.trust-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.trust-heading { display: flex; align-items: center; justify-content: flex-start; gap: 10px; max-width: 100%; }
.trust-heading h3 { margin: 0; min-width: 0; }
.trust-icon { display: block; flex: 0 0 48px; width: 48px; opacity: .65; }
.trust-icon img { display: block; width: 100%; height: 48px; object-fit: contain; }
@media (max-width: 600px) {
  .trust-heading { gap: 8px; }
  .trust-icon { flex-basis: 40px; width: 40px; }
  .trust-icon img { height: 40px; }
}
