/* Amado · Lista VIP. Base: mockup da Civil (nov/2026), com as cores-base do KV (marcador). */
:root {
  --papel: #f4efe3; --tinta: #1c1c1b; --tinta-2: #55524b;
  --lima: #cdd263; --rosa: #f3aacb; --verde: #468579; --azul: #0581bb;
  --coral: #d77968; --ocre: #dfb37a; --menta: #c3dac5; --cartao: #fffdf6;
  --erro: #a3281a;
  --f-display: 'Federo', Georgia, serif;
  --f-maq: 'Courier Prime', 'Courier New', Courier, monospace;
  --f-texto: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(18px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--f-texto); font-size: 17px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wrap { padding-left: var(--gutter); padding-right: max(18px, env(safe-area-inset-right, 0px)); max-width: 1120px; margin: 0 auto; }
.maq { font-family: var(--f-maq); }
a { color: inherit; }
:focus-visible { outline: 2px dashed var(--tinta); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; }

/* topo */
.topo { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 18px; font-family: var(--f-maq); font-size: 13px; line-height: 1.2; }
.topo-dir { display: grid; justify-items: center; gap: 7px; width: 110px; }
.civil-logo { width: 110px; display: block; }
.topo-dir b { display: block; white-space: nowrap; font: 500 9px/1 var(--f-texto); letter-spacing: .2em; margin-right: -.2em; }

/* capa */
.capa { display: grid; gap: 8px; padding-block: 28px 40px; }
.palco { position: relative; width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 1 / 1.05; }
.palco img { position: absolute; display: block; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.palco .a { left: 24%; top: 8%; width: 52%; }
.s { animation: entra .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes entra { from { transform: translate(var(--dx,0), var(--dy,30px)) rotate(var(--r,0deg)) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.titulo { display: grid; justify-items: center; gap: 14px; text-align: center; }
/* desktop: colagem e título lado a lado, para o botão aparecer sem rolar */
@media (min-width: 900px) {
  .capa { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px; padding-block: 8px 48px; }
  .palco { max-width: min(620px, 72vh); }
  .titulo { justify-items: start; text-align: left; }
  .logo { width: min(360px, 100%); }
}
.logo-h1 { margin: 0; line-height: 0; }
.logo { width: min(320px, 70vw); }
.datilo { font-family: var(--f-maq); font-size: clamp(18px, 4.6vw, 24px); min-height: 2.6em; max-width: 28ch; margin: 0; }
.datilo #datiloTxt { display: inline-block; }
.datilo .cursor { display: inline-block; width: .55em; border-bottom: 2px solid var(--tinta); animation: pisca 1s steps(1) infinite; margin-left: 2px; }
@keyframes pisca { 50% { opacity: 0; } }
.sub { font-size: 19px; max-width: 30ch; margin: 0; text-wrap: balance; }

/* botões */
.btn { appearance: none; border: 1.5px solid var(--tinta); background: var(--tinta); color: var(--papel); font: 500 15px/1 var(--f-texto); letter-spacing: .04em; padding: 16px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; transition: transform .15s, background .2s, color .2s; }
.btn-cta { background: var(--coral); border-color: var(--coral); color: var(--tinta); font-size: 16px; padding: 17px 26px; box-shadow: 3px 3px 0 var(--tinta); }
.btn-cta:hover { transform: translateY(-2px); background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.btn-cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.btn[disabled] { opacity: .8; cursor: progress; }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(28,28,27,.3); border-top-color: var(--tinta); border-radius: 50%; animation: gira .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes gira { to { transform: rotate(360deg); } }
.cta-nota { font-family: var(--f-maq); font-size: 13.5px; color: var(--tinta-2); max-width: 34ch; }
.cta-faixa { display: flex; justify-content: center; padding-block: 8px 40px; }
.cta-fixo { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 120px); z-index: 20; background: var(--tinta); color: var(--papel); text-decoration: none; font: 500 15px/1 var(--f-texto); padding: 15px 22px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.2,.7,.2,1); white-space: nowrap; }
.cta-fixo.on { transform: translate(-50%, 0); }

/* coleção */
.colecao { padding-block: 8px 48px; display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .colecao { grid-template-columns: auto 1fr; gap: 44px; } }
.colecao h2 { font-family: var(--f-display); font-size: clamp(30px, 7vw, 52px); line-height: 1.05; margin: 6px 0 12px; text-wrap: balance; }
.colecao p { margin: 0; max-width: 58ch; font-size: 18px; }
.col-lombadas { display: flex; gap: 6px; align-items: flex-end; height: 170px; }
.lb { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-display); font-size: 22px; display: flex; align-items: center; justify-content: center; width: 52px; border-radius: 3px; }
.lb1 { height: 150px; background: var(--ocre); }
.lb2 { height: 170px; background: var(--lima); box-shadow: 4px 0 0 var(--tinta); }
.lb3 { height: 120px; border: 1.5px dashed var(--tinta-2); color: var(--tinta-2); }
.nota-marg { font-family: var(--f-maq); font-size: 14px; color: var(--tinta-2); }

/* faixa de nomes */
.faixa { background: var(--verde); color: var(--menta); overflow: hidden; padding-block: 12px; font-family: var(--f-maq); font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.faixa span { display: inline-block; animation: corre 60s linear infinite; padding-right: 2em; }
@keyframes corre { to { transform: translateX(-50%); } }

/* citação */
.citacao { padding-block: 64px 40px; display: grid; gap: 18px; justify-items: start; }
.citacao blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(32px, 7.4vw, 68px); line-height: 1.02; max-width: 20ch; }
.nw { white-space: nowrap; }
.citacao .ap { color: var(--coral); }
.citacao .ctx { font-family: var(--f-maq); font-size: 15px; max-width: 52ch; color: var(--tinta-2); margin: 0; }
.citacao cite { font-style: normal; font-family: var(--f-maq); font-size: 14px; }

/* rasura */
.rasura { padding-block: 72px 56px; display: grid; gap: 22px; }
.rasura h2 { font-family: var(--f-display); font-size: clamp(34px, 8.4vw, 72px); line-height: 1.08; margin: 0; text-wrap: balance; }
.rasura ins { text-decoration: none; background: linear-gradient(transparent 62%, var(--lima) 62%); padding: 0 .08em; }
.rasura p { max-width: 56ch; margin: 0; font-size: 18px; }
.rasura .kicker { font-family: var(--f-maq); font-size: clamp(17px, 4.4vw, 22px); max-width: 34ch; margin-top: -6px; }
.folha-wrap { display: grid; gap: 36px; justify-items: start; margin-top: 12px; }
.folha { background: #fbf6e6; border: 1px solid #d8cfb5; box-shadow: 0 1px 0 #d8cfb5, 0 10px 30px rgba(60,40,10,.12); padding: 28px 24px 34px; max-width: 520px; width: 100%; font-family: var(--f-maq); font-size: 15px; line-height: 2.1; color: #2b2620; transform: rotate(-1.2deg); position: relative; background-image: repeating-linear-gradient(transparent 0 25px, rgba(43,38,32,.04) 25px 26px); }
.folha .pg { position: absolute; top: 10px; right: 16px; font-size: 12px; color: #8a7f69; line-height: 1; }
.folha s { text-decoration: none; position: relative; }
.folha s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #2b2620; transform: scaleX(var(--k,1)); transform-origin: left; transition: transform .5s; }
.folha .corr { position: relative; display: inline-block; }
.folha .lapis { font-family: 'Caveat', 'Segoe Print', cursive; color: #b0402a; font-size: 21px; line-height: 1; position: absolute; left: 10%; top: -.95em; white-space: nowrap; transform: rotate(-4deg); }
@media (max-width: 520px) { .folha { line-height: 2.5; padding-inline: 20px; } .folha .lapis { top: -.8em; } }
.folha-legenda { font-size: 13px; color: var(--tinta-2); max-width: 52ch; margin: 0; }

/* endereço */
.endereco { padding-block: 72px 80px; display: grid; gap: 48px; }
.endereco > .nota-marg { margin-bottom: -28px; }
.endereco h2 { font-family: var(--f-display); font-size: clamp(32px, 7.4vw, 60px); line-height: 1.04; margin: 0; text-wrap: balance; max-width: 18ch; }
.endereco .lead { max-width: 56ch; margin: 0; font-size: 18px; }
.trio { display: grid; gap: 40px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.eixo { border-top: 2px solid var(--tinta); padding-top: 22px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.eixo img { width: 96px; height: 96px; object-fit: contain; }
.eixo h3 { margin: 0; font-family: var(--f-display); font-size: 28px; line-height: 1; }
.eixo .v { font-family: var(--f-maq); font-size: 13px; letter-spacing: .06em; color: #a5483a; display: block; margin: 8px 0 12px; }
.eixo p { margin: 0; font-size: 15.5px; }
.rua-sente { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--f-maq); font-size: 15px; }
.caderno { background: var(--menta); padding: 26px 22px 28px; border-radius: 4px; display: grid; gap: 20px; }
.caderno .tit { font-family: var(--f-maq); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vizinhos { display: flex; flex-wrap: wrap; gap: 8px; }
.vizinhos button { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 759px) { .caderno { padding-inline: 16px; } .vizinhos { gap: 6px; } .vizinhos button { font-size: 13.5px; padding: 8px 11px; } }
@media (min-width: 760px) { .vizinhos button { flex: 0 0 auto; } }
.vizinhos button { appearance: none; border: 1.5px solid var(--tinta); background: var(--papel); border-radius: 999px; padding: 9px 14px; font: 14px var(--f-texto); color: var(--tinta); cursor: pointer; min-height: 40px; }
.vizinhos button[aria-pressed="true"] { background: var(--tinta); color: var(--papel); }
.postal { background: var(--cartao); border: 1px solid var(--tinta); padding: 18px 20px; font-family: var(--f-maq); font-size: 15.5px; line-height: 1.6; min-height: 150px; max-width: 70ch; box-shadow: 4px 4px 0 var(--tinta); }
.postal b { font-family: var(--f-texto); font-weight: 500; letter-spacing: .12em; font-size: 11px; display: block; margin-bottom: 6px; }

/* sumário */
.sumario { padding-block: 24px 64px; }
.cab { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.cab h2 { font-family: var(--f-display); font-size: clamp(28px, 6vw, 44px); margin: 0; line-height: 1; }
.cab small { font-family: var(--f-maq); font-size: 14px; color: var(--tinta-2); }
.pags { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.pag { scroll-snap-align: start; border-radius: 6px; padding: 22px 22px 28px; min-height: 520px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; position: relative; overflow: hidden; min-width: 0; isolation: isolate; }
.pag > * { position: relative; z-index: 1; }
/* onda: a própria cor, mais viva, sobe e preenche o bloco */
.pag::before { content: ""; position: absolute; z-index: 0; left: 0; right: 0; top: -22px; height: calc(100% + 22px); background: var(--viva); transform: translateY(100%); transition: transform .9s cubic-bezier(.3,.7,.2,1);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 22' preserveAspectRatio='none'%3E%3Cpath d='M0 11 C20 0 60 0 80 11 S140 22 160 11 V22 H0Z'/%3E%3C/svg%3E") 0 0 / 160px 22px repeat-x, linear-gradient(#000, #000) 0 21px / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 22' preserveAspectRatio='none'%3E%3Cpath d='M0 11 C20 0 60 0 80 11 S140 22 160 11 V22 H0Z'/%3E%3C/svg%3E") 0 0 / 160px 22px repeat-x, linear-gradient(#000, #000) 0 21px / 100% 100% no-repeat; }
.pag:hover::before, .pag:focus-within::before { transform: translateY(0); animation: marola 1.6s linear infinite; }
@keyframes marola { to { -webkit-mask-position: 160px 0, 0 21px; mask-position: 160px 0, 0 21px; } }
.pag .n { font-family: var(--f-maq); font-size: 13px; display: flex; justify-content: space-between; }
.pag h3 { font-family: var(--f-display); font-size: 30px; line-height: 1.05; margin: 0 0 12px; }
.pag p { margin: 0; font-size: 16px; line-height: 1.55; }
.pag .ilu { display: grid; place-items: center; min-height: 170px; }
.pag .ilu img { max-height: 190px; width: auto; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.pag:hover .ilu img { transform: rotate(-4deg) scale(1.06); }
.pag .epi { font-family: var(--f-maq); font-size: 13.5px; line-height: 1.45; border-left: 2px solid currentColor; padding-left: 12px; margin: 0 0 24px; opacity: .9; }
.pag .epi cite { display: block; font-style: normal; font-size: 11.5px; margin-top: 8px; opacity: .85; }
.pag-cta { display: inline-block; margin-top: 14px; font-family: var(--f-maq); font-weight: 700; font-size: 15px; }
.c-lima { background: var(--lima); --viva: #d9e33f; } .c-rosa { background: var(--rosa); --viva: #fb8fc2; } .c-menta { background: var(--menta); --viva: #a9e2b2; } .c-coral { background: var(--coral); --viva: #ef6447; }
.c-verde { background: var(--verde); color: var(--papel); --viva: #1f9a82; } .c-azul { background: var(--azul); color: var(--papel); --viva: #0099e6; }
@media (min-width: 900px) { .pags { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; } }

/* ficha de leitor */
.leitor { background: var(--rosa); padding-block: 64px 72px; position: relative; overflow: hidden; scroll-margin-top: 0; }
.leitor .fundo { display: none; position: absolute; pointer-events: none; }
@media (min-width: 860px) { .leitor .fundo { display: block; width: 300px; right: -60px; top: -30px; opacity: .85; } }
.leitor .fundo2 { position: absolute; left: -40px; bottom: -30px; width: 200px; opacity: .9; pointer-events: none; transform: rotate(18deg); }
.leitor .grade { display: grid; gap: 28px; position: relative; z-index: 1; }
@media (min-width: 860px) { .leitor .grade { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.leitor h2 { font-family: var(--f-display); font-size: clamp(32px, 7vw, 56px); line-height: 1.02; margin: 0 0 14px; text-wrap: balance; }
.leitor p { margin: 0 0 8px; }
.leitor .destaque { font-size: 17px; margin-top: 14px; }
.cartao { background: var(--cartao); border: 1.5px solid var(--tinta); padding: 22px 20px 24px; position: relative; box-shadow: 6px 6px 0 var(--tinta); min-width: 0; }
.cartao .cab-f { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--f-maq); font-size: 13px; line-height: 1.25; text-align: right; border-bottom: 1.5px solid var(--tinta); padding-bottom: 10px; margin-bottom: 6px; gap: 10px; }
.cartao .cab-f b { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; }
.campo { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px; border-bottom: 1px dashed var(--tinta); padding-block: 14px 4px; }
.campo label { font-family: var(--f-maq); font-size: 14px; white-space: nowrap; }
.campo input { border: 0; background: transparent; font: 18px/1.3 var(--f-maq); color: var(--tinta); width: 100%; min-width: 0; padding: 4px 0; outline: none; border-radius: 0; }
.campo input::placeholder { color: #a39f93; }
.campo:focus-within { border-bottom-style: solid; border-bottom-width: 2px; }
.campo.is-invalid { border-bottom-color: var(--erro); border-bottom-style: solid; }
.erro-campo { display: none; color: var(--erro); font-size: 13px; padding-top: 4px; }
.erro-campo.on { display: block; }
.riscar { font-family: var(--f-display); font-size: 24px; line-height: 1.5; padding-top: 18px; }
.riscar .q { font-family: var(--f-maq); font-size: 14px; display: block; margin-bottom: 4px; }
.riscar button { appearance: none; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0 .1em; position: relative; }
.riscar button::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: 3px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.riscar button[aria-pressed="true"] { color: var(--tinta-2); }
.riscar button[aria-pressed="true"]::after { transform: scaleX(1); }
.riscar .dica { font-family: var(--f-maq); font-size: 12.5px; color: var(--tinta-2); display: block; margin-top: 4px; }
.aceite { display: flex; gap: 10px; font-size: 13px; color: var(--tinta-2); padding-top: 16px; align-items: flex-start; cursor: pointer; }
.aceite input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--verde); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.erro { color: var(--erro); font-size: 14px; min-height: 1.2em; margin: 8px 0 0; }
.cartao .btn { margin-top: 14px; width: 100%; justify-content: center; }

/* obrigado: ex-libris */
.ex { min-height: 100svh; display: grid; place-items: center; padding-block: 40px; }
.ex .cartao { max-width: 460px; width: 100%; overflow: hidden; }
.carimbo { position: absolute; right: 14px; top: 58px; border: 3px solid var(--coral); color: var(--coral); font-family: var(--f-maq); font-weight: 700; padding: 8px 12px; transform: rotate(-12deg) scale(2); opacity: 0; text-align: center; line-height: 1.15; font-size: 15px; pointer-events: none; mix-blend-mode: multiply; animation: carimba .45s cubic-bezier(.3,1.6,.5,1) .5s forwards; }
@keyframes carimba { to { transform: rotate(-12deg) scale(1); opacity: .9; } }
.exlibris { display: grid; gap: 12px; text-align: center; justify-items: center; padding-block: 18px 6px; }
.exlibris > img { width: 72px; }
.exlibris .nome { font-family: var(--f-display); font-size: 30px; line-height: 1.1; margin: 0; }
.exlibris p { margin: 0; max-width: 34ch; }
.exlibris blockquote { margin: 6px 0 0; font-family: var(--f-maq); font-size: 14px; max-width: 34ch; color: var(--tinta-2); }
.ex .btn { margin-top: 10px; background: transparent; color: var(--tinta); }
.ex .btn:hover { background: var(--tinta); color: var(--papel); }

/* pé */
.pe { padding-block: 36px calc(48px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--tinta-2); align-items: end; }
.pe .loc { font-family: var(--f-maq); color: var(--tinta); font-size: 15px; line-height: 1.15; }
.pe-dir { display: grid; gap: 12px; justify-items: end; text-align: right; }
.pe-sign { display: flex; align-items: flex-end; gap: 14px; color: var(--tinta); font-size: 13px; line-height: 1.25; text-align: left; }
.pe-sign img { width: 80px; }
@media (max-width: 520px) { .pe-dir { justify-items: start; text-align: left; } .pe { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }

/* entrada na rolagem */
.js .rev { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--atraso, 0s); }
.js .rev.rev--esq { transform: translateX(-40px); }
.js .rev.rev--giro { transform: translateY(24px) rotate(-8deg) scale(.9); }
.js .rev.in { opacity: 1; transform: none; }
.js .folha.rev { transform: translateY(40px) rotate(2deg); }
.js .folha.rev.in { transform: rotate(-1.2deg); }
.js .rasura ins { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1s cubic-bezier(.2,.7,.2,1) .4s; }
.js .rasura h2.in ins { background-size: 100% 100%; }
/* lombadas crescem de baixo para cima (clip, para não mexer na rotação do texto) */
.js .lb { clip-path: inset(-10px -10px -10px -10px); transition: clip-path .9s cubic-bezier(.2,.7,.2,1); }
.js .col-lombadas:not(.in) .lb { clip-path: inset(-10px -10px 100% -10px); }
.js .lb2 { transition-delay: .15s; } .js .lb3 { transition-delay: .3s; }
.js .eixo.rev img { transition: transform 1s cubic-bezier(.2,.7,.2,1) .2s; transform: rotate(-14deg) scale(.8); }
.js .eixo.rev.in img { transform: none; }
.js .cartao.rev { transform: translateY(40px) rotate(1.5deg); }
.js .cartao.rev.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .rev, .js .rev.in, .js .folha.rev, .js .cartao.rev { opacity: 1; transform: none; }
  .js .rasura ins { background-size: 100% 100%; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .carimbo { opacity: .9; transform: rotate(-12deg); }
  html { scroll-behavior: auto; }
}
