/* ============================================================
   DIGITALKIT — sales-style.css  (Responsive Edition)
   Editorial Minimal · Clean White · Professional
   Font: Noto Sans Thai
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ── */
:root {
  --bg:          #ffffff;
  --bg2:         #fafafa;
  --bg3:         #f4f4f5;
  --surface:     #ffffff;
  --border:      #e4e4e7;
  --border2:     #d4d4d8;
  --text:        #09090b;
  --text2:       #3f3f46;
  --dim:         #71717a;
  --dim2:        #a1a1aa;
  --accent:      #09090b;
  --accent-inv:  #ffffff;
  --green:       #16a34a;
  --green-bg:    #f0fdf4;
  --red:         #dc2626;
  --nav-h:       57px;
  --r:           12px;
  --r-lg:        16px;
  --r-xl:        20px;
  --sh-sm:       0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --sh:          0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --sh-lg:       0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --transition:  .18s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:          #09090b;
  --bg2:         #111113;
  --bg3:         #18181b;
  --surface:     #111113;
  --border:      #27272a;
  --border2:     #3f3f46;
  --text:        #fafafa;
  --text2:       #e4e4e7;
  --dim:         #a1a1aa;
  --dim2:        #71717a;
  --accent:      #fafafa;
  --accent-inv:  #09090b;
  --green:       #22c55e;
  --green-bg:    rgba(34,197,94,0.08);
  --sh-sm:       0 1px 3px rgba(0,0,0,0.3);
  --sh:          0 4px 16px rgba(0,0,0,0.4);
  --sh-lg:       0 12px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans Thai', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.75rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 0.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
[data-theme="dark"] nav { background: rgba(9,9,11,0.85); }

.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: -.3px;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--text);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform var(--transition);
}
.nav-logo:hover .nav-logo-mark { transform: scale(1.06); }
.nav-logo-mark svg { width: 15px; height: 15px; }

.nav-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.nav-link {
  font-size: 13px; font-weight: 500; color: var(--dim);
  text-decoration: none; padding: 5px 10px; border-radius: 7px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-radius: 99px; padding: 5px 10px 5px 7px;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--text); }
.toggle-track {
  width: 26px; height: 15px;
  background: var(--border2);
  border-radius: 99px; position: relative;
  flex-shrink: 0; transition: background .25s;
}
[data-theme="dark"] .toggle-track { background: var(--text); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 0.5px solid rgba(0,0,0,0.1);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .25s;
}
[data-theme="dark"] .toggle-thumb { transform: translateX(11px); background: var(--accent-inv); }
.toggle-label { font-size: 12px; font-weight: 600; color: var(--dim2); }

.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--accent); color: var(--accent-inv);
  padding: 7px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; letter-spacing: -.1px;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--sh-sm); white-space: nowrap; flex-shrink: 0;
}
.nav-cta:hover { opacity: .85; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: calc(88vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: .5; pointer-events: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg2); border: 0.5px solid var(--border2);
  color: var(--dim); font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 99px; margin-bottom: 2rem;
  letter-spacing: .2px;
  animation: fadeUp .5s ease both;
  position: relative;
}

.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--green-bg);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--green-bg); }
  50%       { box-shadow: 0 0 0 5px transparent; }
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -1.5px; margin-bottom: 1.25rem;
  color: var(--text); position: relative;
  animation: fadeUp .5s .08s ease both;
}

.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--dim); max-width: 460px;
  line-height: 1.75; margin-bottom: 2.5rem;
  animation: fadeUp .5s .16s ease both;
  position: relative;
}

.hero-btns {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp .5s .24s ease both; position: relative;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: var(--accent-inv);
  padding: 12px 24px; border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: -.2px;
  text-decoration: none; transition: all var(--transition);
  box-shadow: var(--sh-sm);
}
.btn-primary:hover { opacity: .85; transform: translateY(-2px); box-shadow: var(--sh); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0.5px solid var(--border2); color: var(--dim);
  padding: 12px 22px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; transition: all var(--transition);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); background: var(--bg2); }

.proof {
  margin-top: 2.25rem; font-size: 13px; color: var(--dim2);
  animation: fadeUp .5s .32s ease both; position: relative;
  display: flex; align-items: center; gap: 8px; justify-content: center;
  flex-wrap: wrap;
}
.proof-sep { opacity: .3; }
.proof span { color: var(--text); font-weight: 600; }

