/* =========================================================
   PM Technology — Stylesheet
   ธีมมืดล้ำ + accent เขียวมิ้นต์/ฟ้า ไล่เฉด
   โทเคนสีทั้งหมดอยู่ที่ :root ที่เดียว แก้ที่นี่ปรับทั้งเว็บ
   ========================================================= */

:root {
  --bg:        #06070b;   /* พื้นหลังหลัก มืดอมน้ำเงิน */
  --bg-soft:   #0c0f16;
  --panel:     rgba(255,255,255,.04);
  --panel-2:   rgba(255,255,255,.06);
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.14);

  --text:      #eef1f7;
  --muted:     #9aa3b2;
  --faint:     #6b7280;

  --mint:      #7cf7d0;
  --blue:      #6aa8ff;
  --violet:    #a78bfa;

  --accent-grad: linear-gradient(120deg, var(--mint), var(--blue));
  --radius:    18px;
  --radius-lg: 26px;
  --maxw:      1120px;

  --shadow:    0 20px 60px -20px rgba(0,0,0,.7);
  --glow:      0 0 40px -8px rgba(124,247,208,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Space Grotesk ไม่มีตัวอักษรไทย → ใส่ Noto Sans Thai เป็น fallback ให้ glyph ไทยเรนเดอร์ได้ */
h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Noto Sans Thai', sans-serif; line-height: 1.1; letter-spacing: -.02em; }

/* โหมดไทย: ตัวอักษรไทยมีวรรณยุกต์สูง เพิ่มระยะบรรทัดหัวข้อให้อ่านสบายขึ้น */
.lang-th h1, .lang-th h2, .lang-th h3 { line-height: 1.28; }
.lang-th .hero-title, .lang-th .p-hero h1 { letter-spacing: 0; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ============ พื้นหลังตกแต่ง ============ */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-aura {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(124,247,208,.16), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(106,168,255,.16), transparent 60%),
    radial-gradient(600px 600px at 50% 100%, rgba(167,139,250,.10), transparent 60%);
}
#particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 5vw, 48px);
  transition: background .3s, backdrop-filter .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,7,11,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 0 10px rgba(124,247,208,.35)); }
.brand-name { font-family: 'Space Grotesk'; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-name .dot { color: var(--mint); }

.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ปุ่มสลับภาษา (segmented EN / TH) */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); flex-shrink: 0;
}
.lang-toggle button {
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .8rem;
  padding: 6px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.active { color: #04120d; background: var(--accent-grad); }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; color: var(--muted);
  font-size: .93rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--panel); }
