/* Formulário e prévia usados pelas ferramentas que geram app ou atalho (APK, iPhone...). */
.hero { padding: 14px 0 6px; }
.tool { margin: 22px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 320px; overflow: hidden; }
.tool form, .tool .done { padding: 28px; display: grid; gap: 18px; align-content: start; }
.preview { background: radial-gradient(120% 90% at 80% 0%, #ffe3d6 0%, transparent 55%), linear-gradient(160deg, #f3f1ff, #e9e5ff); border-left: 1px solid var(--line); display: grid; place-items: center; padding: 28px 20px; gap: 10px; }
.preview small { color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .tool { grid-template-columns: 1fr; }
  .preview { border-left: 0; border-top: 1px solid var(--line); order: 2; padding: 20px; }
  .tool form, .tool .done { padding: 20px; }
}
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.field small { color: var(--muted); font-weight: 400; font-size: 13px; }
.input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(68,51,230,.14); }
.input svg { flex: none; color: var(--muted); }
.input input { border: 0; outline: 0; font: inherit; font-size: 16px; padding: 13px 0; width: 100%; background: transparent; color: var(--ink); min-width: 0; }
.icon-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.icon-thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); flex: none; overflow: hidden; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.icon-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.swatch[aria-pressed="true"] { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.error { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* celular da prévia */
.phone { width: 210px; height: 400px; border-radius: 34px; background: #121024; padding: 9px; box-shadow: 0 18px 40px rgba(23,21,43,.28); }
.screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; position: relative; background: radial-gradient(90% 60% at 85% 100%, #ff8a5c 0%, transparent 60%), radial-gradient(120% 80% at 15% 5%, #8b7dff 0%, #4433e6 45%, #1d1670 100%); color: #fff; }
.status { display: flex; justify-content: space-between; font-size: 11px; padding: 10px 16px 0; opacity: .9; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 6px; padding: 30px 12px 0; }
.app { display: grid; justify-items: center; gap: 6px; font-size: 11px; text-align: center; line-height: 1.2; }
.app .ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.18); overflow: hidden; }
.app.me .ic { box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.app.me .ic img { width: 100%; height: 100%; display: block; }
.app span { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.app.ghost span { width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); }

/* resultado */
.done { background: linear-gradient(180deg, var(--soft), #fff 70%); }
.done h2 { margin: 0; font-size: 24px; display: flex; align-items: center; gap: 10px; }
.done h2 svg { flex: none; }
.done h2:focus { outline: none; }
.done .install { color: var(--muted); font-size: 14px; margin: 0; }
.done .again { font-size: 14px; background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: 0; justify-self: start; text-decoration: underline; }

ol.install-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 44px; margin: 0; display: grid; gap: 10px; }
ol.install-list li::marker { color: var(--brand); font-weight: 700; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* celular da prévia menor em tela pequena (fica depois das regras do .phone para valer) */
@media (max-width: 820px) {
  .phone { width: 170px; height: 290px; border-radius: 28px; padding: 7px; }
  .screen { border-radius: 22px; }
  .apps { padding-top: 22px; gap: 12px 4px; }
  .app .ic { width: 40px; height: 40px; border-radius: 11px; }
}
