/* Mr.Econ — เว็บเวอร์ชันรวม: หน้าตาจาก Design A "Pop Sticker" + โครงหน้าคอร์ส/หนังสือจาก Design B
   สดใส มุมโค้ง การ์ดแบบสติกเกอร์ เงาออฟเซ็ต ลูกเล่นรูปเศรษฐศาสตร์ลอยเบา ๆ */

:root {
  --navy: #22395d;
  --navy-2: #2f4c78;
  --sky: #8ab8ee;
  --sky-soft: #e4f0fd;
  --yellow: #f6c945;
  --yellow-soft: #fff4cc;
  --teal: #4fa59b;
  --teal-soft: #dff2ef;
  --coral: #ef7d62;
  --orange: #b8430f; /* ปุ่มสมัคร/ติดต่อ ให้ตรงกับปุ่มส้มบนเพจ FB (contrast กับตัวอักษรขาว 5.5:1) */
  --cream: #fffaf0;
  --ink: #22395d;
  --muted: #5b6b85;
  --line: #22395d;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 5px 5px 0 var(--navy);
  --shadow-sm: 3px 3px 0 var(--navy);
  --font-head: "Kanit", system-ui, sans-serif;
  --font-body: "Anuphan", system-ui, sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Prototype legend & content labels ---------- */
.proto-bar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.proto-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; }
.proto-bar b { color: var(--yellow); font-weight: 600; }
.proto-bar .tag { transform: none; }
.proto-bar a { color: var(--yellow); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
  vertical-align: middle; white-space: nowrap;
}
.tag-draft { background: var(--yellow-soft); color: #7a5a00; border: 1.5px solid #e6b72e; }
.tag-pending { background: #fff; color: var(--muted); border: 1.5px dashed #9aa7bb; }
.tag-real { background: var(--teal-soft); color: #22665e; border: 1.5px solid var(--teal); }
body.hide-tags .tag:not(.keep) { display: none; }

.pending-box {
  border: 2px dashed #a9b5c8;
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 15px;
  background: rgba(255,255,255,.6);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,250,240,.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--navy); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: var(--sky); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: .3px; }
.brand-text span { font-family: var(--font-head); font-size: 13px; color: var(--teal); font-weight: 500; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav-links a:hover { background: var(--sky-soft); }
.nav-links a.active { background: var(--navy); color: #fff; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  border: 2px solid var(--navy); background: var(--yellow); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; border-radius: 2px; transition: .2s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 17px;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid var(--navy); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--yellow); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--navy); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -120px;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--sky-soft), transparent 70%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); border: 2px solid var(--navy); border-radius: 999px;
  padding: 6px 16px; font-family: var(--font-head); font-weight: 500; font-size: 15px;
  box-shadow: var(--shadow-sm); transform: rotate(-2deg);
}
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 700; margin: 22px 0 18px; letter-spacing: -.5px; }
.hl {
  position: relative; display: inline-block; z-index: 0; color: var(--navy);
}
.hl::after {
  content: ""; position: absolute; left: -4px; right: -6px; bottom: .1em; height: .38em;
  background: var(--yellow); border-radius: 8px; z-index: -1; transform: rotate(-1.5deg);
  transform-origin: left; animation: swipe .9s .4s cubic-bezier(.6,0,.2,1) both;
}
@keyframes swipe { from { transform: scaleX(0) rotate(-1.5deg); } to { transform: scaleX(1) rotate(-1.5deg); } }
.hero .lead { font-size: 20px; color: var(--navy-2); max-width: 30em; }
.hero .for { margin-top: 12px; color: var(--muted); font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%; }
.hero-disc {
  position: absolute; inset: 8%; border-radius: 50%;
  background: var(--sky); border: 3px solid var(--navy); box-shadow: 10px 10px 0 var(--navy);
  overflow: hidden;
}
.hero-disc img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring {
  position: absolute; inset: 0; animation: spin 40s linear infinite;
}
.hero-ring text { font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 3px; fill: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

.float { position: absolute; animation: bob 5s ease-in-out infinite; }
.float.f1 { top: 4%; left: -4%; animation-delay: -1s; }
.float.f2 { bottom: 6%; right: -6%; animation-delay: -2.5s; }
.float.f3 { bottom: 12%; left: -8%; animation-delay: -3.5s; }
.float.f4 { top: 10%; right: -2%; animation-delay: -.5s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-10px) rotate(var(--r,0deg)); } }
.chip-card {
  background: #fff; border: 2px solid var(--navy); border-radius: 16px; box-shadow: var(--shadow-sm);
  padding: 10px 14px; font-family: var(--font-head); font-size: 15px; font-weight: 500; line-height: 1.3;
}
.chip-card small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--muted); }
.chip-card .big { font-size: 26px; font-weight: 700; color: var(--navy); }
.mini-chart { width: 120px; height: 90px; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy); color: #fff; border-block: 3px solid var(--navy);
  overflow: hidden; transform: rotate(-1.2deg); margin: -20px -10px 0; position: relative; z-index: 2;
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; padding: 14px 0; }
.marquee span { font-family: var(--font-head); font-size: 20px; font-weight: 500; white-space: nowrap; padding: 0 22px; }
.marquee span::after { content: "✦"; color: var(--yellow); margin-left: 44px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 15px;
  color: var(--teal); letter-spacing: .5px; margin-bottom: 10px;
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--teal); border-radius: 3px; vertical-align: middle; margin-right: 8px; }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 26em; }

