/* Fromterra · site de divulgação. Barra lateral à esquerda (no celular, menu que abre por cima), conteúdo à direita. */
:root {
  --solo: #24160d; --solo-2: #3a2414; --solo-3: #5b3920; --barro: #8a5a32; --areia: #f3e6d6; --areia-2: #e9dcc9;
  --papel: #fffaf3; --tinta: #24160d; --tinta-2: #66503f; --linha: #e6d6c3;
  --ouro: #e9a920; --ceu: #1f86d1; --folha: #4f9a3c;
  --c1: #d73027; --c2: #f28e2b; --c3: #f4d03f; --c4: #8bc34a; --c5: #1976d2;
  --lateral: 268px; --largo: 1040px; --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 17px/1.6 Inter, system-ui, sans-serif; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ceu); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: Archivo, Inter, sans-serif; font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(25px, 3.4vw, 38px); line-height: 1.1; }
h3 { font-size: clamp(19px, 2vw, 22px); line-height: 1.22; }
p { margin: 0; }
.medida { max-width: 62ch; }
.apagado { color: var(--tinta-2); }

/* ---------------------------------------------------------------- barra lateral */
.lateral { position: fixed; inset: 0 auto 0 0; width: var(--lateral); background: var(--solo); color: var(--areia); z-index: 30;
           display: flex; flex-direction: column; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); overflow-y: auto; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 0 10px; }
