/* ===== ตั้งต้น ▪ ORIGIN — Landing Page ===== */

:root {
  --navy: #1B2A4A;
  --navy-soft: #26385f;
  --gold: #C8982A;
  --gold-light: #F5E6C0;
  --bg: #F9FAFC;
  --text-dark: #1B2A4A;
  --text-muted: #5a6478;
  --white: #ffffff;

  --font-th: 'Sarabun', sans-serif;
  --font-en: 'Playfair Display', serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.10);
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-th);
  color: var(--text-dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-th);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

/* Playfair Display ไม่มีตัวอักษรไทย ใช้เฉพาะกับข้อความอังกฤษล้วนเท่านั้น (โลโก้ "ORIGIN", VS, เลขขั้นตอน) */
.brand-en { font-family: var(--font-en); }

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-th);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(200, 152, 42, 0.12);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  color: var(--navy);
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.gold-divider {
  width: 64px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 24px;
}

section { padding: 80px 0; }

/* ===== CTA button (ปุ่มเดียวทั้งหน้า) ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-th);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 36px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(200, 152, 42, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 152, 42, 0.45);
}

/* ===== SITE HEADER / โลโก้ ===== */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(200, 152, 42, 0.25);
}

.site-header-inner {
  display: flex;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-logo-text {
  font-family: var(--font-th);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--gold-light);
}

.site-logo-text .dot { color: var(--gold); }

/* ===== Video mockup (ก่อน-หลัง จากคลิป stock จริง) — สองการ์ด 9:16 ชิดกัน จัดชิดขวา ===== */
.video-mockup {
  display: flex;
  justify-content: flex-end;
}

.mv-pair {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 480px;
}

.mv-card {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--navy);
}

.mv-before { border-radius: var(--radius) 0 0 var(--radius); box-shadow: var(--shadow); }
.mv-after { border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }

.mv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
}

/* หมายเหตุ: ไม่ใส่ filter ปรับสี/ความสว่างใดๆ บนวิดีโอฝั่ง "ก่อน" โดยเจตนา —
   LuckyCut ไม่ได้ทำ color grading ต้องเป็นคลิปโทนสีเดียวกับฝั่ง "หลัง" ทุกประการ
   ความต่างมีแค่ overlay/ซับ ที่เพิ่มเข้ามาเท่านั้น (ฝั่ง "หลัง" render จริงอยู่ใน hero_after_widget.html) */

.mv-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(27,42,74,0.5) 0%, rgba(27,42,74,0) 26%, rgba(27,42,74,0) 60%, rgba(27,42,74,0.78) 100%);
  pointer-events: none;
}

.mv-after-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mv-label {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: #d7deec;
  font-family: var(--font-th);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  z-index: 3;
  pointer-events: none;
}

.mv-label-gold {
  color: var(--navy);
  background: var(--gold);
  display: inline-block;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 3px 14px;
  border-radius: 999px;
}

.mv-pair::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  z-index: 2;
}

.mv-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.75rem;
  box-shadow: 0 4px 14px rgba(200, 152, 42, 0.4);
}

.mockup-credit {
  margin-top: 10px;
  margin-left: auto;
  max-width: 480px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(245, 230, 192, 0.6);
}

@media (max-width: 560px) {
  .mv-vs { width: 28px; height: 28px; font-size: 0.65rem; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
  padding: 64px 0 90px;
}

.hero .container {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 40px;
  align-items: center;
}

.hero-brand {
  font-family: var(--font-th);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-brand .dot { color: var(--gold); }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--white);
}

.hero h1 .highlight { color: var(--gold); white-space: nowrap; }

.hero p.lead {
  color: rgba(245, 230, 192, 0.85);
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-features {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: rgba(245, 230, 192, 0.9);
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.hero-cta-wrap { margin-top: 32px; }

.hero-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(245, 230, 192, 0.65);
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; }
  .hero p.lead { max-width: 100%; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--gold-light);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}

.trust-icon { font-size: 1.8rem; margin-bottom: 8px; }

.trust-num {
  font-family: var(--font-th);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.trust-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 720px) {
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--bg); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 { font-size: 1.15rem; color: var(--navy); }
.step-card p { margin: 0; font-size: 0.92rem; }

.qc-note {
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== GALLERY ===== */
.gallery-section { background: var(--white); }

.style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.style-card { text-align: center; }

.style-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.25s ease;
}

.style-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.style-thumb.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: var(--shadow);
}

