/*
  Features 26 — 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-100: #f1f5f9;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --violet-100: #ede9fe;
  --emerald-100: #d1fae5;
  --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(--slate-50);
  line-height: 1.5;
}

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

.features__grid {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

.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.75rem, 1.4rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

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

.list__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

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

.devices {
  position: relative;
  display: flex;
  min-height: 18rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}

.laptop {
  width: 100%;
  max-width: 24rem;
}

.laptop__screen {
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  border: 1px solid var(--slate-300);
  background-color: var(--white);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}

.chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  border-bottom: 1px solid var(--slate-100);
  padding: 0.5rem 0.75rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

.dot--rose {
  background-color: #fda4af;
}

.dot--amber {
  background-color: #fcd34d;
}

.dot--emerald {
  background-color: #6ee7b7;
}

.laptop__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

.laptop__base {
  height: 0.625rem;
  width: 110%;
  margin-left: -5%;
  border-radius: 0 0 0.5rem 0.5rem;
  background-color: var(--slate-300);
}

.block {
  height: 4rem;
  border-radius: 0.375rem;
}

.block--blue {
  background-color: var(--blue-100);
}

.block--violet {
  height: 2.5rem;
  background-color: var(--violet-100);
}

.block--emerald {
  height: 3rem;
  background-color: var(--emerald-100);
}

.line {
  height: 0.5rem;
  border-radius: 999px;
  background-color: var(--slate-100);
}

.line--full {
  width: 100%;
}

.line--lg {
  width: 75%;
  margin-top: 0.625rem;
}

.line--md {
  width: 66%;
}

.line--sm {
  width: 50%;
}

.tablet {
  position: absolute;
  top: 0.5rem;
  left: 0;
  display: none;
  width: 8rem;
  flex-direction: column;
  gap: 0.625rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 4px solid var(--slate-900);
  background-color: var(--white);
  box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.35);
  padding: 1rem;
}

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

.tablet__cell {
  height: 2rem;
  border-radius: 0.375rem;
  background-color: var(--slate-50);
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  width: 7rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 4px solid var(--slate-900);
  background-color: var(--white);
  box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.4);
}

.phone__notch {
  width: 2rem;
  height: 0.375rem;
  margin: 0.25rem auto;
  border-radius: 999px;
  background-color: var(--slate-900);
}

.phone__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0.625rem;
}

@media (min-width: 768px) {
  .tablet {
    display: flex;
  }

  .phone {
    display: none;
  }
}

@media (min-width: 1024px) {
  .devices {
    min-height: 24rem;
  }

  .tablet {
    display: flex;
    top: 1.5rem;
    left: -1rem;
    width: 9rem;
  }

  .phone {
    display: block;
    right: 0.5rem;
    bottom: 0;
    width: 8rem;
  }
}

/* Motion — disabled entirely under reduced motion; every device already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features26-laptop {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-features26-tablet {
    from {
      opacity: 0;
      transform: translate(-16px, 12px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translate(0, 0) scale(1);
    }
  }

  @keyframes al-features26-phone {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .laptop {
    animation: al-features26-laptop 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .tablet {
    animation: al-features26-tablet 600ms 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .phone {
    animation: al-features26-phone 550ms 520ms cubic-bezier(0.34, 1.35, 0.64, 1) both;
  }
}
