/* Isolated from intro — only styles .easy* */
.easy {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --easy-cream: var(--cream, #f7f5f0);
  --easy-ink: #111111;
  --easy-muted: #5c6460;
  --easy-accent: #7f9888;
  --easy-accent-dark: #5f7768;
  --easy-line: rgba(17, 17, 17, 0.12);
  --easy-radius: 20px;
  --easy-radius-sm: 12px;
  background: var(--easy-cream);
  color: var(--easy-ink);
  font-family: var(--sans);
  font-weight: 300;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 2.5rem) clamp(5rem, 12vh, 8rem);
}

.easy__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.easy__header {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.easy__title {
  font-family: var(--serif);
  font-size: var(--section-title-size);
  font-weight: 400;
  text-align: left;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--easy-ink);
}

.easy__title em {
  font-style: italic;
  color: inherit;
  padding-right: 0.06em;
}

.easy__grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--easy-line);
}

.easy-card {
  position: relative;
  min-width: 0;
  min-height: auto;
  padding: clamp(1.5rem, 4vw, 2rem) 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border-top: 1px solid var(--easy-line);
}

.easy-card:first-child {
  border-top: none;
  padding-top: 0;
}

.easy-card__step {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--easy-muted);
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.easy-card__copy {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.easy-card__title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--easy-ink);
}

.easy-card__subtitle {
  font-size: 0.78rem;
  line-height: 1.65;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--easy-muted);
  max-width: 26ch;
}

.easy-card__visual {
  margin-top: auto;
  width: 100%;
  min-height: clamp(160px, 22vh, 220px);
  border: 1px solid var(--easy-line);
  border-radius: var(--easy-radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.04);
}

.easy-card__visual--roll {
  margin-top: 0;
  min-height: clamp(200px, 38vh, 280px);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* How it works page — carousels sit on aurora bg */
.easy--how {
  background: transparent;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
}

.easy--how .easy__grid {
  border-top: none;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.easy--how .easy-card {
  border-top: none;
  padding: 0;
}

.easy--how .easy-card__visual {
  min-height: clamp(200px, 28vw, 280px);
}

.easy--how .easy-card__visual--roll {
  min-height: clamp(240px, 36vw, 320px);
}

.easy--how .easy__roll {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

.easy--how .easy-roll__slide {
  flex: 0 0 clamp(120px, 20vw, 200px);
  width: clamp(120px, 20vw, 200px);
}

.easy--how .easy-roll__viewport {
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

/* Biomarker pill marquee — 3 rows, duplicated strips for seamless loop */
.easy-pills {
  --pill-gap: clamp(0.5rem, 1.1vw, 0.65rem);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pill-gap);
  padding: clamp(1.1rem, 2.6vw, 1.45rem) clamp(0.9rem, 2vw, 1.2rem);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.easy-card__visual .easy-pills {
  mask-image: none;
}

.easy-pills__row {
  overflow: hidden;
  width: 100%;
  min-height: 2.35rem;
  display: flex;
  align-items: center;
}

.easy-pills__strip {
  display: flex;
  align-items: center;
  width: max-content;
  animation: easy-pills-marquee var(--pill-dur, 48s) linear infinite;
  will-change: transform;
}

.easy-pills__strip.is-reverse {
  animation-direction: reverse;
}

.easy-pills__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--pill-gap);
  padding-right: var(--pill-gap);
}

.easy-pill {
  flex-shrink: 0;
  padding: clamp(0.42rem, 0.9vw, 0.52rem) clamp(0.78rem, 1.6vw, 0.95rem);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.45vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: rgba(17, 17, 17, 0.72);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.68) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -0.5px 0 rgba(17, 17, 17, 0.04),
    0 0 0 1px rgba(17, 17, 17, 0.05),
    0 2px 10px rgba(17, 17, 17, 0.06),
    0 0 16px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
}

@keyframes easy-pills-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--pill-shift, 0px)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .easy-pills__strip {
    animation: none;
  }
}

/* Cards 2 & 3 — rolling carousels */
.easy__roll {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(200px, 38vh, 280px);
}

.easy-roll__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.easy-roll__track {
  display: flex;
  align-items: stretch;
  gap: clamp(0.65rem, 1.2vw, 1rem);
  width: max-content;
  padding-inline: clamp(1rem, 3vw, 2rem);
  will-change: transform;
  animation: easy-roll-drift var(--roll-dur, 36s) linear infinite;
}

