/* =============================================================================
   World Beach Tennis — landing pages de captação
   Design system único, sem framework e sem build. Um só request de CSS.

   Direção: alta energia esportiva. Fundo oceano profundo, texto areia,
   CORAL como única cor de ação — o verde do WhatsApp aparece só no ícone,
   para não existirem dois botões competindo pela atenção.
   ============================================================================= */

/* ---------- tokens ---------- */
:root {
  --ocean-950: #04121f;
  --ocean-900: #071c2e;
  --ocean-800: #0b2c46;
  --ocean-700: #114260;
  --ocean-line: rgba(244, 231, 211, 0.14);

  --coral: #ff5a1f;
  --coral-600: #e34608;
  --coral-glow: rgba(255, 90, 31, 0.35);

  --sand: #f4e7d3;
  --sand-dim: #c9b89e;
  --white: #ffffff;
  --wa-green: #25d366;

  --danger: #ff6b6b;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 40px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

/* ---------- reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ocean-950);
  color: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--coral); color: var(--white); padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: clamp(.68rem, 2.4vw, .78rem);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.02; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.4rem, 8.5vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.75rem, 5.2vw, 2.75rem); text-transform: uppercase; }
h3 { font-size: 1.06rem; letter-spacing: -0.01em; line-height: 1.3; }
.accent { color: var(--coral); }

.lead {
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  color: var(--sand-dim);
  margin: 20px 0 0;
  max-width: 52ch;
}

/* ---------- botões ---------- */
.btn-wa {
  --btn-bg: var(--coral);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--btn-bg);
  color: var(--white);
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 17px 30px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 30px -8px var(--coral-glow);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
  text-align: center;
}
.btn-wa:hover { background: var(--coral-600); transform: translateY(-2px); box-shadow: 0 16px 36px -10px var(--coral-glow); }
.btn-wa:active { transform: translateY(0); }
.btn-wa svg { flex: none; width: 22px; height: 22px; fill: currentColor; }

.btn-wa--lg { font-size: clamp(1rem, 3.6vw, 1.15rem); padding: 20px 38px; width: 100%; }
@media (min-width: 620px) { .btn-wa--lg { width: auto; } }

.btn-wa--block { width: 100%; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--sand);
  border: 1px solid var(--ocean-line);
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700;
}
.btn-ghost:hover { border-color: var(--sand-dim); }

.btn-note {
  margin: 14px 0 0; font-size: .84rem; color: var(--sand-dim);
  display: flex; align-items: center; gap: 7px;
}
.btn-note svg { width: 15px; height: 15px; fill: var(--wa-green); flex: none; }

/* ---------- hero ---------- */
/* A foto entra como camada opcional. Quando o arquivo existir, basta definir
   --hero-photo (ver bloco "TROCA DE FOTO" no fim deste arquivo) — o gradiente
   continua por baixo garantindo contraste do texto em qualquer imagem. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--ocean-950);
  background-image:
    radial-gradient(1100px 620px at 88% -8%, rgba(255, 90, 31, .30), transparent 62%),
    radial-gradient(900px 560px at 6% 108%, rgba(17, 66, 96, .85), transparent 58%),
    linear-gradient(168deg, var(--ocean-900) 0%, var(--ocean-950) 68%),
    var(--hero-photo, none);
  background-size: auto, auto, auto, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}
/* Faixa diagonal: dá o movimento de quadra sem custar uma requisição. */
.hero::before {
  content: "";
  position: absolute; inset: -30% -10% auto auto;
  width: 62%; height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, .10));
  transform: rotate(14deg);
  z-index: -1;
  pointer-events: none;
}
.hero__inner { padding-block: clamp(56px, 12vw, 104px) clamp(48px, 10vw, 88px); }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(36px, 8vw, 60px); }
.brand img { height: 38px; width: auto; }
.brand__text {
  font-weight: 900; text-transform: uppercase; letter-spacing: .09em;
  font-size: .82rem; color: var(--sand);
}
.brand__text span { color: var(--coral); }

/* ---------- prova social ---------- */
.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid var(--ocean-line);
}
.proof__avatars { display: flex; }
.proof__avatars span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ocean-950);
  background: linear-gradient(135deg, var(--coral), var(--ocean-700));
  margin-left: -11px;
}
.proof__avatars span:first-child { margin-left: 0; }
.proof__text { font-size: .88rem; color: var(--sand-dim); }
.proof__text b { color: var(--sand); }

