/* Landing do e-book. Identidade: brand/DESIGN.md da MKT For Contractors.
   Chão claro com grade azul a 6%, canto reto, sem sombra de UI, Inter só. */
:root {
  --azul: #1565d8; --azul-sombra: #0f4ca6; --tinta: #0a0a0a; --aco: #667085;
  --borda: #d0d5dd; --off: #f4f6f8; --branco: #ffffff; --erro: #e7000b;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--branco); color: var(--tinta); }
body {
  font-family: Inter, 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.55;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background-image:
    linear-gradient(rgba(21,101,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,101,216,.06) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--azul); }
.topo { display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(16px, 5vw, 64px) 0; }
.topo img { height: 34px; display: block; }
.topo .idioma { font-family: var(--mono); font-size: 12px; color: var(--aco); text-decoration: none; letter-spacing: .04em; }
.topo .idioma:hover { color: var(--azul); }

.palco { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; padding: clamp(10px, 2.2vh, 36px) clamp(16px, 5vw, 64px); max-width: 1320px; width: 100%; margin: 0 auto; }

.rotulo { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.rotulo::before { content: ''; width: 20px; height: 2px; background: var(--azul); flex: none; }
h1 { font-size: clamp(30px, min(3.4vw, 6.2vh), 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.06; margin: 12px 0 10px; text-wrap: balance; }
h1 em { text-wrap: balance; }
h1 em { font-style: normal; color: var(--azul); display: block; }
.sub { font-size: clamp(16px, 1.3vw, 19px); color: #344054; max-width: 34em; }
.fatos { font-family: var(--mono); font-size: 12px; color: var(--aco); margin-top: 12px; letter-spacing: .02em; }

form { margin-top: clamp(14px, 2.4vh, 26px); background: var(--branco); border: 1px solid var(--borda); padding: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 14px; }
.campo { grid-column: span 2; }
.campo.metade { grid-column: span 3; }
.campo { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
label, .pergunta { font-size: 12.5px; font-weight: 600; color: #344054; }
input[type=text], input[type=email], input[type=tel] {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 0; background: var(--branco); color: var(--tinta); width: 100%;
}
input:focus-visible { outline: 2px solid var(--azul); outline-offset: -1px; border-color: var(--azul); }
.opcoes { display: flex; border: 1px solid var(--borda); }
.opcoes label { flex: 1; position: relative; cursor: pointer; font-weight: 500; font-size: 14px; }
.opcoes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcoes span { display: block; text-align: center; padding: 9px 8px; border-right: 1px solid var(--borda); color: #344054; }
.opcoes label:last-child span { border-right: 0; }
.opcoes input:checked + span { background: var(--azul); color: var(--branco); }
.opcoes input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.enviar { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
button { font: inherit; font-size: 15px; font-weight: 600; background: var(--azul); color: var(--branco); border: 0; border-radius: 0; padding: 13px 20px; cursor: pointer; }
button:hover { background: var(--azul-sombra); }
button:disabled { opacity: .6; cursor: wait; }
.aviso { font-size: 11.5px; color: var(--aco); line-height: 1.45; }
.erro { font-size: 13px; color: var(--erro); min-height: 0; }
.mel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* O livro em 3D: capa, lombada, verso e o corte das páginas. */
.livro-cena { display: flex; justify-content: center; align-items: center; perspective: 1800px; position: relative; min-height: 0; }
.livro-cena::after { content: ''; position: absolute; bottom: -2%; left: 50%; width: 62%; height: 7%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(10,10,10,.16), rgba(10,10,10,0)); pointer-events: none; }
.livro { --w: clamp(220px, min(26vw, 44vh), 400px); --h: calc(var(--w) * 1.294); --t: calc(var(--w) * .075);
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 24deg)); will-change: transform; }
.livro .face { position: absolute; }
.livro .frente { inset: 0; transform: translateZ(calc(var(--t) / 2)); background: var(--tinta); overflow: hidden; }
.livro .frente img { width: 100%; height: 100%; display: block; object-fit: cover; }
.livro .frente::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(calc(100deg + var(--brilho, 0) * 1deg), rgba(255,255,255,0) 30%, rgba(255,255,255,.10) 50%, rgba(255,255,255,0) 70%); }
.livro .frente::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5%; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(0,0,0,.25)); }
.livro .verso { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: var(--tinta); }
.livro .lombada { width: var(--t); height: 100%; left: calc(50% - var(--t) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: #111; display: flex; align-items: center; justify-content: center; }
.livro .lombada span { writing-mode: vertical-rl; transform: rotate(180deg); color: #f4f6f8; font-weight: 800; font-size: calc(var(--t) * .36); letter-spacing: .08em; white-space: nowrap; }
.livro .lombada span b { color: #5b9bf5; font-weight: 800; }
.livro .corte { width: var(--t); height: calc(100% - 6px); top: 3px; left: calc(50% - var(--t) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 3px));
  background: repeating-linear-gradient(90deg, #f4f6f8 0 2px, #d0d5dd 2px 3px); }
.livro .corte-topo { height: var(--t); width: calc(100% - 3px); top: calc(50% - var(--t) / 2);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px)); background: #e4e7ec; }
.livro .corte-base { height: var(--t); width: calc(100% - 3px); top: calc(50% - var(--t) / 2);
  transform: rotateX(-90deg) translateZ(calc(var(--h) / 2 - 3px)); background: #d0d5dd; }

.rodape { padding: 0 clamp(16px, 5vw, 64px) 18px; font-family: var(--mono); font-size: 11px; color: var(--aco); display: flex; gap: 16px; flex-wrap: wrap; }
.rodape a { color: var(--aco); }

/* Obrigado */
.obrigado { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(18px, 3vh, 40px) clamp(16px, 5vw, 64px); max-width: 1180px; margin: 0 auto; width: 100%; }
.botao { display: inline-block; background: var(--azul); color: var(--branco); text-decoration: none; font-weight: 600; font-size: 16px; padding: 14px 24px; margin-top: 22px; }
.botao:hover { background: var(--azul-sombra); }
.proximos { margin-top: 28px; border-top: 1px solid var(--borda); padding-top: 18px; display: grid; gap: 10px; max-width: 34em; }
.proximos a { font-weight: 600; text-decoration: none; }
.proximos a:hover { text-decoration: underline; }
.proximos p { font-size: 14.5px; color: #344054; }

@media (max-width: 860px) {
  .palco, .obrigado { grid-template-columns: 1fr; gap: 8px; padding-top: 14px; }
  .livro-cena { order: 2; padding: 18px 0 16px; }
  .so-desktop { display: none; }
  .texto { display: contents; }
  .cabeca { order: 1; }
  form { order: 3; grid-template-columns: 1fr; }
  .campo, .campo.metade { grid-column: 1 / -1; }
  .livro { --w: min(40vw, 170px); }
  .topo img { height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .livro { transition: none !important; } }
