/* Milimbo public theme entry point. Component rules live in components.css. */

/* About page: content is unique to this page, but header/footer/container
   sizing reuses the same .milimbo-container as every other page.
   --about-scale is 1 at the 941px mockup reference width (so the
   automated visual review, captured at that width, sees pixel-identical
   output) and grows fluidly up to 1.5x by ~1920px, matching how far the
   rest of the site's clamp()-based hero type scales over that same
   viewport range. Below 941px it's clamped back to 1, leaving the
   existing mobile breakpoint overrides untouched. */
.page-template-page-about .milimbo-about {
  --about-scale: clamp(1, calc(1 + ((100vw - 941px) / 979px) * 0.5), 1.5);
  padding-top: calc(13px * var(--about-scale));
  direction: rtl;
}

.page-template-page-about .milimbo-about h1,
.page-template-page-about .milimbo-about h2,
.page-template-page-about .milimbo-about h3,
.page-template-page-about .milimbo-about p,
.page-template-page-about .milimbo-about figure {
  margin: 0;
}

.page-template-page-about .milimbo-about__eyebrow {
  color: #ff315d;
  font-size: calc(16px * var(--about-scale));
  font-weight: 900;
  line-height: calc(22px * var(--about-scale));
}

.page-template-page-about .milimbo-about__hero {
  margin-bottom: calc(22px * var(--about-scale));
}

.page-template-page-about .milimbo-about__hero-inner {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(240px, 397px) 1fr;
  gap: calc(30px * var(--about-scale));
  align-items: center;
  direction: rtl;
}

.page-template-page-about .milimbo-about__hero-art {
  width: 100%;
  height: auto;
  aspect-ratio: 397 / 306;
  padding: calc(11px * var(--about-scale));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 18px rgb(27 31 70 / 13%);
}

.page-template-page-about .milimbo-about__hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-template-page-about .milimbo-about__hero-copy {
  direction: rtl;
  text-align: right;
  padding-top: 3px;
}

.page-template-page-about .milimbo-about__hero-copy h1 {
  margin-top: calc(12px * var(--about-scale));
  color: #181d50;
  font-size: calc(43px * var(--about-scale));
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.1px;
}

.page-template-page-about .milimbo-about__hero-copy > p:last-of-type {
  margin-top: calc(20px * var(--about-scale));
  color: #3e436c;
  font-size: calc(16px * var(--about-scale));
  line-height: 1.72;
}

.page-template-page-about .milimbo-about__actions {
  display: flex;
  gap: calc(18px * var(--about-scale));
  margin-top: calc(22px * var(--about-scale));
}

.page-template-page-about .milimbo-about__button {
  display: inline-flex;
  height: calc(47px * var(--about-scale));
  align-items: center;
  justify-content: center;
  gap: calc(18px * var(--about-scale));
  padding-inline: calc(24px * var(--about-scale));
  color: #181d50;
  font-size: calc(14px * var(--about-scale));
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  border: 1px solid #aeb3ca;
  border-radius: 8px;
}

.page-template-page-about .milimbo-about__button--primary {
  color: #fff;
  background: #ff315d;
  border-color: #ff315d;
  box-shadow: 0 7px 15px rgb(255 49 93 / 18%);
}

.page-template-page-about .milimbo-about__button--secondary {
  background: #fff;
}

.page-template-page-about .milimbo-about__grid-mark {
  display: grid;
  width: 15px;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
}