/* Experience */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.stat {
  background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: transform .2s;
}
.stat:hover { transform: translateY(-4px) rotate(-.5deg); }
.stat .ico {
  flex: none; width: 54px; height: 54px; border-radius: 16px; border: 2px solid var(--navy);
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 22px;
}
.stat:nth-child(1) .ico { background: var(--yellow); }
.stat:nth-child(2) .ico { background: var(--sky); }
.stat:nth-child(3) .ico { background: var(--teal-soft); }
.stat h3 { font-size: 20px; margin-bottom: 4px; }
.stat p { color: var(--muted); font-size: 15px; }

/* About */
.about { background: var(--sky-soft); border-radius: 48px; margin: 0 16px; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.photo-frame {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  border: 3px solid var(--navy); background:
    repeating-linear-gradient(45deg, #fff 0 14px, #f3f7fd 14px 28px);
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 2px var(--navy);
  display: grid; place-items: center; text-align: center; padding: 24px; transform: rotate(-2deg);
}
.photo-frame .ph-icon { width: 92px; height: 92px; margin: 0 auto 12px; opacity: .55; }
.photo-frame p { color: var(--muted); font-size: 15px; }
.tape {
  position: absolute; top: -16px; left: 50%; width: 120px; height: 32px; transform: translateX(-50%) rotate(3deg);
  background: rgba(246,201,69,.75); border-radius: 4px;
}
.about-text .h2 { margin-bottom: 18px; }
.about-text > p { font-size: 18px; margin-bottom: 18px; }
.quote {
  position: relative; background: #fff; border: 2px solid var(--navy); border-radius: 24px 24px 24px 6px;
  padding: 22px 26px; font-family: var(--font-head); font-size: 24px; font-weight: 500; line-height: 1.45;
  box-shadow: var(--shadow-sm); margin: 26px 0;
}
.quote::before { content: "“"; position: absolute; top: -26px; left: 18px; font-size: 72px; color: var(--yellow); line-height: 1; -webkit-text-stroke: 2px var(--navy); }
.quote .tag { position: absolute; top: -12px; right: 18px; }
.pending-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.path-card {
  position: relative; display: block; text-decoration: none; overflow: hidden;
  border: 3px solid var(--navy); border-radius: var(--radius-lg); padding: 36px 36px 32px;
  box-shadow: 8px 8px 0 var(--navy); transition: transform .2s, box-shadow .2s;
  min-height: 360px;
}
.path-card:hover { transform: translate(-4px,-4px) rotate(-.6deg); box-shadow: 12px 12px 0 var(--navy); }
.path-card.course { background: var(--sky); }
.path-card.book { background: var(--yellow); }
.path-card .label {
  display: inline-block; background: #fff; border: 2px solid var(--navy); border-radius: 999px;
  padding: 4px 14px; font-family: var(--font-head); font-size: 14px; font-weight: 500;
}
.path-card h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 18px 0 10px; max-width: 12em; }
.path-card p { max-width: min(20em, 62%); font-size: 17px; }
.path-card .go {
  position: absolute; left: 36px; bottom: 32px;
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500;
}
.path-card .go i {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 20px; transition: transform .2s;
}
.path-card:hover .go i { transform: rotate(-45deg); }
.path-card .art { position: absolute; right: -10px; bottom: -10px; width: 46%; max-width: 230px; transition: transform .3s; }
.path-card:hover .art { transform: translateY(-6px) rotate(3deg); }

/* Expandable "read more" */
.more { margin-top: 10px; }
.more summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; color: var(--navy); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy); display: grid; place-items: center; transition: transform .2s; line-height: 1; }
.more[open] summary::after { transform: rotate(45deg); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-side .bubble {
  margin-top: 26px; background: var(--teal-soft); border: 2px solid var(--navy); border-radius: 24px 24px 6px 24px;
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 2px solid var(--navy); border-radius: 20px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.faq-item[open] { box-shadow: 5px 5px 0 var(--yellow), 5px 5px 0 2px var(--navy); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  font-family: var(--font-head); font-weight: 500; font-size: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--sky-soft); border: 2px solid var(--navy); display: grid; place-items: center; font-size: 20px; line-height: 1; transition: transform .25s, background .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq-item .ans { padding: 0 22px 20px; color: var(--navy-2); }
.faq-item .ans .tag { margin-top: 10px; }

/* CTA + Footer */
.cta {
  background: var(--yellow); border: 3px solid var(--navy); border-radius: 40px; box-shadow: 10px 10px 0 var(--navy);
  padding: 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.cta img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--navy); background: var(--sky); }
.cta h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; }
.cta p { margin-top: 6px; }
.site-footer { padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 40px; border-top: 2px solid var(--navy); margin-top: 72px; }
.foot-grid h4 { font-size: 17px; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { text-decoration: none; color: var(--navy-2); }
.foot-grid a:hover { text-decoration: underline; }
.copy { margin-top: 32px; font-size: 14px; color: var(--muted); }

/* ---------- Inner page header ---------- */
.page-hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.crumb { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--teal); text-decoration: none; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 700; margin: 16px 0 16px; }
.page-hero .lead { font-size: 19px; color: var(--navy-2); max-width: 30em; }
.page-hero-art { justify-self: center; width: 100%; max-width: 360px; }

