@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

/* Shared styles for /learn SEO articles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --midnight: #0d1426;
  --periwinkle: #b7cffa;
  --sky: #e8f1ff;
  --lilac: #f0edff;
  --ivory: #f7f9fc;
    --muted: #5b6578;
  --border: rgba(13, 20, 38, 0.1);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--midnight);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: clip;
  width: 100%;
}
a { color: var(--midnight); }
a:hover { text-decoration: underline; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  /* Align with .wrap (max 42rem) so Join waitlist sits with the content, not the screen edge */
  padding:
    0.7rem
    max(1.25rem, env(safe-area-inset-right, 0px), calc(50% - 21rem))
    0.7rem
    max(1.25rem, env(safe-area-inset-left, 0px), calc(50% - 21rem));
  background: rgba(250, 251, 254, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(13, 20, 38, 0.05);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-size: 1.05rem;
  color: var(--midnight);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-width: 0;
  flex: 1 1 auto;
}
.nav-logo img {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  transform-origin: center center;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-logo img { animation: none !important; }
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 0 0 auto;
  max-width: 100%;
}
.nav-links a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--midnight); }
.nav-cta {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--midnight);
  color: #fff !important;
  min-height: 2.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { text-decoration: none; opacity: 0.92; }

.wrap {
  width: min(42rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
  box-sizing: border-box;
}
.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a5;
  margin-bottom: 0.75rem;
}
h1 {
  font-family: var(--font);
  font-size: clamp(2.05rem, 4vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.deck {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.meta {
  font-size: 0.8rem;
  color: #8b93a5;
  margin-bottom: 0.35rem;
}
.byline {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.byline strong { color: var(--midnight); font-weight: 600; }
.sources {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.sources h2 {
  font-family: var(--font);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 0.65rem;
}
.sources ol {
  margin: 0 0 0 1.15rem;
  color: #2a3347;
}
.sources li {
  margin: 0.4rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
}
.sources a { word-break: break-word; }
.disclaimer {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(183, 207, 250, 0.22);
  border: 1px solid rgba(183, 207, 250, 0.55);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  margin: 0 0 2rem;
}
.article h2 {
  font-family: var(--font);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 2rem 0 0.65rem;
}
.article h3 {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 1.35rem 0 0.45rem;
}
.article p { margin: 0 0 1rem; color: #2a3347; }
.article ul, .article ol {
  margin: 0 0 1.15rem 1.15rem;
  color: #2a3347;
}
.article li { margin: 0.35rem 0; }
.article strong { font-weight: 600; color: var(--midnight); }
.cta-box {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.2rem;
  border-radius: 1.25rem;
  background: var(--midnight);
  color: #fff;
}
.cta-box h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.cta-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: var(--midnight);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
}
.cta-box a:hover { opacity: 0.94; text-decoration: none; }

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b93a5;
  margin-bottom: 0.85rem;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin: 0.45rem 0; }
.related a {
  color: var(--midnight);
  font-weight: 500;
  text-decoration: none;
}
.related a:hover { text-decoration: underline; }

.hub-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.75rem;
}
.hub-jump a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 20, 38, 0.1);
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}
.hub-jump a:hover {
  color: var(--midnight);
  border-color: rgba(13, 20, 38, 0.22);
  text-decoration: none;
}
.hub-section {
  margin: 0 0 2rem;
  scroll-margin-top: 4.5rem;
}
.hub-section-title {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b93a5;
  margin: 0 0 0.35rem;
}
.hub-section-blurb {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
.hub-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.hub-card {
  display: block;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(183, 207, 250, 0.55);
  box-shadow: 0 8px 22px rgba(13, 20, 38, 0.04);
}
.hub-card:hover { text-decoration: none; border-color: rgba(13, 20, 38, 0.18); }
.hub-card .tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b93a5;
  margin-bottom: 0.25rem;
}
.hub-card h2 {
  font-family: var(--font);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  font-weight: 600;
}
.hub-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

footer.learn-foot {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto 2.5rem;
  font-size: 0.78rem;
  color: #8b93a5;
  line-height: 1.5;
}
footer.learn-foot a { color: var(--muted); }

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-logo { font-size: 0.98rem; }
  .nav-logo img {
    width: 2.35rem;
    height: 2.35rem;
  }
  .nav-cta {
    padding: 0.38rem 0.85rem;
    font-size: 0.78rem;
  }
  .wrap {
    width: calc(100% - 2rem);
    padding-top: 1.75rem;
    padding-bottom: 3rem;
  }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .deck { font-size: 0.98rem; }
  .hub-grid { gap: 0.75rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .wrap { width: min(44rem, calc(100% - 3rem)); }
}