.nav-cta {
  color: var(--bg) !important; background: var(--accent-grad);
  font-weight: 600 !important;
}
.nav-cta:hover { filter: brightness(1.08); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-burger span + span { margin-top: 5px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ ปุ่ม ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, filter .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-sm { padding: 11px 20px; font-size: .92rem; }
.btn-primary { background: var(--accent-grad); color: #04120d; box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--mint); transform: translateY(-2px); }

/* ============ HERO ============ */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(130px, 20vh, 200px) clamp(18px, 5vw, 48px) 90px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border);
  font-size: .85rem; color: var(--muted); margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(124,247,208,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124,247,208,.6); }
  70% { box-shadow: 0 0 0 9px rgba(124,247,208,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,247,208,0); }
}
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; margin-bottom: 24px; }
.grad {
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 620px; margin: 0 auto 38px; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.2rem); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 70px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 760px; margin: 0 auto;
}
.hero-stats > div {
  padding: 22px 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
}
.hero-stats dt { font-family: 'Space Grotesk'; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats dd { color: var(--faint); font-size: .85rem; margin-top: 4px; }

/* ============ SECTION ทั่วไป ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 90px clamp(18px, 5vw, 48px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--mint); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ============ FEATURE CARD (Metronome Map) ============ */
.feature-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(124,247,208,.06), rgba(106,168,255,.04));
  border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,247,208,.14), transparent 70%);
  pointer-events: none;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  margin-bottom: 18px;
}
.chip-live { color: var(--mint); border-color: rgba(124,247,208,.3); }
.feature-copy h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.feature-copy > p { color: var(--muted); margin-bottom: 22px; }
.feature-list { list-style: none; margin-bottom: 28px; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--text); font-size: .98rem; }
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 8px;
  border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint);
  transform: rotate(-45deg);
}
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- โทรศัพท์จำลอง วาดด้วย CSS ---- */
.feature-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 260px; height: 520px; border-radius: 40px;
  background: linear-gradient(160deg, #14181f, #0a0c11);
  border: 1px solid var(--border-2); padding: 14px;
  box-shadow: var(--shadow), inset 0 0 0 6px rgba(0,0,0,.4);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #05070a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 28px; background: radial-gradient(120% 80% at 50% 0%, #0f1a1f, #070a0e);
  padding: 40px 18px 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.05);
}
.app-bar { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; margin-bottom: 22px; }
.app-bar span { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-grad); }
.app-bar b { color: var(--text); font-family: 'Space Grotesk'; }
.bpm { text-align: center; color: var(--faint); font-size: .8rem; margin-bottom: 18px; }
.bpm em { display: block; font-family: 'Space Grotesk'; font-style: normal; font-size: 3rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.timeline { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr 1fr; gap: 4px; margin-bottom: 16px; }
.timeline .seg { font-size: .62rem; text-align: center; padding: 8px 2px; border-radius: 7px; color: #cfe; }
.seg.s1 { background: rgba(124,247,208,.22); }
.seg.s2 { background: rgba(106,168,255,.22); }
.seg.s3 { background: rgba(167,139,250,.24); }
.seg.s4 { background: rgba(124,247,208,.18); }
.beats { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }
.beats i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.15); }
.beats i { animation: beat 1s steps(1) infinite; }
.beats i:nth-child(1){animation-delay:0s} .beats i:nth-child(2){animation-delay:.25s}
.beats i:nth-child(3){animation-delay:.5s} .beats i:nth-child(4){animation-delay:.75s}
@keyframes beat { 0%{ background: var(--mint); box-shadow: 0 0 12px var(--mint);} 25%,100%{ background: rgba(255,255,255,.15); box-shadow:none;} }
.wave { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 60px; }
.wave span { width: 7px; border-radius: 4px; background: var(--accent-grad); animation: wave 1.2s ease-in-out infinite; }
.wave span:nth-child(odd){ animation-delay: .2s; }
.wave span:nth-child(3n){ animation-delay: .4s; }
@keyframes wave { 0%,100%{ height: 14px; opacity:.5;} 50%{ height: 52px; opacity:1;} }

/* ============ COMING SOON GRID ============ */
.coming-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.mini {
  padding: 26px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--border); transition: transform .2s, border-color .2s, background .2s;
}
.mini:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.mini h4 { font-size: 1.2rem; margin-bottom: 8px; }
.mini p { color: var(--muted); font-size: .95rem; }
.mini-cta { background: linear-gradient(160deg, rgba(106,168,255,.1), rgba(124,247,208,.06)); border-color: rgba(124,247,208,.2); }
.mini-cta a { color: var(--mint); font-weight: 600; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 28px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.step-no { font-family: 'Space Grotesk'; font-size: 1.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px var(--mint); display: block; margin-bottom: 16px; }
.step h4 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ============ FOUNDERS ============ */
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 780px; margin: 0 auto; }
.founder { text-align: center; padding: 40px 28px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border); transition: transform .2s, border-color .2s; }
.founder:hover { transform: translateY(-5px); border-color: var(--border-2); }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-family: 'Space Grotesk'; font-size: 2rem; font-weight: 700; color: #04120d;
  background: var(--accent-grad); box-shadow: var(--glow);
}
.avatar-2 { background: linear-gradient(120deg, var(--blue), var(--violet)); box-shadow: 0 0 40px -8px rgba(106,168,255,.4); }
.founder h4 { font-size: 1.3rem; margin-bottom: 4px; }
.founder .role { color: var(--mint); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.founder .bio { color: var(--muted); font-size: .95rem; }

/* ============ CONTACT ============ */
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(124,247,208,.09), rgba(106,168,255,.06));
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.contact-card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 8px 0 12px; }
.contact-form { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-form input {
  flex: 1 1 220px; padding: 15px 18px; border-radius: 999px;
  background: rgba(0,0,0,.35); border: 1px solid var(--border-2); color: var(--text); font-size: 1rem; font-family: inherit;
}
.contact-form input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(124,247,208,.15); }
.contact-form input::placeholder { color: var(--faint); }
.form-note { flex-basis: 100%; font-size: .88rem; color: var(--mint); min-height: 1.2em; }

