/* ═══════════════════════════════════════════════════════════════════════════
   Moobaan — Landing page
   ───────────────────────────────────────────────────────────────────────────
   แนวคิด: "ทุ่งนา · ผ้าขาวม้า · สมุดบันทึกหมู่บ้าน"
   เขียวป่าลึก + ครีมรวงข้าว + ขมิ้น เป็นสีหลัก ส่วนเขียวมรกต (สีธีมหลักของแอป)
   ใช้เป็นจุดเน้น  ลายผ้าขาวม้าใช้เป็นแถบคั่นส่วน
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --forest-900: #0b2a20;
  --forest-800: #0f3a2c;
  --forest-700: #154a39;
  --forest-600: #1d5e49;
  --emerald:    #10b981;
  --emerald-d:  #059669;
  --mint:       #d7f5e7;
  --rice-50:    #fbf8f1;
  --rice-100:   #f5efe0;
  --rice-200:   #ebe1c8;
  --rice-300:   #d9caa4;
  --turmeric:   #e3a23b;
  --turmeric-d: #c6861f;
  --clay:       #c8623f;
  --sky:        #5bb8f0;
  --ink:        #13241d;
  --ink-2:      #3c4f46;
  --ink-3:      #6c7d74;
  --line:       rgba(19, 36, 29, .12);
  --line-2:     rgba(19, 36, 29, .07);

  --bg:         var(--rice-50);
  --bg-2:       var(--rice-100);
  --surface:    #ffffff;
  --text:       var(--ink);
  --text-2:     var(--ink-2);
  --text-3:     var(--ink-3);

  --f-display: "Taviraj", "Noto Serif Thai", Georgia, serif;
  --f-body:    "IBM Plex Sans Thai Looped", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", "IBM Plex Sans Thai Looped", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;

  --shadow-1: 0 1px 2px rgba(11, 42, 32, .06), 0 2px 8px rgba(11, 42, 32, .05);
  --shadow-2: 0 2px 4px rgba(11, 42, 32, .05), 0 12px 32px -8px rgba(11, 42, 32, .18);
  --shadow-3: 0 30px 80px -20px rgba(11, 42, 32, .35);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  /* ผ้าขาวม้า — ตาหมากรุกสองชั้น */
  --pakama:
    repeating-linear-gradient(90deg, rgba(227,162,59,.9) 0 10px, transparent 10px 22px, rgba(16,185,129,.85) 22px 30px, transparent 30px 44px),
    repeating-linear-gradient(0deg, rgba(227,162,59,.75) 0 10px, transparent 10px 22px, rgba(16,185,129,.7) 22px 30px, transparent 30px 44px),
    var(--forest-800);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--turmeric); color: var(--forest-900); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Type ─────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--forest-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.on-dark { color: var(--turmeric); }
.eyebrow .th { font-family: var(--f-body); letter-spacing: .02em; text-transform: none; font-size: 14px; font-weight: 600; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
.h-sec { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.2; }
.h-sec em { font-style: normal; color: var(--emerald-d); position: relative; white-space: nowrap; }
.h-sec em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; z-index: -1;
  background: color-mix(in srgb, var(--turmeric) 45%, transparent); border-radius: 4px; transform: skewX(-8deg);
}
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 62ch; margin: 18px 0 0; }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head .eyebrow { margin-bottom: 18px; }

section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --b-bg: var(--forest-800); --b-fg: var(--rice-50);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg); font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -8px rgba(11,42,32,.5);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 14px 28px -10px rgba(11,42,32,.55); }
.btn:active { transform: translateY(0); }
.btn i { font-size: 1.05em; line-height: 1; display: inline-flex; }
.btn-gold { --b-bg: var(--turmeric); --b-fg: var(--forest-900); }
.btn-gold:hover { --b-bg: #eeb04b; }
.btn-ghost { --b-bg: transparent; --b-fg: var(--forest-800); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--forest-700); }
.btn-ghost.on-dark { --b-fg: var(--rice-50); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.btn-ghost.on-dark:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--rice-50) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 23px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(19,36,29,.06); color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(19,36,29,.06); align-items: center; justify-content: center; font-size: 20px; }
@media (max-width: 1060px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-burger { display: inline-flex; margin-left: 0; }
}
@media (max-width: 520px) { .nav-cta { display: none; } .nav-burger { margin-left: auto; } }

