/* ==========================================================
   UNJO STUDIO · site v3
   Cores: Nuvem #F8F9F1 · Céu #0C3279 · Grafite #1F2531
   Títulos: começo em grafite, final em azul (sem transparência); no fundo azul, off-white
   Fonte de apoio: Instrument Sans (embutida em fonts.css)
   ========================================================== */

:root {
  --nuvem: #F8F9F1;
  --ceu: #0C3279;
  --ceu-h: #0A2A66;
  --grafite: #1F2531;
  --g2: rgba(31, 37, 49, .66);
  --g3: rgba(31, 37, 49, .42);
  --fio: rgba(31, 37, 49, .13);
  --n2: rgba(248, 249, 241, .72);
  --n3: rgba(248, 249, 241, .45);
  --nfio: rgba(248, 249, 241, .18);
  --pad: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--nuvem); color: var(--grafite);
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ceu); color: var(--nuvem); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 'Instrument Sans', sans-serif;
  padding: 15px 22px; border-radius: 10px; white-space: nowrap;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.btn-p { background: var(--ceu); color: var(--nuvem); }
.btn-p:hover { background: var(--ceu-h); transform: translateY(-1px); }
.seta { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .seta { transform: translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; padding: 6px 0; color: var(--ceu); border-bottom: 1px solid rgba(12, 50, 121, .2); transition: border-color .25s; }
.link:hover { border-color: var(--ceu); }
.link:hover .seta { transform: translateY(2px); }

/* ---------- cabeçalho ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); color: var(--nuvem);
  border-bottom: 1px solid transparent;
  transition: background .4s, color .4s, border-color .4s;
}
.topo[data-tema=claro] {
  background: rgba(248, 249, 241, .8); color: var(--ceu); border-bottom-color: var(--fio);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.topo[data-tema=azul] {
  background: rgba(12, 50, 121, .78); border-bottom-color: var(--nfio);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.topo-logo { width: 134px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .45s, transform .45s var(--ease); }
.topo.com-logo .topo-logo { opacity: 1; transform: none; pointer-events: auto; }
.topo-logo svg { width: 100%; height: auto; fill: currentColor; }
.topo-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.topo-nav a:not(.btn) { opacity: .85; transition: opacity .2s; }
.topo-nav a:not(.btn):hover { opacity: 1; }
.topo .btn { padding: 11px 16px; font-size: 14px; }
.topo[data-tema=ceu] .btn-p, .topo[data-tema=azul] .btn-p { background: var(--nuvem); color: var(--ceu); }

/* ---------- títulos ---------- */
.ind { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ceu); }
.ind i { width: 32px; height: 1px; background: currentColor; opacity: .5; }
.titulo { margin: 0; font-weight: 700; font-size: clamp(38px, min(5.4vw, 9.6vh), 88px); line-height: .98; letter-spacing: -.045em; color: var(--grafite); text-wrap: balance; }
.titulo span { display: block; color: var(--ceu); }
.titulo span.inl { display: inline; }
.depo-cab.sec-cab { max-width: none; }
.frase { display: inline-block; }   /* frase inteira pula de linha junto (não quebra no meio se couber sozinha) */   /* título que cabe numa linha só (ex.: depoimentos) */
p, li, blockquote, figcaption { text-wrap: pretty; }
.lead { margin-top: 26px; max-width: 33em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; color: var(--g2); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 38px; }
.sec-cab { max-width: 940px; margin-bottom: clamp(44px, 7vh, 84px); }
/* fundo azul: tudo em off-white */
.como .ind { color: var(--nuvem); }
.como .titulo { color: var(--nuvem); }
.como .titulo span { color: var(--nuvem); }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.ve { opacity: 1; transform: none; }
.foto { margin: 0; will-change: transform; }
.foto img { opacity: 0; filter: blur(16px); transform: scale(1.05); transition: opacity 1.2s var(--ease), filter 1.6s var(--ease), transform 1.8s var(--ease); }
.foto.ve img { opacity: 1; filter: blur(0); transform: none; }

/* ---------- 1 · acima das nuvens ---------- */
.hero { position: relative; height: 235vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--nuvem); }
.cena { position: absolute; inset: 0; }
.lay { position: absolute; inset: -4%; transform-origin: 50% 58.5%; will-change: transform; }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 58.5%; will-change: transform; }
.c0 { transform-origin: 50% 58.5%; }
.c1, .c2 { transform-origin: 50% 100%; }
.c1 { -webkit-mask-image: linear-gradient(to bottom, transparent 63%, #000 76%); mask-image: linear-gradient(to bottom, transparent 63%, #000 76%); }
.c2 { -webkit-mask-image: linear-gradient(to bottom, transparent 82%, #000 94%); mask-image: linear-gradient(to bottom, transparent 82%, #000 94%); }
.ln { transform-origin: 50% 40%; opacity: 0; }
.nevoa { position: absolute; left: 0; right: 0; top: 0; height: 260%; pointer-events: none; will-change: transform; transform: translate3d(0, 100vh, 0);
  background: linear-gradient(to bottom, rgba(248, 249, 241, 0) 0%, rgba(248, 249, 241, .55) 14%, var(--nuvem) 30%, var(--nuvem) 100%); }
.hero-nome { position: absolute; left: calc(4% / 1.08 + var(--pad)); right: calc(4% / 1.08 + var(--pad)); top: 39%; translate: 0 -50%; color: var(--nuvem); }
.hero-nome svg { width: 100%; height: auto; fill: currentColor; }
.nome-pilha { display: none; }
.hero-info {
  display: flex; justify-content: space-between; gap: 24px; margin-top: clamp(16px, 2.4vh, 28px);
  color: var(--nuvem); font-size: 15px; font-weight: 500;
}
.hero-info p { opacity: .88; }
.hero-dica { position: absolute; z-index: 2; left: 0; right: 0; bottom: 4.5vh; text-align: center; font-size: 14px; font-weight: 600; color: var(--ceu); }
.hero-dica span { display: inline-block; animation: desce 2.2s var(--ease) infinite; }
@keyframes desce { 0%, 100% { transform: none; opacity: 1; } 50% { transform: translateY(5px); opacity: .5; } }

/* ---------- seções claras ---------- */
.intro, .cases, .depo, .fim, .rodape { position: relative; background: var(--nuvem); }

/* ---------- 2 · o começo ---------- */
.intro { margin-top: -30vh; padding: clamp(24px, 5vh, 80px) 0 clamp(70px, 10vh, 140px); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 56px); min-height: min(108vh, 1080px); }
.intro-fotos { position: relative; height: min(88vh, 900px); margin-right: calc(-1 * var(--pad)); }
.f-homem { position: absolute; right: 2%; bottom: 0; height: 100%; }
.f-homem img { height: 100%; width: auto; max-width: none; }
.f-balao { position: absolute; left: 2%; top: 14%; width: 26%; }

/* ---------- 3 · cases: carrossel 3D ---------- */
.cases { height: 380vh; }
.cases-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.cases-cab { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: calc(72px + 4vh); }
.cases-cab .ind { margin-bottom: 16px; }
.cases .titulo { font-size: clamp(32px, min(4.2vw, 7.4vh), 66px); }
.cases .titulo span { display: inline; }
.cases-nav { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.cases-conta { margin-right: 10px; font-size: 14px; font-weight: 500; color: var(--grafite); font-variant-numeric: tabular-nums; }
.cases-conta b { color: var(--ceu); font-weight: 700; }
.seta-bt { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(12, 50, 121, .25); color: var(--ceu); font-size: 17px; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.seta-bt:hover { background: var(--ceu); color: var(--nuvem); border-color: var(--ceu); }
.seta-bt:disabled { opacity: .3; pointer-events: none; }
.palco { position: relative; flex: 1; }
.trilho { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 40%; }
.case { --cw: 800px; position: absolute; left: 50%; top: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); translate: 0 -50%; will-change: transform, opacity; cursor: pointer; }
.case.ativo { cursor: default; }
.case::before { content: ''; position: absolute; left: 8%; right: 8%; top: calc(var(--cw) * .625 - 18px); height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(12, 50, 121, .38), transparent); filter: blur(14px); opacity: var(--f, 0); pointer-events: none; z-index: -1; }
.midia { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; isolation: isolate; background: #e6e9f0; box-shadow: 0 40px 70px -40px rgba(12, 50, 121, .45); }
.midia video { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.03); transition: filter .8s var(--ease); }
.midia i { position: absolute; inset: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.midia .tinta { background: var(--ceu); mix-blend-mode: screen; }
.midia .papel { background: var(--nuvem); mix-blend-mode: multiply; }
.midia .grao { background: url(img/grao.png) repeat; background-size: 160px; opacity: .22; }
.case.cor .midia video { filter: none; }
.case.cor .tinta, .case.cor .papel, .case.cor .grao { opacity: 0; }
.case-info { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 16px; margin-top: 22px; }
.case-info h3 { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.025em; color: var(--ceu); }
.case-info span { font-size: 14px; color: var(--g2); text-align: right; font-weight: 500; }
.case-info p { grid-column: 1 / -1; color: var(--g2); font-size: 16px; max-width: 40em; }

/* ---------- respiro: atravessando as nuvens (foto real) até o céu azul ---------- */
.voo { position: relative; z-index: 3; height: 290vh; margin-top: -45vh; pointer-events: none; }   /* o último case sobe um pouco (respiro) e só então a névoa chega */
.voo-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: transparent; }
.vc { position: absolute; inset: -3%; background: center / cover no-repeat; opacity: 0; will-change: transform, opacity; transform: translate3d(0, 0, 0); backface-visibility: hidden; }
/* o furo no meio já vem pronto na imagem (WebP com transparência): nada de máscara pra redesenhar */
.vc1 { background-image: url(img/voo-1.webp); }
.vc2 { background-image: url(img/voo-2.webp); }
.vc3 { background-image: url(img/voo-3.webp); }
.voo-txt {
  position: absolute; z-index: 5; left: var(--pad); right: var(--pad); top: 50%; translate: 0 -50%; opacity: 0;
  text-align: center; font-weight: 700; font-size: clamp(34px, 4.8vw, 78px); line-height: 1; letter-spacing: -.045em; color: var(--nuvem); text-wrap: balance; will-change: transform, opacity;
}
.voo-txt span { display: block; }

/* ---------- 4 · serviços em conversa (fundo azul) ---------- */
.como { position: relative; background: var(--ceu); color: var(--nuvem); }
.como-cab { padding-top: clamp(40px, 8vh, 100px); padding-bottom: 4vh; }
.como-cab .titulo { max-width: 14em; }
.como-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 72px; overflow: hidden; }
.como-palco { width: 100%; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.baralho { position: relative; height: min(64vh, 640px); }
.carta { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 4 / 5; translate: -50% 0; margin: 0; padding: 18px 18px 52px; border-radius: 18px; background: var(--nuvem); box-shadow: 0 40px 80px -30px rgba(3, 12, 40, .55); will-change: transform, opacity; }
.carta img { width: 100%; height: 100%; object-fit: contain; }
.carta figcaption { position: absolute; left: 22px; bottom: 18px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ceu); }
.falas { position: relative; height: min(64vh, 640px); }
.fala { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; will-change: transform, opacity; }
.fala-tag { margin-bottom: 22px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--n3); }
.fala-cli { font-weight: 700; font-size: clamp(30px, min(3.7vw, 6.6vh), 58px); line-height: 1.04; letter-spacing: -.04em; color: var(--nuvem); text-wrap: balance; }
.fala-unjo { position: relative; margin-top: clamp(24px, 4.5vh, 44px); padding-left: 22px; border-left: 2px solid var(--nfio); }
.fala-unjo b { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--n3); }
.fala-unjo p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--n2); max-width: 30em; }
.w { display: inline-block; will-change: opacity, transform; }
.dig { position: absolute; left: 22px; top: 32px; display: flex; gap: 6px; opacity: 0; }
.dig i { width: 8px; height: 8px; border-radius: 50%; background: var(--nuvem); opacity: .3; animation: dig 1s infinite; }
.dig i:nth-child(2) { animation-delay: .15s; }
.dig i:nth-child(3) { animation-delay: .3s; }
@keyframes dig { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: .95; transform: translateY(-3px); } }
.srv-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(248, 249, 241, .35); color: var(--nuvem); font-size: 14px; font-weight: 600; transition: background .25s, border-color .25s, color .25s; }
.srv-tag:hover { background: rgba(248, 249, 241, .1); border-color: var(--nuvem); }
.srv-tag:hover .seta { transform: translateX(3px); }
.srv-cheia { background: var(--nuvem); color: var(--ceu); border-color: var(--nuvem); }
.srv-cheia:hover { background: #fff; color: var(--ceu); }
/* width:100% = no flex em coluna do .como-pin, o margin:auto do .wrap encolhia a barra e centralizava */
.etapas-wrap { width: 100%; }
.etapas { list-style: none; margin: clamp(20px, 4vh, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; font-size: 14px; font-weight: 500; color: var(--n3); }
.etapas li { cursor: pointer; transition: color .35s; }
.etapas li.on { color: var(--nuvem); }
.etapas b { font-weight: 600; margin-right: 4px; font-variant-numeric: tabular-nums; }
.etapas i { position: relative; display: block; height: 2px; margin-bottom: 12px; background: var(--nfio); overflow: hidden; }
.etapas i::after { content: ''; position: absolute; inset: 0; background: var(--nuvem); transform-origin: left; transform: scaleX(var(--f, 0)); }

/* ---------- 5 · depoimentos: clientes flutuando no céu; mouse/toque abre o balão (JS em main.js posiciona) ---------- */
.depo { padding: clamp(90px, 15vh, 170px) 0 clamp(60px, 9vh, 120px); overflow-x: clip; }
.depo-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.dp-ceu { position: relative; max-width: var(--max); height: clamp(500px, 70vh, 680px); margin: clamp(10px, 2vh, 30px) auto 0; --mx: 0; --my: 0; }
.dp { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: translate3d(calc(var(--mx) * var(--s) / 6), calc(var(--my) * var(--s) / 8), 0); transition: transform 1.2s var(--ease), opacity .5s, filter .5s; }
.dp-flut { position: relative; width: 100%; height: 100%; animation: dp-flutua var(--t) ease-in-out var(--a) infinite; }
@keyframes dp-flutua { 0%, 100% { transform: translate3d(-4px, -10px, 0); } 50% { transform: translate3d(4px, 10px, 0); } }
.dp-bola { display: block; width: 100%; height: 100%; padding: 0; border-radius: 50%; overflow: hidden; border: 5px solid #fff; background: var(--nuvem);
  box-shadow: 0 24px 44px -22px rgba(12, 50, 121, .55); transition: transform .6s var(--ease), box-shadow .6s var(--ease); cursor: pointer; }
.dp-bola img { width: 100%; height: 100%; object-fit: cover; }
.dp-bola:focus-visible { outline: 2px solid var(--ceu); outline-offset: 4px; }
.dp.aberto { z-index: 5; }
.dp.aberto .dp-flut { animation-play-state: paused; }
.dp.aberto .dp-bola { transform: scale(1.3); box-shadow: 0 34px 60px -24px rgba(12, 50, 121, .6); }
.dp-ceu:has(> figure.dp:only-of-type) { height: clamp(380px, 52vh, 500px); }   /* um depoimento só: menos céu vazio */
.dp-ceu.tem-aberto .dp:not(.aberto) { opacity: .4; filter: saturate(.5); }
/* balão: posição (--bx, --by) e bico (--tx, --ty) calculados no JS */
.dp-balao { position: absolute; left: var(--bx, 0); top: var(--by, 0); width: min(330px, calc(100vw - 32px)); padding: 20px 24px 20px; border-radius: 22px; background: #fff;
  box-shadow: 0 40px 70px -36px rgba(12, 50, 121, .5), 0 2px 8px rgba(12, 50, 121, .05); text-align: left;
  opacity: 0; visibility: hidden; transform: scale(.94); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s; pointer-events: none; }
.dp-balao.lado-dir { transform-origin: 0 var(--ty, 50%); } .dp-balao.lado-esq { transform-origin: 100% var(--ty, 50%); }
.dp-balao.lado-baixo { transform-origin: var(--tx, 50%) 0; } .dp-balao.lado-cima { transform-origin: var(--tx, 50%) 100%; }
.dp.aberto .dp-balao { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; pointer-events: auto; }
.dp-balao::before { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 3px; transform: rotate(45deg); }
.dp-balao.lado-dir::before { left: -6px; top: calc(var(--ty) - 8px); }
.dp-balao.lado-esq::before { right: -6px; top: calc(var(--ty) - 8px); }
.dp-balao.lado-baixo::before { top: -6px; left: calc(var(--tx) - 8px); }
.dp-balao.lado-cima::before { bottom: -6px; left: calc(var(--tx) - 8px); }
.dp-tag { display: inline-block; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: var(--ceu); background: rgba(12, 50, 121, .07); }
/* a aspa tem recuo próprio (~6% do tamanho): margem negativa pra ela alinhar com a esquerda do texto */
.dp-aspas { display: block; height: 30px; margin: 12px 0 0 -.05em; font-size: 64px; line-height: .9; font-weight: 700; color: var(--ceu); }
.dp-balao blockquote { margin: 0; font-size: 15.5px; line-height: 1.5; font-weight: 500; letter-spacing: -.015em; color: var(--grafite); text-wrap: pretty; }
.dp-balao blockquote p + p { margin-top: .7em; }
.dp-quem { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fio); font-size: 12.5px; color: var(--g2); }
.dp-quem b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--ceu); }
/* pontinhos ao fundo: "estrelas" bem leves, flutuando junto */
.dp-ponto { position: absolute; left: var(--x); top: var(--y); width: 7px; height: 7px; border-radius: 50%; background: var(--ceu); opacity: .14; animation: dp-flutua 9s ease-in-out infinite; }
.dp-ponto:nth-child(2n) { width: 5px; height: 5px; animation-duration: 11s; animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .dp-flut, .dp-ponto { animation: none; } }
@media (max-width: 760px) {
  .depo-cab { flex-direction: column; align-items: flex-start; gap: 14px; }
  .dp-ceu { height: 470px; }
  .dp { width: calc(var(--s) * .72); height: calc(var(--s) * .72); margin: calc(var(--s) * -.36) 0 0 calc(var(--s) * -.36); }
  .dp-balao { padding: 18px 20px; }
  .dp-balao blockquote { font-size: 14.5px; }
  .dp-aspas { font-size: 56px; height: 26px; }
}

