/**
 * Moms Tools landing — Fun & Interactive Tools hub.
 */

.moms-tools-page {
  background-color: var(--color-background-alt, #f6f6f6);
  background-image: url('../../img/backing.png');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
}

.moms-tools {
  padding: 48px 0 64px;
}

.moms-tools .container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Hero */
.moms-tools__hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #fceaf3 0%, #f0e2ff 100%);
  overflow: hidden;
}

@media (min-width: 768px) {
  .moms-tools__hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.moms-tools__hero-content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 24px 0 24px 48px;
}

.moms-tools__hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 22px;
  color: #303030;
  white-space: nowrap;
}

.moms-tools__hero-lead {
  margin: 24px 0 0;
  max-width: 523px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #303030;
}

.moms-tools__hero-media {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  width: min(100%, 420px);
  margin: 0;
  padding: 0 48px 0 0;
}

.moms-tools__hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
}

/* Tablet hero — keep side-by-side like mockup 768 */
@media (min-width: 768px) and (max-width: 991.98px) {
  .moms-tools__hero-content {
    padding: 28px 12px 28px 28px;
  }

  .moms-tools__hero-title {
    white-space: normal;
    font-size: 28px;
    line-height: 1.2;
  }

  .moms-tools__hero-lead {
    margin-top: 16px;
    max-width: none;
    font-size: 16px;
    line-height: 26px;
  }

  .moms-tools__hero-media {
    width: min(42%, 280px);
    padding: 12px 20px 0 0;
    align-items: flex-end;
  }
}

/* Mobile hero — stacked, left-aligned */
@media (max-width: 767.98px) {
  .moms-tools__hero {
    text-align: left;
  }

  .moms-tools__hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px 16px;
  }

  .moms-tools__hero-title {
    font-size: 22px;
    line-height: 22px;
    text-align: left;
    white-space: normal;
  }

  .moms-tools__hero-lead {
    margin: 8px 0 0;
    max-width: 523px;
    text-align: left;
  }

  .moms-tools__hero-media {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0 20px 8px;
    justify-content: center;
  }
}

/* Section banner (like search-block__hero-tagline), same width as hero */
.moms-tools__section-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 24px 32px;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    var(--color-background, #f6f6f6) 0%,
    var(--color-primary, #6e4f95) 21.12%,
    var(--color-primary, #6e4f95) 78.13%,
    var(--color-background, #f6f6f6) 100%
  );
  text-align: center;
}

.moms-tools__section-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 24px;
  color: #fff;
  text-align: center;
}

.moms-tools__section-lead {
  margin: 24px auto 0;
  max-width: 684px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #fff;
  text-align: center;
}

.moms-tools__explore .moms-tools__grid {
  margin-top: 32px;
}

/* Discover section — left intro + illustration, right benefits */
.moms-tools__discover-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: #e6f6fb;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 992px) {
  .moms-tools__discover-panel {
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
  }
}

.moms-tools__discover-left {
  flex: 1 1 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.moms-tools__discover-copy {
  padding: 32px 24px 0;
}

@media (min-width: 992px) {
  .moms-tools__discover-copy {
    padding: 40px 0 0 40px;
  }
}

.moms-tools__discover-title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 22px;
  color: #303030;
}

.moms-tools__discover-lead {
  margin: 24px 0 0;
  max-width: 627px;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #303030;
}

.moms-tools__discover-media {
  margin-top: auto;
  padding: 24px 0 0;
}

.moms-tools__discover-img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

.moms-tools__benefits {
  flex: 1 1 32%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
  min-width: 0;
  padding: 0 24px 32px;
}

@media (min-width: 640px) {
  .moms-tools__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 992px) {
  .moms-tools__benefits {
    padding: 40px 40px 40px 0;
  }
}

.moms-tools__benefit {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 11px;
  border-radius: 10px;
  background: #fff;
}

@media (min-width: 992px) {
  .moms-tools__benefit {
    max-width: 234px;
  }
}

.moms-tools__benefit-title {
  margin: 0 0 8px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #303030;
}

.moms-tools__benefit-text {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #4d4d4d;
}

