/* ============================================================
   Treinos67 — Landing Page
   Identidade: Dark Theme + Electric Lime
   Fonts: Space Grotesk (títulos), Inter (corpo), JetBrains Mono (números)
   ============================================================ */

:root {
  /* Base */
  --bg: #050505;
  --surface-1: #121212;
  --surface-2: #1a1a1a;
  --surface-3: #27272a;
  --text: #ffffff;
  --muted: #a1a1aa;

  /* Acento */
  --lime: #d4ff3f;
  --lime-dim: #b8e22f;

  /* Semânticas */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Fontes */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --border: 1px solid var(--surface-3);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Garante que o atributo [hidden] sempre esconda o elemento,
   mesmo quando há um display explícito (flex/grid) definido abaixo. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

::selection { background: var(--lime); color: #050505; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 760px; }

.section { padding: 96px 0; }
.section-alt { background: var(--surface-1); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--lime); color: #050505; }
.btn-primary:hover { background: var(--lime-dim); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--surface-3); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.footer-brand .brand-logo { width: 32px; height: 32px; }
.brand-accent { color: var(--lime); }

.site-nav { display: flex; gap: 30px; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.site-nav a:hover { color: var(--text); }

.header-cta { }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding: 14px 22px 22px; border-bottom: var(--border); }
.mobile-nav a { color: var(--muted); padding: 10px 0; font-weight: 500; }
.mobile-nav .btn { margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 70px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -200px; right: -100px; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212, 255, 63, 0.12), transparent 65%);
  pointer-events: none; filter: blur(10px);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
  padding-bottom: 70px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(36px, 5.5vw, 62px); letter-spacing: -0.03em; margin-bottom: 22px;
}
.hero-title .accent { color: var(--lime); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta.center { justify-content: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Store badges */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1.5px solid var(--surface-3);
  border-radius: 12px; padding: 10px 18px; transition: border-color .15s ease, transform .15s ease;
}
.store-badge:hover { border-color: var(--lime); transform: translateY(-2px); }
.store-icon { display: grid; place-items: center; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-text small { font-size: 11px; color: var(--muted); }
.store-text strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; }

/* Phone mockup */
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 2; }
.phone {
  position: relative; width: 270px; height: 550px; border-radius: 38px;
  background: var(--surface-1); border: 8px solid #1f1f22;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(212,255,63,.06);
  padding: 16px 14px;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px; background: #1f1f22; border-radius: 0 0 14px 14px;
}
/* Tela de Execução — fiel a ExecutionScreen.tsx (padding 16, gaps em múltiplos de 4) */
.phone-screen { display: flex; flex-direction: column; gap: 12px; height: 100%; padding-top: 28px; }

/* Header: cronômetro de treino + progresso (sem barra de título no app real) */
.ex-header { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 0; }
.ex-timer { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--lime); }
.ex-progress { font-size: 12px; color: var(--muted); }

/* Barra de descanso (surface3, só visível durante o descanso) */
.ex-rest {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-3); border-radius: 12px; padding: 9px 11px;
}
.ex-rest-text { font-size: 14px; font-weight: 600; color: var(--lime); }
.ex-rest-btns { display: flex; gap: 4px; }
.ex-rest-btns span { font-size: 11px; font-weight: 600; color: var(--lime); padding: 2px 4px; }

/* Bloco + cabeçalho (badge numerado + tag do tipo) */
.ex-bloco { display: flex; flex-direction: column; gap: 8px; }
.ex-bloco-head { display: flex; align-items: center; gap: 10px; }
.ex-badge {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px;
  background: var(--lime); color: #050505; font-weight: 700; font-size: 12px;
}
.ex-tag {
  border: 1px solid var(--surface-3); border-radius: 999px; padding: 3px 11px;
  font-size: 11px; color: var(--muted);
}

