/* 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). */
/* Fonte: no iPhone/Mac é a do sistema (-apple-system = SF, sem baixar nada e sem troca na tela). Nos demais, a
   mesma SF em subconjunto latino woff2 (~19 KB cada); "optional" nunca troca a fonte com a página já desenhada. */
@font-face { font-family: "Lobbix Display"; src: url("/fonts/sf-Regular.woff2") format("woff2"); font-weight: 400; font-display: optional; }
@font-face { font-family: "Lobbix Display"; src: url("/fonts/sf-Medium.woff2") format("woff2"); font-weight: 500; font-display: optional; }
@font-face { font-family: "Lobbix Display"; src: url("/fonts/sf-Bold.woff2") format("woff2"); font-weight: 600 700; font-display: optional; }

: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: -apple-system, BlinkMacSystemFont, "Lobbix Display", "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 */
/* Termo: folha de baixo no celular. Altura no máximo 88% da tela; o texto rola por dentro e o Fechar fica fixo
   embaixo (antes a folha não rolava e cortava o texto). */
.terms { position: fixed; inset: auto 0 0; width: 100%; max-width: 620px; max-height: 88dvh; margin: 0 auto; padding: 0; border: 0;
  border-radius: 20px 20px 0 0; background: var(--white); color: var(--ink); overflow: hidden; }
.terms[open] { display: flex; flex-direction: column; }
.terms::backdrop { background: rgba(17,19,23,.45); }
.terms__body { display: flex; flex-direction: column; gap: 14px; min-height: 0; flex: 1 1 auto; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 24px 20px 16px; }
.terms__mark { align-self: flex-start; width: auto; height: 32px; }
.terms__body h2 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.terms__foot { flex: none; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--white); }
#terms-text { display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
#terms-text strong { color: var(--ink); }
@media (min-width: 700px) { .terms { inset: 0; margin: auto; max-height: 80dvh; height: fit-content; border-radius: 20px; } h1 { font-size: 36px; } }

/* Chamada de prêmios na abertura: linha simples com contorno, sem brilho */
.prize-cta { display: grid; gap: 10px; margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); font-size: 15px; color: var(--muted); }
.prize-cta strong { color: var(--ink); }
.prize-cta__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.prize-cta__go svg { width: 14px; height: 14px; }

/* Prêmios */
.lead { margin-top: 12px; color: var(--muted); }
.prizes { width: 100%; border-collapse: collapse; font-size: 16px; }
.prizes th { padding: 0 0 8px; text-align: left; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted); }
.prizes td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.prizes td:first-child { width: 34%; font-weight: 700; white-space: nowrap; }
.note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.back-cta { margin-top: 32px; }

/* Campo opcional */
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field small { font-size: 14px; color: var(--muted); }
.field small a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.done__pings { margin-top: 8px; color: var(--muted); }

/* Hero: formato da home da Lobbix+ (cartão escuro arredondado, título com selo, botão branco). A foto é em pé e o
   rosto fica no centro: no computador ela ocupa a direita do cartão e o texto fica no escuro à esquerda (nunca em
   cima do rosto); no celular vem em cima, quase quadrada, e o texto embaixo. */
.hero { max-width: 1180px; margin: 10px auto 0; padding: 0 10px; }
.hero__card { position: relative; display: flex; align-items: center; min-height: 560px; overflow: hidden; border-radius: 28px;
  background: var(--ink); color: var(--white); isolation: isolate; }
