/* =========================================================================
   Landing Cannes Lions 2026 — PAIM United Creators
   Estética dark/tech (espírito paimlab.com). Mobile-first.
   ========================================================================= */

/* ---------- Fontes da marca ---------- */
@font-face {
  font-family: 'Saira Condensed';
  src: url('fonts/saira-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Saira Condensed SemiBold';
  src: url('fonts/saira-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---- Tema CLARO (padrão do :root) ---- */
  --ink: #f7f7f8;
  --ink-2: #eef0f2;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --line: rgba(17, 24, 39, 0.10);
  --line-strong: rgba(17, 24, 39, 0.16);
  --text: #111827;
  --muted: #52525b;
  --muted-2: #71717a;
  --accent: #FF5A1F;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --accent-glow: rgba(255, 90, 31, 0.28);
  --ok: #16a34a;
  --err: #dc2626;
  --ring-2: rgba(17, 24, 39, 0.10);
  --ring-3: rgba(17, 24, 39, 0.05);

  /* ---- Tokens comuns aos dois temas ---- */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  /* Fontes da marca — título: Saira Condensed Bold · subtítulo: Saira Condensed SemiBold · corpo: Hanken Grotesk */
  --font-title: 'Saira Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Saira Condensed SemiBold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Tema ESCURO (padrão da página; ativado via [data-theme="dark"]) ---- */
[data-theme="dark"] {
  --ink: #0E0E10;
  --ink-2: #141418;
  --surface: #17171C;
  --surface-2: #1E1E25;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --muted-2: #71717A;
  --accent: #FF5A1F;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --accent-glow: rgba(255, 90, 31, 0.45);
  --ok: #34D399;
  --err: #F87171;
  --ring-2: rgba(255, 255, 255, 0.12);
  --ring-3: rgba(255, 255, 255, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Logo (imagem, alterna por tema) ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark .logo {
  height: 22px;
  width: auto;
  display: block;
}
/* Padrão da página é escuro → logo branco. Tema claro → logo preto. */
.wordmark .logo--light { display: none; }
.wordmark .logo--dark { display: block; }
[data-theme="light"] .wordmark .logo--light { display: block; }
[data-theme="light"] .wordmark .logo--dark { display: none; }

/* ---------- Ações do header + toggle de tema ---------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}
.site-header .wordmark { font-size: 16px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #14060B;
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn--primary:hover { box-shadow: 0 12px 40px -8px var(--accent-glow); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(56px, 11vw, 120px);
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero__portal {
  position: absolute;
  top: -14%;
  left: 50%;
  translate: -50% 0;
  width: min(920px, 130vw);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
}
.hero__portal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, rgba(255,90,31,0.05) 42%, transparent 62%);
  filter: blur(8px);
  opacity: 0.9;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
  inset: 50%;
  translate: -50% -50%;
}
.ring--1 { width: 46%; height: 46%; border-color: rgba(255,90,31,0.55); }
.ring--2 { width: 66%; height: 66%; border-color: var(--ring-2); }
.ring--3 { width: 88%; height: 88%; border-color: var(--ring-3); }

.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 780px; }
.hero h1 {
  font-size: clamp(38px, 8.2vw, 76px);
  margin-top: 20px;
}
.hero h1 .hl { color: var(--accent); }
.hero__sub {
  margin-top: 22px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 640px;
}
.hero__cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero__note {
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.stat__num {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 7vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat__num .u { color: var(--accent); }
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}

/* ---------- Takes ---------- */
.take {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  margin: 0;
}
.take + .take { margin-top: 30px; }
.take p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text);
}
.take cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted-2);
}

/* ---------- Teses ---------- */
.sec-head { max-width: 620px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(28px, 5vw, 42px); margin-top: 12px; }
.sec-head p { color: var(--muted); margin-top: 14px; }

.teses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: tese;
}
.tese {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tese:hover { border-color: var(--line-strong); background: var(--surface-2); }
.tese__tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex: none;
  width: 30px;
}
.tese__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.teses__foot { margin-top: 18px; font-size: 13px; color: var(--muted-2); }

/* ---------- Brasil ---------- */
.brasil {
  background: linear-gradient(180deg, var(--surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
}
.brasil h2 { font-size: clamp(26px, 4.4vw, 38px); }
.brasil > p { color: var(--muted); margin-top: 14px; max-width: 640px; }
.gp-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.gp {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.gp__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 11px;
}
.gp__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-top: 12px; letter-spacing: -0.01em; }
.gp__meta { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Form ---------- */
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.form-shell .sec-head { margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}
.field .req { color: var(--accent); }
.field input[type="text"],
.field input[type="email"],
.field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A1A1AA' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field--error input,
.field--error select { border-color: var(--err); }
.field__err {
  display: none;
  color: var(--err);
  font-size: 13px;
  margin-top: 6px;
}
.field--error .field__err { display: block; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 18px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0 22px;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.consent label { font-size: 13px; color: var(--muted); line-height: 1.5; font-weight: 400; }
.field--error.consent label { color: var(--err); }

.form-status {
  font-size: 14px;
  margin-top: 14px;
  min-height: 1.2em;
  color: var(--muted);
}
.form-status.is-error { color: var(--err); }

/* ---------- Pós-submit ---------- */
.thanks { display: none; text-align: center; }
.thanks.is-visible { display: block; }
.thanks__check {
  width: 64px; height: 64px; margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 30px;
}
.thanks h2 { font-size: clamp(26px, 5vw, 40px); }
.thanks p { color: var(--muted); margin: 14px auto 28px; max-width: 460px; }
.thanks__actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.thanks__secondary { font-size: 14px; color: var(--muted-2); }
.thanks__secondary a { color: var(--accent); text-decoration: none; }
.thanks__secondary a:hover { text-decoration: underline; }

.form-flow.submitted .form-shell { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  color: var(--muted-2);
  font-size: 13px;
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; }
.site-footer .wordmark { font-size: 15px; }
.site-footer .logo { height: 20px; }
.site-footer p { margin: 0; max-width: 620px; line-height: 1.5; }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Responsivo ---------- */
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .gp-grid { grid-template-columns: 1fr 1fr; }
  .teses { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .thanks__actions { flex-direction: row; justify-content: center; }
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}

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