/*
  Bento 07 — 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-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-50: #f8fafc;
  --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;
}

a {
  text-decoration: none;
  color: inherit;
}

.bento {
  padding: clamp(2.5rem, 2rem + 2vw, 4rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.bento__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  border-radius: 1.5rem;
}

.card--hero {
  background-image: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  padding: 2.5rem;
  text-align: center;
}

.card__heading {
  margin: 0 auto;
  max-width: 32rem;
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-900);
  text-decoration: underline;
  text-decoration-color: var(--slate-300);
  text-underline-offset: 4px;
  transition: text-decoration-color 150ms ease;
}

.link:hover {
  text-decoration-color: var(--slate-900);
}

.link:focus-visible {
  outline: 2px solid var(--slate-900);
  outline-offset: 2px;
  border-radius: 2px;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card--glow,
.card--text,
.card--workflow,
.card--metric {
  position: relative;
  min-height: 12rem;
  padding: 2rem;
}

.card--glow {
  overflow: hidden;
  background-image: linear-gradient(160deg, #f5f3ff 0%, #faf5ff 100%);
}

.card__glow {
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background-color: rgba(221, 214, 254, 0.5);
  filter: blur(32px);
  pointer-events: none;
}

.card__title {
  position: relative;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.card__text {
  position: relative;
  margin: 0.5rem 0 0;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

.card--text {
  background-color: var(--slate-50);
}

.card--workflow {
  background-image: linear-gradient(160deg, #f0fdfa 0%, #eff6ff 100%);
}

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

.workflow__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background-color: var(--white);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--slate-700);
}

.workflow__line {
  width: 1.5rem;
  height: 1px;
  background-color: var(--slate-300);
}

.workflow__title {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
}

.workflow__caption {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.card--metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(160deg, #fff7ed 0%, #fef2f2 100%);
}

.metric__value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

@media (min-width: 640px) {
  .card--hero {
    padding: 3.5rem;
  }

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

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

  .reveal {
    animation: al-bento07-lift 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}
