/* Home opener: plan brochure covers in a perspective row that fills the first screen. Light theme in the site's navy/blue. */
body.site-v2.corporate-site main>.plan-showcase,.plan-showcase{position:relative;isolation:isolate;min-width:0;max-width:100%;min-height:calc(100dvh - 64px);display:flex;flex-direction:column;justify-content:flex-start;padding:24px 0 24px;background:linear-gradient(180deg,#fff 0%,#eef3f9 100%);overflow:hidden}
body .plan-showcase{padding-left:0 !important;padding-right:0 !important}
/* Soft wash of the active cover behind the row; changes as the row moves. */
.plan-ambient{position:absolute;inset:-10%;z-index:-1;background-size:cover;background-position:center;filter:blur(80px) saturate(1.15);opacity:.2;transition:background-image 1s cubic-bezier(.22,1,.36,1)}
.plan-showcase-head{width:100%;max-width:1200px;min-width:0;margin:0 auto;padding:0 16px;text-align:center;box-sizing:border-box}
body.site-v2.corporate-site #main .plan-showcase-head h1,.plan-showcase-head h1{max-width:1100px;margin:0 auto;color:var(--brand);font-size:clamp(22px,min(2.4vw,3.4vh),56px);font-weight:500;line-height:1.4;text-wrap:balance}
.plan-showcase-head h1 small{display:block;font-size:.55em;font-weight:500;color:#2f3d4a;line-height:1.5}
.plan-showcase-head h1 strong{font-size:1.35em;font-weight:700;color:var(--brand)}
.plan-showcase-head h1 .axa-red{color:#d3101b}
.plan-showcase-head h1 .nowrap{white-space:nowrap}
.plan-showcase-head p{margin:6px 0 0;color:#2f3d4a;font-size:clamp(15px,min(1.1vw,1.7vh),24px)}
.plan-chips{--chip-fs:clamp(14px,min(.95vw,1.6vh),20px);display:flex;flex-wrap:nowrap;justify-content:center;gap:.6em;margin-top:12px;padding:6px 0 12px;font-size:var(--chip-fs)}
/* Category chips: bold navy text on liquid glass; the chosen category fills navy-to-blue and lifts. */
.plan-chip{position:relative;flex:none;white-space:nowrap;min-height:44px;padding:.45em 1.05em;border:1px solid rgba(255,255,255,.9);border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.55));color:var(--brand);font:inherit;font-size:var(--chip-fs);font-weight:600;cursor:pointer;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(15,95,200,.08),0 4px 14px rgba(15,95,200,.10);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s cubic-bezier(.22,1,.36,1),color .3s,background .3s,border-color .3s}
.plan-chip:hover{transform:translateY(-2px);color:var(--brand);box-shadow:inset 0 1px 0 #fff,0 10px 24px rgba(15,95,200,.16)}
.plan-chip:active{transform:scale(.97)}
.plan-chip[aria-pressed="true"]{color:#fff;border-color:rgba(255,255,255,.4);background:linear-gradient(135deg,#0b2f52 0%,var(--brand) 45%,#0a6ab8 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 10px 26px rgba(15,95,200,.35);transform:translateY(-2px) scale(1.04)}
/* A red tick under the chosen chip, the AXA accent. */
.plan-chip::after{content:"";position:absolute;left:50%;bottom:-8px;width:18px;height:3px;border-radius:3px;background:#d3101b;transform:translateX(-50%) scaleX(0);transition:transform .4s cubic-bezier(.22,1,.36,1)}
.plan-chip[aria-pressed="true"]::after{transform:translateX(-50%) scaleX(1)}
/* plan-carousel.js gives the stage whatever height the first screen has left; the card sizes itself from it (container query units). */
.plan-stage{flex:none;height:62vh;min-width:0;margin-top:8px;container-type:size}
/* Every card is placed from the stage centre by plan-carousel.js, so the selected card always sits exactly in the middle. */
.plan-track{--card-h:clamp(150px,min(calc(100cqh - var(--text-h)),62cqw),1100px);--text-h:clamp(132px,15cqh,184px);--card-w:calc(var(--card-h) * 5 / 7);position:relative;height:100%;margin:0;padding:0;list-style:none;overflow:hidden;touch-action:pan-y;cursor:grab;outline-offset:-4px;user-select:none}
.plan-track.is-dragging{cursor:grabbing}
.plan-slide{position:absolute;top:max(8px,calc((100cqh - var(--card-h) - var(--text-h)) / 2 + 8px));left:50%;width:var(--card-w);margin-left:calc(var(--card-w) / -2);transform-origin:50% 45%;will-change:transform,opacity}
.plan-slide>a{display:block;color:inherit;text-decoration:none;border-radius:22px}
.plan-slide-cover{position:relative;aspect-ratio:5/7;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 14px 34px rgba(15,95,200,.14);transition:box-shadow .6s cubic-bezier(.22,1,.36,1)}
.plan-slide-cover>img{width:100%;height:100%;object-fit:contain;display:block;transition:transform 1.2s cubic-bezier(.22,1,.36,1)}
.plan-slide.is-active .plan-slide-cover{box-shadow:0 34px 70px rgba(15,95,200,.26)}
.plan-slide.is-active>a:hover .plan-slide-cover>img{transform:scale(1.02)}
.plan-slide-blank{height:100%;display:grid;place-content:center;justify-items:center;gap:16px;padding:24px;text-align:center;background:linear-gradient(160deg,var(--brand),var(--brand))}
.plan-slide-blank img{filter:brightness(0) invert(1)}
.plan-slide-blank strong{color:#fff;font-size:28px;line-height:1.35}
.plan-slide-text{padding:14px 4px 0;text-align:center;transition:opacity .6s cubic-bezier(.22,1,.36,1),transform .6s cubic-bezier(.22,1,.36,1)}
.plan-slide:not(.is-active) .plan-slide-text{opacity:0;transform:translateY(8px)}
.plan-slide-text span{display:block;color:var(--brand);font-size:clamp(15px,min(1.2vw,2vh),24px);font-weight:600}
body.site-v2.corporate-site #main .plan-slide-text h3,.plan-slide-text h3{margin:4px 0 8px;color:var(--brand);font-size:clamp(20px,min(2vw,3.4vh),42px);line-height:1.35;white-space:normal;text-wrap:balance}
.plan-slide-text b{display:inline-block;color:var(--brand);font-size:clamp(15px,min(1.2vw,2vh),24px);font-weight:600;opacity:0;transform:translateY(6px);transition:opacity .3s,transform .3s}
.plan-slide.is-active .plan-slide-text b,.plan-slide>a:focus-visible .plan-slide-text b{opacity:1;transform:none}
.plan-controls{display:flex;align-items:center;justify-content:center;gap:24px}
.plan-nav{width:clamp(44px,5.4vh,72px);height:clamp(44px,5.4vh,72px);border:1px solid #c9d6e3;border-radius:50%;background:#fff;color:var(--brand);font-size:28px;line-height:1;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.plan-nav:hover{border-color:var(--brand);background:#f3f7fb}
.plan-nav:active{transform:scale(.94)}
.plan-nav:disabled{opacity:.4;cursor:not-allowed}
.plan-count{margin:0;min-width:84px;text-align:center;color:#2f3d4a;font-size:clamp(16px,2vh,26px);font-variant-numeric:tabular-nums}
.plan-count strong{color:var(--brand)}
.plan-progress{width:min(240px,50vw);height:3px;margin:12px auto 0;border-radius:3px;background:#d6e0ea;overflow:hidden}
.plan-progress i{display:block;height:100%;width:100%;background:var(--brand);transform-origin:left;transform:scaleX(var(--p,0));transition:transform .4s ease}
/* Entrance: cards rise in one after another on first load. */
.plan-showcase.is-ready .plan-slide>a{animation:plan-rise 1.1s cubic-bezier(.22,1,.36,1) both;animation-delay:calc(var(--d,0) * 90ms)}
.plan-showcase.is-ready .plan-showcase-head{animation:plan-fade .7s ease both}
@keyframes plan-rise{from{opacity:0;transform:translateY(60px) scale(.94)}to{opacity:1;transform:none}}
@keyframes plan-fade{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
/* Home only: links centred in the bar, consult button kept at the right edge. */
@media (min-width:1024px){
 body[data-page="home"] .v2-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;margin:0;pointer-events:none}
 body[data-page="home"] .v2-nav>a{pointer-events:auto}
 body[data-page="home"] .v2-nav .nav-consult{position:absolute;top:50%;right:max(20px,calc((100vw - 1240px)/2));transform:translateY(-50%)}
}
@media (min-width:701px) and (max-width:1023px){.plan-chips{justify-content:flex-start;overflow-x:auto;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:6px 20px 12px;scroll-padding-inline:20px}}
@media (max-width:700px){
 body.site-v2.corporate-site main>.plan-showcase,.plan-showcase{min-height:calc(100dvh - 72px);padding:16px 0 16px}
 body.site-v2.corporate-site #main .plan-showcase-head h1,.plan-showcase-head h1{font-size:19px}
 .plan-track{--card-h:clamp(150px,min(calc(100cqh - var(--text-h)),86cqw),420px)}
 .plan-slide{top:12px}
 .plan-chips{margin-top:12px}
 .plan-showcase-head p{display:none}
 body.site-v2.corporate-site #main .plan-slide-text h3,.plan-slide-text h3{font-size:22px;white-space:normal}
 .plan-slide-text span,.plan-slide-text b{font-size:16px}
 .plan-chips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:16px -16px 0;padding:6px 20px 12px;scroll-padding-inline:20px;scrollbar-width:none}
 .plan-chip{flex:none}
}
@media (prefers-reduced-motion:reduce){
 .plan-slide,.plan-slide-text,.plan-slide-text b,.plan-slide-cover>img,.plan-ambient{transition:none}
 .plan-showcase.is-ready .plan-slide>a,.plan-showcase.is-ready .plan-showcase-head{animation:none}
}
/* "ขายดี" tag beside the plan name under the cover; only plans in BESTSELLERS (generate-pages.cjs) get it. */
.plan-slide-text h3 .plan-badge{display:inline-block;margin-left:8px;padding:2px 10px;border-radius:999px;background:#d3101b;color:#fff;font-size:16px;font-weight:600;line-height:1.5;vertical-align:middle}
/* Names may run wider than the cover so they stay on one line; this keeps the reserved text band short and the covers large. */
@media (min-width:701px){.plan-slide-text{margin-inline:-40%}body.site-v2.corporate-site #main .plan-slide-text h3,.plan-slide-text h3{white-space:nowrap}}
.plan-slide:not(.is-active) .plan-slide-text{pointer-events:none}
.plan-new{position:absolute;top:12px;right:12px;z-index:2;padding:5px 12px;border-radius:999px;background:#D7192E;color:#fff;font:700 14px/1 "Anuphan",system-ui,sans-serif;letter-spacing:.06em;box-shadow:0 4px 10px rgba(160,10,30,.3)}
/* Quiet chrome around the posters: no colour wash behind the row, and "ใหม่" marks read as labels, not alarms. */
.plan-ambient{display:none}
.plan-slide-text h3 .plan-badge{padding:0;background:none;color:var(--brand-red)}
.plan-new{border-radius:6px;background:#fff;color:var(--brand-red);font-weight:600;letter-spacing:0;box-shadow:none}
