/* ==========================================================================
   Página Grátis (materiais.php) · complementa assets/rd-mc.css, paleta B · Índigo
   Porte de mockups-mastercaption/pages/gratis.css (prévia aprovada).
   Fluxo: um botão "Baixar grátis" por material > janelinha com nome,
   e-mail e WhatsApp > "Pronto!" com o download daquele material.
   Nav e rodapé vêm do rd-mc.css (casca compartilhada): não estilize .nav*, .footer*, .socials aqui.
   ========================================================================== */

:root {
  --erro: #f59a9c;
  --erro-rgb: 245, 154, 156;
  --ok-rgb: 52, 211, 153;
}

/* ícones em sprite (contorno) */
.ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

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

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }

/* ---------- 1. HERO ---------- */
.g-hero {
  min-height: 0; height: 900px; padding: 0;
  background:
    radial-gradient(42% 58% at 76% 50%, rgba(var(--glow-rgb), .34), transparent 72%),
    radial-gradient(36% 40% at 8% 6%, rgba(var(--accent-rgb), .10), transparent 70%),
    var(--bg);
}
.g-hero__stage { position: relative; max-width: 1440px; height: 100%; margin: 0 auto; }
.g-hero__copy { position: absolute; z-index: 7; left: 110px; top: 146px; width: 600px; }
.g-hero__checks { justify-content: flex-start; margin-top: 22px; padding-left: 6px; }
.g-hero__copy .badge { margin-bottom: 20px; }
.g-hero__title { font-size: 68px; }
.g-hero__copy .lead { margin-top: 20px; max-width: 540px; }
/* a caixa do texto (600px, z 7) fica por cima dos cards flutuantes (z 6): a área vazia dela deixa o clique passar */
@media (min-width: 1241px) {
  .g-hero__copy { pointer-events: none; }
  .g-hero__copy .badge, .g-hero__copy .lead, .g-hero__cta, .g-hero__checks { pointer-events: auto; }
}

.g-hero__cta { margin-top: 30px; max-width: 470px; padding: 22px; border-radius: 26px; }
.g-hero__row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.g-stack { display: flex; flex: 0 0 auto; padding-left: 10px; }
.g-stack img {
  width: 44px; height: 59px; margin-left: -12px; border-radius: 9px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 18px rgba(0, 0, 0, .5);
}
.g-stack img:nth-child(1) { transform: rotate(-7deg); }
.g-stack img:nth-child(2) { transform: translateY(-3px); position: relative; z-index: 1; }
.g-stack img:nth-child(3) { transform: rotate(7deg); }
.g-hero__row b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.g-hero__row span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.g-hero__cta .btn .ico { width: 18px; height: 18px; }
.g-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.g-note .ico { width: 14px; height: 14px; color: var(--accent-text); }

/* o visual não cria camada própria: assim os cards (z 6) ficam acima do degradê da base (z 3) */
.g-hero__visual { position: absolute; right: 0; bottom: 0; width: 760px; height: 100%; }
.g-hero__visual::after {
  content: ''; position: absolute; z-index: 3; left: -760px; right: -40px; bottom: 0; height: 150px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 88%);
}
/* foto nova (v2): o Rai ocupa mais do quadro que na antiga, então ela entra menor (580 em vez de 640) e um pouco acima da base.
   A cintura e o ombro cortado na borda já somem em degradê no próprio WebP (máscara em CSS cortaria o brilho num retângulo). */
.g-hero__person {
  position: absolute; z-index: 2; right: 40px; bottom: 40px; width: 580px; height: auto; max-width: none;
  filter: drop-shadow(0 0 60px rgba(var(--glow-rgb), .45));
}
.nw { white-space: nowrap; }

