/* Kainos Book — tokens herdados do Kainos CRM (cores e fonte) */
@font-face { font-family: "Atkinson"; src: url("fontes/atkinson-hyperlegible-400-latin-latin-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fontes/atkinson-hyperlegible-700-latin-latin-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #e7e3da;
  --ink: #1c1a16;
  --muted: #5d594f;
  --subtle: #7d786c;
  --line: #e7e3da;
  --line-strong: #d2cdbf;
  --accent: #506d48;
  --accent-hover: #41573b;
  --accent-soft: #e4ebe0;
  --accent-ink: #2f3c2b;
  --warn: #875a1a;
  --warn-bg: #f6ecdc;
  --err: #a94a3c;
  --dark: #1c1a16;
  --dark-2: #2e2c26;
  --on-dark: #faf9f6;
  --on-dark-muted: #a9a395;

  --f: "Atkinson", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* cinco tamanhos */
  --t-xl: clamp(2.6rem, 7.4vw, 6.6rem);
  --t-l: clamp(1.6rem, 3.2vw, 2.4rem);
  --t-m: 1.25rem;
  --t-s: 1.0625rem;
  --t-xs: 0.875rem;

  --m: clamp(20px, 4vw, 56px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: var(--t-s); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: var(--t-s); text-decoration: none; transition: background .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: #000; }
.btn.light { background: var(--on-dark); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[disabled] { background: var(--surface-3); color: var(--subtle); cursor: not-allowed; }

/* marca d'água da prévia (no sistema real ela é gravada no próprio arquivo, no servidor) */
.marca { position: relative; overflow: hidden; }
.marca::after { content: ""; position: absolute; inset: -30%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130'%3E%3Ctext x='10' y='75' font-family='Arial' font-weight='700' font-size='26' fill='white' fill-opacity='.38' transform='rotate(-24 130 65)'%3EKAINOS PR%C3%89VIA%3C/text%3E%3C/svg%3E"); transform: rotate(0deg); pointer-events: none; }
.marca img { -webkit-user-drag: none; user-select: none; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  .sobe { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .sobe.visto { opacity: 1; transform: none; }
}
