/* Shared stylesheet for all SEO troubleshooting pages.
 *
 * Loaded by `server/seo/layout.ts` via <link rel="stylesheet" href="/seo-assets/help.css">.
 * Served by `app.use('/seo-assets', express.static(...))` in `server/index.ts`.
 *
 * Single source of truth — editing this file updates every page on the next
 * request. Class names line up with `server/seo/cta.ts` and `server/seo/layout.ts`.
 */

:root {
  --seo-bg: #fafafa;
  --seo-text: #1a1a1a;
  --seo-muted: #555;
  --seo-rule: #e5e5e5;
  --seo-accent: #0a84ff;
  --seo-accent-hover: #0064d2;
  --seo-accent-soft: #e8f1ff;
  --seo-accent-soft-border: #c9deff;
  --seo-accent-deep: #003e91;
  --seo-content-max: 760px;
  --seo-radius: 14px;
  --seo-radius-sm: 10px;
  --seo-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.06);
  --seo-shadow-md: 0 4px 14px rgba(10, 132, 255, 0.18), 0 10px 30px rgba(10, 132, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--seo-bg);
  color: var(--seo-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--seo-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.seo-page {
  max-width: var(--seo-content-max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.seo-article h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin: 24px 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.seo-article h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 36px 0 12px;
  font-weight: 700;
  border-top: 1px solid var(--seo-rule);
  padding-top: 24px;
}

.seo-article h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 24px 0 8px;
  font-weight: 700;
}

.seo-article p {
  margin: 0 0 16px;
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.seo-article li {
  margin: 4px 0;
}

.seo-article strong {
  font-weight: 700;
}

/* CTA banners (top + bottom) */
.seo-cta {
  margin: 28px 0;
  border-radius: var(--seo-radius);
}

.seo-cta__inner {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-cta__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--seo-accent);
}

.seo-cta__headline {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.seo-cta__sub {
  margin: 0;
  color: var(--seo-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.seo-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--seo-accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 1px rgba(0, 62, 145, 0.18), 0 4px 10px rgba(10, 132, 255, 0.25);
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.seo-cta__button:hover,
.seo-cta__button:focus-visible {
  background: var(--seo-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 62, 145, 0.22), 0 8px 18px rgba(10, 132, 255, 0.3);
}

.seo-cta__button:focus-visible {
  outline: 2px solid var(--seo-accent-deep);
  outline-offset: 3px;
}

.seo-cta__button:active {
  transform: translateY(0);
}

.seo-cta__arrow {
  display: inline-block;
  font-weight: 700;
  transition: transform 160ms ease;
}

.seo-cta__button:hover .seo-cta__arrow,
.seo-cta__button:focus-visible .seo-cta__arrow {
  transform: translateX(3px);
}

.seo-cta__button--large {
  padding: 15px 26px;
  font-size: 1.05rem;
}

/* Top variant: compact two-column card. */
.seo-cta--top {
  background: linear-gradient(180deg, #f4f8ff 0%, var(--seo-accent-soft) 100%);
  border: 1px solid var(--seo-accent-soft-border);
  box-shadow: var(--seo-shadow-sm);
}

.seo-cta--top .seo-cta__inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.seo-cta--top .seo-cta__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.seo-cta--top .seo-cta__headline {
  font-size: 1.05rem;
  line-height: 1.4;
}

.seo-cta--top .seo-cta__button {
  flex: 0 0 auto;
}

/* Bottom variant: full-bleed accent panel with trust chips. */
.seo-cta--bottom {
  background: radial-gradient(120% 140% at 0% 0%, #1a93ff 0%, var(--seo-accent) 55%, var(--seo-accent-deep) 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: var(--seo-shadow-md);
  overflow: hidden;
  position: relative;
}

.seo-cta--bottom .seo-cta__inner {
  align-items: center;
  padding: 36px 28px;
  gap: 16px;
}

.seo-cta__eyebrow--bottom {
  color: rgba(255, 255, 255, 0.85);
}

.seo-cta__headline--bottom {
  font-size: 1.55rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 560px;
}

.seo-cta--bottom .seo-cta__sub {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  font-size: 1rem;
}

.seo-cta--bottom .seo-cta__button {
  background: #ffffff;
  color: var(--seo-accent-deep);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.18);
  margin-top: 4px;
}

.seo-cta--bottom .seo-cta__button:hover,
.seo-cta--bottom .seo-cta__button:focus-visible {
  background: #f1f5fb;
  color: var(--seo-accent-deep);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12), 0 14px 28px rgba(0, 0, 0, 0.22);
}

.seo-cta--bottom .seo-cta__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.seo-cta__trust {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  font-weight: 500;
}

.seo-cta__trust li {
  position: relative;
  padding-left: 18px;
}

.seo-cta__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .seo-cta--bottom .seo-cta__headline--bottom {
    font-size: 1.4rem;
  }
}

@media (max-width: 540px) {
  html, body {
    font-size: 16px;
  }
  .seo-page {
    padding: 20px 16px 48px;
  }
  .seo-article h1 {
    font-size: 1.7rem;
  }
  .seo-article h2 {
    font-size: 1.25rem;
  }
  .seo-cta {
    margin: 22px 0;
  }
  .seo-cta__inner {
    padding: 18px 18px;
    gap: 12px;
  }
  .seo-cta--top .seo-cta__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .seo-cta--top .seo-cta__button {
    align-self: stretch;
  }
  .seo-cta--bottom .seo-cta__inner {
    padding: 28px 20px;
  }
  .seo-cta--bottom .seo-cta__headline--bottom {
    font-size: 1.3rem;
  }
  .seo-cta--bottom .seo-cta__button {
    align-self: stretch;
  }
  .seo-cta__button {
    justify-content: center;
    width: 100%;
  }
  .seo-cta__trust {
    gap: 6px 14px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-cta__button,
  .seo-cta__arrow {
    transition: none;
  }
  .seo-cta__button:hover,
  .seo-cta__button:focus-visible {
    transform: none;
  }
  .seo-cta__button:hover .seo-cta__arrow,
  .seo-cta__button:focus-visible .seo-cta__arrow {
    transform: none;
  }
}