/* cards flutuantes clicáveis (o .float do design system já flutua, pausa e cresce no hover) */
.g-float {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px 13px 13px; z-index: 6;
  font: inherit; color: var(--text); text-align: left; cursor: pointer;
}
.g-float .mini-cover { width: 54px; height: 72px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-2); box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.g-float__txt b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; }
.g-float__txt .badge { margin-top: 7px; font-size: 11px; padding: 4px 9px; }
.g-float__go {
  width: 32px; height: 32px; margin-left: 6px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(var(--accent-text-rgb), .28);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.g-float__go .ico { width: 15px; height: 15px; }
.g-float:focus-visible .g-float__go { background: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(var(--accent-rgb), .7); }
@media (hover: hover) and (pointer: fine) { .g-float:hover .g-float__go { background: var(--accent); color: #fff; box-shadow: 0 0 18px rgba(var(--accent-rgb), .7); } } /* no toque o :hover "gruda" depois do toque */
.g-float:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; animation-play-state: paused; scale: 1.06; }
.g-float--a { left: 52px; top: 246px; --rot: -3deg; }
.g-float--b { left: 20px; top: 636px; --rot: 2deg; } /* logo abaixo da mão que aponta (a foto nova tem a mão mais baixa) */
.g-float--c { left: 448px; top: 690px; }

/* ---------- 2. MATERIAIS ---------- */
/* a entrada 3D (rotateX) deixa os cards altos mais largos que a tela antes de aparecerem: corta só na horizontal, sem criar rolagem */
.g-mats-sec, .g-how { overflow-x: clip; }
.g-mats-sec { padding-top: 120px; }
.g-mats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.mat {
  display: flex; flex-direction: column; padding: 10px; border-radius: 30px;
  transition: transform .45s cubic-bezier(.2, .75, .25, 1), border-color .45s ease, box-shadow .45s ease;
}
/* com JS, o card também tem a entrada do design system ([data-reveal]), que é mais específica:
   aqui a transição junta as duas coisas (o gratis.js zera o --rd depois da entrada) */
.js .mat[data-reveal] {
  transition: opacity .6s ease var(--rd, 0ms), transform .5s cubic-bezier(.2, .75, .25, 1) var(--rd, 0ms), border-color .45s ease, box-shadow .45s ease;
}
.mat__stage {
  position: relative; aspect-ratio: 1 / .9; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 62%, rgba(var(--glow-rgb), .42), transparent 72%), linear-gradient(180deg, #0d0e1c, #07070f);
  border: 1px solid var(--line);
}
.mat__bg { position: absolute; inset: -15%; width: 130%; height: 130%; max-width: none; object-fit: cover; filter: blur(34px) saturate(1.1); opacity: .28; }
.mat__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 4, 9, .1), rgba(4, 4, 9, .55)); pointer-events: none; }
.mat__cover {
  position: absolute; z-index: 1; top: 9%; left: 0; right: 0; height: 82%; width: auto; max-width: none; margin: 0 auto;
  aspect-ratio: 700 / 938; border-radius: 14px; object-fit: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 70px rgba(var(--glow-rgb), .25);
  transition: transform .6s cubic-bezier(.2, .75, .25, 1);
}
.mat__stage .badge { position: absolute; z-index: 2; top: 16px; left: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mat__body { display: flex; flex-direction: column; flex: 1; padding: 22px 16px 14px; }
.mat__title { font-size: 25px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.mat__desc { margin: 10px 0 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (min-width: 901px) { .mat__desc { min-height: 4.8em; } }
.mat__meta { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.mat__meta li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; color: #c9c8d6; background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
}
.mat__meta .ico { width: 14px; height: 14px; color: var(--accent-text); }
.mat__btn { margin-top: auto; }
.mat__btn .ico { width: 18px; height: 18px; transition: transform .3s ease; }
@media (hover: hover) {
  .mat:hover, .js .mat[data-reveal].is-in:hover {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(var(--accent-text-rgb), .5);
    box-shadow: var(--glass-shadow), 0 0 0 1px rgba(var(--accent-text-rgb), .14), 0 34px 90px rgba(var(--glow-rgb), .28);
  }
  .js .mat[data-reveal].is-in:hover { transition-delay: 0s; }
  .mat:hover .mat__cover { transform: translateY(-6px) scale(1.04) rotate(-1.2deg); }
  .mat:hover .mat__btn { background: var(--accent-hover); }
  .mat:hover .mat__btn .ico { transform: translateY(2px); }
}
.g-mats__foot { display: flex; justify-content: center; margin-top: 34px; }

/* ---------- 3. COMO FUNCIONA ---------- */
.g-how { padding-top: 40px; }
.g-pills { display: flex; align-items: center; justify-content: center; gap: 14px; list-style: none; padding: 0; margin: 0 0 44px; }
.g-pills li { display: flex; align-items: center; gap: 14px; }
.g-pills li + li::before { content: ''; width: 7px; height: 7px; border-top: 1.6px solid var(--dim); border-right: 1.6px solid var(--dim); transform: rotate(45deg); margin-left: -4px; }
.g-pill {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 18px; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--font); color: #d8d7e3; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.g-pill b { color: var(--accent-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .g-pill:hover { background: rgba(255, 255, 255, .08); } }
.g-pill[aria-pressed="true"] { background: rgba(var(--accent-rgb), .34); border-color: rgba(var(--accent-text-rgb), .38); color: #fff; }
.g-pill[aria-pressed="true"] b { color: #fff; }

.g-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* o destaque do passo ativo gira sozinho a cada 3,2 s: o visual "aceso" fica pronto numa camada
   e só a opacidade dela anima (nada de repintar borda, fundo e sombra grandes) */
.g-step {
  position: relative; isolation: isolate; padding: 10px 10px 26px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
}
.g-step::before {
  content: ''; position: absolute; z-index: -1; inset: -1px; border-radius: 29px; pointer-events: none;
  border: 1px solid rgba(var(--accent-text-rgb), .42);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .13), rgba(var(--accent-rgb), .025));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 60px rgba(var(--glow-rgb), .14);
  opacity: 0; transition: opacity .45s ease;
}
.g-step.is-on::before { opacity: 1; }
.g-step__art {
  position: relative; height: 210px; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(70% 80% at 50% 100%, rgba(var(--glow-rgb), .26), transparent 70%), #08080f; border: 1px solid var(--line);
}
.g-step__n {
  position: relative; isolation: isolate;
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin: 24px 18px 16px; border-radius: 50%;
  font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(var(--accent-text-rgb), .3);
}
.g-step__n::after {
  content: ''; position: absolute; z-index: -1; inset: -1px; border-radius: 50%; pointer-events: none;
  background: var(--accent); box-shadow: 0 0 20px rgba(var(--accent-rgb), .7);
  opacity: 0; transition: opacity .4s ease;
}
.g-step.is-on .g-step__n { color: #fff; }
.g-step.is-on .g-step__n::after { opacity: 1; }
.g-step h3 { padding: 0 18px; }
.g-step p { padding: 0 18px; margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* arte 1: escolha */
.art-pick { display: flex; align-items: flex-end; gap: 14px; position: relative; padding-bottom: 20px; }
.art-pick figure { margin: 0; display: grid; justify-items: center; gap: 10px; opacity: .55; transition: opacity .4s ease, transform .4s ease; }
.art-pick img { width: 66px; height: 88px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); box-shadow: 0 12px 24px rgba(0, 0, 0, .5); }
.art-pick figcaption { height: 22px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; }
.art-pick figure.is-pick { opacity: 1; transform: translateY(-10px) scale(1.06); }
.art-pick figure.is-pick img { border-color: rgba(var(--accent-text-rgb), .7); box-shadow: 0 16px 30px rgba(0, 0, 0, .55), 0 0 30px rgba(var(--glow-rgb), .6); }
.art-pick figure.is-pick figcaption { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .55); }
.art-pick .cursor { position: absolute; left: calc(50% + 22px); bottom: 2px; width: 26px; height: 26px; }

/* arte 2: dados */
.art-form { width: 78%; display: grid; gap: 8px; }
.art-form span {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 12px; border-radius: 10px;
  font-size: 12px; color: #d9d8e4; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-2);
}
.art-form span .ico { width: 13px; height: 13px; color: var(--accent-text); }
.art-form span.is-focus { border-color: rgba(var(--accent-text-rgb), .8); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
.art-form span.is-focus::after { content: ''; width: 1.5px; height: 14px; margin-left: -6px; background: var(--accent-text); animation: caret 1s steps(1) infinite; }
.art-form em { font-style: normal; height: 34px; border-radius: 999px; display: grid; place-items: center; margin-top: 2px; font-size: 12px; font-weight: 650; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(var(--accent-rgb), .45); }
@keyframes caret { 50% { opacity: 0; } }

/* arte 3: baixe */
.art-get { width: 80%; display: grid; gap: 12px; }
.art-get__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(var(--accent-rgb), .5); }
.art-get__btn .ico { width: 15px; height: 15px; }
.art-get__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.art-get__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--slider-end)); transform-origin: left; transform: scaleX(.72); }
.art-get__mail { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(20, 19, 30, .9); border: 1px solid var(--line-2); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.art-get__mail > .ico { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); }
.art-get__mail b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.art-get__mail small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }

