/* ============================================================
   GeoVantage — Public Landing Page
   แยกจาก app.css เพื่อไม่ให้กระทบหน้าจอหลัง login
   ใช้ token สีของแบรนด์เดิม แต่ให้แดงเป็น accent ไม่ใช่พื้นหลัก
   ============================================================ */
.landing {
  display: none;
  --lp-ink: oklch(0.16 0.01 250);
  --lp-ink-2: oklch(0.42 0.008 250);
  --lp-ink-3: oklch(0.56 0.006 250);
  --lp-line: oklch(0.92 0.003 250);
  --lp-surface: oklch(0.985 0.002 250);
  --lp-accent: var(--primary);
  --lp-max: 1180px;
  color: var(--lp-ink);
  background: #fff;
  font-feature-settings: 'tnum' 0;
}
.landing.show { display: block; }
.landing ::selection { background: oklch(0.557 0.241 28.59 / .16); }

.lp-shell { max-width: var(--lp-max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ─────────────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  background: oklch(1 0 0 / .72); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, padding .2s;
}
.lp-nav.compact { border-bottom-color: var(--lp-line); box-shadow: 0 1px 12px oklch(0 0 0 / .04); }
.lp-nav-in { max-width: var(--lp-max); margin: 0 auto; padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; transition: padding .2s; }
.lp-nav.compact .lp-nav-in { padding-top: .6rem; padding-bottom: .6rem; }
.lp-logo { display: flex; align-items: center; gap: 0; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.lp-logo-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; margin-right: .55rem; flex: none;
  background: linear-gradient(145deg, oklch(0.62 0.23 28.59), oklch(0.5 0.24 28.59));
  box-shadow: 0 2px 8px oklch(0.557 0.241 28.59 / .3);
}
.lp-logo i { color: var(--lp-accent); font-style: normal; }
.lp-menu { display: flex; gap: 1.6rem; margin-left: 1rem; }
.lp-menu a {
  font-size: .88rem; color: var(--lp-ink-2); text-decoration: none; cursor: pointer;
  position: relative; padding: .2rem 0; transition: color .15s;
}
.lp-menu a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--lp-accent); transition: right .2s ease;
}
.lp-menu a:hover { color: var(--lp-ink); }
.lp-menu a:hover::after, .lp-menu a.on::after { right: 0; }
.lp-nav-cta { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.lp-btn.lp-burger { display: none; }

/* ── ปุ่ม ─────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  height: 42px; padding: 0 1.15rem; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-primary { background: var(--lp-ink); color: #fff; }
.lp-btn-primary:hover { background: oklch(0.26 0.01 250); box-shadow: 0 6px 20px oklch(0 0 0 / .16); }
.lp-btn-accent { background: var(--lp-accent); color: #fff; box-shadow: 0 4px 16px oklch(0.557 0.241 28.59 / .28); }
.lp-btn-accent:hover { background: oklch(0.5 0.241 28.59); box-shadow: 0 8px 26px oklch(0.557 0.241 28.59 / .34); }
.lp-btn-ghost { background: transparent; color: var(--lp-ink); border-color: var(--lp-line); }
.lp-btn-ghost:hover { background: var(--lp-surface); border-color: oklch(0.86 0.004 250); }
.lp-btn-sm { height: 36px; padding: 0 .85rem; font-size: .85rem; }
.lp-btn-lg { height: 50px; padding: 0 1.6rem; font-size: .98rem; border-radius: 12px; }

/* ── Hero ────────────────────────────────────────────── */
.lp-hero { position: relative; padding: 5rem 0 3.5rem; overflow: hidden; text-align: center; }
.lp-hero::before {
  content: ''; position: absolute; inset: -30% 20% 40%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, oklch(0.557 0.241 28.59 / .07), transparent 62%);
}
.lp-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--lp-line) 1px, transparent 1px), linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 25%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 25%, #000 20%, transparent 72%);
}
.lp-hero-in { position: relative; }
.lp-tag {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 500;
  color: var(--lp-ink-2); background: #fff; border: 1px solid var(--lp-line);
  border-radius: 999px; padding: .35rem .8rem; box-shadow: 0 1px 3px oklch(0 0 0 / .04);
}
.lp-tag b { color: var(--lp-accent); font-weight: 600; }
.lp-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; margin: 1.4rem auto .9rem; max-width: 14ch;
}
.lp-hero h1 em { font-style: normal; color: var(--lp-accent); }
.lp-lead { font-size: clamp(.98rem, 1.5vw, 1.12rem); color: var(--lp-ink-2); max-width: 56ch; margin: 0 auto; line-height: 1.75; }
.lp-hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.9rem; }
.lp-note { font-size: .78rem; color: var(--lp-ink-3); margin-top: .9rem; }

