/* Swissversal: design suíço. Grelha rígida, tipografia forte, vermelho como único acento. */
:root {
  --bg: #fff; --fg: #0a0a0a; --muted: #5f5f5f; --rule: #0a0a0a; --soft: #f1f1f1;
  --red: #e2001a; --red-fg: #fff;
  --font: "Helvetica Neue", Helvetica, "Nimbus Sans", "Liberation Sans", Arimo, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gap: 24px;
}
:root[data-theme="dark"] { --bg: #0b0b0b; --fg: #f3f3f3; --muted: #a0a0a0; --rule: #f3f3f3; --soft: #1a1a1a; --red: #ff2d43; --red-fg: #0b0b0b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b0b0b; --fg: #f3f3f3; --muted: #a0a0a0; --rule: #f3f3f3; --soft: #1a1a1a; --red: #ff2d43; --red-fg: #0b0b0b; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding-bottom: 96px; }
body { padding-bottom: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 1px 5px; }
h1 { font-size: clamp(2.6rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.04em; font-weight: 700; margin: 0; }
h2, h3 { margin: 0; }
.muted { color: var(--muted); }

/* topo */
.top { border-bottom: 2px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; }
.logo { display: block; width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.linklike:hover { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; }

/* grelha de 12 colunas */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 20px; }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; } .col-12 { grid-column: 1 / -1; }
.hero { padding: 72px 0 56px; align-items: end; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--red); margin: 0 0 18px; }
.lede { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 34ch; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; border-top: 2px solid var(--rule); padding-top: 12px; margin: 56px 0 8px; }
.grid .section-title { margin-top: 0; }
.side { align-self: start; }

/* lâminas */
.blades { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--rule); }
.blade { display: grid; grid-template-columns: 80px minmax(160px, 1fr) 2fr 40px; gap: var(--gap); align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--rule); text-decoration: none; transition: background .12s, color .12s, padding .12s; }
.blade:hover { background: var(--red); color: var(--red-fg); padding-left: 16px; padding-right: 16px; }
.blade-n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1rem; }
.blade-name { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.blade-desc { color: var(--muted); font-size: .98rem; }
.blade:hover .blade-desc { color: inherit; }
.blade-go { font-size: 1.6rem; text-align: right; }

/* formulários */
.form, .tool-form { margin-bottom: 40px; }
.field { display: block; margin: 0 0 22px; }
.field > span, .field > label > span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .85rem; }
input[type=text], input[type=password], input[type=url], input[type=number], select, input:not([type]) {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 2px solid var(--rule); border-radius: 0; padding: 12px 12px; min-height: 48px; }
input:focus, select:focus { outline: 3px solid var(--red); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--red); }
.drop { display: block; position: relative; border: 2px dashed var(--rule); padding: 44px 24px; cursor: pointer; text-align: left; margin-bottom: 22px; }
.drop:hover, .drop.over { border-style: solid; background: var(--soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-title { display: block; font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.drop-sub { display: block; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.drop-list { display: block; margin-top: 14px; font-family: var(--mono); font-size: .85rem; white-space: pre-line; }
.btn { display: inline-block; font: 700 1rem var(--font); background: var(--bg); color: var(--fg); border: 2px solid var(--rule); border-radius: 0; padding: 13px 26px; cursor: pointer; text-decoration: none; min-height: 48px; }
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--red); color: var(--red-fg); border-color: var(--red); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: wait; }
.alert { border-left: 8px solid var(--red); background: var(--soft); padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }
.notice { border-left: 8px solid var(--fg); background: var(--soft); padding: 12px 16px; margin: 0 0 20px; font-weight: 600; }
.progress { height: 10px; background: var(--soft); border: 2px solid var(--rule); margin: 0 0 14px; overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--red); transition: width .15s; }
.progress.indeterminate .bar { width: 30%; animation: slide 1.1s linear infinite; }
@keyframes slide { from { margin-left: -30%; } to { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .progress.indeterminate .bar { animation: none; width: 100%; opacity: .5; } .blade { transition: none; } }
.status { min-height: 1.5em; color: var(--muted); margin: 0 0 8px; }

/* resultado */
.state { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.state.big { font-size: 2rem; letter-spacing: -.02em; text-transform: none; margin: 0 0 16px; }
.state-done { color: var(--fg); } .state-error { color: var(--red); }
.files { list-style: none; padding: 0; margin: 0 0 20px; }
.files li { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; }
.report { background: var(--soft); border-left: 8px solid var(--fg); padding: 16px; overflow: auto; font: .85rem/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; margin: 8px 0 24px; }
.inline-gap { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; padding: 10px 0; border-bottom: 2px solid var(--rule); }
.table td { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.r { text-align: right; }

.foot { font-size: .85rem; color: var(--muted); }
/* assinatura: faixa grande no rodapé + selo fixo em todas as páginas */
.sign { background: #e2001a; color: #fff; }
.sign-in { display: flex; align-items: center; gap: 28px; padding-top: 56px; padding-bottom: 56px; flex-wrap: wrap; }
.sign-logo { display: block; border: 3px solid #fff; border-radius: 10px; }
.sign-name { margin: 0; font-size: clamp(3.4rem, 11vw, 8.5rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.sign-name b { font-weight: 700; }
.sign-by { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; flex-basis: 100%; }
.mark { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px;
  background: #e2001a; color: #fff; padding: 7px 16px 7px 7px; border: 2px solid #fff; border-radius: 10px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; cursor: pointer; }
.mark:hover { background: #fff; color: #e2001a; border-color: #e2001a; }
.mark img { display: block; border-radius: 6px; }
@media (max-width: 800px) { .mark { right: 10px; bottom: 10px; font-size: 1rem; } }
.foot-in { display: flex; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }

@media (max-width: 800px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .col-4, .col-5, .col-7, .col-8, .col-12 { grid-column: 1 / -1; }
  .hero { padding: 40px 0 32px; }
  .blade { grid-template-columns: 44px 1fr 28px; row-gap: 4px; padding: 20px 0; }
  .blade-desc { grid-column: 2 / 3; grid-row: 2; }
  .blade-go { grid-column: 3; grid-row: 1; }
  .nav { gap: 16px; font-size: .9rem; }
}
