@import url('base.css');
.shell{max-width:560px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}

/* faixa azul, como o retângulo "PATAS" do logo */
.band{background:var(--blue);color:#fff;padding:14px var(--gutter) 26px;border-radius:0 0 28px 28px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-stretch:125%;font-size:.95rem}
.brand img{width:40px;height:40px;border-radius:10px;background:#fff;object-fit:contain}
.steps{display:flex;gap:6px;margin:14px 0 18px}
.steps i{flex:1;height:6px;border-radius:99px;background:rgba(255,255,255,.28)}
.steps i.on{background:#fff}
.band h1{color:#fff}
.band p{color:rgba(255,255,255,.85);margin-top:6px}

.screen{flex:1;padding:20px var(--gutter) 130px}
.footer{position:fixed;left:0;right:0;bottom:0;padding:12px var(--gutter) calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to top,var(--paper) 80%,rgba(243,246,252,0));display:flex;flex-wrap:wrap;gap:10px;max-width:560px;margin:0 auto}
.footer .btn{padding:0 14px;white-space:nowrap;flex:1 1 auto;min-width:0}
.footer .btn-primary{flex:1 1 auto}
/* com 3 botoes, o principal ganha a linha de cima inteira (cabe em celular estreito) */


.choices{display:grid;gap:14px}
.choice{display:flex;align-items:center;gap:18px;padding:18px;border-radius:var(--radius);border:2px solid var(--line);background:var(--surface);cursor:pointer;text-align:left;min-height:var(--tap);box-shadow:var(--shadow)}
.choice:hover{border-color:var(--blue)}
.choice .shape{flex:none;border:3px solid var(--blue);border-radius:8px;background:#e9f0ff}
.choice .shape.feed{width:48px;height:60px}
.choice .shape.stories{width:40px;height:72px;margin-right:8px}
.choice strong{display:block;font-size:1.2rem;font-stretch:125%}

.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 14px;scrollbar-width:none}
.chip{flex:none;min-height:46px;padding:0 18px;border-radius:999px;border:2px solid var(--line);background:var(--surface);font-weight:700;cursor:pointer}
.chip.on{background:var(--blue);border-color:var(--blue);color:#fff}

.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.card{border:2px solid transparent;padding:0;border-radius:var(--radius);overflow:hidden;background:var(--surface);box-shadow:var(--shadow);cursor:pointer;text-align:left}
.card:hover{border-color:var(--blue)}
.card img{display:block;width:100%;height:auto;background:repeating-conic-gradient(#e6ebf5 0 25%,#fff 0 50%) 0 0/16px 16px}
.card span{display:block;padding:10px 12px;font-weight:700;font-size:.95rem}

.stage{width:100%;height:auto;border-radius:var(--radius-sm);box-shadow:var(--shadow);background:#fff;display:block}
.tools{display:grid;gap:12px;margin-top:16px}
.tools input[type=range]{width:100%;min-height:var(--tap);accent-color:var(--blue)}
.empty{text-align:center;padding:40px 8px;color:var(--muted)}

/* Escrever com IA */
.ai-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.ai-bar svg{color:var(--blue)}
.ai-dialog{border:0;border-radius:var(--radius, 20px);padding:22px;width:min(560px,calc(100vw - 32px));background:var(--surface);color:var(--ink);box-shadow:0 20px 60px rgba(10,30,70,.3)}
.ai-dialog::backdrop{background:rgba(8,20,45,.55)}
.ai-dialog h2{margin:0 0 6px}
.ai-dialog form{display:flex;flex-direction:column;gap:12px}
.ai-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ai-actions .btn{flex:1 1 auto}

/* Fotos escolhidas (até 4) */
.thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.thumbs:empty{display:none}
.thumb{position:relative;width:72px;height:72px}
.thumb>button:first-child{all:unset;cursor:pointer;display:block;width:72px;height:72px;border-radius:14px;overflow:hidden;outline:3px solid transparent;outline-offset:2px}
.thumb.on>button:first-child{outline-color:var(--blue)}
.thumb>button:first-child:focus-visible{outline-color:var(--blue)}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb .rm{position:absolute;top:-8px;right:-8px;width:28px;height:28px;border-radius:50%;border:2px solid #fff;background:var(--ink);color:#fff;font-weight:800;line-height:1;cursor:pointer}
.stage{touch-action:pan-x pan-y}
.tools .chips{flex-wrap:wrap;overflow:visible;padding-bottom:0}

.choice .shape.feed+.shape.stories{margin-left:-14px}

/* Prévia sempre à vista: fica presa no topo enquanto a pessoa ajusta ou digita */
.stage-wrap{position:sticky;top:0;z-index:4;background:var(--paper);margin:0 calc(-1 * var(--gutter));padding:8px var(--gutter) 10px}
.stage-wrap .stage{width:auto;height:auto;max-width:100%;max-height:52vh;margin:0 auto}
.stage-wrap.small .stage{max-height:38vh}
.footer .btn-icon{flex:0 0 auto;width:var(--tap);padding:0}
.footer .btn-primary{flex:1 1 auto}
.toolrow{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.seg{display:inline-flex;border:2px solid var(--line);border-radius:999px;padding:3px;background:var(--surface)}
.seg button{border:0;background:none;border-radius:999px;padding:9px 14px;font:inherit;font-weight:800;font-size:.92rem;color:var(--ink);cursor:pointer;min-height:40px}
.seg button.on{background:var(--blue);color:#fff}
.zoomrow{flex:1 1 140px;display:flex;align-items:center;gap:8px;color:var(--blue)}
.zoomrow input{flex:1;min-width:0;accent-color:var(--blue)}
.muted.small{font-size:.85rem;margin:0}
.thumbs{margin-top:10px}
.thumb,.thumb>button:first-child{width:56px;height:56px}

/* Escolha do modelo: cada arte mostra os estilos lado a lado */
.cats{display:grid;gap:30px}
.cat-block{display:grid;gap:18px}
.cat-title{font-size:1.4rem;margin:0;padding-bottom:6px;border-bottom:2px solid var(--line)}
.art-row h3{font-size:1rem;margin:0 0 8px}
.art-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.art-opts .card span{text-align:center}
.art-opts .card img{background:url(../img/exemplo.jpg) center/cover}

/* Descrição + IA na própria tela de textos */
.ai-box{display:grid;gap:10px;padding:14px;border-radius:var(--radius-sm);background:var(--surface);border:2px dashed var(--line);margin-bottom:18px}
.ai-box .field{margin:0}
.ai-box small.muted{display:block;font-size:.85rem;font-weight:500}
.ai-box .ai-actions{justify-content:flex-start}
.ai-box .ai-actions .btn{flex:1 1 auto}
.ai-box .ai-actions svg{color:var(--blue)}
.ai-box #ai-title small{display:inline;font-size:.85rem}

/* Campo de escolha (idade, sexo, porte...) */
.choice{display:grid;gap:10px}
.choice .cg{display:grid;gap:6px}
.choice small{color:var(--muted, #5b6b85);font-weight:700;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}
.chips.wrap{flex-wrap:wrap;overflow:visible;padding-bottom:0}
.choice .chip{min-height:42px;padding:0 14px;font-size:.95rem}
.choice .input{min-height:44px}
.footer{z-index:10}
