/* Liga Aleitamento Brasil — Guia IBCLC
   Títulos: Open Sans (condensada, normal + itálico) · Texto: Montserrat */

:root {
  --ink: #120A21;
  --purple: #6F4FAC;
  --paper: #f4fbfb;
  --rose: #B2424C;
  --wine: #93114E;

  /* tons derivados da paleta */
  --lilac: #c6b6ec;
  --blush: #f4bcc2;
  --ink-soft: rgba(244, 251, 251, 0.76);
  --line: rgba(244, 251, 251, 0.13);

  --font-display: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 78%;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(95deg, var(--blush) 0%, var(--lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* evita cortar o itálico */
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--paper); color: var(--ink); font-weight: 600;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.9em;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--blush);
}
.eyebrow i { width: 1px; height: 1.1em; background: currentColor; opacity: 0.5; }

/* ---------- Botão ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 58px; padding: 0.7em 1.7em;
  border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--rose) 0%, var(--wine) 100%);
  color: #fff;
  font-family: var(--font-display); font-stretch: 84%; font-weight: 700;
  font-size: 1.0625rem; line-height: 1.15; letter-spacing: 0.045em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 16px 32px -14px rgba(147, 17, 78, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.btn svg { flex: none; width: 1.15em; height: 1.15em; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; filter: saturate(0.7) brightness(0.95); transform: none; }
.btn .spinner {
  display: none; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .spinner { display: block; }
.btn.is-loading svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Palco escuro (topo das duas páginas) ---------- */
.stage { position: relative; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 44% at 88% 2%, rgba(111, 79, 172, 0.62), transparent 72%),
    radial-gradient(48% 36% at -6% 46%, rgba(147, 17, 78, 0.5), transparent 72%),
    radial-gradient(46% 30% at 72% 100%, rgba(178, 66, 76, 0.24), transparent 72%);
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 8px; }
.topbar__logo { width: 132px; }
.topbar__tag {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.55em 1em; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(244, 251, 251, 0.05);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.topbar__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blush); }

/* =====================================================
   LANDING PAGE
   ===================================================== */
.hero {
  display: grid; gap: 36px;
  grid-template-areas: "intro" "book" "learn" "form";
  padding-block: 28px 64px;
}
.hero__intro { grid-area: intro; }
.hero__book { grid-area: book; }
.hero__learn { grid-area: learn; }
.hero__form { grid-area: form; scroll-margin-top: 20px; }

.hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 4.6vw + 1.3rem, 4.35rem); }
.hero h1 b { font-weight: 800; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.03rem, 0.5vw + 0.92rem, 1.19rem); color: var(--ink-soft); }

/* mockup do e-book */
.book { position: relative; width: min(100%, 470px); aspect-ratio: 47 / 34; margin-inline: auto; }
.book::before {
  content: ""; position: absolute; inset: 12% 4% 0; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 79, 172, 0.55), transparent);
  filter: blur(10px);
}
.book img {
  position: absolute; border-radius: 7px;
  box-shadow: 0 26px 46px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(244, 251, 251, 0.08);
}
.book__back { width: 39%; left: 57%; bottom: 9%; transform: rotate(11deg); filter: brightness(0.88); }
.book__mid { width: 41%; left: 37%; bottom: 8%; transform: rotate(4deg); filter: brightness(0.95); }
.book__cover { width: 46%; left: 7%; bottom: 3%; transform: rotate(-6deg); z-index: 2; }
.book__seal {
  position: absolute; z-index: 3; right: 1%; top: 0;
  display: grid; place-content: center; width: 88px; height: 88px; border-radius: 50%;
  background: linear-gradient(140deg, var(--rose), var(--wine)); color: #fff; text-align: center;
  font-family: var(--font-display); font-stretch: 80%; font-style: italic; font-weight: 700;
  font-size: 0.95rem; line-height: 1.05; transform: rotate(10deg);
  box-shadow: 0 14px 26px -10px rgba(147, 17, 78, 0.9), inset 0 0 0 3px rgba(255, 255, 255, 0.16);
}
.book__seal small { display: block; font-style: normal; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.9; }

