/* =========================================================
   BNE Medicina | Revisão 2ª fase (MMEs)
   Direção: pôster dos posts da BNE Medicina. Gradiente verde-claro
   sobre fotos dos hospitais em duotom, granulado leve, tipografia
   grande em verde-escuro. Verde-escuro como faixa de contraste.
   ========================================================= */

/* Fonte oficial: Guaruja. Ao subir os arquivos em /fonts, acrescente
   url("fonts/Guaruja-*.woff2") format("woff2") em cada src abaixo. */
@font-face { font-family: "Guaruja"; src: local("Guaruja Grotesk"), local("Guaruja"), local("Guaruja-Regular"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Guaruja"; src: local("Guaruja Grotesk Medium"), local("Guaruja-Medium"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Guaruja"; src: local("Guaruja Grotesk Bold"), local("Guaruja-Bold"); font-weight: 700 800; font-display: swap; }

:root {
  /* Paleta oficial */
  --verde-escuro: #002B0F;
  --verde-medio:  #9FB73B;
  --verde-claro:  #B1CD5C;

  /* Tons derivados da paleta (sem verde-água, a pedido) */
  --lima-luz:   #DCEDB4;
  --lima-palida:#EAF3D2;
  --papel:      #F4F8EA;
  --escuro-2:   #0A3A1B;
  --tinta:      #002B0F;
  --tinta-2:    #2F5136;
  --claro-txt:  #EEF6E2;
  --claro-txt-2:#BFD3B8;
  --erro:       #B3261E;
  --erro-claro: #FFB4A9;

  --font: "Guaruja", "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.125rem;
  --fs-md: 1.375rem;
  --fs-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-xl: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --fs-poster: clamp(3rem, 1rem + 6.4vw, 7.25rem);

  --wrap: 1240px;
  --r-pill: 999px;
  --r-card: 22px;

  --grad-post: linear-gradient(180deg, var(--lima-luz) 0%, #C4DD7E 42%, var(--verde-claro) 70%, var(--verde-medio) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 4vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 4vw);
}
@media (min-width: 1240px) { .wrap { padding-left: 40px; padding-right: 40px; } }

:focus-visible { outline: 3px solid var(--verde-escuro); outline-offset: 3px; border-radius: 6px; }
.sec--dark :focus-visible, .footer :focus-visible { outline-color: var(--verde-claro); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--verde-escuro); color: var(--verde-claro);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Granulado leve (pedido do guia) ---------- */
.grain { position: relative; isolation: isolate; }
.grain::after, .hero::after, .final::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 12px 0 28px;
  border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 600 var(--fs-base)/1 var(--font); text-decoration: none;
  transition: background-color .2s, transform .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn__arrow { width: 46px; height: 24px; padding: 4px 6px; border-radius: var(--r-pill); background: var(--verde-escuro); flex: none; }
.btn--primary { background: var(--verde-claro); color: var(--verde-escuro); }
.btn--primary:hover { background: #C2DA72; }
.btn--dark { background: var(--verde-escuro); color: var(--verde-claro); }
.btn--dark:hover { background: var(--escuro-2); }
.btn--dark .btn__arrow { background: var(--verde-claro); }
.btn--ghost { background: transparent; color: var(--claro-txt); box-shadow: inset 0 0 0 1.5px var(--verde-claro); padding: 0 22px; }
.btn--ghost:hover { background: rgba(177, 205, 92, .14); }
.btn--outline-dark { background: transparent; color: var(--verde-escuro); box-shadow: inset 0 0 0 1.5px var(--verde-escuro); padding: 0 24px; }
.btn--outline-dark:hover { background: rgba(0, 43, 15, .08); }
.btn--sm { min-height: 44px; font-size: var(--fs-sm); padding: 0 20px; }
.btn--block { width: 100%; justify-content: space-between; font-size: 1.05rem; padding-left: 22px; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Topo ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--lima-luz);
}
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(220, 237, 180, .84);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 43, 15, .12);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--verde-escuro); text-decoration: none; }
.brand img { width: 112px; height: auto; }
.brand__sub { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--tinta-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--verde-escuro); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Fundo fotográfico em gradiente (hero e final) ---------- */
.hero, .final { position: relative; isolation: isolate; overflow: hidden; background: var(--grad-post); }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  display: grid; grid-template-columns: 1.15fr 1fr 1fr;
}
.hero__ph {
  width: 130%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .5; margin-left: -15%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.hero__ph--1 { margin-left: 0; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }
.hero__ph--2 { opacity: .42; }
.hero__ph--3 { opacity: .55; }
.hero::before, .final::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(220, 237, 180, .92) 0%, rgba(220, 237, 180, .35) 38%, rgba(177, 205, 92, .15) 70%, rgba(159, 183, 59, .45) 100%),
    linear-gradient(90deg, rgba(220, 237, 180, .55) 0%, rgba(220, 237, 180, 0) 55%);
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.hero__grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: start;
}
.hero__copy { min-width: 0; }