/* ---------- 4. CTA CURSO ---------- */
.g-cta-sec { padding-top: 40px; }
.g-cta { padding-top: 64px; }
.g-cta .glow { left: 50%; top: -160px; width: 760px; height: 420px; margin-left: -380px; }
.g-cta > *:not(.glow):not(.g-cta__tl) { position: relative; z-index: 2; }
.g-cta .lead { margin: 20px auto 0; }
.g-cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.g-cta__btns .ico { width: 17px; height: 17px; }
.g-cta__tl {
  position: relative; z-index: 1; margin: 0 -32px 54px; opacity: .85; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.g-cta__tl .timeline { justify-content: center; }

@media (min-width: 761px) { .g-cta-sec { padding-bottom: 112px; } }

/* ==========================================================================
   JANELINHA (modal de vidro)
   ========================================================================== */
.gm {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.gm.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.gm__backdrop { position: absolute; inset: 0; background: rgba(3, 3, 8, .72); backdrop-filter: blur(10px) saturate(120%); -webkit-backdrop-filter: blur(10px) saturate(120%); }
.gm__panel {
  position: relative; width: min(480px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  padding: 30px 30px 26px; border-radius: 30px;
  background: var(--glass-fill), rgba(17, 17, 28, .9);
  border: 1px solid rgba(var(--accent-text-rgb), .2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset, inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 90px rgba(var(--glow-rgb), .22);
  transform: translateY(18px) scale(.97); transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  scrollbar-width: none;
}
.gm__panel::-webkit-scrollbar { display: none; }
.gm.is-open .gm__panel { transform: none; }
.gm__panel::before {
  content: ''; position: absolute; left: 50%; top: -120px; width: 420px; height: 260px; margin-left: -210px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow-rgb), .4), transparent); filter: blur(20px);
}
.gm__panel > * { position: relative; }
.gm__panel > .sr-only { position: absolute; }
.gm__grab { display: none; }
.gm__x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); transition: background .2s ease, color .2s ease;
}
.gm__x:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.gm__x .ico { width: 16px; height: 16px; }

