/* ZÉ DA INFRA — /chamado. Formulário em "ordem de serviço" à esquerda; à direita a etiqueta do
   chamado (papel) se preenche enquanto o cliente digita e recebe o protocolo no envio.
   Tokens do site; escuro é o padrão. Mobile-first; breakpoints: 640, 700, 760, 900, 1000px. */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-var.woff2?v=1") format("woff2"); font-weight: 700 800; font-stretch: 75% 85%; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Condensed"; src: url("fonts/plex-sans-cond-400.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-400.woff2?v=1") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plex-mono-500.woff2?v=1") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0d0d0c; --paper: #ede9df; --paper-edge: #cfcabe; --paper-text: #3f3c36; --paper-muted: #5e5a52;
  --red: #e1251b; --red-deep: #b8140c; --led: #3ddc84; --amber: #f2a33a; --led-off: #26261f; --cable-grey: #6a6760;

  --bg: #0d0d0c; --surface: #151513; --field: #1c1c19; --text: #ece8df; --text-soft: #b8b3a8; --text-muted: #8c8880;
  --line: #2e2d29; --line-strong: #3a3934; --divider: #2a2925; --accent-text: #f0473d;
  --inv-bg: #ede9df; --inv-fg: #0d0d0c; --inv-hover: #ffffff; --focus: #f2a33a; --link-hover: #ff5a4e; --card-shadow: #3a3934;
  --error: #ff7a70; --ticket-edge: transparent;

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --content: 1200px; --header-h: 64px; --tap: 44px;
}
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #ede9df; --surface: #e2ddd1; --field: #f7f4ed; --text: #0d0d0c; --text-soft: #3f3c36; --text-muted: #5e5a52;
  --line: #cfcabe; --line-strong: #bdb7aa; --divider: #d9d4c7; --accent-text: #b8140c;
  --inv-bg: #0d0d0c; --inv-fg: #ede9df; --inv-hover: #2a2925; --focus: #0d0d0c; --link-hover: #b8140c; --card-shadow: #0d0d0c;
  --error: #b8140c; --ticket-edge: #8c8880;
} }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ede9df; --surface: #e2ddd1; --field: #f7f4ed; --text: #0d0d0c; --text-soft: #3f3c36; --text-muted: #5e5a52;
  --line: #cfcabe; --line-strong: #bdb7aa; --divider: #d9d4c7; --accent-text: #b8140c;
  --inv-bg: #0d0d0c; --inv-fg: #ede9df; --inv-hover: #2a2925; --focus: #0d0d0c; --link-hover: #b8140c; --card-shadow: #0d0d0c;
  --error: #b8140c; --ticket-edge: #8c8880;
}

/* display numa classe sobrescreve o atributo hidden; isto garante que [hidden] sempre esconde. */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
h1, h2, h3, p, ol, ul, dl, dd, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--content) + 120px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* LEDs */
.led { display: inline-block; flex-shrink: 0; width: 8px; height: 5px; background: var(--led-off); }
.led.on { background: var(--led); box-shadow: 0 0 6px var(--led); }
.led.amb { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: blink 1.4s steps(2, jump-none) 3; }
.led.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.led.sys { background: var(--led); animation: breathe 2.4s ease-in-out infinite; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: .4; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* Inset negativo: o recorte inclui a sombra; sem fill-mode, o clip-path some ao terminar. */
@keyframes print-in { from { transform: translateY(-14px); clip-path: inset(-12px -12px 100% -12px); } to { transform: none; clip-path: inset(-12px); } }
@keyframes stamp { 0% { transform: rotate(-8deg) scale(1.6); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Cabeçalho */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: var(--tap); white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(20px, 2vw, 26px); letter-spacing: .04em; }
.brand img { width: 30px; height: auto; }
.header-tag { display: none; padding: 4px 8px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--text-muted); }
.back { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); min-width: var(--tap); padding: 0 4px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--text-soft); }
.theme-btn { width: var(--tap); height: var(--tap); flex-shrink: 0; display: grid; place-content: center; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; }
.theme-btn:hover { border-color: var(--text-soft); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="light"] .theme-btn .i-sun { display: none; }
:root[data-theme="light"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .theme-btn .i-sun { display: none; } :root:not([data-theme]) .theme-btn .i-moon { display: block; } }
@media (min-width: 700px) { :root { --header-h: 72px; } .header-tag { display: inline-block; } }
@media (max-width: 420px) { .back-label { display: none; } }

