/* Site do OddNow. Cores, raio e curva do app (apps/react/src/globals.css, tema escuro); o sistema de
   movimento é o mesmo dos sites do Repooor e do Valorant Guide (escada de entrada, molas, odômetro,
   abertura, rolagem por seção com scroll-snap). O protagonista do topo fica no hero.js. */

:root {
  --bg: hsl(0 0% 7%);
  --bg-2: hsl(0 0% 9%);
  --card: hsl(0 0% 12%);
  --muted-bg: hsl(0 0% 15%);
  --border: hsl(0 0% 20%);
  --border-soft: hsl(0 0% 16%);
  --text: hsl(0 0% 90%);
  --text-2: hsl(0 0% 75%);
  --muted: hsl(0 0% 60%);
  --dim: hsl(0 0% 46%);
  --primary: hsl(264 70% 66%);
  --primary-deep: hsl(264 55% 58%);
  --primary-soft: hsl(264 70% 66% / 0.14);
  --up: hsl(122 39% 49%);
  --down: hsl(4 82% 63%);
  --sure: hsl(45 90% 65%);
  --value: hsl(187 75% 50%);
  --radius: 0.5rem;

  --std: cubic-bezier(0.4, 0, 0.2, 1);
  --expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.2, 0.64, 1);
  --ios: cubic-bezier(0.32, 0.72, 0, 1);

  --font: Geist, Inter, -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-padding-top: 76px;
  scrollbar-width: thin;
  scrollbar-color: hsl(0 0% 26%) transparent;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: hsl(264 70% 66% / 0.35);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Entrada na carga: cada bloco tem o seu atraso fixo (site.js). */
.rise {
  opacity: 0;
  transform: translateY(20px);
}
.rise.tilt {
  transform: translateY(32px) rotate(2deg);
}
.rise.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 500ms var(--std),
    transform 600ms var(--expo);
}

/* ---------- Cabeçalho ---------- */

.header {
  position: fixed;
  top: 0;
  z-index: 40;
  width: 100%;
  transition:
    background 300ms var(--std),
    box-shadow 300ms var(--std);
}
.header.scrolled {
  background: hsl(0 0% 7% / 0.82);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 1px 0 var(--border-soft), 0 12px 30px -16px rgba(0, 0, 0, 0.7);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 108rem;
  min-height: 56px;
  margin: 0 auto;
  padding: 18px 32px;
}
.brand {
  display: flex;
  align-items: center;
  animation: header-rise 0.5s ease 75ms both;
}
.brand-logo {
  width: auto;
  height: 28px;
  transition: transform 300ms var(--spring);
}
.brand:hover .brand-logo {
  transform: translateY(-2px) rotate(-2deg);
}
@keyframes header-rise {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.75) rotate(6deg);
  }
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  animation: nav-fade 0.7s ease-in 75ms both;
}
@keyframes nav-fade {
  0% {
    opacity: 0;
  }
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  transition:
    background 300ms var(--std),
    color 300ms var(--std);
}
.nav-link:hover {
  background: hsl(0 0% 100% / 0.06);
  color: var(--text);
}
.nav-link svg {
  width: 20px;
  height: 20px;
  overflow: visible;
}
.nav-link svg * {
  transition: transform 300ms var(--std);
  transform-box: fill-box;
  transform-origin: center;
}
.nav-link:hover .ic-play .tri {
  transform: translateX(2px) scale(1.25);
}
.nav-link:hover .ic-play .win {
  transform: scale(0.92);
}
.nav-link:hover .ic-calc .scr {
  transform: scaleX(0.6);
  transform-origin: right center;
}
.nav-link:hover .ic-calc .keys {
  transform: translateY(-1px);
}
.ic-tag .tag {
  transform-origin: 20% 20%;
}
.nav-link:hover .ic-tag .tag {
  transform: rotate(-12deg);
}

