/*
 * Site da Olimpo Tech. Mobile-first, sem CSS inline (a CSP bloqueia style=).
 *
 * Identidade: dois tons (papel claro e marinho da marca), um acento azul só para ação e a cor de cada produto nas
 * páginas dele (Hermes azul, Aristeu verde, Argo laranja). Space Grotesk nos títulos, Inter no texto, mono do
 * sistema para dados (datas, estados, números). Recortes de tela em HTML (.ui-card), não imagens.
 * Contraste: textos escolhidos para AA sobre o fundo em que aparecem. Movimento: tudo some com
 * prefers-reduced-motion; sem JavaScript tudo fica visível (efeitos em site.js).
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F4F1;
  --paper-2: #ECEDE8;
  --surface: #FFFFFF;
  --line: #DCDED7;
  --ink: #0E1730;
  --ink-2: #4D5668;
  --night: #08122B;
  --night-2: #0F1C3E;
  --night-3: #16264F;
  --night-ink: #EEF1F7;
  --night-ink-2: #A9B4C8;
  --night-line: rgba(238, 241, 247, .14);

  /* Acento de ação (a página de produto troca pela cor do produto) */
  --acc: #0E5FE8;
  --acc-hover: #0A4FC4;
  --acc-text: #0A55D2;
  --acc-night: #7FAEFF;
  --acc-soft: rgba(14, 95, 232, .10);

  /* Estados dos recortes de tela */
  --ok: #157347;      --ok-bg: #E3F4EA;
  --wait: #8A5A0B;    --wait-bg: #FBF0D9;
  --alert: #B42318;   --alert-bg: #FDE7E4;
  --info: #1D4ED8;    --info-bg: #E4ECFD;

  --focus: #0B5BD9;
  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-title: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  --header-h: 68px;
  interpolate-size: allow-keywords;
}