.poster {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
  color: var(--verde-escuro); margin-bottom: clamp(24px, 4vw, 40px);
}
.poster__w { font-size: var(--fs-poster); font-weight: 800; line-height: .84; letter-spacing: -0.015em; }
.poster__w--ein { grid-column: 1; grid-row: 1; }
.poster__motto { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; font-weight: 500; font-size: clamp(.95rem, .8rem + .4vw, 1.2rem); line-height: 1.1; }
.poster__w--sirio { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; margin-top: clamp(-40px, -2vw, -12px); }
.poster__w--bp { grid-column: 1; grid-row: 2; align-self: end; }

@media (prefers-reduced-motion: no-preference) {
  .poster__w { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
  .poster__w--sirio { animation-delay: .15s; }
  .poster__w--bp { animation-delay: .3s; }
  .poster__motto { animation: rise .9s .45s cubic-bezier(.2,.7,.1,1) both; }
}
@keyframes rise { from { transform: translateY(28px); opacity: .001; } to { transform: none; opacity: 1; } }

.tag {
  display: inline-block; font-size: var(--fs-sm); font-weight: 600;
  color: var(--verde-claro); background: var(--verde-escuro);
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.5rem); max-width: 24ch; letter-spacing: -0.025em; }
.lead { margin-top: 16px; font-size: var(--fs-md); line-height: 1.45; color: var(--tinta-2); max-width: 44ch; }

.dates { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.dates div { background: rgba(244, 248, 234, .72); border: 1.5px solid var(--verde-escuro); border-radius: 16px; padding: 12px 18px; min-width: 180px; }
.dates dt { font-size: var(--fs-sm); color: var(--tinta-2); }
.dates dd { margin: 2px 0 0; font-weight: 700; font-size: var(--fs-md); color: var(--verde-escuro); }
.countdown { display: block; margin-top: 4px; font-weight: 500; font-size: .85rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.countdown b { color: var(--verde-escuro); }

/* ---------- Formulário ---------- */
.formcard {
  background: var(--papel); color: var(--tinta);
  border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(0, 43, 15, .55);
  scroll-margin-top: 88px; min-width: 0;
}
.formcard__title { font-size: var(--fs-lg); }
.formcard__sub { margin-top: 8px; color: var(--tinta-2); font-size: 1rem; }
form { margin-top: 20px; }
.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.field input[type=text], .field input[type=tel], .field input[type=email] {
  width: 100%; height: 50px; padding: 0 16px;
  font: 400 1rem var(--font); color: var(--tinta);
  background: #fff; border: 1.5px solid #C9D6B5; border-radius: 12px;
}
.field input:focus { border-color: var(--verde-escuro); outline: none; box-shadow: 0 0 0 3px rgba(159, 183, 59, .45); }
.field input[aria-invalid=true] { border-color: var(--erro); }
.err { color: var(--erro); font-size: .85rem; margin-top: 4px; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; margin: 0 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1.5px solid #C9D6B5; background: #fff;
  font-weight: 500; font-size: .95rem; transition: background-color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--verde-escuro); border-color: var(--verde-escuro); color: var(--verde-claro); }
.chip input:focus-visible + span { outline: 3px solid var(--verde-medio); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--tinta-2); margin: 6px 0 4px; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--verde-escuro); }
.consent a { color: var(--tinta); font-weight: 600; }
form .btn--block { margin-top: 14px; }
.form-status { margin-top: 10px; font-size: .9rem; color: var(--tinta-2); }
.form-status.is-error { color: var(--erro); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- WhatsApp ---------- */
.wa-ico { width: 22px; height: 22px; flex: none; }
.wa-inline {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid #D5DFC2; color: var(--tinta-2); text-decoration: none; font-size: .92rem; line-height: 1.35;
}
.wa-inline .wa-ico { color: var(--verde-medio); }
.wa-inline strong { color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; }
.wa-inline:hover strong { color: var(--verde-medio); }
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: var(--r-pill);
  background: var(--verde-escuro); color: var(--verde-claro); text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 34px -12px rgba(0, 43, 15, .6);
  transition: transform .2s;
}
.wa-float .wa-ico { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
  .wa-float { animation: wa-in .5s 1.2s both, wa-pulse 2.4s 2s 2; }
}
@keyframes wa-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wa-pulse { 0%,100% { box-shadow: 0 14px 34px -12px rgba(0,43,15,.6), 0 0 0 0 rgba(159,183,59,0); } 50% { box-shadow: 0 14px 34px -12px rgba(0,43,15,.6), 0 0 0 10px rgba(159,183,59,.4); } }

