@font-face { font-family: "IntroB"; src: url("assets/IntroHeadB.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "IntroH"; src: url("assets/IntroHeadH.otf") format("opentype"); font-display: swap; }

:root {
  --y: #ffcc33;
  --y-deep: #ffb400;
  --r: #db0a3e;
  --r-deep: #a8062e;
  --ink: #2b0a13;
  --paper: #fff5d6;
  --display: "IntroB", "Arial Rounded MT Bold", system-ui, sans-serif;
  --caps: "IntroH", "IntroB", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--text);
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, #5a1626 0%, #2b0a13 60%, #170509 100%);
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------- palco / moldura ---------- */
.stage { height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 40px; }
.phone {
  position: relative; overflow: hidden; background: var(--y);
  width: 100vw; height: 100dvh; container-type: size;
}
.stage-note { display: none; }
@media (min-width: 560px) {
  .phone { width: 400px; height: min(840px, calc(100dvh - 40px)); border-radius: 42px; box-shadow: 0 0 0 10px #12040a, 0 40px 90px rgba(0,0,0,.55); }
}
@media (min-width: 900px) {
  .stage-note {
    display: flex; flex-direction: column; gap: 10px; width: 220px; color: #f7dfb0; font-size: 13px; line-height: 1.45;
  }
  .stage-note strong { font-family: var(--display); font-size: 22px; color: var(--y); font-weight: normal; }
  .stage-note button { align-self: flex-start; margin-top: 6px; padding: 8px 14px; border: 1.5px solid rgba(255,204,51,.5); border-radius: 99px; color: var(--y); font-size: 13px; }
  .stage-note button:hover { background: rgba(255,204,51,.12); }
}

/* ---------- telas ---------- */
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transform: translateY(14px) scale(.985);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.screen.on { opacity: 1; pointer-events: auto; transform: none; z-index: 2; }

.logo { display: block; height: auto; }
.logo-top { position: absolute; top: 16px; left: 50%; width: 78px; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.logo-mini { width: 54px; }
.logo-mini.center { margin: 0 auto; }

.kicker { font-family: var(--caps); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--r); }
.kicker.light { color: var(--y); }
h2 { font-family: var(--display); font-weight: normal; font-size: 34px; line-height: 1.02; color: var(--r); letter-spacing: -.01em; text-wrap: balance; }
.center { text-align: center; }

.btn {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; width: 100%;
  min-height: 60px; padding: 12px 20px; border-radius: 18px; text-decoration: none; text-align: center;
  font-family: var(--display); font-size: 21px; letter-spacing: .01em; transition: transform .12s, opacity .2s, box-shadow .12s;
}
.btn small { font-family: var(--caps); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .9; }
.btn:active { transform: translateY(3px); }
.btn-red { background: var(--r); color: #fff; box-shadow: 0 6px 0 var(--r-deep); }
.btn-red:active { box-shadow: 0 3px 0 var(--r-deep); }
.btn-red:disabled { opacity: .35; pointer-events: none; }
.btn-ghost { min-height: 48px; font-size: 15px; background: rgba(255,255,255,.55); color: var(--r); border: 2px solid var(--r); border-radius: 14px; padding: 8px 10px; }
.link { font-size: 14px; text-decoration: underline; color: var(--ink); opacity: .7; padding: 12px; align-self: center; }

.dock { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); margin-top: auto; position: relative; z-index: 4; }
.dock-solid { background: linear-gradient(to top, var(--y) 70%, rgba(255,204,51,0)); padding-top: 26px; }

/* ---------- 1 intimação ---------- */
.s-intro { background: #1c0709; justify-content: flex-end; }
.s-intro .dock { margin-top: 0; }
.intro-photo { position: absolute; inset: 0 0 34% 0; background: url("assets/advogato.jpg") center 12% / cover; }
.intro-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,7,9,.35) 0%, rgba(28,7,9,0) 28%, rgba(28,7,9,0) 55%, #1c0709 100%); }
.intro-title { position: relative; align-self: flex-start; margin: 0 0 10px 22px; z-index: 4; color: var(--y); font-family: var(--display); line-height: .8; text-shadow: 0 4px 22px rgba(0,0,0,.55); transform: rotate(-4deg); }
.intro-title .t-small { display: block; font-size: 30px; margin-left: 4px; }
.intro-title .t-big { display: block; font-size: 70px; }
.paper {
  position: relative; z-index: 3; margin: 0 18px; padding: 18px 20px 20px; background: var(--paper);
  border-radius: 4px; transform: rotate(-1.6deg) translateY(40px); opacity: 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.5); font-family: Georgia, "Times New Roman", serif; font-size: 14.5px; line-height: 1.42; color: #3a2a1c;
  background-image: repeating-linear-gradient(0deg, rgba(120,80,20,.035) 0 2px, transparent 2px 5px);
}
.paper-head { text-align: center; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid rgba(58,42,28,.35); }
.paper h1 { text-align: center; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; margin: 10px 0 8px; }
.paper p { margin-top: 7px; }
.paper .ps { font-style: italic; opacity: .8; }
.paper .sign { margin-top: 10px; font-family: "Snell Roundhand", "Brush Script MT", cursive; font-size: 24px; line-height: 1; color: #1d2a6b; }
.paper .sign small { display: block; font-family: Georgia, serif; font-size: 9.5px; letter-spacing: .14em; color: #3a2a1c; opacity: .7; margin-top: 4px; }
.stamp {
  position: absolute; right: 10px; bottom: 16px; padding: 6px 14px; border: 4px solid var(--r); border-radius: 8px; color: var(--r);
  font-family: var(--caps); font-size: 26px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-12deg) scale(3); opacity: 0;
  mix-blend-mode: multiply;
}
.s-intro.on .paper { animation: paper-in .7s .25s cubic-bezier(.2,.9,.2,1) forwards; }
.s-intro.on .stamp { animation: stamp-in .35s 1.15s cubic-bezier(.3,1.4,.5,1) forwards; }
@keyframes paper-in { to { transform: rotate(-1.6deg) translateY(0); opacity: 1; } }
@keyframes stamp-in { to { transform: rotate(-12deg) scale(1); opacity: .88; } }
.s-intro .dock { background: #1c0709; padding-top: 22px; }

/* ---------- formulários ---------- */
.s-form { background: radial-gradient(120% 70% at 50% 0%, #ffe07a 0%, var(--y) 55%, var(--y-deep) 100%); }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 4px; }
.back { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; color: var(--r); background: rgba(255,255,255,.5); }
.steps { display: flex; gap: 6px; }
.steps i { width: 26px; height: 5px; border-radius: 9px; background: rgba(219,10,62,.22); }
.steps i.on { background: var(--r); }
.body { padding: 14px 22px 0; overflow-y: auto; flex: 1; }
.body h2 { margin: 6px 0 20px; }

.field { display: block; margin-top: 16px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; height: 56px; padding: 0 16px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; font-size: 18px; font-weight: 600; outline: none;
}
.field input:focus { border-color: var(--r); box-shadow: 0 0 0 4px rgba(219,10,62,.18); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button { padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.6); font-size: 14px; font-weight: 600; border: 1.5px solid rgba(43,10,19,.25); }
.chips button.on { background: var(--r); color: #fff; border-color: var(--r); }
.chips.solid button { flex: 1; }

.sources { display: grid; gap: 12px; }
.source {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 18px; background: #fff;
  border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.source:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.source b { display: block; font-family: var(--display); font-weight: normal; font-size: 20px; color: var(--ink); }
.source small { font-size: 12.5px; opacity: .72; }
.ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; color: #fff; }
.ico-tt { background: #111; }
.ico-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
.ico-up { background: var(--r); font-size: 18px; }
.fine { font-size: 12px; line-height: 1.4; opacity: .7; margin-top: 16px; text-align: center; }

.drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2.5px dashed var(--r); border-radius: 16px; background: rgba(255,255,255,.5); font-weight: 600; cursor: pointer; }
.drop-plus { width: 36px; height: 36px; border-radius: 50%; background: var(--r); color: #fff; display: grid; place-items: center; font-size: 24px; line-height: 1; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid #fff; }
.q { margin-top: 18px; font-size: 14px; font-weight: 600; }
.q b { color: var(--r); font-size: 16px; }
input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--r); height: 28px; }

/* ---------- perícia ---------- */
.s-scan { background: radial-gradient(110% 70% at 50% 10%, #f02456 0%, var(--r) 50%, var(--r-deep) 100%); color: #fff; padding: 84px 22px 26px; text-align: center; }
.s-scan h2 { color: #fff; font-size: 27px; min-height: 58px; margin-top: 6px; }
.scan-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px auto 0; width: 100%; max-width: 300px; }
.tile {
  position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 40px;
  background: rgba(255,255,255,.14); opacity: .35; transform: scale(.92); transition: opacity .3s, transform .35s cubic-bezier(.3,1.5,.5,1), filter .3s;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.seen { opacity: 1; transform: none; }
.tile.cat { box-shadow: 0 0 0 3px var(--y); }
.tile.nocat { filter: grayscale(1) brightness(.6); }
.tile.cat::after {
  content: "GATO"; position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%) rotate(-6deg); padding: 1px 7px; border-radius: 5px;
  background: var(--y); color: var(--r); font-family: var(--caps); font-size: 13px; letter-spacing: .08em; animation: pop .3s cubic-bezier(.3,1.6,.5,1);
}
.tile.now::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, transparent 40%, rgba(255,204,51,.75) 50%, transparent 60%); background-size: 100% 300%; animation: sweep .5s linear; }
@keyframes sweep { from { background-position: 0 100%; } to { background-position: 0 0; } }
@keyframes pop { from { transform: translateX(-50%) rotate(-6deg) scale(0); } }
.scan-meter { height: 8px; border-radius: 9px; background: rgba(0,0,0,.25); margin-top: 20px; overflow: hidden; }
.scan-meter i { display: block; height: 100%; width: 0; background: var(--y); border-radius: 9px; transition: width .3s linear; }
.scan-counts { display: flex; justify-content: space-around; margin-top: 16px; }
.scan-counts b { display: block; font-family: var(--display); font-weight: normal; font-size: 40px; color: var(--y); line-height: 1; }
.scan-counts span { font-size: 12px; opacity: .85; }

/* ---------- retrospectiva ---------- */
.s-story { background: var(--ink); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.story-bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 6; }
.story-bars span { flex: 1; height: 3.5px; border-radius: 9px; background: rgba(43,10,19,.28); overflow: hidden; }
.story-bars i { display: block; height: 100%; width: 0; background: #fff; }
.story-skip { position: absolute; top: 26px; right: 14px; z-index: 6; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.22); color: #fff; }
.story-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; padding: 74px 26px 40px; display: flex; flex-direction: column; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide > * { opacity: 0; transform: translateY(18px); }
.slide.on > * { animation: rise .55s cubic-bezier(.2,.8,.2,1) forwards; }
.slide.on > *:nth-child(2) { animation-delay: .25s; }
.slide.on > *:nth-child(3) { animation-delay: .7s; }
.slide.on > *:nth-child(4) { animation-delay: 1.15s; }
.slide.on > *:nth-child(5) { animation-delay: 1.6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.slide .k { font-family: var(--caps); letter-spacing: .16em; text-transform: uppercase; font-size: 14px; margin-bottom: 14px; }
.slide .big { font-family: var(--display); font-size: 42px; line-height: 1; text-wrap: balance; }
.slide .huge { font-family: var(--display); font-size: clamp(64px, 27cqw, 112px); line-height: .9; margin: 10px 0; white-space: nowrap; }
.slide .sub { font-size: 16px; line-height: 1.4; margin-top: 16px; max-width: 30ch; }
.sl-red { background: radial-gradient(110% 70% at 30% 10%, #f02456, var(--r) 55%, var(--r-deep)); color: #fff; }
.sl-red .k, .sl-red .huge, .sl-red em { color: var(--y); }
.sl-yel { background: radial-gradient(110% 70% at 70% 10%, #ffe07a, var(--y) 55%, var(--y-deep)); color: var(--ink); }
.sl-yel .big, .sl-yel .huge, .sl-yel .k, .sl-yel em { color: var(--r); }
.sl-ink { background: radial-gradient(110% 70% at 50% 0%, #5a1626, var(--ink) 70%); color: #fff; }
.sl-ink .k, .sl-ink .huge, .sl-ink em { color: var(--y); }
.sl-paper { background: var(--paper); color: var(--ink); }
.sl-paper .k, .sl-paper .huge { color: var(--r); }
.slide em { font-style: normal; }

.share-bar { height: 30px; border-radius: 99px; background: rgba(0,0,0,.25); overflow: hidden; margin-top: 22px; }
.share-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--y); transition: width 1.2s 1.2s cubic-bezier(.2,.8,.2,1); }
.stat-list { display: grid; gap: 14px; margin-top: 22px; }
.stat-list div { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid rgba(43,10,19,.18); padding-bottom: 8px; }
.stat-list b { font-family: var(--display); font-weight: normal; font-size: 40px; color: var(--r); line-height: 1; }
.stat-list span { font-family: var(--caps); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.proof { width: 62%; aspect-ratio: 1; margin: 6px auto 4px; background: #fff; padding: 10px 10px 34px; transform: rotate(-4deg) !important; box-shadow: 0 16px 40px rgba(0,0,0,.45); position: relative; }
.proof .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 76px; background: linear-gradient(135deg, #ffd9a0, #ff9d6c); overflow: hidden; }
.proof .ph img { width: 100%; height: 100%; object-fit: cover; }
.proof::after { content: "PROVA Nº 1"; position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--caps); letter-spacing: .14em; font-size: 13px; color: var(--ink); }
.badge { align-self: flex-start; padding: 10px 18px; border: 4px solid var(--y); border-radius: 12px; font-family: var(--display); font-size: 36px; line-height: 1; color: var(--y); transform: rotate(-3deg) !important; margin: 8px 0 6px; }
.slide .btn { margin-top: 26px; }

/* ---------- sentença ---------- */
.s-result { background: radial-gradient(120% 50% at 50% 0%, #ffe07a 0%, var(--y) 55%, var(--y-deep) 100%); }
.result-scroll { flex: 1; overflow-y: auto; padding: 18px 20px 120px; display: flex; flex-direction: column; }
.result-scroll > * { flex: none; }
.s-result .kicker { text-align: center; margin-top: 10px; }
.s-result h2 { font-size: 28px; margin: 4px 0 16px; }
.card-wrap { width: 72%; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(120,60,0,.4), 0 0 0 3px #fff; transform: rotate(-1.5deg); }
.card-wrap canvas { display: block; width: 100%; height: auto; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.deal { margin-top: 22px; padding: 20px 18px 16px; background: #fff; border-radius: 18px; border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); position: relative; }
.deal-tag { position: absolute; top: -13px; left: 16px; padding: 3px 12px; border-radius: 99px; background: var(--ink); color: var(--y); font-family: var(--caps); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.deal h3 { font-family: var(--display); font-weight: normal; font-size: 22px; line-height: 1.08; color: var(--r); }
.deal p { font-size: 13.5px; margin: 8px 0 4px; opacity: .8; }
.deal li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1.5px dashed rgba(43,10,19,.2); font-size: 14.5px; font-weight: 600; }
.deal li b { flex: none; min-width: 52px; text-align: center; padding: 4px 6px; border-radius: 10px; background: var(--y); font-family: var(--display); font-weight: normal; font-size: 20px; color: var(--r); }
.s-result .dock { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- sheet + toast ---------- */
.sheet-bg { position: absolute; inset: 0; z-index: 20; background: rgba(20,4,8,.6); opacity: 0; pointer-events: none; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: #fff; border-radius: 26px 26px 0 0; padding: 22px 22px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .4s cubic-bezier(.2,.9,.2,1); display: flex; flex-direction: column; gap: 12px;
}
.sheet.on { transform: none; }
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet h3 { font-size: 19px; line-height: 1.25; }
.sheet li { padding: 9px 0 9px 30px; position: relative; font-size: 14.5px; border-bottom: 1px solid #eee; }
.sheet li::before { content: "✓"; position: absolute; left: 4px; color: #1a9a4b; font-weight: 700; }
.sheet li.no { opacity: .6; text-decoration: line-through; }
.sheet li.no::before { content: "✕"; color: var(--r); }
.proto-tag { align-self: flex-start; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: #f1f1f1; color: #555; }
.toast { position: absolute; left: 50%; bottom: 110px; z-index: 30; transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .3s; max-width: 86%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .paper, .stamp, .slide.on > * { animation-duration: .01s; animation-delay: 0s !important; }
}
