/* Blobs — páginas do sistema (landing, login, painel, admin) */
/* Layout: barra lateral fixa + área principal em grade; cartões só onde há objeto real (designs, modelos) */
:root {
  --bg: #f6f6f9; --surface: #ffffff; --surface-2: #f0f0f5; --line: #e3e3ec;
  --ink: #17151f; --muted: #5f5d70; --accent: #e8590c; --accent-2: #f59f00; --accent-ink: #ffffff; --accent-soft: #fff0e6; --accent-deep: #c2410c;
  --warm: #f59f00; --ok: #0f8a6a; --ok-soft: #dcf3ec; --err: #c8323c; --err-soft: #fbe2e4;
  --grad: linear-gradient(120deg, #d63a00 0%, #e8590c 45%, #f59f00 100%);
  --shadow: 0 1px 2px rgba(23, 21, 31, .05), 0 8px 24px rgba(23, 21, 31, .08);
  --shadow-lg: 0 2px 6px rgba(23, 21, 31, .06), 0 24px 60px rgba(23, 21, 31, .14);
  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121218; --surface: #1c1b24; --surface-2: #26252f; --line: #34333f;
    --ink: #f2f1f7; --muted: #aaa8ba; --accent: #ff8a3d; --accent-2: #ffb347; --accent-ink: #1a0d05; --accent-soft: #3a2316; --accent-deep: #ff9d5c;
    --ok: #4fd1ad; --ok-soft: #133a33; --err: #ff7a83; --err-soft: #3f1b22;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121218; --surface: #1c1b24; --surface-2: #26252f; --line: #34333f;
  --ink: #f2f1f7; --muted: #aaa8ba; --accent: #ff8a3d; --accent-2: #ffb347; --accent-ink: #1a0d05; --accent-soft: #3a2316; --accent-deep: #ff9d5c;
  --ok: #4fd1ad; --ok-soft: #133a33; --err: #ff7a83; --err-soft: #3f1b22;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { filter: brightness(.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.danger { background: var(--err-soft); color: var(--err); }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.icon { padding: 8px 11px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--f-display); font-size: 21px; font-weight: 600; text-decoration: none !important; }
.brand b { font-weight: 800; color: var(--accent); }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.err { background: var(--err-soft); color: var(--err); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.err { background: var(--err-soft); color: var(--err); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* selo Byte Core Shield */
.bc-seal { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ok); font-size: 12px; font-weight: 600; background: var(--surface); }
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 28px 0 8px; color: var(--muted); font-size: 12px; }
.landing .site-foot, .auth .site-foot { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1180px; margin: 0 auto; }

/* landing */
.land-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.land-top nav { display: flex; gap: 8px; }
.land-hero { max-width: 1180px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--warm); }
.land-copy h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin: 12px 0 16px; }
.land-copy p { font-size: 18px; color: var(--muted); max-width: 52ch; }
.land-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.land-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.land-feats li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); margin-right: 10px; }
.mock { display: grid; grid-template-columns: 44px 120px 1fr; height: 380px; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.mock-rail { background: var(--ink); display: grid; align-content: start; gap: 12px; padding: 14px 10px; }
.mock-rail i { height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.mock-panel { background: var(--surface); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; padding: 14px; }
.mock-panel i { height: 60px; border-radius: 8px; background: var(--surface-2); }
.mock-stage { background: var(--surface-2); display: grid; place-items: center; }
.mock-page { width: 72%; aspect-ratio: 1; background: #14213d; border-radius: 4px; position: relative; overflow: hidden; display: grid; align-content: center; padding: 18px; color: #fff; box-shadow: var(--shadow); }
.mock-page b { font: 800 clamp(28px, 4vw, 44px)/1 var(--f-display); letter-spacing: .02em; position: relative; z-index: 1; }
.mock-page span { font-weight: 700; color: #ffb703; position: relative; z-index: 1; }
.mock-page em { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: #fb8500; right: -22%; top: -26%; }

/* autenticação */
.auth-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; margin-top: 10px; }
.auth-card p { margin: -8px 0 0; }

/* app */
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; padding: 20px 16px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.side nav a svg { width: 20px; height: 20px; color: var(--muted); }
.side nav a:hover { background: var(--surface-2); }
.side nav a.on { background: var(--accent-soft); color: var(--accent); }
.side nav a.on svg { color: var(--accent); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.side-user div { min-width: 0; flex: 1; display: grid; }
.side-user small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--warm); color: #fff; display: grid; place-items: center; font-weight: 800; }
.app-main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 24px 32px; min-width: 0; }
.app-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; padding: 11px 0; background: transparent; }
.search input:focus { outline: none; }
.app-bar .btn.primary { margin-left: auto; }
.only-mobile { display: none; }

.hero-band { border-radius: 24px; padding: 40px 28px 34px; background: var(--grad); color: #fff; display: grid; gap: 22px; position: relative; overflow: hidden; }
.hero-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.hero-band h1 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; text-align: center; }
.quick-sizes { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quick { display: grid; justify-items: center; gap: 8px; width: 104px; padding: 12px 6px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; }
.quick:hover { background: rgba(255, 255, 255, .22); }
.ratio { width: 40px; height: 40px; display: grid; place-items: center; }
.ratio i { display: block; border: 2px solid currentColor; border-radius: 4px; }

.page-title { font-size: 30px; font-weight: 800; margin: 6px 0 18px; }
.page-title.flush { margin: 0; font-size: 24px; }
.block { margin-top: 30px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.block-head h2 { font-size: 20px; }
.tpl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 99px; cursor: pointer; font-weight: 600; font-size: 13px; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; align-items: start; }
.tpl-card { display: grid; gap: 6px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.tpl-thumb { display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; overflow: hidden; max-height: 260px; max-width: 100%; }
.tpl-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tpl-card:hover .tpl-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-card b { font-size: 14px; }
.tpl-card small { color: var(--muted); font-size: 12px; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.d-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; grid-template-rows: auto auto auto; }
.d-thumb { display: grid; place-items: center; height: 170px; background: var(--surface-2); padding: 12px; }
.d-thumb img { max-height: 146px; max-width: 100%; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.d-thumb .ph { height: 100px; max-width: 100%; background: #fff; }
.d-meta { padding: 10px 12px 4px; display: grid; min-width: 0; }
.d-meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-meta small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.d-actions { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px 10px; }
.d-actions button { border: 0; background: none; padding: 4px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.d-actions button:hover { background: var(--surface-2); color: var(--ink); }
.d-actions button.on { color: #e3a008; }
.d-actions button.danger { color: var(--err); }
.empty { grid-column: 1 / -1; display: grid; gap: 4px; place-items: center; padding: 40px 16px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.empty b { color: var(--ink); }

/* modais */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 12, 30, .5); display: grid; place-items: center; padding: 16px; }
.modal-card { width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 18px; padding: 22px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.modal-card.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 20px; }
.x { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.size-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.size-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.size-item:hover { border-color: var(--accent); }
.size-item .ratio { color: var(--accent); }
.size-item span { display: grid; }
.size-item small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.custom-size { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.custom-size b { width: 100%; }
.custom-size input { width: 100px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 60; }

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; }
.stat small { color: var(--muted); font-weight: 600; }
.stat b { font: 800 28px/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.tabs a.on { color: var(--accent); border-color: var(--accent); }
.filter { display: flex; gap: 8px; max-width: 480px; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.mini { width: 54px; height: 40px; object-fit: contain; background: var(--surface-2); border-radius: 6px; }
.shield-card { display: grid; gap: 10px; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.shield-card p { margin: 0; color: var(--muted); max-width: 75ch; }
.panel-form { display: grid; gap: 16px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }

@media (max-width: 900px) {
  .land-hero { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* instalador */
.auth-card.install { max-width: 620px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checks li b { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.checks li.ok b { background: var(--ok-soft); color: var(--ok); }
.checks li.err b { background: var(--err-soft); color: var(--err); }
.checks li span { display: grid; }
.checks small { color: var(--muted); }
.install-form { display: grid; gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; display: grid; gap: 12px; margin: 0; min-width: 0; }
legend { padding: 0 6px; font-weight: 700; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.panel-form.wide { max-width: 760px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* pastas */
.folders { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.folder { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 600; min-width: 170px; }
.folder svg { width: 22px; height: 22px; color: var(--warm); flex: none; }
.folder small { color: var(--muted); font-weight: 500; display: block; }
.folder.on { border-color: var(--accent); background: var(--accent-soft); }
.folder .fx { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 6px; }
.folder .fx:hover { background: var(--surface-2); }
.d-actions select { font-size: 12px; padding: 3px 6px; border-radius: 6px; width: auto; }
.stock-list { display: grid; gap: 6px; margin: 8px 0 12px; }
.stock-row { align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line, #e1e3ec); border-radius: 10px; line-height: 1.45; }
.stock-row input { margin-top: 4px; }
.stock-row .ok { color: var(--ok); font-weight: 700; }
.brand .wm { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-size: 1.18em; }
.logo-img { display: block; flex: none; border-radius: 50%; }


/* =========================================================
   Blobs 3.2 — navegação do app no estilo do Canva
   ========================================================= */
.app-shell { display: grid; grid-template-columns: 84px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.rail-nav { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; background: var(--surface); border-right: 1px solid var(--line); z-index: 30; }
.rail-logo { margin-bottom: 8px; border-radius: 50%; }
.rail-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rail-create, .rail-item { width: 72px; display: grid; justify-items: center; gap: 4px; padding: 6px 0 8px; border: 0; background: none; border-radius: 14px; color: var(--ink); font: 600 11.5px/1.2 var(--f-body); text-decoration: none !important; cursor: pointer; text-align: center; }
.rail-create span, .rail-item span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; transition: background .15s, transform .15s; }
.rail-create span { background: var(--accent); color: var(--accent-ink); border-radius: 50%; box-shadow: 0 6px 14px -4px rgba(232, 89, 12, .55); }
.rail-create:hover span { transform: scale(1.06); }
.rail-item svg, .rail-create svg { width: 22px; height: 22px; }
.rail-item:hover span { background: var(--surface-2); }
.rail-item.on span { background: var(--accent-soft); color: var(--accent); }
.rail-item.on { color: var(--accent); }
.rail-grow { flex: 1; }
.rail-user { position: relative; }
.rail-user summary { list-style: none; cursor: pointer; padding: 4px; border-radius: 50%; }
.rail-user summary::-webkit-details-marker { display: none; }
.rail-user summary .avatar { width: 38px; height: 38px; }
.user-pop { position: absolute; left: calc(100% + 10px); bottom: 0; width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; z-index: 60; }
.user-pop-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.user-pop-head div { display: grid; min-width: 0; }
.user-pop-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop a, .user-pop button { display: block; text-align: left; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; border: 0; background: none; cursor: pointer; text-decoration: none !important; }
.user-pop a:hover, .user-pop button:hover { background: var(--surface-2); }
.avatar { background: var(--grad); }
.tabbar { display: none; }
.m-user { display: none; }
.app-main { padding: 18px max(20px, env(safe-area-inset-right, 0px)) 32px 28px; min-width: 0; }
.app-bar { min-height: 48px; }
.app-bar .mobile-brand { display: none; }
.only-mobile { display: none !important; }

/* início do painel */
.hero-band h1 { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.02em; position: relative; z-index: 1; }
.hero-search { position: relative; z-index: 1; max-width: 640px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; color: #17151f; border-radius: 999px; padding: 0 8px 0 18px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.hero-search svg { width: 20px; height: 20px; color: #6b6878; flex: none; }
.hero-search input { border: 0; background: none; padding: 15px 0; color: #17151f; font-size: 16px; }
.hero-search input:focus { outline: none; }
.quick-sizes { display: flex; gap: 6px 4px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.quick { width: 96px; display: grid; justify-items: center; gap: 8px; padding: 6px 2px; border: 0; background: none; color: var(--ink); cursor: pointer; font: 600 12.5px/1.25 var(--f-body); text-align: center; border-radius: 14px; }
.quick .qi { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); transition: transform .15s; }
.quick .qi svg { width: 26px; height: 26px; }
.quick:hover .qi { transform: translateY(-2px); }
.quick:focus-visible { outline: 2px solid var(--accent); }
.chip.on { background: var(--ink); color: var(--surface); }
.tpl-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.d-card { border-radius: 16px; transition: box-shadow .15s; }
.d-card:hover { box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .app-main { padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(92px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
  .app-bar { gap: 10px; margin-bottom: 12px; }
  .app-bar .mobile-brand { display: inline-flex; }
  .app-bar { padding-right: 50px; }
  .m-user { display: block; position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); z-index: 45; }
  .m-user .user-pop { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: min(280px, calc(100vw - 24px)); }
  .app-bar .mobile-brand .wm { display: none; }
  .app-bar .btn.primary { display: none; }
  .search { max-width: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tab { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none !important; padding: 4px 0; }
  .tab svg { width: 24px; height: 24px; }
  .tab.on { color: var(--accent); }
  .tab-create b { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; margin-top: -24px; box-shadow: 0 8px 18px -6px rgba(232, 89, 12, .7); border: 4px solid var(--surface); }
  .tab-create svg { width: 24px; height: 24px; }
  .hero-band { border-radius: 20px; padding: 26px 16px 22px; }
  .quick-sizes { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 16px -14px 4px; padding: 0 14px; scroll-snap-type: x proximity; }
  .quick { flex: none; width: 82px; scroll-snap-align: start; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .d-thumb { height: 130px; }
  .d-thumb img { max-height: 106px; }
  .page-title { font-size: 24px; }
  .modal { padding: 0; align-items: end; }
  .modal-card { border-radius: 22px 22px 0 0; max-height: 88vh; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .table { font-size: 13px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-foot { padding-bottom: 16px; }
}
@media (max-width: 380px) { .design-grid, .tpl-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .quick { width: 74px; } }

/* =========================================================
   Página inicial
   ========================================================= */
.landing { background: var(--surface); }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .2s; }
.lp-top.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(0,0,0,.2); }
.lp-top-in { height: 72px; display: flex; align-items: center; gap: 24px; }
.lp-nav { display: flex; gap: 4px; margin-right: auto; }
.lp-nav a { padding: 9px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none !important; }
.lp-nav a:hover { background: var(--surface-2); }
.lp-auth { display: flex; gap: 8px; align-items: center; }
.lp-burger { display: none; width: 44px; height: 44px; border: 0; background: var(--surface-2); border-radius: 12px; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.lp-burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.lp-menu .lp-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.lp-menu .lp-burger span:nth-child(2) { opacity: 0; }
.lp-menu .lp-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.btn.primary { box-shadow: 0 6px 16px -8px rgba(232, 89, 12, .8); }
.btn.lg { padding: 14px 24px; border-radius: 12px; }
.btn.light { background: #fff; color: #c2410c; }
.btn svg { width: 20px; height: 20px; }

.lp-hero { position: relative; overflow: hidden; padding: 56px 0 72px; background: radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 60%), radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.lp-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.lp-hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; letter-spacing: -.035em; margin: 18px 0 18px; line-height: 1.02; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero-copy > p { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 54ch; margin: 0; }
.lp-prompt { margin-top: 28px; display: flex; align-items: center; gap: 10px; max-width: 560px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 8px 8px 8px 16px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.lp-prompt:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.lp-prompt .spark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.lp-prompt input { border: 0; padding: 10px 0; background: none; font-size: 16px; min-width: 0; }
.lp-prompt input:focus { outline: none; }
.lp-prompt .btn { padding: 12px 20px; border-radius: 12px; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lp-chips a { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.lp-chips a:hover { border-color: var(--accent); color: var(--accent-deep); }
.lp-hero-copy > p.lp-small, .lp-small { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
.lp-hero-art { position: relative; aspect-ratio: 1 / .92; }
.art-card { position: absolute; background: var(--surface-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--surface); }
.art-card canvas { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.art-card canvas.ok { opacity: 1; }
.art-card.c1 { width: 56%; aspect-ratio: 1; left: 2%; top: 14%; transform: rotate(-4deg); z-index: 2; animation: lpFloat 7s ease-in-out infinite; }
.art-card.c2 { width: 36%; aspect-ratio: 9 / 16; right: 4%; top: 0; transform: rotate(4deg); z-index: 1; animation: lpFloat 8s ease-in-out -2s infinite; }
.art-card.c3 { width: 50%; aspect-ratio: 16 / 9; right: 0; bottom: 2%; transform: rotate(-2deg); z-index: 3; animation: lpFloat 9s ease-in-out -4s infinite; }
.art-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 9px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-lg); font-weight: 700; font-size: 13px; white-space: nowrap; }
.art-chip b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.art-chip b svg { width: 15px; height: 15px; }
.art-chip b.ok { background: #0f8a6a; font-size: 14px; }
.art-chip .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); margin-right: -4px; }
.art-chip.k3 .sw:last-of-type { margin-right: 4px; }
.art-chip.k1 { left: -2%; bottom: 18%; }
.art-chip.k2 { right: 6%; top: 46%; }
.art-chip.k3 { left: 30%; top: 2%; padding-left: 12px; }
@keyframes lpFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.lp-sec { padding: 88px 0; }
.lp-alt { background: var(--bg); }
.lp-types { padding: 8px 0 40px; }
.lp-type-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.lp-type { display: grid; justify-items: center; gap: 10px; padding: 16px 6px; border-radius: 18px; color: var(--ink); font-weight: 700; font-size: 13.5px; text-align: center; text-decoration: none !important; transition: background .15s; }
.lp-type span { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); transition: transform .15s; }
.lp-type svg { width: 28px; height: 28px; }
.lp-type:hover { background: var(--surface-2); }
.lp-type:hover span { transform: translateY(-3px); }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 44px; display: grid; gap: 12px; justify-items: center; }
.lp-eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lp-sec h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.lp-head p, .lp-lead { color: var(--muted); font-size: 18px; margin: 0; }
.lp-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.bento { grid-column: span 2; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 8px; align-content: start; transition: transform .2s, box-shadow .2s; }
.lp-alt .bento { background: var(--surface); }
.bento:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.b-ai, .b-magic { grid-column: span 3; }
.b-share { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 28px; align-items: center; }
.b-share .b-vis { grid-row: span 3; min-height: 120px; }
.b-share h3 { margin-top: 0; }
.bento h3 { font-size: 21px; margin-top: 10px; }
.bento p { margin: 0; color: var(--muted); }
.b-vis { border-radius: 16px; min-height: 150px; position: relative; overflow: hidden; }
.b-vis.chat { background: linear-gradient(135deg, #fff1e6, #ffe3cc); display: grid; gap: 10px; padding: 18px; align-content: center; }
.b-vis.chat span { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.b-vis.chat .me { justify-self: end; background: #e8590c; color: #fff; border-bottom-right-radius: 4px; }
.b-vis.chat .ai { background: #fff; color: #2b2830; border-bottom-left-radius: 4px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.2); }
.b-vis.cutout { background: repeating-conic-gradient(#e9e9ef 0 25%, #fff 0 50%) 0 0 / 18px 18px; }
.b-vis.cutout .half.a { position: absolute; inset: 0 50% 0 0; background: linear-gradient(160deg, #74c0fc, #4dabf7 60%, #339af0); }
.b-vis.cutout i { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -42%); border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 35%, #ffd8a8, #f59f00 60%, #e8590c); box-shadow: 0 16px 30px -12px rgba(0,0,0,.35); }
.b-vis.cutout::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.b-vis.timeline { background: #1f1d29; display: flex; gap: 6px; align-items: center; padding: 0 16px; }
.b-vis.timeline span { height: 46px; width: var(--w); border-radius: 10px; background: var(--c); opacity: .9; }
.b-vis.timeline em { position: absolute; left: 44%; top: 18px; bottom: 18px; width: 3px; background: #fff; border-radius: 2px; }
.b-vis.palette { background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 10px; }
.b-vis.palette i { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.05); }
.b-vis.palette b { font: 800 40px var(--f-display); margin-left: 8px; }
.b-vis.bars { background: var(--surface-2); display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 20px 20px 0; }
.b-vis.bars i { width: 30px; height: var(--h); border-radius: 8px 8px 0 0; background: var(--grad); }
.b-vis.share { background: var(--surface-2); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 16px; }
.b-vis.share span { padding: 10px 16px; border-radius: 12px; background: var(--surface); font-weight: 800; box-shadow: var(--shadow); }
.lp-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.lp-tabs button { border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 99px; font-weight: 700; cursor: pointer; color: var(--ink); }
.lp-tabs button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.lp-tpls { columns: 5 200px; column-gap: 18px; }
.lp-tpl { display: grid; gap: 6px; break-inside: avoid; margin-bottom: 22px; color: var(--ink); text-decoration: none !important; }
.lp-tpl-img { display: block; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.lp-tpl-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s; }
.lp-tpl-img img.ok { opacity: 1; }
.lp-tpl:hover .lp-tpl-img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lp-tpl b { font-size: 14px; }
.lp-tpl small { color: var(--muted); margin-top: -4px; }
.lp-center { text-align: center; margin-top: 18px; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.lp-split h2 { margin: 10px 0 14px; }
.lp-list { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.lp-list svg { width: 22px; height: 22px; flex: none; color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; }
.lp-ai-demo { border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-top { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: linear-gradient(90deg, #12b5c9, #6a3df0); }
.demo-top span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.6); }
.demo-body { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 340px; }
.demo-canvas { background: var(--surface-2); display: grid; place-items: center; padding: 22px; }
.demo-canvas canvas { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); opacity: 0; transition: opacity .5s; }
.demo-canvas canvas.ok { opacity: 1; }
.demo-chat { padding: 16px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); }
.demo-chat .who { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.demo-chat .who svg { width: 22px; height: 22px; padding: 4px; border-radius: 8px; color: #fff; background: conic-gradient(from 200deg, #12b5c9, #4b4ef0, #8a3ff0, #ff5fa2, #12b5c9); }
.demo-chat .m { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }
.demo-chat .me { background: var(--accent); color: #fff; justify-self: end; max-width: 90%; }
.demo-chat .ai { background: var(--surface-2); max-width: 92%; }
.demo-input { margin-top: auto; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--muted); font-size: 13px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.lp-steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 8px; }
.lp-steps b { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 20px var(--f-display); }
.lp-steps h3 { font-size: 20px; margin-top: 8px; }
.lp-steps p { margin: 0; color: var(--muted); }
.lp-appband { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.lp-appband h2 { margin: 10px 0 14px; }
.lp-app-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.lp-phone { width: min(280px, 70vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 42px; background: #17151f; padding: 12px; box-shadow: var(--shadow-lg); position: relative; }
.lp-phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 80px; height: 22px; border-radius: 12px; background: #000; transform: translateX(-50%); z-index: 2; }
.ph-screen { height: 100%; border-radius: 32px; background: var(--grad); display: grid; place-items: center; align-content: center; gap: 10px; color: #fff; text-align: center; }
.ph-screen img { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); background: #fff; padding: 6px; }
.ph-screen b { font: 800 28px var(--f-display); }
.ph-screen span { opacity: .85; font-weight: 600; }
.lp-faq { max-width: 820px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 0 20px; }
.lp-faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq p { margin: 0 0 18px; color: var(--muted); }
.lp-final { padding: 0 0 88px; background: var(--bg); }
.lp-final-in { background: var(--grad); color: #fff; border-radius: 32px; padding: 64px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; position: relative; overflow: hidden; }
.lp-final-in::before, .lp-final-in::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.lp-final-in::before { width: 260px; height: 260px; left: -60px; top: -80px; }
.lp-final-in::after { width: 200px; height: 200px; right: -40px; bottom: -70px; }
.lp-final h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; position: relative; }
.lp-final p { margin: 0 0 10px; font-size: 18px; opacity: .92; position: relative; }
.lp-final .btn { position: relative; }
.lp-foot { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 8px; }
.lp-foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.lp-foot-brand p { color: var(--muted); max-width: 36ch; }
.lp-foot nav { display: grid; gap: 8px; align-content: start; }
.lp-foot nav b { margin-bottom: 4px; }
.lp-foot nav a { color: var(--muted); }
.landing .site-foot { background: var(--bg); max-width: none; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.landing.viewer { background: var(--bg); }

@media (max-width: 1080px) {
  .lp-type-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lp-bento .bento { grid-column: span 3; }
  .lp-bento .b-share { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .lp-top-in { height: 64px; gap: 10px; }
  .lp-burger { display: flex; }
  .lp-auth .btn.ghost { display: none; }
  .lp-auth .btn.primary { padding: 9px 14px; font-size: 14px; }
  .lp-nav { position: fixed; left: 0; right: 0; top: 64px; flex-direction: column; gap: 2px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  .lp-menu .lp-nav { opacity: 1; transform: none; pointer-events: auto; }
  .lp-nav a { padding: 14px 12px; font-size: 17px; }
  .lp-nav::after { content: ""; }
  .lp-hero { padding: 28px 0 48px; }
  .lp-hero-in, .lp-split, .lp-appband { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lp-auth { margin-left: auto; }
  .lp-hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .lp-sec { padding: 60px 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-foot-in { grid-template-columns: 1fr 1fr; }
  .lp-foot-brand { grid-column: 1 / -1; }
  .lp-appband .lp-phone { order: 2; }
}
@media (max-width: 600px) {
  .lp-auth .btn.primary { display: none; }
  .lp-hero h1 { font-size: 38px; }
  .lp-prompt { flex-wrap: wrap; padding: 10px; border-radius: 16px; }
  .lp-prompt input { flex: 1 1 70%; }
  .lp-prompt .btn { width: 100%; }
  .lp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px; }
  .lp-chips a { flex: none; }
  .lp-type-row { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0 -20px; padding: 0 20px; }
  .lp-type { flex: none; width: 92px; padding: 12px 4px; }
  .lp-bento .bento, .b-ai, .b-magic { grid-column: 1 / -1; }
  .b-share { grid-template-columns: 1fr; }
  .b-share .b-vis { grid-row: auto; }
  .lp-bento { gap: 14px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-chat { border-left: 0; border-top: 1px solid var(--line); }
  .art-chip { font-size: 12px; padding: 7px 11px 7px 7px; }
  .art-chip b { width: 22px; height: 22px; }
  .lp-tpls { columns: 2; column-gap: 12px; }
  .lp-tpl { margin-bottom: 16px; }
  .lp-final-in { border-radius: 24px; padding: 44px 20px; }
  .lp-app-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .art-card { animation: none !important; } }

/* autenticação mais limpa */
.auth { background: radial-gradient(800px 480px at 100% 0%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%), radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--bg); }
.auth-card { border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); border-color: transparent; }
.auth-card .brand { justify-self: start; }
@media (max-width: 520px) { .auth-wrap { place-items: start center; padding-top: 28px; } .auth-card { padding: 24px 20px; } }

/* =========================================================
   Janela de instalação do app
   ========================================================= */
.pwa-sheet { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 12, 24, 0); transition: background .22s; }
.pwa-sheet.open { background: rgba(15, 12, 24, .45); }
.pwa-card { position: relative; width: 100%; max-width: 420px; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; font-family: var(--f-body); }
.pwa-sheet.open .pwa-card { transform: none; opacity: 1; }
.pwa-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: 20px; cursor: pointer; line-height: 1; }
.pwa-head { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.pwa-head img { width: 64px; height: 64px; border-radius: 18px; box-shadow: var(--shadow); }
.pwa-head div { display: grid; }
.pwa-head b { font: 800 21px/1.15 var(--f-display); }
.pwa-head small { color: var(--muted); font-weight: 600; }
.pwa-text { margin: 0; color: var(--muted); }
.pwa-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pwa-perks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.pwa-perks i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); }
.pwa-ios { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.pwa-share { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); color: #0a84ff; }
.pwa-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.pwa-btn { height: 48px; border-radius: 14px; border: 0; font: 700 15px var(--f-body); cursor: pointer; }
.pwa-btn.ghost { background: var(--surface-2); color: var(--ink); }
.pwa-btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px rgba(232, 89, 12, .9); }
.pwa-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .pwa-sheet { place-items: end stretch; padding: 0; }
  .pwa-card { max-width: none; border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); }
  .pwa-card::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--line); justify-self: center; margin: -8px 0 -4px; }
}
.is-app .lp-top { padding-top: env(safe-area-inset-top, 0px); }
