/* ==========================================================================
   Home page
   ========================================================================== */

/* ---------- Hero ---------- */
.page-home .hero-card { min-height: min(856px, 94vh); }
.home-hero { width: 100%; padding-inline: clamp(0px, 1.2vw, 14px); }
.home-hero__top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.home-hero__title {
  color: var(--purple);
  max-width: 14ch;
  font-size: clamp(44px, 6.9vw, 100px);
}
.home-hero__cta { flex: none; margin-bottom: 4px; margin-right: 4px; }
.home-hero__cols {
  display: grid; grid-template-columns: 1fr 1.35fr 2fr; gap: 24px;
  margin-top: 44px; font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--purple);
}
.home-hero__cols p:first-child { max-width: 190px; }
.home-hero__cols p:nth-child(2) { max-width: 360px; margin-top: -10px; }
.home-hero__right { text-align: right; justify-self: end; max-width: 520px; }
.home-hero__proof { margin-top: 24px; width: fit-content; max-width: 100%; margin-left: auto; font-size: 16px; }

/* ---------- Featured on ---------- */
.featured { padding-top: clamp(48px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 120px); }
.featured__title {
  text-align: center; font-size: clamp(40px, 6vw, 88px); line-height: 1.25; letter-spacing: -0.04em;
}
.featured__logos {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(32px, 4vw, 56px);
}
.featured__logos li { flex: 0 1 146px; }
.featured__logos a { display: block; border-radius: 12px; transition: transform .25s ease; }
.featured__logos a:hover { transform: translateY(-3px); }
.featured__logos img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* ---------- Intro ---------- */
.intro { padding-top: clamp(32px, 5vw, 60px); }
.intro__lead, .scared__lead {
  font-weight: 500; font-size: clamp(22px, 2.15vw, 31px); line-height: 1.5; letter-spacing: -0.05em;
  color: var(--purple);
}
.intro__lead { max-width: 1000px; padding-left: clamp(0px, 2vw, 48px); }
.intro__bio {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 520px); align-items: center; gap: clamp(28px, 4vw, 64px);
  margin: clamp(40px, 5vw, 76px) 0 0 auto; width: min(100%, 980px);
  position: relative; z-index: 1;
}
.intro__photo .photo-frame__img img { object-position: 50% 30%; }
.intro__text { display: grid; gap: 18px; justify-items: start; }
.intro__hello { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: var(--purple); }
.intro__bio p:not(.intro__hello) { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; max-width: 520px; }
.intro__more { min-height: 48px; }

/* Blob background with soft white flowers */
.scared { position: relative; isolation: isolate; overflow-x: clip; padding-bottom: clamp(64px, 9vw, 130px); }
.scared__bg {
  position: absolute; z-index: -1; left: 50%; top: -190px; transform: translateX(-50%);
  width: min(1400px, 110vw); aspect-ratio: 1792 / 1557;
  background: url("/assets/img/siluete-circle-gradient.svg") center / contain no-repeat;
  pointer-events: none;
}
.scared__title {
  text-align: center; font-size: clamp(36px, 6.6vw, 96px); line-height: 1.2; letter-spacing: -0.02em;
  max-width: 1100px; margin: clamp(40px, 4.5vw, 72px) auto 0;
}
.scared__grid {
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; align-items: start; gap: 32px;
  margin-top: 54px;
}
.scared__img { border-radius: var(--radius-md); object-fit: cover; }
.scared__img--left { width: 220px; height: 330px; margin: 92px 0 0 clamp(0px, 4.5vw, 64px); }
.scared__img--right { width: 254px; height: 402px; object-position: 42% 50%; justify-self: end; margin-right: clamp(0px, 3vw, 40px); }
.scared__text {
  font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; text-align: center;
  max-width: 480px; margin: 44px auto 0;
}
.scared__lead { max-width: 1140px; margin: 40px 0 0 clamp(0px, 3.5vw, 60px); }

