/* Grifo — tokens e base compartilhada */
:root {
  --paper: #F3F5FB;
  --sheet: #FFFFFF;
  --ink: #1A1F36;
  --ink-2: #4A5170;
  --ink-3: #7C84A3;
  --bic: #2433C9;
  --bic-deep: #17208F;
  --bic-wash: #E8EBFF;
  --marca: #FFE45C;
  --marca-soft: #FFF4B0;
  --rule: #DCE2F0;
  --margin: #F4A7AC;
  --ok: #138A5A;
  --ok-wash: #E3F6EC;
  --erro: #D3343C;
  --erro-wash: #FDE8E9;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-sheet: 0 1px 0 rgba(26, 31, 54, .04), 0 14px 40px -18px rgba(23, 32, 143, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bic); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--bic); outline-offset: 2px; border-radius: 6px; }

/* Marca-texto: a assinatura visual do Grifo */
.grifo, mark {
  color: inherit;
  background: linear-gradient(100deg, transparent .15em, var(--marca) .3em, var(--marca) calc(100% - .25em), transparent calc(100% - .1em));
  background-size: 100% 78%;
  background-position: 0 70%;
  background-repeat: no-repeat;
  padding: 0 .18em;
  margin: 0 -.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.2em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bic); color: #fff; box-shadow: 0 6px 18px -8px rgba(36, 51, 201, .7); }
.btn-primary:hover { background: var(--bic-deep); }
.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--bic); color: var(--bic); }
.btn-marca { background: var(--marca); color: var(--ink); }
.btn-marca:hover { background: #FFDB2E; }
.btn-sm { min-height: 36px; padding: 0 .9em; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; }
.logo-mark { width: 30px; height: 30px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
