:root {
  --bg: #0b0e14;
  --bg-soft: #121620;
  --bg-card: #161c28;
  --ink: #e6e8eb;
  --ink-muted: #8b93a3;
  --ink-dim: #5a6271;
  --accent: #ff5c2a;
  --accent-dim: #c14216;
  --urgent: #ff3b3b;
  --border: #222a38;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand-mark { color: var(--accent); }
.nav nav a { margin-left: 28px; color: var(--ink-muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); }
.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  padding: 96px 0 64px;
  background: radial-gradient(ellipse at top, rgba(255, 92, 42, 0.08), transparent 60%);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 720px;
  margin: 0 0 40px;
}
.cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.1s ease;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-dim);
  color: white;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
}

.hero-proof {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
}
.hero-proof img { display: block; width: 100%; height: auto; }
.demo-caption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding-top: 12px;
}
.demo-caption code { color: var(--accent); }
.demo-caption a { color: var(--accent); text-decoration: underline; }

/* ---------- SECTIONS ---------- */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section.dark { background: var(--bg-soft); }
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.sub {
  color: var(--ink-muted);
  max-width: 720px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ---------- KITS ---------- */
.kit-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.kit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.kit-card.urgent {
  border-color: var(--urgent);
  box-shadow: 0 0 0 1px var(--urgent), 0 8px 32px rgba(255, 59, 59, 0.1);
}
.kit-card:hover { border-color: var(--accent); }
.kit-deadline {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.kit-deadline .days {
  color: var(--accent);
  font-weight: 700;
}
.kit-card.urgent .days { color: var(--urgent); }
.kit-card h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-family: var(--font-mono);
  color: var(--accent);
}
.kit-sub {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.kit-card p {
  color: var(--ink);
  margin: 0 0 20px;
  flex-grow: 0;
}
.kit-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  flex-grow: 1;
}
.kit-card li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--border);
}
.kit-card li:last-child { border: none; }
.kit-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.kit-link:hover { text-decoration: underline; }

/* ---------- FLOW ---------- */
.flow {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.flow-step h4 { margin: 0 0 8px; font-size: 1.15rem; }
.flow-step p {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- PRICING ---------- */
.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 48px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.price-card h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--ink-muted);
}
.price {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.per {
  color: var(--ink-muted);
  font-size: 1rem;
  font-weight: 400;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 0.92rem;
}
.price-card li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.bundle {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
}
.bundle h3 { margin: 0 0 24px; font-size: 1.4rem; }
.bundle-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 28px;
  text-align: left;
}
.bundle-grid > div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  margin-right: 12px;
}
.faq details[open] summary::before { content: "−"; }
.faq details p {
  color: var(--ink-muted);
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}
.faq a { color: var(--accent); text-decoration: underline; }

