/* Shared style for every public 9UP page. Layout: centred column, header bar, sections stack, footer. */
:root {
  --bg: #f5f7f6; --surface: #ffffff; --ink: #172524; --muted: #566765; --line: #cfd9d7;
  --accent: #2b6f8f; --accent-soft: #e2eef4; --good: #2e7a59; --alert: #b9512e;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Thai", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101615; --surface: #172020; --ink: #e3ebe9; --muted: #95a6a3; --line: #2f3c3a;
    --accent: #79b8d6; --accent-soft: #1b2e38; --good: #63c093; --alert: #e5815c; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.btn { display: inline-block; padding: 9px 16px; border-radius: 6px; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

main .wrap { display: grid; gap: 56px; padding-block: 48px 64px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; }
h2 { font-size: 26px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-bottom: 6px; }
p { margin: 0; max-width: 65ch; }
.lead { font-size: 18px; color: var(--muted); margin-top: 14px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; counter-increment: step; min-width: 0; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; }
.grid > div { min-width: 0; }
.grid p { color: var(--muted); font-size: 15px; }

.sample { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; max-width: 420px; display: grid; gap: 10px; }
.msg { border-left: 4px solid var(--alert); padding: 6px 12px; background: var(--bg); border-radius: 0 6px 6px 0; font-size: 15px; }
.msg.ok { border-left-color: var(--good); }
.msg b { display: block; }
.msg small { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-block: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
