/*
 * หน้าขายเว็บนี้ดี — อัตลักษณ์ v2 (ครามคุมแดงทอง) · โครงและจังหวะอ้างอิงจาก weaveos.com (เฉพาะเลย์เอาต์/ลูกเล่น — เนื้อหา ภาพ โลโก้ เป็นของเว็บนี้ดีทั้งหมด)
 * ค่าสี/ฟอนต์ตรงกับ marketing/brand/assets/tokens.css — แต่คัดลอกมาไว้ที่นี่เพราะ site/ ต้อง deploy แยกได้ทั้งโฟลเดอร์
 */
@font-face { font-family: "Kanit"; src: url("../assets/fonts/Kanit-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../assets/fonts/Kanit-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("../assets/fonts/Kanit-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/IBMPlexSansThai-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/IBMPlexSansThai-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Thai"; src: url("../assets/fonts/IBMPlexSansThai-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Sriracha"; src: url("../assets/fonts/Sriracha-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --indigo: #2f3fb0;
  --indigo-deep: #1f2a80;
  --red: #d6312b;
  --red-deep: #b8231f;
  --gold: #e8b04a;
  /* พื้นขาวโทนเย็น — เจ้าของโปรเจกต์ขอ 28 ก.ย. 2026 (เดิมขาวนวล #fffbf6 ตาม BRAND-GUIDE v2 ดูอมเหลือง) */
  /* พื้นขาวโทนเย็น (28 ก.ย. 2026) — --page = --wnd-paper · --paper = --wnd-paper-soft ใน brand/assets/tokens.css */
  --paper: #fafbfd;
  --page: #f3f5f9;
  --card: #ffffff;
  --mist: #eef1fb;
  --ink: #151833;
  --ink-2: #555a74;
  --line: #e3e7ef;
  --ok: #1f7a4d;

  --f-display: "Kanit", "IBM Plex Sans Thai", sans-serif;
  --f-body: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif;
  --f-hand: "Sriracha", "IBM Plex Sans Thai", cursive;
  --f-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 32px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 30px 80px rgba(21, 24, 51, .10);
  --shadow-sm: 0 10px 30px rgba(21, 24, 51, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.7 var(--f-body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* 24px = ตัวใหญ่ตามเกณฑ์ AA (3:1) — แดงแบรนด์บนพื้นเย็นได้ 4.44 ไม่พอสำหรับตัวเล็ก */
.eyebrow { font: 400 24px/1.2 var(--f-hand); color: var(--red); display: inline-block; }
.eyebrow--gold { color: var(--gold); }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-2); max-width: 560px; }
.red { color: var(--red); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ปุ่ม — ปุ่มหลักเป็นครามเสมอ (BRAND-GUIDE v2) */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font: 600 16px/1.2 var(--f-body);
  text-decoration: none; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease); will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(47, 63, 176, .25); }
.btn--primary:hover { background: var(--indigo-deep); box-shadow: 0 14px 30px rgba(47, 63, 176, .3); }
.btn--ghost { background: rgba(21, 24, 51, .05); color: var(--ink); }
.btn--ghost:hover { background: rgba(21, 24, 51, .09); }
.btn--line { border: 2px solid var(--indigo); color: var(--indigo); padding: 11px 20px; }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }

/* ── เมนู: ติดบน แล้วหดเป็นแคปซูลลอยเมื่อเลื่อน (GSAP สลับคลาส is-float) ── */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.nav__bar { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: 28px;
  padding: 8px 10px 8px 14px; border-radius: 18px; transition: background-color .35s, box-shadow .35s, width .5s var(--ease), padding .35s; }
.nav.is-float .nav__bar { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(21, 24, 51, .10), 0 0 0 1px rgba(21, 24, 51, .05); width: min(1000px, 100% - 2 * var(--gutter)); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: auto; display: flex; gap: 8px; }