/* ── Product visual (mock app window) ────────────────── */
.lp-shot { position: relative; margin: 3rem auto 0; max-width: 1000px; }
.lp-shot::after {
  content: ''; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 46px; border-radius: 50%;
  background: radial-gradient(ellipse, oklch(0 0 0 / .14), transparent 70%); filter: blur(10px);
}
.lp-window {
  position: relative; background: #fff; border: 1px solid var(--lp-line); border-radius: 16px;
  box-shadow: 0 24px 60px oklch(0 0 0 / .12), 0 2px 8px oklch(0 0 0 / .04); overflow: hidden;
}
.lp-window-bar {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem;
  border-bottom: 1px solid var(--lp-line); background: var(--lp-surface);
}
.lp-dot { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.88 0.004 250); }
.lp-window-title { font-size: .76rem; color: var(--lp-ink-3); margin-left: .35rem; }
.lp-demo-chip {
  margin-left: auto; font-size: .68rem; font-weight: 600; color: var(--lp-ink-2);
  background: #fff; border: 1px solid var(--lp-line); border-radius: 999px; padding: .15rem .55rem;
}
.lp-window-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(210px, .75fr); min-height: 340px; }
.lp-canvas { position: relative; background: var(--lp-surface); overflow: hidden; }
.lp-canvas svg { display: block; width: 100%; height: 100%; }
.lp-panel { border-left: 1px solid var(--lp-line); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .1rem; }
.lp-panel-h { font-size: .74rem; color: var(--lp-ink-3); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.lp-stat { padding: .6rem 0; border-bottom: 1px dashed var(--lp-line); }
.lp-stat:last-of-type { border-bottom: none; }
.lp-stat-l { font-size: .76rem; color: var(--lp-ink-2); }
.lp-stat-v { font-size: 1.5rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.lp-stat-v small { font-size: .72rem; font-weight: 500; color: var(--lp-ink-3); margin-left: .25rem; }
.lp-verdict {
  margin-top: auto; border-top: 1px solid var(--lp-line); padding-top: .8rem;
}
.lp-verdict b { display: block; font-size: 1rem; color: oklch(0.45 0.16 145); }
.lp-verdict span { font-size: .74rem; color: var(--lp-ink-3); }

/* ── Section shell ───────────────────────────────────── */
.lp-section { padding: 5rem 0; }
.lp-section.tint { background: var(--lp-surface); border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-eyebrow-s { font-size: .78rem; font-weight: 600; color: var(--lp-accent); letter-spacing: .06em; text-transform: uppercase; }
.lp-h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.25; letter-spacing: -.015em; margin: .6rem 0 .8rem; max-width: 22ch; }
.lp-h2.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-sub { color: var(--lp-ink-2); font-size: 1rem; line-height: 1.75; max-width: 62ch; }
.lp-sub.center { margin: 0 auto; text-align: center; }

/* ── Steps ───────────────────────────────────────────── */
.lp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; position: relative; }
.lp-steps::before {
  content: ''; position: absolute; top: 22px; left: 12%; right: 12%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--lp-line) 0 6px, transparent 6px 12px);
}
.lp-step { position: relative; }
.lp-step-n {
  width: 44px; height: 44px; border-radius: 13px; background: #fff; border: 1px solid var(--lp-line);
  display: grid; place-items: center; font-weight: 700; font-size: .92rem; color: var(--lp-accent);
  margin-bottom: .9rem; position: relative; z-index: 1; box-shadow: 0 2px 8px oklch(0 0 0 / .05);
}
.lp-step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.lp-step p { font-size: .86rem; color: var(--lp-ink-2); line-height: 1.7; }