.page-template-page-about .milimbo-about__grid-mark i {
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.page-template-page-about .milimbo-about__story {
  display: grid;
  margin-bottom: calc(20px * var(--about-scale));
  padding: calc(16px * var(--about-scale)) calc(20px * var(--about-scale));
  grid-template-columns: minmax(240px, 411px) 1fr;
  gap: calc(31px * var(--about-scale));
  align-items: center;
  direction: ltr;
  background: #fff;
  border: 1px solid #f0e8e2;
  border-radius: 18px;
  box-shadow: 0 5px 14px rgb(39 32 58 / 8%);
}

.page-template-page-about .milimbo-about__story-copy {
  text-align: right;
}

.page-template-page-about .milimbo-about__story-copy h2 {
  margin-top: calc(4px * var(--about-scale));
  color: #181d50;
  font-size: calc(27px * var(--about-scale));
  font-weight: 900;
  line-height: calc(34px * var(--about-scale));
}

.page-template-page-about .milimbo-about__story-copy p:not(.milimbo-about__eyebrow) {
  margin-top: calc(13px * var(--about-scale));
  color: #41466d;
  font-size: calc(14px * var(--about-scale));
  line-height: 1.65;
}

.page-template-page-about .milimbo-about__story-art {
  width: 100%;
  height: auto;
  aspect-ratio: 345 / 195;
  overflow: hidden;
  border-radius: 12px;
}

.page-template-page-about .milimbo-about__story-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-template-page-about .milimbo-about__categories {
  margin-bottom: calc(14px * var(--about-scale));
  text-align: center;
}

.page-template-page-about .milimbo-about__categories > h2,
.page-template-page-about .milimbo-about__benefits > h2,
.page-template-page-about .milimbo-about__values > h2,
.page-template-page-about .milimbo-about__faq > h2 {
  color: #181d50;
  font-size: calc(24px * var(--about-scale));
  font-weight: 900;
  line-height: calc(30px * var(--about-scale));
}

.page-template-page-about .milimbo-about__categories > h2 span,
.page-template-page-about .milimbo-about__benefits > h2 span,
.page-template-page-about .milimbo-about__values > h2 span,
.page-template-page-about .milimbo-about__faq > h2 span {
  margin-right: 6px;
  color: #ff315d;
  font-size: calc(20px * var(--about-scale));
}

.page-template-page-about .milimbo-about__category-grid {
  display: grid;
  margin-top: calc(13px * var(--about-scale));
  grid-template-columns: repeat(6, 1fr);
  gap: calc(12px * var(--about-scale));
  direction: rtl;
}

.page-template-page-about .milimbo-about__category-card {
  display: flex;
  min-height: calc(194px * var(--about-scale));
  flex-direction: column;
  align-items: center;
  padding: calc(11px * var(--about-scale)) calc(9px * var(--about-scale)) calc(10px * var(--about-scale));
  color: #fff;
  text-align: center;
  border-radius: 13px;
  box-shadow: 0 5px 12px rgb(31 28 62 / 11%);
}

.page-template-page-about .milimbo-about__category-card img {
  width: calc(72px * var(--about-scale));
  height: calc(68px * var(--about-scale));
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(0 3px 2px rgb(0 0 0 / 12%));
}

.page-template-page-about .milimbo-about__category-card h3 {
  font-size: calc(17px * var(--about-scale));
  font-weight: 900;
  line-height: calc(22px * var(--about-scale));
}

.page-template-page-about .milimbo-about__category-card p {
  min-height: calc(40px * var(--about-scale));
  margin-top: 2px;
  font-size: calc(12px * var(--about-scale));
  line-height: calc(18px * var(--about-scale));
}

.page-template-page-about .milimbo-about__category-card a {
  display: flex;
  width: 100%;
  height: calc(31px * var(--about-scale));
  margin-top: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
  background: #fff;
  font-size: calc(10px * var(--about-scale));
  font-weight: 900;
  text-decoration: none;
  border-radius: 7px;
}

.page-template-page-about .milimbo-about__category-card--educational { background: linear-gradient(145deg, #168de8, #3978ef); }
.page-template-page-about .milimbo-about__category-card--visual { background: linear-gradient(145deg, #ff426a, #f32658); }
.page-template-page-about .milimbo-about__category-card--palindromes { background: linear-gradient(145deg, #ffbb31, #f59c11); }
.page-template-page-about .milimbo-about__category-card--expressions { background: linear-gradient(145deg, #16bfab, #02a68f); }
.page-template-page-about .milimbo-about__category-card--word-games { background: linear-gradient(145deg, #7b5df2, #6045dc); }
.page-template-page-about .milimbo-about__category-card--riddles { background: linear-gradient(145deg, #ffbf35, #ffa30f); }
.page-template-page-about .milimbo-about__category-card--educational a { color: #247add; }
.page-template-page-about .milimbo-about__category-card--visual a { color: #f02f5b; }
.page-template-page-about .milimbo-about__category-card--palindromes a { color: #ed9412; }
.page-template-page-about .milimbo-about__category-card--expressions a { color: #05a991; }
.page-template-page-about .milimbo-about__category-card--word-games a { color: #684ce2; }
.page-template-page-about .milimbo-about__category-card--riddles a { color: #ee9610; }

.page-template-page-about .milimbo-about__benefits {
  margin-bottom: calc(17px * var(--about-scale));
  text-align: center;
}

.page-template-page-about .milimbo-about__benefit-grid {
  display: grid;
  margin-top: calc(13px * var(--about-scale));
  grid-template-columns: repeat(3, 1fr);
  gap: calc(18px * var(--about-scale));
}

.page-template-page-about .milimbo-about__benefit-grid article {
  display: flex;
  min-height: calc(91px * var(--about-scale));
  align-items: center;
  justify-content: center;
  gap: calc(15px * var(--about-scale));
  padding: calc(14px * var(--about-scale)) calc(17px * var(--about-scale));
  text-align: right;
  background: #fff;
  border: 1px solid #eee7e1;
  border-radius: 13px;
  box-shadow: 0 5px 13px rgb(39 32 58 / 8%);
}

.page-template-page-about .milimbo-about__benefit-grid img {
  width: calc(54px * var(--about-scale));
  height: calc(54px * var(--about-scale));
}

.page-template-page-about .milimbo-about__benefit-grid h3,
.page-template-page-about .milimbo-about__value-grid h3,
.page-template-page-about .milimbo-about__faq-grid h3 {
  color: #181d50;
  font-size: calc(15px * var(--about-scale));
  font-weight: 900;
  line-height: calc(20px * var(--about-scale));
}

.page-template-page-about .milimbo-about__benefit-grid p,
.page-template-page-about .milimbo-about__value-grid p,
.page-template-page-about .milimbo-about__faq-grid p {
  margin-top: 3px;
  color: #454a72;
  font-size: calc(12px * var(--about-scale));
  line-height: calc(17px * var(--about-scale));
}

.page-template-page-about .milimbo-about__values {
  margin-bottom: calc(22px * var(--about-scale));
  text-align: center;
}

.page-template-page-about .milimbo-about__value-grid {
  display: grid;
  margin-top: calc(13px * var(--about-scale));
  grid-template-columns: repeat(4, 1fr);
  gap: calc(15px * var(--about-scale));
}

.page-template-page-about .milimbo-about__value-grid article {
  display: grid;
  min-height: calc(111px * var(--about-scale));
  grid-template-columns: calc(49px * var(--about-scale)) 1fr;
  grid-template-rows: auto auto;
  gap: 0 calc(9px * var(--about-scale));
  align-content: center;
  padding: calc(13px * var(--about-scale)) calc(14px * var(--about-scale));
  text-align: right;
  border: 1px solid transparent;
  border-radius: 13px;
}

.page-template-page-about .milimbo-about__value-grid img {
  width: calc(49px * var(--about-scale));
  height: calc(49px * var(--about-scale));
  grid-row: 1 / 3;
  align-self: center;
}

.page-template-page-about .milimbo-about__value-grid .is-mint { background: #edf9f6; border-color: #ccece4; }
.page-template-page-about .milimbo-about__value-grid .is-blue { background: #eef4ff; border-color: #ccdafa; }
.page-template-page-about .milimbo-about__value-grid .is-pink { background: #fff1f4; border-color: #f3d4dd; }
.page-template-page-about .milimbo-about__value-grid .is-gold { background: #fff7e7; border-color: #f4dfb1; }

.page-template-page-about .milimbo-about__faq {
  margin-bottom: calc(17px * var(--about-scale));
  text-align: center;
}

.page-template-page-about .milimbo-about__faq-grid {
  display: grid;
  margin-top: calc(12px * var(--about-scale));
  grid-template-columns: repeat(3, 1fr);
  gap: calc(18px * var(--about-scale));
}

.page-template-page-about .milimbo-about__faq-grid > a {
  display: grid;
  min-height: calc(79px * var(--about-scale));
  grid-template-columns: calc(50px * var(--about-scale)) 1fr;
  align-items: center;
  gap: calc(9px * var(--about-scale));
  padding: calc(10px * var(--about-scale)) calc(14px * var(--about-scale));
  text-align: right;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eee7e1;
  border-radius: 13px;
  box-shadow: 0 4px 10px rgb(39 32 58 / 7%);
}

.page-template-page-about .milimbo-about__faq-grid img {
  width: calc(48px * var(--about-scale));
  height: calc(48px * var(--about-scale));
}

.page-template-page-about .milimbo-about__faq-grid div {
  position: relative;
}

.page-template-page-about .milimbo-about__faq-grid div > span {
  position: absolute;
  inset-inline-end: 0;
  bottom: -2px;
  color: #ff315d;
  font-weight: 900;
}

.page-template-page-about .milimbo-about__final-cta {
  position: relative;
  direction: ltr;
  display: grid;
  min-height: calc(109px * var(--about-scale));
  margin-bottom: calc(14px * var(--about-scale));
  padding: calc(17px * var(--about-scale)) calc(23px * var(--about-scale));
  grid-template-columns: minmax(160px, 205px) 1fr minmax(120px, 165px);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #171c4f, #252568);
  border-radius: 16px;
}

.page-template-page-about .milimbo-about__cta-character {
  position: absolute;
  right: 17px;
  bottom: -3px;
  width: calc(162px * var(--about-scale));
  height: calc(104px * var(--about-scale));
}

.page-template-page-about .milimbo-about__cta-copy {
  grid-column: 2;
  direction: rtl;
  text-align: center;
}

.page-template-page-about .milimbo-about__cta-copy h2 {
  color: #fff;
  font-size: calc(27px * var(--about-scale));
  line-height: calc(34px * var(--about-scale));
}

.page-template-page-about .milimbo-about__cta-copy p {
  margin-top: 3px;
  color: #fff;
  font-size: calc(13px * var(--about-scale));
  line-height: calc(20px * var(--about-scale));
}

.page-template-page-about .milimbo-about__final-cta .milimbo-about__button {
  grid-column: 1;
  height: calc(40px * var(--about-scale));
  min-height: calc(40px * var(--about-scale));
  border-radius: 8px;
}

@media (max-width: 768px) {
  .page-template-page-about .milimbo-about {
    padding-top: 18px;
  }

  .page-template-page-about .milimbo-about__hero,
  .page-template-page-about .milimbo-about__story,
  .page-template-page-about .milimbo-about__categories,
  .page-template-page-about .milimbo-about__benefits,
  .page-template-page-about .milimbo-about__values,
  .page-template-page-about .milimbo-about__faq,
  .page-template-page-about .milimbo-about__final-cta {
    margin-bottom: 28px;
  }

  .page-template-page-about .milimbo-about__hero-inner,
  .page-template-page-about .milimbo-about__story {
    grid-template-columns: 1fr;
  }

  .page-template-page-about .milimbo-about__hero-inner {
    gap: 18px;
  }

  .page-template-page-about .milimbo-about__hero-copy {
    grid-row: 1;
  }

  .page-template-page-about .milimbo-about__hero-art {
    width: 100%;
    height: auto;
    aspect-ratio: 397 / 306;
  }

  .page-template-page-about .milimbo-about__hero-copy h1 {
    font-size: 36px;
  }

  .page-template-page-about .milimbo-about__hero-copy > p:last-of-type br {
    display: none;
  }

  .page-template-page-about .milimbo-about__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-template-page-about .milimbo-about__button,
  .page-template-page-about .milimbo-about__button--primary,
  .page-template-page-about .milimbo-about__button--secondary {
    width: 100%;
    min-height: 48px;
  }

  .page-template-page-about .milimbo-about__story {
    padding: 18px;
  }

  .page-template-page-about .milimbo-about__story-art {
    width: 100%;
    height: auto;
    aspect-ratio: 345 / 195;
  }

  .page-template-page-about .milimbo-about__category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-template-page-about .milimbo-about__category-card {
    min-height: 215px;
  }

  .page-template-page-about .milimbo-about__benefit-grid,
  .page-template-page-about .milimbo-about__faq-grid {
    grid-template-columns: 1fr;
  }

  .page-template-page-about .milimbo-about__value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-template-page-about .milimbo-about__final-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 20px 118px;
    text-align: center;
  }

  .page-template-page-about .milimbo-about__cta-character {
    inset-inline: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 420px) {
  .page-template-page-about .milimbo-about__hero-copy h1 {
    font-size: 32px;
  }

  .page-template-page-about .milimbo-about__value-grid {
    grid-template-columns: 1fr;
  }
}