.notice {
  display: flex; gap: 16px; align-items: flex-start; background: var(--yellow-soft); border: 2px solid var(--navy);
  border-radius: 20px; padding: 20px 24px; margin-top: 40px;
}
.notice .n-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--navy); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; }

/* Option buttons (shared by price calculator) */
.q { margin-bottom: 22px; }
.q p { font-family: var(--font-head); font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  font-family: var(--font-body); font-size: 16px; padding: 10px 18px; border-radius: 999px;
  border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; transition: .15s;
}
.opt:hover { background: rgba(255,255,255,.12); }
.opt.on { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

.next-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; }

@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.btn-sm { padding: 9px 18px; font-size: 15px; }

/* ---------- Courses: two ways to learn ---------- */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ticket {
  position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: #fff; border: 3px solid var(--navy); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--navy);
  transition: transform .2s, box-shadow .2s;
}
.ticket:hover { transform: translate(-3px,-3px) rotate(-.4deg); box-shadow: 11px 11px 0 var(--navy); }
.ticket .t-head { padding: 30px 32px 26px; position: relative; }
.ticket.tutor .t-head { background: var(--sky); }
.ticket.join .t-head { background: var(--yellow); }
.ticket .no {
  display: inline-block; background: #fff; border: 2px solid var(--navy); border-radius: 999px;
  padding: 3px 12px; font-family: var(--font-head); font-size: 14px; font-weight: 500;
}
.ticket h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; margin-top: 12px; padding-right: 96px; }
.ticket .t-head svg { position: absolute; right: 24px; top: 22px; width: 84px; }
.ticket .perf { position: relative; height: 0; border-top: 3px dashed var(--navy); margin: 0 26px; }
.ticket .perf::before, .ticket .perf::after {
  content: ""; position: absolute; top: -17px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--navy);
}
.ticket .perf::before { left: -45px; }
.ticket .perf::after { right: -45px; }
.ticket .t-body { padding: 24px 32px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ticket .t-body > p { color: var(--navy-2); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft);
  border: 2px solid var(--navy); display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 3px;
}
.ticket .go { margin-top: auto; padding-top: 6px; font-family: var(--font-head); font-weight: 500; display: inline-flex; gap: 10px; align-items: center; }
.ticket .go i {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-style: normal; transition: transform .2s;
}
.ticket:hover .go i { transform: translateX(4px); }

