/* ==========================================================
   Estilo Apple — design tokens
   Medidos em apple.com/br (01/11/2026). Inspiração, não cópia:
   sem logo, fotos ou textos da Apple.
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  /* Fonte: SF Pro aparece sozinha em aparelhos Apple (fonte do sistema);
     nos demais cai para Inter, a substituta mais próxima. */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Cores — superfícies */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;          /* cinza de seção/rodapé, o fundo mais usado do site */
  --bg-dark: #000000;         /* tiles escuros */
  --bg-dark-alt: #161617;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --nav-bg-dark: rgba(29, 29, 31, 0.8);
  --line: #d2d2d7;

  /* Cores — texto */
  --text: #1d1d1f;            /* nunca preto puro */
  --text-2: #6e6e73;
  --text-3: #86868b;          /* eyebrow / legendas */
  --text-on-dark: #f5f5f7;
  --text-on-dark-2: #a1a1a6;

  /* Cores — ação (único acento: azul) */
  --accent: #0071e3;          /* botão primário */
  --accent-hover: #0077ed;
  --link: #0066cc;            /* link em fundo claro */
  --link-on-dark: #2997ff;    /* link em fundo escuro */

  /* Tipografia (desktop) */
  --fs-hero: 56px;   --lh-hero: 1.07;  --ls-hero: -0.005em;
  --fs-h1: 48px;     --lh-h1: 1.08;    --ls-h1: -0.003em;
  --fs-h2: 40px;     --lh-h2: 1.1;     --ls-h2: 0;
  --fs-h3: 28px;     --lh-h3: 1.14;    --ls-h3: 0.007em;
  --fs-sub: 21px;    --lh-sub: 1.38;   --ls-sub: 0.011em;
  --fs-body: 17px;   --lh-body: 1.47;  --ls-body: -0.022em;
  --fs-small: 14px;  --lh-small: 1.29; --ls-small: -0.016em;
  --fs-micro: 12px;  --lh-micro: 1.33; --ls-micro: -0.01em;
  --fw-regular: 400;
  --fw-semibold: 600;        /* títulos: 600, nunca 800/900 */

  /* Layout */
  --container: 980px;        /* texto e conteúdo */
  --container-wide: 1440px;  /* grade de tiles */
  --nav-h: 48px;
  --gutter: 22px;
  --tile-gap: 12px;
  --tile-h: 580px;
  --section-pad: 100px;

  /* Formas */
  --radius-pill: 980px;      /* todos os botões */
  --radius-card: 18px;
  --radius-sm: 12px;
  --shadow-card: 2px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 2px 4px 16px rgba(0, 0, 0, 0.16);
  --blur-nav: saturate(180%) blur(20px);

  /* Movimento */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* desaceleração tipo mola */
  --dur: 0.32s;
}

@media (max-width: 734px) {
  :root {
    --fs-hero: 40px;
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 24px;
    --fs-sub: 19px;
    --tile-h: 500px;
    --section-pad: 64px;
    --gutter: 16px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, p { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
.hero-title { font-size: var(--fs-hero); line-height: var(--lh-hero); letter-spacing: var(--ls-hero); font-weight: var(--fw-semibold); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-semibold); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: var(--fw-semibold); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-semibold); }
.sub { font-size: var(--fs-sub); line-height: var(--lh-sub); letter-spacing: var(--ls-sub); font-weight: var(--fw-regular); }
.eyebrow { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text-2); } /* #86868b não passa contraste 4.5:1 */
.muted { color: var(--text-2); }

/* ---------- Botões (sempre pílula) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; padding: 11px 21px;
  font: inherit; font-size: var(--fs-body); letter-spacing: var(--ls-body);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 15px; font-size: var(--fs-small); }
.link-arrow::after { content: " ›"; }

/* ---------- Navegação de vidro ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: var(--nav-bg); backdrop-filter: var(--blur-nav); -webkit-backdrop-filter: var(--blur-nav);
}
.nav-inner {
  max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav a { color: var(--text); opacity: 0.88; font-size: var(--fs-micro); }
.nav a:hover { opacity: 1; text-decoration: none; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tile-gap); padding: var(--tile-gap); max-width: var(--container-wide); margin: 0 auto; }
.tile {
  min-height: var(--tile-h); padding: 52px 24px 0; text-align: center;
  background: var(--bg-alt); color: var(--text); overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.tile.dark { background: var(--bg-dark); color: var(--text-on-dark); }
.tile.dark .muted { color: var(--text-on-dark-2); }
.tile.dark .btn-secondary { color: var(--link-on-dark); border-color: var(--link-on-dark); }
.tile .ctas { display: flex; gap: 14px; justify-content: center; margin-top: 18px; }
@media (max-width: 734px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow-card); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: scale(1.01); }

/* ---------- Seções ---------- */
.section { padding: var(--section-pad) 0; }
.section.alt { background: var(--bg-alt); }
.center { text-align: center; }

/* ---------- Rodapé ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: var(--fs-micro); line-height: var(--lh-micro); padding: 20px 0 30px; }
.footer a { color: var(--text-2); }
.footer hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* ==========================================================
   Efeitos de rolagem (usar junto com efeitos.js)
   ========================================================== */

/* Surgir: sobe 28px com leve zoom; cascata via --d */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98);
  transition: opacity 0.55s var(--ease-out) var(--d, 0ms), transform 0.6s var(--ease-out) var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Cena presa: a seção é alta e o conteúdo fica parado enquanto anima */
.scene { position: relative; }
.scene-sticky { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* Palavras que acendem */
[data-words] span { color: var(--line); transition: color 0.2s var(--ease); }
[data-words] span.lit { color: var(--text); }
.dark [data-words] span { color: #333336; }
.dark [data-words] span.lit { color: var(--text-on-dark); }

/* Trilho horizontal */
.hscroll-viewport { width: 100%; overflow: hidden; }
[data-hscroll] { display: flex; gap: 20px; padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)); will-change: transform; }

/* Barra fixa que aparece depois do topo */
[data-sticky-bar] {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 40;
  background: var(--nav-bg); backdrop-filter: var(--blur-nav); -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(-110%); transition: transform 0.28s var(--ease-out);
}
[data-sticky-bar].show { transform: none; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-sticky-bar] { transition: none; }
}

/* ==========================================================
   UX / acessibilidade (regras UI/UX Pro Max)
   ========================================================== */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.btn { min-height: 44px; touch-action: manipulation; }
.btn:active { transform: scale(0.97); }
.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Formulário */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.field input, .field select {
  min-height: 52px; padding: 14px 16px; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid #86868b; border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
.field .hint { font-size: var(--fs-micro); color: var(--text-2); }
.field .error { font-size: var(--fs-micro); color: #d70015; display: none; }
.field.invalid input, .field.invalid select { border-color: #d70015; }
.field.invalid .error { display: block; }
