/* หน้าขาย Easyday Booth — โทนสว่าง เรียบ · 1 จอ = 1 เรื่อง · ค่าสีอยู่ใน tokens.css */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center-text { text-align: center; }
.center-text p:not(.eyebrow) { color: var(--ink-2); max-width: 640px; margin: 18px auto 0; }

/* แถบบน */
.draft-bar { background: #FFE58A; color: #3A2E00; text-align: center; font-size: 14px; padding: 6px 16px; }
.note-bar { background: var(--ink); color: var(--on-dark); text-align: center; font-size: 14px; padding: 9px 16px; }
.note-bar a { color: var(--accent-on-dark); }

/* เมนู */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 16px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo .lg-bowl { fill: none; stroke: var(--ink); stroke-width: 8; }
.logo .lg-stem { fill: var(--ink); }
.logo .lg-sun { fill: #F2B33D; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
.nav nav a.lang { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; font-weight: 600; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ตัวหนังสือ */
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin-bottom: 12px; }
.eyebrow-dark { color: var(--accent-on-dark); text-align: center; }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
.h-center { text-align: center; }
.h-dark { color: var(--on-dark); }
.sub-center { text-align: center; color: var(--ink-2); margin: 14px auto 0; max-width: 640px; }
.fine { font-size: 13px; color: var(--ink-2); margin-top: 18px; }
.fine-dark { color: var(--on-dark-2); text-align: center; }

/* 1 หัว */
.hero { text-align: center; padding: 72px 24px 0; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 8vw, 96px); line-height: 1.04; letter-spacing: -0.035em; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 760px; margin: 22px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .fine { margin-top: 16px; }

.devices { position: relative; max-width: 1040px; margin: 56px auto 0; padding-bottom: 72px; }
.mac { margin: 0 auto; width: 88%; }
.mac-screen { background: #0D0D0F; border-radius: 18px 18px 0 0; padding: 2.2% 2.2% 2.6%; box-shadow: var(--shadow); }
.mac-screen img { border-radius: 4px; }
.mac-base { height: 18px; margin: 0 -6%; background: linear-gradient(#D9D9DE, #B9B9BF); border-radius: 0 0 14px 14px; position: relative; }
.mac-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 7px; transform: translateX(-50%); background: #A9A9AF; border-radius: 0 0 10px 10px; }
.ipad { position: absolute; left: -2%; bottom: 0; width: 34%; margin: 0; background: #1A1A1C; padding: 1.6%; border-radius: 22px; box-shadow: var(--shadow); }
.ipad img { border-radius: 10px; }
.phone { position: absolute; right: 0; bottom: 18px; width: 14%; margin: 0; background: #1A1A1C; padding: 0.9%; border-radius: 26px; box-shadow: var(--shadow); }
.phone img { border-radius: 20px; }

/* แถบเนื้อหา */
.band { padding: 112px 0; }
.band-alt { background: var(--bg-alt); }
.band-dark { background: var(--bg-dark); color: var(--on-dark); }

/* 2 จุดเด่น */
.four { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.four li { background: var(--bg); border-radius: var(--radius); padding: 30px 24px; }
.four svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.four h3 { font-size: 20px; margin-bottom: 10px; }
.four p { color: var(--ink-2); font-size: 15px; }

/* 3 ทีละเรื่อง */
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.row-flip .row-text { order: 2; }
.row-text h2 { margin-bottom: 20px; }
.row-text > p { color: var(--ink-2); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ตัวเลข */
.stats { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats b { display: block; font-size: clamp(44px, 6vw, 72px); line-height: 1.1; letter-spacing: -0.02em; }
.stats span { display: block; color: var(--on-dark-2); font-size: 15px; margin-top: 10px; }

/* 4 เทียบ */
.table-wrap { overflow-x: auto; margin-top: 48px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.compare thead th:nth-child(2) { color: var(--accent); }
.compare tbody th { font-weight: 500; width: 36%; }
.compare tbody td:nth-child(2) { font-weight: 600; }
.compare tbody td:nth-child(3) { color: var(--ink-2); }

/* 5 ราคา */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan { background: var(--bg); border-radius: var(--radius-lg); padding: 36px 30px; display: flex; flex-direction: column; position: relative; border: 1.5px solid transparent; }
.plan-main { border-color: var(--ink); }
.plan .tag { position: absolute; top: -13px; left: 30px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 34px; font-weight: 700; margin-top: 14px; line-height: 1.15; white-space: nowrap; }
.plan .price s { font-size: 17px; color: var(--ink-3); font-weight: 500; }
.plan .per { color: var(--ink-2); font-size: 15px; }
.plan .ticks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }

/* 6 ขั้นตอน */
.steps { list-style: none; padding: 0; margin: 56px 0 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.steps b { display: block; font-size: 15px; color: var(--accent); margin-bottom: 6px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* 8 คำถาม */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding: 0 0 22px; }

/* ท้ายหน้า */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--ink-2); }
.foot a { color: var(--ink-2); text-decoration: underline; }
.foot .fine { color: var(--ink-3); }

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 960px) {
  .four, .stats { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; gap: 36px; }
  .row-flip .row-text { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .br-wide { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .hero { padding-left: 16px; padding-right: 16px; }
  .nav-in { padding: 0 16px; gap: 12px; }
  .nav nav { margin-left: auto; }
  .nav nav a:not(.lang) { display: none; }
  .nav .btn { margin-left: 0; }
  .band { padding: 80px 0; }
  .hero { padding-top: 48px; }
  .cta .btn { width: 100%; }
  .devices { padding-bottom: 40px; margin-top: 40px; }
  .mac { width: 100%; }
  .mac-base { margin: 0 -4%; height: 12px; }
  .ipad { width: 46%; left: -4%; border-radius: 14px; }
  .phone { width: 22%; right: -2%; border-radius: 16px; }
  .phone img { border-radius: 12px; }
  .four, .stats, .steps { grid-template-columns: 1fr; }
  .stats { gap: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