.mbar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .mbar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(0, 43, 15, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transition: transform .25s;
  }
  .mbar.is-hidden { transform: translateY(110%); }
  .mbar__cta { flex: 1; min-height: 48px; }
  .mbar__wa { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--verde-claro); box-shadow: inset 0 0 0 1.5px var(--verde-claro); }
  .footer { padding-bottom: 96px; }
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ---------- Seções ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec h2 { font-size: var(--fs-lg); max-width: 22ch; }
.sec p + p { margin-top: 14px; }
.sec--light { background: var(--papel); color: var(--tinta); }
.sec--lime { background: var(--lima-palida); color: var(--tinta); }
.sec--light p, .sec--lime p { color: var(--tinta-2); max-width: 58ch; }
.sec--light strong, .sec--lime strong { color: var(--tinta); }
.sec--dark {
  color: var(--claro-txt);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(159, 183, 59, .35), rgba(159, 183, 59, 0) 70%),
    var(--verde-escuro);
}
.sec--grad { background: var(--grad-post); color: var(--tinta); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split > div > h2 + p { margin-top: 20px; }

/* Circuito */
.circuit__title { font-size: var(--fs-lg); color: var(--claro-txt); }
.rooms { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.rooms li {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1.5px solid rgba(177, 205, 92, .45); border-radius: 14px;
  padding: 14px 12px 12px; min-height: 96px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.rooms li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--verde-medio), var(--verde-claro));
  transform: scaleX(0); transform-origin: left;
}
.room__n { font-weight: 700; font-size: 1rem; }
.room__t { font-size: .8rem; color: var(--claro-txt-2); line-height: 1.3; }
.room__t > span { display: block; }
.room__t b { color: var(--verde-claro); font-weight: 700; }
.circuit__note { margin-top: 18px; max-width: 70ch; color: var(--claro-txt-2); font-size: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  .rooms li::before { animation: run 5.6s cubic-bezier(.6,0,.4,1) both; }
  .rooms li:nth-child(1)::before { animation-delay: .3s; }
  .rooms li:nth-child(2)::before { animation-delay: .9s; }
  .rooms li:nth-child(3)::before { animation-delay: 1.5s; }
  .rooms li:nth-child(4)::before { animation-delay: 2.1s; }
  .rooms li:nth-child(5)::before { animation-delay: 2.7s; }
  .rooms li:nth-child(6)::before { animation-delay: 3.3s; }
  .rooms li:nth-child(7)::before { animation-delay: 3.9s; }
  .rooms li:nth-child(8)::before { animation-delay: 4.5s; animation-name: run-last; animation-duration: 1.2s; }
  .rooms li:nth-child(8) .room__n, .rooms li:nth-child(8) .room__t, .rooms li:nth-child(8) .room__t b { animation: ink 1.2s 4.5s both; }
}
@keyframes run {
  0% { transform: scaleX(0); transform-origin: left; }
  10% { transform: scaleX(1); transform-origin: left; }
  11% { transform: scaleX(1); transform-origin: right; }
  21%, 100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes run-last { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ink { to { color: var(--verde-escuro); } }

/* Você aqui dentro */
.aqui__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.aqui__photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; max-width: 100%; }
.aqui__photo img { width: 100%; height: 100%; object-fit: cover; }
.aqui__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(220, 237, 180, 0) 55%, rgba(0, 43, 15, .55) 100%); }
.aqui__photo figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; color: var(--claro-txt); font-size: .9rem; font-weight: 500; }
.aqui__copy { min-width: 0; }
.aqui__copy h2 { font-size: var(--fs-xl); max-width: 14ch; letter-spacing: -0.035em; }
.aqui__copy > p { margin-top: 20px; }
.aqui__people { list-style: none; margin: 32px 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aqui__people li { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--lima-luz); }
.aqui__people li:nth-child(even) { transform: translateY(18px); }
.aqui__people img { width: 100%; height: 100%; object-fit: cover; }

