/* Hive — tokens e base
   Direção: nórdica e premium. Um chão, uma tinta, um acento.
   Tudo o que vem depois usa só estas variáveis. */

:root {
  /* Cor */
  --ground: #F7F4EC;
  --surface: #EFEADC;
  --surface-2: #E3DCC9;
  --paper: #ffffff;
  --ink: #1E1E1E;
  --ink-2: #3A3A3A;
  --ink-3: #5B5B5B;
  --accent: #1E1E1E;
  --yellow: #FFC72C;
  --accent-strong: #000000;
  --on-accent: #ffffff;
  --field: #1E1E1E;
  --on-field: #F7F4EC;
  --on-field-2: #CFCFCF;
  --danger: #B3261E;

  /* Tipo (cinco tamanhos) */
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(2.125rem, 5vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 3.5rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* Espaço */
  --margin: clamp(16px, 3vw, 40px);
  --gap-section: clamp(88px, 12vw, 200px);
  --gap: 24px;

  /* Forma e movimento */
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 140ms;
  --t-base: 320ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

input, select, textarea { font-size: 16px; }

button, a, [role="button"], summary { touch-action: manipulation; }
button { -webkit-user-select: none; user-select: none; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.on-field :focus-visible,
.field-dark :focus-visible { outline-color: #FFC72C; }

::selection { background: var(--accent); color: var(--on-accent); }

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

.skip-link {
  position: absolute;
  left: var(--margin);
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-field);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Botões: planos, um preenchimento, cantos quadrados */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: var(--fs-body);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.btn:active { transform: scale(0.97); background: var(--accent-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-strong); }
}
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:active { background: var(--surface-2); }
.on-field .btn-ghost { background: rgba(255, 255, 255, 0.14); color: var(--on-field); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--surface-2); }
  .on-field .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

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