/* Qlareza · vitrine (/). Usa os tokens e componentes de /design-system. */

/* A vitrine usa uma página mais larga que o sistema, para o ciclo ganhar espaço. */
:root { --page: 1240px; }

.topnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.flush-bottom { padding-bottom: 0; }
/* Respiro entre seções: cada uma é um assunto só. */
body > section.band { padding-block: clamp(64px, 9vw, 136px); }
.cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.btn.big { min-height: var(--control-lg); padding-inline: var(--space-6); font-size: var(--text-md); }

/* ---------- Títulos ---------- */
/* O título da capa no mesmo tamanho dos títulos das partes: cabe em poucas linhas ao lado do ciclo. */
.display { font-size: var(--text-4xl); line-height: .98; }
.title { max-width: 16ch; font-size: var(--text-4xl); line-height: 1; margin-bottom: var(--space-8); }
.lead { max-width: 46ch; margin-top: var(--space-6); color: var(--muted); font-size: var(--text-xl); line-height: 1.45; }
.title + .lead { margin-top: calc(-1 * var(--space-4)); }
/* Depois do texto de abertura de uma seção, o conteúdo vem sempre à mesma distância. */
.wrap > .lead { margin-bottom: var(--space-12); }

/* ---------- Abertura ---------- */
body > section.hero-band { padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(64px, 9vw, 136px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-art { display: grid; justify-items: end; }
.hero-art .loop { max-width: 600px; }
/* Computador: o ciclo cresce sobre a sua própria margem em branco (32 de 480 em cada lado do desenho),
   e a borda dos círculos fica alinhada com a borda da página, como o botão «Entrar». */
@media (min-width: 1001px) {
  .hero-art .loop { width: calc(100% * 480 / 416); max-width: none; margin-right: calc(-100% * 32 / 416); }
}
.ticks { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: var(--space-6) 0 0; padding: 0; list-style: none; color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.ticks li::before { content: "✓"; margin-right: var(--space-2); color: var(--accent-text); font-weight: var(--weight-heavy); }

/* ---------- Passos numa linha (quantos o sistema tiver) ---------- */
.flow { position: relative; display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; top: 22px; left: 22px; right: 0; border-top: 2px dashed var(--line-strong); }
/* Cada passo usa as linhas da lista: título de duas linhas não empurra o texto só da sua coluna. */
.flow { grid-template-rows: auto auto 1fr; }
.flow li { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.flow .dot { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-5); border: 2px solid var(--text); border-radius: 50%; background: var(--card); font-size: var(--text-sm); font-weight: var(--weight-heavy); }
.flow h3 { font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
/* O recado que acalma, logo abaixo dos passos: não é planejar tudo, é só a próxima ação. */
.next-only { display: grid; gap: var(--space-2); margin-top: var(--space-8); border-left: 3px solid var(--accent); }
.next-only p { font-size: var(--text-md); }
.next-only h3 { margin: 0; font-size: var(--text-xl); }
.next-only .hl { display: inline; }
.flow p { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-lg); }
.flow em { color: var(--text); font-style: normal; font-weight: var(--weight-semibold); }

/* ---------- Antes e depois ---------- */
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.vs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
/* As quatro linhas de cada quadro (antes, seta, nome, depois) se alinham entre os três, mesmo quando um texto quebra. */
.vs { grid-template-rows: repeat(3, auto) 1fr; row-gap: var(--space-2); }
.vs div { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; padding: var(--space-6); }
.vs div + div { border-left: 1px solid var(--line); }
.vs span { color: var(--accent-text); font-size: var(--text-xl); font-weight: var(--weight-heavy); line-height: 1; }
.vs small { margin-top: var(--space-2); color: var(--accent-text); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; }
.vs b { font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.01em; }
.vs s { color: var(--faint); font-size: var(--text-lg); }

/* ---------- A dor: o texto ao lado da cabeça cheia (a mesma cena da apresentação) ---------- */
.pain { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.pain .mq-head { margin-top: 0; }
.pain + .vs { margin-top: var(--space-4); }

/* ---------- Antes e depois por profissão ---------- */
/* As profissões ficam numa linha só; na tela estreita, a linha desliza para o lado. */
#v-exemplos .roles { flex-wrap: nowrap; margin-bottom: var(--space-6); overflow-x: auto; scrollbar-width: none; }
#v-exemplos .roles > * { flex: none; }
.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--space-6); align-items: stretch; }
.ba-side { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.ba-side > small { display: block; margin-bottom: var(--space-4); color: var(--accent-text); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: .08em; text-transform: uppercase; }
/* As coisas soltas ocupam a altura toda do quadro, para os dois lados terminarem juntos. */
.ba-before { display: grid; grid-template-rows: auto 1fr auto; }
.ba-before ul { display: grid; align-content: space-around; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.ba-before li { padding: var(--space-3) var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: var(--text-lg); }
.ba-before li:nth-child(odd) { transform: rotate(-1.2deg); }
.ba-before li:nth-child(even) { transform: rotate(1deg); }
.ba-arrow { align-self: center; color: var(--accent-text); font-size: var(--text-2xl); font-weight: var(--weight-heavy); }
.ba-note { margin: var(--space-5) 0 0; color: var(--text); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.ba-list + .ba-list { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ba-list b { display: block; font-size: var(--text-sm); }
.ba-list p { margin-top: var(--space-1); font-size: var(--text-lg); }
.ba-list .tag { margin-top: var(--space-2); }

/* ---------- Comparativo por tipo de ferramenta ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.cmp { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp th, .cmp td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { color: var(--muted); font-size: var(--text-sm); }
.cmp tbody th { font-weight: var(--weight-bold); }
.cmp td { color: var(--muted); }
.cmp .me { background: var(--bg-2); color: var(--text); font-weight: var(--weight-bold); }
.cmp thead .me { color: var(--text); box-shadow: inset 0 3px var(--accent); }

/* ---------- Privacidade em destaque ---------- */
.privacy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.privacy .title { margin-bottom: 0; }
.privacy-list { display: grid; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.privacy-list li { padding-left: var(--space-5); border-left: 3px solid var(--accent); color: var(--muted); font-size: var(--text-lg); }
.privacy-list b { display: block; margin-bottom: var(--space-1); color: var(--text); font-size: var(--text-xl); }

/* ---------- Depoimentos (só aparecem quando houver) ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.quote { margin: 0; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.quote blockquote { margin: 0; font-size: var(--text-lg); }
.quote figcaption { margin-top: var(--space-4); color: var(--muted); font-size: var(--text-sm); }

/* ---------- Dúvidas, chamada final e empresas ---------- */
.price { margin-top: var(--space-4); color: var(--muted); font-weight: var(--weight-semibold); }
body > section.biz-line { padding-block: var(--space-8); }
.biz-line p { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.biz-line a { color: var(--accent-text); font-weight: var(--weight-bold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.faq { display: grid; }
.faq-title { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: var(--space-5) 0; cursor: pointer; font-size: var(--text-xl); font-weight: var(--weight-bold); letter-spacing: -0.01em; }
.faq summary::marker { color: var(--accent-text); }
.faq p { padding-bottom: var(--space-5); color: var(--muted); font-size: var(--text-lg); }

.close { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.close .title { margin-bottom: 0; }

@media (max-width: 1000px) {
  .flow { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .flow::before { top: 0; bottom: 0; left: 21px; right: auto; border-top: 0; border-left: 2px dashed var(--line-strong); }
  .flow { grid-template-rows: none; }
  .flow li { display: grid; grid-row: auto; grid-template-rows: none; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--space-4); }
  .flow .dot { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 820px) {
  .close { grid-template-columns: minmax(0, 1fr); }
  .vs { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
  .vs div { grid-row: auto; grid-template-rows: none; gap: var(--space-2); }
  .vs div + div { border-left: 0; border-top: 1px solid var(--line); }
  .hero, .pain, .privacy { grid-template-columns: minmax(0, 1fr); }
  .loop { max-width: 360px; }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-arrow { justify-self: center; transform: rotate(90deg); }
}

/* Rodapé do site (o mesmo em todas as páginas): a marca e três colunas de links, no tom discreto do rodapé. */
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.foot-title { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: 0.08em; text-transform: uppercase; }
.foot-col ul { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.foot-col:nth-child(2) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
.foot-col a, .foot-col .link { padding: 0; border: 0; background: none; color: var(--faint); font: inherit; font-size: var(--text-sm); min-height: 0; font-weight: var(--weight-regular); line-height: inherit; text-decoration: none; cursor: pointer; }
.foot-col a:hover, .foot-col .link:hover { color: var(--text); text-decoration: underline var(--accent) 2px; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col:nth-child(2) ul { grid-template-columns: minmax(0, 1fr); }
}
