@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/montserrat-latin.woff2) format("woff2");
}
:root {
  --cyan: #02B1DF;
  --cyan-hot: #01ACEB;
  --sky: #00A3D7;
  --mid: #0086CA;
  --deep: #0267B1;
  --navy: #00548F;
  --bg: #007FC4;
  --bg-deep: #012A4F;
  --night: #011E3A;
  --line: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --soft: rgba(255, 255, 255, 0.78);
  --red: #E23B3B;
  --gold: #FFD27A;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--night);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 72% 8%, rgba(2, 177, 223, 0.28), transparent 38%),
    linear-gradient(180deg, #011E3A 0%, #003A6C 48%, #00548F 100%);
}
.shell {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% -4%, rgba(1, 172, 235, 0.30), transparent 40%),
    radial-gradient(circle at -10% 70%, rgba(2, 177, 223, 0.16), transparent 42%),
    linear-gradient(180deg, #012A4F 0%, #00548F 52%, #0077BE 100%);
}
.rays {
  position: absolute;
  width: 620px; height: 620px;
  right: -300px; top: -300px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0) 0deg 5.2deg, rgba(255,255,255,0.06) 5.4deg 7.1deg, rgba(255,255,255,0) 7.3deg 7.8deg);
  -webkit-mask: radial-gradient(circle, transparent 22%, #000 30%, #000 64%, transparent 70%);
  mask: radial-gradient(circle, transparent 22%, #000 30%, #000 64%, transparent 70%);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + var(--safe-top)) 22px 6px;
  min-height: 64px;
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: #fff; }
.brand img { height: 26px; width: auto; display: block; }
.brand small { font-size: 6.5px; letter-spacing: .34em; font-weight: 600; opacity: .9; }
.icon-btn {
  appearance: none; border: 0; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff;
  backdrop-filter: blur(8px); transition: background .2s, transform .15s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

.progress { display: flex; gap: 6px; align-items: center; }
.progress i { display: block; width: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); transition: width .35s var(--ease), background .35s; }
.progress i.on { width: 30px; background: #fff; }
.progress i.done { background: rgba(255,255,255,.7); }

.screens { position: relative; z-index: 2; }
.screen {
  position: relative;
  padding: 10px 22px calc(30px + var(--safe-bottom));
  min-height: calc(100dvh - 70px);
  display: flex; flex-direction: column;
  animation: enter .42s var(--ease) both;
}
.screen.leaving { animation: leave .22s ease-in both; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-8px); } }

.kicker { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #BFEAFF; }
h1 { font-weight: 800; font-size: clamp(38px, 11.4vw, 50px); line-height: 1.0; letter-spacing: -0.04em; margin: 0 0 16px; }
h1 .light { display: block; font-weight: 300; font-size: .56em; letter-spacing: -0.02em; line-height: 1.25; }
h2 { font-weight: 800; font-size: clamp(25px, 7.4vw, 30px); line-height: 1.1; letter-spacing: -0.03em; margin: 6px 0 8px; }
.lead { font-size: 16px; line-height: 1.5; margin: 0 0 22px; color: rgba(255,255,255,.92); max-width: 24em; }
.lead strong { font-weight: 700; color: #fff; }
.sub { font-size: 14.5px; line-height: 1.45; color: var(--soft); margin: 0 0 18px; }
.fine { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.72); margin: 14px 0 0; }
.fine a { color: #fff; }

.spacer { flex: 1 1 auto; min-height: 16px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.btn {
  appearance: none; border: 0; border-radius: 999px;
  min-height: 56px; padding: 0 26px;
  font-size: 16px; font-weight: 700; letter-spacing: -.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s ease, opacity .2s ease, box-shadow .2s ease, background .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .42; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: #fff; color: var(--deep); box-shadow: 0 12px 28px rgba(0, 30, 70, .28); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-link { background: none; color: #fff; min-height: 44px; font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 4px; padding: 0 12px; }
.btn-wa { background: #25D366; color: #053B1E; }

.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 6px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #DDF4FF; }
.input {
  width: 100%; min-height: 54px; border-radius: 16px; border: 1.5px solid rgba(255,255,255,.22);
  background: rgba(0, 24, 56, .34); color: #fff; font-size: 16px; font-weight: 600; padding: 0 16px;
  outline: none; transition: border-color .2s, background .2s;
}
.input::placeholder { color: rgba(255,255,255,.5); font-weight: 500; }
.input:focus { border-color: #fff; background: rgba(0, 24, 56, .5); }
textarea.input { padding: 14px 16px; min-height: 140px; line-height: 1.5; resize: none; }

.chip {
  appearance: none; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; font-weight: 600; min-height: 40px;
  transition: background .2s, transform .15s, border-color .2s;
}
.chip:active { transform: scale(.97); }
.chip.on { background: #fff; color: var(--deep); border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(10px); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 24, 56, .4); border: 1px solid rgba(255,255,255,.14); margin: 4px 0 18px; }
.seg button { appearance: none; border: 0; background: none; border-radius: 999px; min-height: 44px; font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .25s, color .25s; }
.seg button svg { width: 18px; height: 18px; }
.seg button.on { background: #fff; color: var(--deep); }

/* gravador */
.rec { display: flex; flex-direction: column; align-items: center; padding: 18px 0 6px; }
.rec-btn { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 0; background: none; padding: 0; }
.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,.16); }
.rec-btn svg.ring .bar { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.rec-core { position: absolute; inset: 16px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 32%, #fff 0%, #7FD4F3 34%, var(--cyan) 68%, var(--deep) 100%); box-shadow: 0 14px 36px rgba(2, 103, 177, .5); transition: transform .2s; }
.rec-core svg { width: 38px; height: 38px; color: var(--deep); }
.rec-btn.live .rec-core { background: radial-gradient(circle at 38% 32%, #fff 0%, #FFB3B3 30%, #E23B3B 80%); animation: beat 1.1s ease-in-out infinite; }
.rec-btn.live .rec-core svg { color: #fff; }
@keyframes beat { 50% { transform: scale(1.05); } }
.rec-time { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 700; margin-top: 14px; min-height: 20px; }
.rec-hint { font-size: 13.5px; color: var(--soft); margin-top: 4px; text-align: center; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 44px; margin-top: 10px; }
.wave i { display: block; width: 4px; border-radius: 4px; background: rgba(255,255,255,.85); height: 6px; transition: height .08s linear; }
.take { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 6px; width: 100%; }
.take .play { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--deep); 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,.55); min-height: 3px; }
.take .bars i.p { background: #fff; }
.take .dur { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 30px); opacity: 0; background: #fff; color: var(--deep); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 14px; box-shadow: 0 12px 30px rgba(0,20,50,.35); transition: all .3s var(--ease); z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.card-preview { width: 100%; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 14, 40, .5); aspect-ratio: 9 / 16; background: rgba(0,0,0,.15); 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(.92) translateY(18px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

.stub-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.82); padding: 10px 12px; border-radius: 14px; background: rgba(0, 20, 50, .38); border: 1px dashed rgba(255,255,255,.3); margin-top: 14px; }
.stub-note b { color: #fff; }
.stub-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

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