/* Página de lançamento do Conflui.app: papel de livro-razão, ouro e verde da logo. */
@font-face { font-family: 'Instrument Serif'; src: url('/fontes/instrument-serif.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/fontes/instrument-serif-italico.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/fontes/figtree.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fontes/jetbrains-mono.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: light;
  --papel: #f6f2e7;
  --papel-claro: #fdfbf5;
  --tinta: #17230f;
  --apoio: #56604a;
  --linha: #d9d2bd;
  --ouro: #b0822a;
  --ouro-escuro: #80590f;
  --verde: #1f7a55;
  --verde-mata: #14281b;
  --verde-claro: #d8e5d3;
  --shopee: #ee4d2d;
  --alerta: #a8421c;
  --alerta-fundo: #f8e3d6;
  --serifa: 'Instrument Serif', Georgia, serif;
  --texto: 'Figtree', 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --margem: clamp(16px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--papel); color: var(--tinta); font: 400 17px/1.6 var(--texto); overflow-x: hidden;
  /* Pautas discretas de livro-razão */
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(23, 35, 15, .045) 39px 40px);
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-style: italic; }

/* Topo */
.topo { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px var(--margem) 0; }
.logo { display: block; width: clamp(132px, 16vw, 224px); height: auto; }
.selo { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border: 1px solid var(--linha); border-radius: 999px; background: var(--papel-claro); font: 500 12px/1 var(--mono); letter-spacing: .03em; color: var(--verde-mata); white-space: nowrap; }
.pulso { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); animation: pulso 2.2s ease-out infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 85, .5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(31, 122, 85, 0); } }

