/* Claro · sistema visual dos protótipos de fim de ano (Flashvolve).
   Vermelho profundo, branco nítido, dourado de luz, Roboto. Motivo: o "o" da marca com três raios.
   Ritmo de stories: telas curtas, transição lateral rápida, retorno visual no próprio toque. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 75% 100%; font-display: swap; src: url(/assets/roboto-latin.woff2) format("woff2"); }
:root {
  --red: #DA291C; --red-hot: #F0402F; --deep: #8A0006; --night: #2A0002; --wine: #4A0004;
  --gold: #FFC94D; --gold-2: #FFE3A3; --white: #FFFFFF;
  --soft: rgba(255, 255, 255, .82); --muted: rgba(255, 255, 255, .7); --line: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .09); --glass-hi: rgba(255, 255, 255, .16); --surface: rgba(255, 255, 255, .09);
  --ink: #FFFFFF; --primary: #FFC94D; --primary-press: #FFB421; --blue: #FFC94D; --tint: rgba(255, 201, 77, .16);
  --r: 20px; --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --t-body: 16px; --t-small: 13.5px;
  --ease: cubic-bezier(.16, 1, .3, 1); --snap: cubic-bezier(.7, 0, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body { font-family: "Roboto", "Helvetica Neue", Arial, system-ui, sans-serif; background: var(--night); color: #fff; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
button, input, textarea, select { font-family: inherit; color: inherit; font-size: inherit; }
button { cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }
.center { text-align: center; }

/* palco: no celular ocupa a tela; no computador vira um aparelho centralizado sobre o fundo vermelho */
.stage { min-height: 100dvh; display: flex; justify-content: center; align-items: stretch;
  background: radial-gradient(circle at 80% 0%, rgba(255, 176, 19, .22), transparent 40%), linear-gradient(160deg, #6A0005 0%, #3A0003 60%, #1C0001 100%); }
.shell { position: relative; width: 100%; max-width: 460px; min-height: 100dvh; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 85% -5%, rgba(255, 180, 33, .26), transparent 45%),
    radial-gradient(90% 60% at -20% 105%, rgba(240, 64, 47, .45), transparent 60%),
    linear-gradient(180deg, #3A0003 0%, #7A0005 46%, #C20008 100%); }
@media (min-width: 720px) {
  .stage { align-items: center; padding: 28px 0; }
  .shell { min-height: min(880px, calc(100dvh - 56px)); max-height: 900px; border-radius: 36px; box-shadow: 0 40px 120px rgba(20, 0, 1, .6), 0 0 0 1px rgba(255, 255, 255, .08); }
  .shell.wide { max-width: 760px; max-height: none; min-height: calc(100dvh - 56px); }
}
.shell.wide { max-width: 760px; }

/* grafismo de fundo: riscos de luz em diagonal e o brilho */
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx i { position: absolute; left: -40%; width: 70%; height: 2px; border-radius: 2px; transform: rotate(-30deg);
  background: linear-gradient(90deg, transparent, rgba(255, 227, 163, .55), transparent); animation: streak 6.5s linear infinite; opacity: .8; }
.fx i:nth-child(1) { top: 18%; animation-delay: -1s; }
.fx i:nth-child(2) { top: 46%; animation-delay: -3.4s; animation-duration: 8s; }
.fx i:nth-child(3) { top: 78%; animation-delay: -5.2s; animation-duration: 7s; }
@keyframes streak { from { transform: translate(-30%, 40%) rotate(-30deg); } to { transform: translate(190%, -160%) rotate(-30deg); } }
.brilho { position: absolute; right: -70px; top: -60px; width: 300px; height: 300px; opacity: .22; animation: float 9s ease-in-out infinite; }
.brilho svg { width: 100%; height: 100%; }
@keyframes float { 50% { transform: translateY(10px) rotate(4deg); } }

/* barra de cima: logo e stories */
.topbar { position: relative; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: calc(14px + var(--safe-top)) 20px 4px; min-height: 60px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(40, 0, 2, .35)); }
.stories { display: flex; gap: 5px; align-items: center; }
.stories i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .24); overflow: hidden; position: relative; }
.stories i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); transition: transform .45s var(--ease); }
.stories i.done::after, .stories i.on::after { transform: scaleX(1); }
.stories i.on::after { background: var(--gold); }
.top-link { color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); }
.top-link.solid { background: #fff; color: var(--deep); border-color: #fff; }
.icon-btn { appearance: none; border: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--glass-hi); display: grid; place-items: center; color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }

/* telas */
.screens { position: relative; z-index: 2; }
.screen { position: relative; padding: 8px 22px calc(26px + var(--safe-bottom)); min-height: calc(100dvh - 64px); display: flex; flex-direction: column; animation: inR .34s var(--ease) both; }
@media (min-width: 720px) { .screen { min-height: calc(min(880px, 100dvh - 56px) - 64px); } }
.screen.back { animation-name: inL; }
@keyframes inR { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .15s; } .d4 { animation-delay: .2s; } .d5 { animation-delay: .25s; }

.kicker { margin: 0 0 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--gold); }
h1 { font-weight: 900; font-size: clamp(38px, 11vw, 50px); line-height: .98; letter-spacing: -.035em; margin: 0 0 14px; }
h1 .gold, h2 .gold, .gold { color: var(--gold); }
h2 { font-weight: 900; font-size: clamp(27px, 7.6vw, 32px); line-height: 1.04; letter-spacing: -.03em; margin: 4px 0 10px; }
.lead { font-size: 16.5px; line-height: 1.45; margin: 0 0 18px; color: var(--soft); max-width: 25em; }
.sub { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin: 0 0 16px; }
.fine { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.fine a, .fine button { color: #fff; }
.spacer { flex: 1 1 auto; min-height: 14px; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

/* botões: resposta no próprio toque (classe .press no pointerdown) */
.btn { appearance: none; border: 0; border-radius: 999px; min-height: 56px; padding: 0 26px; font-size: 16.5px; font-weight: 800; letter-spacing: -.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .12s var(--ease), opacity .2s, background .2s, box-shadow .2s; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:disabled { opacity: .4; pointer-events: none; }
.btn-primary { background: #fff; color: var(--deep); box-shadow: 0 14px 30px rgba(40, 0, 2, .35); }
.btn-gold { background: var(--gold); color: #3A0003; box-shadow: 0 14px 30px rgba(40, 0, 2, .35); }
.btn-ghost { background: var(--glass); color: #fff; border: 1px solid var(--line); }
.btn-link { background: none; color: #fff; min-height: 44px; font-weight: 700; font-size: 14.5px; padding: 0 12px; opacity: .92; }
.btn-wa { background: #25D366; color: #053B1E; }
.press, .btn:active, .tile:active, .chip:active { transform: scale(.96); }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .18; transform: scale(0); animation: ripple .5s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.input { width: 100%; min-height: 52px; border-radius: 16px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(42, 0, 2, .32); color: #fff; font-size: 16px; font-weight: 600; padding: 0 16px; outline: none; transition: border-color .15s, background .15s; }
.input::placeholder { color: rgba(255, 255, 255, .5); font-weight: 500; }
.input:focus { border-color: var(--gold); background: rgba(42, 0, 2, .5); }
textarea.input { padding: 14px 16px; min-height: 130px; line-height: 1.5; resize: none; }
.chip { appearance: none; border: 1px solid rgba(255, 255, 255, .24); background: var(--glass); color: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 700; min-height: 40px; transition: background .15s, transform .12s, border-color .15s, color .15s; }
.chip.on { background: var(--gold); color: #3A0003; border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* toast e folha */
.toast { position: fixed; left: 50%; bottom: calc(22px + var(--safe-bottom)); transform: translate(-50%, 24px); opacity: 0; background: #fff; color: var(--deep); font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 14px 34px rgba(30, 0, 1, .45); transition: all .28s var(--ease); z-index: 60; max-width: 90vw; text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet-bg { position: fixed; inset: 0; background: rgba(20, 0, 1, .55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 40; }
.sheet-bg.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 460px; transform: translate(-50%, 105%); transition: transform .34s var(--ease); z-index: 41; background: #fff; color: #2A0002; border-radius: 26px 26px 0 0; padding: 22px 22px calc(20px + var(--safe-bottom)); }
.sheet.open { transform: translate(-50%, 0); }
.sheet h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.sheet p { font-size: 14.5px; line-height: 1.5; margin: 0 0 10px; color: #4A1A1C; }
.sheet .btn-ghost { background: #2A0002; color: #fff; border: 0; width: 100%; margin-top: 6px; }
.foot-link { appearance: none; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 10px; margin: 6px auto 0; display: block; }

/* gravador compartilhado */
.rec { display: flex; flex-direction: column; align-items: center; padding: 6px 0 0; }
.rec-btn { position: relative; width: 148px; height: 148px; border-radius: 50%; border: 0; background: none; padding: 0; transition: transform .12s var(--ease); }
.rec-btn svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rec-btn svg.ring circle { fill: none; stroke-width: 5; }
.rec-btn svg.ring .track { stroke: rgba(255, 255, 255, .18); }
.rec-btn svg.ring .bar { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.rec-core { position: absolute; inset: 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 18px 40px rgba(40, 0, 2, .45), 0 0 0 0 rgba(255, 255, 255, .35); transition: transform .2s var(--ease), background .2s; animation: halo 2.4s ease-out infinite; }
.rec-core svg { width: 42px; height: 42px; color: var(--red); }
@keyframes halo { 0% { box-shadow: 0 18px 40px rgba(40, 0, 2, .45), 0 0 0 0 rgba(255, 255, 255, .35); } 70%, 100% { box-shadow: 0 18px 40px rgba(40, 0, 2, .45), 0 0 0 22px rgba(255, 255, 255, 0); } }
.rec-btn.live .rec-core { background: var(--gold); animation: beat 1s ease-in-out infinite; }
.rec-btn.live .rec-core svg { color: #3A0003; }
@keyframes beat { 50% { transform: scale(1.05); } }
.rec-time { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 800; margin-top: 12px; min-height: 20px; }
.rec-hint { font-size: 13.5px; color: var(--muted); margin-top: 2px; text-align: center; min-height: 20px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; margin-top: 6px; }
.wave i { display: block; width: 4px; border-radius: 4px; background: rgba(255, 255, 255, .9); height: 5px; transition: height .08s linear; }
.take { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; animation: rise .4s var(--ease) both; }
.take .play { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--red); display: grid; place-items: center; }
.take .play svg { width: 18px; height: 18px; }
.take .bars { flex: 1; display: flex; align-items: center; gap: 2px; height: 34px; overflow: hidden; }
.take .bars i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .45); min-height: 3px; }
.take .bars i.p { background: var(--gold); }
.take .dur { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.take .redo { appearance: none; border: 0; background: var(--glass-hi); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.take .redo svg { width: 17px; height: 17px; }

.card-preview { width: 100%; border-radius: 22px; overflow: hidden; box-shadow: 0 26px 60px rgba(30, 0, 1, .55); aspect-ratio: 9 / 16; background: rgba(0, 0, 0, .18); position: relative; }
.card-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-preview.reveal { animation: reveal .7s var(--ease) both; }
@keyframes reveal { from { opacity: 0; transform: scale(.9) translateY(18px) rotate(-2deg); } to { opacity: 1; transform: none; } }
.shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.04) 70%); background-size: 220% 100%; animation: shim 1.1s linear infinite; }
@keyframes shim { to { background-position: -220% 0; } }

/* painéis (RH e mural) */
.tile { padding: var(--s2); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.vb .track { background: rgba(255, 255, 255, .14) !important; }
.panel { background: var(--surface); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