.mnav {
  position: fixed; inset: 0; z-index: 60; background: var(--forest-900); color: var(--rice-50);
  display: flex; flex-direction: column; padding: 20px var(--gutter) 32px;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.2,1); visibility: hidden;
}
.mnav.open { transform: none; visibility: visible; }
.mnav-top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.mnav-top button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.08); font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.mnav nav { display: flex; flex-direction: column; margin-top: 24px; }
.mnav nav a { font-family: var(--f-display); font-size: 30px; font-weight: 700; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; }
.mnav nav a span { font-family: var(--f-mono); font-size: 12px; color: var(--turmeric); }
.mnav .btn { margin-top: auto; width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 140px 0 0; overflow: hidden; }
.hero::before { /* ท้องฟ้ายามเช้า */
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(227,162,59,.22), transparent 70%),
    radial-gradient(50% 60% at 5% 0%, rgba(16,185,129,.14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; color: var(--text-2);
}
.hero-badge b { background: var(--forest-800); color: var(--turmeric); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.hero h1 { font-size: clamp(42px, 6.4vw, 82px); line-height: 1.12; margin-top: 26px; letter-spacing: -.015em; }
.hero h1 .l2 { display: block; color: var(--forest-600); font-style: italic; font-weight: 600; }
.hero h1 .dot { color: var(--turmeric); }
.hero .lede { font-size: clamp(17.5px, 1.7vw, 20px); margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line); }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.hero-trust i { color: var(--emerald-d); font-size: 18px; display: inline-flex; }

/* hero stage (ภาพหมู่บ้าน + อุปกรณ์) */
.stage { position: relative; aspect-ratio: 1 / 1.02; min-height: 440px; }
.stage-map { position: absolute; inset: 4% 0 0 4%; border-radius: var(--r-xl); overflow: hidden; background: #e8efd9; box-shadow: var(--shadow-3); }
.stage-map svg { width: 100%; height: 100%; }
.stage-map::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(11,42,32,.08); pointer-events: none; }

.phone {
  position: absolute; right: -2%; bottom: -3%; width: 44%; aspect-ratio: 9 / 18.6; z-index: 3;
  background: #0d1512; border-radius: 34px; padding: 9px; box-shadow: 0 40px 70px -20px rgba(0,0,0,.55), 0 0 0 1.5px rgba(255,255,255,.08) inset;
  animation: floaty 7s ease-in-out infinite;
}
.phone-screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #f3f7f4; position: relative; display: flex; flex-direction: column; font-size: 10.5px; line-height: 1.45; }
.phone-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 17px; background: #0d1512; border-radius: 99px; z-index: 2; }
.ph-head { background: linear-gradient(135deg, var(--emerald), var(--emerald-d)); color: #fff; padding: 34px 13px 34px; }
.ph-head small { opacity: .8; font-size: 9.5px; }
.ph-head b { display: block; font-size: 14px; font-weight: 700; font-family: var(--f-display); }
.ph-bill { margin: -24px 10px 0; background: #fff; border-radius: 14px; padding: 11px 12px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.18); }
.ph-bill .row { display: flex; justify-content: space-between; align-items: center; }
.ph-bill .amt { font-family: var(--f-display); font-weight: 800; font-size: 19px; color: var(--ink); }
.ph-bill .pay { margin-top: 8px; background: var(--forest-800); color: var(--rice-50); text-align: center; border-radius: 9px; padding: 6px; font-weight: 600; font-size: 10.5px; display: flex; gap: 5px; justify-content: center; align-items: center; }
.ph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; padding: 13px 10px 6px; }
.ph-grid div { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8.5px; color: var(--ink-2); text-align: center; line-height: 1.2; }
.ph-grid i { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ph-feed { padding: 4px 10px; display: flex; flex-direction: column; gap: 6px; }
.ph-feed .it { background: #fff; border-radius: 10px; padding: 7px 9px; display: flex; gap: 8px; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ph-feed .it i { font-size: 12px; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-feed .it b { display: block; font-size: 9.5px; font-weight: 600; }
.ph-feed .it span { font-size: 8.5px; color: var(--ink-3); }
.ph-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 6px 12px; background: #fff; border-top: 1px solid rgba(0,0,0,.05); font-size: 14px; color: #9aa9a1; }
.ph-tab .on { color: var(--emerald-d); }

.toast {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2);
  font-size: 13.5px; line-height: 1.35; max-width: 260px;
  opacity: 0; transform: translateY(14px) scale(.96); animation: toastIn .7s cubic-bezier(.2,.9,.3,1.2) forwards;
}
.toast i { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.toast b { display: block; font-weight: 600; font-size: 14px; }
.toast span { color: var(--text-3); font-size: 12.5px; }
.toast.t1 { top: 9%; left: -5%; animation-delay: .9s; }
.toast.t2 { top: 42%; left: -9%; animation-delay: 1.3s; }
.toast.t3 { bottom: 8%; left: 6%; animation-delay: 1.7s; }
@keyframes toastIn { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(-.5deg); } }

.pin { animation: pinDrop .8s cubic-bezier(.3,1.6,.5,1) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes pinDrop { from { transform: translateY(-30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.pulse { animation: pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 560px; margin: 20px auto 0; width: 100%; }
}
@media (max-width: 560px) {
  .stage { min-height: 0; aspect-ratio: 1 / 1.1; }
  .toast { font-size: 12px; padding: 9px 12px 9px 9px; max-width: 200px; gap: 9px; }
  .toast i { width: 30px; height: 30px; font-size: 14px; }
  .toast b { font-size: 12.5px; }
  .toast span { font-size: 11px; }
  .toast.t1 { left: 0; top: 2%; }
  .toast.t2 { left: 0; top: 38%; }
  .toast.t3 { left: 2%; bottom: 3%; }
  .phone { width: 48%; right: 0; border-radius: 26px; padding: 7px; }
  .phone-screen { border-radius: 20px; font-size: 8px; }
  .ph-head { padding: 26px 10px 28px; }
  .ph-head b { font-size: 11px; }
  .ph-bill .amt { font-size: 14px; }
  .ph-grid i { width: 22px; height: 22px; font-size: 10px; border-radius: 7px; }
  .ph-grid div { font-size: 7px; }
  .ph-feed .it:nth-child(n+3) { display: none; }
}

/* ── Pakama band + marquee ───────────────────────────────────────────── */
.pakama { height: 14px; background: var(--pakama); background-size: 44px 44px; }
.marquee { background: var(--forest-900); color: var(--rice-100); overflow: hidden; padding: 22px 0; position: relative; margin-top: clamp(64px, 8vw, 110px); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: 24px; font-weight: 600; white-space: nowrap; }
.marquee-track span i { color: var(--turmeric); font-size: 20px; display: inline-flex; }
.marquee-track span::after { content: "✦"; color: rgba(255,255,255,.25); font-size: 14px; margin-left: 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Problem / before-after ───────────────────────────────────────────── */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.ba-card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); position: relative; }
.ba-before { background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(19,36,29,.08) 31px 32px), #f1ead6; box-shadow: inset 0 0 0 1px var(--line); }
.ba-before::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 1.5px; background: rgba(200,98,63,.35); }
.ba-after { background: var(--forest-800); color: var(--rice-50); box-shadow: var(--shadow-3); }
.ba-card h3 { font-size: 26px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.ba-card .tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; padding: 4px 10px; border-radius: 99px; font-weight: 600; }
.ba-before .tag { background: rgba(200,98,63,.14); color: var(--clay); }
.ba-after .tag { background: rgba(227,162,59,.18); color: var(--turmeric); }
.ba-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ba-card li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; }
.ba-before li { padding-left: 28px; }
.ba-card li i { font-size: 18px; margin-top: 3px; flex-shrink: 0; display: inline-flex; }
.ba-before li i { color: var(--clay); }
.ba-after li i { color: var(--emerald); }
.ba-after li span { color: rgba(251,248,241,.72); }
.ba-after li b { color: #fff; font-weight: 600; }
.ba-before li s { text-decoration-color: rgba(200,98,63,.6); text-decoration-thickness: 1.5px; }
.ba-arrow { display: flex; align-items: center; justify-content: center; }
.ba-arrow span { width: 64px; height: 64px; border-radius: 50%; background: var(--turmeric); color: var(--forest-900); display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: var(--shadow-2); }
@media (max-width: 860px) {
  .ba { grid-template-columns: 1fr; }
  .ba-arrow span { transform: rotate(90deg); }
}

/* ── Hubs (tabbed showcase) ───────────────────────────────────────────── */
.hubs { background: var(--bg-2); }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hub-tab {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 8px; border-radius: 999px; border: 0;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 15.5px; color: var(--text-2);
  transition: background .25s, color .25s, box-shadow .25s;
}
.hub-tab i { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; background: var(--rice-100); transition: background .25s, color .25s; }
.hub-tab:hover { box-shadow: inset 0 0 0 1.5px var(--forest-600); }
.hub-tab[aria-selected="true"] { background: var(--forest-800); color: var(--rice-50); box-shadow: none; }
.hub-tab[aria-selected="true"] i { background: var(--turmeric); color: var(--forest-900); }

.hub-panel { display: none; grid-template-columns: 1fr 1.08fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.hub-panel.active { display: grid; animation: fadeUp .5s cubic-bezier(.2,.8,.2,1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hub-intro h3 { font-size: clamp(28px, 3.2vw, 38px); }
.hub-intro p { color: var(--text-2); margin: 14px 0 0; }
.feat-list { display: grid; gap: 12px; margin-top: 28px; }
.feat {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s, transform .25s;
}
.feat:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2); transform: translateY(-2px); }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.feat h4 { font-family: var(--f-body); font-size: 17px; font-weight: 700; line-height: 1.4; }
.feat h4 small { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--text-3); margin-left: 6px; text-transform: uppercase; }
.feat p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); line-height: 1.6; }

/* browser mock */
.mock { border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-3), inset 0 0 0 1px var(--line-2); overflow: hidden; position: sticky; top: 100px; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f4f1e8; border-bottom: 1px solid var(--line-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2d9c2; }
.mock-bar i:nth-child(1) { background: #ec6a5e; } .mock-bar i:nth-child(2) { background: #f4bf4f; } .mock-bar i:nth-child(3) { background: #61c554; }
.mock-bar .url { margin-left: 12px; flex: 1; background: #fff; border-radius: 8px; height: 26px; font-family: var(--f-mono); font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; padding: 0 12px; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 420px; font-size: 12.5px; }
.mock-side { background: linear-gradient(180deg, var(--emerald), var(--emerald-d)); color: #fff; padding: 16px 10px; display: flex; flex-direction: column; gap: 3px; }
.mock-side .lg { font-family: var(--f-display); font-weight: 800; font-size: 15px; padding: 2px 8px 14px; display: flex; gap: 7px; align-items: center; }
.mock-side .lg svg { width: 22px; height: 22px; }
.mock-side a { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; color: rgba(255,255,255,.85); font-size: 12px; }
.mock-side a.on { background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }
.mock-main { padding: 18px; background: #f6faf8; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-h { display: flex; justify-content: space-between; align-items: center; }
.mock-h b { font-family: var(--f-display); font-size: 17px; }
.mock-h span { font-size: 11px; background: var(--forest-800); color: #fff; padding: 5px 11px; border-radius: 99px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpis div { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.mock-kpis small { color: var(--text-3); font-size: 10.5px; display: block; }
.mock-kpis b { font-family: var(--f-display); font-size: 20px; }
.mock-kpis em { font-style: normal; font-size: 10px; color: var(--emerald-d); font-weight: 600; }
.mock-card { background: #fff; border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.mock-row:last-child { border-bottom: 0; }
.mock-row .av { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.mock-row .tx { flex: 1; min-width: 0; }
.mock-row .tx b { display: block; font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .tx span { color: var(--text-3); font-size: 10.5px; }
.chip { font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip.g { background: #d9f6e8; color: #047857; } .chip.y { background: #fdf0d2; color: #a16207; } .chip.r { background: #fde2dd; color: #b4432a; } .chip.b { background: #dcefff; color: #1f6fae; } .chip.v { background: #ece4ff; color: #6a45b8; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding-top: 6px; }
.bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--emerald) 30%, #fff); }
.bars span.hi { background: var(--emerald); }
.poll-bar { height: 8px; border-radius: 99px; background: var(--rice-100); overflow: hidden; margin-top: 5px; }
.poll-bar i { display: block; height: 100%; border-radius: inherit; background: var(--emerald); }
@media (max-width: 960px) {
  .hub-panel.active { grid-template-columns: 1fr; }
  .mock { position: relative; top: 0; }
}
@media (max-width: 560px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .hub-tab { height: 44px; font-size: 14.5px; padding-right: 16px; }
  .hub-tab i { width: 30px; height: 30px; font-size: 14px; }
}

/* ── Ecosystem (8 sub-systems) ───────────────────────────────────────── */
.eco { background: var(--forest-900); color: var(--rice-50); overflow: hidden; }
.eco::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(40% 40% at 100% 0%, rgba(227,162,59,.16), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(16,185,129,.18), transparent 70%);
}
.eco .h-sec { color: #fff; }
.eco .h-sec em { color: var(--turmeric); }
.eco .h-sec em::after { background: rgba(16,185,129,.35); }
.eco .lede { color: rgba(251,248,241,.72); }
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.sys {
  --c: var(--emerald);
  position: relative; border-radius: var(--r-lg); padding: 26px 24px 24px; min-height: 360px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  display: flex; flex-direction: column; overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, background .35s;
}
.sys::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.sys:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c) 60%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(255,255,255,.02)); }
.sys:hover::before { transform: scaleX(1); }
.sys-top { display: flex; justify-content: space-between; align-items: flex-start; }
.sys-ic { width: 54px; height: 54px; border-radius: 16px; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.sys-no { font-family: var(--f-mono); font-size: 12px; color: rgba(255,255,255,.35); letter-spacing: .1em; }
.sys h3 { font-size: 24px; margin-top: 20px; color: #fff; }
.sys .en { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); margin-top: 2px; }
.sys p { font-size: 14.5px; color: rgba(251,248,241,.7); margin: 12px 0 0; line-height: 1.6; }
.sys ul { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 7px; border-top: 1px dashed rgba(255,255,255,.1); margin-top: 18px; }
.sys li { font-size: 13.5px; color: rgba(251,248,241,.85); display: flex; gap: 9px; line-height: 1.45; }
.sys li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c); margin-top: 8px; flex-shrink: 0; }
.eco-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; font-size: 15px; color: rgba(251,248,241,.72); }
.eco-foot div { display: flex; align-items: center; gap: 10px; }
.eco-foot i { color: var(--turmeric); font-size: 18px; display: inline-flex; }
@media (max-width: 1100px) { .eco-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .eco-grid { grid-template-columns: 1fr; } .sys { min-height: 0; } }

/* ── Highlights (bento) ───────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bx { border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); position: relative; overflow: hidden; }
.bx h3 { font-size: 24px; line-height: 1.3; }
.bx p { color: var(--text-2); font-size: 15.5px; margin: 10px 0 0; }
.bx .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.bx .k i { font-size: 15px; color: var(--emerald-d); display: inline-flex; }
.bx-1 { grid-column: span 3; grid-row: span 2; background: var(--forest-800); color: var(--rice-50); }
.bx-1 p { color: rgba(251,248,241,.72); }
.bx-1 .k { color: var(--turmeric); } .bx-1 .k i { color: var(--turmeric); }
.bx-2 { grid-column: span 3; }
.bx-3 { grid-column: span 3; }
.bx-4 { grid-column: span 2; }
.bx-5 { grid-column: span 2; }
.bx-6 { grid-column: span 2; }
.bx-7 { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: center; background: var(--rice-100); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx-1, .bx-2, .bx-3, .bx-7 { grid-column: span 2; }
  .bx-1 { grid-row: auto; }
  .bx-4, .bx-5 { grid-column: span 1; }
  .bx-6 { grid-column: span 2; }
  .bx-7 { grid-template-columns: 1fr; }
}
@media (max-width: 580px) { .bento { grid-template-columns: 1fr; } .bx-1, .bx-2, .bx-3, .bx-4, .bx-5, .bx-6, .bx-7 { grid-column: auto; } }

/* ID card visual */
.idcard-stage { margin-top: 30px; position: relative; height: 230px; }
.idcard {
  position: absolute; left: 50%; top: 20px; width: 290px; max-width: 86%; aspect-ratio: 1.586; transform: translateX(-50%) rotate(-5deg);
  border-radius: 14px; padding: 14px 16px; color: #263a45;
  background: linear-gradient(135deg, #e9f4fb 0%, #cfe6f4 40%, #f7e7f0 100%);
  box-shadow: 0 30px 50px -18px rgba(0,0,0,.6); overflow: hidden; font-size: 9px;
  animation: cardSlide 5s cubic-bezier(.6,0,.3,1) infinite;
}
.idcard::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 70% 60%, rgba(91,184,240,.15) 0 2px, transparent 2px 7px); }
.idcard .t { font-weight: 700; font-size: 10px; position: relative; }
.idcard .chipc { position: absolute; left: 16px; top: 42px; width: 38px; height: 29px; border-radius: 6px; background: linear-gradient(135deg, #f1d38a, #c9a24a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.idcard .chipc::after { content: ""; position: absolute; inset: 6px 8px; border: 1px solid rgba(0,0,0,.25); border-radius: 3px; }
.idcard .face { position: absolute; right: 16px; bottom: 14px; width: 64px; height: 78px; border-radius: 6px; background: linear-gradient(180deg, #b9c9d4, #8ea5b4); }
.idcard .face::before { content: ""; position: absolute; left: 50%; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: #dfe8ee; transform: translateX(-50%); }
.idcard .face::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 46px; height: 26px; border-radius: 24px 24px 0 0; background: #dfe8ee; transform: translateX(-50%); }
.idcard .lines { position: absolute; left: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.idcard .lines span { height: 5px; border-radius: 3px; background: rgba(38,58,69,.25); }
.reader { position: absolute; left: 50%; bottom: 0; width: 320px; max-width: 94%; height: 70px; transform: translateX(-50%); border-radius: 16px; background: linear-gradient(180deg, #24463a, #0e2a20); box-shadow: 0 20px 40px -15px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.reader::before { content: ""; position: absolute; left: 12%; right: 12%; top: 12px; height: 7px; border-radius: 4px; background: #061a13; box-shadow: inset 0 2px 3px rgba(0,0,0,.6); }
.reader .led { position: absolute; right: 22px; bottom: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 12px var(--emerald); animation: led 5s infinite; }
.reader .lbl { position: absolute; left: 22px; bottom: 13px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.4); }
@keyframes cardSlide {
  0%, 12% { transform: translateX(-50%) translateY(-10px) rotate(-5deg); }
  40%, 70% { transform: translateX(-50%) translateY(46px) rotate(0deg); }
  95%, 100% { transform: translateX(-50%) translateY(-10px) rotate(-5deg); }
}
@keyframes led { 0%, 38% { background: #f4bf4f; box-shadow: 0 0 12px #f4bf4f; } 45%, 72% { background: var(--emerald); box-shadow: 0 0 14px var(--emerald); } 80%, 100% { background: #f4bf4f; box-shadow: 0 0 12px #f4bf4f; } }
.id-fill { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.id-fill div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.id-fill small { display: block; font-size: 11px; color: rgba(251,248,241,.5); }
.id-fill b { font-size: 14px; font-weight: 600; font-family: var(--f-mono); letter-spacing: .02em; }
.id-fill b.typing { border-right: 2px solid var(--turmeric); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }

/* QR */
.qr-wrap { display: flex; gap: 20px; align-items: center; margin-top: 22px; }
.qr { width: 118px; height: 118px; flex-shrink: 0; border-radius: 14px; background: #fff; padding: 10px; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.qr svg { width: 100%; height: 100%; }
.qr-meta { font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.qr-meta b { font-family: var(--f-display); font-size: 26px; color: var(--ink); }
.steps-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.steps-mini span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--rice-100); color: var(--ink-2); font-weight: 500; }
.steps-mini span.on { background: var(--mint); color: #047857; }

/* AI chat */
.chat { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chat .q, .chat .a { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.5; }
.chat .q { align-self: flex-end; background: var(--forest-800); color: var(--rice-50); border-bottom-right-radius: 5px; }
.chat .a { background: var(--rice-100); border-bottom-left-radius: 5px; }
.chat .a b { color: var(--forest-700); }

.mini-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-feats span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.mini-feats span i { color: var(--emerald-d); display: inline-flex; }

.swatches { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.swatches span::after { content: ""; position: absolute; inset: 50% 0 0; background: rgba(0,0,0,.55); }

.map-mini { margin-top: 18px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #e8efd9; height: 150px; }
.map-mini svg { width: 100%; height: 100%; }
.draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 4s ease forwards infinite alternate; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Roles ────────────────────────────────────────────────────────────── */
.roles { background: var(--bg-2); }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role {
  border-radius: var(--r-lg); background: var(--surface); padding: 28px 24px; box-shadow: inset 0 0 0 1px var(--line-2);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.role .face { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.role h3 { font-size: 23px; }
.role .who { font-size: 13.5px; color: var(--text-3); margin-top: 4px; }
.role ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.role li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.role li i { color: var(--emerald-d); font-size: 15px; margin-top: 3px; display: inline-flex; flex-shrink: 0; }
.role .big { position: absolute; right: 8px; bottom: -44px; font-family: var(--f-display); font-size: 170px; font-weight: 800; color: var(--rice-100); line-height: 1; z-index: 0; pointer-events: none; }
.role > * { position: relative; z-index: 1; }
@media (max-width: 1060px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .role-grid { grid-template-columns: 1fr; } }

/* ── Security ─────────────────────────────────────────────────────────── */
.sec-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.vault { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; margin: 0 auto; }
.vault svg { width: 100%; height: 100%; }
.vault .ring { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.vault .ring.r2 { animation-duration: 60s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-item { padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.sec-item i { font-size: 20px; color: var(--forest-600); display: inline-flex; }
.sec-item h4 { font-family: var(--f-body); font-size: 16px; font-weight: 700; margin-top: 10px; }
.sec-item p { font-size: 14px; color: var(--text-2); margin: 4px 0 0; line-height: 1.55; }
.sec-item code { font-family: var(--f-mono); font-size: 12px; background: var(--rice-100); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 960px) { .sec-grid { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .sec-list { grid-template-columns: 1fr; } }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { background: var(--forest-800); color: var(--rice-50); overflow: hidden; }
.steps .h-sec { color: #fff; }
.steps .h-sec em { color: var(--turmeric); }
.steps .h-sec em::after { background: rgba(16,185,129,.35); }
.steps .lede { color: rgba(251,248,241,.72); }
.step-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: s; }
.step { position: relative; padding-right: 28px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 72px; right: 12px; top: 29px; height: 2px; background: repeating-linear-gradient(90deg, rgba(227,162,59,.6) 0 8px, transparent 8px 16px); }
.step .n { width: 60px; height: 60px; border-radius: 50%; background: var(--forest-900); box-shadow: inset 0 0 0 2px var(--turmeric); color: var(--turmeric); font-family: var(--f-display); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; position: relative; }
.step h3 { font-size: 22px; margin-top: 22px; color: #fff; }
.step p { font-size: 15px; color: rgba(251,248,241,.7); margin: 8px 0 0; }
.step .time { font-family: var(--f-mono); font-size: 11.5px; color: var(--turmeric); letter-spacing: .08em; margin-top: 12px; display: inline-block; }
@media (max-width: 900px) {
  .step-row { grid-template-columns: 1fr; gap: 34px; }
  .step-row::before { content: ""; position: absolute; left: 29px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, rgba(227,162,59,.6) 0 8px, transparent 8px 16px); }
  .step:not(:last-child)::before { display: none; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding: 0; }
  .step .n { grid-row: span 4; }
  .step h3 { margin-top: 12px; }
}
.tech { margin-top: 64px; padding: 26px 28px; border-radius: var(--r-lg); background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.tech b { font-family: var(--f-display); font-size: 20px; color: #fff; }
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-list span { font-family: var(--f-mono); font-size: 13px; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.07); color: rgba(251,248,241,.85); }
@media (max-width: 700px) { .tech { grid-template-columns: 1fr; } }

/* ── Numbers ──────────────────────────────────────────────────────────── */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.num { padding: 36px 24px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { font-family: var(--f-display); font-size: clamp(44px, 5vw, 68px); font-weight: 800; line-height: 1; color: var(--forest-700); display: block; }
.num b sup { font-size: .4em; color: var(--turmeric-d); top: -1.1em; margin-left: 3px; }
.num span { display: block; margin-top: 10px; font-size: 15px; color: var(--text-2); }
@media (max-width: 800px) { .nums { grid-template-columns: 1fr 1fr; } .num:nth-child(2) { border-right: 0; } .num:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-weight: 600; font-size: 18px; position: relative; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--rice-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f3a2c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s, background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--turmeric); }
.faq details p { margin: -8px 0 24px; color: var(--text-2); font-size: 16px; max-width: 64ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta { padding-top: 0; }
.cta-box {
  position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background: var(--forest-800); color: var(--rice-50); display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-box::before { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: var(--pakama); background-size: 44px 44px; }
.cta-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(227,162,59,.35), transparent 65%); }
.cta-box h2 { font-size: clamp(34px, 4.6vw, 56px); color: #fff; position: relative; z-index: 1; }
.cta-box h2 em { font-style: italic; color: var(--turmeric); font-weight: 600; }
.cta-box p { color: rgba(251,248,241,.75); margin: 16px 0 0; position: relative; z-index: 1; }
.cta-form { position: relative; z-index: 1; background: rgba(255,255,255,.06); border-radius: var(--r-lg); padding: 24px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 12px; }
.cta-form label { font-size: 13px; color: rgba(251,248,241,.7); display: flex; flex-direction: column; gap: 6px; }
.cta-form input, .cta-form select {
  height: 48px; border-radius: 12px; border: 0; padding: 0 14px; font: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--rice-50); box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.cta-form input:focus, .cta-form select:focus { outline: 3px solid var(--turmeric); outline-offset: 1px; }
.cta-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form .btn { margin-top: 6px; width: 100%; }
.cta-form .note { font-size: 12.5px; color: rgba(251,248,241,.5); text-align: center; }
.cta-form .ok { display: none; text-align: center; padding: 30px 10px; }
.cta-form.sent .ok { display: block; }
.cta-form.sent > :not(.ok) { display: none; }
.cta-form .ok i { font-size: 44px; color: var(--emerald); display: inline-flex; }
.cta-form .ok b { display: block; font-family: var(--f-display); font-size: 24px; margin-top: 10px; }
@media (max-width: 900px) { .cta-box { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cta-form .row2 { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { padding: 72px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot p { color: var(--text-2); font-size: 15px; margin: 16px 0 0; max-width: 36ch; }
.foot h5 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 16px; font-weight: 500; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot ul a { color: var(--text-2); transition: color .2s; }
.foot ul a:hover { color: var(--emerald-d); }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
.foot-bottom .v { font-family: var(--f-mono); font-size: 12px; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: span 2; } }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

.hero .intro > * { opacity: 0; animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero .intro > *:nth-child(1) { animation-delay: .05s; }
.hero .intro > *:nth-child(2) { animation-delay: .15s; }
.hero .intro > *:nth-child(3) { animation-delay: .28s; }
.hero .intro > *:nth-child(4) { animation-delay: .4s; }
.hero .intro > *:nth-child(5) { animation-delay: .52s; }
.stage-map { animation: mapIn 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mapIn { from { opacity: 0; transform: scale(.95) rotate(1.5deg); } to { opacity: 1; transform: none; } }

/* colour helpers for icon tiles */
.t-em { background: #d9f6e8; color: #047857; }
.t-am { background: #fdf0d2; color: #b45309; }
.t-ro { background: #fde4e8; color: #be3455; }
.t-sk { background: #dcefff; color: #1f6fae; }
.t-in { background: #e2e6ff; color: #4450b8; }
.t-vi { background: #ece4ff; color: #6a45b8; }
.t-cy { background: #d5f4f7; color: #0e7c86; }
.t-pk { background: #fde2f1; color: #b8317a; }
.t-rd { background: #fde2dd; color: #b4432a; }
.t-sl { background: #e7ecef; color: #475866; }
.t-ln { background: #dcfce7; color: #06a54b; }

/* ไม่ให้ตัดคำกลางวลีภาษาไทย (ตัดได้เฉพาะช่องว่างระหว่าง .nw) */
.nw { white-space: nowrap; }
@media (max-width: 400px) { .h-sec .nw { white-space: normal; } }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .bx-7 .mock-kpis em { display: block; margin-top: 2px; }
  .role .big { font-size: 120px; bottom: -30px; opacity: .8; }
}

/* ── โลโก้ Moobaan จากระบบ (media/uploads/branding) ─────────────────── */
.brand-logo { height: 44px; width: auto; }
footer .brand-logo { height: 50px; }
.mark-chip { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; border-radius: 10px; }
.mark-chip img { width: 78%; height: 78%; object-fit: contain; }
.mnav .mark-chip { width: 40px; height: 40px; border-radius: 12px; }
.mock-side .lg .mark-chip { width: 26px; height: 26px; border-radius: 8px; }
.ph-head { position: relative; }
.ph-logo { position: absolute; right: 12px; top: 32px; width: 26px; height: 26px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ph-logo img { width: 80%; height: 80%; object-fit: contain; }
@media (max-width: 560px) {
  .brand-logo { height: 32px; }
  .ph-logo { width: 20px; height: 20px; top: 24px; right: 9px; border-radius: 6px; }
}
