/* =========================================================
   Xveryday One-Page — style.css
   แต่ละ section มีบล็อก CSS ของตัวเอง คั่นด้วย
   /* == SECTION: <id> == *\/  (ดู .claude/skills/xv-section-*)
   ========================================================= */

/* == TOKENS (xv-brand-theme) == */
:root {
  /* Brand — มาจากโลโก้ X (ฟ้า + ส้มคอรัล) และพื้นกรมท่า */
  --navy-900: #0b1f3a;
  --navy-800: #12294a;
  --navy-700: #1d3a63;
  --blue-500: #5a8ab0;   /* แขนซ้ายของโลโก้ */
  --blue-400: #79a3c6;
  --blue-100: #e6eff7;
  --blue-50:  #f3f8fc;
  --coral-500: #ee7a64;  /* แขนขวาของโลโก้ */
  --coral-400: #f3957f;
  --coral-100: #fde9e4;
  --green-600: #1f9d55;  /* ใช้เฉพาะเรื่องตลาดสด / ไรเดอร์ */
  --green-100: #e3f5ea;

  --ink: #0b1f3a;
  --ink-soft: #4a5b73;
  --line: #dbe5ef;
  --bg: #ffffff;
  --bg-soft: #f5f9fd;

  --grad-brand: linear-gradient(135deg, var(--blue-500) 0%, var(--coral-500) 100%);
  --grad-text: linear-gradient(90deg, #3d74a6 0%, #e9634a 100%);
  --grad-sky: linear-gradient(180deg, #eef5fc 0%, #ffffff 100%);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
  --shadow: 0 12px 32px rgba(11, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);

  --container: 1180px;
  --nav-h: 72px;

  --font: "Noto Sans Thai", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* == BASE == */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 650; letter-spacing: .04em;
  color: var(--coral-500); background: var(--coral-100);
  padding: 6px 14px; border-radius: 999px;
}
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-variation-settings: "wdth" 87.5;  /* หัวข้อแคบลงเล็กน้อย: ใช้แกน wdth ของ Noto Sans Thai */
  margin: 14px 0 12px;
}
.section-head p { color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); }
.text-grad-hot { background: linear-gradient(90deg, #ff8a3d 0%, #ffd166 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 650; font-size: 16px; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral-500); color: #fff; box-shadow: 0 10px 24px rgba(238, 122, 100, .35); }
.btn--primary:hover { background: #e86a52; }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy-900); border: 1.5px solid var(--line); }
.btn svg { width: 20px; height: 20px; flex: none; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px;
}
.check-list li { position: relative; padding-left: 30px; margin: 8px 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list--coral li::before { background-color: var(--coral-500); }
.check-list--green li::before { background-color: var(--green-600); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--blue-100); color: var(--blue-500);
}
.icon-badge svg { width: 28px; height: 28px; }
.icon-badge--coral { background: var(--coral-100); color: var(--coral-500); }
.icon-badge--green { background: var(--green-100); color: var(--green-600); }
.icon-badge--navy { background: var(--navy-900); color: #fff; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* == SECTION: nav == */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 2px; font-weight: 750; font-size: 26px; color: var(--navy-900); letter-spacing: -.02em; }
.brand svg { width: 36px; height: 36px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 10px; font-size: 15.5px; font-weight: 550; color: var(--ink-soft); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--navy-900); background: var(--blue-50); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { min-height: 42px; padding: 0 18px; font-size: 15px; }

.lang-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--line); }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent;
  padding: 5px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: var(--ink-soft);
}
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow-sm); }
.flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--blue-50); color: var(--navy-900); place-items: center; }
.nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav__links a { padding: 14px 12px; font-size: 17px; }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__toggle { display: grid; }
  .nav__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .brand { font-size: 22px; }
  .lang-switch button span { display: none; }
}

/* == SECTION: cover == */
.cover { margin-top: var(--nav-h); padding-top: clamp(16px, 2.4vw, 28px); background: #eef5fc; }
.cover__frame { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.cover__frame img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .cover__frame { border-radius: var(--radius); } }
.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; }

