/*
  Features 11 — 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-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-700: #1d4ed8;
  --emerald-500: #10b981;
  --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: 72rem;
  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;
}

.grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
  padding: 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
}

.tile--large {
  padding: 0;
}

.tile--large img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.tile__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 3.5rem 1.25rem 1.25rem;
  background-image: linear-gradient(to top, rgba(2, 6, 23, 0.85), transparent);
}

.tile--muted {
  border: 1px solid var(--slate-200);
  background-color: var(--slate-50);
}

.tile--dark {
  background-color: var(--slate-900);
}

.tile__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.tile__title--dark {
  color: var(--slate-900);
  font-size: 0.875rem;
}

.tile__text {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.tile__text--dark {
  color: var(--slate-600);
  font-size: 0.75rem;
}

.avatar-row {
  display: flex;
}

.avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--slate-950);
  margin-left: -0.5rem;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar--sm {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-color: var(--slate-50);
}

.avatar--blue {
  background-color: #3b82f6;
}

.avatar--violet {
  background-color: #8b5cf6;
}

.avatar--emerald {
  background-color: #10b981;
}

.avatar--amber {
  background-color: #f59e0b;
}

.status-dot {
  position: absolute;
  right: -0.125rem;
  bottom: -0.125rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  border: 2px solid var(--slate-50);
  background-color: var(--emerald-500);
}

.presence-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.online-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background-color: var(--blue-100);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--blue-700);
}

.activity-text {
  margin: 0;
  font-size: 0.75rem;
  color: var(--slate-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.approval-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.approval-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.approval-check {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background-color: var(--white);
  color: var(--white);
}

.approval-check.is-done {
  border: none;
  background-color: var(--emerald-500);
}

.approval-check svg {
  width: 0.625rem;
  height: 0.625rem;
}

.approval-label {
  color: #334155;
}

.approval-label.is-done {
  color: var(--slate-400);
  text-decoration: line-through;
}

.progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.progress-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-400);
}

.progress-track {
  margin-top: 0.75rem;
  height: 0.375rem;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  width: 72%;
  border-radius: 999px;
  background-color: var(--emerald-500);
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .tile--large {
    grid-column: span 2;
  }

  .tile--large img {
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 11rem;
  }

  .tile--large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tile--large img {
    height: 100%;
  }
}

/* Motion — disabled entirely under reduced motion; every tile and its
   contents already render at their final, fully visible state outside
   this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features11-tile {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes al-features11-avatar {
    from {
      opacity: 0;
      transform: scale(0.5);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes al-features11-activity-row {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes al-features11-progress {
    from {
      width: 0%;
    }
  }

  .tile {
    animation: al-features11-tile 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .avatar {
    animation: al-features11-avatar 380ms cubic-bezier(0.34, 1.35, 0.64, 1) both;
  }

  .activity-row {
    animation: al-features11-activity-row 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .progress-fill {
    animation: al-features11-progress 900ms 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
