/* WeMember landing + privacy. Static, no JS. Tokens mirror web/src/app.css: keep both :root blocks in sync. */
:root {
  color-scheme: light dark;
  --brand: #047857; --brand-strong: #065f46; --brand-soft: #ecfdf5; --on-brand: #fff;
  --ink: #0f172a; --muted: #475569; --line: #e2e8f0; --bg: #f8fafc; --surface: #fff; --surface-2: #f1f5f9;
  --accent: #b45309; --focus: #2563eb;
  --r-md: 12px; --r-lg: 20px; --r-pill: 999px;
  --sh-sm: 0 1px 2px rgb(15 23 42 / .06); --sh-md: 0 4px 16px rgb(15 23 42 / .08); --sh-lg: 0 20px 48px rgb(15 23 42 / .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", "Leelawadee UI", "Sukhumvit Set", Thonburi, Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #34d399; --brand-strong: #6ee7b7; --brand-soft: #064e3b; --on-brand: #022c22;
    --ink: #e2e8f0; --muted: #94a3b8; --line: #1e293b; --bg: #0b1220; --surface: #111a2e; --surface-2: #17223a;
    --accent: #fbbf24; --focus: #93c5fd;
    --sh-sm: none; --sh-md: 0 4px 16px rgb(0 0 0 / .4); --sh-lg: 0 20px 48px rgb(0 0 0 / .5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.5; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 12px; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 12px; border-radius: var(--r-pill); margin-bottom: 12px; }
.center { text-align: center; } .center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); border: 2px solid var(--brand); text-decoration: none; font-weight: 700; line-height: 1.5; transition: transform .15s var(--ease), background-color .15s; }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn:active { transform: scale(.98); }
.btn.alt { background: transparent; color: var(--brand); }
.btn.alt:hover { background: var(--brand-soft); }
.btn.lg { min-height: 56px; padding: 12px 28px; font-size: 1.0625rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.logo .icon { color: var(--brand); width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav .btn { min-height: 44px; padding: 8px 16px; white-space: nowrap; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%), var(--bg); padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.45; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-weight: 600; font-size: .9375rem; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .icon { width: 18px; height: 18px; color: var(--brand); }

/* Hero card mock (decorative) */
.phone { justify-self: center; width: min(320px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 16px; box-shadow: var(--sh-lg); transform: rotate(2deg); }
.mock { color: #fff; border-radius: 20px; padding: 20px; background: linear-gradient(140deg, #065f46, #047857); position: relative; overflow: hidden; }
.mock::after { content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.mock-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9375rem; }
.mock-tier { background: rgb(255 255 255 / .2); padding: 0 10px; border-radius: var(--r-pill); font-size: .8125rem; }
.mock-pts { font-size: 2.25rem; font-weight: 800; line-height: 1.5; margin-top: 8px; }
.mock-pts small { font-size: 1rem; font-weight: 600; }
.mock-bar { height: 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / .25); overflow: hidden; }
.mock-bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(.68); transform-origin: left; }
.mock-hint { font-size: .8125rem; margin: 6px 0 0; }
.mock-qr { display: block; width: 132px; height: 132px; margin: 16px auto 0; background: #fff; border-radius: 12px; padding: 10px; color: #0f172a; }
.mock-rows { list-style: none; margin: 14px 0 0; padding: 0; font-size: .875rem; }
.mock-rows li { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.mock-rows li:last-child { border-bottom: 0; }
.mock-rows b { color: var(--brand); }

/* Sections */
section { padding: 72px 0; scroll-margin-top: 64px; }
section.alt { background: var(--bg); }
.section-head { margin-bottom: 36px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-sm); }
.box p { color: var(--muted); margin: 0; }
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.box ul, .plan ul { list-style: none; padding: 0; margin: 0; }
.box li, .plan li { display: flex; gap: 10px; padding: 6px 0; }
.box li .icon, .plan li .icon { width: 20px; height: 20px; margin-top: 5px; color: var(--brand); }
.box.problem li .icon { color: var(--accent); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0; margin: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; }
.chips .icon { width: 20px; height: 20px; color: var(--brand); }

/* Compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; min-width: 560px; border-collapse: collapse; }
th, td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: .875rem; color: var(--muted); background: var(--surface-2); }
th.us, td.us { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); font-weight: 600; }
th.us { color: var(--brand); }

/* Pricing */
.plans { align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.plan ul { flex: 1; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--sh-md); }
.plan .tag { position: absolute; top: -14px; left: 24px; background: var(--brand); color: var(--on-brand); font-size: .8125rem; font-weight: 700; padding: 2px 12px; border-radius: var(--r-pill); }
.plan h3 { margin: 0; }
.price { font-size: 2.5rem; font-weight: 800; line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .btn { width: 100%; }
.note { color: var(--muted); font-size: .9375rem; margin-top: 20px; }
.trial { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin: 12px 0; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease); }
details[open] summary .icon { transform: rotate(180deg); }
details p { padding: 0 20px 16px; margin: 0; color: var(--muted); }

/* Final CTA */
.final { background: linear-gradient(140deg, #065f46, #047857); color: #fff; border-radius: 28px; padding: 48px 32px; text-align: center; }
.final h2 { color: #fff; }
.final p { color: #d1fae5; }
.final .cta { justify-content: center; }
.final .btn { background: #fff; color: #065f46; border-color: #fff; }
.final .btn:hover { background: #ecfdf5; }
.final .btn.alt { background: transparent; color: #fff; }
.final .btn.alt:hover { background: rgb(255 255 255 / .1); }
.final :focus-visible { outline-color: #fff; }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .9375rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
footer p { margin: 0; }
footer a { color: var(--ink); display: inline-block; padding: 10px 0; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { padding: 8px 12px; font-size: .9375rem; }
  .hide-sm { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .phone { transform: none; }
  section { padding: 56px 0; }
  .final { padding: 40px 20px; border-radius: 20px; }
  body { padding-bottom: 80px; }
  .sticky-cta { display: block; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sticky-cta .btn { width: 100%; }
}

@media (max-width: 359px) { .nav .btn { display: none; } }

/* Privacy (long-form) */
.doc { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
.doc h2 { font-size: 1.25rem; margin-top: 36px; }
.doc li { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