/* ---------- Tutoring: modes, subjects, calculator, conditions ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.mode-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.mode .m-ico {
  flex: none; width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--navy);
  display: grid; place-items: center; font-size: 26px;
}
.mode.online .m-ico { background: var(--sky); }
.mode.onsite .m-ico { background: var(--teal-soft); }
.mode h3 { font-size: 24px; font-weight: 700; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.facts dt { font-family: var(--font-head); font-weight: 500; color: var(--teal); }
.facts dd { margin: 0; }

.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.level { border: 2px solid var(--navy); border-radius: var(--radius); padding: 22px 24px; }
.level.basic { background: var(--sky-soft); }
.level.adv { background: var(--yellow-soft); }
.level { display: flex; flex-direction: column; }
.level-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1.5px dashed rgba(34,57,93,.3); }
.level h4 { font-size: 20px; font-weight: 600; }
.level-tag { flex: none; background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 2px 10px; font-family: var(--font-head); font-size: 13px; font-weight: 500; }
.level .check-list li::before { background: #fff; }
.level-note { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--muted); }

.calc {
  background: var(--navy); color: #fff; border-radius: 40px; padding: 48px; margin-top: 48px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
.calc .eyebrow { color: var(--yellow); }
.calc .eyebrow::before { background: var(--yellow); }
.calc h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 6px; }
.calc .hint { color: #c9d6ea; margin-bottom: 24px; }
.calc .q p { font-size: 17px; }
.calc-out {
  background: #fff; color: var(--navy); border: 3px solid var(--yellow); border-radius: 28px;
  padding: 30px 26px; text-align: center;
}
.calc-out .what { font-family: var(--font-head); font-weight: 500; color: var(--teal); }
.calc-out .total { font-family: var(--font-head); font-size: clamp(44px, 5vw, 60px); font-weight: 700; line-height: 1.1; margin: 6px 0; }
.calc-out .total small { font-size: 20px; font-weight: 500; }
.calc-out .per { color: var(--muted); }
.calc-out .group { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #c9d3e2; font-size: 15px; }
.calc-out .tag { margin-top: 14px; }
.calc-out.bump { animation: pop .3s cubic-bezier(.3,1.5,.6,1); }

.checklist {
  background: #fff; border: 3px solid var(--navy); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--teal);
  padding: 40px 44px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; margin-top: 48px;
}
.checklist ol { list-style: none; counter-reset: c; margin: 0; padding: 0; display: grid; }
.checklist li {
  counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start;
  padding: 14px 0; border-bottom: 1.5px dashed #b9c4d6;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: counter(c, decimal-leading-zero); font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--teal); }
.checklist li b { display: block; font-family: var(--font-head); font-weight: 500; }
.checklist li span { color: var(--navy-2); font-size: 16px; }

/* ---------- Course calendar ---------- */
.cal-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.cal { background: #fff; border: 3px solid var(--navy); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--navy); padding: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal-head h3 { font-size: 24px; font-weight: 700; text-align: center; }
.cal-nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--navy); background: var(--yellow);
  box-shadow: var(--shadow-sm); cursor: pointer; font-family: var(--font-head); font-size: 18px; color: var(--navy);
  transition: transform .15s;
}
.cal-nav:hover:not(:disabled) { transform: translate(-1px,-1px); }
.cal-nav:disabled { opacity: .3; cursor: default; box-shadow: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-family: var(--font-head); font-size: 14px; color: var(--muted); padding: 2px 0 4px; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; border-radius: 14px; border: 1.5px solid #dbe3ef; background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: var(--font-head); font-size: 16px; color: var(--navy); padding: 0;
}
.cal-day.empty { border: 0; background: transparent; }
.cal-day.past { color: #aab4c4; }
.cal-day.today { border: 2px solid var(--navy); }
.cal-day.today::after { content: "วันนี้"; position: absolute; bottom: 3px; font-size: 10px; font-family: var(--font-body); color: var(--muted); }
.cal-day.has { background: var(--c); border: 2px solid var(--navy); font-weight: 600; cursor: pointer; transition: transform .15s, opacity .2s; }
.cal-day.has:hover { transform: translateY(-2px); }
.cal-day.has.multi { background: linear-gradient(135deg, var(--c) 50%, var(--c2) 50%); }
.cal-day.dim { opacity: .3; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c); border: 2px solid var(--navy); }
.cal-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

