/* Arena Bot — site de vendas. Mesma família do painel: areia no fundo, azul de
   mar, amarelo de bola de vôlei, Archivo. Gesto próprio: as linhas da quadra
   atrás do celular e o tracejado de "horário livre" ligando os passos. Ver DESIGN.md. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f4ecdc;
  --bg-alt: #ece1ca;
  --surface: #fffbf2;
  --shell: #0e3b5c;
  --on-shell: #f6f1e4;
  --on-shell-soft: #b3c9da;
  --ink: #14283a;
  --ink-soft: #4f5f6e;
  --line: #dccfb4;
  --line-strong: #bba98a;
  --accent: #1769aa;
  --accent-hover: #12588f;
  --on-accent: #ffffff;
  --accent-2: #d9730d;
  --sun: #f6b90a;
  --sun-hover: #ffc929;
  --on-sun: #14283a;
  --ok: #17643d;
  --focus: #1b6fd6;
  --radius: 10px;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999rem; top: 0.5rem; z-index: 20; padding: 0.6rem 1rem; background: var(--accent); color: var(--on-accent); font-weight: 600; border-radius: var(--radius); }
.skip:focus { left: 0.5rem; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); line-height: 1.08; }
h3 { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
.eyebrow { color: var(--accent); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.35rem;
  background: var(--accent); color: var(--on-accent);
  border: 1.5px solid var(--accent); border-radius: var(--radius);
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-soft); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--on-sun); }
.btn-sun:hover { background: var(--sun-hover); border-color: var(--sun-hover); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.9375rem; }
.btn-big { min-height: 3.5rem; padding: 0.9rem 1.8rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Topo */
.top { position: sticky; top: 0; z-index: 10; background: rgb(244 236 220 / 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { flex: none; }
.top-nav { display: none; gap: 1.6rem; margin-left: auto; font-size: 0.9375rem; }
.top-nav a { color: var(--ink-soft); text-decoration: none; padding-block: 0.5rem; }
.top-nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 56rem) {
  .top-nav { display: flex; }
  .top .btn { margin-left: 0; }
}

/* Abertura */
.hero { position: relative; isolation: isolate; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); overflow: hidden; overflow: clip; }
.hero::before {
  content: ""; position: absolute; z-index: -2; inset: 0;
  background:
    radial-gradient(34rem 24rem at 80% 38%, rgb(246 185 10 / 0.38), transparent 70%),
    radial-gradient(30rem 20rem at 8% 100%, rgb(23 105 170 / 0.12), transparent 70%);
}
/* A quadra vista de cima, deitada em perspectiva atrás do celular. */
.court-lines {
  position: absolute; z-index: -1; left: 50%; bottom: -2rem; width: 96rem; max-width: none; height: 44rem;
  transform: translateX(-50%) perspective(70rem) rotateX(64deg);
  transform-origin: 50% 100%;
  fill: none; stroke: rgb(20 40 58 / 0.2); stroke-width: 2; vector-effect: non-scaling-stroke;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%); mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.court-lines * { vector-effect: non-scaling-stroke; }
.court-lines .net { stroke: rgb(23 105 170 / 0.6); stroke-dasharray: 2 7; stroke-width: 3; }