/* ---------- 6 · contato: chamada limpa, fotos flutuando ---------- */
.fim { padding: clamp(110px, 20vh, 220px) 0 clamp(110px, 20vh, 220px); overflow: hidden; }
.fim-txt { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fim-txt .titulo { font-size: clamp(42px, min(6.4vw, 11vh), 108px); }
.fim-txt .lead { max-width: 30em; }
.fim-txt .acoes { justify-content: center; }
.fim-f1 { position: absolute; left: max(-2vw, calc(50% - 760px)); top: 8%; width: clamp(150px, 17vw, 270px); }
.fim-f2 { position: absolute; right: max(-1vw, calc(50% - 740px)); bottom: 4%; width: clamp(160px, 19vw, 300px); }

/* ---------- rodapé ---------- */
.rodape { padding: clamp(30px, 5vw, 70px) 0 0; }
.rod-nome { width: 100%; height: auto; fill: var(--grafite); }
.rod-linha { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(24px, 3vw, 44px); padding: 24px 0 28px; border-top: 1px solid var(--fio); font-size: 14px; color: var(--g2); }
.rod-linha a:hover, .creditos summary:hover { color: var(--grafite); }
.creditos summary { cursor: pointer; list-style: none; }
.creditos summary::-webkit-details-marker { display: none; }
.creditos[open] { flex-basis: 100%; order: 5; }
.creditos p { margin-top: 10px; font-size: 13px; color: var(--g3); max-width: 70em; }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .topo { height: 64px; }
  .topo-nav a:not(.btn) { display: none; }
  .topo-logo { width: 112px; }
  .nome-linha { display: none; }
  .nome-pilha { display: flex; flex-direction: column; gap: 2.4vw; }
  .hero-nome { top: 31%; }
  .hero-info { flex-direction: column; gap: 4px; font-size: 14px; }
  .intro { margin-top: -24vh; }
  .intro-grid { grid-template-columns: 1fr; min-height: 0; }
  .intro-fotos { height: 74vh; margin: 0 calc(-1 * var(--pad)); }
  .f-homem { right: 50%; translate: 50% 0; }
  .f-balao { left: 6%; top: 2%; width: 30%; }
  .cases-cab { padding-top: calc(64px + 3vh); flex-wrap: wrap; }
  .cases-nav { width: 100%; justify-content: flex-end; }
  .case { top: 42%; }
  .case-info span { grid-column: 1 / -1; text-align: left; }
  .como-pin { padding-top: 64px; justify-content: flex-start; }
  .como-palco { grid-template-columns: 1fr; gap: 3vh; padding-top: 3vh; }
  .baralho { height: 30vh; }
  .falas { height: 44vh; }
  .fala { justify-content: flex-start; }
  .fala-tag { margin-bottom: 12px; }
  .fala-cli { font-size: clamp(24px, 7vw, 34px); }
  .fala-unjo { margin-top: 18px; }
  .fala-unjo p { font-size: 16px; }
  .etapas { gap: 6px; font-size: 0; margin-top: 2vh; }
  .etapas i { margin-bottom: 0; }
  .fim-f1 { left: -8vw; top: 3%; width: 32vw; }
  .fim-f2 { right: -6vw; bottom: 2%; width: 34vw; }
  .rod-linha { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rv, .foto img { transition: none; }
  .hero-dica span, .dig i { animation: none; }
}

/* ==========================================================
   PÁGINA DE SERVIÇOS — limpa e alinhada: cabeçalho, planos (com case real de exemplo),
   tabela de adicionais, como funciona, dúvidas
   ========================================================== */
.topo-nav a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.pg-servicos .ind b { font-weight: 700; }

.sv-cab { padding: calc(72px + clamp(28px, 5vh, 56px)) 0 clamp(40px, 6vh, 70px); }
.sv-cab-grade { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 5vw, 90px); align-items: end; }
.sv-cab .titulo { font-size: clamp(40px, min(5.6vw, 10vh), 80px); }
.sv-cab-grade > div:first-child { grid-column: 1 / -1; }   /* sem texto de apoio na direita: título usa a largura toda */
.sv-cab .lead { margin: 0 0 8px; }

.sv-planos { padding: clamp(20px, 3vh, 40px) 0 clamp(70px, 11vh, 140px); }
.sv-barra { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--fio); }
.sv-barra .ind { margin: 0; }
.chave-bloco { display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 500; color: var(--g2); }
.chave { position: relative; display: flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--fio); }
.chave button { position: relative; z-index: 1; flex: 1 1 0; min-width: 104px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--grafite); white-space: nowrap; transition: color .3s; }
.chave button.on { color: var(--nuvem); }
.chave::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ceu); transition: transform .45s var(--ease); }
.chave.dir::before { transform: translateX(100%); }
.sv-aviso { margin: -8px 0 34px; max-width: none; font-size: 14.5px; line-height: 1.5; color: var(--g2); }
.sv-aviso b { color: var(--ceu); }
.sv-aviso [hidden] { display: none; }

.planos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.plano { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--fio); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.plano:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -38px rgba(12, 50, 121, .5); }
/* o mais pedido: azul cheio, conteúdo off-white, mesma altura dos outros */
.plano.destaque { background: var(--ceu); border-color: var(--ceu); color: var(--nuvem); }
.plano.destaque h2, .plano.destaque .pl-preco, .plano.destaque .pl-conta s { color: var(--nuvem); }
.plano.destaque .pl-desc, .plano.destaque .pl-prazo, .plano.destaque .pl-conta { color: var(--n2); }
.plano.destaque ul { border-color: var(--nfio); }
.plano.destaque li::before { color: var(--nuvem); }
.plano.destaque .selo { background: var(--nuvem); color: var(--ceu); }
.plano.destaque .pl-bt.btn-p { background: var(--nuvem); color: var(--ceu); border-color: var(--nuvem); }
.plano.destaque .pl-bt.btn-p:hover { background: #fff; }
.plano.destaque .pl-conta em { background: rgba(248, 249, 241, .16); color: var(--nuvem); }
/* imagem do case de exemplo: azul por padrão, cor no mouse (igual ao carrossel) */
.pl-img { position: relative; aspect-ratio: 16 / 10; border-radius: 0; box-shadow: none; overflow: hidden; isolation: isolate; background: #e6e9f0; }
.pl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.1) brightness(1.03); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.plano:hover .pl-img img, .plano-largo:hover .pl-img img { filter: none; transform: scale(1.03); }
.plano:hover .pl-img .tinta, .plano:hover .pl-img .papel, .plano-largo:hover .pl-img .tinta, .plano-largo:hover .pl-img .papel { opacity: 0; }
.pl-ex { position: absolute; z-index: 2; left: 12px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(248, 249, 241, .92); color: var(--ceu); font-size: 11.5px; font-weight: 600; box-shadow: 0 4px 14px -4px rgba(12, 50, 121, .35); }
.selo { position: absolute; z-index: 2; top: 10px; right: 12px; padding: 5px 10px; border-radius: 999px; background: var(--ceu); color: var(--nuvem); font-size: 12px; font-weight: 700; }
.pl-corpo { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 22px; }
.plano h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.025em; color: var(--grafite); }
.pl-desc { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--g2); min-height: 2.9em; }
.pl-preco { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; color: var(--ceu); }
.pl-preco span { font-size: 13px; font-weight: 600; }
.pl-preco b { font-size: clamp(32px, 2.7vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.pl-conta { display: grid; gap: 2px; margin-top: 8px; font-size: 12.5px; line-height: 1.4; color: var(--g2); }
.pl-conta[hidden] { display: none; }
.pl-conta s { color: var(--grafite); }
.pl-conta em { justify-self: start; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-style: normal; font-weight: 600; background: rgba(12, 50, 121, .08); color: var(--ceu); }
.pl-prazo { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--g2); }
.plano ul { list-style: none; margin: 16px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--fio); display: grid; gap: 8px; font-size: 14.5px; }
.plano li { display: flex; gap: 9px; }
.plano li::before { content: '✓'; color: var(--ceu); font-weight: 700; }
.pl-bt { margin-top: auto; justify-content: center; border: 1px solid rgba(12, 50, 121, .25); color: var(--ceu); }
.pl-bt:hover { background: rgba(12, 50, 121, .06); }
.pl-bt.btn-p { color: var(--nuvem); border-color: var(--ceu); }
.pl-bt.btn-p:hover { background: var(--ceu-h); }