/* Abertura */
.intro { padding-block: clamp(32px, 5vw, 56px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.intro .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-mono); font-size: clamp(12px, 1.1vw, 14px); letter-spacing: .08em; color: var(--accent-text); }
.intro h1 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(52px, 7.4vw, 104px); line-height: .88; letter-spacing: -.02em; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--red); }
.intro-side { display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.intro-side p { color: var(--text-soft); font-size: clamp(16px, 1.3vw, 18px); }
.clock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.clock strong { font-weight: 500; color: var(--text); white-space: nowrap; }

/* Grade principal */
.desk { padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.desk > .wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) {
  .desk > .wrap { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "form side" "after side"; gap: 56px; }
  #form-area { grid-area: form; }
  .side { grid-area: side; position: sticky; top: calc(var(--header-h) + 24px); }
  .after { grid-area: after; }
}
.after { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; align-items: start; }
/* 1000–1199px: a etiqueta fixa aperta o formulário; rótulos dos blocos vão para cima do conteúdo. */
@media (min-width: 1000px) and (max-width: 1199px) {
  .desk > .wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .form .block { grid-template-columns: 1fr; gap: 18px; }
  .form .block-head { flex-direction: row; align-items: baseline; gap: 12px; }
}
.noscript { padding: 16px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.noscript a { color: var(--text); text-decoration: underline; }

/* Formulário */
.form { display: flex; flex-direction: column; border-top: 2px solid var(--text); }
.block { display: grid; gap: 18px; padding-block: 24px 28px; border-bottom: 1px solid var(--divider); }
@media (min-width: 760px) { .block { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; } }
.block-head { display: flex; flex-direction: column; gap: 4px; }
.block-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--accent-text); }
.block-title { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: 26px; line-height: 1; }
.block-body { display: grid; gap: 18px; min-width: 0; }
.row { display: grid; gap: 18px; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .legend, .field-head { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-soft); }
.legend { margin-bottom: 6px; }
.opt { color: var(--text-muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--field); color: var(--text); font: 400 17px/1.4 var(--font-body); transition: border-color 150ms; }
.input::placeholder { color: var(--text-muted); }
.input:hover { border-color: var(--text-muted); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
textarea.input { min-height: 168px; resize: vertical; }
.hint { font-size: 14px; color: var(--text-muted); }
.count { font-variant-numeric: tabular-nums; }
.err { display: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--error); }
.invalid .err { display: block; }
.invalid .input, .invalid .ports { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }

/* Categorias como portas de switch (hardware escuro nos dois temas) */
.ports { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(min(144px, 100%), calc(100% / 3 - 1px)), 1fr)); padding: 10px; background: var(--ink); border: 1px solid var(--line-strong); }
.port { position: relative; display: block; cursor: pointer; }
.port input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.port-face { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; min-height: 64px; height: 100%; padding: 12px; border: 1px solid #2a2925; background: #151513; color: #b8b3a8; transition: background-color 150ms, border-color 150ms; }
.port-jack { grid-row: 1 / span 2; position: relative; width: 26px; height: 24px; background: #0d0d0c; border: 1px solid #4a4944; border-top-width: 2px; }
.port-jack::after { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; bottom: 1px; background: transparent; transition: background-color 150ms; }
.port-name { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: 19px; line-height: 1.05; color: #ece8df; overflow-wrap: break-word; hyphens: auto; }
.port-meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: #8c8880; }
.port:hover .port-face { border-color: #4a4944; }
.port input:checked + .port-face { background: #1c1c19; border-color: #ece8df; box-shadow: inset 0 0 0 1px #ece8df; }
.port input:checked + .port-face .port-meta { color: #3ddc84; }
.port input:checked + .port-face .port-meta::after { content: "· LINK"; }
.port input:checked + .port-face .port-jack::after { background: repeating-linear-gradient(90deg, #c99a2e 0 1.5px, transparent 1.5px 2.6px) top 2px left 3px / calc(100% - 6px) 5px no-repeat, #c9ccc7; }
.port input:checked + .port-face .port-jack.is-red::after { box-shadow: inset 0 -8px 0 var(--red); }
.port input:checked + .port-face .port-jack:not(.is-red)::after { box-shadow: inset 0 -8px 0 #6a6760; }
.port input:checked + .port-face .led { background: var(--led); box-shadow: 0 0 6px var(--led); }
.port input:focus-visible + .port-face, .invalid .port input:focus + .port-face { outline: 2px solid var(--amber); outline-offset: -2px; }

/* Impacto */
.levels { display: flex; flex-wrap: wrap; gap: 8px; }
.level { position: relative; }
.level input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.level-text { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 10px 16px; border: 1px dashed var(--cable-grey); font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--text-soft); cursor: pointer; }
.level input:checked + .level-text { border-style: solid; border-color: var(--text); color: var(--text); background: var(--surface); }
.level input:focus-visible + .level-text { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Consentimento e envio */
.consent { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; color: var(--text-soft); font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--red); }
.privacy { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); margin-left: 32px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 4px; }
.btn { display: inline-flex; gap: .6em; justify-content: center; align-items: center; min-height: 52px; padding: 14px 26px; border: 0; cursor: pointer; font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .04em; transition: transform 150ms ease, background-color 150ms; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-primary.is-sending[disabled] { opacity: 1; background: var(--red-deep); }
#send-led { animation-iteration-count: infinite; }
.btn-ghost { background: transparent; color: var(--text); border: 1px dashed var(--cable-grey); }
.btn-ghost:hover { border-style: solid; border-color: var(--text-soft); }
.submit-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-muted); max-width: 46ch; }
.alert { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid var(--error); border-left-width: 4px; background: var(--surface); }
.alert-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--error); }
.alert p:not(.alert-title) { font-size: 16px; color: var(--text); }
.wa-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; border: 1px solid var(--text-soft); font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
.wa-btn:hover { border-color: var(--text); color: var(--text); background: var(--field); }
.urgent-msg { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; }
.urgent-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line-strong); border-left: 4px solid var(--red); background: var(--surface); font-size: 15px; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Etiqueta do chamado (papel nos dois temas) */
.side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.side-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--text-muted); }
.printer { position: relative; padding: 10px 10px 0; background: #1c1c19; border: 1px solid #3a3934; border-bottom: 0; }
.printer::after { content: ""; display: block; height: 6px; margin-inline: 12px; background: #0d0d0c; }
.printer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: #8c8880; }
.printer-top span { display: flex; align-items: center; gap: 8px; }
/* A sombra fica no wrapper (drop-shadow segue o recorte); clip-path no próprio .ticket cortaria box-shadow. */
.ticket-out { margin-inline: 12px; filter: drop-shadow(1px 0 0 var(--ticket-edge)) drop-shadow(-1px 0 0 var(--ticket-edge)) drop-shadow(0 -1px 0 var(--ticket-edge)) drop-shadow(0 1px 0 var(--ticket-edge)) drop-shadow(6px 6px 0 var(--card-shadow)); }
.ticket-out.printed { animation: print-in 900ms steps(12, end); }
.ticket { position: relative; padding: 18px 18px 22px; background: var(--paper); color: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px)); }
.ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ticket-brand { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 18px; letter-spacing: .04em; line-height: 1.1; }
.ticket-brand small { display: block; margin-top: 4px; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: .08em; color: var(--paper-muted); }
.proto { text-align: right; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--paper-muted); }
.proto strong { display: block; white-space: nowrap; margin-top: 2px; font-weight: 500; font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket-title { padding-block: 14px 10px; font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: 28px; line-height: 1; overflow-wrap: anywhere; text-wrap: balance; }
.ticket-desc { font-size: 15px; color: var(--paper-text); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--paper-muted); }
.ticket-rows { margin-top: 14px; border-top: 1px dashed var(--paper-edge); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-bottom: 1px dashed var(--paper-edge); }
.ticket-rows dt { color: var(--paper-muted); flex-shrink: 0; }
.ticket-rows dd { text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ticket-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; }
.barcode { height: 30px; width: 120px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 13px, transparent 13px 15px, var(--ink) 15px 16px, transparent 16px 19px); }
.ticket-foot .mono { font-size: 10px; color: var(--paper-muted); }
.stamp { position: absolute; left: 18px; bottom: 24px; padding: 6px 10px; border: 2px solid var(--red-deep); color: var(--red-deep); font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; transform: rotate(-8deg); background: rgba(237, 233, 223, .94); }
.ticket-out.printed .stamp { animation: stamp 260ms 900ms ease-out both; }