/* ── SECTION HELPERS ── */
.section-inner { max-width: 880px; margin: 0 auto; }

.section-eyebrow,
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--dim2); margin-bottom: 10px;
  text-align: center;
}

.accent { color: var(--text); position: relative; }
.accent::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 3px;
  background: var(--text); border-radius: 2px;
  opacity: .18;
}

#features, #pricing { scroll-margin-top: calc(var(--nav-h) + 16px); }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -.5px;
  color: var(--text); text-align: center; margin-bottom: .75rem;
}
.section-sub {
  font-size: 15px; color: var(--dim);
  max-width: 460px; margin: 0 auto 3rem;
  line-height: 1.7; text-align: center;
}

/* ══════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════ */
.features {
  padding: 6rem 1.5rem;
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.feat-card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease, background var(--transition);
}
.feat-card.visible { opacity: 1; transform: translateY(0); }
.feat-card:hover { background: var(--bg2); }

.feat-icon {
  width: 34px; height: 34px;
  background: var(--bg3);
  border: 0.5px solid var(--border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feat-icon svg {
  width: 17px; height: 17px;
  stroke: var(--text2); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.feat-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.feat-desc  { font-size: 13px; color: var(--dim); line-height: 1.65; }

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing { padding: 6rem 1.5rem; background: var(--bg); }

.pricing-card {
  max-width: 420px; margin: 0 auto;
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 2.5rem 2.25rem;
  position: relative;
  box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease, background var(--transition);
}
.pricing-card.visible { opacity: 1; transform: translateY(0); }

.popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-inv);
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  padding: 4px 16px; border-radius: 99px;
  white-space: nowrap;
}

.price-label { font-size: 12px; font-weight: 600; color: var(--dim2); margin-bottom: 5px; letter-spacing: .2px; }
.price-cross { font-size: 14px; color: var(--dim2); text-decoration: line-through; margin-bottom: 6px; }
.price-main {
  font-size: 60px; font-weight: 800; line-height: 1;
  letter-spacing: -2.5px; color: var(--text); margin-bottom: 4px;
}
.price-main sup { font-size: 24px; font-weight: 700; vertical-align: super; letter-spacing: 0; }
.price-once { font-size: 13px; color: var(--dim2); margin-bottom: 1.75rem; }
.price-divider { height: 0.5px; background: var(--border); margin: 1.5rem 0; }

.price-features { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: 2px; }
.price-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; padding: 8px 0; color: var(--text2);
  border-bottom: 0.5px solid var(--border);
}
.price-feat:last-child { border-bottom: none; }
.price-feat-icon { color: var(--green); flex-shrink: 0; font-size: 13px; font-weight: 700; }

.buy-btn {
  display: block; width: 100%;
  background: var(--accent); color: var(--accent-inv);
  font-family: 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: -.2px;
  padding: 14px; border: none; border-radius: var(--r);
  cursor: pointer; transition: all var(--transition);
  box-shadow: var(--sh-sm);
}
.buy-btn:hover { opacity: .85; transform: translateY(-1px); box-shadow: var(--sh); }
.buy-btn:active { transform: translateY(0); }

.guarantee {
  margin-top: 13px; font-size: 12px; color: var(--dim2);
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: var(--r-xl); padding: 2rem;
  max-width: 400px; width: 100%;
  text-align: center; position: relative;
  box-shadow: var(--sh-lg);
  animation: popIn .25s cubic-bezier(.34,1.4,.64,1) both;
  color: var(--text);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg3); border: 0.5px solid var(--border);
  color: var(--dim); font-size: 14px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: .4rem; letter-spacing: -.3px; }
.modal .modal-sub { font-size: 13px; color: var(--dim); margin-bottom: 1.5rem; line-height: 1.6; }

.qr-placeholder {
  width: 130px; height: 130px;
  background: var(--bg2); border: 0.5px solid var(--border2);
  border-radius: var(--r); margin: 0 auto 1rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--dim); gap: 6px;
}
.qr-placeholder svg { width: 30px; height: 30px; stroke: var(--dim2); }
.qr-placeholder small { font-size: 10px; letter-spacing: .5px; color: var(--dim2); }

