/* ==========================================================================
   FollowLens — shared stylesheet
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0b0a12;
  --bg-elev: #110f1a;
  --surface: #17151f;
  --surface-2: #1f1c2b;
  --surface-3: #2a2639;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f5f3fb;
  --text-muted: #b3aec6;
  --text-dim: #8f89a6;

  /* Brand */
  --brand-orange: #ff9a3c;
  --brand-pink: #ff4f8b;
  --brand-purple: #8b5cf6;
  --brand-grad: linear-gradient(135deg, #ff9a3c 0%, #ff4f8b 50%, #8b5cf6 100%);
  --btn-grad: linear-gradient(135deg, #ff9a45 0%, #ff5c8f 100%);
  --on-brand: #17101d;

  /* Status */
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  /* Misc */
  --focus: #ffd166;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 30px 90px -30px rgba(255, 79, 139, 0.45);
  --container: 1160px;
  --gutter: 16px;
  --header-h: 64px;

  --font: "Inter", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------------------- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="th"] body { line-height: 1.75; }
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: #ff8fb4; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffb3cc; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 750; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn-grad); color: var(--on-brand); box-shadow: 0 10px 30px -10px rgba(255, 92, 143, 0.7); }
.btn-primary:hover { color: var(--on-brand); box-shadow: 0 14px 36px -10px rgba(255, 92, 143, 0.85); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* -------------------------------------------------------------- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 18, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -0.01em; flex: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 32px; height: 32px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 15px; font-weight: 550; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-toggle {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 40px; min-height: 32px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted);
}
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-toggle button:not([aria-pressed="true"]):hover { color: var(--text); }
.lang-sep { width: 1px; height: 14px; background: var(--border-strong); margin: 0 1px; }
.lang-toggle button[aria-pressed="true"] + .lang-sep,
.lang-sep:has(+ button[aria-pressed="true"]) { visibility: hidden; }

.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03); cursor: pointer; padding: 0;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-elev); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px; font-size: 16px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
  .brand svg { width: 28px; height: 28px; }
  .header-actions { gap: 6px; }
  .lang-toggle button { min-width: 34px; padding: 4px 8px; }
}

/* ------------------------------------------------------------ Sections --- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-alt { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.03em;
  color: #ffc1d5; background: rgba(255, 79, 139, 0.1); border: 1px solid rgba(255, 79, 139, 0.25);
}

/* ---------------------------------------------------------------- Hero --- */
.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 88px 0 104px; } }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(255, 154, 60, 0.18), transparent 70%),
    radial-gradient(40% 50% at 70% 20%, rgba(255, 79, 139, 0.2), transparent 70%),
    radial-gradient(40% 50% at 85% 60%, rgba(139, 92, 246, 0.22), transparent 70%);
  filter: blur(10px);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin-bottom: 18px; }
.hero-lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-muted); max-width: 560px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: 14px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--success); flex: none; }
@media (max-width: 479px) { .hero-ctas .btn { width: 100%; } }

/* --------------------------------------------------------------- Mockup --- */
.mockup {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), var(--shadow-glow);
  font-size: 13px; line-height: 1.4;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3a3550; }