/* o caminho (5 passos) */
.learn__title { font-size: clamp(1.5rem, 1.6vw + 1.05rem, 2.1rem); line-height: 1.12; max-width: 19em; }
.steps { list-style: none; margin: 26px 0 0; padding: 0; position: relative; display: grid; }
.steps::before {
  content: ""; position: absolute; left: 22px; top: 30px; bottom: 30px; width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--wine) 55%, var(--rose));
}
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: center; padding-block: 11px; }
.step__n {
  display: grid; place-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--purple);
  font-family: var(--font-display); font-stretch: 80%; font-style: italic; font-weight: 700; font-size: 1.05rem;
  color: var(--paper);
}
.step:nth-child(2) .step__n { border-color: #8040a0; }
.step:nth-child(3) .step__n { border-color: var(--wine); }
.step:nth-child(4) .step__n { border-color: #a32a4d; }
.step:nth-child(5) .step__n { border-color: var(--rose); }
.step p { font-size: 1.02rem; line-height: 1.5; font-weight: 500; }
.step p b { font-weight: 700; }

/* cartão do formulário */
.card {
  position: relative; padding: clamp(24px, 4vw, 34px);
  border-radius: 26px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -36px rgba(111, 79, 172, 0.9), 0 0 0 1px rgba(244, 251, 251, 0.3);
}
.card::before {
  content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 5px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--purple), var(--wine), var(--rose));
}
.card__title { font-size: clamp(1.65rem, 1.2vw + 1.3rem, 2rem); line-height: 1.08; color: var(--ink); }
.card__title em { background: linear-gradient(95deg, var(--wine), var(--purple)); -webkit-background-clip: text; background-clip: text; }
.card__sub { margin-top: 10px; font-size: 0.98rem; color: rgba(18, 10, 33, 0.74); }

.form { margin-top: 22px; display: grid; gap: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1.5px solid rgba(18, 10, 33, 0.2); border-radius: 12px; background: #fff;
  font: 500 1rem/1.2 var(--font-text); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: rgba(18, 10, 33, 0.42); font-weight: 400; }
.field input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(111, 79, 172, 0.2); }
.field.is-invalid input { border-color: var(--wine); box-shadow: 0 0 0 4px rgba(147, 17, 78, 0.12); }
.field__error { display: none; margin-top: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--wine); }
.field.is-invalid .field__error { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__alert {
  display: none; padding: 12px 14px; border-radius: 12px;
  background: rgba(147, 17, 78, 0.09); border: 1px solid rgba(147, 17, 78, 0.3);
  font-size: 0.9rem; font-weight: 500; color: var(--wine);
}
.form__alert.is-on { display: block; }
.form .btn { margin-top: 4px; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 0.5em; font-size: 0.875rem; font-weight: 500; color: rgba(18, 10, 33, 0.78); text-align: center; }
.form__note svg { flex: none; width: 1.05em; height: 1.05em; color: var(--purple); }
.form__legal { font-size: 0.72rem; line-height: 1.5; color: rgba(18, 10, 33, 0.6); text-align: center; }

/* ---------- Quem somos ---------- */
.about { background: var(--paper); color: var(--ink); padding-block: clamp(64px, 9vw, 120px); }
.about__grid { display: grid; gap: 44px; align-items: center; }
.about h2 { font-size: clamp(2.1rem, 3vw + 1.2rem, 3.4rem); color: var(--ink); }
.about h2 em { background: linear-gradient(95deg, var(--wine), var(--purple)); -webkit-background-clip: text; background-clip: text; }
.about__text p { margin-top: 20px; max-width: 33em; font-size: 1.06rem; color: rgba(18, 10, 33, 0.8); }
.about__text .about__punch {
  font-family: var(--font-display); font-stretch: 80%; font-style: italic; font-weight: 700;
  font-size: clamp(1.35rem, 1vw + 1.1rem, 1.7rem); line-height: 1.2; color: var(--wine);
}
.about__text .btn { margin-top: 28px; }

.cert {
  display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 12px 18px 12px 12px;
  width: fit-content; max-width: 100%;
  border: 1px solid rgba(111, 79, 172, 0.28); border-radius: 18px; background: #fff;
}
.cert img { width: 148px; flex: none; }
.cert span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.45; color: rgba(18, 10, 33, 0.7); }

