/* Site da Ornelli. Identidade em docs/identidade/produto/ESCOLHAS.md: caramelo, bronze, areia, Italiana (títulos) e
   Nunito Sans (textos e números). Movimento SUTIL (escolha do Denes): as partes surgem com uma leve subida, e só
   opacity/transform se mexem (liso no celular fraco). Quem pede "reduzir movimento" vê tudo parado. */
:root {
  --areia: #ede3d5;
  --areia-clara: #f6f0e7;
  --branco: #fffdf9;
  --tinta: #2a211b;
  --tinta-suave: #6d5f53;
  --linha: #dacbb8;
  --caramelo: #a8703f;
  --caramelo-escuro: #8f5c30;
  --bronze: #a97b4f;
  --noite: #1e1712;
  --ok: #3f7a52;
  --erro: #a33a2a;
  --titulo: "Italiana", Georgia, serif;
  --texto: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mao: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --curva: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* esconder vence o display das peças (o formulário é grid) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--areia); color: var(--tinta);
  font: 400 17px/1.6 var(--texto); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--caramelo-escuro); }
:focus-visible { outline: 2px solid var(--caramelo); outline-offset: 3px; }
.miolo { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.estreito { max-width: 760px; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 400; text-wrap: balance; margin: 0; }

/* ---------- Logo: ORNELLI espaçado com fios de bronze ---------- */
.logo { display: inline-flex; align-items: center; gap: .6em; font-family: var(--titulo); letter-spacing: .32em; margin-right: -.32em; color: var(--tinta); font-size: 1.25rem; }
.logo::before, .logo::after { content: ""; width: 1.4em; height: 1px; }
.logo::before { background: linear-gradient(to left, var(--bronze), transparent); }
.logo::after { background: linear-gradient(to right, var(--bronze), transparent); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; text-decoration: none;
  background: var(--caramelo); color: #fff; font: 800 1rem var(--texto); letter-spacing: .01em;
  box-shadow: 0 12px 26px -12px color-mix(in oklab, var(--caramelo) 80%, transparent);
  transition: transform .2s var(--curva), box-shadow .25s, background .2s; position: relative; overflow: hidden;
}
.botao::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--curva); }
.botao:hover { background: var(--caramelo-escuro); transform: translateY(-1px); }
.botao:hover::after { transform: translateX(120%); }
.botao:active { transform: scale(.97); }
.botao:disabled { opacity: .6; cursor: wait; }
.botao-pequeno { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.botao-zap { display: inline-flex; align-items: center; gap: .55em; padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--linha); color: var(--tinta); font-weight: 700; text-decoration: none; background: rgb(255 253 249 / .6); transition: border-color .2s, background .2s; }
.botao-zap:hover { border-color: #2f7d55; background: var(--branco); }
.icone-zap { width: 18px; height: 18px; fill: #2f7d55; }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.centro { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Topo ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: rgb(237 227 213 / .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgb(218 203 184 / .7); padding-top: env(safe-area-inset-top); }
.topo-dentro { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.topo-logo { text-decoration: none; }

/* ---------- Abertura: frase de um lado, antes e depois do outro ---------- */
.abertura {
  max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 72px max(20px, env(safe-area-inset-right)) 88px max(20px, env(safe-area-inset-left));
  position: relative;
}
.abertura::before { content: ""; position: absolute; top: -40px; left: 50%; width: 100vw; translate: -50% 0; height: 560px; z-index: -1; background: radial-gradient(ellipse 60% 70% at 25% 30%, rgb(255 255 255 / .7), transparent 70%), radial-gradient(ellipse 40% 50% at 90% 60%, color-mix(in oklab, var(--caramelo) 10%, transparent), transparent 70%); }
.sobrelinha { margin: 0 0 14px; font-size: .8rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--caramelo-escuro); }
.titulo-grande { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.005em; }
.apoio { color: var(--tinta-suave); font-size: 1.12rem; max-width: 34em; margin: 22px 0 30px; }
@media (max-width: 860px) {
  .abertura { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 64px; }
}

/* Entrada da abertura: palavras e partes sobem uma depois da outra */
.js .abertura-texto > * { animation: sobe .9s var(--curva) both; }
.js .abertura-texto > :nth-child(2) { animation-delay: .08s; }
.js .abertura-texto > :nth-child(3) { animation-delay: .18s; }
.js .abertura-texto > :nth-child(4) { animation-delay: .28s; }
.js .antes-depois { animation: sobe 1.1s var(--curva) .2s both; }
@keyframes sobe { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Antes e depois ---------- */
.antes-depois { position: relative; margin: 0; width: 100%; max-width: 500px; justify-self: center; touch-action: pan-y; }
.antes-depois > .caderno, .antes-depois > .app { border-radius: 22px; }
.antes-depois { aspect-ratio: 4 / 4.5; }
.antes-depois::before { content: ""; position: absolute; inset: 0; border-radius: 22px; box-shadow: 0 30px 60px -28px rgb(30 23 18 / .55), 0 0 0 1px rgb(30 23 18 / .06); pointer-events: none; z-index: 3; }
.caderno { position: absolute; inset: 0; overflow: hidden; background: #fbf6e9 repeating-linear-gradient(#fbf6e9 0 33px, #c6d6e5 33px 34px); padding: 22px 22px 22px 58px; font: 500 clamp(19px, 2.6vw, 25px)/34px var(--mao); color: #2c3e66; }
.caderno::before { content: ""; position: absolute; top: 0; bottom: 0; left: 42px; width: 1.5px; background: #e5a3a3; }
.caderno s { color: #b23a3a; }
.caderno .rabisco { position: absolute; right: 20px; top: 46%; rotate: -8deg; color: #b23a3a; font-size: 1.05em; }
.caderno .mancha { position: absolute; right: 30px; bottom: 36px; width: 86px; height: 86px; border-radius: 50%; border: 8px solid rgb(140 95 50 / .17); }
.app { position: absolute; inset: 0; overflow: hidden; background: var(--branco); clip-path: inset(0 0 0 var(--corte)); padding: 20px; display: flex; flex-direction: column; gap: 9px; }
.app-topo { display: flex; justify-content: space-between; align-items: baseline; font: 400 1.6rem var(--titulo); margin-bottom: 4px; }
.app-topo small { font: 800 .78rem var(--texto); color: var(--ok); }
.item { display: flex; gap: 10px; align-items: center; background: var(--areia-clara); border-radius: 12px; padding: 10px 12px; border-left: 3px solid var(--caramelo); }
.item:nth-child(odd) { border-left-color: var(--bronze); }
.item .h { font-weight: 800; font-size: .82rem; color: var(--tinta-suave); font-variant-numeric: tabular-nums; min-width: 3.1em; }
.item .t { flex: 1; min-width: 0; line-height: 1.3; }
.item .t b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t span { font-size: .76rem; color: var(--tinta-suave); }
.item .v { font-weight: 800; font-size: .88rem; font-variant-numeric: tabular-nums; }
.app-rodape { margin-top: auto; display: flex; justify-content: space-between; background: var(--noite); color: var(--areia); border-radius: 14px; padding: 13px 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.alca { position: absolute; top: 0; bottom: 0; left: var(--corte); width: 2px; translate: -1px 0; background: var(--branco); z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgb(30 23 18 / .12); }
.alca::after { content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 48px; height: 48px; border-radius: 50%; background: var(--caramelo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 8px 20px -6px rgb(30 23 18 / .55), 0 0 0 4px rgb(255 253 249 / .6); }
.antes-depois input { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.antes-depois input:focus-visible ~ .alca::after { outline: 2px solid var(--tinta); outline-offset: 3px; }
.antes-depois figcaption { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--tinta-suave); }

/* ---------- Seções ---------- */
.titulo-secao { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; text-align: center; margin-bottom: 40px; }
.faixa { background: var(--branco); padding-block: 88px; }
.como, .mercados { padding-block: 88px; }

/* Dor → solução: o problema se risca quando aparece */
.dores { list-style: none; margin: 0 auto; padding: 0; max-width: 920px; display: grid; gap: 12px; }
.dor { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 18px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--areia-clara); }
.problema { color: var(--tinta-suave); }
.risco { background: linear-gradient(var(--erro), var(--erro)) no-repeat 0 55% / 0 1.5px; transition: background-size .7s var(--curva) .25s; }
.dor.visto .risco, .sem-js .risco { background-size: 100% 1.5px; }
.seta { color: var(--bronze); font-weight: 800; font-size: 1.2rem; }
.solucao { font-weight: 700; }
@media (max-width: 640px) {
  .dor { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 18px; }
  .seta { display: none; }
  .solucao::before { content: "→ "; color: var(--bronze); }
}

/* Depoimento */
.depoimento { padding-block: 88px; text-align: center; }
.depoimento blockquote { margin: 0 auto; max-width: 22em; font: 400 clamp(1.7rem, 3.6vw, 2.5rem)/1.2 var(--titulo); }
.depoimento .quem { margin-top: 26px; display: inline-flex; gap: 14px; align-items: center; text-align: left; }
.depoimento img { border-radius: 50%; object-fit: cover; }

/* Mercados */
.cartoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .cartoes { grid-template-columns: minmax(0, 1fr); } }
.cartao { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; background: var(--branco); text-decoration: none; color: var(--tinta); box-shadow: 0 1px 2px rgb(60 40 10 / .05), 0 16px 34px -22px rgb(60 40 10 / .35); transition: transform .3s var(--curva), box-shadow .3s; }
.cartao:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgb(60 40 10 / .06), 0 24px 40px -22px rgb(60 40 10 / .45); }
.cartao .icone { width: 30px; height: 30px; fill: none; stroke: var(--caramelo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cartao b { font: 400 1.6rem var(--titulo); margin-top: 8px; }
.cartao span { color: var(--tinta-suave); font-size: .95rem; }
.cartao em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 800; font-size: .85rem; color: var(--caramelo-escuro); }

/* Como funciona */
.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .passos { grid-template-columns: minmax(0, 1fr); } }
.passos li { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 22px; border: 1px solid var(--linha); }
.passos .n { font: 400 2.6rem/1 var(--titulo); color: var(--bronze); }
.passos b { font-size: 1.1rem; }
.passos span:last-child { color: var(--tinta-suave); }

/* ---------- Pedido de orçamento ---------- */
.orcamento { background: var(--noite); color: var(--areia); padding-block: 96px; }
.orcamento .titulo-secao { color: var(--areia); margin-bottom: 12px; }
.orcamento .apoio { color: rgb(237 227 213 / .72); text-align: center; margin: 0 auto 36px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; background: var(--branco); color: var(--tinta); border-radius: 26px; padding: 30px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
@media (max-width: 600px) { .form { grid-template-columns: minmax(0, 1fr); padding: 22px; } }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--tinta-suave); min-width: 0; }
.form .largo { grid-column: 1 / -1; }
.form input:not([type=checkbox]), .form textarea { width: 100%; border: 1px solid var(--linha); border-radius: 14px; padding: 13px 14px; font: 400 16px var(--texto); color: var(--tinta); background: #fff; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--caramelo); box-shadow: 0 0 0 4px color-mix(in oklab, var(--caramelo) 16%, transparent); }
.form .aceite { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--tinta-suave); }
.form .aceite input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--caramelo); flex-shrink: 0; }
.form .isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .erro { margin: 0; color: var(--erro); font-weight: 700; font-size: .92rem; }
.form .botao { width: 100%; }
.obrigado { text-align: center; background: var(--branco); color: var(--tinta); border-radius: 26px; padding: 44px 28px; animation: sobe .7s var(--curva) both; }
.obrigado h3 { font-size: 2.2rem; margin-top: 14px; }
.obrigado p { color: var(--tinta-suave); margin: 10px auto 0; max-width: 28em; }
.obrigado .visto { display: inline-block; width: 64px; height: 64px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 30px no-repeat; animation: aparece-visto .6s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
@keyframes aparece-visto { from { transform: scale(.3); opacity: 0; } }

/* ---------- Rodapé ---------- */
.rodape { background: var(--noite); color: rgb(237 227 213 / .7); padding-block: 0 48px; text-align: center; border-top: 1px solid rgb(237 227 213 / .1); }
.rodape .miolo { padding-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo-rodape { color: var(--areia); }
.rodape p { margin: 0; font: 400 1.25rem var(--titulo); color: var(--areia); }
.rodape nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.rodape a { color: rgb(237 227 213 / .8); text-decoration: none; }
.rodape a:hover { color: var(--areia); }

/* Texto corrido (privacidade) */
.texto-corrido { padding-block: 64px 96px; }
.texto-corrido h2 { font-size: 1.7rem; margin: 34px 0 6px; }
.texto-corrido p { margin: 0 0 12px; }

/* ---------- Surgir ao rolar (sutil) ---------- */
.js .surge { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--curva), transform .8s var(--curva); }
.js .surge.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .surge { opacity: 1; transform: none; }
  .risco { background-size: 100% 1.5px; }
}

/* Botão do topo: no celular o texto curto, para não quebrar em duas linhas */
.so-estreito { display: none; }
@media (max-width: 480px) { .so-largo { display: none; } .so-estreito { display: inline; } }

/* Pedido pelo WhatsApp (enquanto o servidor do produto não existe): um botão grande, verde do WhatsApp */
.so-zap { text-align: center; }
.botao-zap-grande { background: #2f7d55; padding: 18px clamp(20px, 5vw, 34px); font-size: clamp(.95rem, 4vw, 1.08rem); white-space: nowrap; box-shadow: 0 16px 34px -14px rgb(47 125 85 / .8); }
.botao-zap-grande:hover { background: #276a48; }
.botao-zap-grande .icone-zap { fill: #fff; width: 22px; height: 22px; }
