/* Layout: a página é um painel de ferramentas de oficina. Painel limão perfurado (planos) → bancada escura (a OS acontecendo) → chapa de aço (implantação, condições) → painel limão de novo (pedido). */
:root {
  /* Mundo fixo: painel, tinta, etiquetas. Iguais nos dois temas. */
  --lime: #AFF33E;
  --lime-deep: #9BDD2C;
  --paint: #14532D;
  --ink: #020617;
  --steel: #EEF2F4;
  --steel-edge: #B9C4CA;
  --steel-ink: #1C2A33;
  --bench: #020617;
  --bench-2: #0C1527;
  --bench-fg: #E4ECEF;
  --bench-muted: #93A3AB;
  --stamp: #C2410C;

  /* Chão da página (fora do painel). */
  --ground: #E3E9EC;
  --fg: #0B1620;
  --muted: #485861;
  --rule: #C2CDD3;
  --plate: #F6F8F9;

  --font-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-stamp: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #070D1A; --fg: #E4ECEF; --muted: #9AAAB2; --rule: #223040; --plate: #0E1828;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #070D1A; --fg: #E4ECEF; --muted: #9AAAB2; --rule: #223040; --plate: #0E1828;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-color: var(--paint) var(--ink); }
body {
  background: var(--ground); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--paint); color: var(--lime); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.bench :focus-visible { outline-color: var(--lime); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
svg.lucide { width: 1em; height: 1em; stroke-width: 2; flex: none; }

/* ── Barra ─────────────────────────────────────────── */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: var(--ink); color: var(--steel);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--steel); }
.brand img { width: 34px; height: 34px; display: block; }
.brand b { font-family: var(--font-stamp); font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; }
.topbar nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.topbar nav a { text-decoration: none; color: #B8C5CC; }
.topbar nav a:hover { color: var(--lime); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-stamp); font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase;
  border: 0; border-radius: 6px; padding: 11px 18px; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #C4FA66; }
.btn-ink { background: var(--ink); color: var(--lime); box-shadow: 0 8px 18px -10px rgba(2,6,23,.7); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(2,6,23,.8); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: rgba(2,6,23,.06); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ── Painel limão ─────────────────────────────────── */
.board {
  background-color: var(--lime);
  background-image: radial-gradient(circle, rgba(20,83,45,.30) 0 2.4px, transparent 2.9px);
  background-size: 24px 24px;
  background-position: 12px 12px;
  color: var(--ink);
  position: relative;
}
.board::before, .board::after { /* trilhos de fixação do painel */
  content: ""; position: absolute; left: 0; right: 0; height: 10px; background: var(--paint);
}
.board::before { top: 0; }
.board::after { bottom: 0; }
.hero { padding-block: 34px 56px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; }
.hero h1 {
  font-family: var(--font-stencil); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 5.2vw, 4.7rem); line-height: .9; letter-spacing: -.005em; color: var(--paint);
  max-width: 16ch;
}
.hero h1 span { color: var(--ink); }
.lede { font-size: 1.08rem; max-width: 52ch; color: #1B3A22; }
.board .lede, .board .rail, .order .sec-lede, .order .contact { background: var(--lime); box-shadow: 0 0 0 12px var(--lime); }
.lede strong { color: var(--ink); }

.picker { display: flex; gap: 0; margin-top: 26px; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; width: max-content; max-width: 100%; background: rgba(255,255,255,.18); }
.picker button {
  border: 0; background: transparent; padding: 10px 18px 9px; cursor: pointer; text-align: left;
  display: grid; gap: 0; border-right: 2px solid var(--ink); min-width: 0;
  transition: background .2s, color .2s;
}
.picker button:last-child { border-right: 0; }
.picker b { font-family: var(--font-stamp); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.picker small { font-size: .82rem; font-weight: 600; color: var(--paint); }
.picker button:hover { background: rgba(255,255,255,.35); }
.picker button[aria-checked="true"] { background: var(--ink); color: var(--lime); }
.picker button[aria-checked="true"] small { color: #D9F99D; }

.rig { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 28px; align-items: start; }

/* Ganchos e etiquetas */
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.slot { position: relative; aspect-ratio: 312 / 252; min-width: 0; }
.slot .sil { position: absolute; inset: 0; width: 100%; height: 100%; transform: translate(5%, 6%); overflow: visible; }
.slot .sil path { fill: rgba(20,83,45,.22); stroke: var(--paint); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .3s; }
.slot.state-off .sil path { stroke-dasharray: 7 5; }
.slot.state-na .sil path { fill: rgba(20,83,45,.08); stroke: rgba(20,83,45,.45); stroke-dasharray: 3 5; }
.slot .peg { position: absolute; left: 82%; top: 23%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); box-shadow: inset -2px -2px 0 rgba(255,255,255,.18); z-index: 3; }

.tag {
  position: absolute; inset: 0; border: 0; padding: 0; background: none; text-align: left; color: var(--steel-ink);
  transform-origin: 82% 23%;
  filter: drop-shadow(0 6px 8px rgba(2,6,23,.22));
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
}
.tag .plate { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tag .plate path { fill: var(--steel); stroke: var(--steel-edge); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tag .plate circle { fill: var(--paint); stroke: var(--steel-edge); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tag-body { position: absolute; inset: 12% 9% 10% 11%; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; overflow: hidden; gap: 4px; min-width: 0; }
.tag-top { display: flex; align-items: center; gap: 7px; font-size: 1.25rem; color: var(--paint); min-width: 0; padding-right: 22%; }
.tag-name { font-family: var(--font-stamp); font-weight: 800; font-size: clamp(.98rem, 1.45vw, 1.3rem); min-width: 0; line-height: 1.02; text-transform: uppercase; letter-spacing: .01em; color: var(--ink); align-self: center; overflow-wrap: anywhere; }
.tag-foot { border-top: 1.5px dashed #9AA8B0; padding-top: 5px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--paint); display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.tag-foot .x { color: #4A5961; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; }

.slot.hung .tag { opacity: 1; transform: none; }
.slot:not(.hung) .tag { opacity: 0; transform: translateY(-22px) rotate(-9deg); pointer-events: none; }
.slot.swing .tag { animation: swing .9s var(--ease-out); }
@keyframes swing {
  0% { transform: translateY(-22px) rotate(-9deg); opacity: 0; }
  35% { transform: translateY(0) rotate(5deg); opacity: 1; }
  60% { transform: rotate(-2.5deg); }
  80% { transform: rotate(1deg); }
  100% { transform: none; }
}
.slot.is-addon .tag { cursor: pointer; }
.slot.is-addon .tag:hover { transform: translateY(-2px); }

.ghost {
  position: absolute; inset: 0; transform: translate(5%, 6%); border: 0; background: none; padding: 14% 24% 12% 12%;
  display: grid; align-content: center; gap: 4px; text-align: left; color: var(--paint); cursor: pointer;
  transition: opacity .3s;
}
.slot.hung .ghost { opacity: 0; pointer-events: none; }
.ghost .g-name { font-family: var(--font-stamp); font-weight: 800; font-size: clamp(.95rem, 1.3vw, 1.15rem); text-transform: uppercase; line-height: 1.05; }
.ghost .g-price { font-weight: 700; font-size: .92rem; color: var(--ink); }
.ghost .g-price.num { white-space: nowrap; }
.ghost .g-act { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ghost:hover .g-act, .ghost:focus-visible .g-act { text-decoration: underline; text-underline-offset: 3px; }
.slot.empty { aspect-ratio: 312 / 252; }
.slot.state-na .ghost { cursor: default; color: rgba(20,83,45,.7); }
.slot.state-na .ghost .g-price { color: rgba(2,6,23,.6); font-weight: 600; font-size: .82rem; }
.slot.preview .sil path { fill: rgba(2,6,23,.16); }

.rail {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
  font-size: .9rem; color: #1B3A22; border-top: 2px solid var(--paint); padding-top: 12px;
}
.rail b { font-family: var(--font-stamp); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); font-size: 1rem; }

/* Placa rebitada */
.placa, .pedido, .sheet, .chapa { color-scheme: light; }
.placa {
  position: sticky; top: 84px;
  background: var(--steel); color: var(--steel-ink); border-radius: 10px; padding: 26px 24px 22px;
  box-shadow: 0 18px 34px -18px rgba(2,6,23,.55), inset 0 0 0 1px var(--steel-edge);
  display: grid; gap: 16px;
  background-image:
    radial-gradient(circle at 14px 14px, #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at 14px calc(100% - 14px), #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #8C9AA2 0 3px, transparent 3.6px);
}
.placa h2 { font-family: var(--font-stamp); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); line-height: 1; }
.placa .big { font-family: var(--font-stamp); font-weight: 800; font-size: 3.4rem; line-height: .9; color: var(--ink); }
.placa .big small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: #4A5961; }
.lines { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.lines li { display: flex; justify-content: space-between; gap: 12px; }
.lines li span:first-child { color: #4A5961; min-width: 0; }
.lines li span:last-child { font-weight: 600; white-space: nowrap; }
.lines li.sub span { font-size: .86rem; }
.sep { border: 0; border-top: 1.5px dashed #A9B5BC; margin: 0; }
.users { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .93rem; }
.users span { color: #4A5961; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--steel-ink); border-radius: 6px; overflow: hidden; }
.stepper button { width: 32px; height: 30px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.stepper button:hover { background: rgba(2,6,23,.08); }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: .9rem; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--paint); }
.nudge { background: var(--lime); border-radius: 6px; padding: 10px 12px; font-size: .88rem; color: var(--ink); display: grid; gap: 6px; }
.nudge button { justify-self: start; border: 0; background: none; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.placa .btn { width: 100%; padding-block: 14px; }

/* Barra fixa no celular */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  background: var(--ink); color: var(--steel);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(0); transition: transform .3s var(--ease-out);
}
.dock .d-plan { font-size: .78rem; color: #B8C5CC; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.dock .d-val { font-family: var(--font-stamp); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--lime); }
.dock .d-val small { font-family: var(--font-body); font-size: .8rem; color: #B8C5CC; font-weight: 500; }
.dock .btn { padding: 10px 14px; font-size: 1rem; }
.dock.away { transform: translateY(110%); }

/* ── Bancada ──────────────────────────────────────── */
.bench { background: var(--bench); color: var(--bench-fg); padding-block: 88px 96px; }
.sec-title { font-family: var(--font-stencil); font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: .95; max-width: 18ch; }
.bench .sec-title { color: var(--lime); }
.sec-lede { font-size: 1.08rem; max-width: 60ch; margin-top: 16px; }
.bench .sec-lede { color: var(--bench-muted); }
.flow { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; margin-top: 52px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: st; }
.steps button {
  width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--bench-fg);
  display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 14px 14px 14px 10px; border-radius: 8px;
  transition: background .25s;
}
.steps button::before {
  counter-increment: st; content: counter(st);
  grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-stamp); font-weight: 800; font-size: 1.1rem; border: 2px solid #3A4A5C; color: var(--bench-muted);
  transition: all .25s;
}
.steps b { font-family: var(--font-stamp); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.steps span { color: var(--bench-muted); font-size: .93rem; }
.steps button:hover { background: var(--bench-2); }
.steps button[aria-pressed="true"] { background: var(--bench-2); }
.steps button[aria-pressed="true"]::before { background: var(--lime); border-color: var(--lime); color: var(--ink); }

/* Folha da OS (recriação com dados de exemplo) */
.sheet-wrap { position: relative; min-width: 0; }
.sheet {
  background: #FFFFFF; color: #16222B; border-radius: 10px; padding: 28px clamp(18px, 3vw, 34px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); font-size: .92rem; display: grid; gap: 18px; position: relative;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid #16222B; padding-bottom: 14px; }
.sheet-head .who { display: flex; align-items: center; gap: 10px; }
.sheet-head .who > img { width: 36px; height: 36px; flex: none; }
.sheet-head h3 { font-family: var(--font-stamp); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.sheet-head .os-n { font-family: var(--font-code); font-weight: 700; font-size: .95rem; text-align: right; }
.sheet-head .os-n small { display: block; font-family: var(--font-body); font-weight: 500; color: #5B6B74; font-size: .78rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #DCFCE7; color: #14532D; margin-top: 6px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.field small { display: block; color: #5B6B74; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.field b { font-weight: 600; }
.field code { font-family: var(--font-code); font-size: .85rem; background: #EEF2F4; padding: 1px 6px; border-radius: 4px; }
.items { width: 100%; border-collapse: collapse; }
.items th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #5B6B74; padding: 6px 8px; border-bottom: 1px solid #D5DDE2; }
.items td { padding: 8px; border-bottom: 1px solid #EEF2F4; vertical-align: top; }
.items td.r, .items th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.items tfoot td { font-weight: 700; border-bottom: 0; font-size: 1rem; }
.sign { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.sign .line { border-top: 1.5px solid #16222B; padding-top: 6px; font-size: .8rem; color: #5B6B74; }
.sign svg { width: 100%; max-width: 220px; height: 54px; display: block; }
.sign svg path { fill: none; stroke: #1D3B8F; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fat { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #F3F6F8; border-radius: 8px; padding: 12px 14px; font-size: .88rem; }
.fat b { font-family: var(--font-code); }
.zone { border-radius: 8px; transition: box-shadow .3s, background .3s; }
.zone.lit { box-shadow: 0 0 0 3px var(--lime), 0 0 0 6px rgba(175,243,62,.25); background: rgba(175,243,62,.10); }
.stampmark {
  position: absolute; top: 74px; right: 22px; transform: rotate(-8deg);
  font-family: var(--font-stamp); font-weight: 800; font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stamp); border: 2.5px solid var(--stamp); border-radius: 6px; padding: 2px 10px; opacity: .85; pointer-events: none;
}

/* Etiqueta impressa */
.tagrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 88px; align-items: center; }
.bigtag { position: relative; aspect-ratio: 312 / 252; max-width: 460px; width: 100%; justify-self: center; }
.bigtag > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bigtag .shadow-p { fill: var(--paint); transform: translate(6%, 6%); }
.bigtag .face-p { fill: var(--steel); }
.bigtag .hole { fill: var(--bench); }
.bigtag-body { position: absolute; inset: 11% 10% 10% 10%; display: grid; grid-template-rows: auto auto 1fr; gap: 6px; color: var(--ink); }
.bigtag-body .pat { font-family: var(--font-code); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.5rem); letter-spacing: .02em; padding-right: 22%; }
.bigtag-body .desc { font-size: clamp(.78rem, 1.6vw, .95rem); color: #33424B; border-bottom: 2px dashed #8E9DA5; padding-bottom: 8px; padding-right: 18%; }
.bigtag-body svg.bars { width: 100%; height: 100%; min-height: 40px; }
.tagcopy h3 { font-family: var(--font-stencil); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: .95; color: var(--lime); }
.tagcopy ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.tagcopy li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--bench-fg); }
.tagcopy li svg { color: var(--lime); font-size: 1.25rem; margin-top: 2px; }
.tagcopy p.note { margin-top: 18px; color: var(--bench-muted); font-size: .88rem; }

/* ── Chapa de aço (implantação, tabela, condições) ── */
.steel { padding-block: 72px; }
.chapa {
  --fg: #0B1620; --muted: #4A5961; --rule: #B9C4CA;
  background-color: var(--steel); color: var(--fg); border-radius: 12px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px);
  box-shadow: 0 24px 44px -24px rgba(2,6,23,.6), inset 0 0 0 1px var(--steel-edge);
  background-image: radial-gradient(circle at 18px 18px, #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 18px) 18px, #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at 18px calc(100% - 18px), #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), #8C9AA2 0 3px, transparent 3.6px);
}
.chapa .sec-title { color: var(--ink); }
.steel .sec-title { color: var(--fg); }
.steel .sec-lede { color: var(--muted); }
.setup-strip { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 3px solid var(--fg); }
.setup-strip > div { padding: 18px 22px 0 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.setup-strip > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.setup-strip b { font-family: var(--font-stamp); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.setup-strip p { color: var(--muted); font-size: .94rem; }
.setup-prices { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .95rem; color: var(--muted); }
.setup-prices b { color: var(--fg); font-variant-numeric: tabular-nums; }

details.full { margin-top: 64px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
details.full summary {
  cursor: pointer; list-style: none; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-stamp); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em;
}
details.full summary::-webkit-details-marker { display: none; }
details.full summary svg { transition: transform .3s var(--ease-out); }
details.full[open] summary svg { transform: rotate(180deg); }
.table-box { overflow-x: auto; padding-bottom: 20px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp td.c, .cmp th.c { text-align: center; }
.cmp .y { color: var(--fg); font-weight: 700; }
.cmp .y svg { color: #15803D; font-size: 1.15rem; vertical-align: -3px; }
.cmp .n { color: var(--muted); font-size: .88rem; }
.cmp td small { display: block; color: var(--muted); font-size: .86rem; }
.cmp tr.grp td { font-family: var(--font-stamp); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; padding-top: 22px; }

.terms { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; }
.terms dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.terms dl > div { border-top: 1px solid var(--rule); padding-block: 14px 18px; min-width: 0; }
.terms dt { font-weight: 700; }
.terms dd { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

/* ── Pedido ───────────────────────────────────────── */
.order { padding-block: 88px 96px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 48px; align-items: start; }
.order .sec-title { color: var(--paint); }
.order .sec-title span { color: var(--ink); }
.order .sec-lede { color: #1B3A22; }
.contact { margin-top: 32px; display: grid; gap: 8px; font-size: 1rem; }
.contact b { font-family: var(--font-stamp); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .02em; }
.contact span { color: #1B3A22; }
.pedido { background: var(--steel); color: var(--steel-ink); border-radius: 10px; padding: 30px 28px 26px;
  background-image: radial-gradient(circle at 14px 14px, #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) 14px, #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at 14px calc(100% - 14px), #8C9AA2 0 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #8C9AA2 0 3px, transparent 3.6px); box-shadow: 0 18px 34px -18px rgba(2,6,23,.55), inset 0 0 0 1px var(--steel-edge); display: grid; gap: 16px; }
.pedido h3 { font-family: var(--font-stamp); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; color: var(--ink); }
.pedido pre { margin: 0; white-space: pre-wrap; font-family: var(--font-code); font-size: .84rem; line-height: 1.6; background: #FFFFFF; border: 1px solid var(--steel-edge); border-radius: 6px; padding: 14px; color: #16222B; user-select: all; }
.pedido .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.pedido .acts .btn { flex: 1 1 180px; }
.pedido .status { font-size: .88rem; color: var(--paint); font-weight: 600; min-height: 1.3em; }
.pedido .hint { font-size: .85rem; color: #4A5961; }

footer.foot { background: var(--ink); color: #9AAAB2; font-size: .86rem; padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ── Responsivo ───────────────────────────────────── */
@media (max-width: 1080px) {
  .slot.empty:last-child { display: none; }
  .rig { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar nav { display: none; }
}
@media (max-width: 820px) {
  .hero-head { grid-template-columns: 1fr; }
  .rig { grid-template-columns: 1fr; }
  .placa { position: static; }
  .flow, .tagrow, .terms, .order-grid { grid-template-columns: 1fr; }
  .tagrow { gap: 36px; }
  .setup-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .setup-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .dock { display: flex; }
  body { padding-bottom: 76px; }
}
@media (max-width: 620px) {
  .slot.empty { display: none; }
  .picker { display: grid; grid-template-columns: 1fr 1fr; }
  .picker button:nth-child(2) { border-right: 0; }
  .picker button:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .slot.state-on .tag-foot .st { display: none; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .picker { width: 100%; }
  .picker button { flex: 1 1 0; padding: 9px 10px 8px; }
  .picker b { font-size: 1.05rem; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sign { grid-template-columns: 1fr; }
  .terms dl { grid-template-columns: 1fr; }
  .setup-strip { grid-template-columns: 1fr; }
  .setup-strip > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .hero { padding-block: 30px 44px; }
  .topbar .btn { padding: 9px 12px; font-size: .95rem; }
  .stampmark { top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Aviso no topo (ligado pelo painel do master) ─── */
.aviso { background: var(--paint); color: var(--lime); font-size: .92rem; font-weight: 600; text-align: center; padding: 9px 16px; }
.aviso a { color: inherit; font-weight: 700; }

/* ── Consentimento de cookies (LGPD) ──────────────── */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin-inline: auto; max-width: 640px;
  background: var(--ink); color: var(--bench-fg); border-radius: 10px; padding: 16px 18px;
  box-shadow: 0 18px 40px -16px rgba(2,6,23,.7); display: grid; gap: 12px; font-size: .92rem;
}
.consent .acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: 9px 14px; font-size: 1rem; }
.consent .btn-ghost { color: var(--bench-fg); box-shadow: inset 0 0 0 2px #3A4A5C; }
@media (max-width: 820px) { .consent { bottom: 88px; } }

/* ── Prévia do rascunho ───────────────────────────── */
.previa { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 70; background: var(--stamp); color: #fff;
  font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 0 0 6px 6px; }
