/* FONTES */
/* latin-ext */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-sans-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;
}
/* latin */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-sans-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;
}
/* latin-ext */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/instrument-sans-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;
}
/* latin */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/instrument-sans-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;
}
/* latin-ext */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-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;
}
/* latin */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-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;
}
/* latin-ext */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-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;
}
/* latin */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-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;
}
/* latin-ext */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-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;
}
/* latin */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-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;
}
/* latin-ext */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-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;
}
/* latin */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-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;
}

/* TOKENS DA MARCA: cópia de brand/tokens.css; se mudar lá, mude aqui */
:root {
  /* marca */
  --orbe-laranja: #E97E0C;          /* símbolo da logo nos dois temas, botão primário, destaques */
  --orbe-laranja-hover: #D9700A;
  --orbe-ambar: #C77700;            /* ícones pequenos em fundo claro */
  --orbe-ambar-profundo: #A35F00;   /* links e texto laranja em fundo claro */
  /* neutros */
  --orbe-preto: #0E0E0E;
  --orbe-grafite: #2A2A2A;
  --orbe-cinza: #8A8A8A;            /* texto secundário no escuro */
  --orbe-cinza-escuro: #5C5A56;     /* texto secundário no claro */
  --orbe-off-white: #F7F5F2;
  --orbe-creme: #EFE6DA;            /* fundo quente de seções de destaque */

  /* tipografia */
  --orbe-font-display: 'Sora', system-ui, sans-serif;
  --orbe-font-text: 'Instrument Sans', system-ui, sans-serif;
  --orbe-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --orbe-text-display: 3.5rem;  /* 56/60, Sora 700, -0.04em */
  --orbe-text-h1: 2.5rem;       /* 40/46, Sora 600, -0.03em */
  --orbe-text-h2: 1.75rem;      /* 28/34, Sora 600, -0.02em */
  --orbe-text-h3: 1.25rem;      /* 20/26, Sora 600, -0.01em */
  --orbe-text-lg: 1.125rem;     /* 18/29, Instrument 400 */
  --orbe-text-base: 1rem;       /* 16/26, Instrument 400 */
  --orbe-text-sm: 0.8125rem;    /* 13/18, Instrument 500 */

  /* espaço (base 4) */
  --orbe-space-1: 4px;  --orbe-space-2: 8px;  --orbe-space-3: 12px;
  --orbe-space-4: 16px; --orbe-space-6: 24px; --orbe-space-8: 32px;
  --orbe-space-12: 48px; --orbe-space-16: 64px;

  /* cantos */
  --orbe-radius-sm: 8px;     /* campos */
  --orbe-radius-md: 12px;    /* cards */
  --orbe-radius-full: 999px; /* botões, tags */

  /* tema claro (padrão) */
  --orbe-bg: var(--orbe-off-white);
  --orbe-surface: #FFFFFF;
  --orbe-fg: var(--orbe-preto);
  --orbe-muted: var(--orbe-cinza-escuro);
  --orbe-line: #E3DFD8;
  --orbe-mark: var(--orbe-laranja);
  --orbe-link: var(--orbe-ambar-profundo);
}

/* tema escuro (secundário, seções pontuais) */
[data-theme="dark"] {
  --orbe-bg: var(--orbe-preto);
  --orbe-surface: #161616;
  --orbe-fg: var(--orbe-off-white);
  --orbe-muted: var(--orbe-cinza);
  --orbe-line: var(--orbe-grafite);
  --orbe-mark: var(--orbe-laranja);
  --orbe-link: var(--orbe-laranja);
}

/* 0. TOKENS LOCAIS (layout) */
:root {
  --gutter: 16px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.2, 0.65, 0.2, 1);
  color-scheme: light;
}
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
  }
}
@media (min-width: 1200px) {
  :root {
    --gutter: 64px;
  }
}

