/* ==========================================================================
   Bebusiness — páginas internas (complementa site.css)
   ========================================================================== */
[hidden] { display: none !important; }

/* Sobre */
.about-intro { row-gap: 48px; align-items: start; }
.about-text { grid-column: 1 / span 7; }
.about-big { font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.about-text .muted { font-size: var(--fs-lead); margin-top: 24px; }
.about-facts { grid-column: 9 / span 4; display: grid; gap: 0; }
.about-facts div { padding-block: 16px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.about-facts dt { font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.mv article { border-top: 1px solid var(--line-dark); padding-top: 24px; }
.mv p { margin-top: 20px; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }

/* Processos */
.toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.seg button { height: 40px; padding-inline: 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: background-color 160ms ease, color 160ms ease; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 18, 56, 0.1); }
.search { flex: 1 1 280px; max-width: 420px; display: flex; align-items: center; gap: 10px; height: 48px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); }
.search:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(58, 54, 160, 0.14); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 16px; }
.count { margin-left: auto; font-size: var(--fs-small); }
.proc-list .year { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.5rem); letter-spacing: -0.05em; color: var(--ink); padding-top: clamp(40px, 5vw, 72px); padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 64px); padding-block: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.proc-head { position: sticky; top: 104px; align-self: start; }
.proc-head .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proc-head h3 { margin-top: 16px; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); letter-spacing: -0.03em; }
.proc-head p { margin-top: 8px; font-size: 0.95rem; }
.proc .doc-list li:first-child a { padding-top: 4px; }
.empty { padding-block: 64px; color: var(--muted); }

/* Transparência */
.doc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); min-height: 280px; }
.doc-card .num { font-size: var(--fs-small); color: var(--muted); }
.doc-card h3 { margin-top: 56px; font-size: 1.4rem; }
.doc-card p { font-size: 0.95rem; max-width: 34ch; }
.doc-card .btn, .doc-card .chip { align-self: flex-start; margin-top: auto; }
.doc-card p + .btn, .doc-card p + .chip { margin-top: auto; }
.doc-card > :last-child { margin-top: auto; }
.doc-card { gap: 12px; }
.doc-card p { margin-bottom: 20px; }
.report-band { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--ink); color: var(--on-dark); transition: transform var(--press) var(--ease-out); }
.report-band:active { transform: scale(0.99); }
.report-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }
.report-band p { margin-top: 10px; color: var(--on-dark-muted); }

/* Formulários */
.form-layout { row-gap: 40px; align-items: start; }
.form-aside { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 112px; }
.form-card { grid-column: 6 / span 7; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 3.5vw, 48px); }
.howto { list-style: none; padding: 0; counter-reset: h; display: grid; }
.howto li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding-block: 18px; border-top: 1px solid var(--line); }
.howto li::before { counter-increment: h; content: counter(h); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-small); font-weight: 600; background: var(--ink); color: var(--on-dark); }
.howto span { color: var(--muted); font-size: 0.95rem; }
.seg--stack { display: grid; border-radius: var(--radius); padding: 6px; gap: 4px; }
.seg--stack button { height: auto; text-align: left; padding: 16px 18px; border-radius: 12px; display: grid; gap: 4px; }
.seg--stack button b { color: var(--ink); font-size: 1rem; }
.seg--stack button span { font-size: var(--fs-small); }
.note { font-size: var(--fs-small); color: var(--muted); border-left: 2px solid var(--sun); padding-left: 14px; }
.field .label { font-size: var(--fs-small); font-weight: 600; }
.drop { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 16px 18px; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: var(--paper); color: var(--muted); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.drop svg { width: 20px; height: 20px; flex: none; }
.drop.is-ok { border-style: solid; border-color: var(--ok); color: var(--ink); background: rgba(31, 138, 91, 0.06); }
.drop.is-err { border-color: #c0392b; color: #a2281d; }
@media (hover: hover) and (pointer: fine) { .drop:hover { border-color: var(--ink); } }
#arq:focus-visible ~ .drop { outline: 2px solid var(--brand-600); outline-offset: 3px; }
.form-status.is-err { color: #a2281d; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .muted { font-size: var(--fs-small); }
.done { display: grid; gap: 14px; outline: none; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sun); }
.done-mark svg { width: 24px; height: 24px; }
.done h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.protocol { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: 0.02em; padding: 12px 18px; border-radius: 12px; background: var(--paper); justify-self: start; }
@media (prefers-reduced-motion: no-preference) {
  .done { animation: lift 600ms var(--ease-expo) both; }
}

/* Portal */
.portal-hero { border-bottom: 0; padding-bottom: var(--section); }
.portal-hero .grid { row-gap: 48px; align-items: start; }
.portal-copy { grid-column: 1 / span 6; }
.portal-feats { list-style: none; padding: 0; margin-top: 40px; display: grid; }
.portal-feats li { display: grid; gap: 2px; padding-block: 18px; border-top: 1px solid var(--line); }
.portal-feats span { color: var(--muted); font-size: 0.95rem; }
.portal-card { grid-column: 8 / span 5; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 48px -28px rgba(14, 18, 56, 0.22); }
.portal-card .mark { width: 56px; color: var(--brand); margin-bottom: 12px; }
.portal-card h2 { font-size: 1.8rem; }
.portal-card .btn { width: 100%; }
.portal-card .note { margin-top: 8px; }

@media (max-width: 1080px) {
  .about-text, .about-facts, .form-aside, .form-card, .portal-copy, .portal-card { grid-column: 1 / -1; }
  .form-aside { position: static; }
  .proc { grid-template-columns: 1fr; }
  .proc-head { position: static; }
  .doc-cards { grid-template-columns: 1fr; }
  .doc-card { min-height: 0; }
}
@media (max-width: 760px) {
  .mv { grid-template-columns: 1fr; }
  .count { margin-left: 0; width: 100%; }
  .toolbar > .seg { width: 100%; }
  .toolbar > .seg button { flex: 1; padding-inline: 6px; white-space: nowrap; font-size: 0.86rem; }
}

/* caixas de marcar e opções dentro de .field não herdam o estilo de caixa de texto */
.field .check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.field .check input[type=checkbox], .field .check input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: 2px; border: 0; box-shadow: none; accent-color: var(--ink); }
.field .check .wf-other { width: auto; }