/* ---------- Botões ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px 0 48px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 300ms var(--std),
    border-color 300ms var(--std),
    color 300ms var(--std);
}
.btn .lead,
.btn .label,
.btn .arrow {
  transition:
    transform 300ms var(--std),
    opacity 300ms var(--std),
    filter 300ms var(--std);
}
.btn .lead {
  position: absolute;
  left: 20px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}
.btn .lead svg {
  width: 18px;
  height: 18px;
}
.btn .arrow {
  position: absolute;
  right: 18px;
  width: 20px;
  height: 20px;
  transform: translateX(100%) scaleX(0.5);
  opacity: 0;
  filter: blur(8px);
}
.btn:hover .lead {
  transform: translateX(-100%) scaleX(0.5);
  opacity: 0;
  filter: blur(8px);
}
.btn:hover .label {
  transform: translateX(-26px);
}
.btn:hover .arrow {
  transform: none;
  opacity: 1;
  filter: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-deep);
}
.btn-ghost {
  background: hsl(0 0% 100% / 0.06);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover {
  background: hsl(0 0% 100% / 0.1);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-outline:hover {
  background: hsl(0 0% 100% / 0.06);
}
.btn-sm {
  min-height: 42px;
  padding: 0 16px 0 40px;
  font-size: 14px;
}
.btn-sm .lead {
  left: 15px;
  width: 16px;
  height: 16px;
}
.btn-sm .lead svg {
  width: 15px;
  height: 15px;
}
.btn-sm .arrow {
  right: 13px;
  width: 17px;
  height: 17px;
}
.btn-sm:hover .label {
  transform: translateX(-22px);
}
.btn-block {
  width: 100%;
  padding: 0 20px;
}
.btn-block:hover .label {
  transform: none;
}

/* ---------- Página ---------- */

main {
  display: flex;
  justify-content: center;
  padding: 0 32px 24px;
}
@media (min-width: 761px) and (min-height: 640px) {
  html {
    scroll-snap-type: y mandatory;
  }
}
@media (max-width: 760px), (max-height: 639px) {
  html {
    scroll-snap-type: y proximity;
  }
}
.snap {
  scroll-snap-align: start;
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: safe center;
}
.snap-end {
  scroll-snap-align: end;
}
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1280px;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  padding-top: clamp(92px, 13vh, 130px);
  justify-content: flex-start;
  text-align: center;
}
h1,
h2,
h3 {
  font-family: var(--font);
}
h1 {
  margin: 0;
  font-size: 50px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.045em;
}
h1 mark {
  background: none;
  color: var(--primary);
}
.lede {
  max-width: 660px;
  margin: 16px auto 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.fine {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--dim);
}

/* Faixa das casas: corre sozinha e acelera com a rolagem (site.js). */
.houses {
  position: relative;
  width: 100vw;
  margin: 46px 0 0 calc(50% - 50vw);
  overflow: hidden;
}
.houses-note {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--dim);
}
.houses-track {
  display: flex;
  gap: 44px;
  width: max-content;
  will-change: transform;
}
.houses-track span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: hsl(0 0% 100% / 0.42);
  white-space: nowrap;
  transition: color 300ms var(--std);
}
.houses-track span:hover {
  color: var(--text);
}
.houses {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}

/* ---------- Protagonista: a marca "oddnow" desenhada com odds (hero.js) ---------- */

.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero-art canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-mark {
  flex: none;
  width: min(92vw, 1240px);
  aspect-ratio: 4.712;
  margin: 0 auto 34px;
}

/* ---------- Palco: janela de navegador com o app ---------- */

.stage-wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
}
.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  padding: 18px 4px 0;
}
.counter {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 10px;
  font-family: var(--font);
}
.counter .num {
  font-size: 46px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.counter .of {
  font-size: 16px;
  font-weight: 600;
  color: var(--dim);
}
.counter .scene-name {
  margin-left: 8px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
  transition:
    opacity 260ms var(--std),
    filter 260ms var(--std);
}
.counter .scene-name.swap {
  opacity: 0;
  filter: blur(4px);
}
.steps {
  grid-column: 1 / -1;
  display: flex;
  gap: 5px;
  margin-top: 12px;
}
.steps i {
  position: relative;
  width: 30px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: hsl(0 0% 100% / 0.12);
}
.steps i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--expo);
}
.steps i.done::after {
  transform: none;
}

