/* The opening screen: a painted street wall in the afternoon, one hand-lettered poster, a bike on its back wheel.
   Every size hangs on --u (a hundredth of the stage), so the picture keeps its composition on any window. */
@font-face { font-family: Cartaz; src: url(/assets/cartaz-e9eebe703a.woff2) format("woff2"); font-display: block; }
@font-face { font-family: Barlow; font-weight: 500; src: url(/assets/barlow-500-1d37d98cce.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Barlow; font-weight: 700; src: url(/assets/barlow-700-d47d1a7ac8.woff2) format("woff2"); font-display: swap; }
:root {
  --anil: #1F49B6; --cal: #F7F3E9; --papel: #FFD21A; --tinta: #C5122D; --azul: #132154; --neon: #FF2D87;
  --u: min(1vw, 1.66vh);
  --h-asfalto: calc(var(--u) * 8.6); --h-guia: calc(var(--u) * 6.2); --h-rodape: calc(var(--u) * 6.6);
}
@supports (height: 1dvh) { :root { --u: min(1vw, 1.66dvh); } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #2b2a2a; }
body { font: 500 calc(var(--u) * 1.22)/1.4 Barlow, system-ui, sans-serif; color: var(--azul); -webkit-font-smoothing: antialiased; }
p, h1, ul { margin: 0; }

.rua { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; isolation: isolate; background: var(--anil); }
.muro { position: absolute; inset: 0; z-index: 0; }
.muro > div { position: absolute; left: 0; right: 0; }
.rodape { bottom: calc(var(--h-asfalto) + var(--h-guia)); height: var(--h-rodape); background: url(/assets/cal-a529fbeaf8.webp) 0 100% / auto 100% repeat-x, var(--cal); }
.guia { bottom: var(--h-asfalto); height: var(--h-guia); background: url(/assets/guia-2646353df4.webp) 0 0 / auto 100% repeat-x; }
.asfalto { bottom: 0; height: var(--h-asfalto); background: url(/assets/asfalto-239e59b287.webp) 0 0 / auto 100% repeat-x #2b2a2a; }
/* shadows of the street's wires, as they fall on a wall in the afternoon */
.fios { top: 0; height: 46%; mix-blend-mode: multiply; filter: blur(2px); }
.fios svg { width: 100%; height: 100%; display: block; }
.fios path { fill: none; stroke: #0d1c5c; stroke-opacity: .42; stroke-width: 5; vector-effect: non-scaling-stroke; }
/* the palm across the street */
.folha {
  position: absolute; z-index: 4; pointer-events: none; top: 0; right: 0; width: calc(var(--u) * 62); aspect-ratio: 7/5;
  background: url(/assets/folha-04a9f77ff0.webp) 0 0 / 100% 100%; mix-blend-mode: multiply; transform-origin: 95% 0; animation: vento 9s ease-in-out infinite alternate;
}
@keyframes vento { from { transform: rotate(-.5deg); } to { transform: rotate(1.1deg) translateX(.4%); } }
/* the plaster: light and dark relief over the paint, the mark included */
.rua::before {
  content: ""; position: absolute; inset: 0 0 calc(var(--h-asfalto) + var(--h-guia) + var(--h-rodape)); z-index: 2; pointer-events: none;
  background: url(/assets/relevo-875a8935a2.webp) 0 0 / calc(var(--u) * 92) auto; mix-blend-mode: hard-light;
}
.rua::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 224, 160, .26), transparent 46%), linear-gradient(0deg, rgba(8, 14, 50, .26), transparent 34%);
}

.palco { position: relative; z-index: auto; width: calc(var(--u) * 100); min-height: 100vh; min-height: 100dvh; margin: 0 auto; }
.pintura { position: absolute; z-index: 1; left: calc(var(--u) * 4.4); top: calc(var(--u) * 3.6); width: calc(var(--u) * 50); }
.marca { display: block; width: 100%; height: auto; }

.cartaz {
  position: absolute; z-index: 3; right: calc(var(--u) * 4.6); top: calc(var(--u) * 4.2); width: calc(var(--u) * 29);
  padding: calc(var(--u) * 2.1) calc(var(--u) * 2.2) calc(var(--u) * 1.7); transform: rotate(1.3deg);
}
.papel {
  position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(255, 255, 255, .22), transparent 40%), var(--papel);
  clip-path: polygon(.4% .5%, 24% 0, 51% .6%, 78% .1%, 99.7% .4%, 100% 31%, 99.4% 62%, 99.9% 99.2%, 71% 99.7%, 40% 99.2%, .2% 100%, .7% 66%, 0 34%);
}
.papel::after { content: ""; position: absolute; inset: 0; background: url(/assets/relevo-875a8935a2.webp) 30% 20% / calc(var(--u) * 62) auto; mix-blend-mode: hard-light; opacity: .75; }
.letras { display: grid; justify-items: center; text-align: center; }
.chamada, .franca { font-family: Cartaz, "Barlow", sans-serif; font-weight: 400; text-transform: uppercase; line-height: .86; }
.chamada span { display: block; font-size: calc(var(--u) * 4.85); color: var(--azul); }
.chamada strong { display: block; font-weight: 400; font-size: calc(var(--u) * 9.9); line-height: .9; color: var(--tinta); margin-left: -.06em; }
.franca { width: calc(100% + var(--u) * 1.6); margin-top: calc(var(--u) * .5); padding: calc(var(--u) * .62) 0 calc(var(--u) * .42); background: var(--tinta); color: #fff; font-size: calc(var(--u) * 3.02); transform: rotate(-1.1deg); }
.conta { margin-top: calc(var(--u) * 1.35); max-width: 24em; text-wrap: balance; font-size: max(15px, var(--u) * 1.28); overflow-wrap: anywhere; }
.peso { max-width: 24em; text-wrap: balance; font-size: max(14px, var(--u) * 1.12); }
.botao {
  appearance: none; border: 0; cursor: pointer; width: 100%; min-height: max(48px, var(--u) * 4.1); margin-top: calc(var(--u) * 1.1);
  display: flex; align-items: center; justify-content: center; gap: .65em;
  font: 700 max(17px, calc(var(--u) * 1.52))/1 Barlow, system-ui, sans-serif; color: var(--azul); background: #fff; border-radius: 3px;
  box-shadow: 0 .18em 0 var(--azul); transition: transform .09s ease, box-shadow .09s ease;
}
.botao:hover { transform: translateY(-.06em); box-shadow: 0 .24em 0 var(--azul); }
.botao:active { transform: translateY(.14em); box-shadow: 0 .04em 0 var(--azul); }
.botao[disabled] { cursor: default; color: #5b6488; }
.gg { width: 1.25em; height: 1.25em; flex: none; }
.aviso { min-height: 1.4em; margin-top: calc(var(--u) * .7); font-size: max(13px, var(--u) * 1.06); }
.aviso[data-bad="1"] { color: #8f0018; font-weight: 700; }
.linha { appearance: none; border: 0; background: none; padding: 6px; font: inherit; font-size: max(13px, var(--u) * 1.06); color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.nao ul { list-style: none; padding: 0; margin-top: calc(var(--u) * .8); display: grid; gap: .5em; font-size: max(14px, var(--u) * 1.16); }
.nao .chamada strong { font-size: calc(var(--u) * 8.4); }

/* the bike turns on its back wheel: the origin is the hub, so the tyre stays on the road */
.moto { position: absolute; z-index: 3; left: calc(var(--u) * 29.5); bottom: calc(var(--u) * 3.1); width: calc(var(--u) * 36.5); touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
.piloto { display: block; width: 100%; height: auto; transform-origin: 19.83% 82.43%; transform: rotate(calc(var(--ang, 0) * -1deg)); -webkit-user-drag: none; }
.chao { position: absolute; left: 4%; bottom: -2.2%; width: 92%; height: 5.5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); transform-origin: 12% 50%; transform: scaleX(calc(1 - var(--ang, 0) * .008)); opacity: calc(1 - var(--ang, 0) * .012); }
.moto::before { content: ""; position: absolute; left: 8.6%; bottom: -1.7%; width: 22.5%; height: 4.2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .85), transparent); }
.graus { position: absolute; left: 73%; top: 7%; font: 400 calc(var(--u) * 5.2)/1 Cartaz, sans-serif; color: var(--cal); opacity: 0; transition: opacity .18s; pointer-events: none; white-space: nowrap; }
.graus::after { content: ""; display: inline-block; vertical-align: top; width: .17em; height: .17em; margin-left: .08em; border: .1em solid #ff3d8b; border-radius: 50%; }
.moto.segura { cursor: grabbing; }
.moto.segura .graus { opacity: 1; }
.palco[data-estado="saindo"] .moto { transition: transform .62s cubic-bezier(.55, 0, .9, .5); transform: translateX(calc(50vw + var(--u) * 62)); }

.pe { position: absolute; z-index: 3; left: calc(var(--u) * 4.6); bottom: calc(var(--h-asfalto) + var(--h-guia) + var(--h-rodape) * .5); transform: translateY(50%); display: flex; gap: 1.6em; font-size: max(13px, var(--u) * 1.08); }
.pe a { color: var(--azul); text-underline-offset: .22em; padding: 4px 0; }
/* the app's store on a phone or tablet (src/app_loja.js) */
.loja-app { display: grid; gap: 8px; justify-items: center; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 3px dashed var(--azul); font-size: 15px; }
.loja-app .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 3px; background: var(--azul); color: #fff; font: 700 17px/1 Barlow, system-ui, sans-serif; text-decoration: none; }

/* a phone's first sight: the app's poster, pasted crooked over the other one */
.lambe {
  position: absolute; z-index: 2; left: -3%; right: -3%; top: -3.5%; min-height: 107%; padding: 18px 20px 10px; isolation: isolate;
  display: grid; align-content: center; justify-items: center; text-align: center; transform: rotate(-2.8deg); animation: cola .3s cubic-bezier(.2, .9, .3, 1.15) both;
}
.lambe .papel { background: linear-gradient(200deg, rgba(255, 255, 255, .2), transparent 42%), var(--neon); filter: drop-shadow(0 3px 2px rgba(10, 16, 60, .4)); }
.lambe .chamada span { color: var(--azul); } .lambe .chamada strong { color: #fff; }
.lambe .franca { background: var(--azul); color: var(--papel); }
.lambe .conta { font-weight: 700; }
.lambe .icone { position: absolute; right: 3%; top: 0; width: 21%; aspect-ratio: 1; border-radius: 22%; background: url(/assets/icone-bed8d205f8.webp) 0 0 / 100% 100%; transform: translateY(-48%) rotate(8deg); box-shadow: 0 2px 5px rgba(10, 16, 60, .45); }
.lambe .aviso:empty { display: none; } .lambe .linha { min-height: 44px; margin-top: 6px; font-size: max(16px, var(--u) * 1.06); }
.baixar { background: var(--papel); text-decoration: none; }
@keyframes cola { from { opacity: 0; transform: rotate(3deg) scale(1.14); } }
.lambe.sai { transition: transform .3s cubic-bezier(.5, 0, .9, .6), opacity .3s; transform: translateY(46vh) rotate(9deg); opacity: 0; animation: none; pointer-events: none; }

/* a phone held upright: the wall is tall, so the mark, the poster and the bike stack */
@media (max-aspect-ratio: 1/1) {
  :root { --u: min(1.9vw, 1.3vh); --h-asfalto: 72px; --h-guia: 42px; --h-rodape: 44px; --c: min(100vw - 32px, 54vh); }
  body { font-size: 16px; }
  .palco { width: 100%; display: flex; flex-direction: column; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px 0; }
  .pintura { position: relative; left: auto; top: auto; width: min(58vw, 24vh); align-self: flex-start; }
  .cartaz { position: relative; right: auto; top: auto; width: var(--c); min-width: min(100%, 320px); margin-top: -6px; padding: 16px 18px 12px; }
  .chamada span { font-size: calc(var(--c) * .12); } .chamada strong { font-size: calc(var(--c) * .25); } .nao .chamada strong { font-size: calc(var(--c) * .2); }
  .franca { font-size: calc(var(--c) * .078); width: calc(100% + 16px); padding: .24em 0 .14em; margin-top: 4px; }
  .conta { margin-top: 10px; font-size: max(16px, var(--c) * .034); } .peso { font-size: max(14px, var(--c) * .029); } .botao { margin-top: 12px; min-height: max(50px, var(--c) * .115); font-size: max(18px, var(--c) * .037); } .aviso { margin-top: 4px; font-size: max(14px, var(--c) * .027); }
  .loja-app { margin-top: 2px; padding-top: 10px; }
  .baixar { min-height: 62px; font-size: 21px; }
  .moto { position: relative; left: auto; bottom: auto; width: min(58vw, 29vh); margin: auto auto 16px 3vw; align-self: flex-start; padding-top: 12px; }
  .pe { left: auto; right: 16px; bottom: 12px; transform: none; flex-direction: column; gap: 2px; text-align: right; } .pe a { color: #fff; }
  .folha { width: 92vw; top: -5vw; right: -26vw; opacity: .8; }
}
/* a phone on its side: short and wide, the poster takes the right half */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .palco { width: 100%; }
  .pintura { width: min(38vw, 92vh); left: max(16px, env(safe-area-inset-left)); top: 12px; }
  .cartaz { width: min(46vw, 400px); right: max(16px, env(safe-area-inset-right)); top: 8px; padding: 10px 16px 8px; }
  .chamada { display: flex; gap: .25em; align-items: baseline; justify-content: center; font-size: min(9.4vh, 38px); }
  .chamada span, .chamada strong, .nao .chamada strong { font-size: 1em; line-height: 1; margin: 0; }
  .franca { width: calc(100% + 12px); font-size: min(6.6vh, 27px); margin-top: 2px; padding: 4px 0 2px; }
  .conta { font-size: 14px; margin-top: 6px; } .peso { font-size: 13px; } .botao { min-height: 44px; margin-top: 6px; font-size: 16px; } .aviso { margin-top: 2px; font-size: 13px; } .aviso:empty { min-height: 0; }
  .loja-app { margin-top: 6px; padding-top: 7px; gap: 4px; font-size: 13px; border-top-width: 2px; } .loja-app .btn { min-height: 44px; font-size: 15px; }
  .nao ul { font-size: 13px; gap: 2px; margin-top: 4px; }
  .lambe { top: 0; min-height: 100%; } .lambe .icone { width: 46px; right: 14px; top: 8px; transform: rotate(8deg); } .lambe .chamada { padding-right: 46px; } .baixar { min-height: 54px; font-size: 19px; }
  .moto { left: 20vw; width: min(33vw, 78vh); }
  .pe { bottom: 8px; left: max(16px, env(safe-area-inset-left)); transform: none; } .pe a { color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .folha, .lambe { animation: none; } .lambe.sai { transition: none; } .botao { transition: none; } .palco[data-estado="saindo"] .moto { transition: none; transform: none; } }