/* ---------- FOOTER ---------- */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 40px;
}
.footer h5 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.footer a {
  display: inline-block;
  padding: 4px 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.footer a:hover { color: var(--accent); }
.muted { color: var(--ink-muted); }
.small { font-size: 0.85rem; }

@media (max-width: 640px) {
  .hero { padding: 64px 0 32px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav nav a { margin-left: 16px; font-size: 0.9rem; }
  .nav nav a:not(.btn-ghost) { display: none; }
}

/* ---------- MIGRATE / DEPRECATION SEO PAGES ---------- */
.article {
  max-width: 820px;
  padding-top: 32px;
  padding-bottom: 64px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--ink-muted); }

.article h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.article h4 { margin: 0 0 6px; font-size: 1.05rem; }
.article p { color: var(--ink); margin: 0 0 14px; }
.article section { border-top: 1px solid var(--border); padding-top: 8px; }
.article section:first-of-type { border-top: none; }

.deadline-banner {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 0 0 8px;
  background: var(--bg-card);
}
.deadline-banner.urgent,
.deadline-banner.passed {
  border-color: var(--urgent);
  box-shadow: 0 0 0 1px var(--urgent), 0 8px 32px rgba(255, 59, 59, 0.12);
  background: radial-gradient(ellipse at top, rgba(255, 59, 59, 0.10), var(--bg-card) 70%);
}
.deadline-banner.soon {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: radial-gradient(ellipse at top, rgba(255, 92, 42, 0.10), var(--bg-card) 70%);
}
.deadline-banner h1 { margin: 12px 0 4px; }
.deadline-banner .banner-sub { color: var(--ink-muted); margin: 0 0 16px; }
.deadline-banner .countdown {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.deadline-banner.urgent .countdown,
.deadline-banner.passed .countdown { color: var(--urgent); }
.deadline-banner .urgency { color: var(--ink); margin: 10px 0 0; font-size: 0.98rem; }

.severity-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.severity-critical { background: rgba(255, 59, 59, 0.16); color: #ff6b6b; }
.severity-high { background: rgba(255, 92, 42, 0.16); color: var(--accent); }
.severity-medium { background: rgba(234, 179, 8, 0.16); color: #eab308; }
.severity-low { background: rgba(34, 197, 94, 0.16); color: #4ade80; }

table.facts { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.facts th, table.facts td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.facts th { color: var(--ink-muted); font-weight: 600; width: 180px; white-space: nowrap; }
table.facts a { color: var(--accent); text-decoration: underline; word-break: break-all; }
table.facts code { color: var(--accent); font-family: var(--font-mono); font-size: 0.88em; }
.cite-note { color: var(--ink-muted); font-size: 0.85rem; font-style: italic; }

.breaking-changes ul { margin: 8px 0; padding-left: 1.2rem; }
.breaking-changes li { padding: 4px 0; color: var(--ink); }
.breaking-changes a { color: var(--accent); }

.migration-steps { counter-reset: step; margin-top: 12px; }
.migration-steps .step {
  position: relative;
  padding-left: 3rem;
  margin: 0 0 24px;
}
.migration-steps .step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
pre.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0 0;
}
pre.code-block code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink); }

.pricing-grid-2,
.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 16px 0;
}
/* Applies to the home #pricing section AND in-article pricing cards. The home
   markup uses .pricing-grid / .pricing-card, so these rules must not be scoped
   to .article (that mismatch left the homepage cards unstyled). */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pricing-card h3 { margin: 0 0 8px; color: var(--ink); font-size: 1.2rem; }
.pricing-card .price { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.pricing-card .btn-primary,
.pricing-card .btn-outline { margin: 12px 8px 0 0; }

.related-list { list-style: none; padding: 0; margin: 12px 0; }
.related-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.related-list a { color: var(--accent); font-weight: 600; }
.related-list a:hover { text-decoration: underline; }
.related-list .rel-meta { color: var(--ink-muted); font-size: 0.9rem; }
.related .kit-link { color: var(--accent); font-weight: 600; }
.related .kit-link:hover { text-decoration: underline; }

/* migrate index hub */
.deadline-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.deadline-row {
  display: grid;
  grid-template-columns: 130px 1fr 24px;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--ink);
}
.deadline-row:hover { border-color: var(--accent); color: var(--ink); }
.deadline-row.urgent, .deadline-row.passed { border-color: var(--urgent); }
.deadline-row.soon { border-color: var(--accent); }
.dl-date { display: flex; flex-direction: column; font-family: var(--font-mono); }
.dl-date strong { font-size: 0.95rem; }
.dl-days { color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.deadline-row.urgent .dl-days, .deadline-row.passed .dl-days { color: var(--urgent); }
.dl-name { font-weight: 700; font-size: 1.05rem; }
.dl-meta { color: var(--ink-muted); font-size: 0.85rem; margin-top: 2px; }
.dl-meta code { color: var(--accent); font-family: var(--font-mono); }
.dl-arrow { color: var(--accent); font-size: 1.2rem; text-align: right; }

@media (max-width: 640px) {
  .deadline-row { grid-template-columns: 100px 1fr 20px; gap: 10px; padding: 14px; }
  table.facts th { width: auto; }
}