/* Abertura */
.abertura { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(28px, 4vw, 56px) var(--margem) clamp(56px, 7vw, 104px); }
.sobre-titulo { font: 500 13px/1.4 var(--mono); color: var(--ouro-escuro); margin-bottom: 20px; }
h1 { font: 400 clamp(46px, 6.6vw, 98px)/.98 var(--serifa); letter-spacing: -.015em; text-wrap: balance; }
h1 em { color: var(--verde); }
.resumo { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.45vw, 20px); color: var(--apoio); }
.resumo strong { color: var(--tinta); font-weight: 600; }
.marcas { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px; }
.marcas li, .caminho-marcas span { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 8px 20px; border-radius: 8px; border: 1px solid var(--linha); }
.marca-ml, .marca-shopee { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.marca-ml { background: #ffe600; color: #2d3277; }
.marca-shopee { background: var(--shopee); color: #fff; }
.demais { max-width: 36em; margin-top: 18px; font-size: 15px; color: var(--apoio); }

/* Correntes que se encontram no livro-razão */
.fluxo { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.fluxo-origens { display: flex; justify-content: space-between; padding: 0 4%; }
.origem { display: flex; align-items: center; justify-content: center; width: 38%; height: 54px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--tinta); }
.correntes { display: block; width: 100%; height: 150px; overflow: visible; }
.trilho, .pulso-linha { fill: none; vector-effect: non-scaling-stroke; }
.trilho { stroke-width: 5; opacity: .24; }
.trilho-ouro, .pulso-ouro { stroke: var(--ouro); }
.trilho-shopee, .pulso-shopee { stroke: var(--shopee); }
.pulso-linha { stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 13; animation: correr 1.2s linear infinite; }
@keyframes correr { to { stroke-dashoffset: -30; } }
.gota-ouro { fill: var(--ouro); }
.gota-shopee { fill: var(--shopee); }

.razao { position: relative; background: var(--papel-claro); border: 1px solid var(--tinta); border-radius: 10px; box-shadow: 10px 10px 0 var(--verde-mata); overflow: hidden; }
.razao-titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; background: var(--verde-mata); color: #f6f2e7; font-size: 14px; font-weight: 600; }
.razao-api { font: 500 11px/1 var(--mono); color: #e8c67c; }
.razao-linhas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--linha); font-size: 15px; opacity: 0; animation: entrar .5s ease-out forwards; }
.razao-linhas li:nth-child(1) { animation-delay: .5s; }
.razao-linhas li:nth-child(2) { animation-delay: .8s; }
.razao-linhas li:nth-child(3) { animation-delay: 1.1s; }
.razao-linhas li:nth-child(4) { animation-delay: 1.4s; background: var(--alerta-fundo); }
.razao-linhas li:nth-child(5) { animation-delay: 1.7s; }
.razao-linhas li:nth-child(6) { animation-delay: 2s; }
@keyframes entrar { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.razao-linhas b { font: 500 12px/1 var(--mono); }
.ok { color: var(--verde); }
.ok::before { content: '✓ '; }
.alerta { color: var(--alerta); }
.alerta::before { content: '! '; }
.razao-rodape { padding: 12px 18px; font: italic 400 20px/1.2 var(--serifa); color: var(--verde-mata); }
figcaption { margin-top: 24px; text-align: right; font: 400 11px/1 var(--mono); color: var(--apoio); }

/* Passos */
.passos { background: var(--verde-mata); color: #f6f2e7; padding: clamp(56px, 8vw, 112px) var(--margem); }
.passos-miolo { max-width: 1320px; margin: 0 auto; }
h2 { font: 400 clamp(36px, 4.6vw, 66px)/1.05 var(--serifa); letter-spacing: -.01em; text-wrap: balance; }
.passos h2 { max-width: 19em; }
.passos h2 em { color: #e8c67c; }
.passos-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); }
.passos-lista li { padding-top: 20px; border-top: 1px solid rgba(232, 198, 124, .45); }
.numero { display: block; font: italic 400 58px/1 var(--serifa); color: #e8c67c; }
h3 { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.25; }
.passos-lista p { margin-top: 10px; color: #cfd6c4; }

/* Caminhos de cada marketplace */
.caminhos { padding: clamp(56px, 8vw, 112px) var(--margem) 0; max-width: 1464px; margin: 0 auto; }
.caminhos h2 em { color: var(--verde); }
.caminhos-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); margin-top: clamp(28px, 4vw, 48px); }
.caminho { padding: clamp(22px, 3vw, 36px); background: var(--papel-claro); border: 1px solid var(--tinta); border-radius: 10px; }
.caminho-tipo { font: 500 13px/1.4 var(--mono); color: var(--ouro-escuro); }
.caminho-marcas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.caminho h3 { display: flex; align-items: center; min-height: 58px; margin-top: 14px; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serifa); }
.caminho > p:last-child { margin-top: 16px; color: var(--apoio); }

/* Conferências */
.conferencias { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); padding: clamp(56px, 8vw, 112px) var(--margem); max-width: 1464px; margin: 0 auto; }
.livro { border-top: 2px solid var(--tinta); }
.livro > div { display: grid; grid-template-columns: minmax(96px, 170px) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--linha); transition: padding-left .25s ease, background-color .25s ease; }
.livro > div:hover { padding-left: 10px; background-color: var(--papel-claro); }
.livro dt { font: 400 28px/1.15 var(--serifa); }
.livro dd { color: var(--apoio); }

/* Encerramento */
.breve { padding: clamp(40px, 6vw, 88px) var(--margem) clamp(56px, 7vw, 96px); text-align: center; border-top: 1px solid var(--linha); }
.breve-titulo { font: italic 400 clamp(72px, 15vw, 210px)/.95 var(--serifa); letter-spacing: -.02em; background: linear-gradient(100deg, var(--ouro-escuro), var(--ouro) 45%, var(--verde) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.breve-texto { margin-top: 10px; color: var(--apoio); }

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 22px var(--margem); background: var(--verde-mata); color: #cfd6c4; font-size: 13px; }
.rodape-marca { font-weight: 600; color: #e8c67c; }

/* Entrada da abertura */
.abertura-texto > *, .fluxo { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
.abertura-texto > :nth-child(2) { animation-delay: .08s; }
.abertura-texto > :nth-child(3) { animation-delay: .18s; }
.abertura-texto > :nth-child(4) { animation-delay: .28s; }
.fluxo { animation-delay: .2s; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .abertura, .conferencias, .caminhos-lista { grid-template-columns: minmax(0, 1fr); }
  .fluxo { margin-top: 8px; }
  .passos-lista { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .razao { box-shadow: 6px 6px 0 var(--verde-mata); }
  .livro > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .origem { width: 44%; }
  .marca-ml, .marca-shopee { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .razao-linhas li { opacity: 1; }
  .gota { display: none; }
}
