/* Design tokens mirrored from apps/liff/tailwind.config.ts (ADR-079) — keep in sync by hand,
   this is a plain static page with no build step, not a Tailwind consumer. */
:root {
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-50: #eff6ff;
  --ink: #111827;
  --ink-muted: #6b7280;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --warm: #faf8f5;
  --go: #16a34a;
  --go-light: #f0fdf4;
  --warn: #d97706;
  --warn-light: #fffbeb;
  --stop: #dc2626;
  --stop-light: #fef2f2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Sarabun', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-700);
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.25; color: var(--primary-900); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--primary-900); margin-bottom: 0.75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }

.lede, .section-lede {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}
.section-lede { margin-bottom: 2rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-weight: 700; font-size: 1.1rem; color: var(--primary-800); }
.nav-cta {
  font-size: 0.9rem; font-weight: 600; color: var(--primary-700);
  text-decoration: none; padding: 0.5rem 0.9rem; border-radius: 0.6rem;
}
.nav-cta:hover { background: var(--primary-50); }

/* Layout helpers */
.section-inner { max-width: 1024px; margin: 0 auto; padding: 4rem 1.25rem; }
.hero-inner { max-width: 1024px; margin: 0 auto; padding: 5rem 1.25rem 4rem; }

.hero { background: linear-gradient(180deg, var(--primary-50), var(--canvas) 70%); }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 2rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.4rem; border-radius: 0.75rem;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary-700); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--primary-800); border: 1px solid #d1d5db; }

/* Wedge */
.wedge { background: var(--surface); }
.wedge-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.wedge-card {
  background: var(--warm); border: 1px solid #eee7dc; border-radius: 1rem;
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.wedge-card p { margin: 0; font-size: 0.92rem; }
.badge {
  display: inline-flex; align-self: flex-start;
  font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px;
}
.badge-go   { background: var(--go-light);   color: var(--go); }
.badge-warn { background: var(--warn-light); color: var(--warn); }
.badge-stop { background: var(--stop-light); color: var(--stop); }
.disclaimer { font-size: 0.8rem; color: var(--ink-muted); margin-top: 1.5rem; }

/* Workflow */
.workflow-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}
.workflow-item { padding: 0; }
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 999px;
  background: var(--primary-700); color: #fff; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.workflow-item p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--primary-900); color: #fff; }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .section-lede { color: #cbd5e1; margin-bottom: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid #e5e7eb; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding: 2rem 1.25rem; font-size: 0.85rem; color: var(--ink-muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6; --ink-muted: #9ca3af; --canvas: #0f172a; --surface: #16213a; --warm: #1c2438;
  }
  .nav { background: rgba(15,23,42,0.9); border-bottom-color: #1f2937; }
  .btn-ghost { border-color: #334155; }
  .wedge-card { border-color: #263049; }
  .site-footer { border-top-color: #1f2937; }
}
