/* ============================================================
   Capim FC · Peneiras — design system
   Paleta e tipografia fixadas no plano; textura de listras
   tracejadas vem do padrão da camisa oficial.
   ============================================================ */

:root {
  --green: #15A24B;
  --green-bright: #1FC45E;
  --green-strong: #0C7A36;
  --green-deep: #052E1C;
  --bg: #07130C;
  --surface: #0C1F14;
  --surface-2: #10281A;
  --ink: #F2F7F3;
  --muted: #93A79A;
  --gold: #E9A21B;
  --line: #1B3325;
  --danger: #E5484D;
  --font-display: 'Archivo Black', system-ui, -apple-system, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --radius-btn: 999px;
  --border-w: 1px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  /* tokens tematizáveis (cada tema pode redefinir) */
  --display-color: var(--ink);
  --display-weight: 400;
  --display-transform: uppercase;
  --eyebrow-color: var(--gold);
  --btn-bg: var(--green);
  --btn-bg-hover: var(--green-bright);
  --btn-ink: #04150B;
  --card-bg: var(--surface);
  --input-bg: var(--bg);
  --input-border: var(--line);
  --topbar-bg: color-mix(in srgb, var(--bg) 82%, transparent);
  --hl-color: inherit;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

a { color: var(--green-bright); }

/* ---------- textura assinatura: listras tracejadas da camisa ---------- */
.stripes {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(4, 12, 8, 0.22) 34px 36px),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 5px, transparent 5px 13px);
}

/* ---------- views ---------- */
.view { display: none; min-height: 100dvh; }
.view--active { display: block; animation: viewIn 0.35s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- topbar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 40px);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: var(--border-w) solid var(--line);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.topbar__brand img { width: 34px; height: auto; }
.topbar__brand span { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.01em; }
.topbar__brand b { color: var(--green-bright); }

/* ---------- tipografia ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  text-transform: var(--display-transform);
  color: var(--display-color);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.display .hl { color: var(--hl-color); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--eyebrow-color);
}
.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: var(--border-w) solid transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--green-strong); }
.btn--small { padding: 9px 18px; font-size: 0.8rem; }
.btn--block { width: 100%; }
:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- cards e seções ---------- */
.section { padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 48px); }
.section__inner { max-width: 1080px; margin: 0 auto; }
.card {
  background: var(--card-bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { color: var(--muted); font-size: 0.8rem; }
.field input,
.field select,
.field textarea {
  background: var(--input-bg);
  border: var(--border-w) solid var(--input-border);
  border-radius: calc(var(--radius) * 0.72);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  padding: 13px 14px;
  transition: border-color 0.2s;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  outline: none;
}
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.82rem; min-height: 1.2em; }

/* ---------- barra de vagas ---------- */
.vagas-bar { height: 8px; border-radius: 6px; background: var(--line); overflow: hidden; }
.vagas-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-strong), var(--green-bright)); }
.vagas-label { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.vagas-label b { color: var(--gold); }

/* ---------- countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(64px, 130px)); gap: clamp(8px, 2vw, 16px); justify-content: center; }
.countdown__block {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: clamp(10px, 2.5vw, 22px) 6px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 4.2rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }

/* ---------- modais ---------- */
dialog {
  margin: auto;
  background: var(--card-bg);
  color: var(--ink);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  max-width: min(92vw, 640px);
  max-height: 84dvh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(2, 8, 5, 0.75); backdrop-filter: blur(3px); }

/* ---------- demo ---------- */
#demo-btn {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 60;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s;
}
#demo-btn:hover { opacity: 1; }
#demo-panel {
  position: fixed;
  left: 14px;
  bottom: 62px;
  z-index: 60;
  background: var(--card-bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
  min-width: 230px;
}
#demo-panel .demo-title { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ---------- pré-lançamento ---------- */
.prelaunch {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px clamp(16px, 5vw, 48px);
  background:
    linear-gradient(180deg, rgba(7, 19, 12, 0.82) 0%, rgba(7, 19, 12, 0.62) 45%, var(--bg) 100%),
    url('../assets/img/foto-3.jpg') center / cover no-repeat;
}
.prelaunch__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 720px;
  animation: riseIn 0.9s ease both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.prelaunch__logo {
  width: clamp(96px, 18vw, 150px);
  filter: drop-shadow(0 0 44px rgba(233, 162, 27, 0.28)) drop-shadow(0 14px 30px rgba(0, 0, 0, 0.6));
}
.prelaunch__title { font-size: clamp(2.8rem, 11vw, 5.4rem); }
.prelaunch__lead { margin-top: -6px; }
.notify { width: 100%; max-width: 460px; }
.notify .field { margin-bottom: 0; }
.notify .field label { text-align: left; }
.notify__row { display: flex; gap: 8px; }
.notify__row input { flex: 1; }
.notify__row .btn { white-space: nowrap; }
.notify__ok { color: var(--green-bright); font-weight: 600; }
.prelaunch__ig {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.prelaunch__ig:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 560px) {
  .notify__row { flex-direction: column; }
}

