/* =====================================================================
  K-HUB — khub.css

  Mapa:
     1. Tokens (cores, fontes)           9. Site Survey (foto, ficha, tela do sistema)
     2. Base                            10. Aplicativo
     3. Botões e rótulos                11. Segmentos (foto com texto por cima)
     4. Header                          12. Permissões
     5. Hero (azul-escuro + produto)    13. Implantação (painel de projeto)
     6. Fundos e transições             14. FAQ, contato e formulário
     7. Desafio e ciclo (PoC andando)   15. Footer
     8. Módulos (sistema clicável)      16. Movimento e efeitos de mouse
                                        17. Responsivo
    18-23. Botões (diagonal), pergunta do gestor (Desafio), Plataforma automática,
           balões dos módulos, elementos de Segmentos a Dúvidas, cookies
  ===================================================================== */

/* 1. Tokens ---------------------------------------------------------- */
:root {
  --blue: #1A56DB;
  --blue-dark: #1446B8;
  --blue-soft: #EBF1FD;
  --sky: #7FB0FF;
  --navy: #0B2545;
  --navy-deep: #081B33;
  --heading: #12213A;
  --text: #4A5568;
  --muted: #718096;
  --line: #E2E8F0;
  --ice: #EEF3FB;
  --green: #0E9F6E;
  --orange: #C2410C;
  --f-head: "Montserrat", Arial, sans-serif;
  --f-body: "Open Sans", Arial, sans-serif;
  --radius: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

/* 2. Base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 8px); }
html, body { overflow-x: clip; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--heading); margin: 0; line-height: 1.25; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.section { position: relative; isolation: isolate; padding: 104px 0; }
.head { max-width: 760px; margin-bottom: 52px; }
.head p:not(.label) { margin-top: 16px; font-size: 1.06rem; }
.head--center { margin-inline: auto; text-align: center; }
.text { margin-top: 16px; font-size: 1.04rem; }
.h3-lg { font-size: 1.5rem; font-weight: 700; }

/* 3. Botões e rótulos ------------------------------------------------ */
.label { margin-bottom: 12px; font: 700 .8rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.label--light { color: #8DB4FF; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--f-body); white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s, box-shadow .3s, translate .35s var(--spring);
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { box-shadow: 0 12px 26px -10px rgba(26, 86, 219, .7); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 13px 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--blue); font-weight: 700; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.link:hover { background-size: 100% 2px; }
.link .ic { transition: transform .3s var(--ease); }
.link:hover .ic { transform: translateX(4px); }

/* 4. Header ---------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: transparent; border-bottom: 1px solid rgba(255, 255, 255, .1); transition: background .3s, box-shadow .3s, border-color .3s; }
.header.is-scrolled { background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-color: var(--line); box-shadow: 0 2px 14px rgba(18, 33, 58, .08); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand__name { font: 700 1.25rem/1 var(--f-head); color: var(--heading); transition: color .3s; }
.nav { display: flex; gap: 26px; }
.nav a { position: relative; color: var(--heading); font-size: .93rem; font-weight: 600; transition: color .3s; }
.nav a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__cta { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.link-portal { font-weight: 600; font-size: .93rem; color: var(--blue); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.header:not(.is-scrolled) .brand__name, .header:not(.is-scrolled) .nav a:not(.nav__cta) { color: #fff; }
.header:not(.is-scrolled) .menu-btn { background: transparent; border-color: rgba(255, 255, 255, .3); }
.header:not(.is-scrolled) .menu-btn span { background: #fff; }

/* 5. Hero ------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 72px) 0 150px; background: #0A1F3D; color: #C9D4E5; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 85% 30%, rgba(26, 86, 219, .45), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(8, 145, 178, .18), transparent 70%), linear-gradient(180deg, #0A1F3D, #0B2545); }
.hero__bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.hero__inner { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.hero__inner > * { min-width: 0; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.15rem); line-height: 1.14; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--sky); }
.lead { margin-top: 22px; font-size: 1.1rem; max-width: 540px; color: #B8C6DB; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ctas .btn--primary { background: #2F6BFF; }
.hero__platforms { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__platforms li { display: flex; align-items: center; gap: 10px; padding-right: 20px; margin-right: 20px; border-right: 1px solid rgba(255, 255, 255, .12); }
.hero__platforms li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__platforms .ic { width: 24px; height: 24px; color: var(--sky); }
.hero__platforms span { font-size: .8rem; line-height: 1.35; color: #93A5BF; }
.hero__platforms b { display: block; color: #fff; font-size: .9rem; }

.hero__product { position: relative; padding: 0 0 56px 84px; transform-style: preserve-3d; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF1F6; border-bottom: 1px solid #E2E6EE; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; }
.browser__bar i:nth-child(1) { background: #F87171; }
.browser__bar i:nth-child(2) { background: #FBBF24; }
.browser__bar i:nth-child(3) { background: #34D399; }
.browser__bar span { margin: 0 auto; padding: 3px 40px; border-radius: 6px; background: #fff; font-size: .7rem; color: #6B7280; }
.kapp { display: grid; grid-template-columns: 58px 1fr; min-height: 340px; font-size: .74rem; color: #111827; }
.kapp__side { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; background: var(--navy); color: #A9B8CF; }
.kapp__side img { margin: 0 0 12px; border-radius: 6px; }
.kapp__side span { display: grid; place-items: center; width: 36px; height: 34px; border-radius: 8px; font-size: 0; }
.kapp__side span.on { background: rgba(127, 176, 255, .16); color: #fff; }
.kapp__side .ic { width: 17px; height: 17px; }
.kapp__main { padding: 16px; background: #F6F8FB; min-width: 0; }
.kapp__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kapp__head small { display: block; color: #6B7280; font-size: .66rem; }
.kapp__head b { font: 700 1rem var(--f-head); }
.kapp__btn { padding: 6px 10px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; font-size: .66rem; white-space: nowrap; }
.kapp__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.kapp__kpis div { padding: 9px 10px; border-radius: 8px; background: #fff; border: 1px solid #E8ECF3; }
.kapp__kpis small { display: flex; align-items: center; gap: 6px; color: #6B7280; font-size: .62rem; }
.kapp__kpis small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.kapp__kpis b { font: 700 1.15rem var(--f-head); }
.kapp__table { width: 100%; margin-top: 12px; border-collapse: collapse; background: #fff; border: 1px solid #E8ECF3; }
.kapp__table th { text-align: left; padding: 7px 9px; background: #F1F4F9; color: #6B7280; font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.kapp__table td { padding: 8px 9px; border-top: 1px solid #EEF1F6; white-space: nowrap; }
.kapp__table td:first-child { font-weight: 700; }
.chip { font-style: normal; font-weight: 700; font-size: .62rem; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip--amber { background: #FEF3C7; color: #92400E; }
.chip--violet { background: #EDE9FE; color: #5B21B6; }
.chip--blue { background: #DBEAFE; color: #1E40AF; }
.chip--green { background: #D1FAE5; color: #065F46; }
.av { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .56rem var(--f-body); font-style: normal; }
.av--2 { background: #0891B2; }
.av--3 { background: #7C3AED; }
.av--wait { background: #fff; color: var(--muted); border: 1.5px dashed #A0AEC0; }
.hero__phone { position: absolute; left: 0; bottom: 0; width: 25%; min-width: 118px; border-radius: 22px; box-shadow: 0 30px 50px -10px rgba(0, 0, 0, .6); }
.toast { position: absolute; right: -14px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 10px; background: #fff; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); font-size: .78rem; color: var(--text); }
.toast b { display: block; color: var(--heading); font-size: .82rem; }
.toast__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #D1FAE5; color: var(--green); }

/* 6. Fundos e transições -------------------------------------------- */
.wave { position: absolute; left: 0; width: 100%; height: 90px; display: block; pointer-events: none; fill: #fff; }
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; }
.section--problem { background: linear-gradient(180deg, #fff 0%, #F3F7FD 100%); padding-bottom: 80px; }
.section--problem::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(#D5DEEC 1px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 70% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(60% 70% at 100% 0%, #000, transparent 70%); }
.section--cycle { background: linear-gradient(180deg, #F3F7FD 0%, var(--ice) 30%, var(--ice) 75%, #fff 100%); }
.section--ice { background: linear-gradient(180deg, #fff 0%, #EAF1FC 18%, #EAF1FC 100%); }
.section--wavy { padding-top: 150px; background: #fff; }
.section--wavy .wave--top { fill: #EAF1FC; }
.section--fade { background: linear-gradient(180deg, #fff 0%, var(--ice) 22%, var(--ice) 78%, #fff 100%); }
.section--faq { background: linear-gradient(180deg, #fff 0%, var(--ice) 30%, var(--ice) 100%); }
.section--dark { background: var(--navy); color: #C9D4E5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--rise { border-radius: 40px 40px 0 0; margin-top: -40px; z-index: 1; }
.glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(45% 55% at 20% 40%, rgba(47, 107, 255, .35), transparent 70%), radial-gradient(35% 45% at 100% 0%, rgba(8, 145, 178, .2), transparent 70%); }

.mock__btn { padding: 6px 10px; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; font-size: .7rem; white-space: nowrap; }
.mock__search { padding: 6px 12px 6px 28px; border-radius: 6px; border: 1px solid #E2E8F0; color: #94A3B8; font-size: .72rem; background: #F8FAFC radial-gradient(circle at 13px 50%, transparent 4px, #94A3B8 4.5px, #94A3B8 5.5px, transparent 6px) no-repeat; }
.kb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kb__col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: #F1F4F9; min-height: 210px; }
.kb__col p { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #64748B; }
.kb__col i { font-style: normal; color: #94A3B8; }
.kb__card { padding: 10px; border-radius: 8px; background: #fff; border: 1px solid #E5EAF2; transition: transform .35s var(--spring), box-shadow .3s; }
.kb__card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(18, 33, 58, .3); }
.kb__card b { display: block; font-size: .78rem; line-height: 1.3; }
.kb__card small { font-size: .68rem; color: #64748B; }
.kb__card--done b { text-decoration: line-through; text-decoration-color: #94A3B8; }
.xp__screen.mock--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.plan { position: relative; min-height: 250px; border-radius: 10px; background: #F1F5FB; background-image: linear-gradient(#E2E8F0 1px, transparent 1px), linear-gradient(90deg, #E2E8F0 1px, transparent 1px); background-size: 22px 22px; }
.plan__room { position: absolute; padding: 6px 8px; border: 2px solid #94A3B8; border-radius: 4px; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748B; }
.plan__pin { position: absolute; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.plan__pin--on { background: #0891B2; box-shadow: 0 0 0 6px rgba(8, 145, 178, .2); animation: ping 2s infinite; }
.plan__pin--wait { background: #F59E0B; }
@keyframes ping { 50% { box-shadow: 0 0 0 11px rgba(8, 145, 178, 0); } }
.pt__title { display: flex; flex-direction: column; margin-bottom: 10px; }
.pt__title b { font: 700 .95rem var(--f-head); }
.pt__title small { color: #64748B; font-size: .7rem; }
.pt dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pt dl div { padding: 8px 10px; border-radius: 8px; background: #F1F4F9; }
.pt dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: #64748B; }
.pt dd { font-weight: 700; font-size: .8rem; }
.mt { width: 100%; border-collapse: collapse; }
.mt th { text-align: left; padding: 8px 10px; background: #F1F4F9; color: #64748B; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; }
.mt td { padding: 11px 10px; border-top: 1px solid #EEF1F6; }
.mt td:first-child { font-weight: 700; }
.mt tbody tr { transition: background .2s; }
.mt tbody tr:hover { background: #F6F9FF; }
.trail { position: relative; display: grid; gap: 16px; padding-left: 2px; }
.trail::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: #E2E8F0; }
.trail li { position: relative; display: flex; gap: 14px; align-items: center; }
.trail b { display: block; font-size: .85rem; }
.trail small { color: #64748B; font-size: .72rem; }
.trail__next b { color: #64748B; }
.tasks { display: grid; gap: 8px; }
.tasks li { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 8px; background: #F6F8FB; transition: background .2s; }
.tasks li:hover { background: #EEF3FB; }
.tasks__box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #CBD5E1; }
.tasks .done .tasks__box { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tasks .done b { color: #94A3B8; text-decoration: line-through; }
.tasks small { color: #64748B; font-size: .72rem; }
.docs { display: grid; gap: 8px; }
.docs li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 8px; border: 1px solid #E8EDF4; transition: border-color .2s, transform .35s var(--spring); }
.docs li:hover { border-color: #BFD1F5; transform: translateX(4px); }
.docs span { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.docs b { font-size: .84rem; }


/* =====================================================================
  7. DESAFIO: pedaços da bagunça que se juntam numa ficha
     JS define --p (0 = espalhado, 1 = ficha do K-Hub) conforme a rolagem.
  ===================================================================== */
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--k) * (1 - var(--p))), calc(var(--y) * var(--k) * (1 - var(--p)))) rotate(calc(var(--r) * (1 - var(--p)))) scale(calc(var(--s, 1) * (1 - .45 * var(--p))));
  opacity: calc(1 - var(--p) * 1.6); transition: translate .5s var(--ease); will-change: transform, opacity;
}
  width: 400px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -24px rgba(11, 37, 69, .45), 0 0 0 1px #E2E8F0;
  transform: translate(-50%, -50%) scale(calc(.82 + .18 * var(--p))); opacity: calc(var(--p) * 2.2 - 1.1);
}

/* =====================================================================
  7b. CICLO: uma PoC andando pelas etapas
  ===================================================================== */
.journey { --step: 0; }
.journey__stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.journey__stages li { min-width: 0; }
.journey__stages p { margin-top: 10px; font-size: .88rem; }
.journey__lane { position: relative; height: 290px; margin-top: 26px; }
.journey__rail { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, #C8D3E5 0 8px, transparent 8px 14px); }
.journey__rail i { position: absolute; left: 0; top: 0; height: 2px; width: var(--rail, 0px); background: var(--blue); transition: width .7s var(--ease); }
.jcard { position: absolute; top: 0; left: 0; width: 280px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 26px 50px -22px rgba(11, 37, 69, .45), 0 0 0 1px #E2E8F0; translate: var(--jx, 0) 0; transition: translate .8s var(--spring); }
.jcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #EEF1F6; }
.jcard__head small { display: block; color: var(--muted); font-size: .72rem; }
.jcard__head b { font: 700 1rem var(--f-head); color: var(--heading); }
.jcard .chip { background: var(--blue-soft); color: var(--blue); }
.jcard__log { display: grid; gap: 2px; margin-top: 10px; }
.jcard__log li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .82rem; color: var(--heading); opacity: .22; filter: grayscale(1); transition: opacity .5s, filter .5s; }
.jcard__log li.is-done { opacity: 1; filter: none; }
.jcard__log li.is-new { animation: pop .6s var(--spring); }
@keyframes pop { from { transform: translateX(-10px); } }

/* =====================================================================
  8. MÓDULOS: janela do sistema clicável
  ===================================================================== */
.explorer { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(11, 37, 69, .45), 0 0 0 1px #D9E2F0; }
.explorer__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #EEF1F6; border-bottom: 1px solid #E2E6EE; }
.explorer__bar i { width: 10px; height: 10px; border-radius: 50%; }
.explorer__bar i:nth-child(1) { background: #F87171; }
.explorer__bar i:nth-child(2) { background: #FBBF24; }
.explorer__bar i:nth-child(3) { background: #34D399; }
.explorer__bar span { margin: 0 auto; padding: 4px 48px; border-radius: 6px; background: #fff; font-size: .74rem; color: #6B7280; }
.explorer__body { display: grid; grid-template-columns: 220px 1fr; min-height: 430px; }
.explorer__body > * { min-width: 0; }
.explorer__side { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: var(--navy); }
.explorer__side img { margin: 0 0 18px 8px; border-radius: 7px; }
.explorer__side button { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; border-radius: 9px; background: none; color: #A9B8CF; font-weight: 600; font-size: .9rem; text-align: left; transition: background .25s, color .25s, padding .35s var(--ease); }
.explorer__side button .ic { width: 18px; height: 18px; }
.explorer__side button:hover { background: rgba(255, 255, 255, .06); color: #fff; padding-left: 16px; }
.explorer__side button[aria-selected="true"] { background: rgba(127, 176, 255, .16); color: #fff; }
.explorer__side button[aria-selected="true"]::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sky); }
.explorer__main { padding: 28px 30px; background: #F6F8FB; }
.xp[hidden] { display: none; }
.xp.is-active > * { animation: rise .55s var(--ease) both; }
.xp.is-active > :nth-child(2) { animation-delay: .05s; }
.xp.is-active > :nth-child(3) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.xp__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.xp__head small { color: var(--muted); font-size: .76rem; }
.xp__head h3 { font-size: 1.35rem; }
.xp__desc { margin: 6px 0 20px; font-size: .95rem; }
.xp__screen { position: relative; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E3E9F2; font-size: .8rem; color: #111827; }
.hot { position: absolute; z-index: 3; width: 28px; height: 28px; margin: -14px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .78rem var(--f-head); box-shadow: 0 0 0 0 rgba(26, 86, 219, .5); animation: hotPulse 2.4s infinite; }
.hot > span { position: relative; z-index: 1; }
.hot em { position: absolute; left: 50%; bottom: calc(100% + 12px); width: 230px; padding: 10px 12px; border-radius: 10px; background: var(--navy); color: #E6EDF8; font: 400 .8rem/1.45 var(--f-body); font-style: normal; text-align: left; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.hot em::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--navy); }
.hot:hover em, .hot:focus-visible em { opacity: 1; transform: translate(-50%, 0); }
.hot:hover, .hot:focus-visible { animation: none; background: var(--navy); }
@keyframes hotPulse { 70% { box-shadow: 0 0 0 12px rgba(26, 86, 219, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 86, 219, 0); } }

/* =====================================================================
  13. IMPLANTAÇÃO: painel de projeto
  ===================================================================== */
.rollout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.rollout > * { min-width: 0; }
.rollout__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 30px; font-size: .88rem; color: var(--heading); font-weight: 600; }
.rollout__legend li { display: flex; align-items: center; gap: 8px; }
.who { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; }
.who--k { background: var(--blue); }
.who--j { background: #0891B2; }
.who--c { background: #F59E0B; }
.tracker { border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 36px 70px -30px rgba(11, 37, 69, .5), 0 0 0 1px #DCE4F0; }
.tracker__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 20px 24px; background: var(--navy); color: #A9B8CF; }
.tracker__head img { border-radius: 8px; }
.tracker__head small { display: block; font-size: .74rem; }
.tracker__head b { color: #fff; font: 700 1.05rem var(--f-head); }
.tracker__pct { font: 700 1.6rem var(--f-head); color: #fff; }
.tracker__pct b { font: inherit; color: inherit; }
.tracker__bar { height: 6px; background: #E8EEF7; }
.tracker__bar i { display: block; height: 100%; width: var(--pct, 0%); background: linear-gradient(90deg, var(--blue), #0891B2, var(--green)); transition: width .8s var(--ease); }
.tracker__list { padding: 8px 24px 14px; }
.tracker__list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid #EEF1F6; transition: background .3s; }
.tracker__list li:last-child { border-bottom: 0; }
.tracker__list b { font: 600 1rem var(--f-head); color: var(--heading); }
.tracker__list p { font-size: .88rem; }
.tick { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #CBD5E1; transition: border-color .3s, background .3s; }
.tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--spring); }
.tracker__list li.is-done .tick { border-color: var(--green); background: var(--green); }
.tracker__list li.is-done .tick::after { transform: rotate(45deg) scale(1); }
.tracker__list li.is-now .tick { border-color: var(--blue); box-shadow: 0 0 0 5px rgba(26, 86, 219, .15); animation: hotPulse 1.6s infinite; }
.tracker__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tracker__meta small { font-size: .74rem; font-weight: 700; color: #94A3B8; white-space: nowrap; }
.tracker__list li.is-done .tracker__meta small { color: var(--green); }
.tracker__list li.is-now .tracker__meta small { color: var(--blue); }

/* 9. Site Survey ----------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split + .split { margin-top: 110px; }
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }
.split__media { position: relative; }
.photo-wrap { overflow: hidden; border-radius: 14px; }
.photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scale: 1.12; transition: transform 1s var(--ease); }
.photo-stats { position: absolute; left: 24px; right: 24px; bottom: -34px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -14px rgba(18, 33, 58, .3); overflow: hidden; }
.photo-stats div { padding: 16px 18px; text-align: center; }
.photo-stats div + div { border-left: 1px solid var(--line); }
.photo-stats b { display: block; font: 700 1.35rem/1.1 var(--f-head); color: var(--heading); }
.photo-stats small { font-size: .78rem; color: var(--muted); }

.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 30px; }
.spec div { padding-top: 14px; border-top: 2px solid var(--line); position: relative; }
.spec div::before { content: ""; position: absolute; left: 0; top: -2px; width: 34px; height: 2px; background: var(--blue); transition: width .5s var(--ease); }
.spec div:hover::before { width: 100%; }
.spec dt { font: 600 1rem var(--f-head); color: var(--heading); margin-bottom: 4px; }
.spec dd { font-size: .92rem; }
.spec--light div { border-color: rgba(255, 255, 255, .16); }
.spec--light div::before { background: var(--sky); }
.spec--light dt { color: #fff; }

.screen { border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -20px rgba(18, 33, 58, .3), 0 0 0 1px var(--line); overflow: hidden; font-size: .8rem; color: #111827; }
.screen__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F1F4F9; border-bottom: 1px solid var(--line); }
.screen__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.screen__bar span { margin-left: 10px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.screen__body { padding: 18px; }
.screen__title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screen__title b { display: block; font: 700 1.08rem var(--f-head); }
.screen__title small { color: var(--muted); }
.status { padding: 4px 10px; border-radius: 999px; background: #D1FAE5; color: #065F46; font-weight: 700; font-size: .68rem; }
.screen__kpis { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 16px; border-block: 1px solid #EEF1F6; }
.screen__kpis div { padding: 12px 10px; }
.screen__kpis div + div { border-left: 1px solid #EEF1F6; }
.screen__kpis small { display: block; font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.screen__kpis b { font: 700 1.05rem var(--f-head); }
.screen__tabs { display: flex; gap: 18px; margin-top: 12px; border-bottom: 1px solid #EEF1F6; overflow: hidden; }
.screen__tabs span { padding: 8px 0; font-weight: 600; font-size: .72rem; color: #64748B; white-space: nowrap; border-bottom: 2px solid transparent; }
.screen__tabs .on { color: var(--blue); border-color: var(--blue); }
.screen table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: .76rem; }
.screen th { text-align: left; padding: 8px; color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; }
.screen td { padding: 9px 8px; border-top: 1px solid #EEF1F6; }
.screen td:first-child { font-weight: 700; }

/* 10. Aplicativo ------------------------------------------------------ */
#aplicativo { padding-bottom: 170px; }
.app-phones { display: flex; justify-content: center; gap: 24px; }
.app-phones img { width: 42%; max-width: 250px; border-radius: 30px; box-shadow: 0 30px 50px -14px rgba(0, 0, 0, .55); }
.app-phones img:first-child { margin-top: 48px; }

/* 11. Segmentos ------------------------------------------------------ */
#segmentos { padding-top: 64px; }
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.segment { position: relative; isolation: isolate; overflow: hidden; min-height: 440px; border-radius: 16px; display: flex; align-items: flex-end; color: #D7E1F0; background: var(--navy); }
.segment > * { min-width: 0; }
.segment img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; z-index: -2; transition: scale .9s var(--ease); }
.segment::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 27, 51, .05) 20%, rgba(8, 27, 51, .82) 62%, rgba(8, 27, 51, .96) 100%); transition: background .5s; }
.segment::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 176, 255, .28), transparent 65%); }
.segment:hover::after { opacity: 1; }
.segment:hover img { scale: 1.06; }
.segment__body { padding: 28px; }
.segment h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.segment p { font-size: .94rem; }
.segment ul { display: grid; gap: 6px; font-size: .88rem; color: #fff; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .5s var(--ease); }
.segment li { padding-left: 16px; position: relative; }
.segment li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 2px; background: var(--sky); }
.segment:hover ul, .segment:focus-within ul { max-height: 140px; opacity: 1; margin-top: 16px; }

/* 12. Permissões ------------------------------------------------------ */
.perm-wrap { overflow-x: auto; }
.perm { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -22px rgba(18, 33, 58, .3); font-size: .95rem; }
.perm caption { caption-side: bottom; padding-top: 10px; text-align: left; font-size: .82rem; color: var(--muted); }
.perm th, .perm td { padding: 15px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.perm thead th { background: var(--navy); color: #fff; font: 600 .74rem var(--f-body); text-transform: uppercase; letter-spacing: .02em; }
.perm thead th:first-child, .perm tbody th { text-align: left; padding-left: 18px; }
.perm tbody th { color: var(--heading); font-weight: 700; }
.perm tbody tr { transition: background .2s; }
.perm tbody tr:hover { background: #F6F9FF; }
.perm tbody tr:last-child > * { border-bottom: 0; }
.perm .y { color: var(--green); font-weight: 700; }
.perm .n { color: #A0AEC0; }

/* 14. FAQ, contato e formulário -------------------------------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq > * { min-width: 0; }
.faq__head .btn { margin-top: 28px; }
.faq__list { border-top: 1px solid #D6DFEC; }
.faq__list details { border-bottom: 1px solid #D6DFEC; }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-weight: 700; color: var(--heading); transition: color .25s, padding .35s var(--ease); }
.faq__list summary:hover { color: var(--blue); padding-left: 10px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .35s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(-135deg); }
.faq__list details p { padding: 0 4px 22px; }
.faq__list details[open] p { animation: rise .5s var(--ease); }

.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(90deg, rgba(11, 37, 69, .97) 0%, rgba(11, 37, 69, .9) 45%, rgba(11, 37, 69, .74) 100%), url("../img/foto-instalacao.webp") center / cover no-repeat; }
.contact__steps { display: grid; gap: 14px; margin-top: 32px; }
.contact__steps li { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; }
.contact__steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); font: 700 .85rem var(--f-head); color: var(--sky); }
.form { display: grid; gap: 16px; padding: 32px; border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--heading); }
.form .req { color: var(--orange); }
.form input:not([type="checkbox"]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid #CBD5E1; border-radius: 8px; background: #fff; color: var(--heading); font: 400 .95rem var(--f-body); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 86, 219, .15); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .84rem; color: var(--text); }
.form .consent input { margin-top: 4px; accent-color: var(--blue); }
.form .consent a { color: var(--blue); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; }
.form__status { font-size: .9rem; color: var(--green); font-weight: 600; }
.form__status:empty { display: none; }
.form__status.error { color: #C53030; }

/* 15. Footer --------------------------------------------------------- */
.footer { position: relative; background: var(--navy-deep); color: #A9B6CA; padding: 64px 0 28px; }
.footer .brand__name { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { margin-top: 16px; font-size: .92rem; max-width: 300px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.footer__col a { font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* 16. Movimento e efeitos de mouse ----------------------------------- */
/* Entrada ao rolar: data-reveal (vazio, left, right, up) com atraso em --d */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal].is-in { opacity: 1; transform: none; }
.toast.is-in { animation: bob 5s ease-in-out 1.6s infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* Luz que acompanha o mouse em áreas escuras (data-spot; JS define --mx/--my) */
[data-spot] { isolation: isolate; }
[data-spot]::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: var(--spot, 0); transition: opacity .5s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(127, 176, 255, .18), transparent 60%); }

/* Inclinação 3D (data-tilt; JS define --rx/--ry) */
[data-tilt]:not([data-reveal]) { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
[data-tilt][data-reveal].is-in > * { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  /* mantém entradas, hovers e transições; desliga só movimentos contínuos */
  .toast.is-in, .badge, .section--decor::before, .section--decor::after, .section--faq::before, .plan__pin--on, .tracker__list li.is-now .tick { animation: none !important; }
  .strip__track { animation-duration: 110s !important; }
}

/* 17. Responsivo ------------------------------------------------------ */
@media (max-width: 1100px) {
  .rollout { grid-template-columns: 1fr; gap: 36px; }
  .journey__stages { scrollbar-width: none; }
  .journey__stages { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .explorer__body { grid-template-columns: 64px 1fr; }
  .explorer__side span { display: none; }
  .explorer__side img { margin: 0 auto 18px; }
  .explorer__side button { justify-content: center; padding: 12px 0; }
  .explorer__side button:hover { padding-left: 0; }
  .nav { gap: 18px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__copy { max-width: 680px; }
  .hero__product { max-width: 760px; }
  .segments { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .header__actions .btn { display: none; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(18, 33, 58, .1); display: none; }
  .nav.is-open { display: flex; }
  .nav a, .header:not(.is-scrolled) .nav a:not(.nav__cta) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--heading); }
  .nav a::after { display: none; }
  .nav .nav__cta { display: block; margin-top: 16px; padding: 13px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; text-align: center; }
  .split, .faq { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__media { order: 0; }
  .split__media { max-width: 640px; }
  .section { padding: 80px 0; }
  .split + .split { margin-top: 80px; }
}

@media (max-width: 640px) {
  .journey__stages { display: grid; grid-template-columns: 1fr; gap: 10px; overflow: visible; }
  .journey__stages li p { display: none; margin-top: 6px; }
  .journey__stages li.is-now p { display: block; }
  .journey__lane { height: 280px; }
  .jcard { width: 100%; translate: none !important; }
  .journey__lane { height: auto; }
  .jcard { position: relative; }
  .journey__rail { display: none; }
  .explorer__body { grid-template-columns: 1fr; }
  .explorer__side { flex-direction: row; overflow-x: auto; padding: 10px; gap: 4px; }
  .explorer__side img { display: none; }
  .explorer__side button { flex: none; padding: 10px 12px; }
  .explorer__side button[aria-selected="true"]::before { display: none; }
  .explorer__main { padding: 18px 14px; }
  .xp__head { flex-wrap: wrap; }
  .hot em { width: 190px; }
  .tracker__list { padding: 6px 16px 10px; }
  .tracker__list li { grid-template-columns: 26px 1fr; }
  .tracker__meta { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; }
  .tracker__head { padding: 16px; }
  .container { width: calc(100% - 32px); }
  .hero { padding: calc(var(--header-h) + 40px) 0 110px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__platforms { grid-template-columns: 1fr; gap: 14px; }
  .hero__platforms li { border-right: 0; padding-right: 0; margin-right: 0; }
  .hero__product { padding: 0 0 36px; }
  .hero__phone { display: none; }
  .kapp { grid-template-columns: 1fr; min-height: 0; }
  .kapp__side { display: none; }
  .kapp__table th:nth-child(2), .kapp__table td:nth-child(2), .kapp__table th:nth-child(4), .kapp__table td:nth-child(4) { display: none; }
  .kapp__kpis { grid-template-columns: repeat(2, 1fr); }
  .toast { right: 0; bottom: 0; font-size: .72rem; }
  .wave { height: 50px; }
  .section--wavy { padding-top: 100px; }
  .section--rise { border-radius: 24px 24px 0 0; margin-top: -24px; }
  #aplicativo { padding-bottom: 120px; }
  .kb { grid-template-columns: repeat(4, 150px); overflow-x: auto; }
  .xp__screen.mock--split { grid-template-columns: 1fr; }
  .mt th:nth-child(2), .mt td:nth-child(2), .mt th:nth-child(4), .mt td:nth-child(4) { display: none; }
  .photo-stats { position: relative; left: auto; right: auto; bottom: auto; margin: -28px 12px 0; grid-template-columns: repeat(2, 1fr); }
  .photo-stats div:nth-child(3) { border-left: 0; }
  .photo-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec { grid-template-columns: 1fr; }
  .screen__kpis { grid-template-columns: repeat(3, 1fr); }
  .screen__kpis div:nth-child(4) { border-left: 0; }
  .screen__kpis div:nth-child(n+4) { border-top: 1px solid #EEF1F6; }
  .app-phones img:first-child { margin-top: 32px; }
  .segments { grid-template-columns: 1fr; }
  .segment { min-height: 380px; }
  .segment ul { max-height: 140px; opacity: 1; margin-top: 16px; }
  .perm th, .perm td { padding: 12px 4px; font-size: .8rem; }
  .perm thead th:first-child, .perm tbody th { padding-left: 10px; }
  .perm thead th { font-size: .56rem; letter-spacing: 0; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* =====================================================================
  18. BOTÕES: preenchimento na diagonal (do canto inferior esquerdo
      até o canto superior direito) ao passar o mouse
  ===================================================================== */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: var(--sweep, var(--navy));
  clip-path: polygon(0 100%, 0 100%, 0 100%);
  transition: clip-path .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: polygon(0 100%, 0 -140%, 240% 100%); }
.btn--primary { --sweep: var(--navy); }
.hero__ctas .btn--primary, .header .btn--primary { --sweep: #0B2545; }
.btn--primary:hover { background: var(--blue); }
.hero__ctas .btn--primary:hover { background: #2F6BFF; }
.btn--white { --sweep: var(--blue); }
.btn--white:hover { background: #fff; color: #fff; }
.btn--outline { --sweep: var(--blue); }
.btn--outline:hover { background: transparent; color: #fff; }
.btn--outline-light { --sweep: #fff; }
.btn--outline-light:hover { background: transparent; color: var(--navy); border-color: #fff; }

/* =====================================================================
  19. DESAFIO: a pergunta do gestor
  ===================================================================== */
.ask { max-width: 1020px; margin: 0 auto; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -36px rgba(11, 37, 69, .45), 0 0 0 1px #DCE4F0; overflow: hidden; }
.ask__bar { display: flex; align-items: center; gap: 14px; padding: 22px 26px; border-bottom: 1px solid #E8EDF5; }
.ask__search { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }
.ask__q { flex: 1; min-width: 0; min-height: 1.6em; font: 600 clamp(1.05rem, .9rem + .7vw, 1.4rem)/1.3 var(--f-head); color: var(--heading); }
.ask__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ask__who { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: .74rem; font-weight: 700; white-space: nowrap; }

.ask__cols { display: grid; grid-template-columns: 1fr 1fr; min-height: 330px; }
.ask__cols > * { min-width: 0; }
.ask__col { position: relative; padding: 24px 26px 28px; }
.ask__col--today { background: #FBF6F2; border-right: 1px solid #F0E4DA; }
.ask__col--khub { background: linear-gradient(160deg, #F1F6FD, #E4EDFA); }
.ask__label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ask__label i { width: 8px; height: 8px; border-radius: 50%; }
.ask__col--today .ask__label { color: var(--orange); }
.ask__col--today .ask__label i { background: var(--orange); }
.ask__col--khub .ask__label { color: var(--green); }
.ask__col--khub .ask__label i { background: var(--green); }

/* a caçada de hoje: passos que aparecem um a um */
.ask__steps { position: relative; display: grid; gap: 10px; }
.ask__steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #F0E2D6; font-size: .9rem; color: #5B4636; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--spring); }
.ask__steps li.is-in { opacity: 1; transform: none; }
.ask__steps li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #FFF1E6; color: var(--orange); font: 700 .8rem var(--f-head); }
.ask__steps li.is-wait span { background: #FFF1E6; }
.ask__steps li.is-wait span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #F5C7A5; border-top-color: var(--orange); animation: spin .7s linear infinite; }
.ask__steps li.is-wait span b { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ask__end { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border-radius: 8px; background: #FDE8E8; color: #B42318; font-size: .86rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--spring); }
.ask__end::before { content: "?"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #B42318; color: #fff; font-size: .7rem; }
.ask__end.is-in { opacity: 1; transform: none; }

/* a resposta no K-Hub */
.ask__answer { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .4s, transform .6s var(--spring); }
.ask__answer.is-in { opacity: 1; transform: none; }
.ask__card { padding: 18px; border-radius: 14px; background: #fff; box-shadow: 0 24px 44px -26px rgba(11, 37, 69, .5), 0 0 0 1px #DCE4F0; }
.ask__card-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #EEF1F6; }
.ask__card-head img { border-radius: 7px; }
.ask__card-head b { font: 700 .98rem var(--f-head); color: var(--heading); }
.ask__card dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF1F6; font-size: .88rem; }
.ask__card dl div:last-child { border-bottom: 0; }
.ask__card dt { color: var(--muted); }
.ask__card dd { color: var(--heading); font-weight: 600; }
.ask__card dd.hl { color: var(--blue); }
.ask__ok { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--green); font-size: .86rem; font-weight: 700; }
.ask__ok::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 12px no-repeat; }

.ask__nav { display: flex; align-items: center; gap: 16px; padding: 16px 26px; border-top: 1px solid #E8EDF5; }
.ask__dots { display: flex; gap: 6px; }
.ask__dots i { width: 8px; height: 8px; border-radius: 999px; background: #D3DCEA; transition: width .4s var(--spring), background .3s; }
.ask__dots i.is-on { width: 26px; background: var(--blue); }
.ask__timer { flex: 1; width: auto; }
.ask.is-paused .journey__timer i { animation-play-state: paused; }

@media (max-width: 760px) {
  .ask__cols { grid-template-columns: 1fr; }
  .ask__col--today { border-right: 0; border-bottom: 1px solid #F0E4DA; }
  .ask__who { display: none; }
  .ask__bar, .ask__col, .ask__nav { padding-left: 18px; padding-right: 18px; }
  .ask__card dl div { grid-template-columns: 96px 1fr; font-size: .82rem; }
  .ask__cols { min-height: 0; }
}

/* =====================================================================
  20. PLATAFORMA: avanço automático, barra de tempo e seta
  ===================================================================== */
.journey__step { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 3px solid #D3DCEA; transition: border-color .5s; }
.journey__step span { font: 700 .82rem var(--f-head); color: #A3B1C6; transition: color .4s; }
.journey__step b { font: 600 1.05rem var(--f-head); color: var(--heading); }
.journey__stages li { transition: opacity .5s; }
.journey__stages li.is-done .journey__step { border-color: #8FB0EE; }
.journey__stages li.is-now .journey__step { border-color: var(--blue); }
.journey__stages li.is-now span, .journey__stages li.is-done span { color: var(--blue); }
.journey__ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 26px; }
.journey__count { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.journey__count b { color: var(--heading); font-family: var(--f-head); }
.journey__timer { position: relative; width: 140px; height: 4px; border-radius: 4px; background: #D8E1EE; overflow: hidden; }
.journey__timer i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.journey__timer.is-run i { animation: timer var(--dur, 3.6s) linear forwards; }
.journey.is-paused .journey__timer i { animation-play-state: paused; }
@keyframes timer { to { transform: scaleX(1); } }
.journey__next { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; transition: background .3s, transform .4s var(--spring); }
.journey__next:hover { background: var(--blue); transform: translateX(4px); }
.journey__next .ic { width: 18px; height: 18px; }
.journey__lane { margin-top: 18px; }

/* =====================================================================
  21. MÓDULOS: balões que surgem e flutuam
  ===================================================================== */
.hot { --tx: -50%; animation: hotPulse 2.4s infinite; transition: transform .35s var(--spring), background .3s; }
.hot[style*="left:8"], .hot[style*="left:9"] { --tx: calc(-100% + 30px); }
.hot:hover, .hot.is-show { transform: scale(1.15); background: var(--navy); animation: none; }
.hot em {
  left: 50%; right: auto; transform-origin: 50% 100%;
  opacity: 0; transform: translateX(var(--tx)) translateY(10px) scale(.6); translate: var(--fx, 0px) var(--fy, 0px);
  transition: opacity .2s, translate .25s var(--ease);
}
.hot[style*="left:8"] em, .hot[style*="left:9"] em { left: 50%; right: auto; transform-origin: calc(100% - 30px) 100%; }
.hot[style*="left:8"] em::after, .hot[style*="left:9"] em::after { left: auto; right: 24px; }
.hot:hover em, .hot:focus-visible em, .hot.is-show em { opacity: 1; transform: translateX(var(--tx)) scale(.6); animation: tipIn .55s var(--spring) forwards, tipFloat 3.2s ease-in-out .55s infinite; }
@keyframes tipIn { from { opacity: 0; transform: translateX(var(--tx)) translateY(12px) scale(.55); } to { opacity: 1; transform: translateX(var(--tx)) translateY(0) scale(1); } }
@keyframes tipFloat { 0%, 100% { transform: translateX(var(--tx)) translateY(0) scale(1); } 50% { transform: translateX(var(--tx)) translateY(-6px) scale(1); } }
.hot:hover { z-index: 6; }

/* =====================================================================
  22. SEGMENTOS A DÚVIDAS: elementos para quebrar o branco
  ===================================================================== */
.section--decor { overflow: hidden; background: linear-gradient(180deg, #fff 0%, #F2F6FC 100%); }
.section--decor::before, .section--decor::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.section--decor::before { width: 520px; height: 520px; left: -180px; top: 10%; background: radial-gradient(circle, rgba(26, 86, 219, .12), transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
.section--decor::after { width: 460px; height: 460px; right: -160px; bottom: -60px; background: radial-gradient(circle, rgba(8, 145, 178, .14), transparent 70%); animation: drift 16s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, -40px); } }
#segmentos .head { position: relative; }

.strip { position: relative; padding: 34px 0; border-block: 1px solid #DFE6F1; background: #fff; }
.strip__inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.strip__inner > * { min-width: 0; }
.strip__title { font-size: .86rem; font-weight: 700; line-height: 1.4; color: var(--heading); padding-right: 24px; border-right: 1px solid #DFE6F1; }
.strip__view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { display: flex; width: max-content; animation: strip 55s linear infinite; }
.strip__track span { padding: 0 26px; font: 600 1rem var(--f-head); color: #6A7A93; white-space: nowrap; border-left: 1px solid #DFE6F1; transition: color .3s; }
.strip__track span:hover { color: var(--blue); }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }

#permissoes { padding-top: 96px; }
.perm-stage { position: relative; padding: 36px 0; }
.perm-stage::before { content: ""; position: absolute; inset: 0 -18px; z-index: -1; border-radius: 22px; background: linear-gradient(135deg, #DCE7F8, #EEF3FB 60%, #E2F4EF); }
.perm-stage .perm-wrap { position: relative; margin: 0 24px; }
.badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; font-size: .76rem; font-weight: 700; color: var(--heading); box-shadow: 0 14px 30px -14px rgba(11, 37, 69, .45); animation: bob 5s ease-in-out infinite; }
.badge i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.badge--ok { top: -8px; right: 6px; }
.badge--ok i { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.badge--no { bottom: -6px; left: 6px; animation-delay: -2.5s; }
.badge--no i { background: #DC2626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 11px no-repeat; }

.section--faq { overflow: hidden; }
.section--faq::before { content: ""; position: absolute; z-index: -1; right: -200px; top: 20%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 86, 219, .1), transparent 70%); animation: drift 15s ease-in-out infinite alternate; }
.support { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 14px; margin-top: 30px; padding: 16px 18px; border-radius: 14px; background: var(--navy); color: #B8C6DB; font-size: .88rem; box-shadow: 0 20px 40px -24px rgba(11, 37, 69, .8); transition: transform .4s var(--spring), background .3s; }
.support b { display: block; color: #fff; font-size: .98rem; }
.support:hover { transform: translateY(-4px); background: #10305A; }
.support__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(127, 176, 255, .16); color: var(--sky); flex: none; }
.support__go { margin-left: auto; color: var(--sky); transition: transform .3s var(--ease); }
.support:hover .support__go { transform: translateX(4px); }

/* =====================================================================
  23. COOKIES
  ===================================================================== */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 90; width: min(560px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; padding: 20px 22px; border-radius: 16px;
  background: #fff; color: var(--text); box-shadow: 0 30px 60px -20px rgba(11, 37, 69, .45), 0 0 0 1px #DCE4F0;
  transform: translateY(24px); opacity: 0; transition: transform .5s var(--spring), opacity .35s;
}
.cookie[hidden] { display: none; }
.cookie.is-in { transform: none; opacity: 1; }
.cookie__ic { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #E9C893; box-shadow: inset -4px -4px 0 rgba(150, 100, 40, .25); }
.cookie__ic i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #6B4423; }
.cookie__ic i:nth-child(1) { left: 11px; top: 12px; }
.cookie__ic i:nth-child(2) { left: 25px; top: 20px; }
.cookie__ic i:nth-child(3) { left: 14px; top: 27px; }
.cookie__text b { display: block; color: var(--heading); font: 700 1rem var(--f-head); margin-bottom: 4px; }
.cookie__text p { font-size: .86rem; line-height: 1.5; }
.cookie__text a { color: var(--blue); text-decoration: underline; }
.cookie__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie__more { margin-left: auto; color: var(--muted); font-size: .86rem; font-weight: 600; text-decoration: underline; }
.cookie__more:hover { color: var(--blue); }

@media (max-width: 1100px) {
}
@media (max-width: 640px) {
  .journey__ctrl { justify-content: space-between; }
  .journey__timer { flex: 1; }
  .perm-stage .perm-wrap { margin: 0 4px; }
  .perm-stage::before { inset: 0 -6px; }
  .badge { font-size: .66rem; }
  .cookie { left: 16px; bottom: 16px; padding: 16px; grid-template-columns: 1fr; }
  .cookie__ic { display: none; }
  .cookie__more { margin-left: 0; }
}

@media (max-width: 640px) {
  .strip { padding: 22px 0; }
  .strip__inner { grid-template-columns: 1fr; gap: 14px; }
  .strip__title { border-right: 0; padding-right: 0; font-size: .8rem; }
  .strip__track span { padding: 0 18px; font-size: .9rem; }
}

/* =====================================================================
  24. JANELA DE SUPORTE
  ===================================================================== */
.sdialog { width: min(980px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 50px 100px -30px rgba(8, 27, 51, .65); overflow: hidden; }
.sdialog::backdrop { background: rgba(8, 27, 51, .6); backdrop-filter: blur(5px); }
.sdialog[open] { animation: sdIn .5s var(--spring); }
.sdialog[open]::backdrop { animation: fadeIn .3s ease; }
@keyframes sdIn { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.sd { display: grid; grid-template-columns: 300px 1fr; max-height: calc(100vh - 32px); }
.sd > * { min-width: 0; }

/* coluna azul-escura */
.sd__side { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: 32px 28px; background: var(--navy); color: #AFC0D8; }
.sd__side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 0% 100%, rgba(47, 107, 255, .35), transparent 70%), radial-gradient(50% 40% at 100% 0%, rgba(8, 145, 178, .2), transparent 70%); }
.sd__brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 700 1.1rem/1.1 var(--f-head); }
.sd__brand img { border-radius: 8px; }
.sd__brand small { display: block; margin-top: 3px; font: 600 .74rem var(--f-body); color: #8DA4C4; letter-spacing: .02em; }
.sd__lead { margin-top: 34px; font-size: .9rem; color: #D7E1F0; }
.sd__tips { margin-top: 18px; display: grid; gap: 18px; counter-reset: tip; }
.sd__tips li { position: relative; padding-left: 38px; font-size: .84rem; line-height: 1.5; counter-increment: tip; }
.sd__tips li::before { content: counter(tip); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(141, 180, 255, .5); color: var(--sky); font: 700 .72rem var(--f-head); }
.sd__tips b { display: block; color: #fff; font-size: .9rem; margin-bottom: 2px; }
.sd__links { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.sd__links a { display: inline-flex; align-items: center; justify-content: space-between; color: #D7E1F0; font-size: .86rem; font-weight: 600; transition: color .2s; }
.sd__links a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--sky); border-right: 1.5px solid var(--sky); transform: rotate(45deg); transition: transform .3s var(--ease); }
.sd__links a:hover { color: #fff; }
.sd__links a:hover::after { transform: translateX(4px) rotate(45deg); }

/* formulário */
.sd__main { position: relative; overflow-y: auto; padding: 34px 36px 30px; }
.sd__close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--heading); transition: border-color .2s, background .2s; }
.sd__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .35s var(--spring); }
.sd__close:hover { background: #F4F7FB; border-color: #C9D5E6; }
.sd__close:hover svg { transform: rotate(90deg); }
.sd__head { padding-right: 48px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.sd__head h2 { font-size: 1.45rem; }
.sd__head p { margin-top: 4px; font-size: .9rem; color: var(--muted); }

.sd__types { margin: 0 0 22px; padding: 0; border: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sd__types legend, .sd__prio-label { margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.sd__types legend { padding: 0; }
.sd__types label, .sd__prio label { position: relative; cursor: pointer; }
.sd__types input, .sd__prio input { position: absolute; opacity: 0; pointer-events: none; }
.sd__types span { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 10px; border: 1px solid #D5DEEA; border-radius: 10px; font-size: .84rem; font-weight: 600; color: var(--heading); text-align: center; line-height: 1.2; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.sd__types label:hover span { border-color: #A9BDDD; }
.sd__types input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.sd__types input:focus-visible + span, .sd__prio input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.sd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fld { display: block; font-size: .8rem; font-weight: 700; color: var(--heading); }
.fld input, .fld select, .fld textarea {
  display: block; width: 100%; margin-top: 7px; padding: 11px 13px; border: 1px solid #D5DEEA; border-radius: 9px; background: #FBFCFE;
  color: var(--heading); font: 400 .95rem var(--f-body); transition: border-color .2s, box-shadow .2s, background .2s;
}
.fld select { appearance: none; padding-right: 36px; background: #FBFCFE 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='%23718096' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 11px no-repeat; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input::placeholder, .fld textarea::placeholder { color: #A0AEC0; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: #B9C8DD; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, .14); }
.fld input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #FBFCFE inset; -webkit-text-fill-color: var(--heading); }
.sd__form > .fld { margin-top: 18px; }

.sd__prio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.sd__prio-label { margin: 0 6px 0 0; }
.sd__prio label span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #D5DEEA; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--heading); transition: all .2s; }
.sd__prio label span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.sd__prio label:nth-of-type(2) span::before { background: #F59E0B; }
.sd__prio label:nth-of-type(3) span::before { background: #DC2626; }
.sd__prio input:checked + span { border-color: var(--heading); background: var(--heading); color: #fff; }

.sd__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.sd__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--text); cursor: pointer; }
.sd__consent input { margin-top: 2px; width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.sd__consent a { color: var(--blue); text-decoration: underline; }
.sd__foot .btn { flex: none; }
.sd__form .form__status { margin-top: 12px; font-size: .86rem; }
.sd__form .form__status.error { padding: 10px 12px; border-radius: 8px; background: #FDECEC; }

/* confirmação */
.sd__done { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 460px; text-align: center; }
.sd__done[hidden] { display: none; }
.sd__done h2 { font-size: 1.5rem; }
.sd__done p { max-width: 380px; }
.sd__done b { color: var(--heading); }
.sd__check { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: #E6F7F0; animation: pop .5s var(--spring); }
.sd__check svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawCheck .5s var(--ease) .25s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.sd__done-btns { display: flex; gap: 10px; margin-top: 14px; }

@media (max-width: 860px) {
  .sd { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .sd__main { min-height: 0; }
  .sd__side { padding: 20px 22px; }
  .sd__lead, .sd__tips, .sd__links { display: none; }
  .sd__types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sd__main { padding: 26px 18px 22px; }
  .sd__grid { grid-template-columns: 1fr; }
  .sd__foot { flex-direction: column; align-items: stretch; }
  .sd__foot .btn { width: 100%; }
  .sd__close { top: 12px; right: 12px; }
}
