/* MG Sports & Performance — site institucional.
   Paleta e tipografia herdadas do app, para o site e o produto parecerem a
   mesma marca quando a Apple abrir os dois lado a lado. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #131110;
  --surface: #1c1917;
  --raised: #242019;
  --text: #f4f1ec;
  --muted: #aaa198;
  --dim: #8d857b;
  --accent: #f26f1c;
  --accent-soft: #f4a86a;
  --accent-bg: #3a2210;
  --divider: rgba(255, 255, 255, .09);
  --hair: rgba(255, 255, 255, .06);
  --heading: "Space Grotesk", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1080px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 500; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--accent-soft); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: 14px; }

/* ── Cabeçalho ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 17, 16, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--heading); font-size: 18px; font-weight: 600;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(145deg, #ff8134, #e05e0f);
  color: #160d05; display: grid; place-items: center;
  font-family: var(--heading); font-weight: 700; font-size: 15px;
}
.brand span { color: var(--accent-soft); font-weight: 500; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-soft); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); }
.kicker {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-soft); margin-bottom: 18px; font-weight: 600;
}
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 56ch; }

.stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; }
.stats .num { font-family: var(--heading); font-size: 30px; color: var(--text); line-height: 1; }
.stats .lbl { font-size: 13px; color: var(--dim); margin-top: 6px; }

/* ── Blocos ────────────────────────────────────────────────────────────── */
section { padding: clamp(44px, 6vw, 76px) 0; }
section + section { border-top: 1px solid var(--hair); }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
  background: var(--accent-bg); color: var(--accent-soft);
  display: grid; place-items: center;
}
.card .ico svg { width: 20px; height: 20px; }

/* ── Unidades ──────────────────────────────────────────────────────────── */
.unit { display: flex; gap: 14px; align-items: flex-start; }
.unit .pin { color: var(--accent); flex: none; margin-top: 3px; }
.unit .pin svg { width: 18px; height: 18px; display: block; }
.unit h3 { font-size: 17px; margin-bottom: 4px; }
.unit p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Rodapé ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 48px 0 40px;
  background: #0f0e0d;
}
.footer-top {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 34px;
}
.footer-top h4 {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px; font-family: var(--body); font-weight: 700;
}
.footer-top a, .footer-top p { display: block; color: var(--muted); text-decoration: none; font-size: 14px; margin: 0 0 9px; }
.footer-top a:hover { color: var(--accent-soft); }

/* Identificação legal — é o que a Apple procura para casar o site com o CNPJ
   e o D-U-N-S da solicitação. Mantenha visível, não esconda em modal. */
.legal {
  border-top: 1px solid var(--hair);
  padding-top: 24px;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.8;
}
.legal strong { color: var(--muted); font-weight: 600; }

/* ── Páginas de texto (privacidade, termos, suporte) ───────────────────── */
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.doc .wrap { max-width: 760px; }
.doc h2 { margin-top: 44px; padding-top: 4px; }
.doc h2:first-of-type { margin-top: 28px; }
.doc h3 { margin-top: 26px; color: var(--accent-soft); font-size: 17px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; margin: 0 0 1em; }
.doc li { margin-bottom: .5em; }
.doc .updated { font-size: 13px; color: var(--dim); margin-bottom: 8px; }

.callout {
  background: var(--accent-bg);
  border: 1px solid rgba(242, 111, 28, .3);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.callout p { color: var(--text); margin: 0; font-size: 15px; }

table.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 18px 0 26px; }
table.doc-table th, table.doc-table td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--hair); vertical-align: top;
}
table.doc-table th {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); border-bottom-color: var(--divider); font-weight: 700;
}
table.doc-table td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* ── Botões ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--heading); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, #ff8134, #ec6413);
  color: #160d05; box-shadow: 0 4px 14px rgba(242, 111, 28, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff9147, #f26f1c); color: #160d05; }
.btn-secondary { border-color: var(--divider); color: var(--text); background: var(--surface); }
.btn-secondary:hover { background: var(--raised); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 640px) {
  .site-nav { display: none; }
  .stats { gap: 26px; }
}