/* ── Product intro: ข้อความ + ภาพลายเส้น ─────────────── */
.lp-prod-top { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 2.5rem; align-items: center; }
.lp-prod-copy { padding-block: 1rem; }
.lp-badge {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600;
  color: var(--lp-accent); background: oklch(0.557 0.241 28.59 / .09);
  border-radius: 999px; padding: .42rem .95rem;
}
.lp-h2.lp-h2-hero { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.24; max-width: 18ch; margin: 1.15rem 0 1.05rem; }
.lp-h2 em { font-style: normal; color: var(--lp-accent); }
.lp-art { position: relative; }
.lp-art svg { display: block; width: 100%; height: auto; }

/* ── Capability grid ─────────────────────────────────── */
.lp-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: 2.2rem; }
.lp-cap {
  background: #fff; border: 1px solid var(--lp-line); border-radius: 16px; padding: 1.55rem 1.5rem;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.lp-cap:hover { transform: translateY(-2px); border-color: oklch(0.557 0.241 28.59 / .32); box-shadow: 0 12px 30px oklch(0 0 0 / .07); }
.lp-cap-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.05rem; color: var(--lp-accent); background: oklch(0.557 0.241 28.59 / .09); }
.lp-cap h3 { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; line-height: 1.45; }
.lp-cap p { font-size: .875rem; color: var(--lp-ink-2); line-height: 1.75; }
.lp-cap.muted .lp-cap-ico { color: var(--lp-ink-3); background: oklch(0.94 0.003 250); }