.month-list { display: grid; gap: 20px; }
.month-list > h3 { font-size: 20px; }
.c-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.c-card.on { box-shadow: 6px 6px 0 var(--navy); transform: translate(-2px,-2px); }
.c-top { background: var(--c); padding: 18px 22px; border-bottom: 2px solid var(--navy); }
.c-top .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.c-no { background: #fff; border: 2px solid var(--navy); border-radius: 999px; padding: 2px 10px; font-family: var(--font-head); font-size: 14px; font-weight: 500; }
.status { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; border: 2px solid var(--navy); background: #fff; white-space: nowrap; }
.status.open { background: var(--teal); color: #fff; }
.status.soon { background: var(--yellow-soft); }
.status.closed { background: #eef1f6; color: var(--muted); }
.c-top h4 { font-size: 21px; font-weight: 600; margin-top: 10px; }
.c-top .en { font-size: 14px; color: var(--navy-2); }
.c-body { padding: 18px 22px 22px; display: grid; gap: 14px; }
.c-body .facts { font-size: 15px; gap: 6px 14px; }
.c-price { font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1.2; }
.c-price small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.c-price .bundle { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--navy-2); margin: 2px 0 0; }
.c-body .more ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.c-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.empty-month { border: 2px dashed #a9b5c8; border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: rgba(255,255,255,.6); }

/* ---------- Books: shelf + detail tabs ---------- */
.shelf-wrap { background: #fff; border: 3px solid var(--navy); border-radius: var(--radius-lg); box-shadow: 8px 8px 0 var(--navy); padding: 36px 40px 0; overflow: hidden; }
.shelf-hint { font-family: var(--font-head); font-weight: 500; color: var(--teal); margin-bottom: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shelf { display: flex; align-items: flex-end; gap: 14px; min-height: 290px; padding: 24px 12px 0; overflow-x: auto; overflow-y: hidden; }
.bk {
  flex: none; position: relative; width: 74px; border: 2.5px solid var(--navy); border-bottom: 0; border-radius: 8px 8px 2px 2px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; padding: 18px 0; color: var(--navy);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1);
}
.bk::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); }
.bk:hover, .bk.on { transform: translateY(-18px); }
.bk.on { box-shadow: 0 0 0 4px var(--yellow); }
.bk.b1 { height: 250px; width: 90px; background: var(--navy); color: #fff; }
.bk.b2 { height: 210px; background: var(--sky); }
.bk.b3 { height: 232px; background: var(--yellow); }
.bk.b4 { height: 196px; background: var(--teal-soft); }
.bk.lean { transform: rotate(8deg); transform-origin: bottom left; margin-left: 12px; }
.bk.lean:hover, .bk.lean.on { transform: rotate(8deg) translateY(-18px); }
.shelf-plant { margin-left: auto; flex: none; width: 90px; }
.shelf-plank { height: 22px; background: var(--navy); margin: 0 -40px; }

.book-detail { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; margin-top: 56px; }
.cover-mock {
  position: relative; aspect-ratio: 3 / 4.2; max-width: 320px; width: 100%; justify-self: center;
  border: 3px solid var(--navy); border-left-width: 14px; border-radius: 6px 18px 18px 6px;
  background: var(--navy); color: #fff; padding: 22% 14%; display: flex; flex-direction: column;
  box-shadow: 10px 10px 0 var(--yellow), 10px 10px 0 3px var(--navy); transition: background .3s, color .3s;
}
.cover-mock small { font-size: 11px; letter-spacing: 2px; opacity: .8; }
.cover-mock b { font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1.25; margin-top: 10px; }
.cover-mock img { width: 42%; margin-top: auto; border-radius: 50%; background: var(--sky); border: 2px solid currentColor; }
.cover-mock .tag { position: absolute; top: -14px; right: -12px; }
.cover-mock.has-img { padding: 0; aspect-ratio: auto; border-left-width: 3px; border-radius: 6px 14px 14px 6px; background: #fff; overflow: hidden; }
.cover-mock.has-img img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; background: none; }
.book-sub { color: var(--navy-2); margin-top: 8px; }
.book-facts { margin-top: 14px; font-size: 15px; }
.tab-panel ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.book-price { font-family: var(--font-head); font-size: 22px; color: var(--navy); }
.buy-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.book-highlights:not(:empty) { margin-top: 20px; padding: 18px 20px; background: var(--yellow-soft); border: 2px solid var(--navy); border-radius: var(--radius); }
.book-highlights h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.book-highlights .check-list { gap: 8px; }
.buy-actions { gap: 12px; }
.buy-actions .btn { font-size: 17px; font-weight: 600; letter-spacing: .2px; padding: 12px 22px; }
.bk { max-height: 260px; overflow: hidden; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.tab-btn {
  font-family: var(--font-head); font-size: 16px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--navy); background: #fff; color: var(--navy); transition: .15s;
}
.tab-btn:hover { background: var(--sky-soft); }
.tab-btn.on { background: var(--navy); color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.tab-panel { display: none; margin-top: 18px; padding: 22px 24px; border: 2px solid var(--navy); border-radius: var(--radius); background: #fff; }
.tab-panel.on { display: block; animation: pop .3s cubic-bezier(.3,1.5,.6,1); }
.tab-panel .tag { margin-top: 10px; }

/* ---------- Home: three ways to learn (live / video / book) ---------- */
.paths { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.path-card { padding: 30px 28px 28px; }
.path-card h3 { font-size: clamp(22px, 2.2vw, 28px); }
.path-card p { max-width: 100%; padding-right: 0; margin-bottom: 120px; }
.path-card .go { left: 28px; bottom: 28px; }
.path-card .art { width: 44%; max-width: 170px; }
.path-card.video { background: var(--teal-soft); }
.path-card.soon { cursor: default; }
.path-card.soon:hover { transform: none; box-shadow: 4px 4px 0 var(--navy); }
.path-card.soon:hover .art { transform: none; }
.path-card.soon .go i { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.soon-badge {
  position: absolute; top: 26px; right: 24px; transform: rotate(4deg);
  background: var(--orange); color: #fff; border-radius: 999px; padding: 3px 12px;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
}

/* ---------- Home: why Mr.Econ (reasons + proof) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; }
.why-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.why-card h3::before { content: ""; display: block; width: 32px; height: 6px; border-radius: 3px; background: var(--yellow); margin-bottom: 14px; }
.why-card p { color: var(--navy-2); font-size: 16px; }
.stat .ico.wide { width: 84px; padding: 0; }
.stats-sub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.stat-sub { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border: 1.5px dashed #9aa7bb; border-radius: var(--radius); background: rgba(255,255,255,.6); }
.stat-sub b { flex: none; width: 84px; font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--teal); text-align: center; }
.stat-sub h3 { font-size: 17px; font-weight: 600; }
.stat-sub p { font-size: 15px; color: var(--muted); }

/* ---------- About: instructor photo + bio ---------- */
.photo-frame.has-photo { padding: 0; margin: 0; display: block; background: var(--sky-soft); }
.photo-frame.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 3px); }
.photo-frame.has-photo .tape { z-index: 1; }
.photo-frame figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border: 2px solid var(--navy); border-radius: 16px;
  padding: 10px 14px; font-size: 14px; color: var(--muted); text-align: left; box-shadow: var(--shadow-sm);
}
.photo-frame figcaption b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); }
.photo-frame .photo-tag { position: absolute; top: 14px; right: 14px; }
.bio { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 4px 0 0; padding: 18px 20px; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); }
.bio dt { font-family: var(--font-head); font-weight: 500; color: var(--teal); }
.bio dd { margin: 0; min-width: 0; }
.bio ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.team-slide .bio { grid-template-columns: minmax(0, 6.5em) 1fr; }
.team-slide .photo-frame { width: 100%; align-self: start; }
.bio-toggle { display: none; }
.bio .subjects { margin: 0; gap: 6px; }
.bio .subjects span { font-size: 14px; padding: 3px 11px; box-shadow: none; background: var(--sky-soft); }
.bio-note { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- About: instructor carousel (swipe / arrows) ---------- */
.team-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.team-head > div:first-child { max-width: 36em; }
.team-head .h2 { margin-bottom: 12px; }
.team-head p { font-size: 18px; }
.team-nav { display: flex; align-items: center; gap: 12px; }
.team-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy); background: var(--yellow); color: var(--navy);
  box-shadow: var(--shadow-sm); cursor: pointer; font-family: var(--font-head); font-size: 18px; transition: transform .15s;
}
.team-btn:hover:not(:disabled) { transform: translate(-1px,-1px); }
.team-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.team-count { font-family: var(--font-head); font-weight: 500; min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }
.team-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 32px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 18px 12px 16px 4px; margin: -18px -12px 0 -4px;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 12px; }
.team-slide { scroll-snap-align: start; min-width: 0; }
.team-name { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.team-role { color: var(--teal); font-family: var(--font-head); font-weight: 500; margin: 4px 0 16px; }
.team-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.team-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 2px solid var(--navy); background: #fff; cursor: pointer; }
.team-dots button.on { width: 28px; border-radius: 999px; background: var(--navy); }

/* ---------- Sign-up button (orange, matches FB posts) ---------- */
.btn-cta { background: var(--orange); color: #fff; font-weight: 600; box-shadow: 4px 4px 0 var(--navy); }
.btn-cta:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--navy); }
.signature { margin-top: 18px; font-family: var(--font-head); font-weight: 500; font-style: italic; color: var(--navy-2); }
.signature::before { content: "— "; color: var(--orange); }

