/* Site da marca Kiwi (kiwisports.com.br).
   Duas cores, como o logo: navy e amarelo bola, com branco-gelo de apoio.
   A página é uma troca de bola: o rally no hero, os produtos passando na
   rolagem, a bola de raquete em raquete nas modalidades e, no fim, a bola
   que vira a metade amarela do logo. Desenhos: só os ilustrados do reel.
   Seções em folhas arredondadas, com a costura em S no rodapé. */

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0b1b3f;
  --ball: #d8f24a;
  --ice: #f6f7f9;
  --slate: #5b6475;
  --white: #ffffff;
  --on-navy-2: #d2d9e8; /* texto secundário no navy, tingido do próprio navy: 11,9:1 */
  --on-ball-2: #2d3a55; /* texto secundário no amarelo: 9:1 */
  --ball-hover: #e2f76f;
  --navy-hover: #1a2b52;

  --display: 'Nunito', ui-rounded, system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --section: clamp(72px, 10vw, 136px);
  --seam-h: clamp(40px, 7vw, 104px);
  --sheet: clamp(32px, 4vw, 56px); /* raio das folhas de seção */

  --r-panel: 48px;
  --r-pill: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--navy) var(--ice);
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ball);
  color: var(--navy);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1.5px;
}

a,
button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
.reel :focus-visible,
.footer :focus-visible,
.not-found :focus-visible {
  outline-color: var(--ball);
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* ---------- Botões e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font: 800 1.0625rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition:
    transform 140ms var(--ease-out),
    background-color 200ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.975rem;
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-ball {
  background: var(--ball);
  color: var(--navy);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .btn-navy:hover {
    background: var(--navy-hover);
  }
  .btn-ball:hover {
    background: var(--ball-hover);
  }
  .text-link:hover {
    text-decoration-thickness: 2.5px;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 36px;
}

/* ---------- Topo ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}
.brand img {
  width: 118px;
  height: auto;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--slate);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--navy);
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 4vw, 48px) calc(var(--sheet) + clamp(40px, 5vw, 72px));
}
.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 1.4rem + 3.8vw, 4.4rem);
  line-height: 1.02;
}
.lead {
  max-width: 36ch;
  margin-top: 24px;
  color: var(--slate);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
}

/* Sublinhado à mão, navy no claro (amarelo nunca vira traço no branco). */
.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.brush {
  position: absolute;
  max-width: none;
  left: -0.04em;
  bottom: -0.1em;
  width: calc(100% + 0.12em);
  height: 0.2em;
  fill: var(--navy);
  pointer-events: none;
  animation: brush-draw 700ms var(--ease-out) 700ms both;
}
@keyframes brush-draw {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.hero-copy > * {
  animation: rise 760ms var(--ease-out) both;
}
.hero-copy > :nth-child(2) {
  animation-delay: 90ms;
}
.hero-copy > :nth-child(3) {
  animation-delay: 180ms;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Cena do rally: raquetes do reel trocando bola dentro de um arco amarelo. */
.rally {
  margin: 0;
}
#rally {
  width: 100%;
  height: auto;
  overflow: visible;
}
#rally .arena {
  fill: var(--ball);
}
#rally .ink {
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
}
#rally .floor {
  fill: var(--navy);
  stroke: none;
}
#rally .net {
  stroke-width: 5;
}
#rally .net-mesh {
  fill: var(--white);
  stroke-width: 3;
}
#rally .net-lines {
  stroke-width: 1.5;
  stroke-opacity: 0.5;
}
#rally .net-cap {
  fill: var(--navy);
  stroke: none;
}
#rally .puff {
  stroke-width: 4.5;
  opacity: 0;
}
#rally .shadow {
  fill: var(--navy);
  opacity: 0.2;
}
#rally .ball-rim {
  fill: var(--white);
}
#rally .ball {
  fill: var(--ball);
  stroke: var(--navy);
  stroke-width: 3.5;
}
#rally .ball-seam {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}
.rally-toggle {
  display: block;
  min-height: 36px;
  margin: 8px 0 0 auto;
  padding: 0 14px;
  border: 1.5px solid var(--navy);
  border-radius: var(--r-pill);
  background: var(--ice);
  color: var(--navy);
  font: 600 0.8rem/1 var(--text);
  cursor: pointer;
}

/* ---------- Folhas de seção (topo arredondado, uma sobre a outra) ---------- */

.reel,
.sports,
.finale {
  position: relative;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
}

/* ---------- Produtos: a faixa prende e os painéis passam ---------- */

.reel {
  z-index: 1;
  background: var(--navy);
  color: var(--white);
}
.reel-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4vh, 48px);
  min-height: 100svh;
  padding-block: clamp(48px, 8vh, 88px);
  overflow: hidden;
}
.reel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.reel h2,
.sports h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.3rem);
  line-height: 1.06;
}
.reel-progress {
  position: relative;
  flex: none;
  width: min(240px, 30vw);
  height: 20px;
}
.reel-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 9px;
  border-top: 2px dashed rgb(246 247 249 / 0.35);
}
.reel-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ball);
}
.reel-track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(78vw, 1040px);
  min-height: min(60svh, 540px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-panel);
  color: var(--navy);
  overflow: hidden;
}
.panel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.status {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font: 600 0.8rem/1 var(--text);
}
.status-live {
  background: var(--navy);
  color: var(--ball);
}
.status-soon {
  border: 1.5px solid var(--navy);
}
.panel h3 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
  line-height: 1;
}
.who {
  margin-top: 8px;
  font: 800 1.2rem/1.2 var(--display);
}
.desc {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--slate);
}
.panel .btn,
.panel .text-link {
  margin-top: 28px;
}
.panel-art {
  justify-self: center;
  width: 92%;
  height: auto;
  max-height: 44svh;
  object-fit: contain;
}
.panel-play {
  background: var(--ice);
}
.panel-coach {
  background: var(--ball);
}
.panel-coach .desc {
  color: var(--on-ball-2);
}
.panel-club {
  background: var(--white);
}