/* ── Explore (interactive map) ───────────────────────── */
.lp-explore { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 1.5rem; margin-top: 2.2rem; align-items: stretch; }
.lp-map-card { border: 1px solid var(--lp-line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 12px 34px oklch(0 0 0 / .07); display: flex; flex-direction: column; }
.lp-layers { display: flex; gap: .4rem; padding: .7rem; border-bottom: 1px solid var(--lp-line); flex-wrap: wrap; align-items: center; }
.lp-chip {
  border: 1px solid var(--lp-line); background: #fff; border-radius: 999px; padding: .35rem .8rem;
  font-family: inherit; font-size: .8rem; color: var(--lp-ink-2); cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: .35rem;
}
.lp-chip:hover { border-color: oklch(0.86 0.004 250); }
.lp-chip.on { background: var(--lp-ink); border-color: var(--lp-ink); color: #fff; }
.lp-chip[disabled] { opacity: .55; cursor: not-allowed; }
.lp-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.lp-map { flex: 1; min-height: 380px; }
.lp-map-foot { padding: .6rem .85rem; border-top: 1px solid var(--lp-line); font-size: .74rem; color: var(--lp-ink-3); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.lp-explain { border: 1px solid var(--lp-line); border-radius: 16px; background: #fff; padding: 1.4rem; display: flex; flex-direction: column; }
.lp-explain h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.lp-explain p { font-size: .88rem; color: var(--lp-ink-2); line-height: 1.75; }
.lp-explain-num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 1rem; }
.lp-explain-num small { font-size: .8rem; font-weight: 500; color: var(--lp-ink-3); margin-left: .3rem; }
.lp-explain-note { margin-top: auto; padding-top: 1rem; font-size: .76rem; color: var(--lp-ink-3); border-top: 1px dashed var(--lp-line); }

/* ── Decision support ────────────────────────────────── */
.lp-decide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.lp-evidence { border: 1px solid var(--lp-line); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 12px 34px oklch(0 0 0 / .06); }
.lp-evidence-h { padding: .9rem 1.1rem; border-bottom: 1px solid var(--lp-line); display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; }
.lp-ev-row { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem 1.1rem; border-bottom: 1px dashed var(--lp-line); font-size: .87rem; }
.lp-ev-row:last-of-type { border-bottom: none; }
.lp-ev-row.ok span:first-child { color: oklch(0.45 0.16 145); }
.lp-ev-row.warn span:first-child { color: oklch(0.5 0.15 60); }
.lp-ev-out { background: var(--lp-surface); padding: 1rem 1.1rem; border-top: 1px solid var(--lp-line); }
.lp-ev-out .l { font-size: .74rem; color: var(--lp-ink-3); }
.lp-ev-out b { display: block; font-size: 1.25rem; font-weight: 800; color: oklch(0.45 0.16 145); letter-spacing: -.01em; }
.lp-ev-out p { font-size: .82rem; color: var(--lp-ink-2); margin-top: .3rem; line-height: 1.7; }

/* ── Pipeline ────────────────────────────────────────── */
.lp-pipe { display: flex; align-items: stretch; gap: .5rem; margin-top: 2.2rem; flex-wrap: wrap; }
.lp-pipe-step {
  flex: 1 1 165px; border: 1px solid var(--lp-line); border-radius: 12px; background: #fff;
  padding: .95rem 1rem; position: relative;
}
.lp-pipe-step b { display: block; font-size: .88rem; font-weight: 700; }
.lp-pipe-step span { font-size: .76rem; color: var(--lp-ink-2); line-height: 1.6; }
.lp-pipe-step.accent { border-color: oklch(0.557 0.241 28.59 / .35); background: oklch(0.557 0.241 28.59 / .04); }
.lp-pipe-arrow { align-self: center; color: var(--lp-ink-3); flex: 0 0 auto; }

/* ── Trust ───────────────────────────────────────────── */
.lp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.4rem; }
.lp-trust-item { border-left: 2px solid oklch(0.557 0.241 28.59 / .3); padding: .2rem 0 .2rem 1.1rem; }
.lp-trust-item .q { font-size: .88rem; color: var(--lp-ink-2); }
.lp-trust-item .a { font-size: .92rem; font-weight: 600; margin-top: .35rem; line-height: 1.65; }

/* ── Sources ─────────────────────────────────────────── */
.lp-sources { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.lp-source { border: 1px solid var(--lp-line); border-radius: 10px; padding: .7rem .9rem; background: #fff; flex: 1 1 210px; }
.lp-source b { font-size: .86rem; display: block; }
.lp-source span { font-size: .76rem; color: var(--lp-ink-3); }

/* ── CTA + footer ────────────────────────────────────── */
.lp-cta { text-align: center; padding: 5rem 0; }
.lp-foot { border-top: 1px solid var(--lp-line); padding: 2rem 0; font-size: .8rem; color: var(--lp-ink-3); }
.lp-foot-in { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; max-width: var(--lp-max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Reveal animation ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

@keyframes lp-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@keyframes lp-pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: .12; transform: scale(1.5); } }
.lp-pt { animation: lp-pop .5s cubic-bezier(.2,.9,.3,1) backwards; }
.lp-ring { animation: lp-pulse 3.4s ease-in-out infinite; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-pt, .lp-ring { animation: none; }
  .landing * { scroll-behavior: auto !important; }
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1000px) {
  .lp-window-body { grid-template-columns: minmax(0, 1fr); }
  .lp-panel { border-left: none; border-top: 1px solid var(--lp-line); }
  .lp-explore { grid-template-columns: minmax(0, 1fr); }
  .lp-decide { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps::before { display: none; }
  .lp-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-prod-top { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .lp-prod-copy { padding-block: 0; }
  .lp-h2.lp-h2-hero { max-width: none; }
  .lp-art { max-width: 560px; margin: 0 auto; }
  .lp-trust { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 720px) {
  .lp-menu { display: none; }
  .lp-nav.open .lp-menu {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--lp-line); padding: .5rem 1.5rem 1rem; margin: 0;
  }
  .lp-nav.open .lp-menu a { padding: .7rem 0; border-bottom: 1px solid var(--lp-line); }
  .lp-nav-cta .lp-btn:not(.lp-btn-accent):not(.lp-burger) { display: none; }
  .lp-btn.lp-burger { display: inline-flex; }
  .lp-hero { padding: 3rem 0 2.5rem; }
  .lp-section { padding: 3.25rem 0; }
  .lp-steps, .lp-caps { grid-template-columns: minmax(0, 1fr); }
  .lp-prod-copy .lp-sub br { display: none; }
  .lp-map { min-height: 300px; }
  .lp-shot { margin-top: 2.2rem; }
  .lp-cta { padding: 3.25rem 0; }
}
