/*
 * KESIYA — homepage (ตัวอย่างออกแบบ)
 * DNA: Apple product-family page × premium coffee. Model over spec.
 * คนละภาษากับ DOITHAI โดยตั้งใจ: sans เรขาคณิต, เขียวลึกเกือบดำ, ช่องว่างมหาศาล,
 * ของอยู่กลางเฟรมบนพื้นสะอาด, ประโยคสั้น. English-first.
 */
:root {
  --paper: #f7f6f3;
  --card: #ffffff;
  --ink: #101512;
  --ink-soft: #5c655f;
  --ink-faint: #98a09a;
  --line: #e4e4de;
  --green: #2f6b5e;
  --green-deep: #1d4438;
  --night: #0d1411;
  --night-soft: #16211c;
  --radius: 18px;
  --page: 1200px;
  /* model colorways */
  --bright: #d9a441;
  --balance: #b0764a;
  --bold: #5a3a28;
  --black: #17130f;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  font-size: clamp(15px, 0.5vw + 13px, 18px); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
a { color: inherit; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 22px; }
.k-eyebrow { font-size: 0.78em; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.muted { color: var(--ink-soft); }

/* ---------- nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,243,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 30px; padding: 15px 22px; max-width: var(--page); margin: 0 auto; }
.brand { font-weight: 800; letter-spacing: .34em; font-size: 1.02em; text-decoration: none; margin-right: auto; }
.brand i { color: var(--green); font-style: normal; }
.nav-links { display: none; gap: 30px; font-size: 0.9em; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-right { display: flex; align-items: center; gap: 16px; font-size: 0.85em; }
.lang { color: var(--ink-faint); display: none; }
.lang b { color: var(--ink); }
.lang a { text-decoration: none; }
@media (min-width: 640px) { .lang { display: inline; } }
.bag-btn {
  text-decoration: none; border: 1px solid var(--ink); border-radius: 999px;
  padding: 8px 18px; font-weight: 600;
}
.bag-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95em; border: 1.5px solid transparent;
  transition: all .16s ease;
}
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--green-deep); }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(64px, 10vw, 150px) 0 clamp(40px, 6vw, 80px); }
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5.6rem); font-weight: 800;
  max-width: 16ch; margin: 14px auto 0;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p {
  font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink-soft);
  max-width: 44ch; margin: 22px auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- แถบรุ่นทั้งสี่ ---------- */
.family { padding: clamp(30px, 5vw, 70px) 0 clamp(60px, 8vw, 110px); }
.family-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .family-grid { grid-template-columns: repeat(4, 1fr); } }
.model {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 30px) clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 26px);
  text-align: center; text-decoration: none; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.model:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(16,21,18,.10); }
.model .can {
  width: clamp(74px, 8vw, 96px); height: clamp(120px, 13vw, 156px);
  margin: 6px auto 18px; border-radius: 12px 12px 9px 9px; position: relative;
}
.model .can::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 20px;
  border-radius: 12px 12px 0 0; background: rgba(255,255,255,.28);
}
.model .can::after {
  content: attr(data-k); position: absolute; left: 0; right: 0; bottom: 16px;
  color: rgba(255,255,255,.95); font-size: 8.5px; letter-spacing: .3em; font-weight: 700;
}
.model .can .band {
  position: absolute; left: 0; right: 0; top: 44%; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.18);
}
.model h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 800; }
.model .one-liner { color: var(--ink-soft); font-size: 0.85em; margin: 5px 0 14px; min-height: 2.6em; }
.model .price { font-weight: 700; font-size: 0.95em; }
.model .price span { color: var(--ink-faint); font-weight: 500; font-size: 0.85em; }
.model .pick { display: inline-block; margin-top: 12px; color: var(--green); font-weight: 700; font-size: 0.85em; }