/* ============ FOOTER ============ */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 60px clamp(18px, 5vw, 48px) 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: .94rem; transition: color .2s; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: .85rem; }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,7,11,.96); backdrop-filter: blur(14px);
    padding: 14px; gap: 6px; border-bottom: 1px solid var(--border);
    margin-left: 0;
  }
  .nav-links.open a { padding: 14px 16px; }
  .nav-burger { display: block; }
  /* nav-links ซ่อนอยู่ จึงต้องให้ปุ่มภาษาดันตัวเอง+burger ไปชิดขวาแทน */
  .lang-toggle { margin-left: auto; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-visual { order: -1; }
  .coming-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .founders { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* =========================================================
   PRODUCT PAGE — Metronome Map (metronome-map.html)
   ต่อยอดจากธีมเดิม เพิ่มเฉพาะส่วนที่หน้านี้ใช้
   ========================================================= */

/* ปุ่มย้อนกลับเล็กๆ ใน nav ของหน้า product */
.nav-back { color: var(--muted); font-size: .9rem; }
.nav-back:hover { color: var(--mint); }

/* ---- PRODUCT HERO ---- */
.p-hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(130px, 18vh, 180px) clamp(18px, 5vw, 48px) 70px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.p-hero-copy .app-icon {
  width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center;
  background: var(--accent-grad); box-shadow: var(--glow); margin-bottom: 22px;
}
.p-hero-copy .app-icon svg { width: 44px; height: 44px; }
.p-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.p-hero .lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 540px; margin-bottom: 30px; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 11px; padding: 12px 22px;
  border-radius: 14px; background: var(--panel-2); border: 1px solid var(--border-2);
  transition: transform .15s, border-color .2s, background .2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--mint); background: var(--panel); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn small { display: block; font-size: .68rem; color: var(--faint); line-height: 1.2; }
.store-btn b { font-family: 'Space Grotesk'; font-size: 1.05rem; }
.p-hero .rating { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; }
.stars { color: #ffcf5c; letter-spacing: 2px; }

/* กล่องสมัคร beta (แทนปุ่มดาวน์โหลด ระหว่างที่แอปยังไม่ปล่อย) */
.beta-cta { max-width: 480px; }
.beta-lead { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.beta-form { margin-bottom: 4px; }
.beta-form .form-note { color: var(--mint); }

/* ---- แถบสถิติเล็ก ---- */
.p-strip {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px);
}
.p-strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.p-strip-inner > div { background: var(--bg-soft); padding: 26px 18px; text-align: center; }
.p-strip b { display: block; font-family: 'Space Grotesk'; font-size: 1.7rem; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.p-strip span { color: var(--faint); font-size: .85rem; }

/* ---- FEATURE GRID (6 การ์ด) ---- */
.p-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-feat {
  padding: 30px 26px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--border); transition: transform .2s, border-color .2s, background .2s;
}
.p-feat:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.p-feat .ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(124,247,208,.16), rgba(106,168,255,.12));
  border: 1px solid var(--border); margin-bottom: 18px;
}
.p-feat .ico svg { width: 26px; height: 26px; stroke: var(--mint); }
.p-feat h4 { font-size: 1.2rem; margin-bottom: 8px; }
.p-feat p { color: var(--muted); font-size: .95rem; }