/* Ranking */
.ranking { margin: 0; background: var(--verde-escuro); color: var(--claro-txt); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.ranking figcaption { font-size: .95rem; color: var(--claro-txt-2); margin-bottom: 14px; }
.ranking table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ranking th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--claro-txt-2); padding: 0 8px 10px; border-bottom: 1px solid rgba(177, 205, 92, .3); }
.ranking td { padding: 13px 8px; font-size: var(--fs-md); font-weight: 600; border-bottom: 1px solid rgba(177, 205, 92, .14); }
.ranking tr:last-child td { border-bottom: 0; }
.ranking .up { color: var(--verde-claro); }
.ranking .down { color: var(--erro-claro); }
.climb { margin: 4px 0 18px; }
.climb__track { position: relative; height: 14px; border-radius: var(--r-pill); background: rgba(177, 205, 92, .14); }
.climb__bar { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--verde-claro), var(--verde-medio)); transition: left .7s cubic-bezier(.3,.7,.2,1), width .7s cubic-bezier(.3,.7,.2,1); }
.climb__bar.is-down { background: linear-gradient(90deg, var(--erro-claro), #E07A6E); }
.climb__from, .climb__to { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; z-index: 2; transition: left .7s cubic-bezier(.3,.7,.2,1); }
.climb__from { background: var(--verde-escuro); box-shadow: inset 0 0 0 3px var(--claro-txt-2); }
.climb__to { background: var(--claro-txt); box-shadow: 0 0 0 4px rgba(177, 205, 92, .45); }
.climb__scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--claro-txt-2); margin-top: 6px; font-variant-numeric: tabular-nums; }
#ranking-rows tr { cursor: pointer; transition: background-color .15s; }
#ranking-rows tr:hover { background: rgba(177, 205, 92, .07); }
#ranking-rows tr[aria-selected=true] { background: rgba(177, 205, 92, .16); }
#ranking-rows tr:focus-visible { outline: 2px solid var(--verde-claro); outline-offset: -2px; }

