/* Styling for the generated SEO pages.
 *
 * These are plain static HTML — they never load the React bundle or
 * Tailwind — so the brand has to be restated here. Tokens mirror
 * frontend/tailwind.config.ts exactly; if the app's palette changes,
 * change these to match or the SEO pages will drift into looking like
 * a different product.
 */
:root {
  --bg: #0A0C0F;
  --surface: #111318;
  --raised: #181C22;
  --border: #252B35;
  --ink: #F0F4F8;
  --soft: #8B95A3;
  --muted: #7A8598;
  --accent: #00D4AA;
  --accent-dim: #00A882;
  --accent-muted: #00D4AA22;
  --radius: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dim); }

/* --- header / footer ---------------------------------------------- */

.seo-header, .seo-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 4vw, 60px); gap: 20px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.seo-footer {
  border-top: 1px solid var(--border); border-bottom: 0;
  margin-top: 80px; font-size: 14px; color: var(--soft);
}

.seo-brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.seo-header nav a { margin-left: 18px; text-decoration: none; color: var(--soft); font-size: 15px; }
.seo-header nav a:hover { color: var(--ink); }

/* --- layout -------------------------------------------------------- */

main { max-width: 860px; margin: 0 auto; padding: 56px clamp(20px, 4vw, 40px); }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }
h2 { margin-top: 2.2em; }
p { color: var(--soft); }
main > p, .seo-grid p, details p { max-width: 68ch; }

/* --- hero ---------------------------------------------------------- */

.seo-tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-muted); color: var(--accent);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.seo-hero { padding: 40px 0 56px; }
.seo-hero h1 {
  font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.2rem);
  margin: 18px 0 14px; color: var(--ink);
}
.seo-lede { font-size: 1.12rem; color: var(--soft); margin: 0 0 26px; max-width: 62ch; }
.seo-trust { color: var(--muted); margin-top: 12px; font-size: 14px; }

.seo-cta {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: #06231C;
  text-decoration: none; font-weight: 650;
  transition: background 0.15s ease;
}
.seo-cta:hover { background: var(--accent-dim); color: #06231C; }

/* --- cards / tables / faq ------------------------------------------ */

.seo-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 56px 0;
}
.seo-grid article {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.seo-grid h2 { margin-top: 0; font-size: 1.25rem; }
.seo-grid li { color: var(--soft); margin-bottom: 6px; }

.seo-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.seo-table th, .seo-table td {
  padding: 13px 15px; text-align: left;
  border-bottom: 1px solid var(--border); color: var(--soft);
}
.seo-table thead th { background: var(--raised); color: var(--ink); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.seo-table tbody tr:last-child td { border-bottom: 0; }

details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px;
}
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details[open] summary { margin-bottom: 10px; }

.seo-cross ul { padding-left: 18px; }
.seo-cross li { margin-bottom: 8px; }