/* ---- DEEP DIVE (สลับซ้าย-ขวา) ---- */
.dive { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 40px; }
.dive:last-child { margin-bottom: 0; }
.dive.flip .dive-visual { order: 2; }
.dive-copy .kicker { text-align: left; }
.dive-copy h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 14px; }
.dive-copy p { color: var(--muted); margin-bottom: 14px; }
.dive-copy .feature-list { margin-top: 20px; }
.dive-visual {
  border-radius: var(--radius-lg); padding: 34px; min-height: 300px;
  background: linear-gradient(160deg, rgba(124,247,208,.06), rgba(106,168,255,.04));
  border: 1px solid var(--border); display: grid; place-items: center; position: relative; overflow: hidden;
}

/* mockup: timeline แนวยาวสำหรับ deep dive */
.map-demo { width: 100%; max-width: 340px; }
.map-demo .row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.map-demo .row small { width: 46px; color: var(--faint); font-size: .72rem; text-align: right; }
.map-demo .bar { flex: 1; height: 34px; border-radius: 9px; display: flex; align-items: center; padding: 0 12px; font-size: .74rem; color: #dff; font-weight: 600; }
.b1 { background: rgba(124,247,208,.22); }
.b2 { background: rgba(106,168,255,.22); }
.b3 { background: rgba(167,139,250,.26); }
.b4 { background: rgba(124,247,208,.16); }
.map-demo .tempo-line { display: flex; align-items: flex-end; gap: 3px; height: 50px; margin-top: 18px; padding-left: 56px; }
.map-demo .tempo-line i { flex: 1; background: var(--accent-grad); border-radius: 3px; opacity: .8; }

/* dial เมโทรนอมสำหรับ deep dive อีกอัน */
.dial { width: 200px; height: 200px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #10161c, #070a0e); border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.dial::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(124,247,208,.25); }
.dial .needle { position: absolute; width: 3px; height: 78px; background: var(--accent-grad); border-radius: 3px; bottom: 100px; transform-origin: bottom center; animation: tick 1.5s ease-in-out infinite; }
@keyframes tick { 0%,100% { transform: rotate(-28deg); } 50% { transform: rotate(28deg); } }
.dial .num { font-family: 'Space Grotesk'; font-size: 2.4rem; font-weight: 700; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; position: relative; top: 34px; }

/* ---- USE CASES ---- */
.p-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-case { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); }
.p-case .emoji { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.p-case h4 { font-size: 1.15rem; margin-bottom: 8px; }
.p-case p { color: var(--muted); font-size: .93rem; }

/* ---- FAQ (accordion) ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
  margin-bottom: 12px; overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-family: 'Space Grotesk';
  font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { color: var(--mint); font-size: 1.4rem; transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }

/* ---- FINAL CTA ---- */
.p-cta { text-align: center; }
.p-cta-card {
  max-width: 780px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 48px);
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(124,247,208,.1), rgba(106,168,255,.07));
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
}
.p-cta-card h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.p-cta-card p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.p-cta-card .store-btns { justify-content: center; }

@media (max-width: 900px) {
  .p-hero { grid-template-columns: 1fr; gap: 40px; }
  .p-hero .phone { margin: 0 auto; }
  .p-strip-inner { grid-template-columns: 1fr 1fr; }
  .p-features { grid-template-columns: 1fr 1fr; }
  .dive { grid-template-columns: 1fr; gap: 30px; }
  .dive.flip .dive-visual { order: -1; }
  .p-cases { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .p-features { grid-template-columns: 1fr; }
  .p-strip-inner { grid-template-columns: 1fr 1fr; }
}

/* ลด motion สำหรับผู้ใช้ที่ตั้งค่าไว้ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
