/* ============================================================
   index.css — เฉพาะหน้าแรก (ส่วนกลางอยู่ใน public.css)
   ============================================================ */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 4vw, 48px); }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); color: var(--primary); line-height: 1.3; margin-bottom: 10px; }
.section-head p { font-size: clamp(14px, 1.8vw, 15.5px); color: var(--text-muted); }
.more-wrap { text-align: center; margin-top: 34px; }
.btn-soon { background: #EEF2F6; color: #94A3B8; cursor: not-allowed; box-shadow: none; }
.btn-soon:hover { transform: none; }

/* ============================================================
   อยากทำอะไร — ทางลัดแบบแถวรายการ
   ============================================================ */
.quick { padding: clamp(30px, 5vw, 48px) 0 clamp(8px, 2vw, 16px); }
.quick-head { font-size: clamp(20px, 3vw, 26px); color: var(--primary); margin: 0 0 12px 2px; }
.quick-list { max-width: 980px; }
@media (min-width: 820px) {
  .quick-list { display: grid; grid-template-columns: 1fr 1fr; }
  .quick-list .row-item:nth-child(2) { border-top: none; }
  .quick-list .row-item:nth-child(odd) { border-right: 1px solid var(--border); }
}
.quick .container { max-width: 1020px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; margin-top: var(--header-h); min-height: clamp(480px, 74vh, 700px);
  display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,48,26,.62) 0%, rgba(10,58,32,.5) 42%, rgba(8,48,26,.82) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; color: #fff;
  padding: clamp(56px, 9vw, 92px) 0 clamp(96px, 12vw, 132px); }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.34); backdrop-filter: blur(8px);
  padding: 7px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 500; margin-bottom: 20px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(29px, 5.4vw, 54px); font-weight: 700; line-height: 1.18; letter-spacing: -.5px;
  text-shadow: 0 4px 26px rgba(0,0,0,.34); margin-bottom: 14px; }
.hero h1 .gold { color: var(--accent); display: block; }
.hero-sub { font-size: clamp(14.5px, 2vw, 18px); color: rgba(255,255,255,.93); max-width: 620px;
  margin: 0 auto 10px; text-shadow: 0 2px 14px rgba(0,0,0,.28); }
.hero-meta { font-size: clamp(13.5px, 1.8vw, 15.5px); color: rgba(255,255,255,.84); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.hero-phase { margin-top: 22px; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 9px; font-size: 13.5px; color: rgba(255,255,255,.92); background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 9px 18px; max-width: 100%; }
.hero-phase b { color: var(--accent); font-weight: 600; }
@media (max-width: 720px) {
  .hero-bg img { object-position: 26% 20%; }
  .hero-inner { padding-left: 6px; padding-right: 6px; }
  .hero-sub, .hero-meta { padding: 0 4px; }
  /* ปุ่มเรียงลงมาเป็นคอลัมน์เดียว แต่หยุดขยายที่ 360px
     บนมือถือจริงจะเต็มจอพอดี พอจอกว้างขึ้นจะไม่ยืดจนดูเป็นแบนเนอร์ */
  .hero-actions { flex-direction: column; align-items: center; gap: 11px; }
  .hero-actions .btn { width: 100%; max-width: 360px; min-height: 50px; padding: 13px 20px; }
  /* กล่องสถานะกว้างเท่าปุ่ม ขอบซ้ายขวาตรงกันพอดี */
  .hero-phase { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 360px;
    margin-left: auto; margin-right: auto; border-radius: 16px; padding: 13px 18px; text-align: center; }
}

/* การ์ดลอยคร่อมขอบล่าง hero */
.hero-facts { position: relative; z-index: 5; margin-top: clamp(-72px, -7vw, -56px); }
.hero-facts-inner { background: rgba(255,255,255,.97); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  display: grid; grid-template-columns: 1fr; overflow: hidden; }
.fact { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.fact + .fact { border-top: 1px solid var(--border); }
.fact-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--primary-tint), var(--primary-tint2)); color: var(--primary); }
.fact-icon svg { width: 22px; height: 22px; }
.fact-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 1px; }
.fact-value { font-size: clamp(16px, 2vw, 18.5px); font-weight: 700; color: var(--primary); font-family: 'Prompt', sans-serif; line-height: 1.3; }
@media (min-width: 760px) {
  .hero-facts-inner { grid-template-columns: repeat(3, 1fr); }
  .fact + .fact { border-top: none; border-left: 1px solid var(--border); }
}