.browser {
  position: relative;
  width: min(100%, calc((100svh - 300px) * 1.6));
  aspect-ratio: 16 / 10;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg);
  box-shadow:
    0 0 0 1px hsl(0 0% 100% / 0.1),
    0 40px 90px -30px rgba(0, 0, 0, 0.95),
    0 0 120px -40px hsl(264 70% 66% / 0.35);
  user-select: none;
}
.viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stage-foot {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 16px auto 0;
  width: min(100%, calc((100svh - 300px) * 1.6));
}
.phases {
  position: relative;
  display: flex;
  flex: none;
  gap: 2px;
  padding: 5px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
}
.phase {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 300ms var(--std);
}
.phase:hover {
  color: var(--text);
}
.phase.on {
  color: #fff;
}
.phase:focus-visible {
  outline-offset: -2px;
}
.phase-slider {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: 8px;
  background: var(--primary);
  transition:
    transform 420ms var(--spring),
    width 420ms var(--spring);
}
.step-caption {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  transition:
    opacity 300ms var(--std),
    transform 300ms var(--std),
    filter 300ms var(--std);
}
.step-caption.swap {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(4px);
}
.stage-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- Calculadora ---------- */

.calc-sec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1120px;
  margin-top: 40px;
}
.calc-sec h2,
.closing h2 {
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.calc-sec h2 em,
.closing h2 em {
  font-style: normal;
  color: var(--primary);
}
.calc-sec h2 em {
  color: var(--sure);
}
.calc-lede {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.risks {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
}
.risks-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.risks ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.risks li {
  position: relative;
  padding-left: 20px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.risks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--down);
}
.risks-end {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}

.calc {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  box-shadow:
    inset 0 0 0 1px var(--border),
    0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.calc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
}
.seg-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 8px 14px;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 300ms var(--std);
}
.seg-btn.on {
  color: var(--text);
}
.seg-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 7px;
  background: var(--muted-bg);
  box-shadow: inset 0 0 0 1px var(--border);
  transition:
    transform 420ms var(--spring),
    width 420ms var(--spring);
}
.calc-reset {
  border: 0;
  background: none;
  padding: 8px 4px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: hsl(0 0% 100% / 0.2);
  text-underline-offset: 4px;
  cursor: pointer;
}
.calc-reset:hover {
  color: var(--text);
}
.legs {
  margin-top: 18px;
}
.cleg-head,
.cleg {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 104px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.cleg-head {
  padding: 0 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
}
.cleg-head span:nth-child(n + 3) {
  text-align: right;
}
.cleg {
  position: relative;
  padding: 10px 4px;
  border-top: 1px solid var(--border-soft);
  overflow: hidden;
}
.cleg.enter {
  animation: cleg-in 520ms var(--expo) both;
}
.cleg.leave {
  animation: cleg-out 320ms var(--std) both;
}
@keyframes cleg-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    max-height: 90px;
  }
}
@keyframes cleg-out {
  from {
    max-height: 90px;
  }
  to {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}
.cleg-name {
  min-width: 0;
}
.cleg-name b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cleg-name small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--dim);
}
.field {
  position: relative;
  display: block;
}
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.cleg input,
.money input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: box-shadow 200ms var(--std);
}
.cleg input:hover,
.money input:hover {
  box-shadow: inset 0 0 0 1px hsl(0 0% 30%);
}
.cleg input:focus,
.money input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1.5px var(--primary),
    0 0 0 3px hsl(264 70% 66% / 0.2);
}
.cleg input[aria-invalid="true"],
.money input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1.5px var(--down);
}
.cleg .out {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cleg .out.ret {
  color: var(--muted);
}
.err {
  display: block;
  min-height: 0;
  font-size: 12px;
  color: var(--down);
}
.cleg .err {
  grid-column: 2 / -1;
}
.err:empty {
  display: none;
}
.total-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.money {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 260px;
}
.money .prefix {
  position: absolute;
  left: 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  pointer-events: none;
}
.money input {
  padding-left: 40px;
  text-align: left;
}
.meter {
  position: relative;
  margin-top: 22px;
  height: 10px;
}
.meter-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: hsl(0 0% 100% / 0.06);
}
.meter-bar i {
  display: block;
  height: 100%;
  flex: none;
  transition: width 500ms var(--expo);
}
.meter-mark {
  position: absolute;
  top: -6px;
  left: var(--mark, 86%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  transition: left 500ms var(--expo);
}
.meter-mark i {
  display: block;
  width: 2px;
  height: 22px;
  border-radius: 1px;
  background: var(--text);
}
.meter-text {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.meter-text b {
  color: var(--text);
  font-weight: 600;
}
.result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: hsl(45 90% 65% / 0.08);
  box-shadow: inset 0 0 0 1px hsl(45 90% 65% / 0.45);
  transition:
    background 400ms var(--std),
    box-shadow 400ms var(--std);
}
.result.miss {
  background: hsl(4 82% 63% / 0.08);
  box-shadow: inset 0 0 0 1px hsl(4 82% 63% / 0.45);
}
.result.idle {
  background: hsl(0 0% 100% / 0.04);
  box-shadow: inset 0 0 0 1px var(--border);
}
.res-main {
  min-width: 0;
}
.res-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.res-value {
  display: block;
  margin-top: 4px;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--sure);
  transition: color 400ms var(--std);
}
.result.miss .res-value,
.result.miss .res-pct {
  color: var(--down);
}
.result.idle .res-value,
.result.idle .res-pct {
  color: var(--muted);
}
.res-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.res-pct {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sure);
  transition: color 400ms var(--std);
}
.res-ret {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.calc-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--dim);
}

