/* MARKER_APEX_V1 - MigrationPlane marketing site.
   Self-contained: system font stack, zero external requests, no JS. */

:root {
  --bg: #030712;
  --bg-raised: #0b1220;
  --panel: rgba(17, 24, 39, 0.55);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --muted: #6b7280;
  --blue: #3b82f6;
  --blue-soft: #93c5fd;
  --violet: #8b5cf6;
  --emerald: #10b981;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* No image may ever widen the page - even with a stale cached stylesheet. */
img, svg, video { max-width: 100%; height: auto; }

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

a { color: var(--blue-soft); }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-glyph { color: var(--blue); margin-right: 2px; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-list a:not(.btn) {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
.nav-list a:not(.btn):hover { color: var(--text); }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--panel);
}
.btn-ghost:hover { border-color: var(--blue); }
.btn-small { padding: 8px 16px; font-size: 0.88rem; }
.btn-large { padding: 15px 34px; font-size: 1.05rem; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  padding: 84px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(59, 130, 246, 0.14), transparent 70%),
    radial-gradient(ellipse 45% 35% at 80% 15%, rgba(139, 92, 246, 0.10), transparent 70%);
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0 0 18px;
}

.brand-tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  max-width: 820px;
}
.lede {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 34px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin: 26px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── Hero grid: copy + the "Discovered, not invented" car mark ─────── */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy h1, .hero-copy .lede { margin-left: 0; margin-right: 0; }
.hero-copy .cta-row { justify-content: flex-start; }
.hero-mark {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.22), 0 0 0 1px rgba(255,255,255,0.03) inset;
  background: #050914;
}
.hero-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-mark { max-width: 380px; order: -1; }
}

/* ── Platforms strip ────────────────────────────────────────────────── */
.platforms {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 26px 0;
}
.platforms .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
/* 2026-09-04: the label became two sentences (Al's copy), so it reads as prose, full width,
   instead of a small uppercase tag beside the list. */
.platforms-label {
  margin: 0;
  flex-basis: 100%;
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.platform-list {
  display: flex;
  gap: 12px 26px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.platform-list li {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.95rem;
}
/* The last item carries a sentence, not a name: it takes its own full-width line under the
   platform names and reads as prose. */
.platform-list li:last-child {
  flex-basis: 100%;
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Base44 Enterprise (page foot) ─────────────────────────────── */
.partner {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.partner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.partner-label {
  margin: 0;
  font-weight: 600;
  color: var(--text-soft);
}
/* The source image is about 4.5 to 1; a fixed height keeps it a wordmark, not a banner. */
.partner-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* ── Sections ───────────────────────────────────────────────────────── */
section { scroll-margin-top: 76px; }
.how, .lessons, .pricing { padding: 76px 0; }
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}
.section-lede {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  /* 4 equal columns; step 4 must never orphan onto its own row (seen at ~800px
     with auto-fit/minmax). 2-up on tablet, 1-up on phones. */
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 24px 22px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  color: var(--blue-soft);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

/* ── Lessons ────────────────────────────────────────────────────────── */
.lessons { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.lesson-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  padding: 26px 24px;
}
.lesson-card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--blue-soft); }
.lesson-card p { margin: 0; color: var(--text-soft); font-size: 0.93rem; }

/* ── Pricing ────────────────────────────────────────────────────────── */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 44px auto 0;
}
.tier {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.tier-paid {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--panel) 40%);
}
.tier-name {
  margin: 0 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.tier-price { margin: 0 0 18px; }
.tier-price .amount { font-size: 2.3rem; font-weight: 800; }
.tier-price .per { color: var(--muted); font-size: 1rem; }
.tier-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}
.tier-features li {
  padding: 8px 0 8px 26px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--emerald), rgba(16, 185, 129, 0.25));
}
.tier-cta { text-align: center; }
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 560px;
  margin: 30px auto 0;
}

/* ── Final CTA ──────────────────────────────────────────────────────── */
.final-cta {
  padding: 84px 0;
  text-align: center;
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(59, 130, 246, 0.12), transparent 70%);
}
.final-cta h2 { max-width: 700px; margin: 0 auto 30px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-row p { margin: 0; }
.footer-row a { color: var(--text-soft); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }

/* ── Small screens ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .header-row { justify-content: center; }
  .how, .lessons, .pricing { padding: 56px 0; }
}

/* ── Steps: 4 → 2 → 1 columns, placed last so the cascade is unambiguous ── */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Work with us (service-first) ─────────────────────────────────── */
.service { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service .section-lede { max-width: 720px; margin: 0 auto 32px; text-align: center; color: var(--text-soft); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.service-card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.service-card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--blue-soft); }
.service-card p { margin: 0; color: var(--text-soft); font-size: 0.93rem; }
.service .cta-row { justify-content: center; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }
