/* ==========================================================================
   Líder School Brasil — modernização visual
   Carregado depois de styles.css na home, em /online/ e em /plataforma/. Usa os mesmos
   tokens da marca (títulos em Plus Jakarta Sans 800, texto em DM Sans; navy, roxo, rosa
   e amarelo oficiais).
   ========================================================================== */

/* ---- Botões: degradê que desliza no hover -------------------------------- */
.btn-primary {
  background-image: linear-gradient(100deg, var(--ls-purple) 0%, var(--ls-red-pink-strong) 50%, var(--ls-purple) 100%);
  background-size: 220% 100%; background-position: 0 0;
  transition: background-position .5s var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease;
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(238, 54, 79, .35); }

/* ---- Cabeçalho da home: transparente sobre o hero, branco com blur ao rolar ---- */
.brand img { height: 44px; width: auto; }
.logo-w { display: none; }
body.home .site-header {
  position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color var(--dur-base) ease, box-shadow var(--dur-base) ease, border-color var(--dur-base) ease;
}
body.home .site-header.scrolled,
body.home .site-header.open {
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--color-border);
}
body.home .site-header:not(.scrolled):not(.open) .logo-c { display: none; }
body.home .site-header:not(.scrolled):not(.open) .logo-w { display: block; }
body.home .site-header:not(.scrolled):not(.open) .menu-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); }
body.home .site-header:not(.scrolled):not(.open) .menu-btn span { background: #fff; }
.nav a { white-space: nowrap; }
@media (min-width: 900px) {
  body.home .site-header:not(.scrolled):not(.open) .nav a:not(.btn) { color: #fff; }
  body.home .site-header:not(.scrolled):not(.open) .nav a:not(.btn):hover { color: var(--ls-yellow); }
  .nav { gap: 1.5rem; }
}
@media (min-width: 900px) and (max-width: 1100px) { .nav { gap: 1.1rem; } .nav a:not(.btn) { font-size: .95rem; } }

/* ---- Hero em tela cheia ---------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 90vh; min-height: 90svh; display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 2rem) clamp(2.5rem, 8vh, 5rem);
  background: var(--ls-gradient-hero);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-video { display: none; position: absolute; inset: 0; }
@media (min-width: 900px) { .hero-media img { transform: scale(1.18); transform-origin: 10% 35%; } }
@media (min-width: 900px) { .hero-video { display: block; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(31, 32, 72, .96) 0%, rgba(31, 32, 72, .72) 45%, rgba(31, 32, 72, .35) 100%);
}
@media (min-width: 900px) {
  .hero { align-items: center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(31, 32, 72, .94) 0%, rgba(31, 32, 72, .74) 42%, rgba(31, 32, 72, .2) 78%, transparent 100%),
      linear-gradient(0deg, rgba(31, 32, 72, .9) 0%, transparent 32%);
  }
}
.hero-content { position: relative; }
.hero h1 { font-size: clamp(2.6rem, min(6.4vw, 9.6vh), 5.2rem); line-height: 1.03; font-weight: 800; color: #fff; max-width: 17ch; letter-spacing: -.032em; }
.hero h1 em {
  font-style: normal; background: linear-gradient(100deg, #e9c717 0%, #ee7d32 38%, #ee364f 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 1.1rem; max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: #ecebf8; text-align: left; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ls-dark-navy); border-color: #fff; }

/* ---- Faixa de números --------------------------------------------------------- */
.stats { background: var(--ls-dark-navy); padding-block: clamp(2rem, 5vw, 3.25rem); border-top: 1px solid rgba(255, 255, 255, .08); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem 1rem; text-align: center; }
@media (min-width: 600px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stats-grid li { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 6.6vw, 5.6rem); letter-spacing: -.035em; line-height: .95; color: #fff; font-variant-numeric: tabular-nums; }
.stat-num.is-placeholder {
  font-family: var(--font-body); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.25rem); letter-spacing: .06em; color: var(--ls-yellow);
  border: 1.5px dashed rgba(233, 199, 23, .7); border-radius: var(--radius-pill); padding: .55rem 1.1rem;
}
.stats-grid span { color: var(--ls-on-navy); font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 500; max-width: 20ch; }

/* ---- Pilares com foto ------------------------------------------------------------ */
.pillar-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 600px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.pillar-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: .75rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: #d6c3f3; }
.pillar-card:target { border-color: var(--ls-purple); box-shadow: 0 0 0 3px rgba(132, 34, 225, .25), var(--shadow-card); }
.pillar-photo { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--ls-dark-navy), var(--ls-purple)); }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.pillar-card:hover .pillar-photo img { transform: scale(1.05); }
.pillar-body { padding: 1rem .6rem .8rem; }
.pillar-body h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; font-weight: 800; }
.pillar-body p { margin-top: .4rem; color: var(--color-text-muted); font-size: 1rem; line-height: 1.5; }

/* ---- Metodologia (escura) ---------------------------------------------------------- */
.how { position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; left: -10%; top: 0; bottom: 0; width: 22%; transform: skewX(-24deg); background: var(--ls-gradient-phoenix); opacity: .1; pointer-events: none; }
.how .wrap { position: relative; }
.how-head { max-width: 46rem; }
.how-steps { display: grid; gap: 1rem; margin-top: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .how-steps { grid-template-columns: repeat(4, 1fr); } }
.how-steps li {
  display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.3rem; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease-out), background-color .3s ease;
}
.how-steps li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.how-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--ls-dark-navy); background: var(--ls-yellow); }
.how-steps strong { font-family: var(--font-display); font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.2; font-weight: 800; color: #fff; }
.how-steps li > span:last-child { color: var(--ls-on-navy); font-size: var(--fs-sm); }
.how .section-cta { margin-top: 2rem; }

/* ---- Um dia na Líder School (carrossel) ---------------------------------------------- */
.day { --edge: max(var(--gutter), calc((100vw - var(--container)) / 2)); background: var(--ls-gradient-hero); color: #fff; overflow: hidden; }
.day h2 { color: #fff; }
.day .lead { color: var(--ls-on-navy); }
.day .eyebrow { color: var(--ls-yellow); }
.day-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.day-controls { display: none; gap: .6rem; }
@media (min-width: 900px) and (hover: hover) { .day-controls { display: flex; } }
.day-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.day-btn:hover:not(:disabled) { background: #fff; color: var(--ls-dark-navy); }
.day-btn:disabled { opacity: .35; cursor: default; }
.day-track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: 2rem var(--edge) 1rem; scroll-padding-inline: var(--edge); scrollbar-width: none;
}
.day-track::-webkit-scrollbar { display: none; }
.day-track:focus-visible { outline-color: var(--ls-yellow); outline-offset: -4px; }
.day-slide { position: relative; flex: 0 0 min(78vw, 300px); scroll-snap-align: start; margin: 0; }
@media (min-width: 900px) { .day-slide { flex-basis: 340px; } }
.day-slide::before { content: ""; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-md); background: rgba(255, 255, 255, .08); }
.day-slide img { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); }
.day-slide figcaption { margin-top: .8rem; font-weight: 700; font-size: 1.05rem; }

/* ---- Para os pais (2 colunas) ----------------------------------------------------------- */
.family-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .family-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); } }
.family-media { position: relative; padding-bottom: 3rem; }
.family-media::before { content: ""; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background: var(--ls-gradient-hero); }
.family-img-1 { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.family-img-2 {
  position: absolute; right: .5rem; bottom: 0; width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md);
  border: 6px solid #fff; box-shadow: var(--shadow-card);
}
.benefits { display: grid; gap: .7rem; }
.benefits li { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--ls-dark-navy); }
.benefits li::before {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat, var(--ls-gradient-phoenix);
}

/* ---- Depoimentos em vídeo (30 s, vertical): sem cortar as laterais, capa = mãe falando ---- */
.video-grid { display: flex; gap: 1rem; margin-top: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; }
.video-card { flex: 0 0 min(70vw, 280px); scroll-snap-align: start; margin: 0; }
@media (min-width: 700px) { .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; overflow: visible; } .video-card { width: min(100%, 300px); flex: none; } }
.video-card video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; background: var(--ls-dark-navy);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer;
}
.video-card figcaption { margin-top: .9rem; font-size: var(--fs-sm); font-weight: 700; line-height: 1.35; color: var(--ls-dark-navy); text-align: center; }
.video-card figcaption strong { display: block; font-size: 1.05rem; color: var(--ls-dark-navy); }
.video-card figcaption span { display: block; margin-top: .25rem; font-weight: 400; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---- Visão de futuro (escura, frase grande, foto de fundo) ------------------------------------ */
.legacy { position: relative; isolation: isolate; text-align: center; padding-block: clamp(5rem, 14vh, 9rem); background: var(--ls-dark-navy); }
.legacy-bg { position: absolute; inset: 0; z-index: -2; }
.legacy-bg img { width: 100%; height: 100%; object-fit: cover; }
.legacy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 32, 72, .9), rgba(31, 32, 72, .72) 50%, rgba(31, 32, 72, .92)); }
.legacy .lead { margin: 1.25rem auto 0; max-width: 46ch; color: var(--ls-on-navy); }

/* ---- FAQ e contato: ritmo claro/escuro ---------------------------------------------------------- */
.faq { background: #fff; }

/* ---- Barra fixa de contato no celular ----------------------------------------------------------------- */
.mobile-cta { display: none; }
@media (max-width: 899px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float);
    padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px rgba(31, 32, 72, .12);
    transition: transform var(--dur-base) var(--ease-out);
  }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta .btn { width: 100%; }
  body.home { padding-bottom: 76px; }
  .wa-float { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 599px) { .hero-cta .btn { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .day-track { scroll-behavior: auto; }
  .btn-primary, .pillar-card, .pillar-photo img, .how-steps li { transition: none; }
  .pillar-card:hover, .how-steps li:hover { transform: none; }
  .pillar-card:hover .pillar-photo img { transform: none; }
}

/* Imagens com proporção definida no CSS: o atributo height do HTML não pode sobrescrevê-la */
.day-slide img, .family-img-1 { height: auto; }

/* ==========================================================================
   Tipografia mais forte (referência: modelo do Figma enviado pelo Bruno)
   Plus Jakarta Sans 800 nos títulos e números, tamanhos fluidos maiores.
   Só tipografia: nenhuma cor foi alterada.
   ========================================================================== */
h1, h2, h3 { font-weight: 800; letter-spacing: -.028em; }
h1, h2 { word-spacing: .07em; }
.section h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.07; }
.section .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
/* Estas ficam depois de ".section h2" de propósito: mesma especificidade, vence a última. */
.legacy h2 { font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; max-width: 15ch; margin: 0 auto; color: #fff; }
.day h2, .family-text h2, .for-who h2 { font-weight: 800; }


/* ---- Cartão da frase "Seu filho não precisa decidir hoje…" com foto ---------------- */
.quote-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(360px, 42vw, 520px); }
.quote-card::after { display: none; }
.quote-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.quote-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(31, 32, 72, .96) 0%, rgba(31, 32, 72, .8) 36%, rgba(31, 32, 72, .12) 68%, transparent 100%);
}
.quote-card p { max-width: 30ch; padding-right: 0; font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; text-shadow: 0 2px 14px rgba(31, 32, 72, .6); }


/* ---- Do blog (home) ---------------------------------------------------------- */
.bt-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 760px) { .bt-grid { grid-template-columns: repeat(3, 1fr); } }
.bt-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ls-line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); transition: transform .3s var(--ease-out), box-shadow .3s ease; }
.bt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.bt-img { display: block; aspect-ratio: 1200 / 630; background: var(--ls-dark-navy); }
.bt-img img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.bt-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.3rem 1.5rem; }
.bt-body h3 { font-size: 1.2rem; line-height: 1.25; }
.bt-body h3 a:hover { color: var(--ls-purple); }
.bt-body p { color: var(--ls-ink-soft); font-size: 1rem; }