/* Cor de cada produto: na página dele e nos cartões que o representam */
.page-hermes, .accent-hermes { --acc: #1652F0; --acc-hover: #0F42C8; --acc-text: #1448D6; --acc-night: #86AEFF; --acc-soft: rgba(22, 82, 240, .10); }
.page-aristeu, .accent-aristeu { --acc: #2C7A4B; --acc-hover: #22633C; --acc-text: #256A40; --acc-night: #86D7A3; --acc-soft: rgba(44, 122, 75, .11); }
.page-argo, .accent-argo { --acc: #B9471A; --acc-hover: #9A3A14; --acc-text: #A63F16; --acc-night: #FFA27A; --acc-soft: rgba(185, 71, 26, .10); }

/*
 * Na página do produto, o tom inteiro herda a marca dele: o escuro (hero, IA, contato, rodapé) vira o escuro da cor
 * do produto e o claro ganha um leve tom dela. Contraste conferido para AA com --night-ink e --night-ink-2.
 * O Aristeu usa o dourado do logo como acento no escuro, ao lado do verde dos botões.
 */
.page-hermes {
  --night: #061638; --night-2: #0B2253; --night-3: #123070; --night-line: rgba(214, 226, 255, .16);
  --night-ink: #EEF2FC; --night-ink-2: #AEBBD8;
  --paper: #F1F4FA; --paper-2: #E4EAF6; --line: #D6DDEB;
}
.page-aristeu {
  --night: #0A2116; --night-2: #11301F; --night-3: #19402A; --night-line: rgba(220, 238, 226, .16);
  --night-ink: #EEF5F0; --night-ink-2: #AFC6B6;
  --paper: #F2F5EF; --paper-2: #E5EBE1; --line: #D5DDD0;
  --acc-night: #E2C35E;
}
.page-argo {
  --night: #1E120D; --night-2: #2D1B13; --night-3: #3D261B; --night-line: rgba(255, 228, 214, .16);
  --night-ink: #FBF1EC; --night-ink-2: #CDB5A9;
  --paper: #F7F3EF; --paper-2: #EEE6DF; --line: #E2D7CE;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--paper); }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; font-weight: 600; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--acc-text); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--acc); color: #fff; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: -0.2em; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

/* ── Tons das seções ── */
.tone-paper { background: var(--paper); color: var(--ink); }
.tone-night { background: var(--night); color: var(--night-ink); --line: var(--night-line); --focus: #9CC2FF; }

/* ── Tipografia ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); flex-shrink: 0; }
.tone-night .eyebrow { color: var(--night-ink-2); }
.tone-night .eyebrow::before { background: var(--acc-night); }

.display {
  font-size: clamp(40px, 6.2vw, 84px); font-weight: 600; line-height: .98; letter-spacing: -.045em;
  margin-bottom: 24px; overflow-wrap: break-word; text-wrap: balance;
}
.section-title {
  font-size: clamp(30px, 5vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.04;
  margin-bottom: 18px; overflow-wrap: break-word; text-wrap: balance;
}
.display-2 { font-size: clamp(34px, 5.4vw, 66px); letter-spacing: -.04em; line-height: 1; }
.section-sub { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.tone-night .section-sub { color: var(--night-ink-2); }

/* Segunda parte do título: traço da marca por baixo, desenhado quando o título aparece (site.js põe .is-in) */
.mk {
  background-image: linear-gradient(var(--acc), var(--acc));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .07em;
  padding-bottom: .04em;
}
.tone-night .mk { background-image: linear-gradient(var(--acc-night), var(--acc-night)); }
.js-motion [data-split] .mk { background-size: 0 .07em; transition: background-size 1.1s var(--ease) .35s; }
.js-motion [data-split].is-in .mk { background-size: 100% .07em; }

/* Palavra a palavra (site.js divide o título em .w > span) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
[data-split].is-in .w > span { transform: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px;
  font-weight: 600; color: var(--acc-text); text-decoration: none;
}
.tone-night .text-link { color: var(--acc-night); }
.text-link .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(4px); }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-title); font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-hover); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn-ghost:hover .icon { transform: translateY(2px); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }

/* ── Cabeçalho ── */
.site-header {
  position: relative; z-index: 300;
  background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: transform .45s var(--ease), box-shadow .25s;
}
.js .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 18, 43, .08); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 8px 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night); }
.brand img { width: 40px; height: 35px; object-fit: contain; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 18px; letter-spacing: .01em; text-transform: uppercase; }
.brand-name span { color: #0E5FE8; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--night); cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-open, .nav-toggle-close { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open,
.nav-toggle[aria-expanded="false"] .nav-toggle-close { display: none; }

.site-nav { width: 100%; padding: 8px 0 20px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

.nav-list { display: flex; flex-direction: column; }
.nav-link, .drop-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 52px; padding: 10px 4px; font-family: var(--font-title); font-size: 20px; font-weight: 500; color: var(--ink);
  text-decoration: none; cursor: pointer; border-bottom: 1px solid var(--line);
}
.nav-link:hover, .drop-summary:hover { color: var(--acc-text); }
.drop > summary { list-style: none; }
.drop > summary::-webkit-details-marker { display: none; }
.drop[open] > .drop-summary .icon { transform: rotate(180deg); }
.drop-summary .icon { transition: transform .25s; width: 1em; height: 1em; }
.drop-list { padding: 6px 0 10px; }
.drop-link {
  position: relative; display: block; padding: 10px 12px 10px 26px; border-radius: 12px; text-decoration: none; color: var(--ink);
}
.drop-link::before { content: ""; position: absolute; left: 10px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.drop-lang .drop-link { padding-left: 12px; }
.drop-lang .drop-link::before { display: none; }
.drop-link[aria-current="true"] { font-weight: 700; }
.drop-link strong { display: block; font-family: var(--font-title); font-size: 16px; font-weight: 600; color: var(--ink); }
.drop-link span { display: block; font-size: 13px; color: var(--ink-2); }
.drop-link:hover, .drop-link[aria-current="page"] { background: var(--paper-2); }

.nav-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; }
.nav-tools .drop-summary { font-size: 15px; min-height: 44px; border-bottom: 0; padding: 8px 12px; }
.drop-end { position: relative; }
.nav-tools .btn-login { border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; }
.btn-login:hover { background: var(--ink); color: var(--paper); }
.drop-end .drop-list { min-width: 220px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 78% 40%, color-mix(in srgb, var(--acc) 38%, transparent), transparent 65%),
    radial-gradient(ellipse 40% 45% at 10% 95%, rgba(35, 164, 255, .14), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(238, 241, 247, .10) 1px, transparent 1px); background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-sub { font-size: 18px; color: #C6CFDF; line-height: 1.65; max-width: 580px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions > .btn { flex: 1 1 220px; }
.tone-night .btn-ghost { color: var(--night-ink); border-color: rgba(238, 241, 247, .45); }
.tone-night .btn-ghost:hover { background: rgba(238, 241, 247, .08); border-color: var(--night-ink); }

.eyebrow-mark img { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: rgba(255, 255, 255, .92); padding: 3px; }
.eyebrow-mark::before { display: none; }

.audience { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.audience-label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--night-ink-2); margin-right: 4px; }
.audience-chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-ink); }

/* Recortes de tela no hero: cartões que flutuam */
.scenes { position: relative; display: grid; gap: 14px; }
.scene { max-width: 360px; }
.scene-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--night-ink-2);
}
.scene-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc-night); }
.scene-caption { font-family: var(--font-mono); font-size: 11px; color: var(--night-ink-2); opacity: .8; margin-top: 4px; }