/* ---------- Home: proof from the FB page ---------- */
.stat .ico.wide { width: auto; padding: 0 12px; font-size: 20px; }
.stats-note { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: right; }

/* ---------- Home: economics through the news ---------- */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card {
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow); }
.news-cover {
  position: relative; aspect-ratio: 4 / 3; background: var(--navy); color: #fff; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.news-cover .topic { align-self: flex-start; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 2px 10px; font-family: var(--font-head); font-size: 13px; font-weight: 500; }
.news-cover .fig { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.05; }
.news-cover .fig small { display: block; font-size: 14px; font-weight: 500; color: #c9d6ea; margin-top: 6px; }
.news-cover img.badge { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--sky); }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.news-body p { font-size: 14px; color: var(--muted); }
.news-body .read { margin-top: auto; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--orange); }
.news-card.riddle .news-cover { background-color: var(--yellow); color: var(--navy); background-image: linear-gradient(rgba(34,57,93,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(34,57,93,.08) 1px, transparent 1px); }
.news-card.riddle .news-cover .topic { background: var(--navy); color: #fff; }
.news-card.riddle .news-cover .fig small { color: var(--navy-2); }
.riddle-ans summary { cursor: pointer; font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--orange); }
.riddle-ans p { margin-top: 6px; color: var(--navy); }

/* ---------- Home: interactive supply–demand chart ---------- */
.lab { display: grid; grid-template-columns: 1.05fr .95fr; border: 3px solid var(--navy); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 10px 10px 0 var(--teal); background: #fff; }
.lab-text { padding: 44px 44px 36px; }
.lab-text h3 { font-size: 26px; font-weight: 600; margin: 10px 0 16px; }
.lab-text p { margin-bottom: 14px; }
.lab-chart { background: var(--navy); color: #fff; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.lab-chart .eyebrow { color: var(--yellow); margin: 0; }
.lab-chart .eyebrow::before { background: var(--yellow); }
.lab-chart svg { width: 100%; height: auto; border-radius: 18px; background: rgba(255,255,255,.04); }
.lab-hint { margin: -6px 0 0; font-size: 14px; color: #c9d6ea; }

/* inflation lab: left column */
.lab-text h3 { margin-top: 10px; }
.lab-text h4 { font-size: 19px; font-weight: 600; margin: 22px 0 12px; }
.lab-callout { background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; padding: 12px 16px; font-weight: 500; }
.lab-mech { display: grid; gap: 12px; }
.mech { border: 2px solid var(--navy); border-radius: 16px; padding: 14px 16px; }
.mech.demand { background: #fff8e1; }
.mech.cost { background: var(--sky-soft); }
.mech b { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 4px; }
.mech p { margin: 0; font-size: 15px; color: var(--navy-2); }
.lab-try { margin-top: 18px; font-family: var(--font-head); font-weight: 500; color: var(--teal); }
.lab-glossary dl { margin: 12px 0 0; display: grid; gap: 8px; font-size: 15px; }
.lab-glossary dt { font-family: var(--font-head); font-weight: 600; }
.lab-glossary dd { margin: 0; color: var(--navy-2); }

/* inflation lab: graph (drawn by script.js) */
.lab-graph text { font-family: var(--font-head); }
.lab-graph .lg-axis { fill: #a9bcd8; font-size: 12px; }
.lab-graph .lg-shift, .lab-graph .lg-ghost { fill: none; stroke-width: 4; stroke-linecap: round; }
.lab-graph .lg-shift { transition: transform .45s cubic-bezier(.3,.8,.3,1); }
.lab-graph path.lg-ghost { stroke-width: 2.5; stroke-dasharray: 6 6; }
.lab-graph .lg-ghost { opacity: 0; transition: opacity .3s; }
.lab-graph.show-ad-ghost .lg-ad-ghost, .lab-graph.show-sras-ghost .lg-sras-ghost { opacity: .45; }
.lab-graph .lg-label { font-size: 15px; font-weight: 600; stroke: none; }
.lab-graph .lg-guide { fill: none; stroke: #c9d6ea; stroke-width: 1.5; stroke-dasharray: 4 4; }
.lab-graph .lg-tick { fill: #c9d6ea; font-size: 12px; }
.lab-graph .lg-new { fill: #fff; font-weight: 700; }
.lab-graph .lg-point { fill: #ef7d62; stroke: #fff; stroke-width: 2.5; }
.lab-graph .lg-eq { fill: #fff; font-size: 12px; font-weight: 600; }
.lab-graph .lg-up { fill: var(--yellow); font-size: 11px; font-weight: 600; }
.lab-graph .lg-arrow { stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .3s .2s; }
.lab-graph.show-ad-ghost .lg-arrow-ad, .lab-graph.show-sras-ghost .lg-arrow-sras { opacity: .9; }
.lab-graph .lg-e0 { transition: opacity .3s; }
.lab-graph.is-shifted .lg-e0 { opacity: .45; }
.lab-graph .lg-e1 { opacity: 0; transition: opacity .35s .25s; }
.lab-graph.is-shifted .lg-e1 { opacity: 1; }
.lab-btn[aria-pressed="true"]::before { content: "✓ "; }
.lab-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* inflation lab: text under the graph */
.lab-chart .lab-out { min-height: 300px; }
.lab-out h4 { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.lab-out p { margin: 0 0 10px; }
.lab-out .mech-badge { display: inline-block; background: var(--yellow); color: var(--navy); border-radius: 999px; padding: 2px 12px; font-family: var(--font-head); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.lab-out .lab-ex b { color: #fff; }
.lab-out .lab-sum { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.3); color: var(--yellow); font-family: var(--font-head); font-weight: 500; }
.lab-out .more summary { color: #fff; }
.lab-out .more summary::after { color: var(--navy); }
.lab-out .more p { margin-top: 8px; }

/* inflation lab: summary + review question */
.lab-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 28px; }
.lab-foot h4 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.lab-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.lab-quiz { background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.lab-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.lab-btn {
  font-family: var(--font-body); font-size: 15px; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); transition: .15s;
}
.lab-btn:hover { border-color: #fff; }
.lab-btn.on { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.lab-out { min-height: 52px; font-size: 15px; color: #d6e2f3; }
.lab-out b { color: var(--yellow); font-weight: 600; }

/* ---------- Calmer cards: thinner borders and shadows on content; playfulness stays in the hero and buttons ---------- */
body { --shadow: 3px 3px 0 rgba(34,57,93,.9); --shadow-sm: 2px 2px 0 rgba(34,57,93,.9); }
:is(.path-card, .ticket, .cal, .shelf-wrap, .lab, .checklist, .faq-item[open]) { box-shadow: 4px 4px 0 var(--navy); }
:is(.path-card, .ticket, .cal, .shelf-wrap, .lab, .checklist) { border-width: 2px; }
:is(.path-card:hover, .ticket:hover, .stat:hover) { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--navy); }
:is(.sticker, .photo-frame) { transform: none; }
.photo-frame { box-shadow: 6px 6px 0 var(--sky-soft), 6px 6px 0 2px var(--navy); }
.marquee { transform: none; margin-top: 0; }
.marquee-track { animation-duration: 60s; }
.hl::after { transform: none; animation: none; height: .3em; opacity: .85; }
:is(.cta, .calc) { border-radius: var(--radius-lg); }
.cta { box-shadow: 4px 4px 0 var(--navy); border-width: 2px; }
.about { border-radius: var(--radius-lg); }
.section { padding-block: 80px; }

/* ---------- Reveal ---------- */
.reveal { transform: translateY(16px); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .faq-grid, .page-hero-grid,
  .tickets, .modes, .levels, .calc, .checklist, .cal-layout, .book-detail, .lab { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; order: -1; }
  .page-hero-art { max-width: 260px; order: -1; }
  .stats, .paths { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .about { margin: 0 8px; border-radius: 32px; }
  .photo-frame { max-width: 360px; margin-inline: auto; width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 66px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 2px solid var(--navy); padding: 12px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 17px; }
  .section { padding: 68px 0; }
  .hero { padding: 32px 0 64px; }
  .hero .lead { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .float.f1 { left: 0; } .float.f2 { right: 0; } .float.f3 { left: 0; } .float.f4 { right: 0; }
  .chip-card { font-size: 13px; padding: 8px 10px; }
  .chip-card .big { font-size: 20px; }
  .mini-chart { width: 90px; height: 68px; }
  .path-card { padding: 28px 24px; min-height: 340px; }
  .path-card .go { left: 24px; bottom: 26px; }
  .quote { font-size: 20px; }
  .marquee span { font-size: 17px; }
  .ticket .t-head, .ticket .t-body { padding-left: 22px; padding-right: 22px; }
  .ticket .t-head svg { width: 60px; right: 16px; top: 16px; }
  .ticket h3 { padding-right: 64px; }
  .ticket .perf { margin: 0 16px; }
  .ticket .perf::before { left: -35px; }
  .ticket .perf::after { right: -35px; }
  .calc { padding: 32px 20px; border-radius: 28px; }
  .news, .stats-sub { grid-template-columns: 1fr; }
  .stat-sub b { width: 64px; font-size: 20px; }
  .lab-text, .lab-chart { padding: 28px 20px; }
  .lab-foot { grid-template-columns: 1fr; }
  .lab-chart .lab-out { min-height: 410px; }
  .stats-note { text-align: left; }
  .bio, .team-slide .bio { grid-template-columns: 1fr; gap: 2px; }
  .team-slide.collapsible:not(.open) .bio > :nth-child(n+7),
  .team-slide.collapsible:not(.open) .quote { display: none; }
  .team-slide.collapsible .bio-toggle {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 16px;
    font-family: var(--font-head); font-size: 15px; font-weight: 500; color: var(--navy);
    background: #fff; border: 2px solid var(--navy); border-radius: 999px; box-shadow: var(--shadow-sm); cursor: pointer;
  }
  .team-slide.open .quote { margin-top: 18px; }
  .team-slide .photo-frame { max-width: 250px; justify-self: center; }
  .team-slide.about-grid { gap: 28px; }
  #about { padding-block: 40px 24px !important; }
  .bio dd + dt { margin-top: 10px; }
  .checklist { padding: 28px 20px; }
  .checklist li { grid-template-columns: 34px 1fr; }
  .cal { padding: 16px 12px; }
  .cal-grid { gap: 4px; }
  .cal-day { font-size: 14px; border-radius: 10px; }
  .cal-day.today::after { display: none; }
  .shelf-wrap { padding: 24px 16px 0; border-radius: 28px; }
  .shelf-plank { margin: 0 -16px; }
  .bk { width: 58px; font-size: 14px; }
  .bk.b1 { width: 70px; }
  .shelf-plant { display: none; }
  .cover-mock { max-width: 240px; }
}

/* cookie consent (analytics.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto; background: #fff; border: 2px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; font-size: 15px; line-height: 1.6; }
.consent p { margin: 0; flex: 1 1 320px; color: var(--ink); }
.consent a { color: var(--orange); text-decoration: underline; }
.consent-btns { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 560px) { .consent { bottom: 10px; left: 10px; right: 10px; padding: 14px 16px; } .consent-btns { width: 100%; } .consent-btns .btn { flex: 1; justify-content: center; } }
.copy a { color: var(--muted); text-decoration: underline; }
.copy .sep { margin: 0 8px; }

/* privacy page */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { line-height: 1.8; }
.legal ul { padding-left: 1.3em; }