/*
  Features 06 — 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-400: #94a3b8;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --emerald-600: #059669;
  --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: 64rem;
  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(--emerald-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;
}

.lede {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.panel {
  margin-top: 2.5rem;
  border-radius: 1rem;
  background-color: var(--slate-950);
  padding: 2.5rem 2rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.metric__value {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.metric__label {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-400);
}

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

  .metric__value {
    font-size: 2.25rem;
  }

  .metric__label {
    font-size: 0.875rem;
  }
}

/* Motion — the panel gets a light scale-in entrance; disabled entirely
   under reduced motion, where it already renders at its final, fully
   visible state and script.js shows every counter's final value
   immediately with no intermediate frames. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features06-panel {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .panel {
    animation: al-features06-panel 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