/* ============================================================
   นับถอยหลัง
   ============================================================ */
.countdown-band { padding: clamp(34px, 5vw, 52px) 0 clamp(8px, 2vw, 16px); text-align: center; }
.countdown-label { font-size: clamp(14px, 1.9vw, 16px); color: var(--text-muted); margin-bottom: 4px; }
.countdown-label b { color: var(--primary); font-weight: 600; }
.countdown-date { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.countdown { display: inline-grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: clamp(8px, 1.6vw, 16px); }
.cd-cell { background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(12px, 2vw, 20px) clamp(6px, 1.4vw, 18px); box-shadow: var(--shadow-md); min-width: 0; }
.cd-num { font-family: 'Prompt', sans-serif; font-weight: 700; color: var(--primary);
  font-size: clamp(26px, 5.6vw, 44px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: clamp(11px, 1.5vw, 13px); color: var(--text-muted); margin-top: 3px; }
.countdown-done { font-size: 16px; color: var(--primary); font-weight: 600; }

/* ============================================================
   ช่วงเวลาสำคัญ
   ============================================================ */
.milestones { background: var(--surface); }
.ms-row { position: relative; display: grid; gap: 0; max-width: 1040px; margin: 0 auto; }
.ms-track, .ms-fill { position: absolute; }
.ms-step { position: relative; z-index: 2; display: flex; }
.ms-icon { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--border); color: #94A3B8;
  transition: background .25s ease, border-color .25s ease, color .25s ease; }
.ms-icon svg { width: 26px; height: 26px; }
.ms-step.done .ms-icon { background: var(--primary); border-color: var(--primary); color: #fff; }
.ms-step.current .ms-icon { background: var(--primary); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 6px rgba(224,181,89,.28); }
.ms-step.next .ms-icon { background: #FFFDF6; border-color: var(--accent); color: var(--primary); }
.ms-now { display: none; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #6B4E12;
  background: var(--accent); border-radius: 999px; padding: 3px 11px; margin-bottom: 8px; }
.ms-step.current .ms-now, .ms-step.next .ms-now { display: inline-block; }
.ms-step.next .ms-now { background: #FBEFD2; color: #7A5B18; }
.ms-step.next .ms-date { color: var(--primary); }
.ms-date { font-weight: 700; color: var(--primary); font-size: 14.5px; margin-bottom: 3px; }
.ms-step.upcoming .ms-date { color: #94A3B8; }
.ms-date .tbd { color: var(--accent); }
.ms-title { font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 16.5px; color: var(--text-main); margin-bottom: 5px; }
.ms-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* คอม: แนวนอน 4 คอลัมน์ + เส้นเชื่อม */
@media (min-width: 1024px) {
  .ms-row { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .ms-track { top: 30px; left: 12.5%; right: 12.5%; height: 3px; background: var(--border); border-radius: 3px; z-index: 0; }
  .ms-fill { top: 30px; left: 12.5%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px; z-index: 1; transition: width .6s ease; }
  .ms-step { flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
  .ms-icon { margin-bottom: 16px; }
  .ms-now { order: -1; margin-bottom: 10px; }
  .ms-desc { max-width: 215px; margin: 0 auto; }
  .ms-step.current { transform: translateY(-6px); }
}
/* iPad: 2x2 ไม่มีเส้น */
@media (min-width: 640px) and (max-width: 1023px) {
  .ms-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .ms-track, .ms-fill { display: none; }
  .ms-step { flex-direction: column; align-items: flex-start; text-align: left;
    background: var(--bg-main); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
  .ms-step.current, .ms-step.next { border-color: var(--accent); background: #FFFDF6; }
  .ms-icon { margin-bottom: 14px; }
}
/* มือถือ: แนวตั้ง ไอคอนซ้าย */
@media (max-width: 639px) {
  .ms-row { grid-template-columns: 1fr; }
  .ms-track, .ms-fill { display: none; }
  .ms-step { gap: 16px; padding-bottom: 26px; }
  .ms-step::after { content: ''; position: absolute; left: 25px; top: 58px; bottom: 8px; width: 2px; background: var(--border); }
  .ms-step.done::after { background: var(--primary-light); }
  .ms-step:last-child { padding-bottom: 0; }
  .ms-step:last-child::after { display: none; }
  .ms-icon { width: 52px; height: 52px; }
  .ms-icon svg { width: 22px; height: 22px; }
  .ms-body { flex: 1; min-width: 0; padding-top: 2px; }
}

/* ============================================================
   แบนเนอร์เขียว + มาสคอต
   ============================================================ */
.cta-band { padding: 0 0 clamp(52px, 7vw, 88px); }
.cta-inner { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-mid) 58%, var(--primary-light) 100%);
  color: #fff; padding: clamp(28px, 4vw, 44px); display: grid; gap: 22px; align-items: center; }
.cta-inner::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.07); top: -140px; right: -80px; }
.cta-text { position: relative; z-index: 2; }
.cta-text h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.cta-text p { font-size: 14.5px; color: rgba(255,255,255,.86); }
.cta-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-mascot { position: relative; z-index: 2; justify-self: center; }
.cta-mascot img { width: clamp(130px, 20vw, 190px); filter: drop-shadow(0 12px 28px rgba(0,0,0,.28)); }
@media (min-width: 880px) {
  .cta-inner { grid-template-columns: 1fr auto; padding: 44px 52px; }
  .cta-actions { margin-top: 20px; }
}
@media (max-width: 879px) {
  .cta-inner { text-align: center; }
  .cta-actions { justify-content: center; }
  .cta-mascot { order: -1; }
}

/* ============================================================
   ขั้นตอนการลงทะเบียน
   ============================================================ */
.howto { background: var(--surface); }
.howto-grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .howto-grid { grid-template-columns: 0.85fr 1.15fr; gap: 52px; } }

.phone-frame { justify-self: center; width: min(290px, 82vw); border-radius: 34px; padding: 11px;
  background: #16261C; box-shadow: 0 26px 54px -18px rgba(15,92,48,.45); }
.phone-screen { background: #FBFAF7; border-radius: 25px; overflow: hidden; }
.phone-bar { background: var(--primary); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 9px; }
.phone-bar img { width: 24px; height: 24px; border-radius: 50%; }
.phone-bar .t { font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.phone-bar .s { font-size: 9px; opacity: .8; }
.phone-body { display: flex; min-height: 236px; }
.phone-side { width: 44%; border-right: 1px solid var(--border); padding: 10px 7px; background: #fff; }
.phone-item { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--text-muted);
  padding: 7px 7px; border-radius: 8px; margin-bottom: 2px; }
.phone-item .d { width: 12px; height: 12px; border-radius: 4px; background: #E6EBF0; flex-shrink: 0; }
.phone-item.on { background: var(--primary); color: #fff; font-weight: 600; }
.phone-item.on .d { background: rgba(255,255,255,.5); }
.phone-main { flex: 1; padding: 14px 11px; display: flex; flex-direction: column; gap: 8px; }
.phone-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px; }
.phone-card .h { font-size: 9.5px; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.phone-card .l { height: 5px; border-radius: 3px; background: #EDF1F5; margin-bottom: 5px; }
.phone-card .l.s { width: 62%; }
.phone-chip { font-size: 9px; color: #17331F; background: var(--accent); border-radius: 999px;
  padding: 5px 10px; text-align: center; font-weight: 700; }

.steps { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 15px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-main); transition: border-color .2s ease, background .2s ease; }
.step.on { background: var(--primary-tint); border-color: var(--primary-light); }
.step-no { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 14px;
  background: #fff; border: 1.5px solid var(--border); color: var(--text-muted); }
.step.on .step-no { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-title { font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.step-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.howto-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 899px) { .howto-actions .btn { flex: 1 1 100%; } }

/* ============================================================
   ทุกอย่างในเว็บไซต์เดียว
   ============================================================ */
.value-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 960px) { .value-grid { grid-template-columns: 0.92fr 1.08fr; gap: 44px; } }

.stat-panel { background: linear-gradient(145deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px); color: #fff; box-shadow: var(--shadow-lg); }
.stat-hero { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 22px; text-align: center; margin-bottom: 12px; }
.stat-hero .n { font-family: 'Prompt', sans-serif; font-weight: 700; color: var(--accent);
  font-size: clamp(38px, 7vw, 58px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-hero .n.small { font-size: clamp(20px, 3.4vw, 28px); }
.stat-hero .l { font-size: 14px; color: rgba(255,255,255,.88); margin-top: 6px; }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-cell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px; padding: 16px 12px; text-align: center; }
.stat-cell .n { font-family: 'Prompt', sans-serif; font-weight: 700; font-size: clamp(20px, 3.4vw, 28px);
  color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-cell .n.small { font-size: clamp(14px, 2.2vw, 17px); color: var(--accent); }
.stat-cell .l { font-size: 12.5px; color: rgba(255,255,255,.8); margin-top: 4px; }
.stat-note { font-size: 12.5px; color: rgba(255,255,255,.72); text-align: center; margin-top: 16px; line-height: 1.6; }

.value-list { display: flex; flex-direction: column; gap: 6px; }
.value-item { display: flex; gap: 15px; padding: 16px 18px; border-radius: var(--radius);
  border-left: 3px solid var(--border); transition: background .2s ease, border-color .2s ease; }
.value-item:hover { background: var(--primary-tint); border-left-color: var(--primary-light); }
.value-icon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--primary-tint), var(--primary-tint2)); color: var(--primary); }
.value-icon svg { width: 19px; height: 19px; }
.value-item h4 { font-size: 16px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.value-item p { font-size: 13.8px; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; font-family: 'Prompt', sans-serif; font-size: 15.5px; font-weight: 500; color: var(--text-main); }
.faq-q:hover { color: var(--primary); }
.faq-q .chev { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); transition: transform .2s ease; }
.faq-q .chev svg { width: 15px; height: 15px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: var(--primary); color: #fff; }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14.2px; color: var(--text-muted); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }
.faq-a a { color: var(--primary); font-weight: 600; text-decoration: underline; }

/* ============================================================
   ติดต่อ
   ============================================================ */
.contact-sec { background: var(--surface); }
.contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 680px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 15px; transition: border-color .2s ease, background .2s ease; }
.contact-card:hover { border-color: var(--primary-light); background: var(--primary-tint); }
.contact-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--primary-tint), var(--primary-tint2)); color: var(--primary); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-card .label { font-size: 12.8px; color: var(--text-muted); }
.contact-card .value { font-family: 'Prompt', sans-serif; font-size: 18px; font-weight: 600; color: var(--primary); }
.contact-card .sub { font-size: 12.5px; color: var(--text-muted); }
.contact-foot { text-align: center; margin-top: 26px; font-size: 14px; color: var(--text-muted); }
.contact-foot a { color: var(--primary); font-weight: 600; }

/* ============================================================
   Reveal + ลดการเคลื่อนไหวตามค่าของเครื่อง
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