.style-name {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.gallery-cta { text-align: center; }

.btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline:hover { background: var(--navy); color: var(--white); }

@media (max-width: 960px) {
  .style-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .style-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== เสียงจากผู้ใช้ (TESTIMONIALS) ===== */
.testimonials-section { background: var(--bg); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-th);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 14px;
}

.testimonial-name {
  font-family: var(--font-th);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 14px;
}

.testimonial-result {
  font-weight: 700;
  color: var(--gold);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ===== PRICING ===== */
.pricing-section { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.price-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.price-card.featured {
  border-color: var(--gold);
  transform: translateY(-8px);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(200, 152, 42, 0.35);
}

.price-card h3 { color: var(--navy); font-size: 1.3rem; text-align: center; }

.price-tag {
  text-align: center;
  font-family: var(--font-th);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.price-tag span { font-size: 1rem; color: var(--text-muted); font-family: var(--font-th); }

.price-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price-tag-contact {
  font-size: 1.5rem;
}

.price-credit {
  text-align: center;
  font-family: var(--font-th);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--gold-light);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 14px;
}

.price-credit span {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.price-blurb-bottom {
  text-align: center;
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 12px;
  height: 56px;
  overflow: hidden;
}

.pricing-note-block {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
}

.pricing-note-block p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.pricing-note-block p:last-child { margin-bottom: 0; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(27, 42, 74, 0.12);
  font-size: 0.92rem;
  color: var(--text-dark);
}

.price-features li::before { content: "✓ "; color: var(--gold); font-weight: 700; }

.price-features li.feature-soon-item::before { content: "🕒 "; }
.price-features li.feature-soon-item { color: var(--text-muted); }

.feature-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  font-style: italic;
}

.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 86px;
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}

@media (max-width: 560px) {
  .pricing-grid-4 { grid-template-columns: 1fr; }
}

/* ===== SPEC TABLE ===== */
.spec-section { background: var(--white); }

.spec-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.spec-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
  font-size: 0.95rem;
}

.spec-table tr:last-child td { border-bottom: none; }

.spec-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  background: var(--gold-light);
  width: 160px;
  white-space: nowrap;
}

/* ===== FAQ ===== */
.faq-section { background: var(--bg); }

.container-narrow { max-width: 760px; }

.faq-item {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-th);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
}

.faq-a p { margin: 0 0 20px; font-size: 0.92rem; }

.faq-item.open .faq-a { max-height: 400px; }

/* ===== FINAL CTA ===== */
.final-cta {
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--navy) 100%);
  color: var(--white);
  text-align: center;
}

.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(245, 230, 192, 0.8); max-width: 480px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(245, 230, 192, 0.55);
  padding: 32px 0;
  text-align: center;
  font-size: 0.82rem;
}

.footer-brand {
  font-family: var(--font-th);
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-brand .site-logo-mark { width: 22px; height: 22px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(245, 230, 192, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-links a:hover { color: var(--gold-light); text-decoration: underline; }

/* ===== LEGAL PLACEHOLDER PAGES (นโยบายคืนเงิน / ข้อตกลงการใช้งาน) ===== */
.legal-page {
  padding: 72px 0;
  min-height: 50vh;
}

.legal-title {
  text-align: center;
  color: var(--navy);
}

.legal-placeholder {
  background: var(--gold-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}

.legal-placeholder-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.legal-placeholder p:last-child { margin-bottom: 0; }

.legal-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -10px 0 32px;
}

.legal-body h2 {
  color: var(--navy);
  font-size: 1.25rem;
  margin: 36px 0 12px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p { color: var(--text-dark); line-height: 1.75; }

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-dark);
  line-height: 1.75;
}

.legal-body li { margin-bottom: 6px; }

.legal-body strong { color: var(--navy); }

.legal-draft-tag {
  display: inline-block;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: var(--radius);
  margin-bottom: 28px;
}

/* ===== MOTION — scroll-reveal + hover micro-interactions ===== */
/* หมายเหตุ: เคารพ prefers-reduced-motion เสมอ ปิดอนิเมชันทั้งหมดถ้าผู้ใช้ตั้งค่าไว้ */

.trust-item,
.step-card,
.testimonial-card,
.price-card,
.faq-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.25,.8,.25,1), transform 0.9s cubic-bezier(.25,.8,.25,1),
              box-shadow 0.25s ease;
}

.trust-item.is-revealed,
.step-card.is-revealed,
.testimonial-card.is-revealed,
.price-card.is-revealed,
.faq-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* การ์ด featured มีระยะยกตัวถาวรอยู่แล้ว (-8px) ต้องคง offset นี้ไว้หลัง reveal ด้วย ไม่ใช่รีเซ็ตเป็น 0 */
.price-card.featured.is-revealed { transform: translateY(-8px); }

