﻿@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;500;600;700&family=Sarabun:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --red:       #CC2B1F;
  --red-deep:  #A82318;
  --red-cta:   #E03030;
  --red-bg:    #FFF3F3;
  --red-light: #FFE8E8;

  /* Ink */
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6B7280;
  --ink-300: #D1D5DB;
  --ink-100: #F3F4F6;

  /* Surface */
  --bg:       #F5F5F6;
  --surface:  #FFFFFF;
  --surface-2: #F0F0F2;
  --border:   #E4E4E7;

  /* Z-index */
  --z-sticky: 40;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  font-family: 'Sarabun', 'Noto Sans Thai', Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

/* ───── INNER WIDTH ───── */
.inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ───── HERO ───── */
.hero {
  background: #FFFFFF;
  padding: 96px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/grid-background.png') center center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.hero-glow {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red-cta);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-dot { animation: none; }
}

.hero-headline {
  font-family: 'Kanit', 'Noto Sans Thai', Tahoma, sans-serif;
  font-size: clamp(38px, 8vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-family: 'Kanit', 'Noto Sans Thai', Tahoma, sans-serif;
  font-weight: 300;
  font-size: clamp(19px, 4.5vw, 24px);
  color: var(--ink-700);
  line-height: 1.65;
  margin-top: -8px;
}

.hero-sub em {
  font-style: normal;
  color: var(--red);
}

.btn-hero {
  max-width: 320px;
  box-shadow: 0 0 40px -6px rgba(224, 48, 48, 0.30);
}

/* ───── SECTION WRAPPERS ───── */
.section {
  padding: 52px 0;
}

.section--alt {
  background: var(--surface-2);
}

.section--white {
  background: var(--surface);
}

.section-title {
  font-family: 'Kanit', 'Noto Sans Thai', Tahoma, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 24px;
  text-wrap: balance;
}

/* ───── PAIN POINTS ───── */
.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pain-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───── WHO IT'S FOR ───── */
.for-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.for-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.for-icon {
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #16A34A;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───── GALLERY ───── */
.gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}

.gallery-main {
  position: relative;
}

.gallery-main-view {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.gallery-arrow:hover { background: rgba(0,0,0,0.55); }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 12px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border: 2px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: border-color 0.15s, opacity 0.15s;
  padding: 0;
  background: none;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:hover { opacity: 0.9; }
.gallery-item.is-active { border-color: var(--red); opacity: 1; }

/* ───── FEATURE LIST ───── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───── WHY IT WORKS ───── */
.why-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 28px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
}

.check-icon {
  flex-shrink: 0;
  margin-top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ───── PRICING ───── */
.pricing-section {
  background: var(--surface);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/grid-background.png') center center / cover no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

.pricing-section .inner {
  position: relative;
}

.pricing-section .section-title {
  color: var(--ink-900);
  text-align: center;
  margin-bottom: 36px;
  font-size: clamp(20px, 5vw, 28px);
}

.pricing-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.2);
}

.pricing-product {
  font-family: 'Kanit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.price-current {
  font-family: 'Kanit', sans-serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1;
}

.price-original {
  font-size: 18px;
  color: var(--ink-300);
  text-decoration: line-through;
}

.price-urgency {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-urgency::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  flex-shrink: 0;
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.pricing-values {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.pricing-values li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-700);
  line-height: 1.4;
}

.pv-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #16A34A;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 14px;
}

.trust-icon {
  font-size: 14px;
  opacity: 0.7;
}

/* ───── FAQ ───── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--surface);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: background 0.1s;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q:hover { background: var(--ink-100); }

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-500);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] .faq-q::after { content: '−'; }

.faq-a {
  padding: 0 20px 18px;
  font-size: 16px;
  color: var(--ink-700);
  line-height: 1.7;
}

/* ───── BUTTONS ───── */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-cta);
  color: #FFFFFF;
  font-family: 'Kanit', 'Noto Sans Thai', Tahoma, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 17px 24px;
  border-radius: 10px;
  transition: background 0.15s var(--ease-out), transform 0.1s var(--ease-out);
  width: 100%;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

/* ───── FOOTER ───── */
.footer {
  background: var(--ink-900);
  font-size: 14px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 24px 20px 96px;
}

@media (min-width: 640px) {
  .footer { padding-bottom: 28px; }
}

/* ───── STICKY BOTTOM BAR (mobile) ───── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  z-index: var(--z-sticky);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.sticky-price {
  font-family: 'Kanit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.sticky-original {
  font-family: 'Sarabun', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-500);
  text-decoration: line-through;
}

.sticky-btn {
  background: var(--red-cta);
  color: #FFFFFF;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.sticky-btn:hover { background: var(--red-deep); }

@media (min-width: 640px) {
  .sticky-bar { display: none; }
}

/* ───── CLOSING SECTION ───── */
.closing-section {
  padding-bottom: 52px;
}

.closing-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

/* ───── DIVIDER ───── */
.section + .section--white,
.section + .section--alt {
  border-top: 1px solid var(--border);
}

/* ───── FOCUS ───── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ───── REDUCED MOTION ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