.plano-grande { margin-top: clamp(16px, 2vw, 28px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--fio); transition: box-shadow .5s var(--ease); }
.plano-grande:hover { box-shadow: 0 30px 60px -38px rgba(12, 50, 121, .5); }
.pg-txt { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 44px); }
.pg-tag { padding: 4px 10px; border-radius: 999px; background: rgba(12, 50, 121, .08); color: var(--ceu); font-size: 12px; font-weight: 700; }
.plano-grande h2 { margin: 14px 0 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.03em; color: var(--grafite); }
.plano-grande p { margin-top: 8px; max-width: 30em; color: var(--g2); font-size: 15.5px; }
.plano-grande .pl-preco { margin: auto 0 18px; padding-top: 22px; }
.plano-grande .pl-img { aspect-ratio: auto; min-height: 300px; }
.plano-grande:hover .pl-img img { filter: none; transform: scale(1.03); }
.plano-grande:hover .pl-img .tinta, .plano-grande:hover .pl-img .papel { opacity: 0; }

.sv-marca { padding: clamp(40px, 7vh, 90px) 0 clamp(80px, 12vh, 140px); }
/* identidade: imagem grande à esquerda, conteúdo à direita */
.mc-feat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.mc-img { aspect-ratio: 16 / 10; border-radius: 20px; }
.mc-img img { object-position: 50% 50%; }
.mc-feat:hover .mc-img img, .mc-feat:hover .mc-img video { filter: none; transform: scale(1.03); }
.mc-img video { transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.mc-feat:hover .mc-img .tinta, .mc-feat:hover .mc-img .papel { opacity: 0; }
.mc-info .titulo { font-size: clamp(34px, min(4.2vw, 7.6vh), 64px); }
.mc-info .lead { margin-top: 18px; }
.mc-lista { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--fio); }
.mc-lista li { display: grid; grid-template-columns: 22px 170px minmax(0, 1fr); align-items: baseline; gap: 6px; padding: 13px 0; border-bottom: 1px solid var(--fio); font-size: 15px; }
.mc-lista li::before { content: '✓'; color: var(--ceu); font-weight: 700; }
.mc-lista b { font-weight: 700; color: var(--grafite); }
.mc-lista span { color: var(--g2); }
.mc-pe { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.mc-pe .pl-preco { margin: 0; }
.mc-pe .pl-prazo { margin: 0 auto 0 0; }
/* adicionais: uma linha limpa, só fio em cima (sem caixas) */
:root { interpolate-size: allow-keywords; }
.sanfona { margin-top: clamp(70px, 11vh, 130px); border-top: 1px solid var(--fio); border-bottom: 1px solid var(--fio); }
.sanfona summary { display: flex; align-items: center; gap: 16px 24px; padding: 22px 0; cursor: pointer; list-style: none; }
.sanfona summary::-webkit-details-marker { display: none; }
.sanfona summary .ind { margin: 0; }
.sf-txt { margin-left: auto; font-size: 14.5px; color: var(--g2); transition: color .25s; }
.sanfona summary:hover .sf-txt { color: var(--ceu); }
.sf-mais { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(12, 50, 121, .25); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.sf-mais::before, .sf-mais::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ceu); transition: transform .5s var(--ease), background .3s; }
.sf-mais::after { transform: rotate(90deg); }
.sanfona summary:hover .sf-mais { border-color: var(--ceu); }
.sanfona[open] .sf-mais { background: var(--ceu); border-color: var(--ceu); transform: rotate(180deg); }
.sanfona[open] .sf-mais::before { background: var(--nuvem); }
.sanfona[open] .sf-mais::after { background: var(--nuvem); transform: rotate(0deg); }
/* abre e fecha deslizando (Chrome/Vivaldi); nos outros, abre direto */
.sanfona::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease), content-visibility .6s allow-discrete; }
.sanfona[open]::details-content { block-size: auto; }
.sanfona .adic { padding: 6px 0 30px; }
.adic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.ad { display: flex; flex-direction: column; padding-top: 16px; border-top: 2px solid var(--ceu); }
.ad b { font-size: 17px; font-weight: 700; letter-spacing: -.015em; color: var(--grafite); }
.ad span { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--g2); }
.ad em { margin-top: auto; padding-top: 14px; font-style: normal; font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--ceu); }

/* fundo: céu da marca em cima + nuvens de verdade no rodapé, que viram o off-white da seção seguinte (assets/img/processo-ceu.webp, 2560×1726) */
.sv-processo { padding: clamp(70px, 11vh, 130px) 0 calc(44vw + 20px); color: var(--nuvem); background: var(--ceu) url(img/processo-ceu.webp) center bottom / 100% auto no-repeat; }
@media (max-width: 860px) { .sv-processo { padding-bottom: 82vw; background-size: 190% auto; } }
.sv-processo .ind, .sv-processo .titulo, .sv-processo .titulo span { color: var(--nuvem); }
.sv-processo .titulo { font-size: clamp(34px, min(4.2vw, 7.6vh), 64px); }
/* linha do tempo: a linha enche (--p) e cada etapa acende quando a linha chega nela */
.tempo { --p: 0; --gap: clamp(20px, 3vw, 48px); position: relative; list-style: none; margin: clamp(56px, 9vh, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
/* a linha vai do centro da 1ª bolinha ao centro da última */
.tempo::before, .tempo::after { content: ''; position: absolute; left: 8px; right: calc((100% - 3 * var(--gap)) / 4 - 8px); top: 7px; height: 2px; background: var(--nfio); }
.tempo::after { background: var(--nuvem); transform-origin: left; transform: scaleX(var(--p)); }
.tempo li { position: relative; padding-top: 38px; opacity: .45; transition: opacity .6s var(--ease); }
.tempo li.on { opacity: 1; }
.tempo li i { position: absolute; z-index: 1; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ceu); border: 2px solid var(--nfio); transition: background .4s, border-color .4s, transform .5s var(--ease); }
.tempo li.on i { background: var(--nuvem); border-color: var(--nuvem); transform: scale(1.15); }
.tempo b { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--n3); }
.tempo h3 { margin: 6px 0 0; font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.tempo p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--n2); max-width: 22em; }

/* dúvidas: a nuvem responde */
.sv-duvidas { padding: clamp(80px, 13vh, 150px) 0 clamp(60px, 9vh, 110px); }
.sv-duvidas .titulo { font-size: clamp(34px, min(4.2vw, 7.6vh), 64px); }
.pn { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 100px); align-items: start; margin-top: clamp(30px, 5vh, 60px); }
.pn-lado { position: relative; display: flex; flex-direction: column; align-items: center; }
/* balão da nuvem: o bico aponta pra ela e fica por cima */
.pn-balao { position: relative; z-index: 2; align-self: stretch; min-height: 104px; padding: 20px 22px; border-radius: 22px; background: var(--ceu); color: var(--nuvem); font-size: 17px; line-height: 1.5; font-weight: 500; box-shadow: 0 24px 50px -30px rgba(12, 50, 121, .6); }
.pn-balao::after { content: ''; position: absolute; left: 50%; bottom: -11px; width: 24px; height: 24px; background: var(--ceu); border-radius: 0 0 7px 0; transform: translateX(-50%) rotate(45deg); }
.pn-av { position: relative; z-index: 1; width: clamp(200px, 22vw, 300px); height: clamp(200px, 22vw, 300px); margin-top: 34px; }
.pn-av .bs-avatar { filter: drop-shadow(0 16px 24px rgba(12, 50, 121, .28)) drop-shadow(0 2px 3px rgba(12, 50, 121, .2)); }
.pn-w { display: inline-block; opacity: 0; animation: pnw .4s var(--ease) forwards; }
@keyframes pnw { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pn-dig { display: inline-flex; gap: 6px; padding: 8px 0; }
.pn-dig i { width: 8px; height: 8px; border-radius: 50%; background: var(--nuvem); animation: dig 1s infinite; }
.pn-dig i:nth-child(2) { animation-delay: .15s; }
.pn-dig i:nth-child(3) { animation-delay: .3s; }
/* perguntas: lista de mensagens à direita, começando no topo; a escolhida fica azul ("enviada") */
.pn-lista { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pn-q { position: relative; max-width: 100%; padding: 14px 20px; border-radius: 20px 20px 6px 20px; border: 1px solid var(--fio); background: #fff; color: var(--grafite); font-size: 16.5px; font-weight: 600; text-align: right; box-shadow: 0 14px 30px -24px rgba(12, 50, 121, .45); transition: background .3s, color .3s, border-color .3s, transform .45s var(--ease), box-shadow .3s; }
.pn-q:hover { border-color: rgba(12, 50, 121, .4); transform: translateX(-4px); }
.pn-q.on { background: var(--ceu); border-color: var(--ceu); color: var(--nuvem); box-shadow: 0 18px 34px -22px rgba(12, 50, 121, .7); animation: pnm .45s var(--ease); }
.pn-hora { display: inline-flex; align-items: center; gap: 4px; margin: -4px 8px 4px 0; font-size: 11.5px; font-weight: 500; color: var(--g2); animation: pnm .45s var(--ease); }
.pn-hora svg { width: 17px; height: 11px; fill: none; stroke: var(--ceu); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pnm { from { transform: translateY(6px) scale(.97); } }
.pn-campo { width: min(100%, 460px); margin-top: 12px; }
.pn-nota { margin-right: 18px; font-size: 12.5px; color: var(--g2); }
.pn-campo { display: flex; align-items: center; box-sizing: border-box; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--nuvem); border: 1px solid var(--fio); transition: border-color .25s, box-shadow .25s; }
.pn-campo:focus-within { border-color: var(--ceu); box-shadow: 0 0 0 4px rgba(12, 50, 121, .08); }
.pn-campo input { flex: 1; min-width: 0; border: 0; background: none; font: 500 15px 'Instrument Sans', sans-serif; color: var(--grafite); outline: none; }
.pn-campo input::placeholder { color: var(--g2); }
.pn-campo button { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ceu); color: var(--nuvem); font-size: 18px; transition: background .25s, transform .3s var(--ease); }
.pn-campo button:hover { background: var(--ceu-h); transform: translateX(2px); }
.ajudante.ve.fora { opacity: 0; transform: translateY(20px) scale(.85); pointer-events: none; }
.pg-servicos .rodape { padding-top: 0; }

.gaveta { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; background: var(--nuvem); color: var(--grafite); box-shadow: 0 50px 100px -30px rgba(3, 12, 40, .6); }
.gaveta::backdrop { background: rgba(12, 50, 121, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gaveta[open] { animation: gv .45s var(--ease); }
@keyframes gv { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.gv { position: relative; padding: 28px 28px 26px; }
.gv .ind { margin-bottom: 10px; }
.gv-x { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; color: var(--ceu); }
.gv-x:hover { background: rgba(12, 50, 121, .08); }
.gv-nome { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; color: var(--ceu); }
.gv-base { margin-top: 4px; font-size: 14px; color: var(--g2); }
.gv-extras { display: grid; gap: 8px; margin: 20px 0; }
.gv-extras label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--fio); background: #fff; font-size: 15px; cursor: pointer; }
.gv-extras label[hidden] { display: none; }
.gv-extras label b { margin-left: auto; font-size: 14px; color: var(--ceu); white-space: nowrap; }
.gv-extras input { accent-color: var(--ceu); width: 17px; height: 17px; }
.gv-qtd span { display: inline-flex; align-items: center; gap: 8px; }
.gv-qtd button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--fio); color: var(--ceu); font-weight: 700; }
.gv-qtd output { min-width: 1.2em; text-align: center; font-weight: 700; }
.gv-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--fio); font-weight: 600; }
.gv-total b { font-size: 28px; letter-spacing: -.03em; color: var(--grafite); }
.gv-bt { width: 100%; justify-content: center; margin-top: 18px; }