.team { position: relative; margin: 0; padding-top: 6%; }
.team__panel {
  position: absolute; inset: 24% 0 0 0; border-radius: 30px; overflow: hidden;
  background: linear-gradient(150deg, var(--purple) 0%, var(--wine) 62%, var(--ink) 118%);
  box-shadow: 0 36px 60px -34px rgba(18, 10, 33, 0.75);
}
.team__panel::after {
  content: ""; position: absolute; right: -6%; top: -18%; width: 46%; aspect-ratio: 165 / 344;
  background: url("../img/marca-liga.png") center / contain no-repeat; opacity: 0.16; filter: grayscale(1) brightness(3);
}
.team__photo { position: relative; width: 100%; border-radius: 0 0 30px 30px; }
.team__since {
  position: absolute; left: -3%; bottom: -8%; z-index: 3;
  display: grid; place-content: center; width: clamp(84px, 17%, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper); text-align: center;
  font-family: var(--font-display); font-stretch: 78%; line-height: 1;
  box-shadow: 0 16px 30px -12px rgba(18, 10, 33, 0.7), inset 0 0 0 3px rgba(244, 251, 251, 0.1);
  transform: rotate(-8deg);
}
.team__since small { font-style: italic; font-weight: 600; font-size: 0.82rem; color: var(--blush); }
.team__since b { display: block; margin-top: 2px; font-weight: 800; font-size: clamp(1.45rem, 3.2vw, 1.9rem); }
.team__trophy {
  position: absolute; z-index: 3; right: -3%; bottom: -9%; width: 23%;
  transform: rotate(6deg); filter: drop-shadow(0 18px 20px rgba(18, 10, 33, 0.45));
}

/* ---------- Rodapé ---------- */
.footer { padding-block: 44px 110px; border-top: 1px solid var(--line); }
.footer__in { display: grid; gap: 22px; }
.footer img { width: 120px; }
.footer p { max-width: 62em; font-size: 0.78rem; line-height: 1.6; color: rgba(244, 251, 251, 0.6); }
.footer .footer__copy { color: rgba(244, 251, 251, 0.82); font-weight: 500; }

/* CTA fixo no celular */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(18, 10, 33, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { min-height: 52px; font-size: 1rem; }

/* animação de entrada */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =====================================================
   PÁGINA DE OBRIGADO
   ===================================================== */
.ty { display: grid; gap: 40px; align-items: center; padding-block: 30px 72px; }
.ty__ok {
  display: inline-flex; align-items: center; gap: 0.75em; padding: 0.5em 1.1em 0.5em 0.5em;
  border: 1px solid rgba(244, 188, 194, 0.4); border-radius: 999px; background: rgba(244, 188, 194, 0.08);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blush);
}
.ty__ok svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--wine)); color: #fff; }
.ty h1 { margin-top: 20px; font-size: clamp(2.4rem, 4.2vw + 1.25rem, 4.1rem); }
.ty .lead { max-width: 32em; }