/* 1. BASE */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--orbe-bg);
  color: var(--orbe-fg);
  font-family: var(--orbe-font-text);
  font-size: var(--orbe-text-base);
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--orbe-font-display);
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Atributo hidden sempre esconde, mesmo com display definido por classe */
[hidden] {
  display: none !important;
}

/* Foco visível em tudo que é clicável (BRAND.md › Componentes) */
:focus-visible {
  outline: 2px solid var(--orbe-mark);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--orbe-laranja);
  color: var(--orbe-preto);
}

.wrap {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--orbe-laranja);
  color: var(--orbe-preto);
  font-weight: 600;
  border-radius: var(--orbe-radius-full);
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Escala tipográfica (BRAND.md › Tipografia) ---------- */
.t-display {
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, var(--orbe-text-display));
  line-height: 1.07; /* 56/60 */
  letter-spacing: -0.04em;
}
.t-h1 {
  font-size: clamp(1.75rem, 4vw, var(--orbe-text-h1));
  line-height: 1.15; /* 40/46 */
  letter-spacing: -0.03em;
}
.t-h3 {
  font-size: var(--orbe-text-h3);
  line-height: 26px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--orbe-text-lg);
  line-height: 29px;
  color: var(--orbe-muted);
  max-width: 60ch;
}

/* Rótulo de seção em âmbar profundo (laranja puro não tem contraste no fundo claro) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--orbe-text-sm);
  line-height: 18px;
  font-weight: 500;
  color: var(--orbe-link);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orbe-mark);
}

/* Espaço entre seções: de 80px (celular) a 144px (desktop) */
.section {
  padding-block: clamp(40px, 5vw, 72px);
  position: relative;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
/* Só quando há rótulo acima do título; sem rótulo, a margem somava 16px ao vão da seção */
.section-head .eyebrow + h2 {
  margin-top: 16px;
}
.section-head .lead {
  margin-top: 16px;
}

/* ---------- Grafismo: símbolo ampliado, cortado na borda, 10–20% de opacidade ---------- */
.grafismo {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  max-width: none;
  opacity: 0.12;
}

/* ---------- Botões (BRAND.md › Componentes) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--orbe-radius-full);
  font-family: var(--orbe-font-text);
  font-weight: 600;
  font-size: var(--orbe-text-base);
  line-height: 24px;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* Primário: no máximo um por tela. Texto sempre preto sobre o laranja. */
.btn-primary {
  background: var(--orbe-laranja);
  color: var(--orbe-preto);
}
.btn-primary:hover {
  background: var(--orbe-laranja-hover);
}

/* Secundário: borda na cor do texto; no hover inverte */
.btn-secondary {
  background: transparent;
  color: var(--orbe-fg);
  border-color: currentColor;
}
.btn-secondary:hover {
  background: var(--orbe-fg);
  color: var(--orbe-bg);
  border-color: var(--orbe-fg);
}

/* CTA de fim de seção: sempre secundário (um botão laranja por tela) */
.section-cta {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--orbe-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.section-cta p {
  font-family: var(--orbe-font-display);
  font-weight: 600;
  font-size: var(--orbe-text-h3);
  line-height: 26px;
  letter-spacing: -0.01em;
  max-width: 40ch;
}
.section-cta-note {
  display: block;
  margin-top: 4px;
  font-family: var(--orbe-font-text);
  font-weight: 400;
  font-size: var(--orbe-text-base);
  line-height: 24px;
  letter-spacing: 0;
  color: var(--orbe-muted);
}
@media (max-width: 480px) {
  .section-cta .btn {
    width: 100%;
  }
}

/* Link no meio do texto: área de toque de 44px sem mudar a altura da linha */
.text-link {
  color: var(--orbe-link);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding-block: 12px;
  margin-block: -12px;
}
.text-link:hover {
  text-decoration-thickness: 2px;
}

/* Botão escuro: só sobre fundo laranja, onde o primário sumiria */
.btn-dark {
  background: var(--orbe-preto);
  color: var(--orbe-off-white);
}
.btn-dark:hover {
  background: var(--orbe-grafite);
}
