/* SlipDeaw — สลิปเดียว : สไตล์หน้าขาย */
:root {
  --yellow: #FFD23F;
  --yellow-deep: #F2C227;
  --mint: #4CC9F0;
  --green: #2ECC71;
  --pink: #FF5C8A;
  --cream: #FFF8E7;
  --navy: #1B2A49;
  --navy-70: rgba(27, 42, 73, .7);
  --navy-50: rgba(27, 42, 73, .5);
  --line: rgba(27, 42, 73, .12);
  --white: #fff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(27, 42, 73, .08);
  --font-head: "Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
q { quotes: "\201C" "\201D"; font-style: normal; color: var(--navy); font-weight: 600; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 64px 0; }
.section-kicker {
  display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  letter-spacing: .02em; color: var(--navy); background: var(--yellow);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.section-lead { color: var(--navy-70); max-width: 640px; margin-bottom: 32px; }
.hl { color: var(--mint); }
.hl-pink { color: var(--pink); }
.hl-free { color: var(--green); font-weight: 700; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  min-height: 48px; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 210, 63, .45); }
.btn-primary:hover { background: var(--yellow-deep); box-shadow: 0 8px 22px rgba(255, 210, 63, .6); }
.btn-primary:disabled { background: #EAD98F; box-shadow: none; cursor: not-allowed; color: var(--navy-50); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; min-height: 54px; }
.btn-sm { padding: 10px 18px; font-size: .95rem; min-height: 40px; }
.btn-link { background: none; color: var(--navy-70); text-decoration: underline; padding: 10px 12px; border: 0; }
.btn-link:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 231, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.logo-slip { color: var(--navy); }
.logo-deaw { color: var(--mint); }
.logo-th { font-size: .85rem; font-weight: 500; color: var(--navy-70); margin-left: 8px; }
.site-nav { display: none; gap: 22px; }
.site-nav a { text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--navy-70); }
.site-nav a:hover { color: var(--navy); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; position: relative; overflow: hidden; }
.hero-inner { display: grid; gap: 28px; align-items: center; }
.eyebrow { font-family: var(--font-head); font-weight: 500; color: var(--navy-70); margin-bottom: 8px; font-size: .95rem; }
.hero-sub { font-family: var(--font-head); font-size: clamp(1.25rem, 3.5vw, 1.6rem); font-weight: 600; margin-bottom: 6px; }
.hero-sub strong { color: var(--navy); background: linear-gradient(transparent 55%, var(--yellow) 55%); padding: 0 4px; }
.hero-desc { color: var(--navy-70); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 14px; }
.hero-note { font-family: var(--font-head); font-weight: 500; color: var(--navy); display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.hero-art { position: relative; width: min(320px, 78vw); margin: 0 auto; aspect-ratio: 200 / 210; }
.hero-blob { position: absolute; inset: 6% -4% -2% -4%; background: radial-gradient(circle at 50% 60%, rgba(255, 210, 63, .55), rgba(255, 210, 63, 0) 70%); border-radius: 50%; }
.mascot { position: relative; width: 100%; height: auto; filter: drop-shadow(0 12px 20px rgba(27, 42, 73, .12)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-badge {
  position: absolute; font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: 6px 12px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow);
}
.badge-pass { left: -4%; top: 12%; color: var(--navy); border: 2px solid var(--mint); }
.badge-fast { right: -2%; bottom: 8%; color: var(--navy); border: 2px solid var(--green); }
@media (prefers-reduced-motion: reduce) { .mascot { animation: none; } html { scroll-behavior: auto; } }

/* ---------- ความหมาย 3 อย่าง ---------- */
.meaning { padding: 12px 0 40px; }
.meaning-grid { display: grid; gap: 12px; }
.meaning-item {
  background: var(--white); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px; border-left: 6px solid var(--yellow);
}
.meaning-item:nth-child(2) { border-left-color: var(--mint); }
.meaning-item:nth-child(3) { border-left-color: var(--green); }
.meaning-word { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.meaning-text { color: var(--navy-70); font-size: .95rem; line-height: 1.5; }

/* ---------- ปัญหา (การ์ตูน) ---------- */
.problems { background: var(--white); }
.comic-grid { display: grid; gap: 16px; margin-top: 8px; }
.comic-panel {
  position: relative; background: var(--cream); border: 3px solid var(--navy); border-radius: 18px;
  padding: 18px 18px 14px; box-shadow: 6px 6px 0 var(--yellow);
}
.comic-panel h3 { margin: 10px 0 4px; font-size: 1.15rem; }
.comic-panel p { margin: 0; color: var(--navy-70); font-size: .95rem; line-height: 1.55; }
.panel-no {
  position: absolute; top: -14px; left: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--yellow); font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.panel-art { background: var(--white); border-radius: 12px; border: 2px dashed var(--line); }
.panel-art svg { width: 100%; height: auto; }

/* ---------- วิธีทำงาน ---------- */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); position: relative; }
.step-icon { width: 64px; height: 64px; margin-bottom: 10px; }
.step-no { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--mint); }
.step h3 { margin: 2px 0 6px; }
.step p { margin: 0; color: var(--navy-70); font-size: .95rem; line-height: 1.6; }

/* ---------- สิ่งที่ได้ ---------- */
.features { background: var(--white); }
.feature-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--cream); border-radius: 16px; padding: 18px; }
.feature h3 { font-size: 1.05rem; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--navy-70); font-size: .95rem; line-height: 1.6; }
.feature-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.feature-icon svg { width: 24px; height: 24px; }
.icon-mint { background: rgba(76, 201, 240, .18); color: var(--mint); }
.icon-yellow { background: rgba(255, 210, 63, .35); color: #D9A700; }
.icon-pink { background: rgba(255, 92, 138, .16); color: var(--pink); }
.icon-green { background: rgba(46, 204, 113, .18); color: var(--green); }
.icon-navy { background: rgba(27, 42, 73, .1); color: var(--navy); }

/* ---------- ราคา ---------- */
.plans { display: grid; gap: 18px; margin-top: 8px; }
.plan {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 2px solid transparent; display: flex; flex-direction: column; gap: 6px;
}
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; font-family: var(--font-head); }
.plan-price .amt { font-size: 3rem; font-weight: 700; line-height: 1; }
.plan-price .per { color: var(--navy-70); font-weight: 500; }
.plan-quota { font-size: 1.05rem; margin: 0; }
.plan-quota strong { color: var(--mint); font-family: var(--font-head); font-size: 1.3rem; }
.plan-line { font-size: .92rem; margin: 0; color: var(--navy-70); }
.plan-line strong { font-family: var(--font-head); }
.plan-for { color: var(--navy-70); font-size: .92rem; margin: 0 0 12px; flex: 1; }
.plan .btn { width: 100%; }
.plan-hot { border-color: var(--yellow); box-shadow: 0 16px 40px rgba(255, 210, 63, .35); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--pink); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .85rem;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-notes { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.pricing-notes li { background: var(--white); border-radius: 14px; padding: 14px 16px; font-size: .95rem; line-height: 1.6; border-left: 5px solid var(--mint); }
.pricing-cta { text-align: center; margin-top: 32px; }
.pricing-cta p { margin: 14px 0 0; color: var(--navy-70); font-size: .95rem; }

/* ---------- เดโม ---------- */
.demo { background: var(--white); }
.demo-box { background: var(--cream); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 640px; }
.dropzone {
  display: block; border: 3px dashed var(--mint); border-radius: 16px; background: var(--white);
  padding: 28px 16px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-over { background: rgba(76, 201, 240, .1); border-color: var(--navy); outline: none; }
.drop-idle { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop-idle svg { width: 56px; height: 56px; margin-bottom: 6px; }
.drop-idle strong { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.drop-idle span { color: var(--navy-70); font-size: .9rem; }
.drop-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop-preview img { max-height: 260px; width: auto; border-radius: 10px; box-shadow: var(--shadow); }
.drop-preview #slip-name { font-size: .85rem; color: var(--navy-70); word-break: break-all; }
.drop-change { font-family: var(--font-head); font-size: .9rem; color: var(--mint); font-weight: 500; }
.demo-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.demo-actions .btn-primary { min-width: 200px; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(27, 42, 73, .25); border-top-color: var(--navy); animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result { margin-top: 18px; border-radius: 16px; padding: 18px 20px; border: 2px solid; background: var(--white); }
.result-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.result-title svg { width: 28px; height: 28px; flex: none; }
.result p { margin: 0; }
.result-msg { font-size: 1rem; }
.result-pass { border-color: var(--green); background: rgba(46, 204, 113, .08); }
.result-pass .result-title { color: #1E9C55; }
.result-fail { border-color: var(--pink); background: rgba(255, 92, 138, .08); }
.result-fail .result-title { color: #D93D6B; }
.result-warn { border-color: var(--yellow); background: rgba(255, 210, 63, .18); }
.result-warn .result-title { color: var(--navy); }
.result-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0 0; font-size: .97rem; }
.result-grid dt { color: var(--navy-70); font-weight: 500; }
.result-grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-remaining { margin-top: 12px; font-size: .88rem; color: var(--navy-70); }
.result .btn { margin-top: 12px; }
.demo-note { margin: 14px 0 0; font-size: .85rem; color: var(--navy-70); text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 8px; max-width: 760px; }
.faq-list details { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 0 18px; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 3px solid var(--mint); border-bottom: 3px solid var(--mint); transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { margin: 0; padding: 0 0 18px; color: var(--navy-70); line-height: 1.7; }

/* ---------- ปิดการขาย ---------- */
.closing { background: var(--yellow); }
.closing-inner { display: grid; gap: 20px; align-items: center; text-align: center; justify-items: center; }
.closing-duck { width: 160px; height: auto; }
.closing h2 { margin-bottom: 8px; }
.closing p { color: var(--navy); max-width: 520px; margin: 0 auto 8px; }
.closing .hero-actions { justify-content: center; }
.closing .btn-primary { background: var(--navy); color: var(--yellow); box-shadow: none; }
.closing .btn-primary:hover { background: #22345a; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .85); padding: 40px 0 110px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand p { margin: 6px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .65); }
.site-footer .logo-slip { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-by { margin: 0; font-size: .92rem; }
.footer-by a { color: var(--yellow); font-weight: 600; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; width: fit-content;
  font-family: var(--font-head); font-size: .85rem; font-weight: 500; color: var(--white);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 12px; border-radius: 999px;
}
.footer-badge svg { width: 18px; height: 18px; }

/* ---------- ปุ่มลอย ---------- */
.float-btns { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; padding: 10px 16px 10px 12px;
  border-radius: 999px; box-shadow: 0 8px 20px rgba(27, 42, 73, .25); transition: transform .15s;
}
.float-btn:hover { transform: translateY(-2px); }
.float-btn svg { width: 26px; height: 26px; }
.float-line { background: #06C755; }
.float-fb { background: #1877F2; }

/* ---------- จอกว้าง ---------- */
@media (min-width: 640px) {
  .meaning-grid { grid-template-columns: repeat(3, 1fr); }
  .comic-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature:last-child { grid-column: 1 / -1; }
  .closing-inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; }
  .closing p { margin-left: 0; }
  .closing .hero-actions { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-by, .footer-badge { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .site-nav { display: flex; }
  .hero { padding: 56px 0 32px; }
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-art { width: 100%; max-width: 380px; margin: 0 0 0 auto; }
  .comic-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan-hot { transform: translateY(-10px); }
  .pricing-notes { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 60px; }
}