/* Exercício */
.ex-exercicio { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.ex-nome { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.2; }
.ex-alvo { font-size: 11px; color: var(--muted); }

/* Tabela de séries: Série | kg | reps | OK */
.ex-table-head,
.ex-row { display: grid; grid-template-columns: 32px 1fr 1fr 30px; gap: 7px; align-items: center; }
.ex-table-head { margin-top: 4px; }
.ex-table-head span { font-size: 10px; color: var(--muted); text-align: center; }
.ex-row .c-serie { font-size: 11px; color: var(--muted); text-align: center; }
.ex-input {
  background: var(--surface-2); border: 1px solid var(--surface-3); border-radius: 8px;
  color: var(--text); text-align: center; font-size: 13px; padding: 6px 0;
}
.ex-check {
  height: 30px; border: 1px solid var(--surface-3); border-radius: 8px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: transparent;
}
.ex-check.on { background: var(--success); border-color: var(--success); color: #050505; }

/* Botões inferiores (Finalizar Treino + Pausar e Sair) */
.ex-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ex-btn-primary, .ex-btn-ghost {
  min-height: 40px; display: grid; place-items: center;
  border-radius: 8px; font-size: 14px; font-weight: 600;
}
.ex-btn-primary { background: var(--lime); color: #050505; }
.ex-btn-ghost { color: var(--lime); }

/* Legenda do mockup */
.mock-caption { margin-top: 14px; text-align: center; font-size: 11px; color: var(--muted); opacity: .7; }

/* Hero strip */
.hero-strip { border-top: var(--border); border-bottom: var(--border); background: var(--surface-1); }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center;
  padding: 18px 22px; font-size: 14px; color: var(--muted);
}
.strip-inner span { font-weight: 500; }

/* ---------- Cards (Recursos) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface-1); border: var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--surface-3); transform: translateY(-4px); }
.card-icon {
  display: grid; place-items: center; width: 50px; height: 50px; font-size: 24px;
  background: var(--surface-2); border-radius: 12px; margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- Steps (Como funciona) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; counter-reset: step;
}
.step {
  position: relative; background: var(--bg); border: var(--border);
  border-radius: var(--radius); padding: 30px 24px;
}
.step-num {
  font-family: var(--font-mono); font-size: 30px; font-weight: 700;
  color: var(--lime); display: block; margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Plans ---------- */
.plans-tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 36px;
  background: var(--surface-1); border: var(--border); border-radius: 12px;
  position: relative; left: 50%; transform: translateX(-50%);
}
.plan-tab {
  font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--muted);
  background: transparent; border: none; padding: 10px 22px; border-radius: 9px; cursor: pointer;
  transition: .15s;
}
.plan-tab.is-active { background: var(--lime); color: #050505; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
#planos-professor { grid-template-columns: repeat(3, 1fr); max-width: 100%; }

.plan {
  position: relative; background: var(--surface-1); border: var(--border);
  border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 20px 50px rgba(212,255,63,.06); }
.plan-flag {
  position: absolute; top: -12px; left: 28px; background: var(--lime); color: #050505;
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 99px;
  font-family: var(--font-body); letter-spacing: .02em;
}
.plan-name { font-size: 22px; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-price .price { font-family: var(--font-mono); font-size: 32px; font-weight: 700; }
.plan-price .per { color: var(--muted); font-size: 15px; }
.plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-feats li { position: relative; padding-left: 26px; font-size: 14.5px; color: #e4e4e7; }
.plan-feats li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
  background: var(--lime); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.plans-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 32px; }
.plans-foot strong { color: var(--lime); }

/* ---------- Download CTA ---------- */
.download-cta { background: var(--surface-1); }
.download-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.download-inner h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.download-inner p { color: var(--muted); font-size: 17px; margin-bottom: 32px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg); border: var(--border); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: border-color .15s ease;
}
.faq-item[open] { border-color: var(--surface-3); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--lime);
  transition: transform .2s ease; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15px; padding: 0 0 20px; }
.faq-item em { color: var(--lime); font-style: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-1); border-top: var(--border); padding-top: 60px; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: #d4d4d8; font-size: 14px; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: var(--border); padding: 22px; font-size: 13px; color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--lime); color: #050505; font-weight: 600; font-size: 14px;
  padding: 13px 22px; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  #planos-professor { grid-template-columns: 1fr; max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 70px 0; }
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta { width: 100%; }
  .store-badge { flex: 1; }
}
