/* ══════════════════════════════════════════════════════════════
   ANDRADE · páginas internas (fornecedores, trabalhe conosco, política, 404)
   Depende de tokens.css + style.css (botões, eyebrow, foco, cookies).
   ══════════════════════════════════════════════════════════════ */
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.pbar { background: var(--ink); color: var(--on-ink); --focus: var(--orange); }
.pbar__in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pbar__logo img { height: 30px; width: auto; }
.pbar__back { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 10px 0; }
.pbar__back .ic { width: 18px; height: 18px; }
.pbar__back:hover { color: var(--on-ink); }

.page-main { --pm-top: clamp(36px, 7vh, 80px); --band-tail: 56px; position: relative; flex: 1; padding: var(--pm-top) 0 clamp(48px, 9vh, 96px); overflow-x: hidden; overflow-x: clip; }
.page-main > .container { position: relative; z-index: 1; }
/* faixa tinta do topo: acompanha a altura do título e do texto (nunca corta linha) e o cartão a atravessa */
.fintro, .fintro__head, .doc__head { position: relative; }
.fintro::before, .fintro__head::before, .doc__head::before {
  content: ""; position: absolute; z-index: -1; left: -100vmax; right: -100vmax;
  top: calc(-1 * var(--pm-top) - 6px); bottom: calc(-1 * var(--band-tail));
  background: linear-gradient(rgb(15 15 14 / .95), rgb(15 15 14 / .95)), url("../patterns/estratos.svg") 0 0 / 240px 132px repeat, var(--ink);
}
.fintro::before { content: none; }
.fintro__head::before { top: calc(-1 * var(--pm-top) - 10px); }

.fpage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
.fintro { color: var(--on-ink); padding-top: 4px; }
.fintro h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.05; margin-bottom: 16px; max-width: 14ch; }
.fintro p { color: var(--on-ink-2); max-width: 42ch; }
.fintro .eyebrow { color: var(--orange); }
.fintro__more { margin-top: calc(var(--band-tail) + 44px); color: var(--text-2) !important; font-size: .9375rem; }
.fintro__more a { color: var(--orange-ink); font-weight: 600; }

.form-card, .alt-card { background: var(--white); padding: clamp(22px, 3.2vw, 38px); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); border-radius: var(--r-1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-note { grid-column: 1 / -1; font-size: .875rem; color: var(--text-2); }
.fg { display: grid; gap: 6px; align-content: start; }
.fg--full { grid-column: 1 / -1; }
.fg label, .flabel { font-size: .875rem; font-weight: 600; color: var(--text); }
.fg input[type="text"], .fg input[type="email"], .fg input[type="tel"], .fg select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--white); border: 1.5px solid var(--line-ctrl); border-radius: var(--r-1);
  transition: border-color var(--t-fast) var(--e-ui), box-shadow var(--t-fast) var(--e-ui);
}
.fg select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23151513' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.fg input:hover, .fg select:hover { border-color: var(--text-2); }
.fg input:focus-visible, .fg select:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 1px; border-color: var(--text); }
.fg [aria-invalid="true"] { border-color: #B3261E; }
.fg-err { font-size: .8125rem; color: #A1221B; font-weight: 600; }
.fg-err[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--line-ctrl); border-radius: var(--r-1); cursor: pointer; font-size: .9375rem; color: var(--text); transition: border-color var(--t-fast) var(--e-ui); }
.file-label .ic { color: var(--orange-ink); }
.file-label span { display: grid; gap: 2px; }
.file-name { font-size: .8125rem; color: var(--text-2); }
.file-label:hover { border-color: var(--text); }
.file-input:focus-visible + .file-label { outline: 3px solid var(--orange-ink); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .875rem; font-weight: 400 !important; color: var(--text-2) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.check a { color: var(--orange-ink); font-weight: 600; }
.form-feedback { display: none; padding: 12px 14px; border-radius: var(--r-1); font-size: .9375rem; }
.form-feedback.show { display: block; }
.form-feedback.success { background: #EAF3EC; color: #1C5B2E; box-shadow: inset 0 0 0 1px #A9CDB2; }
.form-feedback.error { background: #F8E9E7; color: #8A2317; box-shadow: inset 0 0 0 1px #E2B4AE; }
.form-feedback a { color: inherit; font-weight: 700; }
.form-submit { width: 100%; }
.form-submit[disabled] { opacity: .65; cursor: progress; }

.alt-card { display: none; }
.alt-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.alt-card p { color: var(--text-2); }
.alt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.alt-actions .btn { white-space: normal; overflow-wrap: anywhere; text-align: center; }
[data-backend="off"] .form-card { display: none; }
[data-backend="off"] .alt-card { display: block; }

/* política */
.doc { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; align-items: start; }
.doc__head { color: var(--on-ink); }
.doc__head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.05; margin-bottom: 14px; }
.doc__head p { color: var(--on-ink-2); }
.doc__body { background: var(--white); padding: clamp(22px, 3.4vw, 44px); box-shadow: 0 0 0 1px var(--line), var(--shadow-float); border-radius: var(--r-1); color: var(--text-2); max-width: 760px; }
.doc__body h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin: 26px 0 8px; letter-spacing: -.01em; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body p, .doc__body ul { margin-bottom: 12px; }
.doc__body ul { padding-left: 20px; }
.doc__body a { color: var(--orange-ink); font-weight: 600; overflow-wrap: anywhere; }
.doc__date { font-size: .875rem; color: var(--text-3); margin-top: 22px; }

/* 404 */
.nf { flex: 1; display: grid; place-items: center; padding: 60px 0; background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.nf::before { content: ""; position: absolute; inset: 0; background: url("../patterns/estratos.svg") 0 0 / 240px 132px repeat; opacity: .05; }
.nf__in { position: relative; display: grid; justify-items: start; gap: 18px; }
.nf__code { font-family: var(--font-text); font-weight: 700; font-size: clamp(4rem, 2rem + 8vw, 8rem); line-height: .9; color: var(--orange); letter-spacing: -.03em; }
.nf h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); max-width: 16ch; }
.nf p { color: var(--on-ink-2); max-width: 44ch; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.page-foot { background: var(--ink-2); color: var(--on-ink-3); font-size: .8125rem; --focus: var(--orange); }
.page-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: calc(20px + var(--cookie-h, 0px)); }
.page-foot a, .page-foot button { color: var(--on-ink-2); background: none; border: 0; padding: 4px 0; font: inherit; cursor: pointer; text-decoration: none; }
.page-foot a:hover, .page-foot button:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.page-foot__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 900px) {
  .fpage, .doc { grid-template-columns: minmax(0, 1fr); }
  .fintro::before { content: ""; }
  .fintro__head::before { content: none; }
  .fintro__more { margin-top: 16px; color: var(--on-ink-2) !important; }
  .fintro__more a { color: var(--orange); }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .pbar__back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pbar__back { padding: 13px; margin-right: -13px; }
  .alt-actions .btn { width: 100%; }
}