/* ---------- landing ---------- */
.hero {
  min-height: 92dvh;
  display: grid;
  align-items: end;
  padding: 120px clamp(16px, 5vw, 48px) clamp(56px, 9vw, 96px);
  background:
    linear-gradient(180deg, rgba(7, 19, 12, 0.55) 0%, rgba(7, 19, 12, 0.35) 40%, var(--bg) 96%),
    url('../assets/img/foto-6.jpg') center 30% / cover no-repeat;
}
.hero__inner { max-width: 1080px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero__inner .eyebrow, .hero__inner .lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65); }
.hero__title { font-size: clamp(3rem, 10vw, 6rem); text-shadow: 0 4px 26px rgba(0, 0, 0, 0.45); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero__stats { display: none; }

/* ---------- fechamento (CTA final) ---------- */
.fechamento {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(21, 162, 75, 0.28), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--green-deep));
}
.fechamento::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, rgba(21, 162, 75, 0.07) 0 5px, transparent 5px 13px);
  pointer-events: none;
}
.fechamento__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.fechamento__inner .lead { margin: 0 auto; max-width: 44ch; }
.fechamento__title { font-size: clamp(2.4rem, 8vw, 4.4rem); }

/* elementos de card ativados por tema */
.cidade-card__data { display: none; }
span.cidade-card__pop { display: none; }

.section--alt {
  background-image:
    repeating-linear-gradient(180deg, rgba(21, 162, 75, 0.025) 0 5px, transparent 5px 13px),
    linear-gradient(180deg, var(--bg), #081710 50%, var(--bg));
}
.section__title { font-size: clamp(1.7rem, 5vw, 2.6rem); margin: 10px 0 30px; }

.steps { display: grid; gap: 22px; }
.steps__media { display: none; }
.steps__list { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--green-bright);
  min-width: 44px;
  text-align: center;
  padding-top: 4px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.95rem; }

.cidade-card { display: flex; flex-direction: column; gap: 14px; }
.cidade-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cidade-card__head h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.01em; }
.cidade-card__meta { color: var(--muted); font-size: 0.92rem; display: grid; gap: 4px; }
.cidade-card__meta b { color: var(--ink); font-weight: 600; }
.cidade-card .btn { margin-top: auto; }

.incluso { display: grid; gap: 26px; align-items: center; }
.incluso__media img { border-radius: var(--radius); border: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist li::before { content: '✓'; color: var(--green-bright); font-weight: 800; }

.faq { display: grid; gap: 10px; max-width: 720px; }
.faq details {
  background: var(--card-bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 0; color: var(--green-bright); font-weight: 800; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-top: 10px; font-size: 0.95rem; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(16px, 5vw, 48px) 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer img { width: 52px; }
.footer__brand { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; color: var(--ink); }
.footer__brand b { color: var(--green-bright); }
.footer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer p { color: var(--muted); font-size: 0.8rem; }

@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1.2fr; align-items: center; }
  .steps__media { display: block; }
  .steps__media img { border-radius: var(--radius); border: 1px solid var(--line); }
  .incluso { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- modais ---------- */
.modal__title { font-size: 1.4rem; margin-bottom: 18px; }
.modal__sub { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin: 18px 0 10px; }
.modal__lista { padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 0.95rem; }
.modal__lista li::marker { color: var(--green-bright); font-weight: 800; }
.modal__texto { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
dialog .btn { margin-top: 16px; }

/* ---------- utilidades ---------- */
.grid-3 { display: grid; gap: 18px; }
.center { text-align: center; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge--green { background: var(--green-deep); color: var(--green-bright); border: 1px solid var(--green-strong); }
.badge--gold { background: rgba(233, 162, 27, 0.12); color: var(--gold); border: 1px solid rgba(233, 162, 27, 0.4); }

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