/* ── Recorte de tela (.ui-card) ── */
.ui-card {
  background: var(--surface); color: var(--ink); border: 1px solid #E3E5DF; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(8, 18, 43, .04), 0 18px 40px -18px rgba(8, 18, 43, .35);
}
.ui-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.ui-status {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; background: var(--info-bg); color: var(--info);
}
.ui-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-ok .ui-status { background: var(--ok-bg); color: var(--ok); }
.tone-wait .ui-status { background: var(--wait-bg); color: var(--wait); }
.tone-alert .ui-status { background: var(--alert-bg); color: var(--alert); }
.tone-wait .ui-dot { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.ui-meta { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* ── Seções ── */
.sec { padding: 72px 0; }
.sec-head { margin-bottom: 44px; max-width: 760px; }

/* Setores (portas da home) */
.sectors { display: grid; gap: 16px; }
.sector a {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 100%;
  padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  overflow: hidden; transition: background-color .4s var(--ease), border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.sector a::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--acc);
  transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease);
}
.sector a:hover, .sector a:focus-visible { background: color-mix(in srgb, var(--acc) 6%, var(--surface)); border-color: color-mix(in srgb, var(--acc) 35%, var(--line)); transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(8, 18, 43, .35); }
.sector a:hover::before, .sector a:focus-visible::before { transform: scaleX(1); }
.sector-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.sector-top img { width: auto; height: 64px; max-width: 110px; object-fit: contain; }
.sector-cat { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--acc-text); text-align: right; }
.sector-name { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.sector-sum { display: block; color: var(--ink-2); line-height: 1.6; margin-bottom: 22px; }
.sector-hl { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; border-top: 1px solid var(--line); }
.sector-hl span { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sector-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 600; color: var(--acc-text); }
.sector-more .icon { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.sector a:hover .sector-more .icon { transform: translateX(6px); }

/* Seus dados */
.trust-grid { display: grid; gap: 48px; align-items: start; }
.trust-list { display: grid; gap: 22px; margin: 36px 0 20px; }
.trust-list li { display: flex; gap: 16px; align-items: flex-start; }
.trust-ic {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--night-line); color: var(--acc-night);
}
.trust-ic .icon { width: 18px; height: 18px; }
.trust-list h3 { font-size: 18px; color: #fff; margin-bottom: 4px; letter-spacing: -.01em; }
.trust-list p { color: var(--night-ink-2); font-size: 15px; }

.log-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 22px; padding: 24px 22px; }
.log-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--night-ink-2); margin-bottom: 18px; }
.log-card ol { position: relative; display: grid; gap: 22px; padding-left: 22px; }
.log-card ol::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--night-line); }
.log-card li { position: relative; }
.log-card li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--acc-night); box-shadow: 0 0 0 4px var(--night-2); }
.log-when { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--night-ink-2); margin-bottom: 4px; }
.log-what { font-family: var(--font-title); font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.log-who { font-size: 14px; color: var(--night-ink-2); }
.log-caption { margin-top: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--night-ink-2); }

