/* Trailer com IA para o público (/trailer, 26/11/2026). Escuro, de cinema; as peças do estúdio vêm do studio.css. */
.tr-body { background: #0b0f14; color: #eef2f5; font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; margin: 0; }
.tr-body a { color: #ffc531; }
.tr-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.tr-top { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 20, .82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.tr-top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.tr-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; }
.tr-brand b { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 1.05rem; letter-spacing: .01em; }
.tr-top-link { color: #c8d2da !important; text-decoration: none; font-size: .95rem; }

.tr-hero { position: relative; overflow: hidden; min-height: 86vh; display: grid; align-items: end; padding: 120px 0 64px; }
.tr-hero-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; opacity: .55; }
.tr-hero-bg video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); }
.tr-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 20, .25) 0%, rgba(11, 15, 20, .55) 45%, #0b0f14 96%); pointer-events: none; }
.tr-hero-in { position: relative; z-index: 2; }
.tr-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: #2fb3a9; margin: 0 0 14px; font-weight: 700; }
.tr-hero h1, .tr-h1 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: clamp(2.3rem, 7vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; max-width: 14ch; }
.tr-h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); max-width: none; margin-top: 32px; }
.tr-hero h1 em { font-style: normal; color: #ffc531; }
.tr-lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 46ch; color: #d6dee5; margin: 0 0 28px; }
.tr-note, .tr-small { color: #9aa8b3; font-size: .9rem; }
.tr-hero .tr-note { margin: 22px 0 0; }
.tr-small { font-size: .82rem; }
.tr-cta { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; background: #ffc531; color: #1b2430 !important; text-decoration: none; border: 0; border-radius: 999px; padding: 16px 30px; font-weight: 800; font-size: 1.08rem; cursor: pointer; box-shadow: 0 10px 40px rgba(255, 197, 49, .25); transition: transform .15s ease, box-shadow .15s ease; }
.tr-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 50px rgba(255, 197, 49, .35); }
.tr-cta small { font-weight: 600; font-size: .8rem; opacity: .75; }
.tr-cta-wide { width: 100%; border-radius: 16px; margin-top: 18px; }
.tr-cta[disabled] { opacity: .6; cursor: wait; }

.tr-sec { padding: 56px 20px; }
.tr-sec h2 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; }
.tr-sub { color: #9aa8b3; margin: 0 0 22px; }
.tr-reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.tr-ex { margin: 0; scroll-snap-align: start; background: #141a22; border-radius: 16px; overflow: hidden; }
.tr-ex video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; }
.tr-ex figcaption { padding: 10px 12px; display: grid; gap: 2px; }
.tr-ex small { color: #9aa8b3; }

.tr-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tr-steps li { background: #141a22; border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 20px; }
.tr-steps span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0b6e69; color: #fff; font-weight: 800; margin-bottom: 10px; }
.tr-steps b { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.tr-steps p { color: #c3cdd5; margin: 0; }

/* ── o pedido em passo a passo (uma pergunta por tela, mobile-first) ── */
.tr-wz-sec { padding-top: 28px; }
.tr-wz { position: relative; background: linear-gradient(180deg, #161d26, #11171e); border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px; padding: 18px 16px 20px; max-width: 720px; margin: 0 auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tr-wz-head { display: none; }
.tr-wz-picks { display: none; }
.tr-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.tr-step + .tr-step { margin-top: 34px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .06); }
.tr-step-k { display: block; font-family: 'Atkinson Hyperlegible Next', system-ui, sans-serif; margin: 0 0 8px; color: #2fb3a9; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.tr-step-q { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 800; font-size: clamp(1.7rem, 6.4vw, 2.4rem); line-height: 1.08; margin: 0 0 8px; padding: 0; color: #fff; letter-spacing: -.01em; }
.tr-step-q label { cursor: default; }
.tr-step-h { color: #aab6c0; margin: 0 0 18px; font-size: 1.02rem; line-height: 1.45; }
.tr-wz textarea, .tr-wz input:not([type=radio]):not([type=file]) { width: 100%; box-sizing: border-box; background: #0b0f14; color: #fff; border: 2px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px 18px; font: inherit; font-size: 1.15rem; line-height: 1.4; transition: border-color .15s ease, box-shadow .15s ease; }
.tr-wz textarea { min-height: 112px; resize: vertical; }
.tr-wz input:not([type=radio]):not([type=file]) { min-height: 62px; }
.tr-wz textarea:focus, .tr-wz input:focus { outline: none; border-color: #2fb3a9; box-shadow: 0 0 0 5px rgba(47, 179, 169, .18); }
.tr-wz ::placeholder { color: #6b7883; }

.tr-ideas { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0 0; }
.tr-idea { display: flex; align-items: center; gap: 12px; text-align: left; background: #0f151c; color: #dfe6eb; border: 2px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 1rem; line-height: 1.3; cursor: pointer; min-height: 58px; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.tr-idea span { font-size: 1.45rem; flex: none; }
.tr-idea:hover { border-color: rgba(47, 179, 169, .6); }
.tr-idea:active { transform: scale(.98); }
.tr-idea.is-on { border-color: #2fb3a9; background: rgba(11, 110, 105, .28); color: #fff; }

.tr-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-tiles-2 .tr-tile { min-height: 210px; }
.tr-tile { position: relative; display: block; min-height: 168px; border-radius: 20px; overflow: hidden; cursor: pointer; background: #0f151c; border: 2px solid rgba(255, 255, 255, .1); transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease; -webkit-tap-highlight-color: transparent; }
.tr-tile input { position: absolute; opacity: 0; pointer-events: none; }
.tr-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .2s ease, transform .4s ease; }
.tr-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 20, .05) 0%, rgba(11, 15, 20, .55) 45%, rgba(11, 15, 20, .96) 100%); pointer-events: none; }
.tr-tile-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 4px; padding: 14px; }
.tr-tile b { font-size: 1.08rem; color: #fff; line-height: 1.15; }
.tr-tile small { color: #c3cdd5; font-size: .8rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tr-tiles-tall .tr-tile small { -webkit-line-clamp: 5; font-size: .88rem; }
.tr-tiles-tall .tr-tile b { font-size: 1.2rem; }
.tr-tile:hover img { opacity: .75; transform: scale(1.04); }
.tr-tile:active { transform: scale(.97); }
.tr-tile:has(input:checked) { border-color: #ffc531; box-shadow: 0 0 0 4px rgba(255, 197, 49, .2); }
.tr-tile:has(input:checked) img { opacity: .9; }
.tr-tile:has(input:checked)::before { content: '✓'; position: absolute; top: 10px; right: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: #ffc531; color: #1b2430; display: grid; place-items: center; font-weight: 900; }
.tr-tile:has(input:focus-visible) { outline: 3px solid #2fb3a9; outline-offset: 2px; }
.tr-tile-ia::after, .tr-tile:not(.has-img)::after { display: none; }
.tr-tile-ic { position: absolute; z-index: 2; top: 16px; left: 16px; font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35)); }
.tr-tone-ia { background: radial-gradient(120% 140% at 0% 0%, #0b6e69 0%, #123a3c 45%, #0f151c 100%); }
.tr-tone-romance { background: radial-gradient(120% 140% at 0% 0%, #b83a62 0%, #4a1d33 50%, #0f151c 100%); }
.tr-tone-aventura { background: radial-gradient(120% 140% at 0% 0%, #2f7d4a 0%, #1b3b2c 50%, #0f151c 100%); }
.tr-tiles-tall .tr-tile { min-height: 236px; }
.tr-tile-badge { position: absolute; z-index: 3; top: 10px; left: 10px; background: rgba(11, 15, 20, .78); color: #ffc531; border: 1px solid rgba(255, 197, 49, .45); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: .82rem; }
/* formato: o desenho da tela (em pé ou deitada) */
.tr-fmt { background: #0f151c; }
.tr-fmt .tr-tile-in { top: 0; align-content: end; justify-items: center; text-align: center; padding: 18px 12px; }
.tr-fmt .tr-tile-in::before { content: ''; display: block; border: 3px solid #2fb3a9; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(160deg, rgba(47, 179, 169, .35), rgba(255, 197, 49, .2)); }
.tr-fmt-v .tr-tile-in::before { width: 50px; height: 90px; }
.tr-fmt-h .tr-tile-in::before { width: 112px; height: 64px; }
.tr-fmt small { -webkit-line-clamp: unset; display: block; }
.tr-fmt:has(input:checked) .tr-tile-in::before { border-color: #ffc531; }
.tr-total { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); color: #c8d2da; font-size: .98rem; }
.tr-total b { color: #fff; }
.tr-total.is-two { background: rgba(255, 197, 49, .1); border-color: rgba(255, 197, 49, .4); }
.tr-step-h b { color: #ffc531; }
.tr-photo { margin-top: 4px; }
.tr-attach { display: grid; justify-items: center; text-align: center; gap: 4px; border: 2px dashed rgba(255, 255, 255, .22); border-radius: 20px; padding: 26px 16px; cursor: pointer; background: rgba(255, 255, 255, .02); transition: border-color .15s ease, background .15s ease; }
.tr-attach { position: relative; }
.tr-attach:hover, .tr-attach:focus-within, .tr-attach.is-drag { border-color: #2fb3a9; background: rgba(47, 179, 169, .06); }
.tr-attach.is-drag { border-style: solid; background: rgba(47, 179, 169, .16); }
.tr-attach.is-full { opacity: .6; cursor: default; }
/* invisível, mas por cima de tudo: quem recebe o toque e o arquivo solto é o próprio campo */
.tr-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; z-index: 1; }
.tr-file:disabled { cursor: default; }
.tr-file[hidden] { display: block; }
.tr-hint-touch { display: none; }
@media (hover: none) { .tr-hint-mouse { display: none; } .tr-hint-touch { display: inline; } }
.tr-attach-ic { font-size: 2.4rem; line-height: 1; margin-bottom: 4px; }
.tr-attach b { font-size: 1.12rem; }
.tr-attach small { color: #9aa8b3; }
.tr-tray { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.tr-thumb { position: relative; width: 104px; display: grid; gap: 6px; }
.tr-thumb img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; }
.tr-thumb.is-load { height: 104px; place-items: center; border-radius: 14px; background: #0f151c; }
.tr-thumb select { background: #0b0f14; color: #fff; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; padding: 6px; font: inherit; font-size: .85rem; }
.tr-thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .72); color: #fff; cursor: pointer; font-size: 1rem; }

.tr-wz-nav { display: flex; gap: 10px; margin-top: 20px; }
.tr-wz-next, .tr-wz-skip { font: inherit; font-weight: 800; font-size: 1.1rem; border-radius: 16px; min-height: 60px; cursor: pointer; border: 0; }
.tr-wz-next { flex: 1; background: #ffc531; color: #1b2430; box-shadow: 0 10px 34px rgba(255, 197, 49, .22); transition: transform .12s ease, opacity .15s ease; }
.tr-wz-next:active { transform: scale(.98); }
.tr-wz-next.is-ghost { background: transparent; color: #dfe6eb; border: 2px solid rgba(255, 255, 255, .18); box-shadow: none; }
.tr-wz-next[disabled] { opacity: .38; box-shadow: none; cursor: not-allowed; }
.tr-wz-next.is-pulse { animation: tr-pulse .6s ease; }
.tr-wz-skip { padding: 0 22px; background: transparent; color: #c8d2da; border: 2px solid rgba(255, 255, 255, .16); }
.tr-cta-wide { width: 100%; border-radius: 18px; margin-top: 18px; min-height: 72px; font-size: 1.15rem; }
.tr-legal { margin: 22px 0 0; line-height: 1.55; }

/* com JavaScript: um passo por vez */
.tr-wz.is-wz .tr-wz-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; margin: -2px 0 14px; }
.tr-wz-back { grid-column: 1; background: transparent; border: 0; color: #c8d2da; font: inherit; font-weight: 700; padding: 8px 6px 8px 0; cursor: pointer; }
.tr-wz-count { grid-column: 2; justify-self: end; color: #9aa8b3; font-size: .88rem; font-weight: 700; }
.tr-wz-back[hidden] + .tr-wz-count { grid-column: 1 / -1; justify-self: start; }
.tr-wz-bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tr-wz-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2fb3a9, #ffc531); transition: width .35s ease; }
.tr-wz.is-wz .tr-wz-picks:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 -2px 16px; padding: 2px; }
.tr-wz-picks::-webkit-scrollbar { display: none; }
.tr-pick { flex: none; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, .06); color: #dfe6eb; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .84rem; cursor: pointer; }
.tr-pick:hover { border-color: #2fb3a9; }
.tr-wz.is-wz .tr-step { display: none; margin: 0; padding: 0; border: 0; }
.tr-wz.is-wz .tr-step.is-on { display: block; animation: tr-in .32s cubic-bezier(.2, .8, .2, 1); }
.tr-wz.is-wz[data-dir="back"] .tr-step.is-on { animation-name: tr-back; }
.tr-wz.is-wz .tr-step.is-shake { animation: tr-shake .35s ease; }
.tr-wz.is-sent .tr-wz-head, .tr-wz.is-sent .tr-wz-picks, .tr-wz.is-sent .tr-wz-nav { display: none !important; }
.tr-wz .st-work { margin-top: 8px; }
.tr-wz-err { margin: 14px 0 0; }
@keyframes tr-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes tr-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes tr-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
@keyframes tr-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* celular: o botão de seguir fica sempre à mão, preso ao pé da tela */
@media (max-width: 640px) {
  body.tr-focus.tr-wz-on .waf { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .tr-wz-sec { padding-left: 12px; padding-right: 12px; }
  .tr-wz.is-wz .tr-wz-nav { position: sticky; bottom: 0; z-index: 5; margin: 20px -16px -20px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(17, 23, 30, 0), #11171e 30%); border-radius: 0 0 26px 26px; }
}
@media (min-width: 641px) {
  .tr-wz { padding: 30px 34px 34px; }
  .tr-ideas { grid-template-columns: 1fr 1fr; }
  .tr-tiles { grid-template-columns: repeat(4, 1fr); }
  .tr-tiles-2 { grid-template-columns: 1fr 1fr; }
  .tr-tile { min-height: 200px; }
  .tr-tiles-2 .tr-tile { min-height: 230px; }
}
.tr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.tr-err, .tr-ok { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.tr-err { background: rgba(229, 72, 77, .14); border: 1px solid rgba(229, 72, 77, .5); color: #ffd7d8; }
.tr-ok { background: rgba(47, 179, 169, .14); border: 1px solid rgba(47, 179, 169, .5); color: #d4f5f2; }
.tr-faq details { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; }
.tr-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.tr-faq p { color: #c3cdd5; margin: 10px 0 0; }
.tr-foot { padding: 30px 0 60px; border-top: 1px solid rgba(255, 255, 255, .06); color: #9aa8b3; font-size: .9rem; }
.tr-one { padding-top: 24px; }
/* o miolo do estúdio sobre o fundo escuro */
.tr-body .st-card, .tr-body .st-script, .tr-body .st-edit { background: #141a22; color: #eef2f5; border-color: rgba(255, 255, 255, .08); }
.tr-body .st-log, .tr-body .st-note, .tr-body .st-visual { color: #c3cdd5; }
.tr-body .st-back a { color: #c8d2da; }
.tr-body .st-work { position: static; max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) { .tr-hero-bg { grid-template-columns: 1fr; } .tr-hero-bg video:not(:first-child) { display: none; } .tr-hero { min-height: 72vh; padding: 96px 0 40px; } }
@media (prefers-reduced-motion: reduce) { .tr-cta, .tr-tile, .tr-idea, .tr-wz-bar i { transition: none; } .tr-wz.is-wz .tr-step.is-on, .tr-wz-next.is-pulse, .tr-step.is-shake { animation: none !important; } }

/* modo foco (26/11/2026): enquanto a pessoa preenche, só o formulário fica na tela; o X volta ao site (no celular, X grandão) */
.tr-x { display: none; }
body.tr-focus .tr-top, body.tr-focus .tr-hero, body.tr-focus .tr-sec:not(.tr-wz-sec), body.tr-focus .tr-foot { display: none !important; }
body.tr-focus .tr-wz-sec { min-height: 100dvh; box-sizing: border-box; padding-top: 84px; padding-bottom: 40px; }
body.tr-focus .tr-x { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: fixed; z-index: 60; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s ease; }
body.tr-focus .tr-x:hover { background: rgba(255, 255, 255, .18); }
body.tr-focus .tr-x span { font-size: 1.15rem; line-height: 1; }
body.tr-focus .tr-wz-sec::before { content: ''; position: fixed; inset: 0 0 auto; height: 60px; z-index: 50; background: linear-gradient(180deg, #0b0f14 55%, rgba(11, 15, 20, 0)); pointer-events: none; }
@media (max-width: 640px) {
  body.tr-focus .tr-x { width: 56px; height: 56px; padding: 0; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
  body.tr-focus .tr-x b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.tr-focus .tr-x span { font-size: 1.6rem; }
  body.tr-focus .tr-wz-sec { padding-top: 76px; }
}
.tr-wz .st-think { border: 0; background: transparent; padding: 8px 0 4px; }
/* a página do trailer é escura: as cores do estúdio seguem (o botão "Conferir ou mudar o roteiro" ficava escuro no escuro) */
.tr-body .st, .tr-body .st-mine { --st-bg: #141a22; --st-card: #1c2531; --st-line: rgba(255, 255, 255, .16); --st-txt: #eef2f5; --st-soft: #a9b5bf; --st-chip: #2c3745; --st-chip-txt: #ffffff; --st-accent: #2fb3a9; --st-gold: #ffc531; --st-deep: #0d1218; --st-hero: #22303f; --st-surface: #1c2531; --st-pressed: #17332f; }
/* "Criar outro trailer" em Meus trailers: ocupa a linha inteira da grade; no celular, largura total */
.st-mine > .tr-cta { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
@media (max-width: 640px) { .st-mine > .tr-cta, .st-center > .tr-cta { justify-self: stretch; width: 100%; box-sizing: border-box; border-radius: 16px; } }
