/* Crewfox — a base de todas as páginas do site: fontes (self-hosted), tokens do brandbook, o menu, os botões, o
   rodapé e o texto corrido das páginas legais. O que é só da home mora em home.css. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/outfit-v15-500-900-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500 900; font-display: swap;
  src: url(fonts/outfit-v15-500-900-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rethink Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/rethink-sans-v7-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rethink Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/rethink-sans-v7-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tokens do brandbook (§ 3 e § 11). */
:root {
  --night: #17123A; --deep: #110D2C; --surface: #1B1640; --line: #2C2560;
  --ivory: #FFF8EC; --amber: #FFB547; --cyan: #36E2F2; --ok: #4ADE80;
  --font-title: "Outfit", system-ui, sans-serif; --font-ui: "Rethink Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100svh; background: var(--deep); color: var(--ivory);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
/* Grão sutil do sistema Ingresso. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ——— Navegação (celular primeiro) ——— */
.nav {
  display: flex; align-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
}
.nav-logo { display: inline-flex; margin-right: auto; border-radius: 8px; }
.nav-logo img { display: block; height: var(--logo-h, 28px); width: auto; }
.nav-links { display: none; gap: var(--links-gap, 32px); margin: 0; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: var(--nav-font, 16px); color: rgb(255 248 236 / .82); transition: color .2s; }
.nav-links a:hover { color: var(--ivory); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font-family: var(--font-title); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .25s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { box-shadow: 0 8px 28px -6px rgb(255 181 71 / .55); }
.nav .btn { height: var(--nav-btn-h, 40px); padding: 0 var(--nav-btn-pad, 16px); font-size: var(--nav-btn-font, 15px); }
.btn-ghost { border: 1.5px solid rgb(255 248 236 / .28); }
.btn-ghost:hover { border-color: rgb(255 248 236 / .6); }
.nav .btn-amber { display: none; }

/* ——— Rodapé ——— */
.footer {
  border-top: 1px solid var(--line); margin-top: 48px;
  padding: 28px max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  font-size: 14px; color: rgb(255 248 236 / .66);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ivory); text-decoration: underline; }
.footer p { margin: 0; }

/* ——— Texto corrido (privacidade, termos) ——— */
.prose { width: min(46rem, 100% - 2 * var(--gutter)); margin: 24px auto 0; font-size: 16.5px; line-height: 1.65; }
.prose h1 { margin: 0; font-family: var(--font-title); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.2rem, 8vw, 3.2rem); }
.prose .updated { margin: 12px 0 32px; color: rgb(255 248 236 / .66); font-size: 14px; }
.prose h2 { margin: 40px 0 10px; font-family: var(--font-title); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.prose h3 { margin: 24px 0 6px; font-size: 1.05rem; }
.prose p, .prose li { color: rgb(255 248 236 / .86); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--amber); text-underline-offset: 3px; }
.prose strong { color: var(--ivory); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ivory); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ——— Celular largo: o segundo botão do menu ——— */
@media (min-width: 440px) {
  .nav .btn-amber { display: inline-flex; }
}
/* ——— Do tablet para cima ——— */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
}

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