/* Título fixo + conteúdo (Como começa, Na prática, Perguntas) */
.split { display: grid; gap: 40px; }
.story-caption { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }

/* Linha do tempo: a linha de progresso cresce com a rolagem (site.js define --p de 0 a 1) */
.timeline { position: relative; display: grid; gap: 40px; padding-left: 58px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 19px; top: 8px; width: 2px; border-radius: 2px; }
.timeline::before { bottom: 8px; background: var(--line); }
.timeline::after { height: calc((100% - 16px) * var(--p, 0)); background: var(--acc); }
.tl-step { position: relative; }
.tl-n {
  position: absolute; left: -58px; top: -4px; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 2px solid var(--line); transition: background-color .4s, border-color .4s, color .4s;
}
.js-motion .tl-step .tl-body { opacity: .45; transition: opacity .5s; }
.js-motion .tl-step.is-on .tl-body { opacity: 1; }
.tl-step.is-on .tl-n, .no-js .tl-n { background: var(--acc); border-color: var(--acc); color: #fff; }
.tl-body h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; margin-bottom: 8px; }
.tl-body p { color: var(--ink-2); max-width: 520px; }
.tl-ui { margin-top: 20px; max-width: 380px; }

/* Perguntas: <details name="faq"> abre uma por vez; a altura anima onde o navegador sabe (::details-content) */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0;
  font-family: var(--font-title); font-size: clamp(18px, 2vw, 21px); font-weight: 500; letter-spacing: -.01em; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--acc-text); }
.faq-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; transition: transform .4s var(--ease), background-color .3s; }
.faq-ic .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--acc); border-color: var(--acc); color: #fff; }
.faq-a p { padding: 0 56px 24px 0; color: var(--ink-2); max-width: 680px; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }

/* Módulos */
.mod-list { display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
.mod-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.mod-ic { display: inline-flex; color: var(--acc-text); margin-bottom: 12px; }
.mod-list h3 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 6px; }
.mod-list p { font-size: 15px; color: var(--ink-2); }

.others { margin-top: 56px; }
.others-title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 14px; }
.others ul { display: flex; flex-wrap: wrap; gap: 12px; }
.other {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .3s, background-color .3s;
}
.other strong { font-family: var(--font-title); }
.other span { font-size: 14px; color: var(--ink-2); }
.other .icon { width: 1em; height: 1em; color: var(--acc-text); transition: transform .3s var(--ease); }
.other:hover { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, var(--surface)); }
.other:hover .icon { transform: translateX(4px); }