/* ---------- Recursos ---------- */

.sec-title {
  margin: 0 0 40px;
  text-align: center;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.features {
  width: 100%;
  max-width: 1080px;
  margin-top: 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 20px;
}
.cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cell svg.icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  overflow: visible;
  fill: none;
  stroke: var(--text);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cell svg.icon * {
  transition:
    transform 400ms var(--expo),
    stroke 300ms var(--std),
    fill 300ms var(--std),
    stroke-dashoffset 600ms var(--expo);
  transform-box: fill-box;
  transform-origin: center;
}
.cell h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cell p {
  margin: 10px 0 0;
  max-width: 240px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* 1: colunas de odds, a mais alta ganha o destaque */
.f-compare rect {
  fill: hsl(0 0% 100% / 0.12);
  stroke: none;
  transform-origin: bottom center !important;
}
.f-compare .c2 {
  fill: var(--up);
}
.f-compare .best {
  stroke: var(--up);
}
.cell:hover .f-compare .c1 {
  transform: scaleY(1.3);
}
.cell:hover .f-compare .c3 {
  transform: scaleY(1.5);
}
.cell:hover .f-compare .c2 {
  transform: scaleY(1.12);
}
.cell:hover .f-compare .best {
  transform: translateY(-5px);
}
/* 2: o raio se desenha em amarelo */
.f-zap .bolt {
  stroke-dasharray: 190;
  stroke-dashoffset: 0;
}
.cell:hover .f-zap .bolt {
  stroke: var(--sure);
  fill: hsl(45 90% 65% / 0.18);
  animation: draw-190 700ms var(--expo);
}
@keyframes draw-190 {
  from {
    stroke-dashoffset: 190;
  }
}
/* 3: a linha despenca */
.f-drop .line,
.f-drop .head {
  stroke: var(--down);
}
.f-drop .axis {
  stroke: hsl(0 0% 100% / 0.2);
}
.f-drop .line {
  stroke-dasharray: 80;
}
.cell:hover .f-drop .line {
  animation: draw-80 700ms var(--expo);
}
.cell:hover .f-drop .head {
  transform: translate(3px, 4px);
}
@keyframes draw-80 {
  from {
    stroke-dashoffset: 80;
  }
}
/* 4: o sino balança */
.f-bell .body {
  transform-origin: 50% 0 !important;
}
.cell:hover .f-bell .body {
  animation: ring 800ms var(--std);
}
.cell:hover .f-bell .clap {
  stroke: var(--primary);
  animation: ring 800ms var(--std) 60ms;
}
@keyframes ring {
  20% {
    transform: rotate(14deg);
  }
  45% {
    transform: rotate(-10deg);
  }
  70% {
    transform: rotate(5deg);
  }
}
/* 5: as linhas do histórico se desenham */
.f-hist .axis {
  stroke: hsl(0 0% 100% / 0.2);
}
.f-hist .l1 {
  stroke: var(--primary);
  stroke-dasharray: 70;
}
.f-hist .l2 {
  stroke-dasharray: 60;
}
.cell:hover .f-hist .l1 {
  animation: draw-80 800ms var(--expo);
}
.cell:hover .f-hist .l2 {
  animation: draw-80 800ms var(--expo) 120ms both;
}
/* 6: alvo fecha no centro */
.f-target .dot {
  fill: var(--value);
  stroke: none;
}
.cell:hover .f-target .r1 {
  transform: scale(0.86);
}
.cell:hover .f-target .r2 {
  transform: scale(1.18);
  stroke: var(--value);
}
.cell:hover .f-target .dot {
  transform: scale(1.5);
}
/* 7: ondas saem do ponto */
.f-live .core {
  fill: var(--up);
  stroke: none;
}
.cell:hover .f-live .w1 {
  animation: wave 900ms var(--std);
}
.cell:hover .f-live .w2 {
  animation: wave 900ms var(--std) 150ms;
}
@keyframes wave {
  0% {
    opacity: 0.2;
    transform: scale(0.7);
  }
  60% {
    opacity: 1;
    transform: scale(1.08);
  }
}
/* 8: a cartola tira o chapéu */
.f-hat .hat {
  transform-origin: 20% 100% !important;
}
.f-hat .band {
  stroke: var(--primary);
}
.cell:hover .f-hat .hat {
  transform: translateY(-6px) rotate(-12deg);
}

/* ---------- Planos ---------- */

.plans {
  width: 100%;
  max-width: 1080px;
  margin-top: 40px;
}
.plans-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}
.plans-head .sec-title {
  margin-bottom: 20px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--border);
  transition: transform 400ms var(--expo);
}
.plan:hover {
  transform: translateY(-4px);
}
.plan-top {
  background: color-mix(in oklab, var(--card) 92%, hsl(264 70% 66%));
  box-shadow: inset 0 0 0 1.5px hsl(264 70% 66% / 0.75);
}
.plan h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-desc {
  margin: 6px 0 0;
  min-height: 3em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 22px 0 0;
}
.price .cur {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
}
.price .val {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price .per {
  font-size: 15px;
  color: var(--muted);
}
.bill {
  margin: 6px 0 20px;
  min-height: 1.5em;
  font-size: 13px;
  color: var(--dim);
}
.plan ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.plan li {
  position: relative;
  padding-left: 26px;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.28em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.plans-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Perguntas ---------- */

.faq {
  width: 100%;
  max-width: 760px;
}
.faq-list {
  border-top: 1px solid var(--border-soft);
}
.faq details {
  border-bottom: 1px solid var(--border-soft);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary i {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--muted);
  transition: transform 400ms var(--expo);
}
.faq summary i::after {
  transform: rotate(90deg);
}
.faq details[open] summary i::after {
  transform: rotate(0deg);
}
.faq .ans {
  overflow: hidden;
}
.faq .ans p {
  margin: 0;
  padding: 0 4px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Chamada final ---------- */

/* Chamada final e rodapé dividem a última tela (uma área de snap só). */
.final {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 76px);
  scroll-snap-align: start;
}
.closing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  padding: 24px 32px 40px;
  text-align: center;
}
.closing h2 {
  font-size: 64px;
}
.closing-lede {
  max-width: 520px;
  margin: 18px auto 32px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Rodapé ---------- */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
}
.foot-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.age {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.foot-rg {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.foot-rg:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 20px 0 0;
  font-size: 14px;
}
.links a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: hsl(264 70% 66% / 0.5);
  text-underline-offset: 4px;
  transition: color 300ms var(--std);
}
.links a:hover {
  color: var(--text);
}
.legal {
  max-width: 760px;
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.65;
  color: var(--dim);
}
.giant {
  height: 0.62em;
  margin-top: 14px;
  overflow: hidden;
  font-size: min(14vw, 12rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.06em;
  white-space: nowrap;
  background: linear-gradient(to bottom, hsl(0 0% 100% / 0.08) 25%, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- Abertura ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}
.intro.gone {
  display: none;
}
.intro-parts {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.intro-part {
  position: absolute;
  overflow: hidden;
}
.intro-part img {
  position: absolute;
  top: 0;
  height: 100%;
  max-width: none;
}
.intro-band {
  position: absolute;
  top: -10%;
  left: 0;
  z-index: 1;
  width: 46vw;
  height: 120%;
  background: var(--primary);
  transform: translateX(-70vw) skewX(-24deg);
}
html.intro-on body {
  overflow: hidden;
}

/* Odômetro: cada caractere é um span; o que sai fica absoluto no lugar. */
.roll {
  position: relative;
  display: inline-flex;
}
.roll > span {
  position: relative;
  display: inline-block;
  white-space: pre;
}
.roll > span.out {
  position: absolute;
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Telas menores ---------- */

@media (max-width: 1100px) {
  .calc-sec {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 640px;
  }
  .calc-sec h2 {
    font-size: 46px;
  }
}
@media (max-width: 1023px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-link.hide-md {
    display: none;
  }
  h1 {
    font-size: 44px;
  }
  .stage-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .phases {
    align-self: center;
  }
  .step-caption {
    min-height: 3em;
    text-align: center;
  }
  .plan {
    padding: 20px 18px;
  }
  .price .val {
    font-size: 38px;
  }
}
@media (max-width: 767px) {
  h1 {
    font-size: 40px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .sec-title {
    font-size: 36px;
  }
  .closing h2 {
    font-size: 46px;
  }
}
@media (max-width: 639px) {
  main {
    padding: 0 16px 32px;
  }
  .header-inner {
    padding: 14px 16px;
  }
  .header.scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-link.hide-sm {
    display: none;
  }
  .brand-logo {
    height: 24px;
  }
  .hero {
    padding-top: 84px;
  }
  .hero-mark {
    width: calc(100vw - 32px);
    aspect-ratio: 1.2;
    margin-bottom: 26px;
  }
  h1 {
    font-size: 34px;
  }
  .lede {
    margin-top: 14px;
    font-size: 17px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
  }
  .houses {
    margin-top: 34px;
  }
  .houses-track span {
    font-size: 16px;
  }
  .houses-track {
    gap: 30px;
  }
  .stage-wrap {
    padding-top: 16px;
  }
  .counter .num {
    font-size: 34px;
  }
  .counter .scene-name {
    font-size: 15px;
    margin-left: 2px;
  }
  .browser {
    width: 100%;
    aspect-ratio: 10 / 13;
    max-height: calc(100svh - 300px);
    border-radius: 12px;
  }
  .stage-foot {
    width: 100%;
  }
  .phases {
    align-self: stretch;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .phases::-webkit-scrollbar {
    display: none;
  }
  .phase {
    flex: 1;
    padding: 9px 10px;
    font-size: 13px;
  }
  .step-caption {
    font-size: 14px;
    min-height: 4.5em;
  }
  .stage-note {
    font-size: 12px;
  }
  .calc-sec {
    margin-top: 24px;
  }
  .calc-sec h2 {
    font-size: 36px;
  }
  .calc-lede {
    font-size: 16px;
  }
  .calc {
    padding: 16px;
    border-radius: 14px;
  }
  .calc-top {
    flex-wrap: wrap;
  }
  .cleg-head {
    display: none;
  }
  .cleg {
    grid-template-columns: 1fr 104px;
    grid-template-areas:
      "name odd"
      "stake ret"
      "err err";
    row-gap: 8px;
  }
  .cleg .cleg-name {
    grid-area: name;
  }
  .cleg .field {
    grid-area: odd;
  }
  .cleg .out.stake {
    grid-area: stake;
    text-align: left;
  }
  .cleg .out.ret {
    grid-area: ret;
  }
  .cleg .err {
    grid-area: err;
  }
  .cleg .out::before {
    display: block;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    color: var(--dim);
  }
  .cleg .out.stake::before {
    content: "Apostar";
  }
  .cleg .out.ret::before {
    content: "Retorno";
  }
  .money {
    max-width: none;
  }
  .result {
    flex-direction: column;
    align-items: flex-start;
  }
  .res-side {
    align-items: flex-start;
    text-align: left;
  }
  .res-value {
    font-size: 28px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .plan {
    padding: 22px;
  }
  .seg-period .seg-btn {
    padding: 8px 10px;
    font-size: 13px;
  }
  .faq summary {
    font-size: 16px;
  }
  .giant {
    font-size: 25vw;
  }
  footer {
    padding: 24px 16px 0;
  }
}

/* Janelas baixas: herói e títulos menores para a seção caber. */
@media (max-height: 820px) and (min-width: 640px) {
  .hero {
    padding-top: 92px;
  }
  .hero-mark {
    width: min(90vw, 1100px, calc((100svh - 470px) * 4.712));
    margin-bottom: 24px;
  }
  h1 {
    font-size: 42px;
  }
  .lede {
    margin-top: 16px;
    font-size: 18px;
  }
  .cta-row {
    margin-top: 26px;
  }
  .houses {
    margin-top: 28px;
  }
  .closing h2 {
    font-size: 48px;
  }
  .giant {
    font-size: min(10vw, 8rem);
  }
  .sec-title {
    margin-bottom: 28px;
    font-size: 38px;
  }
  .plan {
    padding: 20px 22px;
  }
  .price {
    margin-top: 14px;
  }
  .plan ul {
    margin-top: 14px;
  }
}

/* "Reduzir movimento": sem rolagem suave; o resto se ajusta no site.js. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