/* ── หัวเว็บ: แมวกลาง ไอคอนลอยรอบ ── */
.hero { position: relative; text-align: center; padding: 10px 0 90px; overflow-x: clip; }
.hero__stage { position: relative; height: clamp(380px, 46vw, 560px); max-width: 1160px; margin: 0 auto; }
.hero__cat { position: absolute; left: 0; right: 0; margin-inline: auto; bottom: 20px; width: clamp(353px, 50.4vw, 655px); /* ไม่ใช้ translateX(-50%) — GSAP คุม transform (แมวเอียงตามเมาส์) แล้วจะทับค่านี้จนแมวเลื่อนไปขวา */ z-index: 5; pointer-events: none; }
.hero__cat img { width: 100%; filter: drop-shadow(0 30px 30px rgba(21, 24, 51, .14)); }
.hero__floor { position: absolute; left: 50%; bottom: 8px; width: clamp(260px, 34vw, 420px); height: 46px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(21, 24, 51, .12), transparent); }
.tile { position: absolute; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center;
  z-index: 1; }
/* ไอคอน 3D ชุดเว็บนี้ดี — ลอยเปล่า ไม่มีการ์ดรอง เงาตามรูปทรงด้วย drop-shadow */
.tile img { width: 118%; max-width: none; height: 118%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(21, 24, 51, .16)); transition: transform .3s var(--ease), filter .3s var(--ease); pointer-events: none; }
a.tile { text-decoration: none; cursor: pointer; }
.tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.tile:hover img, .tile:focus-visible img, .tile.is-active img { transform: scale(1.12) translateY(-4px); filter: drop-shadow(0 22px 24px rgba(47, 63, 176, .28)); }
/* ป้ายชื่อใต้ชิ้น — ขึ้นเมื่อชี้/โฟกัส (แบบต้นแบบ) */
.tile__tip { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); padding: 5px 12px; border-radius: 9px; white-space: nowrap;
  background: rgba(250, 251, 253, .95); border: 1px solid rgba(21, 24, 51, .08); box-shadow: var(--shadow-sm); color: var(--ink);
  font: 600 13px/1.3 var(--f-body); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.tile:hover .tile__tip, .tile:focus-visible .tile__tip, .tile.is-active .tile__tip { opacity: 1; transform: translate(-50%, 12px); }
/* โหมดโคจร (JS คุมตำแหน่งด้วย transform) — ไม่มี JS ใช้ตำแหน่งตายตัวด้านบนแทน */
.hero__stage.is-orbit .tile { left: 0; top: 0; right: auto; will-change: transform; }
/* ชั้นซูม: คลิกชิ้นในวง → กล้องเลื่อนและขยายเข้าหาชิ้นนั้น (JS คุม transform) */
.hero__zoom { position: absolute; inset: 0; transform-origin: 0 0; }
/* ตอนซูม ตัดภาพไว้ในกรอบหัวเว็บ (แบบต้นแบบ) — ไม่ให้ล้นขึ้นไปหลังเมนู */
.hero__stage.is-open { clip-path: inset(0 -100vw); } /* ตัดแค่บน/ล่าง แนวนอนกว้างเต็มจอ (ส่วน .hero กันไม่ให้ล้นแนวนอนอยู่แล้ว) */
.hero__stage.is-open .tile:not(.is-active) { pointer-events: none; }
.hero__stage.is-open .tile__tip { opacity: 0 !important; }
.orbit-panel { position: absolute; left: 50%; top: 50%; z-index: 10; width: min(400px, calc(100% - 24px)); transform: translate(-50%, -50%);
  padding: 28px 28px 30px; border-radius: 20px; text-align: left; background: #fcfdff; border: 1px solid rgba(21, 24, 51, .08);
  box-shadow: 0 30px 80px rgba(21, 24, 51, .16); }
