/*
  Features 27 — 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-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --blue-50: rgba(239, 246, 255, 0.6);
  --blue-600: #2563eb;
  --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: 56rem;
  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;
}

.list {
  margin-top: 3.5rem;
}

.divider {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--slate-200);
  transform-origin: left;
}

.row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  transition: background-color 200ms ease;
}

.row:hover {
  background-color: var(--slate-100);
}

.row--featured {
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  background-color: var(--blue-50);
  padding: 1.75rem 1.25rem;
}

.row--featured:hover {
  background-color: var(--blue-50);
}

.row__main {
  flex: 1;
}

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

.number {
  width: 2rem;
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--slate-300);
}

.number--featured {
  width: auto;
  font-size: 1.5rem;
  color: var(--blue-600);
}

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

.icon-tile--featured {
  background-color: var(--white);
  color: var(--blue-600);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

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

.core-badge {
  border-radius: 999px;
  background-color: var(--blue-600);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
}

.row__body {
  min-width: 0;
  flex: 1;
}

.row__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.row__title--lg {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  white-space: normal;
}

.row__text {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.row__text--lg {
  margin-top: 0.375rem;
  max-width: 28rem;
  line-height: 1.6;
  white-space: normal;
}

.thumb {
  width: 100%;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.thumb__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0;
}

.thumb__row--divider {
  border-top: 1px solid var(--slate-100);
}

.thumb__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);
}

@media (min-width: 640px) {
  .row--featured {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .thumb {
    width: 14rem;
  }
}

/* Motion — a gentle hover tint on non-featured rows is a plain
   transition and stays on under reduced motion (it's a hover affordance,
   not travel-based motion); every keyframe below is decorative and fully
   gated. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features27-divider {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  @keyframes al-features27-number {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  @keyframes al-features27-row {
    from {
      opacity: 0;
      transform: translateX(-6px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes al-features27-thumb {
    from {
      opacity: 0;
      transform: translateY(8px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .divider:not(.divider--static) {
    animation: al-features27-divider 550ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .number {
    animation: al-features27-number 400ms both;
  }

  .row {
    animation: al-features27-row 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .thumb {
    animation: al-features27-thumb 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
