/* หุ้นรู้งี้ — สีและฟอนต์ตามเว็บเดิม: น้ำเงินเข้ม + เหลือง, Sarabun */
:root {
  --navy: #0b1b34;
  --navy-2: #142a4a;
  --navy-3: #1d4b7c;
  --yellow: #ffda48;
  --yellow-2: #ffd020;
  --text: #111111;
  --muted: #5a6575;
  --line: #e6e9ef;
  --panel: #f5f7fa;
  --white: #ffffff;
  --green: #1a7f37;
  --red: #c62828;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 27, 52, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Sarabun", "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 26%;
  background: var(--navy); flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-text strong { font-size: 20px; color: var(--navy); }
.logo-text span { font-size: 12px; color: var(--muted); }
.nav { background: var(--navy); color: #fff; }
.nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 12px 16px; white-space: nowrap; font-weight: 600; font-size: 15px; opacity: .9; }
.nav a:hover { opacity: 1; background: rgba(255,255,255,.07); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px; font-weight: 800; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 208, 32, .35); }
.btn-yellow:hover { background: var(--yellow-2); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: wait; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #16345f 55%, var(--navy-3) 100%);
  color: #fff; padding: 48px 0 44px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: center; }
.eyebrow {
  display: inline-block; background: rgba(255,218,72,.16); color: var(--yellow);
  border: 1px solid rgba(255,218,72,.35); border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 700; margin-bottom: 14px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; font-weight: 800; }
.hero h1 .hl { color: var(--yellow); }
.nw { white-space: nowrap; }
.hero p.sub { margin: 0 0 22px; color: rgba(255,255,255,.86); font-size: 18px; max-width: 540px; }
.hero-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.hero-price strong { font-size: 40px; font-weight: 800; color: var(--yellow); line-height: 1; }
.hero-price span { color: rgba(255,255,255,.75); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: rgba(255,255,255,.8); padding: 0; margin: 0; list-style: none; }
.assure li::before { content: "✓ "; color: var(--yellow); font-weight: 800; }
.hero-visual {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.hero-visual img { border-radius: 12px; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: left top; }

/* ---------- Strip ---------- */
.strip { background: var(--yellow); color: var(--navy); font-weight: 700; }
.strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding: 12px 0; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--panel); }
.section.dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head .kicker { color: var(--navy-3); font-weight: 800; font-size: 14px; letter-spacing: .3px; margin-bottom: 6px; }
.section.dark .section-head .kicker { color: var(--yellow); }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; color: var(--navy); }
.section.dark .section-head h2 { color: #fff; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 17px; }
.section.dark .section-head p { color: rgba(255,255,255,.75); }

/* Pain points */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.pain .ico { font-size: 26px; margin-bottom: 8px; }
.pain h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.pain p { margin: 0; color: var(--muted); font-size: 15px; }
.bridge { text-align: center; margin: 28px auto 0; font-size: 19px; font-weight: 700; color: var(--navy); max-width: 640px; }
.bridge .hl { background: linear-gradient(transparent 60%, rgba(255,218,72,.7) 60%); }

/* Tour (tabs + screenshot) */
.tour { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tour-tab {
  text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; color: var(--text);
}
.tour-tab strong { display: block; color: var(--navy); font-size: 16px; }
.tour-tab span { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.tour-tab:hover { border-color: #c9d3e1; }
.tour-tab[aria-selected="true"] { border-color: var(--navy); background: #f3f6fb; box-shadow: inset 4px 0 0 var(--yellow); }
.tour-view { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.tour-view img { width: 100%; border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; object-position: left top; }
.tour-caption { margin: 12px 4px 4px; color: var(--muted); font-size: 15px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.step .n {
  width: 38px; height: 38px; border-radius: 10px; background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; }

/* Compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare thead th.us { background: var(--yellow); color: var(--navy); }
.compare td.us { background: #fffbea; font-weight: 600; color: var(--navy); }
.compare td.them { color: var(--muted); }

/* Offer card */
.offer {
  display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border: 2px solid var(--navy);
  border-radius: 20px; overflow: hidden; box-shadow: 0 18px 48px rgba(11,27,52,.14); max-width: 980px; margin: 0 auto;
}
.offer-media { background: #eef2f7; padding: 18px; display: flex; align-items: center; }
.offer-media img { border-radius: 12px; width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: left top; }
.offer-body { padding: 28px; }
.badge { display: inline-block; background: #fff6cc; color: #7a5b00; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.offer-body h3 { margin: 0 0 6px; font-size: 24px; color: var(--navy); line-height: 1.3; }
.price { font-size: 44px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 10px 0 2px; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.price-note { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 30px; margin: 8px 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.pay-row span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; background: #fafbfc; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--navy-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Final CTA */
.final { text-align: center; }
.final h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); }
.final p { margin: 0 auto 22px; color: rgba(255,255,255,.8); max-width: 560px; font-size: 17px; }

/* Social */
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.social-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; text-align: center; transition: transform .15s, box-shadow .15s; }
.social-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.social-card .platform { font-weight: 800; color: var(--navy); }
.social-card .handle { color: var(--muted); font-size: 13px; }

/* Disclaimer */
.disclaimer {
  margin-top: 14px; padding: 10px 14px; background: #fff8e8; border: 1px solid #ffe6a3;
  border-radius: 10px; color: #6b5400; font-size: 13px; font-weight: 600;
}

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 36px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 20px; }
.footer h4 { margin: 0 0 10px; color: #fff; }
.footer p, .footer a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 7px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; font-size: 13px; color: rgba(255,255,255,.55); }

/* Sticky buy bar (mobile) */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11,27,52,.1); padding: 10px 16px; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%); transition: transform .2s ease;
}
.buybar.show { transform: translateY(0); }
.buybar .t { line-height: 1.2; }
.buybar .t strong { display: block; color: var(--navy); font-size: 20px; }
.buybar .t span { color: var(--muted); font-size: 12px; }

/* ---------- Simple pages (confirm / success / cancel / articles) ---------- */
.page { padding: 40px 0 72px; }
.page h1 { color: var(--navy); font-size: clamp(26px, 3.4vw, 34px); line-height: 1.3; margin: 0 0 8px; }
.page .lead { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.order-summary { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.order-summary img { width: 92px; border-radius: 8px; aspect-ratio: 16/10; object-fit: cover; object-position: left top; border: 1px solid var(--line); }
.order-summary .name { font-weight: 700; color: var(--navy); line-height: 1.35; }
.order-summary .amt { margin-left: auto; font-weight: 800; font-size: 22px; color: var(--navy); }
label { display: block; font-weight: 700; color: var(--navy); margin: 16px 0 6px; }
input[type="email"] {
  width: 100%; padding: 13px 16px; border: 1px solid #cfd6e1; border-radius: 10px; font-size: 16px; background: #fff;
}
input[type="email"]:focus { outline: 3px solid rgba(255,218,72,.6); border-color: var(--navy); }
.msg { margin: 12px 0 0; min-height: 1.4em; color: var(--red); font-weight: 600; }
.note { color: var(--muted); font-size: 14px; }
.next-steps { padding-left: 20px; }
.next-steps li { margin: 8px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .tour, .offer, .footer-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .tour-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tour-tab { min-width: 170px; }
  .tour-tab span { display: none; }
  .buybar { display: flex; }
  body.has-buybar { padding-bottom: 76px; }
  .header-cta { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .hero { padding: 32px 0; }
  .pain-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-text span { display: none; }
  .compare th, .compare td { padding: 10px; font-size: 14px; }
  .offer-body { padding: 22px; }
  .hero-actions .btn { flex: 1; }
  .order-summary img { width: 64px; }
  .order-summary .name { font-size: 15px; }
}
