/* ugc.lobbix.com: paleta do manual v2 (#04B1E8, ink, paper, muted, line, branco), mesma fonte do site. Chapado:
   sem brilho, sem sombra pesada, botões firmes e retos. Feito para o celular (navegador do WhatsApp incluído). */
@font-face { font-family: "SF Pro Display"; src: url("/fonts/SF-Pro-Display-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("/fonts/SF-Pro-Display-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SF Pro Display"; src: url("/fonts/SF-Pro-Display-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --accent: #04B1E8;
  --accent-ink: #0388B3;
  --ink: #111317;
  --paper: #F5F6F7;
  --muted: #65717A;
  --line: #DFE4E8;
  --white: #FFFFFF;
  --danger: #D93A2B;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, p, ul, ol, li { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; height: 56px; padding: 0 20px;
  padding-top: env(safe-area-inset-top); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.top__logo { display: inline-flex; align-items: flex-end; gap: 12px; }
.top__logo img { width: 92px; height: auto; }
/* Alinhado pela base: o logo é cursivo e o miolo das letras fica embaixo (o centro da imagem não é o centro que o olho
   vê). A linha de base do texto encosta no pé das letras do logo; o traço cobre só a altura das minúsculas. */
.top__name { position: relative; padding-left: 13px; font-size: 16px; font-weight: 500; color: var(--muted); line-height: 1; margin-bottom: 0; }
.top__name::before { content: ""; position: absolute; left: 0; top: -3px; bottom: 0; width: 1px; background: var(--line); }

main { max-width: 620px; margin: 0 auto; padding: 32px 20px calc(56px + env(safe-area-inset-bottom)); }

h1 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: 15px; font-weight: 700; }

/* Abertura */
.intro p { margin-top: 14px; color: var(--muted); }
.steps { display: grid; gap: 12px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 700; flex: none; }

/* Categorias: rolagem lateral, sem barra */
.list-title { margin-top: 40px; font-size: 22px; letter-spacing: -.02em; }
.filters { display: flex; gap: 8px; margin: 14px -20px 0; padding: 0 20px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 15px; font-weight: 500; white-space: nowrap; }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Cartões de roteiro */
.cards { display: grid; gap: 12px; margin-top: 16px; }
.card { display: grid; grid-template-columns: 1fr 16px; column-gap: 12px; row-gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--paper); }
.card > :not(.card__title):not(.card__go) { grid-column: 1 / -1; }
.card__go { width: 16px; height: 16px; align-self: center; color: var(--muted); }
.card:active { background: #ECEEF0; }
.card__title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card__line { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* Roteiro */
.back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 18px -6px; padding: 6px; border: 0; background: none;
  color: var(--muted); font-size: 15px; font-weight: 500; }
.back svg { width: 16px; height: 16px; }
.meta { margin-top: 8px; color: var(--muted); font-size: 15px; }
.block { margin-top: 26px; }
.block h2 { margin-bottom: 8px; }
.block--say .say { padding: 20px; border-radius: var(--radius); background: var(--paper); font-size: 20px; font-weight: 500; line-height: 1.42;
  letter-spacing: -.01em; }
.block p { color: var(--ink); }
.tips { display: grid; gap: 8px; }
.tips li { position: relative; padding-left: 18px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tips li:empty { display: none; }

/* Envio */
.send { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent; font-size: 16px; font-weight: 700; text-align: center; line-height: 1.2; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--line { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--wide { width: 100%; }
.btn:active { opacity: .82; }
.btn:disabled { opacity: .38; cursor: default; }
.hint { margin-top: -6px; font-size: 15px; color: var(--muted); }

.files { display: grid; gap: 10px; }
.file { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; }
.file video { width: 56px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--paper); }
.file__name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__info { font-size: 13px; color: var(--muted); }
.file__bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.file__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.file__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 18px; line-height: 1; }
.file--done .file__bar i { background: #1F9D55; }
.file--error .file__info { color: var(--danger); }
.file--error .file__bar i { background: var(--danger); }

.field { display: grid; gap: 6px; }
.field span { font-size: 15px; font-weight: 700; }
.field input { height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 17px; }
.field input:focus { outline: none; border-color: var(--ink); }

.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.link { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

.status { min-height: 1.5em; font-size: 15px; color: var(--muted); text-align: center; }
.status--error { color: var(--danger); }

/* Obrigado */
.view--done { padding-top: 40px; text-align: center; }
.done__emoji { font-size: 48px; line-height: 1; margin-bottom: 18px; }
.view--done > p:not(.done__emoji) { margin-top: 10px; color: var(--muted); }
.done__actions { display: grid; gap: 10px; margin-top: 32px; }

/* Termo */
.terms { width: min(620px, 100%); max-height: 88dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; }
.terms::backdrop { background: rgba(17,19,23,.45); }
.terms__body { display: grid; gap: 14px; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); }
.terms__body h2 { font-size: 20px; letter-spacing: -.02em; }
#terms-text { display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
#terms-text strong { color: var(--ink); }
@media (min-width: 700px) { .terms { margin: auto; border-radius: 20px; } h1 { font-size: 36px; } }
