/*
  Features 12 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-500: #10b981;
  --emerald-700: #047857;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.5;
}

.features {
  padding: clamp(4rem, 3.5rem + 2vw, 6rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.features__inner {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
}

.intro {
  text-align: center;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.heading {
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.journey {
  position: relative;
  margin-top: 4rem;
}

.rail {
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 2px;
  transform: translateX(-50%);
  background-color: var(--blue-100);
  transform-origin: top;
}

.stages {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.stage {
  display: flex;
  gap: 1.25rem;
}

.badge {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 2px solid var(--blue-600);
  background-color: var(--white);
  color: var(--blue-600);
}

.badge svg {
  width: 1rem;
  height: 1rem;
}

.check {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
}

.card {
  min-width: 0;
  flex: 1;
  padding-bottom: 0.5rem;
}

.step-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.step-title {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step-text {
  margin: 0.375rem 0 0;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.mockup {
  margin-top: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.connect-visual {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-tile {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--blue-100);
  color: var(--blue-600);
}

.icon-tile svg {
  width: 1rem;
  height: 1rem;
}

.dashed-line {
  flex: 1;
  border-top: 1px dashed var(--slate-300);
}

.status-badge {
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge--emerald {
  border: 1px solid var(--emerald-200);
  background-color: var(--emerald-50);
  color: var(--emerald-700);
}

.status-badge--live {
  margin-left: auto;
  border: none;
  background-color: var(--emerald-100);
  color: var(--emerald-700);
  font-size: 0.625rem;
}

.configure-visual {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.375rem;
  background-color: var(--slate-50);
  padding: 0.375rem 0.75rem;
}

.toggle-label {
  display: block;
  width: 4rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: var(--slate-200);
}

.toggle {
  display: flex;
  width: 1.75rem;
  height: 1rem;
  align-items: center;
  justify-content: flex-start;
  border-radius: 999px;
  background-color: var(--slate-300);
  padding: 0.125rem;
}

.toggle span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background-color: var(--white);
}

.toggle--on {
  justify-content: flex-end;
  background-color: var(--blue-600);
}

.launch-visual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--slate-50);
  padding: 0.5rem 0.75rem;
}

.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 0.625rem;
  height: 0.625rem;
}

.pulse-dot__ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--emerald-500);
  opacity: 0.75;
}

.pulse-dot__core {
  position: relative;
  display: inline-flex;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background-color: var(--emerald-500);
}

.url-text {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--slate-600);
}

/* Motion — disabled entirely under reduced motion; the rail already
   renders at full height, every check is fully drawn, and every card is
   fully visible outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features12-rail {
    from {
      transform: scaleY(0);
    }
    to {
      transform: scaleY(1);
    }
  }

  @keyframes al-features12-card {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-features12-check {
    from {
      stroke-dashoffset: 20;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes al-features12-ping {
    75%,
    100% {
      transform: scale(2);
      opacity: 0;
    }
  }

  .rail {
    animation: al-features12-rail 900ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .card {
    animation: al-features12-card 550ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .check {
    animation: al-features12-check 450ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .pulse-dot__ping {
    animation: al-features12-ping 1800ms cubic-bezier(0, 0, 0.2, 1) infinite;
  }
}
