/* Página institucional — direção "quiet instrument": uma coluna de texto, preto fuligem nas pontas,
   papel branco no meio, uma cor de destaque por empresa (--accent) usada só no botão. */
:root {
  --dark: #0f0f0f;
  --dark-ink: #ffffff;
  --dark-muted: #a3a3a3;
  --paper: #ffffff;
  --paper-ink: #0f0f0f;
  --paper-muted: #5f5f5f;
  --surface: #f0f0ee;
  --accent: #dafa9c;

  --font: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --step-head: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);

  --m: clamp(20px, 2.4vw, 36px);
  --col: 640px;
  --gap-section: clamp(104px, 10vw, 144px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light dark;
}

*, *::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(--dark);
  color: var(--dark-ink);
  font: 400 var(--step-body)/1.5 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 160ms ease; }
a, button { touch-action: manipulation; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: 12px; padding: 8px 14px; background: var(--accent); color: var(--dark); z-index: 10; text-decoration: none; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }

/* Fundos: preto nas pontas, papel no meio. */
.dark { background: var(--dark); color: var(--dark-ink); --muted: var(--dark-muted); }
.paper { background: var(--paper); color: var(--paper-ink); --muted: var(--paper-muted); padding-block: var(--gap-section); }
.dark ::selection { background: var(--accent); color: var(--dark); }
.paper ::selection { background: var(--paper-ink); color: var(--paper); }

/* A coluna: estreita e centrada, a página inteira. */
.col { width: min(var(--col), 100% - 2 * var(--m)); margin-inline: auto; }

/* ---------- Barra ---------- */
.bar {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--m) 0;
  background: var(--dark); color: var(--dark-ink);
  font-size: var(--step-body);
}
.bar__name { font-weight: 500; text-decoration: none; }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.bar__nav a { text-decoration: none; color: var(--dark-muted); padding-block: 6px; transition: color 160ms ease; }
.bar__nav a:active { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover { color: var(--dark-ink); } }

/* ---------- Abertura: o nome da empresa na largura toda, só tipo ---------- */
.intro { padding: 16svh var(--m) 12svh; display: grid; row-gap: 40px; }
.intro__title { font-size: 11vw; font-weight: 500; line-height: 0.95; letter-spacing: -0.045em; }
.intro__title.is-fit { white-space: nowrap; }
.intro__line { display: block; }
.intro__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; }
.intro__lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 46ch; }
.intro__meta { display: block; margin-top: 12px; font-size: var(--step-body); letter-spacing: -0.01em; color: var(--dark-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 28px; }

.button {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--accent); color: var(--dark);
  font-weight: 500; text-decoration: none;
  user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), filter 160ms ease;
}
.button:active { transform: scale(0.97); }
.button:focus-visible { outline-color: var(--accent); }
.text-link { color: var(--dark-ink); }
@media (hover: hover) and (pointer: fine) { .button:hover { filter: brightness(1.06); } }

/* ---------- Blocos de texto ---------- */
.block { display: grid; gap: 20px; }
.block + .block { margin-top: var(--gap-section); }
.block__title { font-size: var(--step-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 4px; }
.block > p, .block > div > p { max-width: 60ch; }
.group { margin-top: 28px; }
.group__name { font-size: var(--step-body); font-weight: 400; color: var(--muted); margin-top: 28px; margin-bottom: 4px; }
.group > .group__name { margin-top: 0; }

/* Linhas de duas pontas: nada desenhado entre elas, só espaço. */
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: baseline; gap: 4px 32px;
  min-height: 38px; padding-block: 8px;
}
.row__l { min-width: 0; }
.row__r { color: var(--muted); text-align: right; font-size: var(--step-small); font-variant-numeric: tabular-nums; max-width: 30ch; justify-self: end; }
.row__note { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.row__r .row__note { margin-top: 0; }
.rows--names .row__l { font-weight: 500; }
.brand { margin-top: 44px; display: grid; gap: 8px; }
.brand__head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 24px; flex-wrap: wrap; }
.brand__name { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.brand__kind { color: var(--muted); font-size: var(--step-small); }
.brand__about { max-width: 60ch; margin-bottom: 4px; }

/* Cadastro e contato: rótulo à esquerda em cinza, valor à direita em tinta cheia. */
#empresa .rows .row__l, .contact .rows .row__l { color: var(--muted); }
#empresa .rows .row__r, .contact .rows .row__r { color: inherit; font-size: var(--step-body); max-width: 34ch; }
#empresa .rows .row__r .row__note, .contact .rows .row__r .row__note { font-size: var(--step-small); }

.copy {
  margin-left: 8px; padding: 2px 12px; min-height: 30px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--paper-ink); font-size: var(--step-small); cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.copy:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: #e4e4e1; } }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-state='ok']::before { background: #2f8a3a; }
.status[data-state='warn']::before { background: #b06a00; }

/* ---------- Contato e rodapé ---------- */
.contact { padding-top: var(--gap-section); padding-bottom: 18svh; }
.statement { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; max-width: 26ch; }
.foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px 32px;
  padding: 0 var(--m) calc(30px + env(safe-area-inset-bottom, 0px));
  background: var(--dark); color: var(--dark-muted); font-size: var(--step-small);
}
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.foot__links a { color: var(--dark-ink); text-decoration: none; padding-block: 4px; }
.foot__end { text-align: right; }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { text-decoration: underline; } }

/* ---------- Documentos ---------- */
.doc-intro { padding-top: 18svh; padding-bottom: 72px; display: grid; row-gap: 24px; }
.doc-intro__title { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.doc-intro__meta { color: var(--dark-muted); }
.doc { gap: 0; }
.doc h2 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin: 44px 0 12px; }
.doc p, .doc li { margin-bottom: 12px; max-width: 64ch; }
.doc ul { list-style: disc; padding-left: 1.2em; }
.doc > p:first-child { font-size: var(--step-lead); line-height: 1.4; letter-spacing: -0.02em; }

/* ---------- Movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .intro__line { opacity: 0; transform: translateY(18px); animation: rise 1100ms var(--ease-out) forwards; }
  .js .intro__foot > * { opacity: 0; transform: translateY(12px); animation: rise 900ms var(--ease-out) forwards; animation-delay: calc(380ms + var(--i, 0) * 90ms); }
  .js .bar { opacity: 0; animation: fade 900ms ease 200ms forwards; }
  .js [data-reveal] > * { opacity: 0; transform: translateY(16px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bar__nav { gap: 0 20px; }
  .bar__nav a { padding-block: 10px; }
  .intro { padding-top: 12svh; padding-bottom: 10svh; row-gap: 28px; }
  .intro__foot { grid-template-columns: minmax(0, 1fr); }
  .intro__lead { font-size: 1.25rem; }
  .actions { justify-content: flex-start; }
  .button { width: 100%; justify-content: center; min-height: 52px; }
  .row { grid-template-columns: minmax(0, 1fr); min-height: 44px; gap: 2px; }
  .row__r, #empresa .rows .row__r, .contact .rows .row__r { text-align: left; justify-self: start; max-width: none; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .foot__links { justify-content: flex-start; }
  .foot__end { text-align: left; }
}