/* Tablet discover — copy, then 2×3 benefits, illustration below (mockup 768) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .moms-tools__discover-panel {
    gap: 24px;
    padding: 0 0 8px;
  }

  .moms-tools__discover-left {
    display: contents;
  }

  .moms-tools__discover-copy {
    order: 1;
    padding: 32px 28px 0;
    text-align: left;
  }

  .moms-tools__discover-title {
    font-size: 22px;
    line-height: 22px;
  }

  .moms-tools__discover-lead {
    margin-top: 24px;
    max-width: none;
    font-size: 16px;
    line-height: 32px;
  }

  .moms-tools__benefits {
    order: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 0 28px;
    gap: 16px 20px;
  }

  .moms-tools__discover-media {
    order: 3;
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
    padding: 8px 0 0;
  }

  .moms-tools__discover-img {
    max-width: 100%;
    object-position: left bottom;
  }
}

/* Mobile discover — lead → benefits → media */
@media (max-width: 767.98px) {
  .moms-tools__discover-panel {
    gap: 0;
  }

  .moms-tools__discover-left {
    display: contents;
  }

  .moms-tools__discover-copy {
    order: 1;
    text-align: left;
  }

  .moms-tools__discover-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
    text-align: left;
  }

  .moms-tools__discover-lead {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8px;
  }

  .moms-tools__benefits {
    order: 2;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 0;
  }

  .moms-tools__discover-media {
    order: 3;
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 8px 0 0;
  }
}

/* Tool cards — 3 per row */
.moms-tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .moms-tools__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .moms-tools__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.moms-tools__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.moms-tools__card--inactive {
  opacity: 0.72;
}

.moms-tools__card-visual {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 388 / 291;
  margin: 0;
  overflow: hidden;
  background: #f3f8fc;
}

.moms-tools__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.moms-tools__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  text-align: left;
}

.moms-tools__card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moms-tools__card-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 10px;
  background: #00a7e833;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #00a7e8;
}

.moms-tools__card:nth-child(2) .moms-tools__card-tag {
  background: #ff6ca033;
  color: #ff6ca0;
}

.moms-tools__card:nth-child(3) .moms-tools__card-tag {
  background: #60a54a33;
  color: #60a54a;
}

.moms-tools__card:nth-child(4) .moms-tools__card-tag {
  background: #9a30e033;
  color: #9a30e0;
}

.moms-tools__card:nth-child(5) .moms-tools__card-tag {
  background: #ffcc0033;
  color: #ffcc00;
}

.moms-tools__card:nth-child(6) .moms-tools__card-tag {
  background: #ff383c33;
  color: #ff383c;
}

.moms-tools__card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
  text-transform: uppercase;
  color: #303030;
}

.moms-tools__card-lead {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: #303030;
}

.moms-tools__card-desc {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #303030;
}

.moms-tools__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 8px;
  background: #60a54a26;
  color: #60a54a;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.moms-tools__card-btn:hover {
  background: #60a54a40;
  color: #4f8b3c;
  text-decoration: none;
}

.moms-tools__card-btn--disabled {
  background: #e5e5e5;
  color: #8a8a8a;
  cursor: default;
  pointer-events: none;
}

/* Benefits styles moved into discover section block above */

/* Disclaimer */
.moms-tools__disclaimer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
}

.moms-tools__disclaimer-text {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #303030;
}

/* Suggest form spacing on this page */
.moms-tools .height-predictor__suggest {
  margin: 0;
}

/* Tablet page rhythm (768–991) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .moms-tools {
    padding: 36px 0 56px;
  }

  .moms-tools .container {
    gap: 48px;
  }

  .moms-tools__section-banner {
    padding: 20px 24px;
  }

  .moms-tools__section-title {
    font-size: 28px;
    line-height: 1.2;
  }

  .moms-tools__section-lead {
    margin-top: 16px;
    max-width: 398px;
    font-size: 16px;
    line-height: 26px;
  }

  .moms-tools__explore .moms-tools__grid {
    margin-top: 24px;
  }

  .moms-tools__grid {
    gap: 20px;
  }

  .moms-tools__card-body {
    gap: 12px;
    padding: 12px;
  }

  .moms-tools__card-title {
    font-size: 20px;
    line-height: 22px;
  }

  .moms-tools__disclaimer {
    padding: 20px;
  }

  .moms-tools__disclaimer-text {
    font-size: 20px;
    line-height: 32px;
  }

  .moms-tools .height-predictor__suggest-card {
    max-width: 444px;
  }
}

@media (max-width: 767.98px) {
  .moms-tools {
    padding: 32px 0 48px;
  }

  .moms-tools .container {
    gap: 40px;
  }

  .moms-tools__section-banner {
    padding: 20px 16px;
  }

  .moms-tools__section-title {
    font-size: 22px;
    line-height: 24px;
  }

  .moms-tools__section-lead {
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 22px;
  }
}