@media (max-width: 1100px) { .planos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .sv-cab-grade, .mc-feat, .pn, .plano-grande { grid-template-columns: 1fr; }
  .mc-lista li { grid-template-columns: 22px minmax(0, 1fr); } .mc-lista span { grid-column: 2; }
  .planos, .tempo { grid-template-columns: 1fr; }
  .tempo::before, .tempo::after { display: none; }
  .tempo li { padding: 0 0 0 30px; }
  .sf-txt { display: none; }
  .adic { grid-template-columns: 1fr 1fr; }
  .plano-grande .pl-img { min-height: 200px; order: -1; }
  .pl-desc { min-height: 0; }
}

/* ---------- a nuvem de ajuda no cantinho ---------- */
.ajudante { position: fixed; right: clamp(12px, 2vw, 28px); bottom: clamp(10px, 2vw, 24px); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; opacity: 0; transform: translateY(30px) scale(.8); transform-origin: 100% 100%; pointer-events: none; transition: opacity .8s var(--ease), transform 1s var(--ease); }
.ajudante.ve { opacity: 1; transform: none; pointer-events: auto; }
.aj-nuvem { position: relative; width: 92px; height: 92px; padding: 0; border-radius: 50%; }
.aj-nuvem:focus-visible { outline: 2px solid var(--ceu); outline-offset: 2px; }
.aj-nuvem .bs-avatar { filter: drop-shadow(0 10px 16px rgba(12, 50, 121, .3)) drop-shadow(0 2px 3px rgba(12, 50, 121, .2)); }
.aj-balao { position: absolute; right: 84px; bottom: 58px; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--ceu); color: var(--nuvem); font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(6px) scale(.95); transform-origin: 100% 100%; transition: opacity .4s var(--ease), transform .5s var(--ease); pointer-events: none; }
.aj-balao.ve { opacity: 1; transform: none; }
.aj-painel { width: 250px; margin-bottom: 8px; padding: 14px; border-radius: 18px; background: var(--nuvem); border: 1px solid var(--fio); box-shadow: 0 30px 60px -24px rgba(3, 12, 40, .45); transform-origin: 100% 100%; animation: aj .4s var(--ease); }
.aj-painel[hidden] { display: none; }
@keyframes aj { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.aj-oi { margin: 2px 4px 10px; font-size: 15px; font-weight: 700; color: var(--ceu); }
.aj-painel a { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-radius: 11px; font-size: 14.5px; font-weight: 500; color: var(--grafite); transition: background .2s; }
.aj-painel a:hover { background: rgba(12, 50, 121, .07); }
.aj-painel a:hover .seta { transform: translateX(3px); }
.aj-painel .aj-zap { margin-top: 6px; background: var(--ceu); color: var(--nuvem); font-weight: 600; }
.aj-painel .aj-zap:hover { background: var(--ceu-h); }
@media (max-width: 860px) { .aj-nuvem { width: 72px; height: 72px; } .aj-balao { right: 66px; bottom: 46px; } }

/* ---------- textura e rabiscos: um grão bem leve no site todo + vetores que se desenham e flutuam ---------- */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url(img/grao.png) repeat; background-size: 160px; opacity: .12; }
.rabisco { position: absolute; z-index: 1; fill: none; stroke: var(--ceu); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; pointer-events: none; }
.rabisco .desenha { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.rabisco.ve .desenha { stroke-dashoffset: 0; }
.rabisco.ve circle.desenha { transition-delay: .9s; }
.rabisco.ve circle.desenha + circle.desenha { transition-delay: 1.1s; }
.flutua { animation: flutua 7s ease-in-out infinite; }
@keyframes flutua { 0%, 100% { translate: 0 0; } 50% { translate: 8px -7px; } }
.rb-intro { left: 40%; top: 12%; width: clamp(80px, 8vw, 120px); }
.depo .wrap { position: relative; }
.rb-depo { right: calc(var(--pad) + 4%); top: 18%; width: clamp(100px, 10vw, 150px); animation-duration: 8s; }
.sv-cab-grade { position: relative; }
.rb-sv { right: 6%; top: -26%; width: clamp(80px, 8vw, 118px); }
@media (max-width: 860px) { .rb-intro { left: 62%; top: 1%; } .rb-depo { display: none; } .rb-sv { display: none; } }
@media (prefers-reduced-motion: reduce) { .flutua { animation: none; } .rabisco .desenha { transition: none; stroke-dashoffset: 0; } }

/* ==========================================================
   BRIEFING — formulário em 5 passos, a nuvem guia do lado
   ========================================================== */
.bf { padding: calc(72px + clamp(40px, 8vh, 90px)) 0 clamp(70px, 11vh, 130px); }
.bf-grade { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); align-items: start; }
.bf-lado { position: sticky; top: calc(72px + 28px); }
.bf-lado .titulo { font-size: clamp(38px, min(4.6vw, 8.4vh), 72px); }
.bf-sub { margin-top: 18px; max-width: 26em; color: var(--g2); }
.bf-guia { display: flex; flex-direction: column; align-items: center; margin-top: clamp(24px, 4vh, 44px); }
.bf-balao { align-self: stretch; min-height: 0; }
.bf-av { width: clamp(150px, 15vw, 210px); height: clamp(150px, 15vw, 210px); margin-top: 30px; }
.bf-av .bs-avatar { filter: drop-shadow(0 14px 22px rgba(12, 50, 121, .28)) drop-shadow(0 2px 3px rgba(12, 50, 121, .2)); }
.bf-form { position: relative; padding: clamp(22px, 3vw, 40px); border-radius: 22px; background: #fff; border: 1px solid var(--fio); box-shadow: 0 30px 60px -44px rgba(12, 50, 121, .45); }
.bf-topo { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.bf-passo-n { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--g2); }
.bf-passo-n b { color: var(--ceu); }
.bf-barra { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.bf-barra li { width: 34px; height: 4px; border-radius: 4px; background: rgba(12, 50, 121, .12); transition: background .4s; }
.bf-barra li.on { background: var(--ceu); }
.bf-mel { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bf-passo { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.bf-passo.on { display: grid; gap: 18px; animation: bfp .5s var(--ease); }
@keyframes bfp { from { opacity: 0; transform: translateX(14px); } }
.bf-passo legend { padding: 0; margin-bottom: 6px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.035em; color: var(--grafite); }
.bf-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bf-c { display: grid; gap: 8px; }
.bf-c[hidden] { display: none; }
.bf-c > span { font-size: 14.5px; font-weight: 600; color: var(--grafite); }
.bf-c > span em { font-style: normal; font-weight: 500; color: var(--g2); margin-left: 4px; }
.bf-c input:not([type=checkbox]):not([type=radio]):not([type=file]), .bf-c textarea, .bf-c select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(31, 37, 49, .18); background: var(--nuvem);
  font: 500 15.5px/1.45 'Instrument Sans', sans-serif; color: var(--grafite); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.bf-c textarea { resize: vertical; min-height: 90px; }
.bf-c input:focus, .bf-c textarea:focus, .bf-c select:focus { border-color: var(--ceu); background: #fff; box-shadow: 0 0 0 4px rgba(12, 50, 121, .08); }
.bf-c ::placeholder { color: rgba(31, 37, 49, .42); }
/* chave deslizante (mesma linguagem da chave "Já tenho / Ainda não" dos serviços): a bolinha azul vai até a opção escolhida */
.bf-seg { --n: 3; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); width: 100%; padding: 4px; border-radius: 999px; background: var(--nuvem); border: 1px solid rgba(31, 37, 49, .14); }
.bf-seg::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 999px; background: var(--ceu); box-shadow: 0 8px 18px -10px rgba(12, 50, 121, .7); opacity: 0; transition: transform .45s var(--ease), opacity .25s; }
.bf-seg:has(input:checked)::before { opacity: 1; }
.bf-seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
.bf-seg:has(label:nth-child(3) input:checked)::before { transform: translateX(200%); }
.bf-seg:has(label:nth-child(4) input:checked)::before { transform: translateX(300%); }
.bf-seg.quatro { --n: 4; }
.bf-seg label { position: relative; z-index: 1; cursor: pointer; }
.bf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.bf-seg i { display: block; padding: 10px 8px; border-radius: 999px; text-align: center; font-style: normal; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--grafite); transition: color .3s; }
.bf-seg label:hover i { color: var(--ceu); }
.bf-seg input:checked + i { color: var(--nuvem); }
.bf-seg input:focus-visible + i { outline: 2px solid var(--ceu); outline-offset: 2px; }
.bf-c.erro .bf-seg { border-color: rgba(160, 83, 63, .45); }

/* a frase do projeto: "Quero [um portfólio ▾] [sem pressa ▾]." */
.bf-frase { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; font-weight: 700; letter-spacing: -.03em; color: var(--grafite); }
.bf .bf-frase select, .bf .bf-c .bf-frase input[type=date]:not([hidden]) {
  width: auto; padding: 0 .8em 0 .04em; margin: 0 .04em; border: 0; border-bottom: 2px solid rgba(12, 50, 121, .25); border-radius: 0; box-shadow: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230C3279' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .08em center / .42em auto;
  font: inherit; letter-spacing: inherit; line-height: 1.25; color: var(--ceu); cursor: pointer; appearance: none; -webkit-appearance: none; transition: border-color .25s, color .25s; }
.bf .bf-frase select:hover, .bf .bf-frase select:focus, .bf .bf-c .bf-frase input[type=date]:focus { border-color: var(--ceu); background-color: transparent; box-shadow: none; }
.bf .bf-frase select:focus-visible { outline: 2px solid rgba(12, 50, 121, .35); outline-offset: 3px; border-radius: 4px; }
.bf .bf-frase select.vazio { color: rgba(12, 50, 121, .45); }
.bf .bf-c .bf-frase input[type=date]:not([hidden]) { padding-right: .1em; background-image: none; font-size: .8em; }
.bf .bf-frase select option { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--grafite); }
.bf-frase .bf-data[hidden] { display: none; }
.bf-c.erro .bf-frase select { border-color: rgba(160, 83, 63, .55); }
.bf-duas:has(> [hidden]) { grid-template-columns: 1fr; }
.bf-solta { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border-radius: 14px; border: 1.5px dashed rgba(12, 50, 121, .3); background: rgba(12, 50, 121, .03); text-align: center; cursor: pointer; transition: background .25s, border-color .25s; }
.bf-solta:hover, .bf-solta.em-cima { background: rgba(12, 50, 121, .07); border-color: var(--ceu); }
.bf-solta input { display: none; }
.bf-solta b { font-size: 14.5px; color: var(--ceu); }
.bf-solta small { font-size: 12.5px; color: var(--g2); }
.bf-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bf-lista li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 10px; background: var(--nuvem); font-size: 13.5px; }
.bf-lista span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grafite); }
.bf-lista small { color: var(--g2); }
.bf-lista button { width: 26px; height: 26px; border-radius: 50%; color: var(--ceu); font-size: 18px; line-height: 1; }
.bf-lista button:hover { background: rgba(12, 50, 121, .08); }
.bf-nav { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--fio); }
.bf-nav[hidden] { display: none; }
.bf-volta { padding-left: 0; color: var(--g2); }
.bf-volta:hover { color: var(--ceu); }
.bf-erro { flex: 1; font-size: 14px; font-weight: 600; color: #B0361F; }
.bf-segue { margin-left: auto; }
/* (tela de envio: ver 'ENVIO DO BRIEFING' no fim do arquivo) */
.bf-zap[hidden] { display: none; }
@media (max-width: 860px) {
  .bf-grade, .bf-duas { grid-template-columns: 1fr; }
  .bf-lado { position: static; }
  .bf-guia { flex-direction: row-reverse; align-items: flex-end; gap: 10px; }
  .bf-av { width: 96px; height: 96px; margin: 0; flex: none; }
  .bf-balao::after { display: none; }
}

.gv-brief { display: block; margin-top: 14px; text-align: center; font-size: 14px; color: var(--g2); }
.gv-brief b { color: var(--ceu); font-weight: 600; }
.gv-brief:hover b { text-decoration: underline; text-underline-offset: 3px; }
.bf-volta[hidden], .bf-topo[hidden] { display: none; }

/* ---------- as duas formas de começar (WhatsApp ou briefing) ---------- */
.duas-formas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: min(100%, 860px); margin-top: 40px; text-align: left; }
.forma { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 64px 24px 26px; border-radius: 18px; background: #fff; border: 1px solid var(--fio); color: var(--grafite); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.forma:hover { transform: translateY(-4px); border-color: rgba(12, 50, 121, .35); box-shadow: 0 26px 50px -32px rgba(12, 50, 121, .5); }
.forma b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ceu); }
.forma span { font-size: 14.5px; line-height: 1.45; color: var(--g2); }
.forma .seta { position: absolute; right: 22px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(12, 50, 121, .08); color: var(--ceu); }
.forma:hover .seta { transform: translateX(3px); }
.forma-azul { background: var(--ceu); border-color: var(--ceu); }
.forma-azul b { color: var(--nuvem); }
.forma-azul span { color: var(--n2); }
.forma-azul .seta { background: var(--nuvem); color: var(--ceu); }
.sv-comecar { padding: clamp(80px, 12vh, 140px) 0 0; }
.sv-comecar .titulo { font-size: clamp(34px, min(4.2vw, 7.6vh), 64px); }
.sv-comecar .duas-formas { width: 100%; }
@media (max-width: 860px) { .duas-formas { grid-template-columns: 1fr; } }