/* ---------- แถบรุ่นเด่น (โทนกลางคืน) ---------- */
.feature-band {
  background: var(--night); color: #e9ece9; border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(44px, 7vw, 100px) clamp(24px, 4vw, 64px);
  text-align: center; overflow: hidden; position: relative;
}
.feature-band .k-eyebrow { color: #7fae9f; }
.feature-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); margin: 12px 0 10px; }
.feature-band p.big {
  color: #aab6ae; max-width: 46ch; margin: 0 auto clamp(28px, 4vw, 44px);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
}
.bold-stage { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 26px); margin-bottom: clamp(28px, 4vw, 44px); }
.bold-stage .can { border-radius: 16px 16px 12px 12px; position: relative; }
.bold-stage .can::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 26px; border-radius: 16px 16px 0 0; background: rgba(255,255,255,.22); }
.bold-stage .main { width: clamp(120px, 14vw, 170px); height: clamp(200px, 23vw, 280px); background: linear-gradient(165deg, #6b4630, #3d2517); box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.bold-stage .side { width: clamp(84px, 9vw, 110px); height: clamp(140px, 15vw, 185px); opacity: .45; }
.bold-stage .main .label {
  position: absolute; left: 0; right: 0; top: 42%; text-align: center;
  color: #fff; font-weight: 800; letter-spacing: .2em; font-size: clamp(13px, 1.4vw, 17px);
}
.bold-stage .main .k {
  position: absolute; left: 0; right: 0; bottom: 22px; text-align: center;
  color: rgba(255,255,255,.9); font-size: 9px; letter-spacing: .34em; font-weight: 700;
}
.spec3 {
  display: flex; gap: clamp(20px, 4vw, 60px); justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.spec3 div { text-align: center; }
.spec3 b { display: block; font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: #fff; font-weight: 700; }
.spec3 span { color: #8b978f; font-size: 0.82em; }

/* ---------- fits you (ตัวช่วยเลือก) ---------- */
.fits { padding: clamp(60px, 9vw, 120px) 0; text-align: center; }
.fits h2 { font-size: clamp(1.7rem, 4vw, 2.9rem); margin-bottom: 10px; }
.fits > .wrap > p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto clamp(30px, 4vw, 46px); }
.quiz {
  display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 760px; margin: 0 auto;
  text-align: left;
}
@media (min-width: 760px) { .quiz { grid-template-columns: repeat(3, 1fr); } }
.q {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.q .n { color: var(--ink-faint); font-size: 0.78em; font-weight: 700; letter-spacing: .1em; }
.q p { margin: 6px 0 10px; font-weight: 600; font-size: 0.95em; }
.q .a { display: flex; flex-wrap: wrap; gap: 6px; }
.q .a span {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
  font-size: 0.8em; color: var(--ink-soft); cursor: pointer; transition: all .14s ease;
}
.q .a span:hover, .q .a span.on { background: var(--green); border-color: var(--green); color: #fff; }
.quiz-result {
  margin: 26px auto 0; max-width: 760px; border-radius: var(--radius);
  background: var(--green-deep); color: #fff; padding: 18px 26px;
  display: none; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap;
  text-align: left;
}
.quiz-result.show { display: flex; }
.quiz-result b { font-size: 1.15em; }
.quiz-result small { color: #a9c6bb; display: block; }

/* ---------- lifestyle (สิ่งที่จะมา) ---------- */
.lifestyle { padding-bottom: clamp(60px, 9vw, 120px); }
.life-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .life-grid { grid-template-columns: repeat(4, 1fr); } }
.life {
  border-radius: var(--radius); aspect-ratio: 1/1.06; padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; position: relative; overflow: hidden;
}
.life h3 { font-size: 1.1rem; font-weight: 700; }
.life span { font-size: 0.8em; opacity: .75; }
.life .glyph {
  position: absolute; top: 14px; right: 18px; font-size: 2rem; opacity: .5;
}
.soon {
  position: absolute; top: 16px; left: 18px; font-size: 0.68em; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.16);
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---------- membership ---------- */
.member {
  background: var(--card); border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 64px); text-align: center;
}
.member h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); max-width: 22ch; margin: 10px auto 12px; }
.member p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 26px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: clamp(50px, 8vw, 100px); padding: clamp(36px, 5vw, 60px) 0 44px; font-size: 0.9em; }
.foot { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.5fr 1fr 1fr; } }
footer h4 { font-size: 0.75em; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 8px; }
footer a { text-decoration: none; color: var(--ink-soft); }
footer a:hover { color: var(--ink); }
.legal { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85em; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* mobile bar */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.mobile-bar .t { font-size: 0.8em; color: var(--ink-soft); line-height: 1.35; }
@media (min-width: 860px) { .mobile-bar { display: none; } }
body { padding-bottom: 74px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }
section > .wrap > .k-eyebrow { display: block; text-align: center; }

/* ==================== mobile-complete ==================== */

/* hamburger — จอเล็กต้องมีเมนูเต็ม ไม่ใช่แค่ปุ่ม Bag */
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
/* 3 ขีด → ✕ : บน-ล่างหมุนเข้าหากัน ขีดกลางจางหาย */
.menu-btn.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.x span:nth-child(2) { opacity: 0; }
.menu-btn.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 859px) { .menu-btn { display: flex; } }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: 0; z-index: 49;
  background: rgba(247,246,243,.98); backdrop-filter: blur(16px);
  padding: 86px 26px 26px; transform: translateY(-102%);
  transition: transform .26s ease; border-bottom: 1px solid var(--line);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  display: block; text-decoration: none; font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.02em; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .mm-lang { margin-top: 14px; font-size: 0.92em; color: var(--ink-faint); }
.mobile-menu .mm-lang a { display: inline; font-size: 1em; font-weight: 600; padding: 6px 4px; border: 0; }
.mobile-menu .mm-lang b { color: var(--ink); }
@media (min-width: 860px) { .mobile-menu { display: none; } }

/* นิ้วโป้ง: ชิพคำตอบ quiz ต้องกดง่ายบนจอสัมผัส */
@media (max-width: 859px) {
  .q .a span { padding: 10px 18px; font-size: 0.9em; }
  /* เวทีสินค้าเลิก sticky บนจอเดียวคอลัมน์ + เตี้ยลงให้เห็นตัวเลือกเร็ว */
  .pp-stage { position: static; min-height: clamp(240px, 60vw, 340px); }
  /* การ์ดรุ่นในหน้าแรก: หนึ่งคอลัมน์บนจอแคบมาก อ่านง่ายกว่าเบียดสอง */
  @media (max-width: 420px) { .family-grid { grid-template-columns: 1fr; } }
  /* ปุ่มหลักเต็มความกว้างบนมือถือ — กดง่าย ไม่ต้องเล็ง */
  .hero-cta .btn { flex: 1 1 auto; min-width: 150px; }
}

/* ===== แพ็กเกจจริง: ถุง Bone White #f5f1e8 ตัวอักษร Charcoal (อิงภาพถ่ายสินค้า 2026-08-16) ===== */
.bag {
  --accent: #2e2b25;
  position: relative; aspect-ratio: 5 / 8; flex: none;
  background:
    linear-gradient(103deg, rgba(255,255,255,0) 54%, rgba(255,255,255,.55) 70%, rgba(255,255,255,0) 84%),
    linear-gradient(150deg, #fbf8f0, #f5f1e8 46%, #e8e0cd);
  border-radius: 9px 9px 12px 12px;
  box-shadow:
    inset -9px 0 16px rgba(96,80,50,.10),
    inset 9px 0 16px rgba(255,255,255,.6),
    inset 0 -10px 18px rgba(96,80,50,.07),
    0 22px 34px -16px rgba(70,55,30,.45);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  color: #2e2b25; padding: 15% 8% 8%; font-size: 10px;
}
.bag::before { /* รอยซิปด้านบน */
  content: ""; position: absolute; top: 5.5%; left: 8%; right: 8%; height: 4px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(96,80,50,.16), rgba(255,255,255,.75) 55%, rgba(96,80,50,.10));
}
.bag .b-brand { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.55em; letter-spacing: .3em; text-indent: .3em; margin-top: .5em; }
.bag .b-dot { width: .42em; height: .42em; border-radius: 50%; background: var(--accent); margin-top: 1em; }
.bag .b-model { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.2em; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; margin-top: 2.4em; }
.bag .b-rule { width: 40%; height: 1px; background: rgba(46,43,37,.25); margin-top: 1.1em; }
.bag .b-spec { font-size: .58em; letter-spacing: .16em; text-transform: uppercase; color: rgba(46,43,37,.7); line-height: 2.05; margin-top: 1.5em; }
.bag .b-wt { margin-top: auto; font-size: .7em; letter-spacing: .12em; color: rgba(46,43,37,.8); }

/* ฉากหลังอุ่นแบบภาพถ่าย — ผนังปูนโดนแดดบ่าย */
.pod {
  position: relative; overflow: hidden; border-radius: 14px;
  background: var(--pod, linear-gradient(160deg, #efe5cf, #dcc9a5));
  display: flex; align-items: flex-end; justify-content: center;
}
.pod::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.4), rgba(255,255,255,0) 42%, rgba(96,70,30,.14) 92%); }

