/* Readability adjustments for the article table of contents. */
@media (min-width: 821px) {
  .article-aside {
    gap: 15px;
    padding-top: 24px;
  }

  .article-aside > span {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
  }

  .article-aside a {
    font-size: 14px;
    line-height: 1.75;
  }

  .article-aside .aside-order {
    margin-top: 12px;
    padding-top: 18px;
    font-size: 14px;
  }
}

/* Requested mint and sage color palette. */
body {
  background: #e7f0d8;
}

.site-header {
  background: #bae5d4;
}

.hero {
  background: radial-gradient(circle at 72% 43%, #eef7df 0, #f7faf1 30%, #bae5d4 60%);
}

.promise-strip {
  background: #6b7c72;
}

.benefits {
  background: #bae5d4;
}

.closing-cta {
  background: #bae5d4;
  color: var(--ink);
}

.closing-inner > div:first-child > span {
  color: var(--green);
}

.closing-inner p {
  color: #365f4f;
}

/* Photographic routine steps generated for this static FTP edition. */
.routine-symbol {
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 4px solid #fff;
  background-color: #eef7df;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(45, 76, 59, .14);
  font-size: 0;
}

.routine-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.benefit-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.routine-grid article:nth-child(1) .routine-symbol {
  background-image: url("/routine-cleanse.webp");
}

.routine-grid article:nth-child(2) .routine-symbol {
  background-image: url("/routine-spot.webp");
}

.routine-grid article:nth-child(3) .routine-symbol {
  background-image: url("/routine-care.webp");
}

@media (max-width: 560px) {
  .routine-symbol {
    width: 118px;
    height: 118px;
  }
}

@media (min-width: 1081px) {
  .article-product-cta h2 {
    white-space: nowrap;
    font-size: 48px;
  }
}

.site-footer .footer-brand small {
  font-size: 10px;
}

.site-footer .footer-grid > div:first-child p {
  max-width: 420px;
  font-size: 14px;
  line-height: 1.75;
}

.site-footer .footer-grid h2 {
  margin-bottom: 20px;
  font-size: 13px;
}

.site-footer .footer-grid > div:not(:first-child) {
  gap: 11px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer .footer-bottom {
  font-size: 12px;
  line-height: 1.6;
}

/* Match the desktop benefit layout to the SIMPLE ROUTINE treatment. */
@media (min-width: 821px) {
  .benefits {
    background: #bae5d4;
  }

  .benefits .benefit-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1080px;
  }

  .benefits .benefit-card,
  .benefits .benefit-card.featured {
    min-height: 0;
    padding: 0 54px;
    overflow: visible;
    border: 0;
    border-right: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    text-align: center;
    box-shadow: none;
    transform: none;
  }

  .benefits .benefit-card:last-child {
    border-right: 0;
  }

  .benefits .card-number,
  .benefits .featured .card-number {
    position: absolute;
    top: 0;
    left: 25px;
    color: #9caa9f;
  }

  .benefits .benefit-icon,
  .benefits .featured .benefit-icon {
    width: 104px;
    height: 104px;
    margin: 0 auto 30px;
    border: 1px solid var(--line);
    background: radial-gradient(circle, #f3f8ec, #fff);
    color: var(--green);
    font-size: 38px;
  }

  .benefits .benefit-card h3 {
    margin: 0 0 7px;
    color: var(--ink);
    text-align: center;
  }

  .benefits .benefit-card p,
  .benefits .featured p {
    color: var(--muted);
    text-align: center;
  }
}

/* Before/After Slider */
.before-after-section {
  background: #fff;
}

.ba-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(45, 76, 59, .14);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  outline: none;
}

.ba-slider:focus-visible {
  box-shadow: 0 0 0 4px var(--green), 0 12px 28px rgba(45, 76, 59, .14);
}

.ba-after, .ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.ba-after {
  background-image: url('/after.jpg');
  z-index: 1;
}

.ba-before {
  background-image: url('/before.jpg');
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #fff;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-arrows {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-sizing: border-box;
}

.ba-arrows::before, .ba-arrows::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.ba-arrows::before {
  border-right: 6px solid #6b7c72;
}

.ba-arrows::after {
  border-left: 6px solid #6b7c72;
}

.ba-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  padding: 0;
  cursor: ew-resize;
  z-index: 10;
  touch-action: none;
  pointer-events: none;
}
