/*
  Features 23 — 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-200: #e2e8f0;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --blue-50: #eff6ff;
  --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 {
  max-width: 34rem;
  margin: 0 auto;
  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;
}

.strip {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  padding: 1rem;
  outline: none;
}

.item:focus-visible {
  box-shadow: 0 0 0 2px var(--blue-600);
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background-color: var(--blue-50);
  color: var(--blue-600);
}

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

.item__label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.reveal {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.item:hover .reveal,
.item:focus-within .reveal {
  grid-template-rows: 1fr;
}

.item__text {
  margin: 0;
  overflow: hidden;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.item__text span {
  display: block;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition-duration: 1ms;
  }
}

/* Motion — the hover/focus expand above is a plain transition, so it
   keeps working under reduced motion at a near-instant duration; only the
   strip's one-shot entrance below is fully gated. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features23-item {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

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