.orbit-panel[hidden] { display: none; }
.orbit-panel__title { font: 600 18px/1.3 var(--f-display); color: var(--red); margin-bottom: 10px; padding-right: 28px; }
.orbit-panel__desc { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.orbit-panel__cta { margin-top: 18px; }
.orbit-panel__cta::after { content: "\2192"; }
.orbit-panel__close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent;
  font: 400 24px/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.orbit-panel__close:hover { background: rgba(21, 24, 51, .06); color: var(--ink); }
.orbit-ring { position: absolute; left: 50%; top: 53%; width: 76%; aspect-ratio: 1 / .38; transform: translate(-50%, -50%); border-radius: 50%;
  border: 1px solid rgba(21, 24, 51, .07); background: radial-gradient(closest-side, rgba(47, 63, 176, .035), transparent); pointer-events: none; }
.tile--1 { left: 6%; top: 18%; } .tile--2 { left: 16%; top: 62%; } .tile--3 { left: 30%; top: 4%; }
.tile--4 { right: 28%; top: 2%; } .tile--5 { right: 8%; top: 22%; } .tile--6 { right: 15%; top: 64%; }
.hero h1 { font-size: clamp(44px, 6.6vw, 88px); line-height: 1.12; margin-top: 18px; }
/* overflow ใช้ซ่อนตัวหนังสือตอนไล่ขึ้น — เผื่อบน/ล่างให้สระและวรรณยุกต์ไทยไม่ถูกตัด */
.hero h1 .line { display: block; overflow: hidden; padding: .22em 0 .12em; margin: -.22em 0 -.12em; }
.hero h1 .line > span { display: inline-block; }
.hero .eyebrow { color: var(--indigo); }
.hero .lead { margin: 20px auto 0; text-align: center; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.hero__note b { font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 16px; }

/* ── การ์ดใหญ่มุมโค้ง (แบบ cardSection ของต้นแบบ) ── */
.panel { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.facts { padding: 34px 0 10px; }
.facts__top { text-align: center; padding: 34px 20px 26px; color: var(--ink-2); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 6px 0 34px; }
.marquee__track { display: flex; gap: 14px; width: max-content; }
.chip { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--mist);
  color: var(--indigo-deep); font-weight: 600; font-size: 15px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 30px 20px 32px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(36px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.02em; }
.stat b small { font-size: .45em; margin-left: 4px; }
.stat > span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ── เส้นทางสั่งซื้อ (แผนภาพเส้นเชื่อม) ── */
.section { padding: clamp(80px, 9vw, 130px) 0; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.split h2, .h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.14; }
.flow { position: relative; margin-top: 56px; height: clamp(360px, 38vw, 470px); }
.flow svg.flow__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__lines path { fill: none; stroke: #cfd4e6; stroke-width: 1.5; }
.flow__lines path.lit { stroke: var(--indigo); stroke-width: 2; }
.flow__hub { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 30px; background: #fff;
  box-shadow: 0 20px 50px rgba(47, 63, 176, .22), 0 0 0 10px rgba(47, 63, 176, .06); display: grid; place-items: center; z-index: 2; }
.flow__hub img { width: 70px; }
.node { position: absolute; transform: translate(-50%, -50%); padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font: 500 14px/1.2 var(--f-mono); white-space: nowrap; color: var(--ink); box-shadow: var(--shadow-sm); z-index: 2; }
.node--you { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow__legend { display: flex; gap: 22px; justify-content: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.flow__legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: #fff; border: 1px solid var(--line); vertical-align: -1px; }
.flow__legend span.you::before { background: var(--ink); border-color: var(--ink); }

/* ── การ์ดซ้อน (ปักแล้วซ้อนตอนเลื่อน) ── */
.stack { display: grid; gap: 28px; padding-bottom: 40px; }
.feature { position: sticky; top: 96px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 56px);
  min-height: 520px; transform-origin: 50% 0; }
.feature h3 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; margin: 10px 0 16px; }
.feature ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 16px; }
.feature li { display: flex; gap: 12px; }
.feature li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 6px; background: var(--mist)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%232f3fb0' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.window { border-radius: 16px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.window__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f4f6fa; border-bottom: 1px solid var(--line); }
.window__bar i { width: 10px; height: 10px; border-radius: 50%; }
.window__bar i:nth-child(1) { background: var(--red); } .window__bar i:nth-child(2) { background: var(--gold); } .window__bar i:nth-child(3) { background: var(--ok); }
.window__bar span { margin-left: 10px; font: 12px/1 var(--f-mono); color: var(--ink-2); }
.window img { width: 100%; }
.phone { position: absolute; right: -18px; bottom: -30px; width: 30%; border-radius: 26px; border: 7px solid var(--ink); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.feature__media { position: relative; }

/* ── ติดตั้ง (แผงพื้นอ่อนมุมบนโค้ง) ── */
.install { background: var(--paper); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: clamp(70px, 8vw, 110px) 0 0; margin-top: 40px; }
.install__head { max-width: 820px; }
.install__head h2 { margin-top: 8px; }
.install__head .lead { margin-top: 18px; }
.install__head .btns { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.spool { position: relative; height: clamp(300px, 36vw, 440px); margin-top: 20px; }
.spool svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spool__cable text { font: 500 13px var(--f-mono); fill: #e9ecf8; letter-spacing: .02em; }
.install__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; padding: 40px 0 clamp(80px, 9vw, 120px); align-items: start; }
.term { border-radius: 18px; background: var(--indigo-deep); color: #e9ecf8; box-shadow: var(--shadow); overflow: hidden; font: 15px/1.9 var(--f-mono); }
.term__bar { display: flex; gap: 7px; padding: 14px 18px; background: rgba(255, 255, 255, .06); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.term__body { padding: 20px 24px 26px; min-height: 360px; }
.term__line { display: block; white-space: pre-wrap; }
.term__line .p { color: var(--gold); }
.term__line .ok { color: #7fd6a4; }
.term__line .u { color: var(--gold); text-decoration: underline; }
.term__caret { display: inline-block; width: 9px; height: 18px; background: #e9ecf8; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.steps { display: grid; gap: 30px; }
.step h3 { font-size: 24px; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.step code { display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
  font: 14px var(--f-mono); color: var(--ink); }
.step .warn { margin-top: 10px; font-size: 14px; color: var(--red-deep); font-weight: 600; }
.step__num { font: 600 14px/1 var(--f-mono); color: var(--indigo); }

/* ── ผู้ช่วยร้าน: แถวแมววิ่ง + การ์ด AI ── */
.helper { text-align: center; padding: clamp(70px, 8vw, 110px) 0 60px; }
.helper .lead { margin: 16px auto 0; }
.cats { overflow: hidden; margin: 44px 0 50px; }
.cats__track { display: flex; gap: 26px; width: max-content; }
.cats__track img { width: clamp(120px, 12vw, 170px); height: auto; }
.ai { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; padding: clamp(28px, 4vw, 48px); text-align: left; }
.ai h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; margin: 8px 0 14px; }
.ai__ask { margin-top: 20px; display: grid; gap: 8px; }
.ai__ask span { display: block; padding: 10px 14px; border-radius: 12px; background: var(--mist); font-size: 15px; color: var(--indigo-deep); }
.ai small { display: block; margin-top: 14px; color: var(--ink-2); font-size: 13px; line-height: 1.6; }

/* ── เหมาะ/ไม่เหมาะ ── */
.fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.fit__col { padding: clamp(26px, 3vw, 40px); }
.fit__col h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.fit__col h3 i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.fit--yes h3 i { background: #e3f3ea; color: var(--ok); }
.fit--no h3 i { background: #fde8e6; color: var(--red-deep); }
.fit__col dl { margin: 18px 0 0; }
.fit__col dt { font-weight: 600; margin-top: 16px; }
.fit__col dd { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.fit__foot { margin-top: 26px; text-align: center; color: var(--ink-2); }
.fit__foot a { color: var(--indigo); font-weight: 600; }

/* ── ราคา ── */
.pricing { background: var(--card); border-radius: var(--r-xl); padding: clamp(40px, 5vw, 70px) clamp(22px, 4vw, 60px); }
.pricing__head { text-align: center; }
.pricing__head .lead { margin: 14px auto 0; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ตัวเลือกแพ็กเกจ + สรุปยอด */
.order { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 40px; align-items: start; }
.order__main { display: grid; gap: 26px; min-width: 0; }
.order__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.order__step legend { font: 600 22px/1.3 var(--f-display); padding: 0; display: flex; align-items: center; gap: 10px; }
.order__step legend small { font: 400 15px var(--f-body); color: var(--ink-2); }
.order__no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 16px; }
.order__hint { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.pkg { position: relative; display: grid; gap: 4px; padding: 26px 20px 20px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.pkg:hover { border-color: #b9c1e6; transform: translateY(-2px); }
.pkg input { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; accent-color: var(--indigo); margin: 0; }
.pkg:has(input:checked) { border: 2px solid var(--indigo); background: #fff; box-shadow: 0 14px 30px -18px rgba(47, 63, 176, .55); }
.pkg:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.pkg__tag { position: absolute; top: -13px; left: 16px; background: var(--gold); color: var(--ink); font: 600 13px/1 var(--f-body); padding: 6px 10px; border-radius: 8px; }
.pkg__tag--hot { background: var(--red-deep); color: #fff; }
.pkg__name { font: 600 20px/1.2 var(--f-display); }
.pkg__price { font: 600 40px/1.05 var(--f-display); letter-spacing: -.02em; margin-top: 6px; }
.pkg__price small { font: 400 15px var(--f-body); color: var(--ink-2); margin-left: 5px; letter-spacing: 0; }
.pkg__sub { font-size: 14px; color: var(--ink-2); }
.pkg__was { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.pkg__was b { margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }
.pkg.is-deal .pkg__price { color: var(--red); }
.order__incl { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 15px; }
.order__incl li::before { content: "\2713"; color: var(--indigo); font-weight: 700; margin-right: 10px; }
.addon { margin-top: 14px; padding: 20px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 16px 22px; align-items: center; }
.addon:has(input:checked) { border-color: var(--indigo); background: #fff; }
.addon__check { display: grid; grid-template-columns: auto 1fr; gap: 14px; cursor: pointer; }
.addon__check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--indigo); }
.addon__check b { font: 600 18px var(--f-display); }
.addon__price { font-weight: 600; color: var(--indigo); white-space: nowrap; }
.addon__check small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.qty { display: flex; align-items: center; gap: 6px; transition: opacity .2s; }
.qty.is-off { opacity: .45; }
.qty__label { font-size: 14px; color: var(--ink-2); margin-right: 6px; white-space: nowrap; }
.qty__btn { width: 38px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 600 20px/1 var(--f-body); color: var(--ink); cursor: pointer; }
.qty__btn:hover:not(:disabled) { border-color: var(--indigo); color: var(--indigo); }
.qty__btn:disabled { cursor: not-allowed; opacity: .5; }
.qty input { width: 56px; height: 38px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; font: 600 17px var(--f-body); color: var(--ink); background: #fff; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.coupon { display: flex; gap: 10px; margin-top: 14px; max-width: 460px; }
.coupon input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; font: 500 16px var(--f-body); letter-spacing: .04em; background: #fff; color: var(--ink); }
.coupon input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(47, 63, 176, .15); }
.coupon__msg { min-height: 1.4em; margin-top: 8px; font-size: 14px; }
.coupon__msg.is-ok { color: var(--ok); }
.coupon__msg.is-bad { color: var(--red-deep); }
.summary { position: sticky; top: 100px; padding: 26px; border-radius: 22px; background: var(--ink); color: #fff; }
.summary h3 { font-size: 22px; }
.summary__lines { margin: 18px 0 0; display: grid; gap: 10px; font-size: 15px; }
.summary__lines > div { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines > div[hidden] { display: none; }
.summary__lines dt { color: rgba(255, 255, 255, .78); }
.summary__lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.summary__discount dd, .summary__discount dt { color: var(--gold); }
.summary__total { margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .25); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.summary__total b { font: 600 40px/1 var(--f-display); letter-spacing: -.02em; }
.summary__total b small { font: 400 15px var(--f-body); letter-spacing: 0; }
.summary__note { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.summary__pay { width: 100%; justify-content: center; margin-top: 20px; padding: 16px 22px; font-size: 18px; border: 0; cursor: pointer; }
.summary__pay svg { flex: none; }
.summary__methods { margin-top: 10px; font-size: 14px; text-align: center; color: rgba(255, 255, 255, .85); }
.summary__msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--gold); text-align: center; }
.summary__fine { margin-top: 6px; font-size: 12px; line-height: 1.55; color: rgba(255, 255, 255, .6); }
.summary__fine a { color: #fff; }
.guarantee { margin-top: 22px; padding: 22px 26px; border-radius: 18px; background: var(--mist); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.guarantee b { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.guarantee p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.guarantee svg { width: 44px; height: 44px; }
.costs { width: 100%; border-collapse: collapse; margin-top: 34px; font-size: 15px; }
.costs caption { text-align: left; font: 600 20px var(--f-display); margin-bottom: 10px; }
.costs th, .costs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.costs th { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.costs .must { color: var(--red-deep); font-weight: 600; }
.badges { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 30px; }
.badge { border: 1px solid var(--line); border-radius: 16px; padding: 16px 10px; text-align: center; background: var(--paper); }
.badge b { display: block; font: 600 17px/1.3 var(--f-display); }
.badge span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); line-height: 1.4; }

/* ฝนเหรียญในส่วนปิดท้าย — ยึดขอบล่างของส่วน สูงอย่างน้อยเท่าจอ (JS ตั้ง height) · อยู่หลังเนื้อหา ไม่รับคลิก */
.coin-rain { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; pointer-events: none; z-index: 0; }

/* ── คำถาม ── */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid #d9dee8; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 500 19px/1.4 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); }

/* ── ปิดท้าย ── */
.closing { position: relative; text-align: center; padding: clamp(80px, 9vw, 120px) 0; }
.closing .wrap { position: relative; z-index: 1; }
.closing .eyebrow { font-size: 34px; }
.closing h2 { margin-top: 10px; }
.closing .btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.closing img { width: 650px; max-width: 100%; margin: 30px auto 0; }

.footer { background: var(--ink); color: #c9cde0; padding: 70px 0 0; overflow: hidden; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__grid img { height: 44px; width: auto; }
.footer__grid p { margin-top: 14px; font-size: 14px; max-width: 280px; }
.footer h4 { margin: 0 0 12px; font: 600 14px var(--f-body); color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
/* ป้ายวิ่งท้ายเว็บ "เว็บนี้ดี ค้าขายร่ำรวย" — เต็มจอ (ออกนอก .wrap) · CSS ล้วน ไม่พึ่ง GSAP */
.fmq { margin: 56px calc(50% - 50vw) 0; padding: 18px 0 26px; overflow: hidden; user-select: none; }
.fmq__track { display: flex; width: max-content; animation: fmq 38s linear infinite; }
.fmq:hover .fmq__track { animation-play-state: paused; }
.fmq__group { display: flex; align-items: center; flex: none; }
.fmq__w { font: 600 clamp(40px, 6.4vw, 100px)/1.3 var(--f-display); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px rgba(233, 236, 248, .28); padding: .12em 0; }
.fmq__t { font: 400 clamp(40px, 6.4vw, 100px)/1.3 var(--f-hand); color: #fff; margin-left: .35em; padding: .15em 0; }
.fmq__dot { font-size: clamp(26px, 3.6vw, 54px); color: var(--red); margin: 0 .7em; }
@keyframes fmq { to { transform: translateX(-50%); } }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; padding: 18px 0 26px; border-top: 1px solid rgba(233, 236, 248, .1); }

/* ── จอเล็ก ── */
/* คำสรุปใต้ราคาบน hero */
.hero__tagline { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 0; margin-top: 30px; font: 600 clamp(18px, 4.6vw, 54px)/1.3 var(--f-display); color: var(--indigo); }
.hero__tagline span + span::before { content: "\2022"; margin: 0 14px; color: var(--gold); }
/* ป้ายคำภาษาอังกฤษของแต่ละเรื่อง (คนค้นหาด้วยคำเหล่านี้) */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { padding: 5px 12px; border-radius: 999px; border: 1px solid #d9def5; background: var(--mist); color: var(--indigo); font: 600 13px/1.3 var(--f-body); letter-spacing: .01em; white-space: nowrap; }
.install__head .pills { margin: 16px 0 4px; }
/* แถบ "ขายแรงแต่ไม่ขาดทุน" ใต้การ์ดซ้อน */
.safe { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 14px 22px; align-items: center; margin-top: 22px; padding: 20px 26px; border-radius: var(--r-lg); background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.5; }
.safe b { font: 600 18px/1.3 var(--f-display); color: #fff; }
.safe span { padding-left: 14px; border-left: 2px solid var(--gold); }
/* Roadmap */
.road { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; align-items: start; }
.road__lane { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.road__lane--next { --c: var(--indigo); background: var(--mist); border-color: #d9def5; }
.road__lane--no { --c: #9aa0b4; }
.road__lane h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.road__lane h3 span { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(47, 63, 176, .12); }
.road ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.road li { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.road li b { display: block; margin-bottom: 2px; font: 600 16px/1.35 var(--f-display); color: var(--ink); }
.road__foot { margin-top: 18px; text-align: center; font-size: 15px; color: var(--ink-2); }
.road__foot a { color: var(--indigo); font-weight: 600; }
@media (max-width: 860px) {
  .safe, .road { grid-template-columns: 1fr; }
}
/* ป๊อปอัปราคาเปิดตัว */
.offer { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 26px; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(21, 24, 51, .55); }
.offer::backdrop { background: rgba(21, 24, 51, .5); backdrop-filter: blur(3px); }
.offer[open] { animation: offer-in .35s var(--ease); }
@keyframes offer-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.offer form { position: relative; padding: 34px 30px 28px; text-align: center; background: linear-gradient(180deg, #fff 60%, var(--mist)); }
.offer__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.offer .offer__tag { display: inline-block; margin-top: 0; padding: 6px 14px; border-radius: 999px; background: var(--red-deep); color: #fff; font-size: 13px; font-weight: 600; }
.offer h2 { margin-top: 14px; font-size: 30px; line-height: 1.2; }
.offer p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.offer b { color: var(--ink); }
.offer__go { width: 100%; justify-content: center; margin-top: 20px; border: 0; cursor: pointer; }
@media (max-width: 1080px) {
  .order { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .addon, .pkgs, .order__incl { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .split, .feature, .install__body, .ai, .fit__grid { grid-template-columns: 1fr; }
  .feature { position: relative; top: 0; min-height: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .badges { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .flow { height: 520px; }
}
@media (max-width: 560px) {
  .nav__cta .btn--ghost { display: none; }
  .nav__logo img { height: 32px; }
  .tile { border-radius: 16px; width: 56px; }
  .hero__stage:not(.is-orbit) .tile--3, .hero__stage:not(.is-orbit) .tile--4 { display: none; }
  .tile__tip { font-size: 12px; }
  .badges { grid-template-columns: 1fr 1fr; }
  .phone { display: none; }
  .costs { font-size: 14px; }
  .costs th:nth-child(3), .costs td:nth-child(3) { display: none; }
  .footer__legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
