/* ---------- ราคา ---------- */
.pricing { background: linear-gradient(var(--paper), var(--cream)); }
.launch {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%;
  margin: -24px auto 30px; padding: 12px 22px 12px 14px; border-radius: 999px; text-align: left;
  background: linear-gradient(90deg, #fff1df, #ffe4d1 50%, #f1e8ff); border: 1px solid rgba(239, 109, 32, .25);
  font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.launch__spark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--orange); color: #fff; }
@media (max-width: 560px) { .launch { border-radius: 18px; font-size: 14.5px; } }

.period { display: flex; width: fit-content; margin: 0 auto 40px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.period__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s; }
.period__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.period__save { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #dcf5e8; color: #157a50; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan__name { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.plan__for { font-size: 14.5px; color: var(--ink-3); }
.plan__price { min-height: 92px; margin: 16px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; column-gap: 4px; }
.plan__amount { font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__amount--text { font-size: 34px; }
.plan__per { font-size: 15px; color: var(--ink-3); }
.plan__note { flex-basis: 100%; font-size: 13.5px; color: var(--ink-3); min-height: 1.4em; }
.plan__extra { font-size: 13.5px; font-weight: 600; color: var(--orange-2); margin-top: -6px; }
.plan__features { margin: 16px 0 26px; flex: 1; }
.is-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }

.plan--featured { background: var(--night); color: var(--on-dark); border-color: transparent; box-shadow: 0 40px 70px -30px rgba(43, 24, 56, .9); }
.plan--featured::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(80% 50% at 100% 0%, rgba(239, 109, 32, .35), transparent 70%), radial-gradient(70% 40% at 0% 100%, rgba(124, 58, 237, .35), transparent 70%); }
.plan--featured > * { position: relative; }
.plan--featured .plan__for, .plan--featured .plan__per, .plan--featured .plan__note { color: var(--on-dark-2); }
.plan--featured .ticks .icon { background: rgba(239, 109, 32, .25); color: #ffb68a; }
.plan__badge { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--orange-ink); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(239, 109, 32, .9); }
.plan--academy .ticks .icon { background: var(--violet-soft); color: var(--violet); }
.pricing__foot { text-align: center; margin-top: 30px; font-size: 14px; color: var(--ink-3); }
@media (min-width: 1081px) {
  .plans { padding-top: 10px; }
  .plan--featured { translate: 0 -12px; }
}
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section__head { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq__deco { width: 200px; margin-top: 40px; color: var(--orange); opacity: .14; }
.faq__deco .mark { width: 100%; height: auto; }
.faq__contact { display: grid; justify-items: start; gap: 8px; margin-top: 28px; max-width: 340px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.faq__contact-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #06c755; color: #fff; }
.faq__contact strong { font-family: var(--font-display); font-size: 19px; }
.faq__contact p { font-size: 15px; color: var(--ink-2); }
.faq__contact .btn { margin-top: 6px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; }
.qa[open] { box-shadow: var(--shadow); border-color: transparent; }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17.5px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); transition: background-color .3s, rotate .35s var(--ease); }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; translate: -50% -50%; border-radius: 2px; background: var(--orange-2); }
.qa__plus::after { rotate: 90deg; }
.qa[open] .qa__plus { rotate: 45deg; background: var(--orange); }
.qa[open] .qa__plus::before, .qa[open] .qa__plus::after { background: #fff; }
.qa p { padding: 0 22px 22px; color: var(--ink-2); }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq .section__head { position: static; margin-bottom: 8px; }
  .faq__deco { display: none; }
}

/* ---------- CTA ท้าย ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(90px, 12vw, 150px); color: #fff; text-align: center;
  background: radial-gradient(55% 75% at 12% 15%, rgba(255, 150, 80, .75), transparent 62%), radial-gradient(70% 90% at 92% 95%, #6d28d9, transparent 65%), linear-gradient(120deg, #e8641a, #c2410c 48%, #5b21b6); }
/* เกรนกระดาษบาง ๆ ให้ไล่สีดูเป็นงานพิมพ์ ไม่แบนแบบดิจิทัล */
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cta__staff { position: absolute; inset: 0; z-index: -1; display: flex; align-items: center;
  /* เส้นบรรทัดจางลงตรงกลาง = ไม่วิ่งผ่านตัวหนังสือ */
  -webkit-mask-image: radial-gradient(52% 75% at 50% 50%, transparent 35%, #000 85%); mask-image: radial-gradient(52% 75% at 50% 50%, transparent 35%, #000 85%); }
.cta__staff svg { width: 100%; height: 240px; }
.cta__staff path { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.3; }
.cta__inner { max-width: 820px; }
.cta__mark { display: block; width: 74px; margin: 0 auto 26px; color: #fff; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .2)); }
.cta__mark .mark { width: 100%; height: auto; }
.cta .h2 em { color: #fff; background: none; font-family: var(--font-hand); font-size: 1.25em; }
:lang(th) .cta .h2 em { font-family: inherit; font-size: 1em; text-decoration: underline wavy rgba(255, 255, 255, .7); text-underline-offset: .25em; text-decoration-thickness: 2px; }
.cta .lead { color: rgba(255, 255, 255, .88); margin: 20px auto 0; max-width: 32em; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
@media (max-width: 600px) { .cta__staff { display: none; } }  /* จอแคบ: เส้นวิ่งผ่านตัวหนังสือเสมอ → ใช้แค่ไล่สี+เกรน */
@media (max-width: 480px) { .cta__btns .btn { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--night); color: var(--on-dark-2); padding: 72px 0 0; font-size: 15px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(239, 109, 32, .5), rgba(124, 58, 237, .5), transparent); }
/* ลายเซ็นตัวใหญ่ท้ายหน้า (ตกแต่งล้วน) */
.footer__word {
  margin: clamp(20px, 3vw, 40px) 0 -.2em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-family: var(--font-hand); font-weight: 700; font-size: clamp(120px, 24vw, 340px); line-height: .9;
  background: linear-gradient(100deg, rgba(239, 109, 32, .32), rgba(242, 180, 90, .22) 45%, rgba(124, 58, 237, .32)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 26em; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h2 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 6px; }
.footer__col a { text-decoration: none; width: fit-content; }
.footer__col a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
