/* Fontes hospedadas no próprio site (OFL, via Fontsource) */
@font-face{font-family:"Saira";font-weight:600;font-display:swap;src:url(/assets/fonts/saira-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Saira";font-weight:700;font-display:swap;src:url(/assets/fonts/saira-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-weight:500;font-display:swap;src:url(/assets/fonts/manrope-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Manrope";font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-latin-700-normal.woff2) format("woff2")}

/* 4IT Smart Solutions | estilos do site
   Depende de tokens.css (brand kit v2). Só cores e fontes dos tokens. */

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; }
p, ul, ol { margin: 0; }

a { text-underline-offset: 3px; }
a:hover { color: var(--brand-safira); }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--color-primary); color: var(--color-text-inverse);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- estrutura ---------- */

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.section { padding-block: 88px; }
.section--mist { background: var(--color-bg-subtle); border-block: 1px solid var(--color-border); }
.section--dark { background: var(--color-bg-inverse); color: var(--color-text-inverse); position: relative; overflow: hidden; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-text-inverse); }
.section--tight { padding-block: 56px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 44px; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 48px;
}
.section-head > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.lead { font-size: 19px; color: var(--color-text-muted); max-width: 38em; }
.muted { color: var(--color-text-muted); }
.section--dark .lead, .section--dark .muted { color: #C3CEE0; }

.label { margin: 0; display: block; }
.section--dark .label { color: var(--color-accent-on-dark); }

.link-more { font-weight: 600; padding-block: 10px; white-space: nowrap; }

/* ---------- faixas a 20° (no máximo três, uma em acento) ---------- */

.faixas { position: absolute; inset: 0; pointer-events: none; }
.faixas span {
  position: absolute; top: -20%; bottom: -20%;
  transform: skewX(calc(var(--diag-angle) * -1));
}
.faixas .f1 { right: 16%; width: 150px; background: var(--brand-safira); opacity: .55; }
.faixas .f2 { right: 11%; width: 34px; background: var(--brand-azul-ativo); }
.faixas .f3 { right: 8.5%; width: 8px; background: var(--brand-aco-metalico); }
.faixas--quiet .f1 { opacity: .35; }

/* ---------- cabeçalho ---------- */

.topbar { height: 4px; background: linear-gradient(90deg, var(--brand-azul-noite) 0 70%, var(--brand-azul-ativo) 70% 100%); }

.site-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-block: 18px;
}
.brand { display: block; }
.brand img { width: 208px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--color-text); text-decoration: none; padding-block: 12px; }
.nav a:hover { color: var(--color-link); }
.nav a[aria-current="page"] { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* ---------- botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font: 600 16px/1 var(--font-text); text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { border-color: var(--color-primary); }
.btn-primary:hover { color: var(--color-text-inverse); border-color: var(--color-primary-hover); }
.btn-primary[aria-current="page"] { background: var(--brand-azul-noite); border-color: var(--brand-azul-noite); text-decoration: none; color: var(--color-text-inverse); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.nav .btn-primary { color: var(--color-text-inverse); }
.btn-ghost { color: var(--color-link); background: transparent; padding-inline: 4px; }
.btn-ghost:hover { color: var(--brand-safira); }
.btn-light { background: var(--brand-branco); color: var(--brand-safira); }
.btn-light:hover { background: var(--brand-nevoa); color: var(--brand-azul-noite); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- hero ---------- */

.hero { padding-block: 72px 88px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px; }
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero-text h1 { color: var(--brand-azul-noite); }

.panel {
  flex: 1 1 400px; min-width: 0; position: relative; overflow: hidden;
  background: var(--brand-azul-noite); color: var(--color-text-inverse);
  border-radius: var(--radius-lg); padding: 28px;
}
.panel > *:not(.faixas) { position: relative; }
figure.panel { margin: 0; }
.panel .faixas .f1 { right: 4%; width: 100px; opacity: .5; }
.panel .faixas .f2 { right: -2%; width: 26px; }
.panel .faixas .f3 { right: -5%; width: 6px; }
.landscape { display: flex; flex-direction: column; gap: 18px; max-width: 420px; }
.landscape .row { display: flex; align-items: stretch; gap: 8px; }
.sys {
  flex: 1 1 0; min-width: 0; padding: 12px; border-radius: var(--radius-sm);
  background: rgba(10, 58, 140, .55); border: 1px solid rgba(111, 162, 255, .35);
  display: flex; flex-direction: column; gap: 2px;
}
.sys b { font: 600 22px/1.1 var(--font-display); }
.sys span { font-size: 12px; color: #C3CEE0; }
.sys--prd { background: var(--brand-safira); border-color: var(--brand-azul-luz); }
.arrow { align-self: center; color: var(--brand-azul-luz); font-size: 18px; }
.sys--dr { flex-direction: row; align-items: center; gap: 14px; border-style: dashed; background: rgba(6, 23, 51, .8); }
.sys--dr span { font-size: 13px; line-height: 1.45; }
.repl { display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .08em; color: var(--brand-azul-luz); font-weight: 700; }
.repl::before, .repl::after { content: ""; flex: 1; border-top: 1px dashed rgba(111, 162, 255, .5); }
.stackinfo { border-top: 1px solid rgba(220, 227, 236, .2); padding-top: 14px; font-size: 13px; color: #C3CEE0; display: flex; flex-direction: column; gap: 4px; }
.stackinfo strong { color: #fff; font-weight: 600; }

/* ---------- faixa de plataformas ---------- */

.platforms { background: var(--color-bg-subtle); border-block: 1px solid var(--color-border); padding-block: 24px; }
.platforms .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.platforms p { flex: 1 1 600px; min-width: 0; font-size: 15px; color: var(--color-text-muted); line-height: 1.8; }

/* ---------- cartões e grades ---------- */

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 480px) { .grid--wide { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 28px;
  display: flex; flex-direction: column; gap: 12px; background: var(--color-bg);
  min-width: 0;
}
.card h3 { color: var(--brand-azul-noite); }
.card p { font-size: 15px; color: var(--color-text-muted); }
.card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.card .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 14px; color: var(--color-text-muted); }
.card .foot strong { color: var(--color-text); }
.card--mist { background: var(--color-bg-subtle); border-color: transparent; }
.card--link { text-decoration: none; color: var(--color-text); transition: border-color .15s; }
.card--link:hover { border-color: var(--brand-azul-ativo); color: var(--color-text); }
.card .icon { width: 28px; height: 28px; stroke: var(--brand-safira); }

/* chanfro no canto, eco dos cortes do símbolo */
.card--cut { clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }

/* ---------- etapas ---------- */

.steps { list-style: none; padding: 0; display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { border-top: 2px solid var(--brand-safira); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.steps .n { font: 600 15px/1 var(--font-display); color: var(--brand-azul-ativo); }
.steps h3 { font-size: 20px; color: var(--brand-azul-noite); }
.steps p { font-size: 15px; color: var(--color-text-muted); }

/* ---------- faixa de chamada ---------- */

.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; position: relative; }
.cta .wrap > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }

/* ---------- cabeçalho de página interna ---------- */

.page-head { position: relative; overflow: hidden; background: var(--color-bg-subtle); border-bottom: 1px solid var(--color-border); padding-block: 72px 60px; }
.page-head .wrap { position: relative; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { max-width: 820px; }
.page-head .faixas .f1 { opacity: .08; }
.page-head .faixas .f2 { opacity: .25; }
.page-head .faixas .f3 { opacity: .6; }

/* ---------- sobre ---------- */

.pillars { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pillars div { border-top: 2px solid var(--brand-safira); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.pillars h3 { color: var(--brand-azul-noite); font-size: 22px; }
.pillars p { color: var(--color-text-muted); }

.founder { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.photo {
  flex: 0 1 300px; aspect-ratio: 4 / 5; max-width: 100%;
  border: 1px dashed var(--brand-aco); border-radius: var(--radius-md); background: var(--color-bg);
  display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--color-text-muted);
}
.founder .stack { flex: 1 1 460px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--color-border); background: var(--color-bg); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.chip--on { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text-inverse); }

.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--color-border); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--brand-azul-ativo); }

.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split > :first-child { flex: 1 1 320px; min-width: 0; }
.split > :last-child { flex: 1.5 1 480px; min-width: 0; }

/* ---------- conteúdos ---------- */

.feature { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 44px; border-radius: var(--radius-lg); background: var(--brand-azul-noite); color: #fff; text-decoration: none; }
.feature > *:not(.faixas) { position: relative; max-width: 760px; }
.feature .label { color: var(--brand-azul-luz); }
.feature strong { font: 600 clamp(24px, 2.6vw, 34px)/1.2 var(--font-display); }
.feature:hover { color: #fff; }
.feature:hover strong { text-decoration: underline; text-underline-offset: 6px; }

.posts { list-style: none; padding: 0; border-top: 1px solid var(--color-border); }
.posts a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; padding-block: 22px; border-bottom: 1px solid var(--color-border); text-decoration: none; color: var(--color-text); }
.posts .label { flex: 0 0 250px; }
.posts strong { flex: 1 1 420px; min-width: 0; font: 600 20px/1.3 var(--font-display); color: var(--brand-azul-noite); }
.posts a:hover strong { color: var(--brand-azul-ativo); }
.posts small { font-size: 13px; color: var(--color-text-muted); }

.note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; background: var(--color-bg-subtle); border-radius: var(--radius-md); padding: 24px 28px; }

/* ---------- contato ---------- */

.contact { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.contact form { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact aside { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  font: 400 16px/1.5 var(--font-text); color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--brand-aco); border-radius: var(--radius-sm); padding: 11px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-focus); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--color-text-muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--color-primary); }
.contact dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact dt { font: 700 var(--size-label)/1.2 var(--font-text); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.contact dd { margin: 2px 0 0; user-select: all; }

/* ---------- rodapé ---------- */

.site-footer { background: var(--brand-azul-noite); color: #C3CEE0; padding-block: 64px 32px; font-size: 15px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 36px 64px; }
.site-footer .cols > div, .site-footer nav { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.site-footer .about { flex: 2 1 320px; }
.site-footer .cols > :not(.about) { flex: 1 1 180px; }
.wordmark { font: 600 22px/1.2 var(--font-display); color: #fff; }
.site-footer .label { color: #9FB0C8; }
.site-footer a { color: var(--brand-azul-luz); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(220, 227, 236, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 13px; color: #9FB0C8; }

/* ---------- telas estreitas ---------- */

@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 48px 64px; }
  .brand img { width: 180px; }
  .nav { gap: 0 20px; }
  .faixas .f1 { right: 4%; width: 90px; }
  .faixas .f2 { right: -2%; }
  .faixas .f3 { display: none; }
  .feature { padding: 28px; }
}

@media (max-width: 480px) {
  .panel { padding: 22px; }
  .landscape .row { flex-direction: column; gap: 6px; }
  .landscape .row .sys { flex-direction: row; align-items: baseline; gap: 12px; }
  .arrow { align-self: flex-start; margin-left: 18px; transform: rotate(90deg); line-height: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ajustes */
.nav a.btn-primary[aria-current="page"] { color: var(--color-text-inverse); text-decoration: none; background: var(--brand-azul-noite); border-color: var(--brand-azul-noite); }
.panel .muted { color: #C3CEE0; }

/* ================= versão final ================= */

.trust { border-bottom: 1px solid var(--color-border); padding-block: 22px; }
.trust ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 15px; color: var(--color-text-muted); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust li::before { content: ""; width: 4px; height: 16px; background: var(--brand-azul-ativo); transform: skewX(-20deg); flex: none; }
.trust strong { color: var(--brand-azul-noite); font-weight: 600; }

.pain { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pain article { border-left: 0; padding: 24px 24px 26px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pain .tag { font: 700 var(--size-label)/1.2 var(--font-text); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-link); }
.pain h3 { color: var(--brand-azul-noite); font-size: 20px; }
.pain p { font-size: 15px; color: var(--color-text-muted); }

.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.stat { position: relative; overflow: hidden; border-radius: var(--radius-md); padding: 28px; background: var(--brand-azul-noite); color: #fff; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stat b { font: 600 clamp(34px, 3.4vw, 44px)/1 var(--font-display); color: #fff; }
.stat b span { color: var(--brand-azul-luz); }
.stat p { font-size: 15px; color: #C3CEE0; }
.note-small { font-size: 13px; color: var(--color-text-muted); max-width: 60em; }

.cases { display: flex; flex-direction: column; gap: 24px; }
.case { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.case-side { background: var(--brand-azul-noite); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.case-side .label { color: var(--brand-azul-luz); }
.case-side h3 { color: #fff; font-size: 22px; }
.case-side .result { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(220,227,236,.2); font-size: 15px; color: #C3CEE0; }
.case-side .result b { display: block; font: 600 26px/1.15 var(--font-display); color: #fff; margin-bottom: 4px; }
.case-main { padding: 28px 32px; display: grid; gap: 18px 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.case-main h4 { margin: 0 0 6px; font: 700 var(--size-label)/1.2 var(--font-text); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-link); }
.case-main p, .case-main li { font-size: 15px; color: var(--color-text); }
.case-main ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.case-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { font-size: 13px; border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 12px; color: var(--brand-safira); }
@media (max-width: 720px) { .case { grid-template-columns: 1fr; } .case-main { padding: 24px; } }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--font-display); color: var(--brand-azul-noite); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 600 24px/1 var(--font-text); color: var(--color-link); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--color-text-muted); max-width: 52em; }

.certs { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.certs li { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px 18px; background: var(--color-bg); display: flex; flex-direction: column; gap: 2px; }
.certs b { font: 600 17px/1.3 var(--font-display); color: var(--brand-azul-noite); }
.certs span { font-size: 14px; color: var(--color-text-muted); }

.photo-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 280px; background: var(--brand-azul-noite); }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.photo-band .inner { position: relative; z-index: 2; padding: 40px; max-width: 620px; display: flex; flex-direction: column; gap: 12px; color: #fff; background: linear-gradient(90deg, rgba(6,23,51,.92) 60%, rgba(6,23,51,0)); height: 100%; }
.photo-band .inner h2 { color: #fff; }
.photo-band .inner p { color: #C3CEE0; }
.photo-band .label { color: var(--brand-azul-luz); }

.prose { max-width: 46em; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.site-footer .linkedin { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .linkedin svg { width: 18px; height: 18px; fill: currentColor; }
.case-side::after { content: ""; position: absolute; right: 18px; top: -10px; width: 6px; height: 70px; background: var(--brand-azul-ativo); transform: skewX(-20deg); }