.gm__item { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.gm__capa {
  width: 62px; height: 83px; flex: 0 0 auto; border-radius: 11px; object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 14px 30px rgba(0, 0, 0, .55), 0 0 30px rgba(var(--glow-rgb), .35);
}
.gm__kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.gm__nome { font-size: 23px; font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.gm__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.gm__tags .badge { font-size: 11px; padding: 4px 9px; }
.gm__size { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.gm__size .ico { width: 13px; height: 13px; color: var(--accent-text); }
.gm__lead { margin: 22px 0 0; font-size: 15px; color: #c9c8d6; line-height: 1.55; }
.gm__lembrei {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 16px 0 0; padding: 11px 14px; border-radius: 14px;
  font-size: 13px; color: #cfeee2; background: rgba(var(--ok-rgb), .08); border: 1px solid rgba(var(--ok-rgb), .22);
}
.gm__lembrei .ico { width: 15px; height: 15px; color: var(--mint); }
.gm__lembrei button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent-text); font: 600 13px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gm__lembrei[hidden] { display: none; }

.gm__form { display: grid; gap: 14px; margin-top: 20px; }
.gm__form .field label { margin-bottom: 7px; color: #b7b6c6; }
.g-input { position: relative; }
.g-input .ico { position: absolute; left: 17px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--dim); pointer-events: none; transition: color .2s ease; }
.g-input .input { padding-left: 46px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.g-input .input:focus { background: rgba(255, 255, 255, .06); }
.g-input:focus-within .ico { color: var(--accent-text); }
.g-input .input[aria-invalid="true"] { border-color: rgba(var(--erro-rgb), .8); box-shadow: 0 0 0 4px rgba(var(--erro-rgb), .12); }
.g-input .input[aria-invalid="true"] ~ .ico, .g-input:has(.input[aria-invalid="true"]) .ico { color: var(--erro); }
.g-erro { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; font-size: 12.5px; color: var(--erro); }
.g-erro[hidden] { display: none; }
.gm__enviar { margin-top: 6px; position: relative; }
.gm__enviar .ico { width: 18px; height: 18px; }
.gm__enviar .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.gm__enviar.is-loading { pointer-events: none; opacity: .9; }
.gm__enviar.is-loading .spin { display: block; }
.gm__enviar.is-loading .ico { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.gm__priv { display: flex; gap: 9px; margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gm__priv .ico { width: 14px; height: 14px; margin-top: 2px; color: var(--accent-text); }
/* erro devolvido pelo servidor (sessão expirada, material indisponível, conexão): não tem na prévia */
.gm__erro {
  display: flex; align-items: flex-start; gap: 9px; margin: 0; padding: 11px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.5; color: #f8d6d7; background: rgba(var(--erro-rgb), .08); border: 1px solid rgba(var(--erro-rgb), .28);
}
.gm__erro .ico { width: 15px; height: 15px; margin-top: 2px; color: var(--erro); }
.gm__erro[hidden] { display: none; }

/* estado "Pronto!" */
.gm__done { text-align: center; padding-top: 6px; }
.gm__ok {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--mint);
  background: radial-gradient(circle at 50% 35%, rgba(var(--ok-rgb), .28), rgba(var(--ok-rgb), .08));
  border: 1px solid rgba(var(--ok-rgb), .45); box-shadow: 0 0 0 8px rgba(var(--ok-rgb), .06), 0 0 50px rgba(var(--ok-rgb), .35);
}
.gm__ok .ico { width: 32px; height: 32px; stroke-width: 2.4; }
.gm.is-open .gm__done:not([hidden]) .gm__ok { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.gm__done h2 { font-size: 40px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.gm__sub { margin: 10px 0 0; color: #c9c8d6; font-size: 15.5px; }
.gm__sub b { color: var(--text); font-weight: 600; }
.gm__file {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; padding: 12px; border-radius: 18px; text-align: left;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
}
.gm__file img { width: 46px; height: 62px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-2); }
.gm__file b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.gm__file > div > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.gm__file > div > span .ico { width: 13px; height: 13px; color: var(--accent-text); }
.gm__file .badge { margin-left: auto; font-size: 11px; padding: 4px 9px; }
.gm__baixar { height: 64px; font-size: 17px; box-shadow: 0 14px 44px rgba(var(--accent-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .22); }
.gm__baixar .ico { width: 20px; height: 20px; }
.gm__baixar small { font-size: 13px; font-weight: 500; opacity: .75; }
.gm__warn {
  display: none; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; text-align: left;
  font-size: 13.5px; line-height: 1.5; color: #f3e2c2; background: rgba(245, 190, 90, .08); border: 1px solid rgba(245, 190, 90, .25);
}
.gm__warn .ico { width: 18px; height: 18px; margin-top: 1px; color: #f5c46a; }
.gm__mail { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 16px 0 0; font-size: 13.5px; color: var(--muted); }
.gm__mail .ico { width: 16px; height: 16px; color: var(--accent-text); }
.gm__mais { margin: 22px -30px -26px; padding: 16px 24px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; background: rgba(0, 0, 0, .18); border-radius: 0 0 30px 30px; }
.gm__mais p { margin: 0; }
.gm__mais p + p { margin-top: 6px; }
.gm__mais button, .gm__mais a { padding: 0; border: 0; background: none; font: 500 13px var(--font); color: #c6c5d4; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 3px; }
.gm__mais button:hover, .gm__mais a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
.gm__mais i { font-style: normal; margin: 0 7px; opacity: .6; }

html.gm-lock { overflow: hidden; }
.is-shot.gm-lock { overflow: visible; }
.is-shot .gm, .is-shot .gm__panel { transition: none; }
/* no print de página inteira, o escurecido cobre a página toda (no navegador ele já cobre a tela toda) */
.is-shot .gm__backdrop { bottom: auto; height: 20000px; }

/* ---------- Responsivo ---------- */
/* entre 1241 e 1360 o hero ainda é em 2 colunas, com o visual um pouco menor */
@media (max-width: 1360px) and (min-width: 1241px) {
  .g-hero__copy { left: 64px; width: 540px; }
  .g-hero__title { font-size: 60px; }
  .g-hero__visual { transform: scale(.88); transform-origin: 100% 100%; }
}

/* até 1240 o hero vira uma coluna (texto em cima, Rai e os cards embaixo): antes disso os cards encostavam no texto */
@media (max-width: 1240px) {
  .g-hero { height: auto; padding: 128px 0 0; }
  .g-hero__stage { display: flex; flex-direction: column; }
  .g-hero__copy { position: relative; left: auto; top: auto; width: auto; max-width: 640px; padding: 0 var(--gutter); margin: 0 auto; text-align: center; }
  .g-hero__copy .lead { margin-left: auto; margin-right: auto; }
  .g-hero__cta { margin-left: auto; margin-right: auto; text-align: left; }
  .g-hero__checks { justify-content: center; padding-left: 0; }
  .g-hero__visual { position: relative; width: 760px; max-width: 100%; height: 860px; margin: 10px auto 0; }
}

@media (max-width: 1100px) {
  .g-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* materiais: 3 colunas até 901 (no iPad paisagem cabem ~309px cada); 2 colunas no iPad retrato,
   com o terceiro card centralizado na 2ª linha */
@media (max-width: 900px) and (min-width: 761px) {
  .g-mats { grid-template-columns: 1fr 1fr; }
  .g-mats > .mat:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 24px) / 2); }
}

/* toque (celular e iPad): links de texto da janelinha com pelo menos 44px de altura
   (os da nav e do rodapé já vêm do rd-mc.css) */
@media (max-width: 760px), (pointer: coarse) {
  .gm__mais { padding-top: 6px; padding-bottom: 8px; }
  .gm__mais p + p { margin-top: 0; }
  .gm__mais button, .gm__mais a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .gm__mais i { margin: 0 3px; }
  .gm__lembrei button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -14px 0 -14px auto; }
}

@media (max-width: 760px) {
  .g-hero { padding-top: 104px; }
  .g-hero__copy .badge { margin-bottom: 16px; }
  .g-hero__title { font-size: min(42px, 10.6vw); letter-spacing: -.055em; } /* em 360 o "Ferramentas grátis" quebrava e o título ia pra 3 linhas */
  .g-hero__copy .lead { font-size: 16px; margin-top: 16px; }
  .g-hero__cta { margin-top: 24px; padding: 18px; border-radius: 22px; }
  .g-hero__row { gap: 14px; margin-bottom: 16px; }
  .g-hero__row b { font-size: 15px; }
  .g-hero__row span { font-size: 13px; }
  .g-stack img { width: 38px; height: 51px; }
  .g-hero__visual { width: 100%; height: 480px; margin-top: 4px; }
  .g-hero__visual::after { height: 110px; }
  .g-hero__person { width: 340px; right: -20px; bottom: 0; } /* rosto inteiro dentro da tela; o corte do ombro fica fora */
  .g-float { gap: 9px; padding: 8px 10px 8px 8px; border-radius: 14px; }
  .g-float .mini-cover { width: 36px; height: 48px; border-radius: 7px; }
  .g-float__txt b { font-size: 12.5px; }
  .g-float__txt .badge { margin-top: 4px; font-size: 11px; padding: 3px 8px; }
  .g-float__go { width: 24px; height: 24px; margin-left: 0; }
  .g-float__go .ico { width: 12px; height: 12px; }
  .g-float--a { left: 12px; top: 26px; }
  .g-float--b { left: 6px; top: 180px; }
  .g-float--c { left: auto; right: 12px; top: auto; bottom: 56px; }

  .g-mats-sec { padding-top: 72px; }
  .g-mats { grid-template-columns: 1fr; gap: 18px; }
  .mat { border-radius: 26px; }
  .mat__stage { aspect-ratio: 1 / .78; border-radius: 19px; }
  .mat__body { padding: 20px 12px 10px; }
  .mat__title { font-size: 23px; }

  .g-pills { gap: 8px; margin-bottom: 28px; }
  .g-pills li { gap: 8px; }
  .g-pills li + li::before { width: 6px; height: 6px; margin-left: -2px; }
  .g-pill { height: 44px; padding: 0 13px 0 12px; gap: 7px; font-size: 13px; }
  .g-step__art { height: 186px; }
  .g-step__n { margin-top: 20px; }

  .g-hero__checks { gap: 8px 18px; font-size: 12.5px; }
  .g-cta .lead { font-size: 15.5px; }
  .g-cta__tl { margin: 0 -20px 36px; }

  /* janelinha vira "folha" que sobe de baixo */
  .gm { place-items: end stretch; padding: 0; }
  .gm__panel {
    width: 100%; max-height: 94vh; max-height: 94dvh; padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0; border-bottom: 0; transform: translateY(100%);
  }
  .gm__grab { display: block; width: 40px; height: 4px; margin: -12px auto 14px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
  .gm__x { top: 14px; right: 14px; }
  .gm__nome { font-size: 21px; }
  .gm__capa { width: 56px; height: 75px; }
  .gm__done h2 { font-size: 36px; }
  .gm__mais { margin: 20px -20px calc(-22px - env(safe-area-inset-bottom)); padding: 6px 18px calc(8px + env(safe-area-inset-bottom)); border-radius: 0; }
  /* 16px evita o zoom automático do iPhone ao tocar no campo */
  .gm__form .input { font-size: 16px; }
  .gm__mail { justify-content: flex-start; align-items: flex-start; text-align: left; padding: 0 2px; }
  .gm__mail .ico { margin-top: 2px; }
  .gm__warn.is-pesado { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .gm, .gm__panel, .mat, .js .mat[data-reveal], .mat__cover, .g-step::before, .g-step__n::after, .g-pill { transition: none; }
  .gm.is-open .gm__done:not([hidden]) .gm__ok, .art-form span.is-focus::after { animation: none; }
  .mat:hover, .js .mat[data-reveal].is-in:hover, .mat:hover .mat__cover { transform: none; }
}