/* erro calmo: só uma frase curta embaixo e a borda um pouco mais quente, nada piscando */
.bf-msg { font-size: 12.5px; font-weight: 500; color: #A0533F; animation: bfm .35s var(--ease); }
@keyframes bfm { from { opacity: 0; transform: translateY(-3px); } }
.bf-msg:empty { display: none; }
.bf-c.erro input, .bf-c.erro textarea { border-color: rgba(160, 83, 63, .45); }
.obr { color: var(--ceu); font-weight: 700; }
.bf-teste { display: inline-flex; align-items: center; gap: 8px; margin: 18px auto 0; padding: 8px 14px; border-radius: 999px; border: 1px dashed rgba(12, 50, 121, .35); color: var(--ceu); font-size: 13px; font-weight: 600; }
.bf-teste i { width: 26px; height: 15px; border-radius: 999px; background: rgba(12, 50, 121, .18); position: relative; transition: background .25s; }
.bf-teste i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.bf-teste.on { border-style: solid; background: rgba(12, 50, 121, .06); }
.bf-teste.on i { background: var(--ceu); }
.bf-teste.on i::after { transform: translateX(11px); }
.bf-lado { display: flex; flex-direction: column; }

/* ---------- o briefing numa janela fixa por cima do site ---------- */
html.janela-aberta { overflow: hidden; }
.janela-bf { width: min(1180px, 94vw); height: min(880px, 92vh); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--nuvem); box-shadow: 0 60px 120px -40px rgba(3, 12, 40, .6); }
.janela-bf::backdrop { background: rgba(12, 50, 121, .42); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.janela-bf[open] { animation: jb .55s var(--ease); }
@keyframes jb { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.janela-bf iframe { display: block; width: 100%; height: 100%; border: 0; }
.jb-x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ceu); font-size: 26px; line-height: 1; box-shadow: 0 10px 24px -12px rgba(12, 50, 121, .5); transition: background .25s, transform .4s var(--ease); }
.jb-x:hover { background: var(--ceu); color: var(--nuvem); transform: rotate(90deg); }
@media (max-width: 860px) { .janela-bf { width: 100vw; height: 100dvh; border-radius: 0; } }
/* dentro da janela: sem cabeçalho, mais compacto */
html.embed .topo { display: none; }
html.embed .bf { padding: clamp(28px, 5vh, 56px) 0 40px; }
html.embed .bf-lado { top: 28px; }
html.embed .bf-lado .titulo { font-size: clamp(34px, min(4vw, 7.4vh), 60px); }
html.embed .bf-av { width: clamp(120px, 12vw, 170px); height: clamp(120px, 12vw, 170px); }
.bf-fechar[hidden] { display: none; }
.bf-fechar { border: 1px solid rgba(12, 50, 121, .25); color: var(--ceu); }
html.embed .bf .wrap { padding-right: calc(var(--pad) + 34px); }
.bf-obr-nota { margin-left: 12px; font-weight: 500; letter-spacing: 0; color: var(--g2); }

/* ---------- briefing v2: projeto escolhido, adicionais ---------- */
.bf-tem-id[hidden], .bf-conteudo[hidden], .bf-arq-marca[hidden], .bf-ad-qtd[hidden] { display: none; }
.bf-nota { margin-top: -6px; font-size: 14.5px; color: var(--g2); }
/* adicionais: 3 cartões lado a lado; escolhido = cartão azul (como o plano em destaque nos serviços) */
.bf-adic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bf-ad { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 14px 14px; border-radius: 16px; border: 1px solid rgba(31, 37, 49, .13); background: var(--nuvem); cursor: pointer; transition: background .35s var(--ease), border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.bf-ad:hover { border-color: rgba(12, 50, 121, .35); transform: translateY(-2px); box-shadow: 0 18px 34px -26px rgba(12, 50, 121, .55); }
.bf-ad > input { position: absolute; opacity: 0; pointer-events: none; }
.bf-ad b { font-size: 15.5px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--grafite); transition: color .3s; }
.bf-ad em { margin-bottom: 6px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--ceu); white-space: nowrap; transition: color .3s; }
.bf-ad em .cada { font-size: 11.5px; font-weight: 500; opacity: .6; }
.bf-ad > small { flex: 1; font-size: 13px; line-height: 1.42; color: var(--g2); transition: color .3s; }
/* botão do pé: "+ Adicionar" → "✓ Adicionado" */
.bf-ad-bt { display: flex; align-items: center; justify-content: center; height: 34px; margin-top: 12px; border-radius: 999px; border: 1px solid rgba(12, 50, 121, .25); font-size: 13.5px; font-weight: 600; color: var(--ceu); transition: background .3s, border-color .3s, color .3s; }
.bf-ad-bt::before { content: '+  Adicionar'; white-space: pre; }
.bf-ad:hover .bf-ad-bt { border-color: var(--ceu); }
.bf-ad:has(> input:focus-visible) { outline: 2px solid var(--ceu); outline-offset: 2px; }
/* escolhido */
.bf-ad:has(> input:checked), .bf-ad-qtd.on { background: var(--ceu); border-color: var(--ceu); box-shadow: 0 20px 40px -26px rgba(12, 50, 121, .8); }
.bf-ad:has(> input:checked) b, .bf-ad-qtd.on b, .bf-ad:has(> input:checked) em, .bf-ad-qtd.on em { color: var(--nuvem); }
.bf-ad:has(> input:checked) > small, .bf-ad-qtd.on > small { color: var(--n2); }
.bf-ad:has(> input:checked) .bf-ad-bt { background: var(--nuvem); border-color: var(--nuvem); }
.bf-ad:has(> input:checked) .bf-ad-bt::before { content: '✓  Adicionado'; }
/* páginas extras: contador no pé, do mesmo tamanho do botão dos outros */
.bf-ad-qtd { cursor: default; }
.bf-qtd { display: flex; align-items: center; justify-content: space-between; height: 34px; margin-top: 12px; padding: 0 3px; border-radius: 999px; border: 1px solid rgba(12, 50, 121, .25); transition: border-color .3s; }
.bf-qtd button { width: 28px; height: 28px; border-radius: 50%; color: var(--ceu); font-size: 16px; font-weight: 700; line-height: 1; transition: background .25s, color .25s; }
.bf-qtd button:hover { background: rgba(12, 50, 121, .08); }
.bf-qtd output { min-width: 1.2em; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--grafite); transition: color .3s; }
.bf-ad-qtd.on .bf-qtd { border-color: var(--nfio); }
.bf-ad-qtd.on .bf-qtd button { color: var(--nuvem); }
.bf-ad-qtd.on .bf-qtd button:hover { background: rgba(248, 249, 241, .12); }
.bf-ad-qtd.on .bf-qtd output { color: var(--nuvem); }
@media (max-width: 560px) { .bf-adic { grid-template-columns: 1fr; } .bf-ad > small { flex: none; } }

/* ---------- briefing na janela: tudo cabe na tela, sem rolar ---------- */
html.embed, html.embed body { height: 100%; overflow: hidden; }
html.embed .bf { height: 100%; padding: clamp(22px, 4vh, 40px) 0; }
html.embed .bf .wrap.bf-grade { height: 100%; }
html.embed .bf-lado { position: static; align-self: center; }
html.embed .bf-sub { display: none; }
html.embed .bf-guia { margin-top: clamp(16px, 3vh, 30px); }
html.embed .bf-form { display: flex; flex-direction: column; height: 100%; max-height: 100%; }
html.embed .bf-topo { margin-bottom: clamp(12px, 2.4vh, 24px); }
html.embed .bf-passo.on { flex: 1; min-height: 0; overflow-y: auto; align-content: start; gap: clamp(12px, 1.9vh, 18px); padding: 2px 6px 2px 2px; margin: -2px -6px -2px -2px; }
html.embed .bf-fim { flex: 1; min-height: 0; }
html.embed .bf-nav { margin-top: clamp(14px, 2.4vh, 26px); padding-top: clamp(12px, 2vh, 20px); }

/* ---------- barra de rolagem com a cara da Unjo ---------- */
html { scrollbar-width: thin; scrollbar-color: rgba(12, 50, 121, .55) transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(12, 50, 121, .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(12, 50, 121, .45); border: 3px solid transparent; border-radius: 999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--ceu); }

/* ---------- fim da página inicial: um botão só, leva pros serviços ---------- */
.cta-unico { display: inline-flex; align-items: center; gap: 28px; margin-top: 40px; padding: 14px 14px 14px 30px; border-radius: 99px; background: var(--ceu); color: var(--nuvem); text-align: left; box-shadow: 0 26px 50px -30px rgba(12, 50, 121, .7); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s; }
.cta-unico:hover { transform: translateY(-3px); background: var(--ceu-h); box-shadow: 0 34px 60px -30px rgba(12, 50, 121, .8); }
.cta-txt { display: flex; flex-direction: column; gap: 3px; }
.cta-txt b { font-size: clamp(18px, 1.5vw, 21px); font-weight: 700; letter-spacing: -.02em; }
.cta-txt small { font-size: 14px; color: var(--n2); }
.cta-unico .seta { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; background: var(--nuvem); color: var(--ceu); }
.cta-unico:hover .seta { transform: translateX(4px); }
@media (max-width: 560px) { .cta-unico { gap: 16px; padding-left: 22px; } .cta-txt small { font-size: 13px; } }

