/* In-article free-trial button. White on indigo, both ends of the
   gradient above WCAG AA for normal text (4.5:1). Same shape as the
   existing signup buttons. Does not name a price. */

a.article-cta-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  background-color: #4338ca;
  background-image: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 6px 22px -6px rgba(67, 56, 202, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

a.article-cta-button:hover {
  background-color: #4f46e5;
  background-image: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -6px rgba(79, 70, 229, 0.75);
}

a.article-cta-button:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 3px;
}

.article-cta {
  color: #f4f4fb;
}

.article-inline-link {
  color: #ddd6fe;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.article-inline-link:hover {
  color: #ffffff;
}

.article-inline-link:focus-visible {
  outline: 3px solid #c4b5fd;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Light theme: article pages are dark by default. ?theme=light (see
   JS/article-theme.js) flips surfaces. Button fill stays indigo so the
   label stays white. */
html[data-theme="light"] body {
  background-color: #f6f5fb !important;
}

html[data-theme="light"] .fixed-header {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(23, 21, 40, 0.08);
}

html[data-theme="light"] .nav-link {
  color: #171528;
}

html[data-theme="light"] .nav-link:hover {
  background: rgba(23, 21, 40, 0.06);
}

html[data-theme="light"] .sign-in-button {
  color: #171528;
  border-color: rgba(23, 21, 40, 0.55);
}

html[data-theme="light"] main h1,
html[data-theme="light"] main h2,
html[data-theme="light"] main h3,
html[data-theme="light"] main p,
html[data-theme="light"] main li,
html[data-theme="light"] main strong {
  color: #171528 !important;
}

html[data-theme="light"] main a {
  color: #5b21b6 !important;
}

html[data-theme="light"] main a.article-cta-button,
html[data-theme="light"] main a.sign-up-button.article-cta-button,
html[data-theme="light"] main a.cta-button-primary.article-cta-button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

html[data-theme="light"] .article-cta {
  background: #f4f1ff !important;
  border-color: #ddd6fe !important;
  color: #171528 !important;
}

html[data-theme="light"] .article-inline-link {
  color: #5b21b6;
}

html[data-theme="light"] .article-inline-link:hover {
  color: #3b0764;
}

html[data-theme="light"] a.article-cta-button:focus-visible,
html[data-theme="light"] .article-inline-link:focus-visible {
  outline-color: #5b21b6;
}