.steps-list { text-align: left; margin-bottom: 1.25rem; }
.step-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 0.5px solid var(--border);
}
.step-row:last-child { border-bottom: none; }
.step-num-sm {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--accent); color: var(--accent-inv);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.step-text { font-size: 13px; line-height: 1.55; color: var(--text2); }
.step-text strong { font-weight: 700; color: var(--text); }

.modal-line-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #06c755; color: #fff;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; margin-top: 1rem;
  transition: opacity var(--transition);
}
.modal-line-btn:hover { opacity: .85; }

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
.testimonials {
  padding: 6rem 1.5rem;
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.testi-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.4rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, box-shadow var(--transition), border-color var(--transition);
}
.testi-card.visible { opacity: 1; transform: translateY(0); }
.testi-card:hover { box-shadow: var(--sh); border-color: var(--border2); }
.testi-stars { font-size: 12px; color: #f59e0b; margin-bottom: 10px; letter-spacing: 1px; }
.testi-text  { font-size: 14px; line-height: 1.7; color: var(--dim); margin-bottom: 14px; }
.testi-author { font-size: 12px; font-weight: 700; color: var(--dim2); }

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq { padding: 5rem 1.5rem; background: var(--bg); }
.faq-list { max-width: 600px; margin: 0 auto; }

.faq-item { border-bottom: 0.5px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-family: 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 14px; font-weight: 600; text-align: left;
  padding: 1.1rem 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--dim); }
.faq-icon {
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--bg3); border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-style: normal; font-size: 14px;
  transition: transform .25s, background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--border2); }
.faq-a {
  font-size: 13px; color: var(--dim); line-height: 1.75;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .25s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.1rem; }

/* ══════════════════════════════════════════
   FOOTER CTA + FOOTER
   ══════════════════════════════════════════ */
.footer-cta {
  padding: 6rem 1.5rem; text-align: center;
  background: var(--bg2);
  border-top: 0.5px solid var(--border);
}
.footer-cta h2 {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 800; letter-spacing: -.5px;
  margin-bottom: .875rem; color: var(--text);
}
.footer-cta p { font-size: 15px; color: var(--dim); margin-bottom: 2rem; }

footer {
  border-top: 0.5px solid var(--border);
  text-align: center; padding: 1.5rem;
  font-size: 12px; color: var(--dim2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
footer svg { opacity: .5; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════ */

/* ── Large tablet / small desktop (≤ 960px) ── */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 1.25rem; }
  .nav-link { display: none; }
  .toggle-label { display: none; }

  /* Hero */
  .hero { padding: 4rem 1.25rem 3rem; min-height: auto; }
  h1 { letter-spacing: -1px; }
  .hero-sub { font-size: 14px; }

  /* Sections */
  .features, .pricing, .testimonials, .footer-cta { padding: 4.5rem 1.25rem; }
  .faq { padding: 4rem 1.25rem; }

  /* Testimonials: 1 column on narrow tablet */
  .testi-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  /* Nav */
  nav { padding: 0 1rem; height: 52px; }
  .nav-cta { padding: 6px 13px; font-size: 12px; }

  /* Hero */
  .hero { padding: 3.5rem 1rem 3rem; }
  h1 { letter-spacing: -.8px; }
  .btn-primary, .btn-ghost { font-size: 14px; padding: 11px 18px; }
  .proof { font-size: 12px; }

  /* Sections */
  .features { padding: 4rem 1rem; }
  .pricing  { padding: 4rem 1rem; }
  .testimonials { padding: 4rem 1rem; }
  .faq { padding: 3.5rem 1rem; }
  .footer-cta { padding: 4rem 1rem; }

  /* Feature grid: 1 column */
  .features-grid { grid-template-columns: 1fr; }

  /* Pricing card */
  .pricing-card { padding: 2rem 1.5rem; }

  /* Modal */
  .modal { padding: 1.75rem 1.25rem; }
  .modal h3 { font-size: 16px; }

  /* FAQ */
  .faq-q { font-size: 13px; }
}

/* ── Small mobile (≤ 400px) ── */
@media (max-width: 400px) {
  nav { padding: 0 .875rem; }
  .hero { padding: 3rem .875rem 2.5rem; }
  .features, .pricing, .testimonials, .faq, .footer-cta { padding: 3rem .875rem; }

  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }

  .pricing-card { padding: 1.75rem 1.25rem; }
  .price-main { font-size: 48px; }

  /* Nav: hide toggle on very small screens */
  .theme-toggle { display: none; }
}