/* Shared styling for the static SEO landing pages under /tools/.
   These pages live outside the Vite bundle (they're plain files in public/),
   so they can't import src/styles/app.css — its filename is content-hashed at
   build time. The tokens below mirror app.css so the landing pages read as the
   same site. Keep this file in sync with the :root block in app.css. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1c2a3a;
  --muted: #66727f;
  --line: #e3e7ec;
  --accent: #4a9fc0;
  --accent-ink: #2e7da6;
  --accent-ink-hover: #26688a;
  --radius: 10px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.back-to-hub {
  display: inline-block;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}
.back-to-hub:hover { color: var(--accent-ink); text-decoration: underline; }

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin-bottom: 2rem;
}
.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
h1 { margin: 0 0 0.75rem; font-size: 1.6rem; line-height: 1.25; font-weight: 700; }
.lede { margin: 0 0 1.25rem; color: var(--ink); }

h2 { font-size: 1.15rem; margin: 0 0 0.6rem; font-weight: 650; }

section { margin-bottom: 2rem; }
section p { margin: 0 0 0.85rem; }
section ul, section ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
section li { margin-bottom: 0.5rem; }

.cta {
  display: inline-block;
  background: var(--accent-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
}
.cta:hover { background: var(--accent-ink-hover); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.table-scroll { overflow-x: auto; margin: 0 0 0.85rem; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  background: var(--surface);
  font-size: 0.88rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
th { background: #eef1f4; font-weight: 650; }

.faq { margin: 0; }
.faq dt { font-weight: 650; margin-top: 1rem; }
.faq dd { margin: 0.3rem 0 0; color: var(--ink); }

.quote {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
}

.cta-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.cta-block h2 { margin-bottom: 1rem; }

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}
.tool-links a { color: var(--muted); text-decoration: none; }
.tool-links a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Site-wide legal footer — mirrors the React <Footer /> (src/components/
   Footer.jsx) so these static landing pages carry the same Terms/Privacy links
   and copyright. Keep the two in sync by hand; they share no code. */
.site-footer {
  /* Sits outside <main class="page">, so it repeats the page's own width and
     side padding to stay aligned with the content above it. */
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
}
/* #5b6675 rather than --muted: at this size --muted only reaches 4.2:1 on the
   page background, short of WCAG AA. Mirrors .site-footer-line in app.css. */
.site-footer-links a { color: #5b6675; text-decoration: none; }
.site-footer-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.site-footer-sep { color: var(--line); }
.site-footer-copy { margin: 0; font-size: 0.74rem; color: #5b6675; }

@media (max-width: 420px) {
  .site-footer-links { flex-direction: column; gap: 0.35rem; }
  .site-footer-sep { display: none; }
}
