/* Site da XCONPRO Master (master.xconpro.com.br). Carregado depois de site.css e sites.css:
   só os componentes próprios da Master; o resto é o sistema da home. */

html { scroll-padding-top: 88px; }

/* Capa */
.hero--master .hero__titulo { font-size: clamp(36px, 4.7vw, 70px); line-height: 1.03; letter-spacing: -.05em; }
.hero--master .hero__lead { max-width: 540px; }
.hero--master .hero__lead strong { color: #fff; font-weight: 600; }
.hero--master .hero__foto { max-height: min(700px, calc(100svh - 112px)); }
.hero--master .hero__visual::before { inset: 10% 2% 6%; background: radial-gradient(closest-side, rgba(1, 88, 235, .85), rgba(1, 73, 194, .3) 58%, transparent); }
.hero--master .badge--1 { top: 30%; left: -16%; }
.hero--master .badge--2 { right: -8%; bottom: 22%; }
.badge { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.badge__ic { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #176ee9; color: #fff; }
.badge__ic svg { width: 18px; height: 18px; }

/* Diagnóstico */
.sec--diag { position: relative; }
.diag { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(40px, 6vw, 96px); }
.diag__intro { position: sticky; top: 112px; padding-top: 8px; }
.diag__intro h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
.diag__garantias { display: grid; gap: 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.diag__garantias li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.4; }

.ficha { position: relative; overflow: hidden; border: 1px solid #d3deef; border-radius: 28px; background: #fff; box-shadow: 0 50px 90px -40px rgba(7, 29, 62, .32), 0 2px 6px rgba(7, 29, 62, .04); scroll-margin-top: 92px; }
.ficha__topo { position: relative; isolation: isolate; overflow: hidden; padding: 26px clamp(20px, 3vw, 36px) 22px; background: radial-gradient(130% 160% at 92% 0, #06205a 0, var(--night) 62%); color: #fff; }
.ficha__topo .painel__persianas { opacity: .5; -webkit-mask-image: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, .55) 62%, #000 92%); mask-image: linear-gradient(100deg, transparent 30%, rgba(0, 0, 0, .55) 62%, #000 92%); }
.ficha__titulo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ficha__titulo h3 { font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.ficha__contador { color: var(--ice); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ficha__etapas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.ficha__etapas li { position: relative; padding-top: 12px; color: #7f9cc6; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.3; text-transform: uppercase; transition: color .3s; }
.ficha__etapas li::before, .ficha__etapas li::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.ficha__etapas li::after { background: linear-gradient(90deg, #438bff, var(--ice)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ficha__etapas li.is-on { color: #fff; }
.ficha__etapas li.is-on::after { transform: scaleX(1); }

.ficha__form { position: relative; padding: clamp(26px, 3.2vw, 38px) clamp(20px, 3vw, 36px) 4px; }
.ficha__isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.passo-ficha { min-width: 0; margin: 0; padding: 0; border: 0; }
.passo-ficha:focus { outline: none; }
.passo-ficha.is-entra { animation: ficha-entra .45s var(--ease) both; }
@keyframes ficha-entra { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.ficha__pergunta { float: none; width: 100%; padding: 0; color: var(--ink); font: 400 clamp(24px, 2.3vw, 30px)/1.15 Sora, system-ui, sans-serif; letter-spacing: -.04em; }
.ficha__sub { margin: 8px 0 24px; color: var(--muted); font-size: 15px; }

.opcoes { display: grid; gap: 10px; }
.opcoes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opcao { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px; min-height: 64px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.opcao:hover { border-color: #a9c1e6; background: #fbfcff; }
.opcao input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opcao:has(input:focus-visible) { outline: 3px solid #438bff; outline-offset: 2px; }
.opcao:has(input:checked) { border-color: var(--blue); background: #f2f7ff; box-shadow: inset 0 0 0 1px var(--blue); }
.opcao__num { padding-top: 2px; color: var(--blue); font: 600 12px/1.4 Sora, sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.opcao__texto strong, .opcao__texto small { display: block; }
.opcao__texto strong { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.opcao__texto small { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.opcao__marca { width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #b4c6e0; border-radius: 50%; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.opcao:has(input:checked) .opcao__marca { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }
.opcao--linha { align-items: center; min-height: 58px; padding-block: 14px; }
.opcao--linha .opcao__num { padding-top: 0; }
.opcao--linha .opcao__marca { margin-top: 0; }

.grupo { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.grupo__rotulo { float: none; width: 100%; margin-bottom: 12px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.4; }
.pilulas { display: flex; flex-wrap: wrap; gap: 8px; }
.pilula { position: relative; display: inline-flex; }
.pilula input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pilula span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.25; transition: border-color .2s, background .2s, color .2s; }
.pilula:hover span { border-color: #a9c1e6; }
.pilula input:focus-visible + span { outline: 3px solid #438bff; outline-offset: 2px; }
.pilula input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }

.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.campo { display: grid; gap: 8px; min-width: 0; }
.campo--cheio { grid-column: 1 / -1; }
.campo label { color: var(--ink); font-size: 14px; font-weight: 600; }
.campo label span { color: var(--muted); font-weight: 400; }
.campo input, .campo select { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #c9d7ea; border-radius: 14px; background: #fff; color: var(--ink); font: 400 16px/1.3 'DM Sans', system-ui, sans-serif; transition: border-color .2s, box-shadow .2s; }
.campo select { padding-right: 44px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%230149c2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.campo input::placeholder { color: #66778f; }
.campo input:focus, .campo select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(1, 73, 194, .16); }
.campo [aria-invalid=true], .campo [aria-invalid=true]:focus { border-color: #c2334d; box-shadow: 0 0 0 4px rgba(194, 51, 77, .14); }
.consentimento { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.consentimento input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.consentimento a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.ficha__erro { min-height: 24px; margin-top: 16px; color: #b42318; font-size: 14px; font-weight: 500; line-height: 1.45; }
.ficha__erro:empty { min-height: 0; margin-top: 8px; }

.ficha__rodape { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px clamp(20px, 3vw, 36px) clamp(22px, 3vw, 30px); }
.ficha__voltar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.ficha__voltar:hover { color: var(--blue); }
.ficha__voltar[hidden] { display: inline-flex; visibility: hidden; }
.ficha__rodape[hidden], .protocolo[hidden] { display: none; }
.ficha__avancar { margin-left: auto; padding-left: 26px; }
.ficha__avancar:disabled { opacity: .7; }
.ficha.is-enviando .btn__icon { animation: ficha-gira 1s linear infinite; }
@keyframes ficha-gira { to { rotate: 360deg; } }

.ficha__sucesso { padding: clamp(30px, 4vw, 48px) clamp(20px, 3vw, 36px) clamp(30px, 4vw, 44px); }
.ficha__sucesso:focus { outline: none; }
.ficha__ok { display: block; width: 64px; height: 64px; margin-bottom: 22px; }
.ficha__ok svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ficha__ok circle { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ficha-traco .7s var(--ease) .1s forwards; }
.ficha__ok path { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ficha-traco .45s var(--ease) .65s forwards; }
@keyframes ficha-traco { to { stroke-dashoffset: 0; } }
.ficha__sucesso h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.04em; }
.ficha__sucesso > p { max-width: 480px; margin-top: 12px; color: var(--muted); font-size: 16px; }
.protocolo { display: grid; gap: 4px; width: fit-content; max-width: 100%; margin-top: 24px; padding: 18px 22px; border: 1px dashed #a9c1e6; border-radius: 16px; background: var(--soft); }
.protocolo__rotulo { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.protocolo__numero { color: var(--ink); font: 500 clamp(22px, 2.4vw, 28px)/1.2 Sora, sans-serif; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.protocolo small { color: var(--muted); font-size: 13px; }
.ficha__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Pessoas */
.sec--pessoas { position: relative; overflow: hidden; }
.retratos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; }
.retrato { position: relative; isolation: isolate; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid rgba(154, 198, 255, .18); border-radius: var(--r-lg); background: #0b1a33; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.retrato:nth-child(2) { margin-top: clamp(0px, 5vw, 64px); }
.retrato img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.retrato:hover img { scale: 1.05; }
.retrato::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(3, 12, 28, 0) 34%, rgba(3, 12, 28, .62) 62%, rgba(3, 12, 28, .96) 100%); }
.retrato__texto { position: absolute; right: 0; bottom: 0; left: 0; padding: clamp(20px, 2.4vw, 30px); }
.retrato__cat { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid rgba(169, 202, 255, .38); border-radius: var(--r-pill); background: rgba(3, 12, 28, .45); color: var(--ice); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.retrato__cat span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 10px/1 Sora, sans-serif; letter-spacing: 0; }
.retrato h3 { margin-top: 16px; color: #fff; font-size: clamp(21px, 2vw, 26px); font-weight: 500; line-height: 1.18; }
.retrato__texto > p:last-child { margin-top: 8px; color: #c9d9f0; font-size: 15px; line-height: 1.55; }
.retratos__nota { margin-top: 28px; color: #8fa6c6; font-size: 13px; line-height: 1.5; }
.tem-entrada .retrato { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease) calc(var(--i) * .12s), translate .8s var(--ease) calc(var(--i) * .12s), box-shadow .3s; }
.tem-entrada .retratos.is-in .retrato { opacity: 1; translate: 0 0; }

/* Estrutura */
.sec--estrutura .frente__texto + .frente__texto { margin-top: 14px; }
.pilares { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(56px, 7vw, 104px); }
.pilares li { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.pilares li::before { content: ''; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--blue); }
.pilares__num { color: var(--blue); font: 600 13px/1 Sora, sans-serif; letter-spacing: .06em; }
.pilares h3 { margin-top: 16px; font-size: 21px; font-weight: 500; }
.pilares p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.tem-entrada .pilares li { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.tem-entrada .pilares.is-in li { opacity: 1; translate: 0 0; }
.tem-entrada .pilares.is-in li:nth-child(2) { transition-delay: .1s; }
.tem-entrada .pilares.is-in li:nth-child(3) { transition-delay: .2s; }
.tem-entrada .pilares.is-in li:nth-child(4) { transition-delay: .3s; }

/* Como funciona */
.caminho { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(40px, 7vw, 110px); }
.caminho__foto { position: relative; margin: 0; }
.caminho__foto img { width: 100%; aspect-ratio: 4 / 5; border-radius: 28px; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(7, 29, 62, .4); }
.caminho__foto .painel__flutua { right: -22px; bottom: 36px; }
.caminho__texto h2 { max-width: 620px; }
.etapas { display: grid; margin-block: 36px 34px; }
.etapa { --topo: 52px; position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding-bottom: 30px; }
.etapa:last-child { padding-bottom: 0; }
.etapa::before { content: ''; position: absolute; top: 52px; bottom: 0; left: 26px; width: 1px; background: #c9d7ea; }
.etapa:last-child::before { display: none; }
.etapa::after { content: ''; position: absolute; top: var(--topo); left: 25px; width: 3px; height: 36px; border-radius: 3px; background: linear-gradient(180deg, transparent, #438bff, transparent); opacity: 0; animation: etapa-pulso 3.4s ease-in-out infinite; }
.etapa:nth-child(2)::after { animation-delay: 1.7s; }
.etapa:last-child::after { display: none; }
@keyframes etapa-pulso { 0% { top: var(--topo); opacity: 0; } 20%, 75% { opacity: 1; } 100% { top: calc(100% - 36px); opacity: 0; } }
.etapa__num { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #bcd3f7; border-radius: 50%; background: #fff; color: var(--blue); font: 600 14px/1 Sora, sans-serif; letter-spacing: .02em; box-shadow: 0 8px 20px rgba(7, 29, 62, .08); }
.etapa h3 { padding-top: 12px; font-size: 22px; font-weight: 500; }
.etapa p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Possibilidades */
.amplitude { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.amplitude h2 { font-size: clamp(32px, 3.5vw, 52px); line-height: 1.1; letter-spacing: -.045em; }
.amplitude__aviso { max-width: 520px; margin-top: 28px; padding-left: 16px; border-left: 2px solid rgba(169, 202, 255, .4); color: #9fb6d6; font-size: 13px; line-height: 1.6; }
.painel--nomes { display: flex; flex-direction: column; min-height: 0; background: radial-gradient(120% 105% at 70% 0, #06205a 0, var(--night) 58%, #04122d 100%); }
.painel--nomes .painel__persianas { -webkit-mask-image: linear-gradient(200deg, #000 18%, rgba(0, 0, 0, .45) 52%, transparent 86%); mask-image: linear-gradient(200deg, #000 18%, rgba(0, 0, 0, .45) 52%, transparent 86%); }
.nomes { margin-block: 30px 26px; counter-reset: nome; }
.nomes li { display: flex; align-items: baseline; gap: 20px; padding-block: 16px; border-top: 1px solid rgba(169, 202, 255, .16); }
.nomes li:last-child { border-bottom: 1px solid rgba(169, 202, 255, .16); }
.nomes__num { flex: none; width: 24px; color: var(--ice); font: 600 12px/1 Sora, sans-serif; letter-spacing: .06em; }
.nomes__nome { color: #fff; font: 300 clamp(26px, 3vw, 40px)/1.1 Sora, sans-serif; letter-spacing: -.04em; transition: color .25s, translate .35s var(--ease); }
.nomes li:hover .nomes__nome { color: var(--ice); translate: 6px 0; }
.painel--nomes .painel__rodape { margin-top: auto; }

/* Dúvidas */
#duvidas .sec-head { position: sticky; top: 112px; }
#duvidas .faq details { border: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
#duvidas .faq details[open] { border-color: var(--line); box-shadow: 0 18px 40px -24px rgba(7, 29, 62, .25); }

/* Chamada final */
.fecho--master { isolation: isolate; background: radial-gradient(110% 120% at 50% 0, #0b5be0 0, var(--blue) 46%, #00399b 100%); }
.fecho--master .painel__persianas { opacity: .35; -webkit-mask-image: radial-gradient(70% 80% at 50% 10%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 80% at 50% 10%, #000 20%, transparent 80%); }
.fecho--master .selo { color: #dce8fa; }
.fecho--master h2 { max-width: 760px; font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -.045em; }

/* Responsivo */
@media (max-width: 1180px) {
  .hero--master .badge--1 { left: -6%; }
  .hero--master .badge--2 { right: -2%; }
}
@media (max-width: 1080px) {
  .hero--master .hero__foto { width: min(80%, 360px); }
  .diag, .caminho, .amplitude { grid-template-columns: minmax(0, 1fr); }
  .diag__intro, #duvidas .sec-head { position: static; }
  .caminho__foto img { aspect-ratio: 16 / 10; object-position: center 38%; }
  .caminho__foto .painel__flutua { right: 16px; }
  .pilares { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retratos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .retrato:nth-child(2) { margin-top: 0; }
  .retrato:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .retrato:nth-child(3) img { object-position: center 30%; }
}
@media (max-width: 760px) {
  .hero--master .hero__titulo { font-size: clamp(30px, 8.7vw, 52px); }
  .opcoes--2, .campos { grid-template-columns: minmax(0, 1fr); }
  .ficha { border-radius: 22px; }
  .ficha__etapas li { font-size: 10px; letter-spacing: .06em; }
  .opcao { padding: 16px; gap: 12px; }
  .retratos { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .retrato, .retrato:nth-child(3) { grid-column: auto; aspect-ratio: 4 / 5; }
  .caminho__foto img { aspect-ratio: 4 / 5; object-position: center; }
  .pilares { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .caminho__foto .painel__flutua { position: absolute; right: 12px; bottom: 12px; margin: 0; }
  .etapa { --topo: 44px; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .etapa__num { width: 44px; height: 44px; font-size: 13px; }
  .etapa::before { top: 44px; left: 22px; }
  .etapa::after { left: 21px; }
  .etapa h3 { padding-top: 8px; font-size: 20px; }
  .nomes li { gap: 14px; padding-block: 13px; }
}
@media (max-width: 480px) {
  .ficha__titulo h3 { font-size: 17px; }
  .ficha__etapas { gap: 6px; }
  .ficha__etapas li { font-size: 9px; letter-spacing: .04em; }
  .ficha__rodape { gap: 8px; }
  .ficha__avancar { padding-left: 20px; }
  .ficha__links .btn { width: 100%; }
  .pilula span { padding: 0 14px; font-size: 13.5px; }
  .protocolo { width: 100%; }
}