/* ---------- Modalidades: a bola passa de raquete em raquete ---------- */

.sports {
  z-index: 2;
  background: var(--ball);
}
.sports-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 6vh, 64px);
  min-height: 100svh;
  padding-block: clamp(56px, 9vh, 96px) clamp(48px, 8vh, 88px);
  overflow: hidden;
}
.sports-head p {
  max-width: 40ch;
  margin-top: 14px;
  color: var(--on-ball-2);
  font-size: 1.125rem;
}
.sports-stage {
  position: relative;
}
.sports-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(16px, 3vw, 48px);
}
.sport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.sport img {
  width: auto;
  height: clamp(150px, 26vh, 260px);
  max-width: 100%;
  object-fit: contain;
  transform-origin: 72% 92%;
}
.sport-name {
  position: relative;
  padding-bottom: 10px;
  font: 800 clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem) / 1.1 var(--display);
}
/* Fio sob o nome: cresce quando a bola chega na raquete. */
.sport-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--navy);
  transform-origin: left center;
}
.sports-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}
.sb-rim {
  fill: var(--white);
}
.sb-ball {
  fill: var(--ball);
  stroke: var(--navy);
  stroke-width: 3.5;
}
.sb-seam {
  fill: none;
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

/* ---------- Final: a bola vira o logo ---------- */

.finale {
  z-index: 3;
  background: var(--ice);
  padding-block: clamp(64px, 9vw, 120px) calc(var(--seam-h) + clamp(56px, 7vw, 96px));
}
.finale-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.finale-symbol {
  width: clamp(160px, 22vw, 260px);
  height: auto;
  overflow: visible;
}
.finale h2 {
  max-width: 14ch;
  margin-top: clamp(28px, 4vw, 44px);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem);
  line-height: 1.04;
}
.finale-lead {
  margin-top: 16px;
  color: var(--slate);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
}
.finale .actions {
  justify-content: center;
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 760px);
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  border-radius: var(--r-panel);
  background: var(--white);
}
.contact h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.1;
}
.contact p {
  max-width: 44ch;
  margin-top: 14px;
  color: var(--slate);
}

/* E-mail grande com marca-texto amarelo por trás (amarelo nunca vira texto). */
.mail {
  position: relative;
  display: inline-block;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 0.2em 0.35em;
  font: 800 clamp(1.25rem, 0.6rem + 2.6vw, 2.4rem) / 1.15 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail span {
  position: relative;
  z-index: 1;
}
.mail svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--ball);
  transform: rotate(-0.8deg);
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mail:hover svg {
    transform: rotate(0.6deg) scale(1.02);
  }
}

/* ---------- Rodapé, com a costura em S ---------- */

.seam {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: var(--seam-h);
  overflow: visible;
  pointer-events: none;
}
.seam-line {
  fill: var(--ball);
}
.footer {
  position: relative;
  z-index: 4;
  background: var(--navy);
  color: var(--on-navy-2);
  padding-top: calc(var(--seam-h) + clamp(48px, 6vw, 80px));
  font-size: 0.975rem;
}
.footer .seam-prev {
  fill: var(--ice);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-brand img {
  width: 130px;
  height: auto;
}
.footer-brand p {
  max-width: 28ch;
  margin-top: 16px;
}
.footer-col h2 {
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: 0;
}
.footer-col ul {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}
.footer-col li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 36px;
}
.footer-col a {
  color: var(--white);
  text-decoration: none;
}
.soon {
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--ball);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    text-decoration: underline;
    text-decoration-color: var(--ball);
    text-decoration-thickness: 2px;
  }
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-block: 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgb(246 247 249 / 0.14);
  font-size: 0.9rem;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* No celular nada prende: os painéis empilham e as raquetes ficam em 2×2. */
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .topbar {
    justify-content: space-between;
  }
  .reel-pin,
  .sports-pin {
    min-height: 0;
  }
  .reel-progress {
    display: none;
  }
  .reel-track {
    flex-direction: column;
    width: auto;
  }
  .panel {
    grid-template-columns: 1fr;
    width: auto;
    min-height: 0;
    border-radius: 32px;
  }
  .panel-art {
    max-height: 220px;
  }
  .sports-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .sport img {
    height: 170px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 420px) {
  .topbar .btn-sm {
    padding: 0 16px;
    font-size: 0.9rem;
  }
  .brand img {
    width: 96px;
  }
}

/* Menos movimento: tudo parado e no lugar (o JS também não prende nada). */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
  }
  .brush {
    animation: brush-fade 300ms ease 200ms both;
  }
  @keyframes brush-fade {
    from {
      opacity: 0;
    }
  }
  .btn,
  .mail svg {
    transition: none;
  }
  .rally-toggle {
    display: none;
  }
}

/* ---------- 404 ---------- */

.not-found {
  background: var(--navy);
  color: var(--white);
}
.not-found-body {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 48px;
}
.not-found-body .brand img {
  width: 118px;
}
.not-found-body h1 {
  max-width: 13ch;
  margin-top: clamp(48px, 10vw, 96px);
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem);
  line-height: 1.04;
}
.not-found-body .lead {
  color: var(--on-navy-2);
}
.not-found-body .text-link {
  color: var(--white);
}