.easy__roll.is-paused .easy-roll__track {
  animation-play-state: paused;
}

@keyframes easy-roll-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.easy-roll__slide {
  flex: 0 0 clamp(140px, 28vw, 200px);
  width: clamp(140px, 28vw, 200px);
  aspect-ratio: 1080 / 1462;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.easy-roll__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Card 3 — floating plan cards */
.easy-card__visual--plan {
  margin-top: 0;
  min-height: clamp(340px, 58vh, 480px);
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.easy-plan-cards {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 52vh, 420px);
}

.easy-plan-card {
  position: absolute;
  width: clamp(150px, 42vw, 260px);
  aspect-ratio: 1080 / 1350;
  margin: 0;
  z-index: calc(var(--i) + 1);
  transform: rotate(var(--rot, 0deg));
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    z-index 0s linear 0.2s;
  cursor: default;
}

.easy-plan-card:nth-child(1) {
  --rot: -10deg;
  left: 0%;
  top: 14%;
}

.easy-plan-card:nth-child(2) {
  --rot: -5deg;
  left: 17%;
  top: 2%;
}

.easy-plan-card:nth-child(3) {
  --rot: 2deg;
  left: 34%;
  top: 10%;
  z-index: 6;
}

.easy-plan-card:nth-child(4) {
  --rot: 7deg;
  left: 51%;
  top: 0%;
}

.easy-plan-card:nth-child(5) {
  --rot: 12deg;
  left: 68%;
  top: 12%;
}

.easy-plan-card__inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(17, 17, 17, 0.1),
    0 2px 6px rgba(17, 17, 17, 0.06);
  transition:
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: easy-plan-float 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.85s);
  will-change: transform;
}

.easy-plan-card__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.easy-plan-card:hover {
  --rot: 0deg;
  z-index: 20;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    z-index 0s;
}

.easy-plan-card:hover .easy-plan-card__inner {
  animation-play-state: paused;
  transform: translateY(-14px) scale(1.06);
  box-shadow:
    0 22px 40px rgba(17, 17, 17, 0.16),
    0 6px 14px rgba(17, 17, 17, 0.08);
}

@keyframes easy-plan-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .easy-plan-card__inner {
    animation: none;
  }

  .easy-plan-card:hover .easy-plan-card__inner {
    transform: translateY(-8px) scale(1.03);
  }
}

@media (max-width: 1024px) {
  .easy-card__visual--plan {
    min-height: auto;
    padding: 0.25rem 0 0.5rem;
  }

  .easy-plan-cards {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.85rem, 2.5vw, 1.25rem);
    min-height: 0;
    align-items: start;
    justify-items: center;
  }

  .easy-plan-card {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 220px;
    z-index: auto;
  }

  .easy-plan-card:nth-child(1) {
    --rot: -4deg;
    grid-column: 1 / 3;
  }

  .easy-plan-card:nth-child(2) {
    --rot: 3deg;
    grid-column: 3 / 5;
  }

  .easy-plan-card:nth-child(3) {
    --rot: -2deg;
    grid-column: 5 / 7;
    z-index: auto;
  }

  .easy-plan-card:nth-child(4) {
    --rot: 4deg;
    grid-column: 2 / 4;
    margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
  }

  .easy-plan-card:nth-child(5) {
    --rot: -3deg;
    grid-column: 4 / 6;
    margin-top: clamp(0.25rem, 1.5vw, 0.75rem);
  }
}

@media (max-width: 768px) {
  .easy__title {
    font-size: var(--section-title-size-mobile);
  }

  .easy-plan-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 3vw, 1rem);
  }

  .easy-plan-card {
    max-width: none;
    margin-top: 0;
  }

  .easy-plan-card:nth-child(1) {
    --rot: -3deg;
    grid-column: auto;
  }

  .easy-plan-card:nth-child(2) {
    --rot: 3deg;
    grid-column: auto;
  }

  .easy-plan-card:nth-child(3) {
    --rot: -2deg;
    grid-column: auto;
  }

  .easy-plan-card:nth-child(4) {
    --rot: 2deg;
    grid-column: auto;
  }

  .easy-plan-card:nth-child(5) {
    --rot: -3deg;
    grid-column: 1 / -1;
    width: min(58%, 220px);
    justify-self: center;
  }
}