/* Fluxo pelo WhatsApp */
.flow-title { font-family: var(--font-display); font-weight: 700; font-stretch: 75%; font-size: 24px; line-height: 1; margin-bottom: 14px; }
.flow { border-top: 1px solid var(--line-strong); }
.flow li { display: grid; grid-template-columns: 18px 1fr; gap: 2px 12px; padding-block: 12px; border-bottom: 1px solid var(--divider); }
.flow .led { margin-top: 8px; }
.flow b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; }
.flow p { grid-column: 2; font-size: 15px; color: var(--text-soft); }
.urgent { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--surface); }
.urgent .mono { font-size: 12px; color: var(--accent-text); }
.urgent p { font-size: 15px; color: var(--text-soft); }
.urgent a { display: inline-flex; align-items: center; align-self: flex-start; min-height: var(--tap); font-family: var(--font-mono); font-weight: 500; font-size: 16px; color: var(--text); user-select: all; }

/* Confirmação */
.done { display: flex; flex-direction: column; gap: 18px; padding: 28px 0; border-top: 2px solid var(--text); }
.done h2:focus { outline: none; }
@media (min-width: 1000px) { .see-ticket { display: none; } }
.done .eyebrow { margin: 0; }
.done h2 { font-family: var(--font-display); font-weight: 800; font-stretch: 75%; font-size: clamp(40px, 5vw, 64px); line-height: .9; text-wrap: balance; }
.done h2 em { font-style: normal; color: var(--red); }
.done p { max-width: 56ch; color: var(--text-soft); font-size: 17px; }
.done .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.done .proto-big { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; align-self: flex-start; padding: 6px 6px 6px 14px; background: var(--inv-bg); color: var(--inv-fg); font-family: var(--font-mono); font-weight: 500; font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.proto-big button { min-height: var(--tap); min-width: var(--tap); padding: 4px 12px; border: 1px solid currentColor; background: transparent; color: inherit; font: 500 11px var(--font-mono); letter-spacing: .08em; cursor: pointer; }
.proto-big button:hover { background: var(--inv-fg); color: var(--inv-bg); }

/* Rodapé */
.site-footer { padding-bottom: 48px; }
.plate { display: grid; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--text-soft); }
.plate > * { padding: 14px 16px; }
.plate > * + * { border-top: 1px solid var(--line-strong); }
.plate-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 20px; letter-spacing: .04em; color: var(--text); }
.plate-brand img { width: 26px; height: auto; }
.plate-info { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
@media (min-width: 900px) {
  .plate { grid-template-columns: auto 1fr auto; }
  .plate > * { padding: 16px 24px; }
  .plate > * + * { border-top: 0; border-left: 1px solid var(--line-strong); }
}