/* IA do produto */
.ai-grid { display: grid; gap: 48px; align-items: center; }
.ai-mark { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.caps { display: grid; gap: 18px; margin-top: 32px; }
.cap { display: flex; gap: 14px; align-items: flex-start; }
.cap-ic {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--night-line); color: var(--acc-night);
}
.cap-ic .icon { width: 17px; height: 17px; }
.cap h3 { font-size: 17px; color: #fff; margin-bottom: 2px; }
.cap p { font-size: 15px; color: var(--night-ink-2); }

.chat { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 24px; overflow: hidden; color: var(--night-ink); }
.chat-hdr { padding: 16px 20px; border-bottom: 1px solid var(--night-line); display: flex; align-items: center; gap: 12px; }
.chat-av, .msg-av {
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-family: var(--font-title); font-weight: 700; color: #fff; background: var(--acc);
}
.chat-av { width: 34px; height: 34px; font-size: 14px; }
.chat-name { font-size: 15px; font-weight: 700; color: #fff; }
.chat-status { font-family: var(--font-mono); font-size: 11px; color: var(--night-ink-2); }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 9px; align-items: flex-end; }
.msg.u { flex-direction: row-reverse; }
.msg-av { width: 28px; height: 28px; font-size: 11px; }
.msg.u .msg-av { background: var(--night-3); color: var(--night-ink); }
.bubble {
  font-size: 14px; line-height: 1.55; max-width: min(340px, 82%);
  background: var(--night-3); border-radius: 16px 16px 16px 4px; padding: 10px 14px;
}
.msg.u .bubble { border-radius: 16px 16px 4px 16px; background: var(--acc); color: #fff; }
.bubble strong { color: var(--acc-night); }
.chat-actions { display: flex; gap: 8px; padding: 0 20px 20px 57px; }
.chip { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-ink); }
.chip-p { background: var(--acc); border-color: transparent; color: #fff; }

/* ── Contato (chamada final) ── */
.contact-grid { display: grid; gap: 44px; align-items: start; }
.contact-actions { margin: 32px 0 8px; }
.contact-mail { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--night-ink-2); overflow-wrap: anywhere; }
.contact-mail .icon { color: var(--acc-night); }
.contact-mail a { color: var(--night-ink); }

.form-box {
  position: relative; background: var(--surface); color: var(--ink); border-radius: 26px; padding: 24px 18px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0; --focus: #0B5BD9; --line: #DCDED7;
}
.form-title { font-size: 22px; letter-spacing: -.02em; }
.form-sub { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.form-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.fg { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fl { font-size: 14px; font-weight: 600; }
.fi {
  width: 100%; min-height: 50px; background: var(--paper); border: 1px solid #C9CCC3; border-radius: 12px; padding: 12px 14px;
  font-size: 16px; color: var(--ink); transition: border-color .2s, background-color .2s;
}
.fi::placeholder { color: #6A7181; }
.fi:focus { border-color: var(--acc); background: #fff; }
.fi:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fi[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 1px #B42318; }
textarea.fi { resize: vertical; min-height: 110px; }
select.fi { appearance: auto; }
.fc { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.fc input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--acc); }
.fc input[aria-invalid="true"] + label { color: #B42318; }
.form-submit { width: 100%; }
.form-submit[disabled] { opacity: .7; cursor: progress; }
.form-status { font-size: 14px; min-height: 1.6em; }
.form-status.is-ok { color: #13703A; font-weight: 600; }
.form-status.is-error { color: #B42318; font-weight: 600; }
.form-status a { color: inherit; }
/* Resultado do envio sem JavaScript: a Function redireciona para #contact-result-<situação> e só esse aparece. */
.form-result { display: none; font-size: 14px; }
.form-result:target { display: block; }
.form-result.is-ok { color: #13703A; font-weight: 600; }
.form-result.is-error { color: #B42318; font-weight: 600; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Páginas legais ── */
.page-hero { padding: 64px 0 48px; }
.page-title { font-size: clamp(34px, 6vw, 60px); letter-spacing: -.04em; line-height: 1.02; }
.page-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--night-ink-2); }
.prose { font-size: 17px; }
.prose .lead { font-size: 19px; line-height: 1.6; margin-bottom: 8px; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 44px 0 12px; }
.prose p { color: #343C4D; margin-bottom: 14px; line-height: 1.7; }
.prose a { overflow-wrap: anywhere; }

/* ── Rodapé ── */
.site-footer { padding: 64px 0 28px; overflow: hidden; }
.brand-footer { color: #fff; }
.brand-footer .brand-name span { color: var(--acc-night); }
.footer-top { display: grid; gap: 40px; }
.footer-desc { font-size: 15px; color: var(--night-ink-2); max-width: 300px; margin: 14px 0 10px; }
.footer-mail { margin-bottom: 24px; overflow-wrap: anywhere; }
.footer-mail a { color: var(--night-ink); }
.footer-mail a:hover { color: var(--acc-night); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--night-ink-2); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--night-ink); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--acc-night); text-decoration: underline; text-underline-offset: 4px; }
.footer-col a[aria-current="true"] { color: var(--acc-night); }
.footer-mark {
  margin: 48px 0 20px; font-family: var(--font-title); font-weight: 600; letter-spacing: -.065em; line-height: .95;
  font-size: clamp(88px, 23vw, 300px); color: var(--night-ink); user-select: none; white-space: nowrap;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.footer-copy { font-size: 13px; color: var(--night-ink-2); }
.footer-tag { font-family: var(--font-mono); font-size: 12px; color: var(--night-ink-2); }

/* Barra de chamada no celular (site.js tira o hidden e põe .is-shown fora do hero e do contato) */
.cta-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 250;
  transform: translateY(140%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.cta-bar .btn { width: 100%; box-shadow: 0 16px 36px -12px rgba(8, 18, 43, .55); }
.cta-bar.is-shown { transform: none; visibility: visible; transition: transform .5s var(--ease); }

/* ── Revelar ao rolar (só com JavaScript e sem preferência por menos movimento; ver site.js) ── */
.reveal-pending { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-pending.is-visible { opacity: 1; transform: none; }

/* ── Telas maiores ── */
@media (min-width: 640px) {
  .container { padding: 0 28px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-box { padding: 32px; }
  .hero-actions > .btn { flex: 0 0 auto; }
  .form-submit { width: auto; align-self: flex-start; }
  .mod-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-caption { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .sec { padding: 120px 0; }
  .hero { padding: 104px 0 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; }
  .trust-grid, .ai-grid, .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .trust-grid { align-items: center; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .timeline { gap: 72px; }
  .mod-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cta-bar { display: none; }

  /* Seções escuras como painéis sobre o papel (sem a "zebra" de faixas inteiras) */
  main > .sec.tone-night { margin: 0 16px; border-radius: 36px; }

  /* Portas dos setores: a que está sob o mouse cresce */
  .sectors { display: flex; gap: 16px; }
  .sector { flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--ease); }
  .sector:hover, .sector:focus-within { flex-grow: 1.45; }
  .sector a { min-height: 560px; padding: 32px; }

  /* Hero: cartões empilhados e soltos, flutuando */
  .scenes { display: block; min-height: 420px; }
  .scene { position: absolute; width: 340px; }
  .scene-1 { top: 0; right: 30px; }
  .scene-2 { top: 150px; right: 150px; }
  .scene-3 { top: 290px; right: 0; }
  .scenes-product .scene-1 { top: 30px; right: 70px; }
  .scenes-product .scene-2 { top: 210px; right: 0; }
  .scene-caption { position: absolute; bottom: -36px; right: 0; }
  .js-motion .scene { animation: float 7s ease-in-out infinite; }
  .js-motion .scene-2 { animation-delay: -2.3s; }
  .js-motion .scene-3 { animation-delay: -4.6s; }
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Rodapé que se revela: a página sobe e mostra o rodapé parado atrás (só com altura de tela suficiente) */
@media (min-width: 960px) and (min-height: 820px) {
  .js main { position: relative; z-index: 1; background: var(--paper); }
  .js .site-footer { position: sticky; bottom: 0; z-index: 0; }
}

@media (min-width: 1100px) {
  .container { padding: 0 48px; }

  /* Menu horizontal */
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle, .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; width: auto; padding: 0; }
  .nav-list { flex-direction: row; align-items: center; gap: 2px; }
  .nav-link, .drop-summary { border-bottom: 0; min-height: 44px; padding: 8px 14px; font-family: var(--font-text); font-size: 15px; border-radius: 999px; }
  .nav-link:hover, .nav-list .drop-summary:hover { background: var(--paper-2); color: var(--ink); }
  .nav-tools { padding: 0; gap: 8px; flex-wrap: nowrap; }
  .drop { position: relative; }
  .drop-list {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -16px rgba(8, 18, 43, .22);
  }
  .drop-end .drop-list { left: auto; right: 0; }
}

@media (max-width: 1099.98px) {
  .nav-cta { width: 100%; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .sector a:hover, .sector a:focus-visible { transform: none; }
}
