/* Shared chrome for every static marketing/legal page (index.html, privacy.html, terms.html):
   design tokens, base reset, nav, buttons and footer. Page-specific sections (the landing page's
   hero/features/pricing, a legal page's article typography) stay inline in their own file. */
:root {
  --color-canvas: #eceeed;
  --color-surface: #ffffff;
  --color-surface-muted: #f5f6f6;
  --color-ink: #161e1c;
  --color-ink-soft: #3b4643;
  --color-muted: #69736f;
  --color-faint: #9aa29f;
  --color-line: #e4e7e5;
  --color-line-strong: #d3d8d5;
  --color-accent: #0c6b57;
  --color-accent-soft: #e2f1eb;
  --color-plus: #5b4bdb;
  --color-plus-soft: #eeebff;
  --font-sans:
    'IBM Plex Sans Thai', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-md: 0 1px 2px rgba(20, 30, 28, 0.04), 0 8px 28px rgba(20, 30, 28, 0.06);
  --shadow-lg: 0 24px 70px rgba(20, 30, 28, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-inline: 20px;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(236, 238, 237, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  flex: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--color-ink-soft);
}
.nav-links a {
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--color-ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms var(--ease);
}
.btn:hover {
  background: #2b3532;
}
.btn.secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line-strong);
}
.btn.secondary:hover {
  background: var(--color-surface-muted);
}
.btn.small {
  min-height: 36px;
  padding: 0 15px;
  font-size: 13.5px;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-line);
  padding-block: 32px;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--color-muted);
}
.foot-links a {
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--color-ink);
}
.foot-copy {
  color: var(--color-faint);
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}