.mock-url { flex: 1; min-width: 0; margin-left: 8px; padding: 4px 12px; border-radius: 999px; background: var(--bg); color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 16px; }
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mock-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.mock-title svg { width: 22px; height: 22px; }
.mock-scan { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); color: var(--success); font-size: 12px; font-weight: 600; white-space: nowrap; }
.mock-scan::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
@media (min-width: 520px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.stat-label { display: block; color: var(--text-dim); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-value { display: block; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; margin-top: 2px; }
.stat.is-warn .stat-value { color: #ff8fb4; }
.stat.is-alert .stat-value { color: var(--warning); }
.stat.is-danger .stat-value { color: var(--danger); }
.mock-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow: hidden; }
.mock-tab { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-dim); background: transparent; border: 1px solid var(--border); white-space: nowrap; }
.mock-tab.is-active { color: var(--on-brand); background: var(--btn-grad); border-color: transparent; }
.mock-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); }
.mock-row + .mock-row { border-top: 1px solid var(--border); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.avatar.a1 { background: linear-gradient(135deg, #ffb35c, #ff4f8b); }
.avatar.a2 { background: linear-gradient(135deg, #5eead4, #3b82f6); }
.avatar.a3 { background: #34304a; color: #6f6890; display: grid; place-items: center; overflow: hidden; }
.avatar.a3 svg { width: 26px; height: 26px; margin-top: 6px; }
.avatar.a4 { background: linear-gradient(135deg, #a78bfa, #f472b6); }
.avatar.a5 { background: linear-gradient(135deg, #facc15, #f97316); }
.mock-user { flex: 1; min-width: 0; }
.mock-handle { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-name { display: block; color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-badges { display: none; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 440px) { .mock-badges { display: flex; } }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.badge-pink { color: #ffb3cc; background: rgba(255, 79, 139, 0.12); border-color: rgba(255, 79, 139, 0.25); }
.badge-amber { color: #fcd34d; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.25); }
.badge-red { color: #fca5a5; background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.28); }
.badge-green { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.25); }
.badge-violet { color: #c4b5fd; background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.3); }
.mock-action { flex: none; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 650; color: var(--text); background: var(--surface-3); border: 1px solid var(--border-strong); }
.mock-action.is-safe { color: var(--success); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.25); }
.mock-queue { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.25); font-size: 12px; color: #d8ccff; }
.mock-queue svg { width: 16px; height: 16px; flex: none; }
.mock-progress { flex: 1; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; min-width: 40px; }
.mock-progress span { display: block; width: 38%; height: 100%; background: var(--brand-grad); border-radius: inherit; }

/* ------------------------------------------------------------- Features --- */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 15px; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 154, 60, 0.18), rgba(139, 92, 246, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.1); color: #ffc1d5;
}
.feature-icon svg { width: 22px; height: 22px; }
.pro-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: 0.04em; vertical-align: 2px; color: var(--on-brand); background: var(--btn-grad); }

/* ----------------------------------------------------------------- Steps --- */
.steps { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; padding: 28px 24px 24px; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%;
  font-weight: 800; font-size: 17px; color: var(--on-brand); background: var(--btn-grad);
}
.step h3 { font-size: 19px; }
.step p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ---------------------------------------------------------------- Safety --- */
.safety-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .safety-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.safety-grid .section-head { text-align: left; margin: 0 0 24px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.check-list .ck { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(52, 211, 153, 0.12); color: var(--success); }
.check-list .ck svg { width: 16px; height: 16px; }
.check-list strong { display: block; font-weight: 650; }
.check-list span.desc { color: var(--text-muted); font-size: 15px; }
.preset-card h3 { font-size: 17px; margin-bottom: 16px; }
.preset-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.preset-table th, .preset-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.preset-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
html[lang="th"] .preset-table th { text-transform: none; letter-spacing: 0; font-size: 13px; }
.preset-table td:first-child { font-weight: 650; }
.preset-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14px; color: #fde7a8; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.22); }
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- Pricing --- */
.period-switch {
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto 32px; padding: 4px; gap: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong);
}
.period-switch button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 650; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.period-switch button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.period-switch button:not([aria-checked="true"]):hover { color: var(--text); }
.save-pill { font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 999px; background: rgba(52, 211, 153, 0.16); color: var(--success); }
.period-switch button[aria-checked="true"] .save-pill { background: #0f7a54; color: #fff; }
@media (max-width: 420px) {
  .period-switch { width: 100%; }
  .period-switch button { flex: 1; padding: 8px 6px; justify-content: center; font-size: 13px; flex-direction: column; gap: 2px; min-height: 48px; }
}
.pricing-grid { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (min-width: 800px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan-pro { position: relative; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-grad) border-box; box-shadow: var(--shadow-glow); }
.plan-name { font-size: 20px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }
.plan-price { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 4px; min-height: 40px; }
html[lang="th"] .plan-price { letter-spacing: -0.01em; }
.plan-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; min-height: 22px; }
.plan-features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan-features li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.plan-features svg { width: 18px; height: 18px; margin-top: 3px; color: var(--success); }
.plan-pro .plan-features svg { color: #ff8fb4; }
.popular { font-size: 12px; font-weight: 750; padding: 3px 10px; border-radius: 999px; color: var(--on-brand); background: var(--btn-grad); letter-spacing: 0.02em; }
.plan-foot { margin-top: 12px; font-size: 13px; color: var(--text-dim); text-align: center; }
.pricing-note { max-width: 720px; margin: 28px auto 0; text-align: center; color: var(--text-dim); font-size: 14px; }
[data-period-show][hidden] { display: none !important; }

/* ------------------------------------------------------------------- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item h3 { margin: 0; font-size: inherit; letter-spacing: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 0; background: transparent; cursor: pointer; text-align: left;
  font-size: 16px; font-weight: 650; line-height: 1.4;
}
.faq-q:hover { background: rgba(255, 255, 255, 0.02); }
.faq-q:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.faq-q .chev { width: 20px; height: 20px; flex: none; color: var(--text-dim); transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 20px; color: var(--text-muted); font-size: 15px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* -------------------------------------------------------------- CTA band --- */
.cta-band { text-align: center; padding: 48px 24px; border-radius: var(--radius-lg); background: radial-gradient(80% 120% at 50% 0%, rgba(255, 79, 139, 0.18), transparent 70%), var(--surface); border: 1px solid var(--border-strong); }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 24px; }

/* ---------------------------------------------------------------- Footer --- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); padding: 48px 0 32px; font-size: 14px; color: var(--text-muted); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { margin: 12px 0 0; max-width: 360px; }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 12px; font-weight: 700; }
html[lang="th"] .footer-col h2 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13px; }
.disclaimer p { margin: 0 0 8px; }

/* ----------------------------------------------------------- Legal pages --- */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 46px); }
.page-meta { color: var(--text-dim); font-size: 14px; margin: 0; }
.legal-layout { display: grid; gap: 32px; padding-bottom: 80px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; } }
.toc { align-self: start; font-size: 14px; }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 10px; }
html[lang="th"] .toc h2 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.toc ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 6px; color: var(--text-dim); }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 999px) { .toc { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); } }
.prose { max-width: 760px; color: #dcd8e8; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.prose section { padding-top: 8px; margin-bottom: 36px; }
.prose h2 { font-size: 22px; color: var(--text); margin-bottom: 12px; }
.prose h3 { font-size: 17px; color: var(--text); margin: 20px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose .callout { padding: 16px 18px; border-radius: 12px; background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.25); margin-bottom: 1em; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .callout.warn { background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.25); }

/* ---------------------------------------------------------- Status pages --- */
.status-wrap { display: grid; place-items: center; padding: 64px 0 96px; }
.status-card { width: 100%; max-width: 620px; padding: 36px 28px; text-align: center; }
@media (min-width: 600px) { .status-card { padding: 48px 44px; } }
.status-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; }
.status-icon svg { width: 34px; height: 34px; }
.status-icon.ok { background: rgba(52, 211, 153, 0.14); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.3); }
.status-icon.neutral { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); border: 1px solid var(--border-strong); }
.status-icon.brand { background: rgba(255, 79, 139, 0.12); color: #ff8fb4; border: 1px solid rgba(255, 79, 139, 0.3); }
.status-card h1 { font-size: clamp(26px, 5vw, 34px); }
.status-card > p { color: var(--text-muted); }
.status-steps { text-align: left; margin: 24px 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.status-steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.status-steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 14px; color: var(--on-brand); background: var(--btn-grad); }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.status-help { margin-top: 24px; font-size: 14px; color: var(--text-dim); }
.big-404 { font-size: clamp(72px, 18vw, 120px); font-weight: 850; line-height: 1; letter-spacing: -0.05em; margin-bottom: 8px; }

/* ------------------------------------------------------------ Additions --- */
.toc ol { list-style: none; padding: 0; }
.status-card { margin: 0 auto; }
.prose .lead { font-size: 17px; color: var(--text-muted); }

/* ---------- free release (SITE_CONFIG.freeRelease) ---------- */
.free-release [data-paid] { display: none !important; }
[data-free-only] { display: none; }
.free-release [data-free-only] { display: block; }
.free-note {
  margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.6;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3); color: var(--text, #ededf2);
}
