/* Shared stylesheet for the static SEO/content pages.
 * Standalone pages in public/ can't reference the hashed Vite bundle, so they
 * use this file plus self-hosted fonts. Tokens, type, and component styling
 * mirror the app's landing identity (frontend/src/styles.css, `--lp-*`).
 */

/* ── Self-hosted fonts (same origin → CSP default-src 'self') ─────── */
@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url("/seo/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/seo/fonts/archivo-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/seo/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/seo/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/seo/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
}

:root {
  /* Landing identity — light */
  --paper: #f2f4ee;
  --surf: #ffffff;
  --ink: #12261d;
  --ink-2: #47584f;
  --ink-3: #7c8a82;
  --line: rgba(18, 38, 29, 0.13);
  --line-2: rgba(18, 38, 29, 0.28);
  --grn: #16a34a;
  --grntx: #15803d;
  --grnbg: #dcfce7;
  --acc-soft: rgba(22, 163, 74, 0.1);
  --shdw: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shdw-h: 0 1px 8px rgba(15, 23, 42, 0.06);
  --ff: "Figtree Variable", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --ff-display: "Archivo Variable", var(--ff);
  --ff-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--grntx);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--grn);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.seo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.seo-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.seo-brand:hover {
  text-decoration: none;
}
.seo-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
}
.seo-nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}
.seo-nav-links a {
  color: var(--ink-2);
  transition: color 0.15s;
}
.seo-nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.seo-nav-links a[aria-current="page"] {
  color: var(--ink);
}
.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--grn);
  border: 1px solid var(--grn);
  color: #fff !important;
  font-family: var(--ff);
  font-weight: 650;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: filter 0.15s, box-shadow 0.15s;
}
.seo-btn:hover {
  filter: brightness(0.94);
  box-shadow: var(--shdw-h);
  text-decoration: none;
}

/* ── Layout ──────────────────────────────────────────────────────── */
.seo-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.seo-hero {
  margin-bottom: 28px;
}
.seo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.seo-eyebrow::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grn);
}
h1 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.seo-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.seo-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: var(--shdw);
  margin: 20px 0;
}
h2 {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 42px 0 12px;
}
h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}
p {
  margin: 12px 0;
}
ul,
ol {
  margin: 12px 0 12px 22px;
}
li {
  margin: 6px 0;
}
strong {
  color: var(--ink);
  font-weight: 650;
}

/* ── KPIs ────────────────────────────────────────────────────────── */
.seo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.seo-kpi {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: var(--shdw);
}
.seo-kpi-val {
  display: block;
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--grntx);
}
.seo-kpi-label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 4px;
}

/* ── Table ───────────────────────────────────────────────────────── */
.seo-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
  margin: 18px 0;
}
.seo-table th,
.seo-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.seo-table thead th {
  background: var(--paper);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.seo-table tr:last-child td {
  border-bottom: none;
}

/* ── Steps ───────────────────────────────────────────────────────── */
.seo-steps {
  counter-reset: step;
  list-style: none;
  margin: 18px 0;
}
.seo-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin: 14px 0;
}
.seo-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grnbg);
  color: var(--grntx);
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.seo-faq details {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0;
}
.seo-faq summary {
  cursor: pointer;
  font-family: var(--ff-display);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.seo-faq details[open] summary {
  margin-bottom: 8px;
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.seo-cta {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px 28px;
  text-align: center;
  margin: 44px 0 8px;
  box-shadow: var(--shdw);
}
.seo-cta h2 {
  margin: 0 0 8px;
}
.seo-cta p {
  color: var(--ink-2);
  margin: 0 auto 18px;
  max-width: 480px;
}
.seo-cta .seo-btn {
  padding: 11px 22px;
  font-size: 14px;
  border-radius: 9px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.seo-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 24px;
  font-size: 11px;
  color: var(--ink-3);
}
.seo-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
.seo-footer a {
  color: var(--ink-3);
  transition: color 0.15s;
}
.seo-footer a:hover {
  color: var(--ink);
  text-decoration: none;
}
.seo-footer .seo-copy {
  margin-left: auto;
}

.seo-note {
  font-size: 13px;
  color: var(--ink-3);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin: 20px 0;
}
.seo-sources {
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 560px) {
  .seo-kpis {
    grid-template-columns: 1fr;
  }
  .seo-nav-links a:not(.seo-btn) {
    display: none;
  }
  .seo-wrap {
    padding-top: 32px;
  }
  h2 {
    font-size: 22px;
  }
}