/* Sala de treino */
.sala__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.sala__head h2 { font-size: var(--fs-xl); letter-spacing: -0.035em; }
.sala__head p { color: var(--claro-txt-2); max-width: 52ch; }
.sala { margin-top: 40px; display: grid; grid-template-columns: 280px minmax(0, 1fr); border: 1.5px solid rgba(177, 205, 92, .4); border-radius: 28px; overflow: hidden; background: rgba(0, 20, 7, .45); }
.sala__door { padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 28px; border-right: 1.5px solid rgba(177, 205, 92, .25); background: linear-gradient(180deg, rgba(159, 183, 59, .16), rgba(159, 183, 59, 0)); }
.timer { position: relative; width: 180px; height: 180px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__bg { fill: none; stroke: rgba(177, 205, 92, .18); stroke-width: 8; }
.timer__fg { fill: none; stroke: var(--verde-claro); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke .3s; }
.sala[data-state=talk] .timer__fg { stroke: var(--verde-medio); }
.timer__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.timer__time { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.timer__phase { font-size: .9rem; color: var(--claro-txt-2); margin-top: 6px; }
.phases { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.phases li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .95rem; color: var(--claro-txt-2); border: 1px solid rgba(177, 205, 92, .2); }
.phases li span { font-weight: 400; }
.phases li.is-on { background: var(--verde-claro); color: var(--verde-escuro); border-color: var(--verde-claro); }
.phases li.is-past { color: var(--verde-claro); }
.sala__card { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.sala__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sala__room { font-weight: 700; color: var(--verde-claro); }
.sala__comp { font-size: .85rem; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid rgba(177, 205, 92, .5); color: var(--claro-txt); }
.sala__scenario { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; font-weight: 500; max-width: 46ch; text-wrap: pretty; transition: filter .5s; }
.sala[data-state=idle] .sala__scenario { filter: blur(7px); user-select: none; }
.sala__guide, .sala__done { border-top: 1px solid rgba(177, 205, 92, .25); padding-top: 18px; }
.sala__guide-t { font-weight: 600; color: var(--verde-claro); margin-bottom: 10px; }
.sala__guide ul, .sala__skills { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sala__guide li { padding: 7px 14px; border-radius: var(--r-pill); background: rgba(177, 205, 92, .12); font-size: .95rem; }
.sala__guide li.is-now { background: var(--verde-claro); color: var(--verde-escuro); }
.sala__skills { margin-bottom: 12px; }
.sala__skills li { padding: 7px 14px; border-radius: var(--r-pill); background: var(--verde-claro); color: var(--verde-escuro); font-weight: 600; font-size: .95rem; }
.sala__done p:last-child { color: var(--claro-txt-2); max-width: 60ch; }
.sala__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sala__cta { align-self: flex-start; }

/* Abas */
.h-wide { max-width: none !important; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tabs button { font: 600 1rem var(--font); cursor: pointer; padding: 12px 20px; border-radius: var(--r-pill); background: transparent; color: var(--tinta); border: 1.5px solid var(--verde-escuro); transition: background-color .15s, color .15s; }
.tabs button:hover { background: rgba(159, 183, 59, .18); }
.tabs button[aria-selected=true] { background: var(--verde-escuro); color: var(--verde-claro); }
.panels { margin-top: 28px; min-height: 180px; }
.panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px 64px; align-items: start; }
.panel__big { font-size: var(--fs-lg); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--tinta) !important; max-width: 22ch !important; }
@media (prefers-reduced-motion: no-preference) { .panel:not([hidden]) { animation: panel-in .35s ease both; } }
@keyframes panel-in { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.proof {
  margin-top: 40px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  font-size: var(--fs-md); font-weight: 600; color: var(--verde-escuro) !important; max-width: none !important;
  background: var(--verde-claro); padding: 16px 24px; border-radius: 18px;
}
.proof__n { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

/* Agenda */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-top: 1.5px solid var(--verde-escuro); }
.agenda li:last-child { border-bottom: 1.5px solid var(--verde-escuro); }
.agenda time { font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); font-weight: 800; color: var(--verde-escuro); line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.agenda h3 { font-size: var(--fs-md); }
.agenda p { margin-top: 6px; color: var(--tinta-2); }
.sec--grad h2 { font-size: var(--fs-xl); letter-spacing: -0.035em; }

/* FAQ */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1.5px solid rgba(0, 43, 15, .25); }
.faq details:last-of-type { border-bottom: 1.5px solid rgba(0, 43, 15, .25); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: var(--fs-md); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2.5px solid var(--verde-escuro); border-bottom: 2.5px solid var(--verde-escuro); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 0 22px; color: var(--tinta-2); max-width: 66ch; }

/* Final */
.final { color: var(--verde-escuro); padding-block: clamp(80px, 11vw, 150px); }
.final__in { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.final h2 { font-size: var(--fs-poster); max-width: 12ch; line-height: .9; letter-spacing: -0.03em; font-weight: 800; }
.final__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.motto { font-size: var(--fs-md); font-weight: 600; color: var(--verde-escuro); }

/* Rodapé */
.footer { background: var(--verde-escuro); color: var(--claro-txt-2); padding-block: 40px; font-size: .9rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; }
.footer .brand { color: var(--claro-txt); }
.footer a, .linkbtn { color: var(--claro-txt); }
.linkbtn { background: none; border: 0; padding: 0; margin-left: 16px; font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn--light { color: var(--claro-txt-2); margin-left: 6px; }

/* Cookies */
.cookie {
  position: fixed; z-index: 50;
  left: calc(16px + env(safe-area-inset-left, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 520px; margin-right: auto;
  background: #fff; color: var(--tinta); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 20px 50px -20px rgba(0, 43, 15, .6);
  display: flex; flex-direction: column; gap: 14px; font-size: .95rem;
}
.cookie__btns { display: flex; gap: 8px; justify-content: flex-end; }
.cookie .btn--ghost { color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--verde-escuro); }

/* Página de obrigado / política */
.simple { min-height: 100vh; display: flex; flex-direction: column; }
.simple main { flex: 1; }
.thanks { padding-block: clamp(64px, 12vw, 160px); }
.thanks h1 { font-size: var(--fs-xl); max-width: 16ch; }
.thanks p { margin-top: 20px; font-size: var(--fs-md); color: var(--tinta-2); max-width: 40ch; }
.thanks .final__btns { margin-top: 32px; }
.motto--spaced { margin-top: 48px; }
.doc { background: var(--papel); padding-block: 64px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: var(--fs-lg); margin-bottom: 24px; }
.doc h2 { font-size: var(--fs-md); margin: 32px 0 10px; }
.doc p, .doc li { color: var(--tinta-2); }
.doc p + p { margin-top: 12px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1060px) { .nav { display: none; } }
@media (max-width: 960px) {
  .hero__grid, .split, .aqui__grid, .sala__head, .panel { grid-template-columns: 1fr; }
  .hero__bg { grid-template-columns: 1fr 1fr; }
  .hero__ph--3 { display: none; }
  .rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sala { grid-template-columns: 1fr; }
  .sala__door { border-right: 0; border-bottom: 1.5px solid rgba(177, 205, 92, .25); flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .phases { width: auto; flex: 1 1 200px; }
  .aqui__photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .topbar__in { height: 60px; gap: 12px; }
  .brand img { width: 92px; }
  .topbar .btn--sm { padding: 0 14px; }
  .poster__motto { font-size: .85rem; }
  .dates div { min-width: 0; flex: 1 1 140px; padding: 10px 14px; }
  .dates dd { font-size: 1.125rem; }
  .lead { font-size: 1.125rem; }
  .btn--block { font-size: 1rem; padding-left: 20px; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms li { min-height: 76px; }
  .aqui__people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aqui__people li:nth-child(even) { transform: none; }
  .ranking td { font-size: 1.125rem; }
  .agenda li { grid-template-columns: 1fr; gap: 6px; }
  .timer { width: 140px; height: 140px; }
  .timer__time { font-size: 2rem; }
  .sala__door { padding: 24px 16px; }
  .tabs button { flex: 1 1 100%; text-align: left; }
  .footer__in { flex-direction: column; align-items: flex-start; }
  .linkbtn { margin-left: 0; display: block; margin-top: 8px; }
}

/* ---------- Ajustes: logo bne_medicina, fotos únicas, fotos dos alunos ---------- */
.wordmark { display: inline-flex; align-items: flex-end; gap: 0; line-height: 1; }
.wordmark img { width: auto !important; height: 21px; }
.wordmark span { font-weight: 700; font-size: 25px; letter-spacing: -0.03em; line-height: .78; margin-left: 1px; }
.footer .wordmark span { color: #fff; }
@media (max-width: 560px) { .wordmark img { height: 18px; } .wordmark span { font-size: 21px; } }

.hero__bg--solo { display: block; }
.hero__solo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .68; }
.hero__solo--sirio { object-position: 100% 45%; }
.hero__solo--einstein { object-position: 70% 50%; opacity: .72; }
.hero::before {
  background:
    linear-gradient(180deg, rgba(220, 237, 180, .9) 0%, rgba(220, 237, 180, .3) 34%, rgba(177, 205, 92, .08) 70%, rgba(159, 183, 59, .4) 100%),
    linear-gradient(90deg, rgba(220, 237, 180, .7) 0%, rgba(220, 237, 180, .15) 52%, rgba(220, 237, 180, 0) 70%);
}
.final::before {
  background:
    linear-gradient(90deg, rgba(220, 237, 180, .92) 0%, rgba(220, 237, 180, .55) 45%, rgba(220, 237, 180, .05) 80%),
    linear-gradient(180deg, rgba(220, 237, 180, .3) 0%, rgba(159, 183, 59, .35) 100%);
}

.aqui__people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 40px; }
.aqui__people img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.aqui__people img:nth-child(2) { transform: translateY(20px); }
@media (max-width: 560px) { .aqui__people { grid-template-columns: 1fr; } .aqui__people img:nth-child(2) { transform: none; } }
.hero__solo--einstein {
  left: 38%; width: 62%; object-position: 88% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 35%); mask-image: linear-gradient(90deg, transparent 0%, #000 35%);
}
.final::before { background: linear-gradient(180deg, rgba(220, 237, 180, .25) 0%, rgba(159, 183, 59, .3) 100%); }
@media (max-width: 760px) {
  .hero__solo--einstein { left: 0; width: 100%; top: 45%; height: 55%; object-position: 80% 50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%); mask-image: linear-gradient(180deg, transparent 0%, #000 40%); }
}
.hero__solo--einstein { left: 46%; width: 54%; }
@media (max-width: 760px) {
  .final { padding-bottom: 280px; }
  .hero__solo--einstein { left: 0; width: 100%; top: auto; bottom: 0; height: 300px; object-position: 82% 55%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%); mask-image: linear-gradient(180deg, transparent 0%, #000 35%); }
  .hero__solo--sirio { object-position: 78% 20%; }
}

/* ---------- Cartão de contato pelo WhatsApp ---------- */
.wacard {
  background: var(--papel); color: var(--tinta);
  border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(0, 43, 15, .55);
  scroll-margin-top: 88px; min-width: 0;
}
.wacard__title { font-size: var(--fs-lg); }
.wacard__sub { margin-top: 8px; color: var(--tinta-2); font-size: 1rem; }
.btn--wa { background: var(--verde-escuro); color: var(--verde-claro); margin-top: 20px; justify-content: center !important; gap: 12px; padding: 0 24px; min-height: 60px; font-size: 1.125rem; }
.btn--wa:hover { background: var(--escuro-2); }
.btn--wa .wa-ico, .btn--dark .wa-ico { width: 26px; height: 26px; }
.wacard__num { margin-top: 10px; text-align: center; font-size: .95rem; color: var(--tinta-2); font-variant-numeric: tabular-nums; user-select: all; }
.wacard__num strong { color: var(--tinta); }
.wacard__day { margin-top: 24px; padding-top: 20px; border-top: 1px solid #D5DFC2; }
.wacard__day-t { font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.wacard__day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wacard__day li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.wacard__day b {
  display: grid; place-items: center; height: 48px; border-radius: 14px;
  background: var(--verde-claro); color: var(--verde-escuro); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
}
.wacard__day span { font-size: .95rem; line-height: 1.35; color: var(--tinta-2); }
.final .btn--dark { padding: 0 28px; }
.mbar__cta { gap: 10px; }
.mbar__cta .wa-ico { width: 22px; height: 22px; }
/* Página mais enxuta */
.sec { padding-block: clamp(56px, 7vw, 96px); }
:root { --fs-poster: clamp(2.8rem, 1rem + 5.6vw, 6.25rem); }
.hero { padding-block: clamp(24px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.final { padding-block: clamp(64px, 9vw, 112px); }
.panels { min-height: 0; }
/* Pôster: EINSTEIN em uma linha */
.poster { grid-template-areas: "ein ein" "motto sirio" "bp sirio"; grid-template-rows: auto auto 1fr; row-gap: 0; }
.poster__w--ein { grid-area: ein; white-space: nowrap; margin-bottom: clamp(8px, 1.4vw, 18px); }
.poster__motto { grid-area: motto; grid-column: auto; grid-row: auto; justify-self: start; text-align: left; align-self: start; margin-top: 6px; }
.poster__w--sirio { grid-area: sirio; grid-column: auto; grid-row: auto; margin-top: 0; }
.poster__w--bp { grid-area: bp; grid-column: auto; grid-row: auto; align-self: end; }
.wacard__day li { grid-template-columns: 40px 1fr; }
.wacard__day b { height: 40px; width: 40px; border-radius: 50%; }
.wacard__day b svg { width: 20px; height: 20px; }
.wacard__day span { color: var(--tinta); font-weight: 500; }

/* ---------- Relógio até a aula magna ---------- */
.clock {
  margin-top: 28px; display: inline-flex; flex-direction: column; gap: 12px;
  background: rgba(244, 248, 234, .78); border: 1.5px solid var(--verde-escuro); border-radius: 20px;
  padding: 16px 18px; max-width: 100%;
}
.clock__t, .clock__next { font-size: .95rem; color: var(--tinta-2); }
.clock__t strong, .clock__next strong { color: var(--verde-escuro); }
.clock__units { display: flex; gap: 8px; }
.clock__units span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 72px; padding: 10px 8px 8px; border-radius: 14px;
  background: var(--verde-escuro); color: var(--verde-claro);
}
.clock__units b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock__units i { font-style: normal; font-size: .75rem; color: var(--claro-txt-2); margin-top: 4px; }
@media (max-width: 560px) { .clock { display: flex; } .clock__units span { min-width: 0; flex: 1; } }

/* Datas das MMEs */
.mmedates { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mmedates li { display: inline-flex; align-items: baseline; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); border: 1.5px solid rgba(177, 205, 92, .5); }
.mmedates span { font-size: .9rem; color: var(--claro-txt-2); }
.mmedates b { color: var(--verde-claro); font-variant-numeric: tabular-nums; }
.mmedates__t { margin-top: 18px; font-size: .9rem; color: var(--claro-txt-2); }
.mmedates__t + .mmedates { margin-top: 8px; }
.aqui__people img:nth-child(2) { transform: none; }
.aqui__people { align-items: start; }

/* Mais respiro entre os nomes */
.poster { grid-template-areas: "ein ein" "motto sirio" "bp bp"; grid-template-rows: auto auto auto; }
.poster__w--ein { margin-bottom: clamp(20px, 3vw, 40px); }
.poster__w--bp { margin-top: clamp(20px, 3vw, 40px); align-self: start; }

/* Fotos dos alunos em linha inteira, maiores e nítidas */
.aqui__people { grid-column: 1 / -1; margin: clamp(8px, 2vw, 24px) 0 0; gap: 16px; grid-template-columns: 1fr 1fr; }
.aqui__people img { aspect-ratio: 4 / 3; border-radius: 22px; }
.aqui__people img:first-child { object-position: 50% 80%; }
@media (max-width: 560px) { .aqui__people { grid-template-columns: 1fr; } }

.aqui__copy > .btn { margin-top: 28px; }