.hero-in { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero-copy { max-width: 37rem; }
h1 { margin-top: 0.9rem; font-size: clamp(2.5rem, 7.2vw, 4.5rem); line-height: 0.98; letter-spacing: -0.04em; }
h1 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 66%, rgb(246 185 10 / 0.6) 66% 92%, transparent 92%); }
.lead { margin-top: 1.4rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.9375rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-facts li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); }
@media (min-width: 60rem) {
  .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* Celular com a conversa */
.phone-stage { display: grid; justify-items: center; gap: 1rem; }
.phone {
  width: min(100%, 21rem); height: 36rem; display: flex; flex-direction: column;
  background: #0a2c46; border: 1px solid #0a2c46; border-radius: 2.4rem; padding: 0.6rem;
  box-shadow: 0 0 0 0.35rem var(--shell), 0 2.5rem 4rem -1.5rem rgb(20 40 58 / 0.55);
  transform: rotate(1.5deg);
}
.phone-bar { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.9rem; background: var(--shell); color: var(--on-shell); border-radius: 1.9rem 1.9rem 0.6rem 0.6rem; }
.phone-avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sun); color: var(--on-sun); font-size: 0.8125rem; font-weight: 700; }
.phone-who { display: grid; line-height: 1.2; font-size: 0.9375rem; }
.phone-who small { color: #8fe0b5; font-size: 0.75rem; }
.chat {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  padding: 0.75rem 0.6rem 0.6rem; overflow-y: auto; scrollbar-width: thin; border-radius: 0.6rem 0.6rem 1.9rem 1.9rem;
  background: #efe6d2;
}
.msg { flex: none; display: flex; margin-top: 0.45rem; max-height: 22rem; }
.msg.me { justify-content: flex-end; }
.msg > p, .msg > .qr {
  max-width: 86%; padding: 0.5rem 0.75rem; border-radius: 0.9rem 0.9rem 0.9rem 0.25rem;
  background: var(--surface); font-size: 0.875rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(20 40 58 / 0.12);
}
.msg.me > p { background: #d5efc4; border-radius: 0.9rem 0.9rem 0.25rem 0.9rem; }
.msg b { font-weight: 700; }
.msg .file { display: inline-flex; align-items: center; gap: 0.45rem; }
.msg > .qr { padding: 0.55rem; background: #fff; width: 8.5rem; }
.msg > .qr svg { width: 100%; height: auto; }
.replay { background: none; border: 0; padding: 0.4rem 0.6rem; color: var(--ink-soft); font: inherit; font-size: 0.875rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.replay:hover { color: var(--ink); }

/* Parada (sem JS, com movimento reduzido ou depois de tocar), a conversa inteira fica ali e rola.
   Tocando, cada balão ocupa espaço só quando chega e empurra os antigos para cima. */
.chat.play { justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 2.5rem); mask-image: linear-gradient(to bottom, transparent, #000 2.5rem); }
@media (prefers-reduced-motion: no-preference) {
  .chat.play .msg { animation: msg-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; animation-delay: calc(0.8s + var(--i) * 1.25s); }
  @keyframes msg-in {
    from { max-height: 0; margin-top: 0; opacity: 0; transform: translateY(0.6rem); }
    to { max-height: 22rem; opacity: 1; transform: none; }
  }
}

/* Faixa dos esportes */
.sports { background: var(--shell); color: var(--on-shell); }
.sports-in { display: grid; gap: 0.75rem 3rem; align-items: center; padding-block: 1.75rem; }
.sports-names { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; font-size: clamp(1.375rem, 3.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.sports-names span:not(:last-child)::after { content: "/"; margin-left: 1.5rem; color: var(--sun); font-weight: 400; }
.sports-note { color: var(--on-shell-soft); font-size: 0.9375rem; max-width: 30rem; }
@media (min-width: 56rem) { .sports-in { grid-template-columns: auto 1fr; } .sports-note { justify-self: end; } }

/* Seções */
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin-top: 0.75rem; }
.section-lead { margin-top: 1rem; color: var(--ink-soft); font-size: 1.125rem; max-width: 38rem; }

/* Passos: o tracejado é o "horário livre" da agenda do painel. */
.steps { display: grid; gap: 2rem; counter-reset: step; }
.steps li { position: relative; padding-top: 1.5rem; border-top: 2px dashed var(--line-strong); }
.step-n { display: block; margin-bottom: 0.9rem; font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.steps h3 { font-size: 1.3125rem; }
.steps p { margin-top: 0.6rem; color: var(--ink-soft); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Telas do painel */
.shots { display: grid; gap: 1.5rem; }
.shot { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.frame { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 2rem 3.5rem -2rem rgb(20 40 58 / 0.5); }
.frame img { width: 100%; object-fit: cover; object-position: top left; }
.shot figcaption { color: var(--ink-soft); font-size: 0.9375rem; }
.shot figcaption strong { color: var(--ink); }
@media (max-width: 47.99rem) {
  /* No celular, as três telas viram uma fila que desliza para o lado. */
  .shots { grid-auto-flow: column; grid-auto-columns: min(78%, 19rem); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .shot { scroll-snap-align: center; }
  .frame { border-radius: 1.5rem; }
  .frame img { aspect-ratio: 390 / 760; }
}
@media (min-width: 48rem) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .shot-main { grid-column: 1 / -1; }
  .shot-main .frame img { aspect-ratio: 1280 / 720; }
  /* As duas telas menores mostram um recorte ampliado, sem a barra lateral, para o texto ficar legível. */
  .frame.zoom { aspect-ratio: 1280 / 900; }
  .frame.zoom img { width: 150%; max-width: none; margin-left: -30%; }
  .frame.zoom-end img { margin-top: -76%; }
}

/* Vantagens: lista com fios, sem caixas. */
.gains { display: grid; gap: 0 3rem; }
.gains li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem 1rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.gains svg { fill: none; stroke: var(--accent-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gains p { grid-column: 2; color: var(--ink-soft); }
@media (min-width: 44rem) { .gains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .gains { grid-template-columns: repeat(3, 1fr); } }

/* Planos */
.founder { margin-bottom: 1.5rem; padding: 0.9rem 1.1rem; border: 1px dashed #b98a00; border-radius: var(--radius); background: rgb(246 185 10 / 0.18); }
.founder strong { color: #6f4a00; }
.plans { display: grid; gap: 1.25rem; }
.plan { display: grid; align-content: start; padding: 1.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.plan-mid { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 1.5rem 3rem -1.5rem rgb(23 105 170 / 0.45); }
.plan h3 { font-size: 1.375rem; }
.plan-for { margin-top: 0.2rem; color: var(--ink-soft); }
.plan-price { margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.3rem; }
.plan-price .num { font-size: clamp(2.5rem, 6vw, 3.25rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price .plan-ask { font-size: clamp(1.75rem, 4.5vw, 2.125rem); line-height: 1.5; }
.plan-price small { color: var(--ink-soft); font-size: 1rem; }
.plan-founder { margin: 0.5rem 0 1.5rem; color: var(--ink-soft); font-size: 0.9375rem; }
@media (min-width: 52rem) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan-all { display: grid; gap: 2rem 3rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.plan-all h3 { margin-bottom: 1rem; }
.ticks, .terms { display: grid; gap: 0.7rem; color: var(--ink-soft); }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.6rem; }
.ticks li::before { content: ""; width: 0.7rem; height: 0.38rem; margin-top: 0.5rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.terms strong { color: var(--ink); }
@media (min-width: 52rem) { .plan-all { grid-template-columns: 1fr 1fr; } }

/* Dúvidas */
.faq-wrap { display: grid; gap: 0 4rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 2rem 1.3rem 0; color: var(--ink-soft); max-width: 42rem; }
@media (min-width: 60rem) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; align-items: start; } .faq-wrap .section-head { position: sticky; top: 6rem; } }

/* Fechamento */
.closing { position: relative; isolation: isolate; padding-block: var(--section); background: var(--shell); color: var(--on-shell); overflow: hidden; overflow: clip; text-align: center; }
.closing::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(40rem 18rem at 50% 110%, rgb(246 185 10 / 0.3), transparent 70%); }
.closing-in { display: grid; justify-items: center; gap: 1.25rem; max-width: 44rem; }
.closing p { color: var(--on-shell-soft); font-size: 1.125rem; max-width: 34rem; }
.closing .btn { margin-top: 0.75rem; }

/* Rodapé */
.foot { padding-block: 2rem; background: var(--bg-alt); font-size: 0.9375rem; color: var(--ink-soft); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.foot .brand { color: var(--ink); font-size: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

/* Entrada das seções ao rolar: o JS só esconde o que ainda está abaixo da tela. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.wait { opacity: 0; transform: translateY(1.25rem); }
  .reveal { transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1); }
}
@media print { .reveal.wait { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .phone { transform: none; }
}
