/* หน้าย่อย V3 (ราคา ฟีเจอร์ AI ฟรี คำถาม Professional นโยบาย) + ส่วนเพิ่มของหัวเว็บที่ใช้ร่วมทุกหน้า
   ใช้คู่กับ v3-base.css (โทเคน หัวเว็บ ปุ่ม) และ v3-end.css (ท้ายเว็บ คีย์เฟรม) · คลาส .v3p-* = ของหน้าย่อย */

/* ── หัวเว็บ: เมนูกลาง + เมนูมือถือ ── */
.w3-nav-menu { gap: 2px; padding: 0 4px; }
.w3-nav-link[aria-current="page"] { background: var(--line); }
.w3-nav[data-tone="dark"] .w3-nav-link[aria-current="page"] { background: var(--dark-line); }
.w3-nav-end { gap: 4px; }
.w3-nav-more { position: relative; display: none; }
.w3-nav-more summary { list-style: none; cursor: pointer; padding: 0 12px; }
.w3-nav-more summary::-webkit-details-marker { display: none; }
.w3-nav-sheet { position: absolute; top: calc(100% + 14px); right: -4px; width: min(280px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 10px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.w3-nav-sheet a { display: block; padding: 12px 14px; border-radius: 14px; color: var(--ink); font-size: 16px; font-weight: 500; }
.w3-nav-sheet a:hover { background: var(--bg-soft); }
.w3-nav .w3-nav-sheet .w3-btn { height: 48px; justify-content: center; margin-top: 6px; background: var(--btn); color: var(--on-btn); }
.w3-nav .w3-nav-sheet .w3-btn:hover { background: var(--btn-hover); }
@media (max-width: 899px) { .w3-nav-menu { display: none; } .w3-nav-more { display: block; } }
@media (max-width: 520px) { .w3-nav-link.is-login { display: none; } }
.w3-footer-links.is-main a { color: var(--on-dark); font-weight: 500; }
.w3-footer .ft-ck { color: var(--on-dark-2); font: inherit; text-decoration: underline; }

/* ── โครงหน้า ── */
.v3p-wrap { width: min(1120px, 100%); }
.v3p-hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 156px 24px 80px; overflow: hidden; text-align: center; }
.v3p-hero::before { content: ""; position: absolute; top: -10%; left: 50%; translate: -50%; width: min(980px, 120%); height: 80%; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none;
  background: radial-gradient(closest-side, #82bcff99, #0000) 15% 40% / 60% 70% no-repeat, radial-gradient(closest-side, #f5b82e40, #0000) 85% 50% / 55% 70% no-repeat; }
.v3p-hero > * { position: relative; }
.v3p-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--exp-bg); color: var(--exp-ink); font-size: 14px; font-weight: 600; }
.v3p-title { max-width: 21em; margin-top: 20px; color: var(--ink); font-size: clamp(2.1rem, 4.4vw, 3.5rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.v3p-lead { max-width: 42rem; margin-top: 18px; color: var(--ink-2); font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.v3p-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.v3p-ctas .w3-cta { margin-top: 0; }
.v3p-btn-line { height: 50px; display: inline-flex; align-items: center; gap: 8px; padding: 0 24px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); color: var(--ink); font-size: 16px; font-weight: 500; transition: background-color .24s var(--ease-hover); }
.v3p-btn-line:hover { background: var(--bg-soft); }
.v3p-note { margin-top: 14px; color: var(--ink-3); font-size: 14px; }

.v3p-sec { position: relative; display: flex; flex-direction: column; align-items: center; padding: 96px 24px; background: var(--bg); }
.v3p-sec.is-soft { background: var(--bg-soft); }
.v3p-sec.is-lift { margin-top: -48px; border-radius: 48px 48px 0 0; }
.v3p-sec.is-dark { margin-top: -48px; border-radius: 48px 48px 0 0; background: var(--dark); color: var(--on-dark-2); }
.v3p-sec .w3-intro-title { max-width: 46rem; }
.v3p-sec.is-dark .w3-intro-title { color: var(--on-dark); }
.v3p-sub { max-width: 40rem; margin-top: 14px; color: var(--ink-2); font-size: 17px; line-height: 1.7; text-align: center; }
.is-dark .v3p-sub { color: var(--on-dark-2); }
.v3p-sec > .v3p-wrap, .v3p-sec > .v3p-grid, .v3p-sec > .v3p-faq { margin-top: 48px; }

/* ── การ์ด ── */
.v3p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; width: min(1120px, 100%); }
.v3p-grid.is-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.v3p-card { display: flex; flex-direction: column; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: translate .3s var(--ease-hover), box-shadow .3s var(--ease-hover); }
.v3p-card:hover { translate: 0 -3px; box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.v3p-card h3 { margin-top: 18px; color: var(--ink-card); font-size: 19px; font-weight: 700; line-height: 1.35; }
.v3p-card > p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.v3p-card .v3p-list { margin-top: 14px; }
.v3p-card > a:last-child { margin-top: auto; padding-top: 18px; color: var(--exp-ink); font-weight: 600; }
.is-dark .v3p-card { background: var(--dark-card); box-shadow: 0 0 0 1px var(--dark-line); }
.is-dark .v3p-card h3 { color: var(--on-dark); }
.is-dark .v3p-card > p, .is-dark .v3p-list li { color: var(--on-dark-2); }
.v3p-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--t-blue-soft); color: var(--t-blue-ink); }
.v3p-ic.is-amber { background: var(--t-amber-soft); color: var(--t-amber-ink); }
.v3p-ic.is-teal { background: var(--t-teal-soft); color: var(--t-teal-ink); }
.v3p-ic.is-pink { background: var(--t-pink-soft); color: var(--t-pink-ink); }
.is-dark .v3p-ic { background: #ffffff12; color: var(--g1); }
.v3p-list { display: grid; gap: 9px; }
.v3p-list li { position: relative; padding-left: 27px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.v3p-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; background: var(--check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.v3p-list li.no { color: var(--ink-soft); }
.v3p-list li.no::before { background: var(--ink-soft); -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000); -webkit-mask-size: 10px 2px; mask-size: 10px 2px; }

/* ── แพ็ก (พื้นมืด) ── */
.v3p-bill { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border-radius: 999px; background: #ffffff14; box-shadow: 0 0 0 1px var(--dark-line); }
.v3p-bill input { position: absolute; opacity: 0; pointer-events: none; }
.v3p-bill label { height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 999px; color: var(--on-dark-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .24s var(--ease-hover), color .24s var(--ease-hover); }
.v3p-bill label small { color: var(--gold); font-size: 12px; }
.v3p-bill input:checked + label { background: var(--on-dark); color: var(--btn); }
.v3p-bill input:focus-visible + label { outline: 2px solid var(--g1); outline-offset: 2px; }
.v3p-price .m { display: none; }
.v3p-price:has(#bill-m:checked) .m { display: revert; }
.v3p-price:has(#bill-m:checked) .y { display: none; }
.v3p-plans { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 18px; width: min(1180px, 100%); margin-top: 52px; }
.v3p-plans.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1040px, 100%); }
.v3p-plans::before { content: ""; position: absolute; inset: 5% 10%; border-radius: 50%; filter: blur(70px); pointer-events: none;
  background: radial-gradient(closest-side, #207dfc66, #0000) 25% 40% / 60% 80% no-repeat, radial-gradient(closest-side, #f5b82e5c, #0000) 75% 60% / 60% 80% no-repeat; }
.v3p-plan { position: relative; display: flex; flex-direction: column; padding: 32px 24px 24px; border-radius: 28px; background: #141822e6; box-shadow: 0 0 0 1px var(--dark-line), 0 30px 60px #00000059; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.v3p-plan.is-hot { border: 1.5px solid transparent; box-shadow: 0 0 48px #2483ff40, 0 0 90px #f5b82e24, 0 30px 60px #0006;
  background: linear-gradient(#141822f7, #141822f7) padding-box, linear-gradient(125deg, var(--g1), var(--g2) 30%, var(--g3) 60%, var(--g4) 80%, var(--g5)) border-box; }
.v3p-plan.is-best { box-shadow: 0 0 0 1.5px var(--gold), 0 30px 60px #00000059; }
.v3p-plan .w3-plan-badge.is-gold { background: var(--gold); color: var(--btn); }
.v3p-plan-name { color: var(--on-dark); font-size: 22px; font-weight: 700; }
.v3p-plan-for { min-height: 3em; margin-top: 6px; color: var(--on-dark-2); font-size: 14px; line-height: 1.5; }
.v3p-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 18px; color: var(--on-dark-2); font-size: 15px; }
.v3p-plan-price b { color: var(--on-dark); font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.v3p-plan-price s { color: var(--on-dark-soft); font-size: 18px; text-decoration-color: var(--g4); text-decoration-thickness: 2px; }
.v3p-plan-price.is-talk b { font-size: 34px; }
.v3p-plan-bill { min-height: 1.5em; margin-top: 4px; color: var(--on-dark-soft); font-size: 13px; }
.v3p-plan-founder { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--bonus-soft); box-shadow: 0 0 0 1px var(--bonus-line); color: var(--bonus-ink); font-size: 13px; line-height: 1.5; }
.v3p-plan .v3p-list { margin: 20px 0 24px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.v3p-plan .v3p-list li { color: var(--on-dark-2); font-size: 14px; }
.v3p-plan .v3p-list li b { color: var(--on-dark); }
.v3p-plan .w3-cta, .v3p-plan .w3-plan-btn { width: 100%; margin-top: auto; }
.v3p-plan .w3-plan-btn { height: 50px; padding: 0 20px; font-size: 16px; }
.v3p-plans-note { position: relative; max-width: 44rem; margin-top: 32px; color: var(--on-dark-2); font-size: 14px; line-height: 1.7; text-align: center; }
.v3p-plans-note a { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── ตารางเทียบ ── */
.v3p-cmp { width: min(1000px, 100%); margin-top: 40px; }
.v3p-cmp > summary { width: fit-content; margin-inline: auto; list-style: none; cursor: pointer; }
.v3p-cmp > summary::-webkit-details-marker { display: none; }
.v3p-cmp > summary .ic { transition: rotate .2s var(--ease-hover); }
.v3p-cmp[open] > summary .ic { rotate: 180deg; }
.v3p-scroll { position: relative; margin-top: 24px; overflow-x: auto; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.v3p-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.v3p-table th, .v3p-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.v3p-table thead th { color: var(--ink-card); font-size: 16px; font-weight: 700; }
.v3p-table tbody th { position: sticky; left: 0; background: #fff; color: var(--ink-2); font-weight: 500; text-align: left; }
.v3p-table .v3p-g th { padding-top: 22px; background: var(--bg-soft); color: var(--ink-card); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-align: left; }
.v3p-table td { color: var(--ink-2); }
.v3p-table td.ok { color: var(--check); font-weight: 700; }
.v3p-table td.no::before { content: ""; display: inline-block; width: 12px; height: 2px; vertical-align: middle; background: var(--base-2); }
.v3p-table tr:last-child > * { border-bottom: 0; }

/* ── คำถาม ── */
.v3p-faq { display: grid; gap: 12px; width: min(820px, 100%); }
.v3p-faq details { border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease-hover); }
.v3p-faq details[open] { box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.v3p-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; color: var(--ink-card); font-size: 17px; font-weight: 600; list-style: none; cursor: pointer; }
.v3p-faq summary::-webkit-details-marker { display: none; }
.v3p-faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: 20px; font-weight: 400; transition: rotate .3s var(--ease-ui); }
.v3p-faq details[open] summary::after { rotate: 45deg; }
.v3p-faq .ans, .v3p-faq details > p { padding: 0 24px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.v3p-faq a { color: var(--exp-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v3p-faq-group { width: min(820px, 100%); margin: 40px 0 14px; color: var(--ink-3); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.v3p-faq-group:first-child { margin-top: 0; }

/* ── แถบชวนปิดท้าย (พื้นมืด) ── */
.v3p-band { position: relative; display: flex; flex-direction: column; align-items: center; width: min(1120px, 100%); padding: 72px 24px; overflow: hidden; border-radius: 40px; background: var(--dark); color: var(--on-dark-2); text-align: center; }
.v3p-band::before { content: ""; position: absolute; inset: -20% 10% 30%; border-radius: 50%; filter: blur(70px); pointer-events: none; background: radial-gradient(closest-side, #207dfc59, #0000) 30% 50% / 60% 90% no-repeat, radial-gradient(closest-side, #f5b82e3d, #0000) 75% 50% / 55% 90% no-repeat; }
.v3p-band > * { position: relative; }
.v3p-band .w3-intro-title { color: var(--on-dark); }
.v3p-band p { max-width: 36rem; margin-top: 14px; font-size: 17px; line-height: 1.7; }
.v3p-band .v3p-ctas { margin-top: 30px; }
.v3p-band .v3p-btn-line { background: transparent; box-shadow: 0 0 0 1px #ffffff59; color: var(--on-dark); }
.v3p-band .v3p-btn-line:hover { background: #ffffff14; }
.v3p-band .v3p-note { color: var(--on-dark-soft); }

/* ── ข้อความยาว (นโยบาย) ── */
.v3p-prose { width: min(760px, 100%); color: var(--ink-2); font-size: 17px; line-height: 1.85; }
.v3p-prose h2 { margin: 56px 0 14px; scroll-margin-top: 110px; color: var(--ink-card); font-size: 26px; font-weight: 700; line-height: 1.35; }
.v3p-prose h3 { margin: 30px 0 8px; color: var(--ink-card); font-size: 19px; font-weight: 700; }
.v3p-prose p + p, .v3p-prose p + ul, .v3p-prose ul + p, .v3p-prose ol + p, .v3p-prose p + ol { margin-top: 14px; }
.v3p-prose ul, .v3p-prose ol { padding-left: 1.3em; list-style: revert; }
.v3p-prose li + li { margin-top: 6px; }
.v3p-prose a { color: var(--exp-ink); text-decoration: underline; text-underline-offset: 3px; }
.v3p-prose strong, .v3p-prose b { color: var(--ink-card); }
.v3p-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.v3p-toc a { padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 500; }
.v3p-toc a:hover { background: var(--bg-soft); }

/* ── แถวสลับภาพ/ข้อความ ── */
.v3p-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 56px; width: min(1120px, 100%); }
.v3p-split + .v3p-split { margin-top: 88px; }
.v3p-split.is-flip > :first-child { order: 2; }
.v3p-split h3 { margin-top: 16px; color: var(--ink-card); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.3; }
.v3p-split p { margin-top: 12px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.v3p-split .v3p-list { margin-top: 18px; }
.v3p-shot { overflow: hidden; border-radius: 24px; background: var(--bg-soft); box-shadow: var(--shadow-card); }
.v3p-shot img, .v3p-shot video { width: 100%; height: auto; display: block; }
.is-dark .v3p-split h3 { color: var(--on-dark); }
.is-dark .v3p-split p { color: var(--on-dark-2); }

@media (max-width: 1100px) {
  .v3p-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(760px, 100%); }
}
@media (max-width: 860px) {
  .v3p-plans.is-3 { grid-template-columns: minmax(0, 1fr); width: min(460px, 100%); }
  .v3p-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .v3p-split.is-flip > :first-child { order: 0; }
}
@media (max-width: 767px) {
  .v3p-hero { padding: 118px 16px 56px; }
  .v3p-lead { font-size: 16px; }
  .v3p-sec { padding: 64px 16px; }
  .v3p-sec.is-lift, .v3p-sec.is-dark { margin-top: -28px; border-radius: 28px 28px 0 0; }
  .v3p-sec > .v3p-wrap, .v3p-sec > .v3p-grid, .v3p-sec > .v3p-faq { margin-top: 32px; }
  .v3p-grid.is-2 { grid-template-columns: minmax(0, 1fr); }
  .v3p-card { padding: 22px; border-radius: 22px; }
  .v3p-band { padding: 52px 20px; border-radius: 28px; }
  .v3p-faq summary { padding: 18px 18px; font-size: 16px; }
  .v3p-faq .ans, .v3p-faq details > p { padding: 0 18px 18px; font-size: 15px; }
  .v3p-prose { font-size: 16px; }
  .v3p-prose h2 { font-size: 22px; }
  .v3p-split + .v3p-split { margin-top: 56px; }
}
@media (max-width: 620px) {
  .v3p-plans { grid-template-columns: minmax(0, 1fr); width: min(440px, 100%); }
  .v3p-plan-for { min-height: 0; }
}
@media (max-width: 767px) { .w3-hero-copy .v3p-note { display: none; } }
.v3p-skip { position: absolute; top: -60px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--on-btn); }
.v3p-skip:focus { top: 16px; }
.w3 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v3p-plan-more { margin-top: 14px; text-align: center; font-size: 14px; }
.v3p-plan-more a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.v3p-credits .v3p-card { align-items: center; text-align: center; }
.v3p-credits .v3p-card h3 { font-weight: 500; }
.v3p-credits .v3p-card h3 b { display: block; font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.v3p-credits .v3p-card > p { color: var(--exp-ink); font-size: 18px; font-weight: 600; }
.v3p-cmp > summary.v3p-btn-line { display: flex; }
