/*
 * SEO landing page styles. Explicit hex values from .interface-design/system.md.
 * No DaisyUI semantic utilities. Critical above-the-fold subset is inlined via
 * templates/seo/_critical_css.html; this file loads async and carries the rest.
 *
 * Aesthetic: warm editorial advisor. White cards floating on #FAFAF9, one indigo
 * accent (#422AD5), Figtree throughout, semantic labels as page-kind markers,
 * disclosure FAQ, arrow-led related list.
 *
 * Width system:
 *   Card column (hero, advisor, FAQ, footer, related)  ->  max 880px
 *   Prose column (.seo-article body)                   ->  max 720px  (~65ch)
 * The narrower prose column inside the wider card column creates a subtle
 * editorial rhythm — full-width "chrome", narrow reading measure.
 */

/* ---------- Article prose ---------- */

.seo-article {
  font-feature-settings: "ss01", "kern";
}

.seo-article > :first-child {
  margin-top: 0;
}

.seo-article h2 {
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #1A1A1A;
  margin: 48px 0 16px;
  text-wrap: balance;
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 19px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1A1A1A;
  margin: 32px 0 12px;
}

.seo-article p {
  margin: 0 0 20px;
  color: #1A1A1A;
}

.seo-article a {
  color: #422AD5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease-out;
}

.seo-article a:hover {
  color: #3622B0;
}

.seo-article strong {
  font-weight: 600;
  color: #1A1A1A;
}

.seo-article ul,
.seo-article ol {
  margin: 0 0 20px;
  padding-left: 24px;
  color: #1A1A1A;
}

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

.seo-article li::marker {
  color: #422AD5;
}

.seo-article blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid #422AD5;
  color: #1A1A1A;
  font-size: 19px;
  line-height: 30px;
  font-style: normal;
}

.seo-article blockquote p:last-child {
  margin-bottom: 0;
}

.seo-article hr {
  border: none;
  border-top: 1px solid #EFEDE7;
  margin: 40px 0;
}

.seo-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  line-height: 22px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .seo-article table {
    display: table;
    overflow-x: visible;
  }
}

.seo-article th,
.seo-article td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #EFEDE7;
  vertical-align: top;
}

.seo-article th {
  font-weight: 600;
  color: #1A1A1A;
  background: #FAFAF9;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6B6B6B;
}

/* ---------- Source attribution ---------- */

.seo-source {
  margin: 40px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #EFEDE7;
  font-size: 13px;
  line-height: 20px;
  color: #6B6B6B;
}

.seo-source a {
  color: #422AD5;
  text-decoration: none;
}

.seo-source a:hover {
  text-decoration: underline;
}

/* ---------- FAQ (native disclosure) ---------- */

.seo-faq {
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.seo-faq-heading {
  font-size: 26px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #1A1A1A;
  margin: 0 0 16px;
}

.seo-faq-list {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.seo-faq-item {
  border-top: 1px solid #EFEDE7;
}

.seo-faq-item:first-child {
  border-top: none;
}

.seo-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
  line-height: 26px;
  color: #1A1A1A;
  letter-spacing: -0.005em;
  transition: background .15s ease-out;
  min-height: 44px;
}

.seo-faq-q::-webkit-details-marker {
  display: none;
}

.seo-faq-q:hover {
  background: #FAFAF9;
}

.seo-faq-q:focus-visible {
  outline: 2px solid #422AD5;
  outline-offset: -2px;
  border-radius: 8px;
}

.seo-faq-q-text {
  flex: 1;
}

.seo-faq-chevron {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  transition: transform .2s ease-out;
}

.seo-faq-chevron::before,
.seo-faq-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #422AD5;
  border-radius: 2px;
  transform-origin: center;
  transform: translate(-50%, -50%);
  transition: transform .2s ease-out, opacity .2s ease-out;
}

.seo-faq-chevron::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.seo-faq-item[open] .seo-faq-chevron::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.seo-faq-a {
  padding: 0 28px 22px;
  font-size: 16px;
  line-height: 26px;
  color: #1A1A1A;
  max-width: 62ch;
  animation: seo-faq-reveal .22s ease-out;
}

@keyframes seo-faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.seo-faq-cta-text {
  margin-top: 20px;
  padding: 16px 20px 0;
  border-top: 1px solid #EFEDE7;
  font-size: 15px;
  line-height: 24px;
  color: #6B6B6B;
}

.seo-faq-cta-link {
  color: #422AD5;
  font-weight: 600;
  text-decoration: none;
}

.seo-faq-cta-link:hover {
  text-decoration: underline;
}

/* ---------- Footer CTA card ---------- */

.seo-footer-cta {
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.seo-footer-card {
  padding: 40px 28px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.seo-footer-card .seo-kind-label {
  margin: 0 0 16px;
}

.seo-footer-title {
  font-size: 30px;
  line-height: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #1A1A1A;
  margin: 0 0 12px;
  max-width: 22ch;
  text-wrap: balance;
}

.seo-footer-sub {
  font-size: 16px;
  line-height: 24px;
  color: #6B6B6B;
  margin: 0 0 24px;
  max-width: 48ch;
}

.seo-cta--lg {
  padding: 14px 24px;
  font-size: 15px;
}

/* ---------- Related list ---------- */

.seo-related {
  max-width: 880px;
  margin: 56px auto 72px;
  padding: 0 24px;
}

.seo-related-heading {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin: 0 0 12px;
  padding: 0 4px;
}

.seo-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.seo-related-list li + li {
  border-top: 1px solid #EFEDE7;
}

.seo-related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  min-height: 44px;
  transition: background .15s ease-out, color .15s ease-out;
}

.seo-related-link:hover {
  background: #FAFAF9;
  color: #422AD5;
}

.seo-related-link:focus-visible {
  outline: 2px solid #422AD5;
  outline-offset: -2px;
  border-radius: 8px;
}

.seo-related-arrow {
  color: #C8C6BF;
  transition: transform .2s ease-out, color .15s ease-out;
  flex-shrink: 0;
}

.seo-related-link:hover .seo-related-arrow {
  color: #422AD5;
  transform: translateX(2px);
}

/* ---------- Responsive ---------- */

@media (min-width: 768px) {
  .seo-article h2 {
    font-size: 32px;
    line-height: 40px;
    margin: 64px 0 20px;
    letter-spacing: -0.02em;
  }

  .seo-article h3 {
    font-size: 21px;
    line-height: 30px;
    margin: 40px 0 14px;
  }

  .seo-footer-cta {
    margin-top: 64px;
    padding: 0 32px;
  }

  .seo-footer-card {
    padding: 56px 56px 52px;
    border-radius: 24px;
  }

  .seo-footer-title {
    font-size: 38px;
    line-height: 46px;
  }

  .seo-faq {
    margin-top: 64px;
    padding: 0 32px;
  }

  .seo-faq-heading {
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 20px;
  }

  .seo-faq-list {
    border-radius: 24px;
  }

  .seo-faq-q {
    font-size: 18px;
    line-height: 28px;
    padding: 26px 32px;
  }

  .seo-faq-a {
    padding: 0 32px 26px;
    font-size: 17px;
    line-height: 28px;
  }

  .seo-related {
    padding: 0 32px;
  }

  .seo-related-list {
    border-radius: 24px;
  }

  .seo-related-link {
    padding: 20px 32px;
  }
}