/* ---------- serviços: banner de campanha (troca sozinho pela data; ver assets/banner.js) ---------- */
.sv-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: clamp(180px, 22vh, 230px); margin-bottom: clamp(44px, 7vh, 80px); padding: clamp(26px, 3vw, 40px) clamp(26px, 3.4vw, 52px); border-radius: 26px; overflow: hidden; isolation: isolate; color: var(--nuvem); background: var(--ceu) center right / cover no-repeat; box-shadow: 0 30px 60px -40px rgba(12, 50, 121, .7); }
.sv-banner[hidden] { display: none; }
.sv-banner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 50, 121, .55), transparent 55%); }
.bn-txt { max-width: 34em; }
.bn-sel { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--n2); }
.bn-sel i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bn-tit { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.bn-sub { margin-top: 10px; font-size: 15.5px; color: var(--n2); }
.sv-banner .btn { flex: none; background: var(--nuvem); color: var(--ceu); }
.sv-banner .btn:hover { background: #fff; }
/* Black Friday: noite acima das nuvens, o desconto é a coisa maior */
.bn-bf { background-color: #05070D; }
.bn-bf::before { background: linear-gradient(90deg, rgba(5, 7, 13, .7), transparent 60%); }
.bn-bf .bn-grid { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.bn-off { flex: none; font-size: clamp(64px, 7.4vw, 118px); line-height: .8; font-weight: 700; color: var(--nuvem); }
/* menos = barrinha fina desenhada (o glifo "−" grudava no 2), número grande, % menor no alto */
.bn-num { display: flex; align-items: flex-start; letter-spacing: -.045em; }
.bn-menos { flex: none; align-self: center; width: .26em; height: .07em; margin: .02em .1em 0 0; border-radius: 99px; background: currentColor; }
/* coluna do lado do 20: % em cima, "em todos os planos" embaixo, na linha de base do número (trava tudo num bloco só) */
.bn-lado { display: flex; flex-direction: column; justify-content: space-between; align-self: stretch; margin-left: .07em; letter-spacing: 0; }
.bn-pct { font-size: .48em; line-height: .8; margin-top: .02em; }
.bn-off small { display: block; padding-left: .1em; font-size: 11.5px; line-height: 1.25; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; color: var(--n2); }
/* "Black Friday" no mesmo lugar e no mesmo estilo do "Unjo Studio" do outro banner: canto esquerdo, em cima do número (no carrossel não pula) */
.bn-corpo { display: flex; flex-direction: column; align-items: flex-start; }
.bn-bf .bn-sel { margin-bottom: clamp(14px, 1.4vw, 20px); }
.bn-bf .bn-grid { align-items: flex-start; }                 /* topo do número = topo do título */
.bn-bf .bn-tit { margin-top: -.06em; }
.bn-conta { display: flex; gap: 6px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.bn-conta span { min-width: 50px; padding: 7px 8px 6px; border-radius: 10px; text-align: center; font-size: 18px; font-weight: 700; background: rgba(248, 249, 241, .1); border: 1px solid var(--nfio); }
.bn-conta span small { display: block; font-size: 10px; font-weight: 500; color: var(--n3); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) {
  .sv-banner { flex-direction: column; align-items: flex-start; background-position: 70% center; }
  .sv-banner::before { background: linear-gradient(180deg, rgba(12, 50, 121, .65), rgba(12, 50, 121, .2)); }
  .bn-bf::before { background: linear-gradient(180deg, rgba(5, 7, 13, .75), rgba(5, 7, 13, .3)); }
  .bn-bf .bn-grid { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* celular: a foto do "O começo" passava da borda e deixava a página mais larga que a tela */
.intro { overflow-x: clip; }

/* ==========================================================
   CELULAR (01/12): menu de risquinhos, fotos menores, botões e banner
   ========================================================== */
.topo-menu { display: none; }
html.sem-rolar { overflow: hidden; }
@media (max-width: 860px) {
  .topo-menu { position: relative; display: block; flex: none; width: 44px; height: 44px; margin: 0 -10px 0 6px; color: inherit; }
  .topo-menu i { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
  .topo-menu i:first-child { top: 17px; }
  .topo-menu i:last-child { top: 25px; }
  .topo .topo-nav { margin-left: auto; }
  .topo.menu-aberto { background: var(--nuvem); color: var(--ceu); border-bottom-color: var(--fio); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topo.menu-aberto .topo-logo { opacity: 1; transform: none; pointer-events: auto; }
  .topo.menu-aberto .topo-menu i:first-child { top: 21px; transform: rotate(45deg); }
  .topo.menu-aberto .topo-menu i:last-child { top: 21px; transform: rotate(-45deg); }
  .topo.menu-aberto .topo-nav { position: fixed; inset: 64px 0 0 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom)); background: var(--nuvem); }
  .topo.menu-aberto .topo-nav a:not(.btn) { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--fio); font-size: 34px; font-weight: 700; letter-spacing: -.035em; color: var(--grafite); opacity: 1; text-decoration: none; animation: menu-entra .5s var(--ease) both; }
  .topo.menu-aberto .topo-nav a:not(.btn)::after { content: '→'; font-size: 22px; font-weight: 500; color: var(--ceu); }
  .topo.menu-aberto .topo-nav a[aria-current] { color: var(--ceu); }
  .topo.menu-aberto .topo-nav a:nth-child(2) { animation-delay: .05s; }
  .topo.menu-aberto .topo-nav a:nth-child(3) { animation-delay: .1s; }
  .topo.menu-aberto .topo-nav .btn { margin-top: auto; justify-content: center; padding: 19px; font-size: 16px; border-radius: 14px; background: var(--ceu); color: var(--nuvem); animation: menu-entra .5s .15s var(--ease) both; }
  /* "O começo": a foto do homem ocupava a tela inteira */
  .intro-fotos { height: min(58vh, 480px); margin-top: 24px; }
  .f-balao { width: 26%; top: 6%; }
  /* banner dos serviços: texto em cima, nuvens embaixo, botão azul sobre a nuvem */
  .sv-banner { min-height: 0; padding: 24px 22px 22px; gap: 18px; background-position: 72% 100%; }
  .sv-banner::before { background: linear-gradient(180deg, rgba(12, 50, 121, .9) 0%, rgba(12, 50, 121, .65) 50%, rgba(12, 50, 121, .05) 100%); }
  .sv-banner:not(.bn-bf) .btn { background: var(--ceu); color: var(--nuvem); box-shadow: 0 14px 30px -14px rgba(12, 50, 121, .8); }
  .bn-bf::before { background: linear-gradient(180deg, rgba(5, 7, 13, .9) 0%, rgba(5, 7, 13, .6) 55%, rgba(5, 7, 13, .15) 100%); }
  .bn-tit { font-size: 27px; }
  .bn-sub { font-size: 14.5px; }
  .bn-off { font-size: 72px; }
  .bn-off small { font-size: 10px; letter-spacing: .16em; }
}
@keyframes menu-entra { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) {
  .cta-unico { gap: 14px; padding: 10px 10px 10px 22px; }
  .cta-txt b { font-size: 16.5px; white-space: nowrap; }
  .cta-unico .seta { width: 44px; height: 44px; font-size: 18px; }
  .aj-nuvem { width: 60px; height: 60px; }
  .aj-balao { right: 56px; bottom: 38px; font-size: 13px; }
}
html.sem-rolar .ajudante { opacity: 0; pointer-events: none; }
/* depoimento comprido (ex.: Gabriel): balão mais largo. Marque com data-longo no <figcaption> */
.dp-balao[data-longo] { width: min(410px, calc(100vw - 32px)); }
/* depoimento com link pro projeto: nome à esquerda, "Ver projeto ↗" à direita na mesma linha (pílula igual à tag do topo) */
.dp-quem:has(.dp-ver) { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dp-quem > span { display: flex; flex-direction: column; gap: 2px; }
.dp-ver { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--ceu); background: rgba(12, 50, 121, .07); transition: background .25s, color .25s; }
.dp-ver i { font-style: normal; transition: transform .3s var(--ease); }
.dp-ver:hover { background: var(--ceu); color: var(--nuvem); }
.dp-ver:hover i { transform: translate(2px, -2px); }

/* ---------- banner em carrossel (assets/banner.js) ---------- */
.bn-carrossel { display: grid; margin-bottom: clamp(44px, 7vh, 80px); }
.bn-carrossel > .sv-banner { grid-area: 1 / 1; margin-bottom: 0; }
.bn-carrossel.girando > .sv-banner { opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .7s; }
.bn-carrossel.girando > .sv-banner.on { z-index: 1; opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s; }
.bn-pontos { grid-row: 2; display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
.bn-pontos[hidden] { display: none; }
.bn-pontos button { position: relative; width: 22px; height: 22px; display: grid; place-items: center; transition: width .4s var(--ease); }
.bn-pontos button::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: rgba(31, 37, 49, .2); transition: width .4s var(--ease), background .3s; }
.bn-pontos button:hover::before { background: rgba(12, 50, 121, .45); }
.bn-pontos button.on { width: 46px; }
.bn-pontos button.on::before { width: 34px; background: rgba(12, 50, 121, .16); }
.bn-pontos i { position: absolute; left: 6px; top: 50%; width: 0; height: 8px; margin-top: -4px; border-radius: 99px; background: var(--ceu); }
.bn-pontos button.on i { animation: bnBarra var(--giro, 7s) linear forwards; }
@keyframes bnBarra { from { width: 8px; } to { width: 34px; } }
@media (prefers-reduced-motion: reduce) { .bn-carrossel.girando > .sv-banner { transform: none; } }

/* ---------- campanha: preço antigo riscado (assets/servicos.js) ---------- */
.pl-antes { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--g3); }
.pl-antes s { text-decoration-thickness: 1.5px; }
.pl-antes em { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 7px; border-radius: 99px; background: var(--ceu); color: var(--nuvem); }
.pl-antes + .pl-preco { margin-top: 4px; }
.plano.destaque .pl-antes { color: var(--n3); }
.plano.destaque .pl-antes em { background: var(--nuvem); color: var(--ceu); }
.plano-grande .pl-antes { margin-top: auto; padding-top: 22px; }
.plano-grande .pl-antes + .pl-preco { margin-top: 4px; padding-top: 0; }
.mc-pe .pl-antes { flex-basis: 100%; margin: 0 0 -6px; }

/* ---------- planos: o que NÃO vai (check apagado) ---------- */
.plano li.nao { color: var(--g3); }
.plano li.nao::before { color: currentColor; opacity: .6; }
.plano li:not(.nao) + li.nao { margin-top: 6px; }
.plano.destaque li.nao { color: var(--n3); }
.plano.destaque li.nao::before { color: currentColor; }

/* ---------- briefing na janela: o cartão nunca passa da janela (se faltar espaço, o passo rola por dentro) ---------- */
html.embed .bf .wrap.bf-grade { grid-template-rows: minmax(0, 1fr); }
html.embed .bf-form { min-height: 0; }
html.embed .bf-c textarea { min-height: 0; }                       /* a altura vem do rows: 2 linhas = caixa de 2 linhas */
/* celular: a janela ocupa a tela toda e a página rola normal (antes o Continuar ficava fora da tela, sem como chegar) */
@media (max-width: 860px) {
  html.embed, html.embed body { height: auto; overflow: visible; }
  html.embed .bf, html.embed .bf .wrap.bf-grade, html.embed .bf-form { height: auto; max-height: none; }
  html.embed .bf .wrap.bf-grade { grid-template-rows: none; }
  html.embed .bf-passo.on { overflow: visible; }
}
.bf-adic:has(> .bf-ad-qtd[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* só identidade: 2 cartões */
.bf-frase-c { margin-bottom: clamp(2px, 1vh, 10px); }

/* passo "O projeto" (só escolhas): mais respiro entre as perguntas, pra ocupar o cartão sem ficar vazio embaixo */
.bf-escolhas.on { gap: clamp(18px, 3.2vh, 30px); }
html.embed .bf-escolhas.on { gap: clamp(16px, 3vh, 30px); }
.bf-escolhas .bf-c { gap: 10px; }
.bf-escolhas .bf-c > span { font-size: 15.5px; }
.bf-escolhas .bf-seg i { padding: 12px 8px; font-size: 15px; }
/* "Data certa": o campo da data aparece na linha da pergunta, à direita */
.bf-prazo > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.bf-prazo .bf-data { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--g2); animation: bfm .35s var(--ease); }
.bf-prazo .bf-data[hidden] { display: none; }
/* 4 opções no celular: 2 × 2, a bolinha anda na grade */
@media (max-width: 560px) {
  .bf-seg.quatro { grid-template-columns: 1fr 1fr; border-radius: 24px; }
  .bf-seg.quatro::before { bottom: auto; width: calc((100% - 8px) / 2); height: calc((100% - 8px) / 2); }
  .bf-seg.quatro:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
  .bf-seg.quatro:has(label:nth-child(3) input:checked)::before { transform: translateY(100%); }
  .bf-seg.quatro:has(label:nth-child(4) input:checked)::before { transform: translate(100%, 100%); }
}
/* tela baixa (notebook pequeno): o passo das escolhas aperta o respiro pra caber sem rolar */
@media (max-height: 700px) {
  html.embed .bf-escolhas.on { gap: 12px; }
  html.embed .bf-escolhas .bf-c { gap: 7px; }
  html.embed .bf-escolhas .bf-seg i { padding: 9px 8px; }
}
@media (max-height: 620px) {
  html.embed .bf-escolhas.on { gap: 8px; }
  html.embed .bf-escolhas .bf-c { gap: 5px; }
  html.embed .bf-escolhas .bf-seg i { padding: 7px 8px; font-size: 14px; }
  html.embed .bf-escolhas .bf-frase { font-size: 22px; }
}

/* menu do tipo ("Quero [um portfólio ▾]"): botão na frase + lista com a cara do site (assets/briefing.js, MENU DO TIPO) */
.bf-frase.com-menu select { display: none; }
.bf-tipo-bt { display: inline-flex; align-items: center; gap: .3em; margin: 0 .04em; padding: 0 .08em 0 .04em; border-bottom: 2px solid rgba(12, 50, 121, .25); font: inherit; letter-spacing: inherit; line-height: 1.25; color: var(--ceu); white-space: nowrap; transition: border-color .25s, color .25s; }
.bf-tipo-bt:hover, .bf-tipo-bt[aria-expanded="true"] { border-color: var(--ceu); }
.bf-tipo-bt.vazio { color: rgba(12, 50, 121, .45); }
.bf-tipo-bt i { flex: none; width: .5em; height: .5em; margin-top: .08em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230C3279' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .35s var(--ease); }
.bf-tipo-bt[aria-expanded="true"] i { transform: rotate(180deg); }
.bf-tipo-bt:focus-visible { outline: 2px solid rgba(12, 50, 121, .35); outline-offset: 3px; border-radius: 4px; }
.bf-c.erro .bf-tipo-bt { border-color: rgba(160, 83, 63, .55); }
.bf-menu { position: fixed; inset: auto; top: 0; left: 0; margin: 0; width: max-content; min-width: 250px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 6px; border: 1px solid var(--fio); border-radius: 16px; background: #fff; color: var(--grafite);
  font: 600 15px/1.3 'Instrument Sans', sans-serif; letter-spacing: -.005em; box-shadow: 0 26px 50px -24px rgba(12, 50, 121, .5), 0 2px 8px rgba(12, 50, 121, .08); }
.bf-menu:popover-open { animation: bfMenu .24s var(--ease); }
@keyframes bfMenu { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.bf-menu [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.bf-menu [role=option]:hover, .bf-menu [role=option]:focus { outline: none; background: rgba(12, 50, 121, .06); color: var(--ceu); }
.bf-menu [role=option][aria-selected="true"] { background: var(--ceu); color: var(--nuvem); }
.bf-menu [role=option] i { flex: none; width: 13px; height: 13px; }
.bf-menu [role=option][aria-selected="true"] i { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3l2.6 2.6L10 3.4' fill='none' stroke='%23F8F9F1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.bf-menu hr { margin: 6px 10px; border: 0; border-top: 1px solid var(--fio); }
.bf-menu [data-v="Ainda não sei"] { font-weight: 500; color: var(--g2); }
.bf-menu [data-v="Ainda não sei"][aria-selected="true"] { color: var(--nuvem); }
@media (prefers-reduced-motion: reduce) { .bf-menu:popover-open { animation: none; } }

/* ⓘ do lado da pergunta + balãozinho azul com a explicação (assets/briefing.js) */
.bf-info { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 7px; vertical-align: -2px; border-radius: 50%; border: 1.5px solid rgba(12, 50, 121, .35); color: var(--ceu); font: 700 10.5px/1 'Instrument Sans', sans-serif; transition: background .25s, color .25s, border-color .25s; }
.bf-info:hover, .bf-info[aria-describedby] { background: var(--ceu); border-color: var(--ceu); color: var(--nuvem); }
.bf-info:focus-visible { outline: 2px solid var(--ceu); outline-offset: 2px; }
.bf-dica { position: fixed; inset: auto; top: 0; left: 0; margin: 0; width: max-content; max-width: 270px; padding: 10px 14px; overflow: visible; border: 0; border-radius: 12px; background: var(--ceu); color: var(--nuvem); font: 500 13.5px/1.45 'Instrument Sans', sans-serif; box-shadow: 0 18px 36px -18px rgba(12, 50, 121, .7); pointer-events: none; }
.bf-dica::after { content: ''; position: absolute; left: var(--seta, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--ceu); border-radius: 0 0 3px 0; transform: rotate(45deg); }
.bf-dica.baixo::after { bottom: auto; top: -5px; border-radius: 3px 0 0 0; }
.bf-dica:popover-open { animation: bfDica .2s var(--ease); }
@keyframes bfDica { from { opacity: 0; transform: translateY(4px); } }
.bf-dica:not([popover]) { display: none; }
.bf-dica.on { display: block; }
@media (prefers-reduced-motion: reduce) { .bf-dica:popover-open { animation: none; } }

/* passo "O projeto": mais respiro antes de cada pergunta de pílula (Lucas: "em cima do A marca e dos textos tá apertado") */
.bf-escolhas .bf-tem-id, .bf-escolhas .bf-conteudo { margin-top: 10px; }
@media (max-height: 700px) { html.embed .bf-escolhas .bf-tem-id, html.embed .bf-escolhas .bf-conteudo { margin-top: 12px; } }
@media (max-height: 620px) { html.embed .bf-escolhas .bf-tem-id, html.embed .bf-escolhas .bf-conteudo { margin-top: 6px; } }

/* ---------- passo Referências: MINI EXPLORADOR de arquivos (ref.: seletor de imagens da Plume) ---------- */
.bf-exp { position: relative; display: flex; flex-direction: column; height: 340px; min-height: 0; border: 1px solid rgba(31, 37, 49, .14); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 18px 40px -32px rgba(12, 50, 121, .45); }
html.embed .bf-arq-passo.on { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
html.embed .bf-exp { height: auto; min-height: 200px; }
.bf-exp-barra { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; height: 38px; padding: 0 14px; background: var(--nuvem); border-bottom: 1px solid var(--fio); }
.bf-exp-pontos { display: flex; gap: 6px; }
.bf-exp-pontos i { width: 10px; height: 10px; border-radius: 50%; background: rgba(31, 37, 49, .13); }
.bf-exp-barra b { font-size: 13px; font-weight: 600; color: var(--g2); }
.bf-exp-total { justify-self: end; font-size: 12px; color: var(--g3); white-space: nowrap; }
.bf-exp-corpo { flex: 1; min-height: 0; display: flex; }
.bf-exp-lado { flex: none; display: flex; flex-direction: column; gap: 3px; width: 172px; padding: 10px 8px; background: rgba(12, 50, 121, .025); border-right: 1px solid var(--fio); }
.bf-exp-pasta { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 10px; text-align: left; color: var(--grafite); transition: background .2s, color .2s; }
.bf-exp-pasta[hidden] { display: none; }
.bf-exp-pasta svg { flex: none; width: 18px; height: 18px; color: var(--ceu); transition: color .2s; }
.bf-exp-pasta span { flex: 1; min-width: 0; display: grid; }
.bf-exp-pasta b { font-size: 13.5px; font-weight: 600; }
.bf-exp-pasta small { font-size: 11px; color: var(--g3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.bf-exp-pasta em { flex: none; min-width: 22px; padding: 2px 6px; border-radius: 99px; text-align: center; font-style: normal; font-size: 11.5px; font-weight: 700; background: rgba(12, 50, 121, .08); color: var(--ceu); transition: background .2s, color .2s; }
.bf-exp-pasta:hover { background: rgba(12, 50, 121, .06); }
.bf-exp-pasta.on { background: var(--ceu); color: var(--nuvem); }
.bf-exp-pasta.on svg, .bf-exp-pasta.on em { color: var(--nuvem); }
.bf-exp-pasta.on small { color: var(--n2); }
.bf-exp-pasta.on em { background: rgba(248, 249, 241, .18); }
.bf-exp-area { position: relative; flex: 1; min-width: 0; min-height: 0; }
.bf-exp-grade { height: 100%; overflow-y: auto; padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px 8px; align-content: start; }
.bf-exp-grade.vazia { place-items: center; align-content: center; grid-template-columns: 1fr; }
.bf-exp-item { min-width: 0; animation: bfm .3s var(--ease); }
.bf-exp-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: rgba(12, 50, 121, .05); }
.bf-exp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bf-exp-doc { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; }
.bf-exp-doc i { width: 26px; height: 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'%3E%3Cpath d='M3 1h13l8 8v20a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2z' fill='%23fff' stroke='%230C3279' stroke-opacity='.45' stroke-width='1.5'/%3E%3Cpath d='M16 1v6a2 2 0 0 0 2 2h6' fill='none' stroke='%230C3279' stroke-opacity='.45' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.bf-exp-doc b { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ceu); }
.bf-exp-tira { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--grafite); font-size: 15px; line-height: 1; box-shadow: 0 2px 6px rgba(12, 50, 121, .18); opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.bf-exp-tira:hover { background: var(--ceu); color: var(--nuvem); }
.bf-exp-item:hover .bf-exp-tira, .bf-exp-tira:focus-visible { opacity: 1; }
@media (hover: none) { .bf-exp-tira { opacity: 1; } }
.bf-exp-nome { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--grafite); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-exp-item small { display: block; font-size: 11px; color: var(--g3); }
.bf-exp-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; border: 1.5px dashed rgba(12, 50, 121, .3); color: var(--ceu); transition: background .2s, border-color .2s; }
.bf-exp-add svg { width: 18px; height: 18px; }
.bf-exp-add b { font-size: 12px; font-weight: 600; }
.bf-exp-add small { font-size: 10.5px; color: var(--g3); }
.bf-exp-add:hover { background: rgba(12, 50, 121, .05); border-color: var(--ceu); }
.bf-exp-add.grande { aspect-ratio: auto; width: min(100%, 330px); padding: 22px 26px; gap: 6px; border-radius: 14px; text-align: center; }
.bf-exp-add.grande svg { width: 24px; height: 24px; margin-bottom: 2px; }
.bf-exp-add.grande b { font-size: 14px; }
.bf-exp-add.grande small { font-size: 12px; line-height: 1.4; }
.bf-exp-solta { position: absolute; inset: 8px; display: grid; place-items: center; margin: 0; border-radius: 12px; border: 2px dashed var(--ceu); background: rgba(248, 249, 241, .94); color: var(--ceu); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s; }
.bf-exp.em-cima .bf-exp-solta { opacity: 1; }
@media (max-width: 860px) { html.embed .bf-arq-passo.on { grid-template-rows: none; } html.embed .bf-exp { height: 340px; } }
@media (max-width: 560px) {
  .bf-exp-corpo { flex-direction: column; }
  .bf-exp-lado { width: auto; flex-direction: row; padding: 8px; border-right: 0; border-bottom: 1px solid var(--fio); }
  .bf-exp-pasta { flex: 1; }
  .bf-exp-pasta small { display: none; }
  .bf-exp-grade { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

/* ---------- links de referência: campo grande + botão; cada link vira pílula com o ícone do site ---------- */
.bf-link-campo { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid rgba(31, 37, 49, .18); background: var(--nuvem); transition: border-color .2s, box-shadow .2s, background .2s; }
.bf-link-campo:focus-within { border-color: var(--ceu); background: #fff; box-shadow: 0 0 0 4px rgba(12, 50, 121, .08); }
.bf-link-campo > svg { flex: none; width: 18px; height: 18px; color: var(--ceu); opacity: .7; }
.bf .bf-c .bf-link-campo input[type=url].bf-link-input { flex: 1; min-width: 0; width: auto; padding: 8px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.bf-link-bt { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 10px; background: var(--ceu); color: var(--nuvem); font-size: 14px; font-weight: 600; transition: background .2s, opacity .2s; }
.bf-link-bt:hover:not(:disabled) { background: var(--ceu-h); }
.bf-link-bt:disabled { opacity: .3; cursor: default; }
.bf-link-bt svg { flex: none; display: block; width: 15px; height: 15px; opacity: .75; }   /* ícone do Enter, centralizado (o ↵ de texto ficava alto) */
.bf-c.erro .bf-link-campo { border-color: rgba(160, 83, 63, .45); }
.bf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; max-height: 76px; margin: 0; padding: 2px; overflow-y: auto; }
.bf-links:empty { display: none; }
.bf-link { display: inline-flex; align-items: center; max-width: 100%; border-radius: 999px; background: #fff; border: 1px solid rgba(12, 50, 121, .18); box-shadow: 0 6px 14px -10px rgba(12, 50, 121, .45); animation: bfm .3s var(--ease); }
.bf-link a { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 4px 2px 4px 7px; font-size: 12.5px; font-weight: 600; color: var(--grafite); }
.bf-link img, .bf-link .ico { flex: none; width: 14px; height: 14px; border-radius: 3px; }
.bf-link .ico { color: var(--ceu); }
.bf-link span { min-width: 0; max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-link a:hover span { color: var(--ceu); }
.bf-link button { flex: none; width: 20px; height: 20px; margin-right: 3px; border-radius: 50%; display: grid; place-items: center; color: var(--g2); font-size: 15px; line-height: 1; transition: background .2s, color .2s; }
.bf-link button:hover { background: rgba(12, 50, 121, .08); color: var(--ceu); }
.bf-link.pisca { animation: bfPisca .7s var(--ease); }
@keyframes bfPisca { 40% { background: rgba(12, 50, 121, .14); border-color: var(--ceu); } }
@media (max-width: 420px) { .bf-link-bt { padding: 0 12px; } .bf-link-bt svg { display: none; } .bf-link span { max-width: 130px; } }


/* =========================================================
   ENVIO DO BRIEFING: a janela vira o céu (assets/briefing-envio.js)
   foto real do mar de nuvens em duas camadas (fundo + nuvens da frente, a mesma foto maior);
   os arquivos saem de dentro das nuvens, boiam enquanto sobem e voam pro brilho do céu
   ========================================================= */
.bf-fim { display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 26px); }
.bf-fim[hidden] { display: none; }
.ev-ceu { position: relative; flex: none; height: clamp(240px, 42vh, 400px); min-height: 0; border-radius: 20px; overflow: hidden; isolation: isolate; background: #1B4FA8; box-shadow: 0 30px 60px -40px rgba(12, 50, 121, .7); animation: evEntra .8s var(--ease) both; }
html.embed .ev-ceu { flex: 1; height: auto; min-height: 170px; }
@keyframes evEntra { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.ev-foto, .ev-frente { position: absolute; background: url(img/envio-ceu.jpg) 50% 62% / cover no-repeat; }
.ev-foto { inset: -4%; animation: evDeriva 30s ease-in-out infinite alternate; transition: background-position 1.4s var(--ease), filter 1s; }
@keyframes evDeriva { to { transform: scale(1.07) translateY(1.5%); } }
/* nuvens da frente: a mesma foto maior e mais rápida, só a parte de baixo aparece (é dela que os arquivos saem) */
.ev-frente { z-index: 2; inset: -8% -12%; transform-origin: 50% 100%; transform: scale(1.3);
  -webkit-mask-image: linear-gradient(to bottom, transparent 68%, #000 88%); mask-image: linear-gradient(to bottom, transparent 68%, #000 88%);
  animation: evFrente 16s ease-in-out infinite alternate; transition: translate 1.4s var(--ease), filter 1s; }
@keyframes evFrente { from { transform: translateX(-2.5%) scale(1.3); } to { transform: translateX(2.5%) scale(1.34); } }
.ev-luz { position: absolute; z-index: 1; left: 50%; top: 20%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .6), rgba(200, 222, 255, .2) 34%, transparent 66%); opacity: .5; mix-blend-mode: screen; }
.ev-luz.pisca { animation: evPisca 1s var(--ease); }
@keyframes evPisca { 35% { opacity: 1; scale: 1.18; } }
.ev-voo { position: absolute; inset: 0; z-index: 1; }

/* o cartãozinho que sobe */
.ev-card { position: absolute; left: 50%; top: 0; will-change: transform, opacity; }
.ev-bob { display: grid; justify-items: center; gap: 7px; animation: evBob 3.2s ease-in-out infinite; }
@keyframes evBob { 50% { transform: translateY(-7px) rotate(-1.5deg); } }
.ev-mini { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 20px 34px -16px rgba(3, 12, 40, .6), 0 0 0 1px rgba(255, 255, 255, .6); }
.ev-img img { display: block; width: 100%; height: 100%; object-fit: cover; border: 4px solid #fff; border-radius: 14px; }
.ev-arq { display: grid; place-items: center; background: var(--nuvem); }
.ev-arq::before { content: ''; position: absolute; top: 0; right: 0; width: 22px; height: 22px; background: linear-gradient(225deg, transparent 50%, rgba(12, 50, 121, .12) 50%); border-bottom-left-radius: 6px; }
.ev-arq b { font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--ceu); }
.ev-doc { display: grid; align-content: start; gap: 7px; padding: 16px 14px; }
.ev-doc i { display: block; height: 5px; border-radius: 5px; background: rgba(12, 50, 121, .16); }
.ev-doc i:first-child { width: 55%; height: 7px; background: var(--ceu); }
.ev-doc i:nth-child(3) { width: 80%; } .ev-doc i:nth-child(5) { width: 62%; }
.ev-pdf { display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: var(--ceu) url(img/pdf/capa.jpg) 50% 40% / cover; color: var(--nuvem); }
.ev-pdf small { font-size: 7.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ev-pdf b { overflow: hidden; font-size: 14px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.ev-bob > span { max-width: 128px; padding: 3px 10px; border-radius: 99px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; color: var(--nuvem); background: rgba(12, 50, 121, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ✓ no céu quando termina */
.ev-ok { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding-bottom: 6%; opacity: 0; pointer-events: none; }
.ev-check { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--nuvem); scale: .5; box-shadow: 0 16px 34px -14px rgba(3, 12, 40, .6); }
.ev-check svg { width: 34px; height: 34px; fill: none; stroke: var(--ceu); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.ev-resumo { margin: 0; text-align: center; color: var(--nuvem); text-shadow: 0 2px 18px rgba(3, 12, 40, .45); }
.ev-resumo small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--n2); }
.ev-resumo b { display: block; margin-top: 2px; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.ev-resumo em { display: block; margin-top: 5px; font-style: normal; font-size: 13px; font-weight: 500; color: var(--n2); }

/* textos embaixo do céu */
.ev-txt { display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 22px); }
.bf-fim-t { margin: 0; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; color: var(--grafite); }
.bf-fim-t span { display: block; color: var(--ceu); }
.ev-andamento { display: grid; gap: 10px; }
.ev-linha { display: flex; align-items: baseline; gap: 16px; margin: 0; }
.bf-fim-p { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; color: var(--grafite); }
.ev-pct { font-size: 15px; font-weight: 700; color: var(--ceu); font-variant-numeric: tabular-nums; }
.bf-prog { position: relative; height: 6px; border-radius: 6px; background: rgba(12, 50, 121, .1); overflow: hidden; }
.bf-prog i { position: relative; display: block; width: 0; height: 100%; border-radius: 6px; background: var(--ceu); overflow: hidden; transition: width .7s var(--ease), background .6s; }
.bf-prog i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); translate: -100% 0; animation: evBrilho 1.6s ease-in-out infinite; }
@keyframes evBrilho { to { translate: 100% 0; } }
.ev-frase { min-height: 1.4em; margin: 0; font-size: 13.5px; color: var(--g2); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .35s var(--ease); }
.ev-frase.on { opacity: 1; transform: none; }
.ev-passos { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ev-passos li { padding: 14px 14px 15px; border-radius: 14px; border: 1px solid var(--fio); background: var(--nuvem); font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--grafite); }
.ev-passos b { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ceu); }
.ev-bts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-bts:not(:has(> :not([hidden]))) { display: none; }

/* pronto: o céu encolhe, sobe acima das nuvens e mostra o ✓ */
.bf-fim[data-estado=pronto] .ev-andamento { display: none; }
.bf-fim[data-estado=pronto] .ev-passos { display: grid; }
.bf-fim[data-estado=pronto] .ev-passos li { animation: evSobe .7s var(--ease) both; }
.bf-fim[data-estado=pronto] .ev-passos li:nth-child(2) { animation-delay: .1s; }
.bf-fim[data-estado=pronto] .ev-passos li:nth-child(3) { animation-delay: .2s; }
.bf-fim[data-estado=pronto] .ev-bts { animation: evSobe .7s .3s var(--ease) both; }
.bf-fim[data-estado=pronto] .bf-fim-t { animation: evSobe .7s var(--ease) both; }
@keyframes evSobe { from { opacity: 0; transform: translateY(12px); } }
html.embed .bf-fim[data-estado=pronto] .ev-ceu { flex: none; height: clamp(190px, 40vh, 360px); }
.bf-fim[data-estado=pronto] .ev-ceu { height: clamp(220px, 34vh, 320px); }
.bf-fim[data-estado=pronto] .ev-foto { background-position: 50% 22%; }
.bf-fim[data-estado=pronto] .ev-frente { translate: 0 38%; }
.bf-fim[data-estado=pronto] .ev-ok { opacity: 1; transition: opacity .6s .3s; }
.bf-fim[data-estado=pronto] .ev-check { scale: 1; transition: scale .8s .35s cubic-bezier(.3, 1.6, .5, 1); animation: evAnel 1.6s .9s ease-out; }
.bf-fim[data-estado=pronto] .ev-check svg { stroke-dashoffset: 0; transition: stroke-dashoffset .55s .75s var(--ease); }
@keyframes evAnel { from { box-shadow: 0 16px 34px -14px rgba(3, 12, 40, .6), 0 0 0 0 rgba(248, 249, 241, .55); } to { box-shadow: 0 16px 34px -14px rgba(3, 12, 40, .6), 0 0 0 26px rgba(248, 249, 241, 0); } }
.bf-fim[data-estado=pronto] .ev-resumo { animation: evSobe .8s .55s var(--ease) both; }

/* erro: o céu fecha um pouco, nada piscando */
.bf-fim[data-estado=erro] .ev-foto, .bf-fim[data-estado=erro] .ev-frente { filter: saturate(.35) brightness(.88); }
.bf-fim[data-estado=erro] .ev-frase, .bf-fim[data-estado=erro] .ev-pct { display: none; }
.bf-fim[data-estado=erro] .bf-fim-p { white-space: normal; color: var(--g2); }
.bf-fim[data-estado=erro] .bf-prog i { background: #A0533F; }
.bf-fim[data-estado=erro] .bf-prog i::after, .bf-fim[data-estado=pronto] .bf-prog i::after { display: none; }

@media (max-width: 560px) {
  .ev-passos { grid-template-columns: 1fr; gap: 6px; }
  .ev-passos li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; }
  .ev-passos b { margin: 0; }
  .ev-mini { width: 70px; height: 70px; }
}
@media (max-width: 860px) { html.embed .ev-ceu { flex: none; height: clamp(240px, 36vh, 340px); } }
@media (prefers-reduced-motion: reduce) {
  .ev-foto, .ev-frente, .ev-bob, .bf-prog i::after { animation: none; }
}

/* pronto v2 (Lucas): sem os 3 cards; tudo centralizado — título, frase curta, WhatsApp grandão e "Voltar pro site" como link */
.ev-sub { display: none; max-width: 420px; margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--g2); }
.ev-voltar { padding: 4px 2px; border: 0; background: none; font: 600 14.5px 'Instrument Sans', sans-serif; color: var(--ceu); border-bottom: 1px solid rgba(12, 50, 121, .25); border-radius: 0; cursor: pointer; transition: border-color .25s; }
.ev-voltar:hover { border-color: var(--ceu); }
.bf-fim[data-estado=pronto] .ev-txt { flex: 1; justify-content: center; align-items: center; text-align: center; gap: clamp(12px, 2vh, 18px); }
.bf-fim[data-estado=pronto] .ev-sub { display: block; animation: evSobe .7s .12s var(--ease) both; }
.bf-fim[data-estado=pronto] .ev-bts { flex-direction: column; gap: 14px; width: min(100%, 420px); margin-top: clamp(2px, 1vh, 8px); }
.bf-fim[data-estado=pronto] .bf-zap { justify-content: center; width: 100%; padding: 19px 28px; border-radius: 16px; font-size: 16.5px; box-shadow: 0 22px 40px -24px rgba(12, 50, 121, .8); }

/* =========================================================
   CALENDÁRIO (assets/calendario.js) · no lugar do date do navegador
   ========================================================= */
.cal-bt { display: inline-flex; align-items: center; gap: 7px; padding: 0 2px 3px; border: 0; border-bottom: 2px solid rgba(12, 50, 121, .3); background: none; cursor: pointer; font: 600 14.5px/1.3 'Instrument Sans', sans-serif; color: var(--ceu); transition: border-color .25s; }
.cal-bt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; transition: transform .35s var(--ease); }
.cal-bt.vazio { color: var(--g2); font-weight: 500; }
.cal-bt:hover, .cal-bt.aberto, .cal-bt:focus-visible { border-color: var(--ceu); color: var(--ceu); outline: none; }
.cal-bt:hover svg, .cal-bt.aberto svg { transform: rotate(-8deg) scale(1.08); }

.cal { position: fixed; z-index: 1000; width: min(316px, calc(100vw - 24px)); padding: 18px 18px 14px; border-radius: 22px; background: #FCFCF7; border: 1px solid rgba(12, 50, 121, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 28px 60px -22px rgba(12, 50, 121, .38), 0 8px 18px -10px rgba(31, 37, 49, .18);
  font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--grafite); }
.cal[hidden] { display: none; }
.cal-cab { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.cal-tit { flex: 1; display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left;
  font: 700 18px/1.1 'Instrument Sans', sans-serif; letter-spacing: -.01em; color: var(--grafite); transition: background .2s; }
.cal-tit span { color: var(--ceu); font-weight: 600; }
.cal-tit:hover:not(:disabled), .cal-tit:focus-visible { background: rgba(12, 50, 121, .07); outline: none; }
.cal-tit:disabled { cursor: default; }
.cal-v { width: 12px; height: 12px; fill: none; stroke: var(--ceu); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.cal-tit:hover .cal-v { transform: translateY(1px); }
.cal-seta { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(12, 50, 121, .25); background: none; color: var(--ceu); font: 500 16px/1 'Instrument Sans', sans-serif; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cal-seta:hover, .cal-seta:focus-visible { background: var(--ceu); border-color: var(--ceu); color: var(--nuvem); outline: none; }
.cal-vista { position: relative; overflow: hidden; }
.cal-grade { display: grid; }
.cal-dias { grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-meses, .cal-anos { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 0 2px; }
.cal-sem { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-sem span { padding: 4px 0 8px; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--g3); }
.cal-grade button { position: relative; border: 0; background: none; cursor: pointer; font: 500 14.5px/1 'Instrument Sans', sans-serif; font-variant-numeric: tabular-nums; color: var(--grafite); transition: background .2s, color .2s; }
.cal-dias button { aspect-ratio: 1; width: 100%; max-width: 40px; justify-self: center; border-radius: 50%; }
.cal-meses button, .cal-anos button { height: 48px; border-radius: 999px; font-size: 15px; }
.cal-grade button:hover { background: rgba(12, 50, 121, .08); color: var(--ceu); }
.cal-grade button:focus-visible { outline: 2px solid var(--ceu); outline-offset: 1px; }
.cal-grade button.hoje { color: var(--ceu); font-weight: 700; }
.cal-grade button.hoje::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-meses button.hoje::after, .cal-anos button.hoje::after { bottom: 7px; }
.cal-grade button.passado { color: rgba(31, 37, 49, .24); cursor: help; }
.cal-grade button.passado:hover { background: rgba(31, 37, 49, .05); color: rgba(31, 37, 49, .4); }
.cal-grade button.hoje.passado { color: rgba(12, 50, 121, .45); }
.cal-grade button.on, .cal-grade button.on:hover { background: var(--ceu); color: var(--nuvem); font-weight: 700; box-shadow: 0 6px 14px -6px rgba(12, 50, 121, .7); }
.cal-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--fio); font-size: 13px; color: var(--g2); }
.cal-pe b { color: var(--ceu); font-weight: 700; }
.cal-pe.ops { justify-content: center; }
.cal-pe.ops .cal-falta { flex: 1; text-align: center; color: var(--ceu); font-weight: 600; animation: calOps .4s var(--ease); }
@keyframes calOps { from { opacity: 0; transform: translateY(4px); } }
.cal-limpa { padding: 2px 0; border: 0; border-bottom: 1px solid rgba(12, 50, 121, .3); background: none; cursor: pointer; font: 500 13px/1.3 'Instrument Sans', sans-serif; color: var(--ceu); }
.cal-limpa:hover { border-color: var(--ceu); }
.cal-limpa[hidden] { display: none; }