/* ---------- Is this you? ---------- */
.isyou { background: linear-gradient(135deg, #fffdb5 23%, #fff 100%); padding: 28px; }
.isyou__inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.isyou__card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 52px) clamp(20px, 3.5vw, 52px) clamp(32px, 3vw, 52px);
}
.isyou__title { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.2; letter-spacing: -0.04em; }
.isyou__list { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 52px); }
.isyou__list li {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px);
  min-height: 100px; padding: 14px 24px 14px 18px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #eeaeb3 0%, #f6d3b4 50%, #fffdb5 80%, rgba(255,255,255,0) 100%);
}
.isyou__list p { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; max-width: 440px; }
.isyou__icon { width: 64px; height: 64px; flex: none; color: var(--purple); }
.isyou__media { border-radius: var(--radius-lg); overflow: hidden; min-height: 600px; }
.isyou__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.isyou__cta { margin-top: clamp(24px, 3vw, 40px); }
.isyou__cta .btn-pill { min-height: 52px; }
.isyou__badge {
  position: absolute; left: 43%; top: 2.5%; width: clamp(160px, 21vw, 310px); aspect-ratio: 1;
  background: var(--purple);
  -webkit-mask: url("/assets/svg/curved-text-butterfly.svg") center / contain no-repeat;
          mask: url("/assets/svg/curved-text-butterfly.svg") center / contain no-repeat;
  animation: cbm-spin 40s linear infinite;
  pointer-events: none;
}
@keyframes cbm-spin { to { transform: rotate(360deg); } }

/* ---------- Services tag cloud ---------- */
.cloud { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(64px, 15vw, 216px); }
.cloud .container { max-width: 1340px; }
.cloud__title {
  text-align: center; font-size: clamp(24px, 2.3vw, 33px); line-height: 1.25; letter-spacing: -0.045em;
  max-width: 1200px; margin-inline: auto;
}
.cloud__rows { display: grid; gap: 14px; margin-top: clamp(32px, 3.5vw, 52px); }
.cloud__row { display: flex; justify-content: center; align-items: center; gap: 16px; }
.cloud__pill {
  display: inline-flex; align-items: center;
  min-height: 100px; padding: 16px 34px;
  border: 1.5px solid #6d86d6; border-radius: 22px; background: var(--white);
  font-weight: 500; font-size: clamp(22px, 2.3vw, 33px); line-height: 1.35; letter-spacing: -0.05em;
  color: var(--purple); white-space: nowrap; text-decoration: none;
  transition: background-color .2s, transform .2s, border-color .2s;
}
a.cloud__pill:hover { background: var(--butter); border-color: var(--purple); transform: translateY(-2px); }
a.cloud__pill:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.cloud__pill--tall { min-height: 150px; white-space: normal; max-width: 365px; }
.cloud__pill--wide { max-width: 428px; width: 428px; }
.cloud__img { width: 266px; height: 112px; object-fit: cover; border-radius: 14px; flex: 0 1 auto; min-width: 140px; }
.cloud__img--wide { width: 333px; }
.cloud__row:nth-child(3) .cloud__img { width: 245px; }