.marca img { width: 38px; height: 38px; }
.marca b { font: 800 22px/1 Archivo, sans-serif; font-stretch: 115%; }
.marca-frase { color: #c9b39a; font-size: 13px; padding: 8px 10px 0; }
.menu { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none;
          color: var(--areia); font-weight: 600; font-size: 16px; }
.menu a svg { width: 21px; height: 21px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; opacity: .85; }
.menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu a[aria-current="page"] { background: var(--solo-2); color: #fff; box-shadow: inset 4px 0 0 var(--ouro); }
.menu a[aria-current="page"] svg { color: var(--ouro); opacity: 1; }
.lateral-pe { margin-top: auto; padding: 24px 10px 0; display: grid; gap: 14px; font-size: 14px; }
.lateral-pe .redes { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.lateral-pe a { color: var(--areia); text-underline-offset: 4px; }
.lateral-pe small { color: #a8927b; }
.lateral-pe .botao { font-size: 15px; padding: 13px 14px; white-space: nowrap; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 0;
         background: var(--ouro); color: var(--solo); font: 700 16px/1 Archivo, Inter, sans-serif; font-stretch: 110%; text-decoration: none; cursor: pointer; }
.botao:hover { background: #f2b83a; }
.botao svg { width: 21px; height: 21px; flex: none; }
.botao.contorno { background: transparent; color: var(--solo); box-shadow: inset 0 0 0 2px var(--solo); }
.botao.contorno:hover { background: rgba(36, 22, 13, .06); }
.botao.cheio { width: 100%; }

/* topo do celular (só abaixo de 1000 px) */
.topo-movel { display: none; }
.fundo-menu { display: none; }

/* ---------------------------------------------------------------- conteúdo */
.conteudo { margin-left: var(--lateral); min-height: 100vh; display: flex; flex-direction: column; }
.faixa { padding: clamp(48px, 7vw, 88px) var(--gutter); }
.faixa > .largo { max-width: var(--largo); }
.faixa.areia { background: var(--areia); }
.faixa.escura { background: var(--solo); color: #fff; }
.faixa.escura .apagado { color: var(--areia); }
.cabeca-pagina { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 8px; }
.cabeca-pagina h1 + p { margin-top: 14px; font-size: clamp(17px, 1.7vw, 19px); }

/* início: capa com ilustração */
.capa { display: grid; gap: 32px; align-items: center; }
.capa .sub { font-size: clamp(17px, 1.7vw, 20px); color: var(--tinta-2); margin-top: 18px; max-width: 44ch; }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.acoes a.texto { font-weight: 600; text-underline-offset: 4px; }
.ilustracao { border-radius: 28px; box-shadow: 0 24px 50px rgba(36, 22, 13, .22); }

/* a régua das 5 faixas de interpretação (as cores do app) */
.regua { margin-top: 40px; }
.faixas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; max-width: 640px; }
.faixas span { display: block; padding: 9px 4px 0; border-top: 14px solid; font-size: 13px; line-height: 1.25; color: var(--tinta-2); }
.faixas span:nth-child(1) { border-color: var(--c1); } .faixas span:nth-child(2) { border-color: var(--c2); }
.faixas span:nth-child(3) { border-color: var(--c3); } .faixas span:nth-child(4) { border-color: var(--c4); }
.faixas span:nth-child(5) { border-color: var(--c5); }
.regua p { margin-top: 12px; font-size: 15px; max-width: 62ch; color: var(--tinta-2); }
@media (prefers-reduced-motion: no-preference) {
  .faixas span { animation: camada .5s ease-out both; }
  .faixas span:nth-child(2) { animation-delay: .12s; } .faixas span:nth-child(3) { animation-delay: .24s; }
  .faixas span:nth-child(4) { animation-delay: .36s; } .faixas span:nth-child(5) { animation-delay: .48s; }
  @keyframes camada { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
}

/* o que você recebe: lista com ícones que leva às páginas */
.entregas { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.entregas li { border-top: 1px solid var(--linha); }
.entregas li:last-child { border-bottom: 1px solid var(--linha); }
.entregas a { display: grid; grid-template-columns: 46px 1fr 20px; gap: 16px; align-items: center; padding: 20px 4px; text-decoration: none; }
.entregas a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.entregas .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--solo); color: var(--ouro); display: grid; place-items: center; }
.entregas .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.entregas p { color: var(--tinta-2); font-size: 15.5px; margin-top: 3px; }
.entregas .seta { width: 20px; height: 20px; stroke: var(--barro); fill: none; stroke-width: 2; }

/* destaque com o celular */
.destaque { display: grid; gap: 32px; align-items: center; }
.destaque p { margin-top: 14px; }
.celular { width: min(280px, 72vw); margin: 0 auto; border: 9px solid var(--solo); border-radius: 36px; overflow: hidden; background: var(--solo);
           box-shadow: 0 22px 46px rgba(36, 22, 13, .28); }
.celular img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; }

/* passos: é uma sequência de verdade */
.passos { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 30px; counter-reset: passo; }
.passos li { counter-increment: passo; display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; align-content: start; }
.passos li::before { content: counter(passo); grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
                     background: var(--solo); color: var(--ouro); font: 800 24px/1 Archivo, sans-serif; font-stretch: 125%; }
.passos p { color: var(--tinta-2); margin-top: 6px; max-width: 56ch; }

/* recursos do app: linhas alternadas */
.recurso { display: grid; gap: 28px; align-items: center; padding: 34px 0; }
.recurso + .recurso { border-top: 1px solid var(--linha); }
.recurso p { color: var(--tinta-2); margin-top: 12px; max-width: 48ch; }

/* mapa testado */
.veredito { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.veredito li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.veredito i { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--solo); margin-top: 3px; }
.veredito li:nth-child(1) i { background: var(--solo); }
.veredito li:nth-child(2) i { background: linear-gradient(90deg, var(--solo) 50%, transparent 50%); }
.veredito b { display: block; }
.veredito span { color: var(--tinta-2); font-size: 15px; }
.duas { display: grid; gap: 36px; }

/* preço */
.valor { font: 800 clamp(30px, 8vw, 64px)/1 Archivo, sans-serif; font-stretch: 125%; color: var(--solo); white-space: nowrap; margin-top: 10px; }
.valor small { display: block; font-size: 18px; font-stretch: 100%; color: var(--tinta-2); font-weight: 600; margin-top: 8px; }
.caixa-preco { container-type: inline-size; min-width: 0; }
.preco-de { margin-top: 10px; font-weight: 600; color: var(--tinta-2); font-size: 18px; }
.preco-de s { text-decoration-color: var(--sol); text-decoration-thickness: 2px; }
.preco-de + .valor { margin-top: 4px; }
@supports (font-size: 1cqi) { .caixa-preco .valor { font-size: clamp(30px, 15cqi, 76px); } }   /* o número segue a largura da CAIXA */
.lista-check { list-style: none; margin: 20px 0 28px; padding: 0; display: grid; gap: 10px; }
.lista-check li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.lista-check li::before { content: ""; width: 18px; height: 10px; border-left: 3px solid var(--folha); border-bottom: 3px solid var(--folha);
                          transform: rotate(-45deg) translate(2px, 4px); }
.caixa-preco { background: #fff; border: 1px solid var(--linha); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }

/* perguntas */
.perguntas details { border-bottom: 1px solid var(--linha); }
.perguntas details:first-child { border-top: 1px solid var(--linha); }
.perguntas summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 18px/1.35 Archivo, sans-serif; font-stretch: 105%; }
.perguntas summary::-webkit-details-marker { display: none; }
.perguntas summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2.5px solid var(--barro);
                            border-bottom: 2.5px solid var(--barro); transform: rotate(45deg); transition: transform .2s; }
.perguntas details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.perguntas details p { padding: 0 0 20px; color: var(--tinta-2); max-width: 66ch; }

/* contato */
.canais { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.canais a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--linha);
            text-decoration: none; font-weight: 600; }
.canais a:hover { border-color: var(--barro); }
.canais svg { width: 24px; height: 24px; flex: none; color: var(--barro); }
.canais svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.canais small { display: block; font-weight: 400; color: var(--tinta-2); }

/* chamada final */
.chamada { display: grid; gap: 20px; align-items: center; }
.chamada p { color: var(--areia); max-width: 52ch; }

.rodape { margin-top: auto; padding: 22px var(--gutter); border-top: 1px solid var(--linha); color: var(--tinta-2); font-size: 14px;
          display: flex; flex-wrap: wrap; gap: 8px 22px; }
.rodape a { text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .perguntas summary::after { transition: none; } .lateral { transition: none !important; } }

@media (max-width: 1179px) { .duas > img { order: 2; } }   /* no celular, o texto vem antes da figura */

/* ---------------------------------------------------------------- telas largas */
@media (min-width: 1180px) {
  .capa { grid-template-columns: 1fr 1fr; gap: 48px; }
  .destaque { grid-template-columns: 1fr 300px; gap: 56px; }
  .recurso { grid-template-columns: 1fr 300px; gap: 56px; }          /* par: texto à esquerda, celular à direita */
  .recurso .celular { order: 2; }
  .recurso:nth-child(odd) { grid-template-columns: 300px 1fr; }      /* ímpar: celular à esquerda */
  .recurso:nth-child(odd) .celular { order: 0; }
  .duas { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .passos { grid-template-columns: repeat(3, 1fr); gap: 36px; }
  .passos li { grid-template-columns: 1fr; }
  .passos li::before { grid-row: auto; margin-bottom: 14px; }
  .chamada { grid-template-columns: 1fr auto; gap: 40px; }
}

/* ---------------------------------------------------------------- celular e tablet: menu que abre por cima */
@media (max-width: 999px) {
  .topo-movel { display: flex; position: sticky; top: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px;
                padding: 12px var(--gutter); background: var(--solo); color: #fff; }
  .topo-movel .marca { padding: 0; }
  .topo-movel .marca img { width: 32px; height: 32px; }
  .topo-movel .marca b { font-size: 19px; }
  .abrir-menu { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
                background: transparent; color: #fff; font: 600 15px/1 Inter, sans-serif; cursor: pointer; }
  .abrir-menu svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
  .lateral { width: min(300px, 86vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  body.menu-aberto .lateral { transform: none; }
  body.menu-aberto .fundo-menu { display: block; position: fixed; inset: 0; background: rgba(15, 9, 4, .55); z-index: 25; }
  body.menu-aberto { overflow: hidden; }
  .fechar-menu { display: inline-flex; position: absolute; top: 18px; right: 14px; width: 40px; height: 40px; align-items: center; justify-content: center;
                 border-radius: 10px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
  .fechar-menu svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; }
  .conteudo { margin-left: 0; }
}
@media (min-width: 1000px) { .fechar-menu { display: none; } }