.get {
  margin-top: 30px; padding: 22px; border-radius: 22px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(111, 79, 172, 0.3), rgba(147, 17, 78, 0.16));
  max-width: 520px;
}
.get__title { font-family: var(--font-display); font-stretch: 80%; font-style: italic; font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.get .btn { margin-top: 16px; }
.get__alt { display: block; margin-top: 14px; font-size: 0.86rem; color: var(--ink-soft); text-align: center; }
.get__alt a { color: var(--paper); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }

.ty__cover { position: relative; width: min(78%, 360px); margin-inline: auto; }
.ty__cover::before {
  content: ""; position: absolute; inset: -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 79, 172, 0.65), transparent);
}
.ty__cover img.c1 { position: relative; z-index: 2; border-radius: 10px; transform: rotate(-4deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(244, 251, 251, 0.1); }
.ty__cover img.c2 { position: absolute; z-index: 1; inset: 3% auto auto 16%; width: 92%; border-radius: 10px; transform: rotate(7deg); filter: brightness(0.9); box-shadow: 0 30px 50px -26px rgba(0, 0, 0, 0.8); }

.tip { background: var(--paper); color: var(--ink); padding-block: clamp(60px, 8vw, 104px); }
.tip__grid { display: grid; gap: 40px; align-items: center; }
.tip__photo { position: relative; margin: 0 auto; width: min(100%, 420px); }
.tip__photo::before {
  content: ""; position: absolute; inset: 14% 4% 0 4%; border-radius: 999px 999px 30px 30px;
  background: linear-gradient(165deg, var(--purple), var(--wine) 68%, var(--ink) 125%);
  box-shadow: 0 34px 56px -32px rgba(18, 10, 33, 0.7);
}
.tip__photo img { position: relative; width: 88%; margin-inline: auto; }
.tip__label { display: inline-flex; align-items: center; gap: 0.7em; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--wine); }
.tip__label::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--wine)); }
.tip__quote {
  margin-top: 16px; font-family: var(--font-display); font-stretch: 80%; font-style: italic; font-weight: 600;
  font-size: clamp(1.45rem, 1.5vw + 1.05rem, 2.05rem); line-height: 1.24; color: var(--ink); text-wrap: balance;
}
.tip__more { margin-top: 20px; max-width: 31em; font-size: 1.08rem; font-weight: 500; color: rgba(18, 10, 33, 0.82); }
.sign { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.sign img { width: 30px; }
.sign p { font-size: 1rem; line-height: 1.35; color: rgba(18, 10, 33, 0.78); }
.sign b { display: block; font-family: var(--font-display); font-stretch: 80%; font-size: 1.25rem; color: var(--ink); }

.footer--ty { padding-bottom: 44px; }

/* =====================================================
   Telas maiores
   ===================================================== */
@media (min-width: 700px) {
  .topbar__logo { width: 150px; }
  .tip__grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .sticky-cta .btn { max-width: 420px; margin-inline: auto; display: flex; }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 448px);
    grid-template-areas: "intro form" "book form" "learn learn";
    column-gap: clamp(40px, 6vw, 84px); row-gap: 8px;
    padding-block: 34px 88px;
  }
  .hero__intro { padding-top: 22px; }
  .hero__form { align-self: start; }
  .hero__book { align-self: end; }
  .book { margin: 22px 0 0 -8px; width: min(100%, 500px); }
  .hero__learn { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }

  /* escada: cada passo sobe um degrau */
  .steps { grid-template-columns: repeat(5, 1fr); align-items: end; gap: 14px; margin-top: 40px; }
  .steps::before { display: none; }
  .step {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    min-height: calc(168px + var(--i) * 40px); padding: 22px 20px 24px;
    border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(111, 79, 172, 0.42), rgba(111, 79, 172, 0.05));
  }
  .step:nth-child(2) { background: linear-gradient(180deg, rgba(128, 64, 160, 0.44), rgba(128, 64, 160, 0.05)); }
  .step:nth-child(3) { background: linear-gradient(180deg, rgba(147, 17, 78, 0.5), rgba(147, 17, 78, 0.05)); }
  .step:nth-child(4) { background: linear-gradient(180deg, rgba(163, 42, 77, 0.52), rgba(163, 42, 77, 0.05)); }
  .step:nth-child(5) { background: linear-gradient(180deg, rgba(178, 66, 76, 0.56), rgba(178, 66, 76, 0.06)); }
  .step__n { width: auto; height: auto; border: 0; background: none; font-size: 2.3rem; line-height: 1; color: var(--blush); }
  .step p { font-size: 0.98rem; }
  .steps__base { display: block; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--purple), var(--wine), var(--rose)); }

  .about__grid { grid-template-columns: 1.08fr 0.92fr; gap: clamp(48px, 6vw, 88px); }
  .footer { padding-bottom: 44px; }
  .footer__in { grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
  .sticky-cta { display: none; }

  .ty { grid-template-columns: 1.15fr 0.85fr; gap: 56px; padding-block: 44px 100px; }
  .ty__cover { width: min(100%, 380px); }
}
.steps__base { display: none; }
@media (min-width: 1000px) { .steps__base { display: block; } }

@media (max-width: 430px) {
  .btn { font-size: 1rem; font-stretch: 78%; letter-spacing: 0.03em; padding-inline: 1em; gap: 0.5em; }
  .hero .hero__intro .eyebrow { flex-direction: column; align-items: flex-start; gap: 0.35em; }
  .hero .hero__intro .eyebrow i { display: none; }
  .hero .hero__intro .eyebrow span + i + span { color: rgba(244, 251, 251, 0.72); }
  .eyebrow--card { font-size: 0.69rem; letter-spacing: 0.12em; }
  .book__seal { width: 78px; height: 78px; font-size: 0.86rem; }
  .ty__ok { font-size: 0.66rem; letter-spacing: 0.09em; gap: 0.65em; padding-right: 0.9em; }
  .tip__label { font-size: 0.68rem; letter-spacing: 0.1em; gap: 0.6em; }
  .tip__label::before { width: 22px; }
}