/* ---------- Investment ---------- */
.invest { padding-bottom: clamp(56px, 8vw, 130px); }
.invest__eyebrow { text-align: center; font-size: 18px; letter-spacing: -0.02em; }
.invest__title {
  text-align: center; font-weight: 500; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.15;
  letter-spacing: -0.055em; max-width: 1000px; margin: 18px auto 0;
}
.invest__panel {
  margin: clamp(36px, 5.6vw, 80px) 28px 0;
  border-radius: var(--radius-lg); overflow: hidden;
  background:
    url("/assets/img/floral-bg.webp") center / cover no-repeat,
    linear-gradient(120deg, #e8e4ff 0%, #ffd9ea 45%, #ffe7cf 65%, #dfe9ff 100%);
  padding: clamp(28px, 6vw, 84px) clamp(16px, 2.6vw, 56px) clamp(28px, 4.2vw, 60px);
}
.invest__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.invest__card {
  background: rgba(242, 247, 189, .92); border-radius: var(--radius-md);
  padding: 36px clamp(20px, 2.4vw, 50px) 44px; text-align: center;
}
.invest__card:nth-child(2) { margin-top: 0; }
.invest__card h3 { font-size: clamp(26px, 2.2vw, 32px); line-height: 1.2; color: var(--purple); margin: 18px 0 18px; }
.invest__card { display: flex; flex-direction: column; align-items: center; }
.invest__card p { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; }
.invest__card p a { text-underline-offset: 3px; }
/* "Ask for rates" block (shared .ask-rates styles live in main.css); pin it to the card bottom */
.invest__card .ask-rates { margin-top: auto; padding-top: 22px; width: 100%; justify-items: center; text-align: center; }
.invest__card .ask-rates__actions { justify-content: center; }
.invest__card p.ask-rates__label { font-size: 16px; letter-spacing: .08em; line-height: 1.3; }
/* the card already ends in a solid purple "About" pill: keep the WhatsApp pill outlined */
.invest__card .ask-rates__wa { background: transparent; color: var(--purple); box-shadow: inset 0 0 0 1.5px var(--purple); }
.invest__card .ask-rates__wa:hover { background: rgba(120,53,136,.08); }
.invest__link {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 22px;
  border-radius: 999px; background: var(--purple); color: var(--white);
  gap: 8px; font-family: var(--font-ui); font-weight: 500; font-size: 17px; text-decoration: none;
  transition: background-color .2s;
}
.invest__link:hover { background: var(--mauve); }

/* ---------- Testimonials ---------- */
.stories { padding-bottom: clamp(64px, 9vw, 130px); }
.stories__eyebrow { text-align: center; font-size: 18px; letter-spacing: -0.02em; }
.stories__title { text-align: center; font-size: clamp(40px, 6vw, 88px); line-height: 1.15; letter-spacing: -0.04em; margin-top: 8px; }
.stories__grid { margin-top: clamp(32px, 4vw, 56px); }
.stories__more { text-align: center; margin-top: clamp(28px, 3vw, 44px); }
.stories__more .btn-pill { min-height: 52px; }

.doodle {
  display: block; margin-inline: auto; background: var(--purple);
  -webkit-mask: var(--doodle) center / contain no-repeat;
          mask: var(--doodle) center / contain no-repeat;
}
.doodle--peace { --doodle: url("/assets/svg/doodle-peace-hand.svg"); width: 80px; height: 118px; }
.doodle--smiley { --doodle: url("/assets/svg/doodle-smiley-flower.svg"); width: 122px; height: 124px; }
.doodle--bird { --doodle: url("/assets/svg/doodle-bird.svg"); width: 124px; height: 118px; }
.doodle--flower { --doodle: url("/assets/svg/doodle-flower-outline.svg"); }

/* ---------- FAQ ---------- */
.faq { padding-top: clamp(16px, 1vw, 14px); padding-bottom: clamp(64px, 9vw, 150px); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.faq__head { padding-left: clamp(0px, 1vw, 12px); padding-top: 4px; }
.faq__title { font-size: clamp(40px, 6.6vw, 96px); line-height: 0.98; letter-spacing: -0.055em; max-width: 10ch; }
.doodle--flower { width: clamp(160px, 28vw, 410px); aspect-ratio: 394 / 395; margin: clamp(32px, 7vw, 100px) 0 0 clamp(40px, 9vw, 140px); }
.faq__list { display: grid; gap: 32px; padding-right: clamp(0px, 3vw, 44px); }
.faq__item {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 32px; row-gap: 14px;
}
.faq__q {
  grid-row: span 2; width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--butter); border-radius: 10px;
  font-family: var(--font-serif); font-style: italic; font-size: 28px; color: var(--purple);
}
.faq__item h3 {
  font-weight: 500; font-size: clamp(24px, 2.3vw, 33px); line-height: 1.2; letter-spacing: -0.05em;
  color: var(--purple); padding-top: 6px;
}
.faq__item p { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; max-width: 490px; }
.faq__cta { padding: 22px 26px; border-radius: var(--radius-md); background: var(--butter); }
.faq__cta p { font-size: 18px; line-height: 1.5; }
.faq__cta a { font-weight: 500; text-underline-offset: 3px; display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .cloud__row { flex-wrap: wrap; }
  .cloud__img, .cloud__row:nth-child(3) .cloud__img { width: 200px; }
  .cloud__img--wide { width: 240px; }
  .cloud__pill--wide { width: auto; }
  .scared__grid { grid-template-columns: 1fr 1.4fr 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .hero-frame { padding: 16px; }
  .page-home .hero-card { min-height: 498px; padding: 24px 20px 24px; }
  .home-hero { padding-inline: 4px; }
  .home-hero__top { align-items: flex-end; gap: 8px; }
  .home-hero__title { font-size: 38px; line-height: 1.03; max-width: 7.6ch; margin-bottom: 8px; }
  .home-hero__proof { margin: 16px 0 0; width: 100%; font-size: 16px; padding: 10px 14px; }
  .home-hero__cta { width: 110px; font-size: 17px; padding: 8px; }
  .home-hero__cols { display: none; }

  .featured { padding-top: 96px; padding-bottom: 72px; }
  .featured__title { font-size: 38px; line-height: 1.55; max-width: 300px; margin-inline: auto; }
  .featured__logos {
    display: grid; grid-template-columns: repeat(2, 96px); justify-content: center;
    column-gap: 40px; row-gap: 24px; margin-top: 44px;
  }
  .featured__logos li { flex: none; }

  .intro { padding-top: 64px; }
  .intro__lead { font-size: 20px; padding-left: 0; }
  .intro__bio { grid-template-columns: 1fr; width: 100%; margin-top: 56px; gap: 24px; }
  .intro__photo { width: min(100%, 300px); margin-inline: auto; }
  .intro__bio p:not(.intro__hello) { font-size: 16px; line-height: 1.6; }

  .scared__bg { top: 120px; width: 180vw; }
  .scared__title { font-size: 32px; margin-top: 40px; max-width: 310px; }
  .scared__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .scared__img--left, .scared__img--right { width: calc(100% - 28px); height: 240px; margin: 0 14px; justify-self: stretch; }
  .scared__img--right { order: 3; }
  .scared__img--left { height: 320px; object-position: 50% 30%; }
  .scared__text { margin-top: 0; font-size: 16px; line-height: 1.6; max-width: 320px; }
  .scared__lead { margin: 40px 0 0; font-size: 19px; line-height: 1.55; max-width: 300px; }

  .isyou { padding: 16px; }
  .isyou__inner { grid-template-columns: 1fr; gap: 16px; }
  .isyou__media { order: -1; min-height: 0; height: 234px; }
  /* Sit in the card corner beside the title, clear of faces and the photo. */
  .isyou__badge { left: auto; right: 8px; top: 252px; width: 96px; }
  .isyou__title { font-size: 30px; }
  .isyou__list { margin-top: 24px; gap: 12px; }
  .isyou__list li { min-height: 0; padding: 22px 24px 22px 34px; margin-left: -10px; margin-right: clamp(-52px, -3.5vw, -20px); }
  .isyou__list p { font-size: 16px; }
  .isyou__icon { display: none; }
  .isyou__cta .btn-pill { width: 100%; justify-content: center; text-align: center; }

  .cloud__title { font-size: 23px; max-width: 300px; }
  /* All six services as a compact wrapped cloud; the texture images only show on wider screens. */
  .cloud__rows { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 8px; }
  .cloud__row { display: contents; }
  .cloud__pill, .cloud__pill--tall, .cloud__pill--wide {
    min-height: 52px; padding: 10px 16px; font-size: 17px; width: auto; max-width: 100%;
    white-space: nowrap; text-align: center; justify-content: center; border-radius: 16px;
  }
  .cloud__img, .cloud__img--wide, .cloud__row:nth-child(3) .cloud__img { display: none; }

  .invest__eyebrow { font-size: 16px; max-width: 300px; margin-inline: auto; line-height: 1.45; }
  .invest__title { font-size: 25px; line-height: 1.25; margin-top: 8px; }
  .invest__panel { margin-inline: 16px; padding: 18px; }
  .invest__cards { grid-template-columns: 1fr; gap: 16px; }
  .invest__card { padding: 32px 20px 36px; }
  .invest__card h3 { font-size: 22px; }
  .invest__card .doodle { transform: scale(.66); margin-block: -20px; }
  .invest__card p { font-size: 16px; line-height: 1.6; }
  .stories__title { font-size: 34px; }
  .stories__eyebrow { font-size: 16px; }
  .faq__cta p { font-size: 16px; }

  .faq__grid { grid-template-columns: 1fr; gap: 32px; }
  .faq__head { display: flex; align-items: center; justify-content: space-between; padding: 0; }
  .faq__title { font-size: 30px; max-width: 6em; }
  .doodle--flower { width: 104px; margin: 0 8px 0 0; }
  .faq__item { grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 12px; }
  .faq__q { width: 48px; height: 48px; font-size: 20px; }
  .faq__item h3 { font-size: 19px; padding-top: 2px; }
  .faq__item p { font-size: 16px; }
}

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