/* ---------- seções ---------- */
.section { padding-block: clamp(56px, 11vw, 96px); }
.section--line { border-top: 1px solid var(--ocean-line); }
.section__head { max-width: 60ch; margin-bottom: clamp(32px, 6vw, 52px); }
.section__head .lead { margin-top: 16px; }

/* ---------- benefícios ---------- */
.benefits {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .benefits { grid-template-columns: repeat(4, 1fr); } }

.benefit {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--ocean-line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
}
.benefit__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 90, 31, .14);
  margin-bottom: 18px;
}
.benefit__icon svg { width: 23px; height: 23px; stroke: var(--coral); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.benefit p { margin: 9px 0 0; font-size: .93rem; color: var(--sand-dim); }

/* ---------- formulário ---------- */
.form-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid var(--ocean-line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 34px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.85);
}
.form-card h2 { font-size: clamp(1.35rem, 4.4vw, 1.75rem); }
.form-card__sub { margin: 12px 0 26px; color: var(--sand-dim); font-size: .95rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .82rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--sand-dim); margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: rgba(4, 18, 31, .72);
  border: 1.5px solid var(--ocean-line);
  border-radius: var(--radius);
  padding: 15px 16px;
  color: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: rgba(201, 184, 158, .5); }
.field input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, .18);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  display: none;
  margin: 7px 0 0; font-size: .82rem; color: var(--danger);
}
.field__error:not(:empty) { display: block; }

/* honeypot: fora da tela, mas não display:none (bot ignora display:none) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  margin: 0 0 18px; padding: 13px 15px;
  border-radius: var(--radius);
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .35);
  color: #ffc9c9; font-size: .88rem;
}
.form-status[hidden] { display: none; }

button[aria-busy="true"] { opacity: .72; pointer-events: none; }
button[aria-busy="true"] .btn-label::after {
  content: ""; display: inline-block; width: 14px; height: 14px;
  margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.privacy {
  margin: 18px 0 0; font-size: .78rem; color: var(--sand-dim);
  display: flex; gap: 8px; align-items: flex-start;
}
.privacy svg { width: 14px; height: 14px; fill: var(--sand-dim); flex: none; margin-top: 3px; }

/* Hero em duas colunas na LP com formulário */
.hero--split .hero__grid { display: grid; gap: clamp(34px, 6vw, 56px); align-items: center; }
@media (min-width: 940px) {
  .hero--split .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--ocean-line);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400;
  color: var(--coral); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; color: var(--sand-dim); font-size: .94rem; }

/* ---------- CTA final ---------- */
.final { text-align: center; }
.final .lead { margin-inline: auto; }
.final .btn-wa { margin-top: 30px; }

/* ---------- rodapé ---------- */
.footer {
  border-top: 1px solid var(--ocean-line);
  padding-block: 34px;
  font-size: .82rem; color: var(--sand-dim);
}
.footer__row { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sand); }

/* ---------- barra fixa no mobile ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(4, 18, 31, .93);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--ocean-line);
}
.sticky-cta .btn-wa { width: 100%; padding-block: 16px; }
@media (min-width: 860px) { .sticky-cta { display: none; } }
/* espaço para a barra não tampar o rodapé */
@media (max-width: 859px) { body { padding-bottom: 82px; } }

/* ---------- página de obrigado ---------- */
.thanks {
  min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: var(--pad);
}
.thanks__check {
  width: 76px; height: 76px; margin: 0 auto 28px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(37, 211, 102, .14);
  border: 2px solid rgba(37, 211, 102, .45);
}
.thanks__check svg { width: 36px; height: 36px; stroke: var(--wa-green); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks .btn-wa { margin-top: 32px; }

/* =============================================================================
   TROCA DE FOTO — quando as imagens do cliente chegarem
   1. salve em /assets/ (ex.: hero-mobile.webp e hero.webp)
   2. descomente o bloco abaixo
   O gradiente continua por cima, então o texto segue legível.
   =============================================================================
.hero { --hero-photo: url('/assets/hero-mobile.webp'); }
@media (min-width: 860px) {
  .hero { --hero-photo: url('/assets/hero.webp'); }
}
*/