/* == SECTION: hero == */
.hero {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 85% 45%, rgba(238, 122, 100, .14), transparent 60%),
    radial-gradient(800px 520px at 0% 65%, rgba(90, 138, 176, .16), transparent 60%),
    linear-gradient(180deg, #eef5fc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1, .hero__title {
  font-size: clamp(40px, 6.4vw, 76px); line-height: 1.12; margin: 18px 0 20px;
  font-weight: 800; font-variation-settings: "wdth" 85;
}
.hero__lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-soft); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.hero__cta .store-btn { min-height: 56px; padding: 8px 18px 8px 14px; }
.hero__gp { min-height: 56px; }
.hero__partner { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 14px; color: var(--ink-soft); }
.hero__partner img { height: 48px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow-sm); }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; max-width: 600px; }
.stat { background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; text-align: center; }
.stat b { display: block; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; color: var(--navy-900); line-height: 1.2; }
.stat span { font-size: 13px; color: var(--ink-soft); line-height: 1.4; display: block; margin-top: 4px; }

/* phone mockup */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero__blob { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: var(--grad-brand); opacity: .18; filter: blur(8px); }
.phone {
  position: relative; width: 290px; aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px;
  background: var(--navy-900); box-shadow: var(--shadow-lg); transform: rotate(-4deg);
}
.phone__screen { height: 100%; border-radius: 34px; background: #f6f9fc; overflow: hidden; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--back { position: absolute; width: 230px; transform: translate(130px, 40px) rotate(8deg); opacity: .92; }
.phone--flat { transform: none; width: 100%; max-width: 280px; margin: 0 auto; box-shadow: var(--shadow); }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: 14px; font-weight: 650; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 18px; }
.float-chip--1 { top: 12%; left: 0; }
.float-chip--2 { bottom: 16%; right: 0; animation-delay: -3s; }
.float-chip--3 { bottom: 4%; left: 6%; animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { margin-inline: auto; }
  .hero__partner { justify-content: center; }
  .hero__visual { min-height: 520px; }
}
@media (max-width: 560px) {
  .phone--back { width: 190px; transform: translate(90px, 30px) rotate(8deg); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .phone { width: 240px; }
  .hero__visual { min-height: 460px; }
  .float-chip { font-size: 12.5px; padding: 8px 10px; }
  .float-chip--3 { display: none; }
  .float-chip--2 { bottom: 0; right: 4px; }
  .about__banner img { object-position: 78% 40%; }
}

/* == SECTION: nogp == */
.nogp { background: radial-gradient(900px 500px at 100% 0%, rgba(255,120,60,.22), transparent 60%), var(--navy-900); color: #fff; overflow: hidden; }
.nogp__glow { position: absolute; width: 520px; height: 520px; left: -200px; bottom: -200px; border-radius: 50%; background: #ff7a3d; opacity: .12; filter: blur(90px); pointer-events: none; }
.nogp .eyebrow { background: #ff7a3d; color: #fff; }
.nogp__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.nogp__title { font-size: clamp(42px, 6.4vw, 76px); font-weight: 850; font-variation-settings: "wdth" 80; line-height: 1.1; margin: 16px 0 14px; }
.nogp__lead { color: rgba(255,255,255,.8); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 560px; }
.nogp__poster { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); }
.nogp__poster img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.nogp__poster.reveal { transform: translateY(24px) rotate(0deg); }
.nogp__poster.reveal.is-in { transform: rotate(-2deg); animation: smash .5s ease .55s 1; }
@keyframes smash { 25% { translate: -6px 2px; } 50% { translate: 5px -2px; } 75% { translate: -3px 1px; } }
.nogp__stamp {
  position: absolute; right: -14px; top: -18px; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1; font-weight: 850; font-size: 40px;
  background: #ffd166; color: var(--navy-900); border: 5px solid #fff; box-shadow: 0 14px 30px rgba(0,0,0,.35);
  transform: scale(2.2) rotate(-30deg); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) 1s, opacity .3s ease 1s;
}
.nogp__stamp small { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.nogp__poster.is-in .nogp__stamp { transform: rotate(-12deg); opacity: 1; }
.walls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.walls li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-weight: 650; font-size: clamp(14.5px, 1.4vw, 16.5px); }
.walls li span { color: rgba(255,255,255,.78); }
.walls li b { font-size: clamp(22px, 2.4vw, 28px); font-weight: 850; color: #ffd166; }
.walls__gp { background: linear-gradient(90deg, rgba(255,122,61,.28), rgba(255,122,61,.1)) !important; border-color: rgba(255,122,61,.55) !important; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.plan { background: #fff; color: var(--navy-900); border-radius: 18px; padding: 16px 18px; }
.plan small { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.plan strong { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 850; line-height: 1.25; margin-top: 4px; color: #e9634a; }
.plan--free strong { color: var(--green-600); }
.plan__num { font-size: 1.25em; }
.plan strong span:last-child { font-size: .55em; font-weight: 700; color: var(--ink-soft); }
.nogp__fine { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.62); }

.calc { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 0; background: #fff; color: var(--navy-900); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.calc__input, .calc__result { padding: clamp(22px, 3vw, 36px); }
.calc__input h3 { font-size: 22px; margin-bottom: 14px; }
.calc__input label { color: var(--ink-soft); font-size: 15px; }
.calc__value { font-size: clamp(34px, 4vw, 46px); font-weight: 850; line-height: 1.2; margin: 6px 0 12px; }
.calc__value span { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.calc input[type=range] { width: 100%; accent-color: #ff7a3d; height: 28px; cursor: pointer; }
.calc__scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.calc__result { background: var(--bg-soft); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.calc__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; }
.calc__row b { font-size: 20px; }
.calc__row--bad b { color: #c0392b; }
.calc__row--good b { color: var(--green-600); }
.calc__save { text-align: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #ff7a3d, #e9634a); color: #fff; }
.calc__save small { display: block; font-size: 14px; opacity: .9; }
.calc__save strong { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 850; line-height: 1.2; }
.calc__save span { font-size: 13px; opacity: .85; }
.calc__poster { margin: 0; }
.calc__poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 1080px) {
  .calc { grid-template-columns: 1fr 1fr; }
  .calc__poster { display: none; }
}
@media (max-width: 960px) {
  .nogp__grid { grid-template-columns: 1fr; }
  .nogp__copy { text-align: center; }
  .nogp__lead { margin-inline: auto; }
  .nogp__poster { width: min(100%, 400px); }
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nogp__stamp { width: 92px; height: 92px; font-size: 30px; right: -6px; } .nogp__stamp small { font-size: 14px; } }
@media (max-width: 480px) {
  .walls, .plans { grid-template-columns: 1fr; }
}

/* == SECTION: about == */
.about__banner {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: clamp(36px, 5vw, 56px);
  aspect-ratio: 21 / 8; background: var(--blue-50);
}
.about__banner img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.about__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-bottom: 48px; }
.about__intro h2 { font-size: clamp(28px, 4vw, 42px); font-variation-settings: "wdth" 87.5; margin-top: 14px; }
.about__intro p { color: var(--ink-soft); font-size: 18px; }
.about__intro p + p { margin-top: 14px; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.values span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.values span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral-500); }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { display: flex; flex-direction: column; gap: 14px; }
.role__head { display: flex; align-items: center; gap: 14px; }
.role__head h3 { font-size: 21px; }
.role__head small { display: block; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.role p { color: var(--ink-soft); font-size: 15.5px; }
.role .check-list { font-size: 15.5px; }
@media (max-width: 900px) {
  .about__intro { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .about__banner { aspect-ratio: 16 / 9; }
}

/* == SECTION: appshots == */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.shot { margin: 0; text-align: center; }
.shot figcaption { margin-top: 20px; }
.shot figcaption b { display: block; font-size: 19px; }
.shot figcaption span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 4px; line-height: 1.55; }
.shot:nth-child(2) { transform: translateY(28px); }
@media (max-width: 820px) {
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .shot { scroll-snap-align: center; }
  .shot:nth-child(2) { transform: none; }
}

/* == SECTION: modules == */
.phase-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; background: var(--navy-900); padding: 4px 12px; border-radius: 999px; }
.modules__main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.module { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.module--shop { display: flex; flex-direction: column; background: linear-gradient(160deg, #fff 0%, var(--blue-50) 100%); border: 1px solid var(--line); }
.module--delivery { background: var(--navy-900); color: #fff; }
.module h3 { font-size: clamp(24px, 3vw, 32px); margin: 14px 0 8px; font-variation-settings: "wdth" 90; }
.module > p { color: var(--ink-soft); }
.module--delivery > p { color: rgba(255,255,255,.75); }
.module__more { margin-top: auto; padding-top: 24px; }
.shop-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.shop-type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.shop-type .emoji { font-size: 30px; line-height: 1; }
.shop-type h4 { font-size: 17px; margin: 10px 0 6px; }
.shop-type ul { font-size: 14px; color: var(--ink-soft); }
.shop-type li { padding-left: 14px; position: relative; margin: 3px 0; line-height: 1.5; }
.shop-type li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.delivery-points { margin-top: 24px; display: grid; gap: 12px; }
.delivery-points li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 14px; }
.delivery-points i { font-style: normal; font-size: 22px; line-height: 1.3; }
.delivery-points b { display: block; }
.delivery-points span { color: rgba(255,255,255,.7); font-size: 14.5px; }
.module__rider { position: absolute; right: -20px; top: 18px; font-size: 90px; opacity: .12; transform: scaleX(-1); }

.coming { margin-top: 28px; }
.coming h4 { font-size: 16px; color: var(--ink-soft); font-weight: 600; text-align: center; margin-bottom: 14px; }
.coming__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.coming__list span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px dashed var(--blue-400); font-size: 15px; color: var(--ink-soft); }
@media (max-width: 960px) {
  .modules__main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop-types { grid-template-columns: 1fr; }
}

/* == SECTION: merchant == */
.merchant__features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 40px; }
.feature { text-align: center; padding: 22px 14px; }
.feature .icon-badge { margin: 0 auto 12px; }
.feature b { display: block; font-size: 17px; line-height: 1.35; }
.feature span { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 4px; line-height: 1.5; }

.compare { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; align-items: stretch; }
.compare__col h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.compare__col--old { background: #f7f8fa; }
.compare__col--old .row b { color: #c0392b; }
.compare__col--new { border: 2px solid var(--blue-500); box-shadow: var(--shadow); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.row:last-of-type { border-bottom: 0; }
.row span { color: var(--ink-soft); }
.row b { white-space: nowrap; }
.compare__col--new .row b { color: var(--green-600); }
.compare__total { margin-top: 14px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; text-align: center; }
.compare__col--new .compare__total { background: var(--blue-50); border-color: var(--blue-100); }
.fee { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; }

.profit { background: linear-gradient(150deg, #3d74a6 0%, #e9634a 100%); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: space-between; }
.profit h3 { font-size: 20px; }
.profit__ex { font-size: 15px; opacity: .92; margin: 8px 0 16px; }
.profit__line { display: flex; justify-content: space-between; background: rgba(255,255,255,.16); border-radius: 12px; padding: 10px 14px; margin: 6px 0; font-size: 15px; }
.profit__big { margin-top: 16px; text-align: center; background: #fff; color: var(--navy-900); border-radius: 16px; padding: 16px; }
.profit__big small { display: block; font-size: 14px; color: var(--ink-soft); }
.profit__big strong { font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--green-600); line-height: 1.2; }

.fresh { margin-top: 40px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #fff 0%, var(--green-100) 100%); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); border: 1px solid #cfe9d9; }
.fresh h3 { font-size: clamp(22px, 2.8vw, 30px); margin: 12px 0 10px; font-variation-settings: "wdth" 90; }
.fresh p { color: var(--ink-soft); }
.fresh__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fresh__item { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #d9eee1; }
.fresh__item b { display: block; font-size: 16px; }
.fresh__item span { font-size: 14px; color: var(--ink-soft); line-height: 1.5; display: block; margin-top: 4px; }
.fresh__item .emoji { font-size: 24px; }

.addons { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.addons span { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; font-size: 15px; }
.addons b { color: var(--coral-500); }

@media (max-width: 1080px) {
  .merchant__features { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr 1fr; }
  .profit { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .merchant__features { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .fresh { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .fresh__grid { grid-template-columns: 1fr; }
}

/* == SECTION: delivery == */
.rate-hero { display: flex; justify-content: center; margin-bottom: 32px; }
.rate-hero span { display: inline-flex; align-items: center; gap: 12px; background: var(--navy-900); color: #fff; border-radius: 999px; padding: 12px 24px; font-weight: 650; font-size: clamp(16px, 2vw, 19px); }
.rate-hero b { color: #ffd166; font-size: 1.25em; }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rate { padding: 0; overflow: hidden; }
.rate__head { padding: 20px 24px; color: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.rate--blue .rate__head { background: var(--blue-500); }
.rate--green .rate__head { background: var(--green-600); }
.rate__head h3 { font-size: 20px; }
.rate__head small { background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.rate__route { padding: 16px 24px; font-size: 14.5px; color: var(--ink-soft); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.rate table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rate th, .rate td { padding: 12px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.rate th { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.rate td:last-child, .rate th:last-child { text-align: right; }
.rate td b { font-size: 22px; font-weight: 800; }
.rate--blue td b { color: var(--blue-500); }
.rate--green td b { color: var(--green-600); }
.rate tr.is-hl td { background: var(--green-100); }
.rate td small { color: var(--ink-soft); font-size: 13px; margin-left: 4px; }
.rate tr:last-child td { border-bottom: 0; }
.muted-cell { color: var(--ink-soft); font-weight: 600; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.rule { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.rule b { display: block; font-size: 16.5px; line-height: 1.4; }
.rule span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; display: block; margin-top: 4px; }
.note { text-align: center; margin-top: 18px; color: var(--ink-soft); font-size: 13.5px; }
@media (max-width: 900px) {
  .rates { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .rate th, .rate td { padding: 10px 16px; }
}

/* == SECTION: platform == */
.platform { background: var(--navy-900); color: #fff; overflow: hidden; }
.platform .section-head p { color: rgba(255,255,255,.72); }
.platform .eyebrow { background: rgba(238,122,100,.18); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; transition: background .25s, transform .25s; }
.service:hover { background: rgba(255,255,255,.09); transform: translateY(-3px); }
.service .icon-badge { background: rgba(121,163,198,.18); color: var(--blue-400); }
.service:nth-child(even) .icon-badge { background: rgba(238,122,100,.18); color: var(--coral-400); }
.service h3 { font-size: 18px; }
.service p { color: rgba(255,255,255,.7); font-size: 15px; margin-top: 4px; line-height: 1.6; }
.platform__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; background: var(--grad-brand); opacity: .14; filter: blur(80px); right: -200px; top: -200px; pointer-events: none; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* == SECTION: download == */
.download__box {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: linear-gradient(130deg, var(--navy-700) 0%, #3d74a6 48%, var(--coral-500) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.download__box::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); right: -120px; bottom: -160px; }
.download__box h2 { font-size: clamp(30px, 4.4vw, 48px); font-variation-settings: "wdth" 87.5; margin: 14px 0 12px; }
.download__box p { opacity: .92; font-size: 18px; max-width: 520px; }
.download__box .eyebrow { background: rgba(255,255,255,.2); color: #fff; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; z-index: 1; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; background: #000; color: #fff; border-radius: 14px; padding: 10px 20px 10px 16px; min-height: 60px; transition: transform .2s; }
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn small { display: block; font-size: 11.5px; opacity: .8; line-height: 1.2; }
.store-btn b { display: block; font-size: 19px; line-height: 1.2; font-weight: 650; }
.store-btn.is-soon { background: rgba(0,0,0,.35); cursor: default; }
.store-btn.is-soon:hover { transform: none; }
.qr-card { background: #fff; color: var(--navy-900); border-radius: var(--radius); padding: 24px; text-align: center; position: relative; z-index: 1; max-width: 300px; justify-self: center; box-shadow: var(--shadow); }
.qr-card img { width: 180px; height: 180px; margin: 0 auto 12px; }
.qr-card b { display: block; font-size: 17px; }
.qr-card a { display: inline-block; margin-top: 10px; background: #06c755; color: #fff; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; }
@media (max-width: 820px) {
  .download__box { grid-template-columns: 1fr; text-align: center; }
  .download__box p { margin-inline: auto; }
  .stores { justify-content: center; }
}

/* == SECTION: contact == */
.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.channels a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: transform .2s, box-shadow .2s; min-width: 0; }
.channels a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.channels .icon-badge { width: 44px; height: 44px; border-radius: 12px; }
.channels .icon-badge svg { width: 22px; height: 22px; }
.channels small { display: block; font-size: 13px; color: var(--ink-soft); }
.channels b { display: block; font-size: 15.5px; overflow-wrap: anywhere; line-height: 1.35; }
@media (max-width: 1080px) { .channels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }
.pwa-install { display: none; }
.pwa-install.is-ready { display: inline-flex; }

.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 12px; }
.contact-card h3 { font-size: 20px; }
.contact-card p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.contact-card .btn { align-self: flex-start; min-height: 46px; font-size: 15px; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 48px 0 32px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand { color: #fff; }
.footer__tag { font-size: 15px; margin-top: 4px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 20px; font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
button.store-btn { border: 0; font: inherit; text-align: left; cursor: pointer; }

/* == MOTION: ข้อมูลเคลื่อนไหว (ดู xv-brand-theme → Motion) == */
/* ตารางค่าส่ง: แถวไหลเข้าทีละแถว */
.rate tbody tr { opacity: 0; transform: translateX(-16px); transition: opacity .5s ease, transform .5s ease; }
.rate.is-in tbody tr { opacity: 1; transform: none; }
.rate.is-in tbody tr:nth-child(2) { transition-delay: .12s; }
.rate.is-in tbody tr:nth-child(3) { transition-delay: .24s; }
.rate.is-in tbody tr:nth-child(4) { transition-delay: .36s; }
.rate.is-in tbody tr:nth-child(5) { transition-delay: .48s; }
/* กำแพงค่าใช้จ่าย: ขีดฆ่าทีละรายการ แล้วเด้ง 0฿ */
.walls li span { text-decoration: none !important; background: linear-gradient(#ff7a3d, #ff7a3d) no-repeat 0 55% / 0% 3px; transition: background-size .6s ease; }
.walls li b { opacity: 0; transform: scale(.4); transition: opacity .4s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.walls.is-in li span { background-size: 100% 3px; }
.walls.is-in li b { opacity: 1; transform: none; }
.walls.is-in li:nth-child(1) span { transition-delay: .2s; }  .walls.is-in li:nth-child(1) b { transition-delay: .7s; }
.walls.is-in li:nth-child(2) span { transition-delay: .45s; } .walls.is-in li:nth-child(2) b { transition-delay: .95s; }
.walls.is-in li:nth-child(3) span { transition-delay: .7s; }  .walls.is-in li:nth-child(3) b { transition-delay: 1.2s; }
.walls.is-in li:nth-child(4) span { transition-delay: .95s; } .walls.is-in li:nth-child(4) b { transition-delay: 1.45s; }
/* เครื่องคิดเลข: แถบเทียบ */
.calc__row { position: relative; overflow: hidden; }
.calc__row > span, .calc__row > b { position: relative; }
.calc__bar { position: absolute; inset: 0 auto 0 0; width: 0; transition: width .45s ease; }
.calc__row--bad .calc__bar { background: rgba(192, 57, 43, .14); }
.calc__row--good .calc__bar { background: rgba(31, 157, 85, .16); }
/* ภาพหน้าจอแอป: ลอยเบา ๆ */
.shot .phone { animation: float 7s ease-in-out infinite; }
.shot:nth-child(2) .phone { animation-delay: -2.3s; }
.shot:nth-child(3) .phone { animation-delay: -4.6s; }
.card { transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover, .role:hover, .rule:hover, .contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
  .rate tbody tr, .walls li b, .nogp__stamp { opacity: 1; transform: none; transition: none; }
  .nogp__poster.reveal.is-in { animation: none; }
  .walls li span { background-size: 100% 3px; transition: none; }
  .shot .phone { animation: none; }
}
