/* ============================================================
   migration.css — migration landing page only.
   Loaded after tokens.css + basesite-site.css + blog.css;
   consumes semantic tokens only.
   ============================================================ */

/* ---- hero: sub, CTA row, proof line on the ink band ---- */
.mig-hero .mig-sub {
  max-width: 680px;
  margin-top: var(--space-4, 16px);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--on-ink-muted, #a8b0bb);
  text-wrap: pretty;
}
.mig-hero h1 { max-width: 680px; text-wrap: balance; }
.mig-hero .mig-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.mig-hero .btn.ghost {
  border: 1px solid var(--ink-border, rgba(255, 255, 255, 0.18));
  color: var(--on-ink, #f0f3f6);
  background: transparent;
}
.mig-hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.mig-hero .mig-proofline {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--on-ink-muted, #8b949e);
}

/* ---- benefits + steps reuse the article measure ---- */
.article .mig-benefits { padding-left: 0; list-style: none; }
.article .mig-benefits li {
  padding: 16px 0;
  border-top: 1px solid var(--ghost-border);
}
.article .mig-benefits li:last-child {
  border-bottom: 1px solid var(--ghost-border);
}

.article .mig-steps {
  list-style: none;
  counter-reset: mig-step;
  padding-left: 0;
}
.article .mig-steps li {
  counter-increment: mig-step;
  position: relative;
  padding: 12px 0 12px 48px;
}
.article .mig-steps li::before {
  content: counter(mig-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-bright, #3300ca);
}

/* ---- tagline reveal — words activate in reading order ---- */
.mig-tagline {
  padding: 96px 0;
  background: var(--surface-container-low, #f4f5f7);
}
.mig-tagline .wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.mig-tagline .line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.mig-tagline .w {
  opacity: 0.28;
  transition: opacity 600ms var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.mig-tagline.in .w { opacity: 1; }

/* ---- FAQ ---- */
.article .mig-faq details {
  border-top: 1px solid var(--ghost-border);
  padding: 4px 0;
}
.article .mig-faq details:last-child {
  border-bottom: 1px solid var(--ghost-border);
}
.article .mig-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out);
}
.article .mig-faq summary::-webkit-details-marker { display: none; }
.article .mig-faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--on-surface-muted, #6b7280);
  transition: transform 220ms var(--ease-out);
}
.article .mig-faq details[open] summary::after { transform: rotate(45deg); }
.article .mig-faq summary:hover { color: var(--accent-bright, #3300ca); }
.article .mig-faq summary:focus-visible {
  outline: 2px solid var(--accent-bright, #3300ca);
  outline-offset: 2px;
}
.article .mig-faq details p { margin: 0 0 16px; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .mig-tagline .w { opacity: 1 !important; transition: none !important; }
  .article .mig-faq summary::after { transition: none !important; }
}

/* ---- small screens ---- */
@media (max-width: 640px) {
  .mig-tagline { padding: 64px 0; }
  .mig-hero .mig-cta .btn { width: 100%; justify-content: center; }
}