/* หน่วงเวลาแบบ stagger ให้การ์ดที่อยู่ถัดไปในกลุ่มเดียวกันไล่โผล่ทีละใบ ไม่ใช่ขึ้นพร้อมกันทื่อๆ */
.trust-grid .trust-item:nth-child(1),
.steps-grid .step-card:nth-child(1),
.testimonial-grid .testimonial-card:nth-child(1),
.pricing-grid .price-card:nth-child(1) { transition-delay: 0s; }
.trust-grid .trust-item:nth-child(2),
.steps-grid .step-card:nth-child(2),
.testimonial-grid .testimonial-card:nth-child(2),
.pricing-grid .price-card:nth-child(2) { transition-delay: .15s; }
.trust-grid .trust-item:nth-child(3),
.steps-grid .step-card:nth-child(3),
.testimonial-grid .testimonial-card:nth-child(3),
.pricing-grid .price-card:nth-child(3) { transition-delay: .3s; }
.pricing-grid .price-card:nth-child(4) { transition-delay: .45s; }

/* hover lift — วางหลัง reveal rules เพื่อให้ชนะตอนที่ทั้ง revealed และ hover พร้อมกัน */
.step-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(27, 42, 74, 0.16);
}

.price-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(27, 42, 74, 0.16); }
.price-card.featured:hover { transform: translateY(-14px); box-shadow: 0 20px 38px rgba(27, 42, 74, 0.2); }

.style-card { transition: transform 0.25s ease; }
.style-card:hover { transform: translateY(-5px); }
.style-card:hover .style-thumb { box-shadow: 0 14px 28px rgba(27, 42, 74, 0.22); }

.project-card, .price-card { will-change: transform; }

/* ปุ่ม CTA หลักเต้นเบาๆ ชวนกดแบบไม่รบกวนสายตา (เฉพาะ Hero + CTA ปิดท้าย ไม่ใช้กับปุ่มในตารางราคา) */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(200, 152, 42, 0.35); }
  50% { box-shadow: 0 10px 32px rgba(200, 152, 42, 0.6); }
}

.btn-cta-pulse { animation: ctaPulse 2.6s ease-in-out infinite; }
.btn-cta-pulse:hover { animation-play-state: paused; }

/* เฮดเดอร์หดตัว+เพิ่มเงาเบาๆ ตอนเลื่อนจอ ให้รู้สึกว่าเว็บ "ตอบสนอง" อยู่ตลอด */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled .site-header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ป้าย VS ลอยตัวเบาๆ ตลอดเวลา ให้จุดกึ่งกลางของ HERO มีชีวิตชีวา */
@keyframes vsFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-4px); }
}

.mv-vs { animation: vsFloat 2.4s ease-in-out infinite; }

/* ไล่สีวิ้งๆ เบาๆ บนตัวเลขไฮไลต์ใน H1 ให้พรีเมียมขึ้นอีกนิด ไม่ถึงกับกระพริบ */
@keyframes goldShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.hero h1 .highlight { animation: goldShimmer 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .trust-item, .step-card, .testimonial-card, .price-card, .faq-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .btn-cta-pulse, .mv-vs, .hero h1 .highlight { animation: none !important; }
  .style-card, .step-card, .testimonial-card, .price-card { transition: none !important; }
}

/* ===== สมัครสมาชิก (signup modal) ===== */
.signup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 42, 74, 0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.signup-overlay.open { display: flex; }

.signup-box {
  position: relative;
  width: min(420px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.signup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.signup-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.signup-badge-success { background: var(--gold); color: var(--white); }

.signup-box h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 8px; }

.signup-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.signup-box .field { display: block; margin-bottom: 14px; }
.signup-box .field .lbl { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.signup-box .field input {
  width: 100%;
  font-family: var(--font-th);
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid rgba(27, 42, 74, 0.18);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-dark);
}
.signup-box .field input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.signup-msg {
  text-align: center;
  font-size: 0.82rem;
  margin: 10px 0 0;
  min-height: 1.2em;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.field-check input { margin-top: 3px; flex: none; }
.field-check a { color: var(--navy); text-decoration: underline; }
.field-check a:hover { color: var(--gold); }

.btn-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none !important;
}

.signup-social {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.btn-social {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid rgba(27, 42, 74, 0.18);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.btn-social:not(:disabled):hover { border-color: var(--gold); }
.btn-social:disabled { opacity: 0.4; cursor: not-allowed; }
.signup-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.signup-divider::before, .signup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(27, 42, 74, 0.12);
}

.signup-plan-note, .signup-upgrade-note {
  background: var(--gold-light);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  font-weight: 500;
}

.signup-key-box {
  background: var(--gold-light);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 16px;
}
.signup-key-box .lbl { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.signup-key-box code {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}