.hero__photo { position: absolute; top: 0; right: 0; width: 60%; height: 100%; object-fit: cover; object-position: 50% var(--y, 40%); z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 40%, rgba(17,19,23,.72) 47%, rgba(17,19,23,.18) 60%, rgba(17,19,23,0) 72%); }
.hero__copy { max-width: 600px; padding: 56px clamp(28px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; }
.hero__copy > p { max-width: 30rem; margin: 18px 0 28px; color: rgba(255,255,255,.86); font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__link { display: inline-flex; align-items: center; gap: 4px; color: rgba(255,255,255,.92); font-weight: 600; }
.hero__link svg { width: 15px; height: 15px; }
.sticker { display: inline-block; margin-left: .06em; padding: .02em .26em .1em; border-radius: .22em; background: var(--white); color: var(--accent);
  transform: rotate(-2.5deg); }
.btn--white { background: var(--white); color: var(--ink); }
.list-title { scroll-margin-top: 72px; }
main { padding-top: 28px; }
@media (max-width: 760px) {
  .hero { padding: 0 8px; margin-top: 8px; }
  .hero__card { flex-direction: column; align-items: stretch; min-height: 0; border-radius: 24px; }
  .hero__photo { position: relative; width: 100%; height: min(96vw, 520px); }
  .hero__shade { background: linear-gradient(180deg, rgba(17,19,23,0) 0, rgba(17,19,23,0) min(60vw, 330px), var(--ink) min(96vw, 520px)); }
  .hero__copy { margin-top: -56px; padding: 0 22px 28px; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.7rem); }
  .hero__copy > p { font-size: 16.5px; margin: 14px 0 22px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__link { width: 100%; justify-content: center; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; }

/* Falas (frase de exemplo, outro jeito de falar, prévia nos cards): itálico leve, para ler como fala, não como regra. */
.say, #hook-example, .card__line { font-style: italic; font-synthesis: style; }

/* Movimento: curto e com desaceleração (sem mola). Quem pede menos movimento no sistema não vê nada disso. */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }
@keyframes ugc-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ugc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ugc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ugc-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ugc-sheet-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes ugc-pop-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ugc-pop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.97); } }
.enter { animation: ugc-in .28s var(--ease-out) both; }
.hero.enter { animation-name: ugc-fade; }
.file--in { animation: ugc-in .24s var(--ease-out) both; }
.file--out { animation: ugc-fade-out .18s ease-in both; }
.terms[open] { animation: ugc-sheet-in .3s var(--ease-out) both; }
.terms[open]::backdrop { animation: ugc-fade .3s ease both; }
.terms.closing { animation: ugc-sheet-out .2s ease-in both; }
.terms.closing::backdrop { animation: ugc-fade-out .2s ease-in both; }
@media (min-width: 700px) {
  .terms[open] { animation-name: ugc-pop-in; animation-duration: .22s; }
  .terms.closing { animation-name: ugc-pop-out; }
}
.btn, .chip, .card, .file__x, .back, .hero__link, .link { transition: background-color .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease, transform .18s var(--ease-out); }
.btn:active, .card:active { transform: scale(.985); }
.field input { transition: border-color .18s ease; }
.status { transition: color .18s ease; }
.file__bar i { transition: width .25s linear, background-color .2s ease; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::backdrop { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Rodapé: mesmo desenho do site (fundo ink, colunas, linha de baixo com termos e redes). */
.foot { margin-top: 24px; padding: 56px 20px calc(28px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--white); }
.foot__top { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot__brand img { width: auto; height: 30px; }
.foot__col { display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.foot__col a { color: var(--white); transition: color .2s ease; }
.foot__col a:hover { color: #AEB7BE; }
.foot__title { margin-bottom: 4px; color: #9AA4AB; font-size: 13px; font-weight: 500; }
.foot__bottom { max-width: 1080px; margin: 48px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #C9D0D5; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot__legal a:hover, .foot__link:hover { color: var(--white); }
.foot__link { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.foot__social { display: flex; gap: 12px; margin-left: auto; }
.foot__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); transition: border-color .2s ease; }
.foot__social a:hover { border-color: var(--white); }
.foot__social svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .foot { padding-top: 44px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__bottom { margin-top: 36px; }
  .foot__social { margin-left: 0; width: 100%; }
}

/* Fundo além da página (atrás da barra do Safari e ao puxar além do fim): branco em cima, escuro embaixo, para
   emendar com o cabeçalho e com o rodapé. O body continua branco. */
/* Página em coluna da altura da tela: o rodapé sempre encosta no fim, mesmo com pouco conteúdo. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > .hero { width: 100%; }
.foot { flex: none; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
main { padding-bottom: 48px; }
.foot { margin-top: 0; }

/* Faixa de cor para a barra de baixo do Safari (iOS 26): fixa, largura toda, 4 px visíveis (o resto abaixo da tela),
   cor do rodapé. Só aparece quando o rodapé está na tela (ugc.js), então ninguém a vê: fica sobre o próprio rodapé. */
.bottom-tint { position: fixed; left: 0; bottom: -8px; width: 100%; min-height: 12px; margin: 0; padding: 0; z-index: 5;
  background-color: var(--ink); pointer-events: none; display: none; }
.bottom-tint.on { display: block; }