/* หิ้งโชว์ 4 ถุงใน hero — จำลองภาพแบนเนอร์จริง */
.hero-shelf {
  margin-top: clamp(30px, 4.5vw, 54px); border-radius: clamp(16px, 2.5vw, 26px);
  background: linear-gradient(160deg, #f0e6d0, #ddcaa6);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 34px);
  padding: clamp(30px, 5vw, 64px) clamp(14px, 4vw, 40px) clamp(18px, 2.5vw, 30px);
}
.hero-shelf::before { /* หิ้งหินด้านล่าง */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(18px, 2.5vw, 30px);
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.16));
  border-top: 1px solid rgba(96,70,30,.16);
}
.hero-shelf::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255,255,255,.42), rgba(255,255,255,0) 38%, rgba(96,70,30,.13) 90%); }
.hero-shelf .bag { width: clamp(62px, 11vw, 128px); font-size: clamp(5.8px, 1vw, 10.5px); z-index: 1; }

/* ขนาดถุงในการ์ดสี่รุ่นหน้าแรก */
.model .pod { height: clamp(158px, 18vw, 212px); margin: 2px 0 16px; padding-bottom: 8%; }
.model .bag { width: clamp(74px, 8vw, 96px); font-size: clamp(6.5px, .72vw, 8.5px); }

/* แถบรุ่นเด่นพื้นเข้ม: ถุงจริงสามใบ ใบกลางนำ */
.bold-stage .bag-main { width: clamp(118px, 13vw, 162px); font-size: clamp(9px, 1.05vw, 12.5px); }
.bold-stage .bag-side { width: clamp(80px, 8.5vw, 104px); font-size: clamp(6.5px, .75vw, 8.5px); opacity: .55; }
