/*
 * Base das páginas estáticas da Akrus Business (site, entrar, ativar, recuperar).
 * O runtime não importa apps/web; estes valores são a cópia fixada dos tokens
 * canônicos de apps/web/src/app/globals.css (paletas creme, grafite e red,
 * superfícies claras e o fundo quente do palco institucional).
 * Ao mudar um token lá, atualize aqui.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/lato-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/lato-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('./fonts/lato-latin-900-normal.woff2') format('woff2');
}

:root {
  --creme-50: #faf5ef;
  --creme-100: #eee4da;
  --creme-200: #dacbc0;
  --creme-300: #c2aea0;
  --creme-400: #9c8173;
  --creme-500: #836b5e;
  --creme-600: #6b554b;
  --creme-700: #523f38;
  --creme-800: #382b27;
  --creme-900: #201916;
  --creme-950: #110d0b;

  --grafite-50: #f6f4f5;
  --grafite-100: #e7e5e6;
  --grafite-200: #cfcdcf;
  --grafite-300: #b1afb2;
  --grafite-400: #99979b;
  --grafite-500: #858388;
  --grafite-600: #767479;
  --grafite-700: #49484c;
  --grafite-800: #2c2b2f;
  --grafite-900: #1b1b1e;
  --grafite-950: #111113;

  /* Vermelho só para erro. A marca do Business é azul (Laura, 16/10),
     a mesma rampa --blue-* do app web. */
  --red-500: #e11d48;
  --red-700: #9a102f;
  --blue-300: #6aa6ea;
  --blue-400: #4c8dd0;
  --blue-500: #3f76ae;
  --blue-600: #32608f;
  --blue-700: #284e76;
  --brand-400: var(--blue-400);
  --brand-500: var(--blue-500);
  --brand-700: var(--blue-700);
  --warning-100: #fed2c6;
  --white: #ffffff;

  --color-canvas: #e2d5ca;
  --color-surface-primary: #f4ebe2;
  --color-surface-page: #ede3d9;
  --color-surface-default: #faf5ef;
  --color-text-primary: var(--creme-900);
  --color-text-secondary: var(--creme-700);
  --color-text-tertiary: var(--creme-600);
  --color-border-default: rgba(32, 25, 22, 0.12);
  --color-border-strong: rgba(32, 25, 22, 0.24);
  --color-error: var(--red-700);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Headlines em Lato: o token se chama serif no app web por herança. */
  --font-serif: 'Lato', system-ui, sans-serif;

  --radius-ui: 10px;
  --radius-button: 6px;
  --ease-akrus: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand-500) 40%, transparent);

  --akrus-bg-warm:
    radial-gradient(110% 60% at 100% 112%, color-mix(in srgb, var(--brand-400) 10%, transparent) 0%, transparent 58%),
    radial-gradient(75% 48% at 0% 98%, rgba(216, 101, 13, 0.09) 0%, rgba(216, 101, 13, 0) 62%),
    radial-gradient(
      55% 40% at 50% 32%,
      color-mix(in srgb, var(--color-surface-default) 24%, transparent) 0%,
      transparent 68%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-surface-page) 76%, var(--color-surface-primary)) 0%,
      var(--color-surface-page) 52%,
      color-mix(in srgb, var(--color-surface-page) 84%, var(--warning-100)) 76%,
      color-mix(in srgb, var(--color-canvas) 84%, var(--warning-100)) 100%
    );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-button);
  background: var(--grafite-950);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@keyframes akrus-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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