/* Wizely3D. Tema escuro único, igual ao produto e às artes do LinkedIn.
   Conceito: cada seção é uma folha de desenho, aberta por uma cota. */
/* Só baixada onde não há Bahnschrift: no Windows, que é onde o Plant 3D roda, o título usa a do sistema. */
@font-face { font-family: Barlow; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0a1421;
  --panel: #111e31;
  --chip: #16263c;
  --fg: #f1f5f9;
  --soft: #93a7bd;
  --dim: #7d93ab;
  --rule: #1d3049;
  --cy: #22d3ee;
  --cy-line: rgba(34, 211, 238, .45);
  --am: #f59e0b;
  --pipe: #eab308;
  --steel: #26405f;
  --steel-light: #86a8ce;
  --display: Bahnschrift, Barlow, "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cy); }
p { margin: 0; }
code { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.02; }
h1 span { color: var(--cy); }
h2 { font-size: clamp(2.05rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.4rem; }
.lead { color: var(--soft); font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.eyebrow, .label { font: 500 .8rem var(--mono); letter-spacing: .05em; color: var(--cy); }
.label { color: var(--dim); margin-bottom: 4px; }
.note { color: var(--dim); font-size: .9rem; line-height: 1.5; }

/* Topo */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 20, 33, .92); border-bottom: 1px solid var(--rule); backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); }
.word { font: 700 1.3rem var(--display); letter-spacing: -.02em; color: var(--fg); }
.word span { color: var(--cy); }
.top-nav { display: flex; gap: 22px; margin-left: auto; }
.top-end { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; gap: 8px; font: 500 .82rem var(--mono); }
.lang a { color: var(--dim); text-decoration: none; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current] { color: var(--cy); }
.cta-short { display: none; }
.top-nav a { color: var(--soft); text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: var(--fg); }

/* Botões */
.btn { display: inline-block; background: var(--cy); color: var(--bg); font: 600 1.02rem var(--display); text-decoration: none; padding: 14px 24px; border: 1px solid var(--cy); border-radius: 2px; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--steel-light); }
.btn-ghost:hover { border-color: var(--cy); color: var(--cy); filter: none; }
.btn-small { padding: 9px 15px; font-size: .92rem; white-space: nowrap; }

/* Abertura */
.hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(24px, 3vw, 40px); }
.hero-text { display: grid; gap: 24px; justify-items: start; }
.hero-text .lead strong { color: var(--fg); font-weight: 600; white-space: nowrap; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Carrossel do topo (Scripts/site_hero.py). Sem JavaScript, fica a primeira imagem. */
.hero-show { margin: 0; display: grid; gap: 12px; min-width: 0; }
.show-stage { position: relative; aspect-ratio: 16 / 10; touch-action: pan-y; }
.show-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .6s ease; }
.show-slide.is-on { opacity: 1; }
.hero-show figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; font: 500 .78rem/1.45 var(--mono); color: var(--dim); }
.show-captions { display: grid; }
.show-caption { grid-area: 1 / 1; visibility: hidden; }
.show-caption.is-on { visibility: visible; }
.show-nav { display: flex; align-items: center; gap: 2px; justify-self: end; }
.show-nav[hidden] { display: none; }
.show-step, .show-dot { display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--soft); cursor: pointer; }
.show-step { width: 30px; height: 30px; border: 1px solid var(--rule); border-radius: 2px; font: 600 1.15rem/1 var(--body); }
.show-step:hover { border-color: var(--cy-line); color: var(--fg); }
.show-dot { width: 22px; height: 30px; }
.show-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); transition: background .2s; }
.show-dot:hover::before { background: var(--steel-light); }
.show-dot[aria-current="true"]::before { background: var(--cy); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--rule); }
.facts > div { display: flex; align-items: baseline; gap: 14px; padding: 20px 22px; min-width: 0; }
.facts > div + div { border-left: 1px solid var(--rule); }
.facts dt { font: 600 2.5rem/1 var(--display); color: var(--cy); white-space: nowrap; }
.facts dd { margin: 0; color: var(--soft); font-size: .98rem; line-height: 1.35; }

/* Folhas */
.sheet { display: grid; gap: 24px; padding-block: clamp(64px, 9vw, 112px) 0; }
.sheet > * { min-width: 0; }

/* A cota que abre cada folha: linha com traços nas pontas e o nome no meio. */
.cota { display: flex; align-items: center; gap: 16px; font: 500 .8rem var(--mono); letter-spacing: .06em; color: var(--cy); text-transform: uppercase; }
.cota span { white-space: nowrap; }
.cota::before, .cota::after { content: ""; flex: 1; height: 15px; background: linear-gradient(var(--cy-line), var(--cy-line)) center / 100% 1px no-repeat; }
.cota::before { border-left: 1px solid var(--cy-line); }
.cota::after { border-right: 1px solid var(--cy-line); }

/* Fluxo */
.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; padding-block: 18px; border-top: 1px solid var(--rule); }
.steps li::before { content: "0" counter(step); grid-row: span 2; font: 600 1.1rem var(--mono); color: var(--cy); }
.steps b { font: 600 1.3rem var(--display); }
.steps span { color: var(--soft); font-size: 1rem; line-height: 1.5; margin-top: 4px; }

/* A demonstração */
.demo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--rule); margin-top: 10px; background: var(--panel); }
.demo-draw { padding: clamp(14px, 2vw, 24px); display: grid; gap: 18px; border-right: 1px solid var(--rule); background: var(--bg); min-width: 0; }
.demo-list { padding: clamp(16px, 2.4vw, 28px); display: grid; gap: 14px; align-content: start; justify-items: start; min-width: 0; }
#drawing { width: 100%; height: auto; display: block; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: baseline; min-width: 0; }
.control label { font-size: .9rem; color: var(--soft); }
.control output { font: 600 .95rem var(--mono); color: var(--cy); }
.control input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--cy); margin: 0; height: 26px; cursor: pointer; }
.control select, .control input[type=number], .field input, .field textarea { grid-column: 1 / -1; width: 100%; background: var(--chip); color: var(--fg); border: 1px solid var(--rule); border-radius: 2px; padding: 9px 10px; font: 500 .98rem var(--body); }
.list-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; width: 100%; }
.list-title b { font: 600 1.25rem var(--display); }
.list-title span { font: 500 .8rem var(--mono); color: var(--dim); }
.table-scroll { width: 100%; overflow-x: auto; }
.demo table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.demo th, .demo td { padding: 10px 9px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.demo thead th { font: 500 .74rem var(--mono); letter-spacing: .04em; color: var(--dim); text-transform: uppercase; white-space: nowrap; }
.demo .num { text-align: right; font-family: var(--mono); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo td small { display: block; color: var(--dim); font-size: .78rem; line-height: 1.3; }
.demo tfoot th, .demo tfoot td { border-bottom: 0; font-weight: 700; font-size: 1rem; }
.demo tfoot .num { color: var(--fg); }
.changed { animation: changed .5s ease-out; }
@keyframes changed { from { background: rgba(34, 211, 238, .22); } to { background: transparent; } }

.dim { stroke: var(--cy); stroke-width: 1.2; fill: none; }
.dim-text { font: 500 15px var(--mono); fill: var(--cy); }
.code-text { font: 500 13px var(--mono); fill: var(--dim); }
.steel { fill: var(--steel); stroke: var(--steel-light); stroke-width: 1; }
.flange { fill: var(--steel-light); }
.plate { fill: var(--steel-light); stroke: var(--cy); stroke-width: .6; }
.bolt { fill: var(--steel); stroke: var(--steel-light); stroke-width: .8; }
.nut { fill: var(--steel-light); }
.pipe { fill: var(--pipe); fill-opacity: .9; stroke: #fde047; stroke-width: 1.2; }
.rebar { fill: none; stroke: var(--cy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.floor { stroke: var(--steel-light); stroke-width: 1.4; }

/* Catálogo */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.filters button { font: 500 .92rem var(--body); color: var(--soft); background: transparent; border: 1px solid var(--rule); border-radius: 2px; padding: 8px 14px; cursor: pointer; }
.filters button:hover { border-color: var(--steel-light); color: var(--fg); }
.filters button[aria-pressed=true] { background: var(--cy); border-color: var(--cy); color: var(--bg); font-weight: 600; }
.filters button span { font: 500 .78rem var(--mono); color: var(--dim); margin-left: 3px; }
.filters button[aria-pressed=true] span { color: var(--bg); }
.filters-sub button { font-size: .85rem; padding: 5px 11px; }
.filters-sub[hidden] { display: none; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.wall figure { margin: 0; padding: 6px 6px 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.wall figure[hidden] { display: none; }
.wall figure:hover { background: var(--panel); }
.wall img { width: 100%; aspect-ratio: 1; mix-blend-mode: lighten; }
.wall figcaption { padding-inline: 6px; font-size: .86rem; line-height: 1.3; color: var(--soft); }
.wall code { display: block; font-size: .72rem; color: var(--cy); margin-bottom: 2px; }

/* Seu padrão e contato */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 10px; }
.split > div:first-child { display: grid; gap: 20px; }
.headers { display: grid; gap: 18px; }
.list-head { margin: 0; display: grid; gap: 7px; }
.list-head figcaption { font: 500 .78rem var(--mono); color: var(--dim); }
.own figcaption { color: var(--cy); }
.list-sheet { background: #eef2f6; color: #14202f; padding: 14px 16px; border-radius: 1px; }
.list-sheet table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.list-sheet th, .list-sheet td { padding: 7px 9px; border: 1px solid #b6c2cf; text-align: left; }
.list-sheet th { background: #dbe3ec; font-weight: 600; width: 1%; white-space: nowrap; }
.list-sheet code { font-size: .84rem; overflow-wrap: anywhere; }
.list-sheet .mark { background: #c8f2fa; box-shadow: inset 3px 0 0 #0e9fbb; }
.list-sheet .mark code { font-weight: 700; }

/* TI */
.facts-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.facts-list li { padding-block: 15px; border-top: 1px solid var(--rule); color: var(--soft); font-size: 1rem; line-height: 1.5; }
.facts-list b { color: var(--fg); }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule); margin-top: 10px; max-width: 900px; }
.plan { padding: clamp(20px, 2.4vw, 30px); display: grid; gap: 12px; align-content: start; justify-items: start; min-width: 0; grid-template-rows: auto auto auto auto auto 1fr; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan-best { background: var(--panel); box-shadow: inset 0 3px 0 var(--cy); }
.plan .tag { font: 600 .74rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--cy); }
.plan:not(.plan-best)::before { content: "\00a0"; font: 600 .74rem var(--mono); }
.who { color: var(--soft); font-size: .96rem; line-height: 1.4; }
.price { font: 600 2.3rem/1 var(--display); }
.price small { font: 400 .95rem var(--body); color: var(--soft); margin-left: 4px; }
.per { font: 500 .95rem var(--mono); color: var(--cy); }
.saving { color: var(--soft); font-size: .92rem; line-height: 1.4; }
.plan .btn { align-self: end; margin-top: 10px; }
.includes { grid-column: 1 / -1; padding: 14px clamp(20px, 2.4vw, 30px); border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.includes p { font: 600 .74rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.includes ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--soft); font-size: .96rem; }

/* Perguntas */
.faq { border-bottom: 1px solid var(--rule); max-width: 900px; margin-top: 6px; }
.faq details { border-top: 1px solid var(--rule); padding-block: 15px; }
.faq summary { cursor: pointer; font: 600 1.15rem var(--display); }
.faq p { margin-top: 10px; color: var(--soft); font-size: 1rem; max-width: 62ch; }

/* Contato */
.mail { font-family: var(--mono); color: var(--cy); }
.contact { display: grid; gap: 15px; justify-items: start; }
.field { display: grid; gap: 5px; width: 100%; }
.field label { font-size: .92rem; color: var(--soft); }
.field small { color: var(--dim); }
.field textarea { resize: vertical; }
.field[aria-invalid] { outline: none; }
.field [aria-invalid] { border-color: var(--am); }
.err { color: var(--am); font-size: .86rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .98rem; line-height: 1.45; min-height: 1.45em; color: var(--soft); }
.form-status.ok { color: var(--cy); font-weight: 600; }
.form-status.bad { color: var(--am); font-weight: 600; }

/* Carimbo */
footer { padding-block: clamp(64px, 9vw, 104px) 34px; display: grid; gap: 14px; }
.stamp { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr); border: 1px solid var(--steel-light); font-size: .9rem; line-height: 1.45; }
.stamp > div { padding: 14px 16px; color: var(--soft); min-width: 0; overflow-wrap: anywhere; }
.stamp > div + div { border-left: 1px solid var(--rule); }
.stamp .label { text-transform: uppercase; font-size: .7rem; }
.stamp-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.stamp-brand p { width: 100%; font-size: .86rem; }
.legal { color: var(--dim); font-size: .82rem; }
.stamp a { color: var(--soft); }
.stamp a:hover { color: var(--cy); }

/* Políticas */
.doc { max-width: 780px; padding-block: clamp(36px, 6vw, 64px) 0; }
.doc h1 { font-size: clamp(2rem, 4.2vw, 2.8rem); margin-bottom: 14px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--soft); }
.doc p { margin-block: 12px; }
.doc li { margin-bottom: 7px; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border: 1px solid var(--rule); vertical-align: top; }
.doc th { background: var(--panel); font-weight: 600; color: var(--fg); width: 38%; }
.updated { color: var(--dim); font-size: .88rem; }
.backlink { display: inline-block; margin-bottom: 22px; font-size: .92rem; text-decoration: none; }

/* Telas menores */
@media (max-width: 1040px) {
  .top-nav { display: none; }
  .top-row { justify-content: space-between; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-draw { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .steps, .split { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .plan:not(.plan-best)::before { display: none; }
  .plan { grid-template-rows: none; }
  .facts-list { grid-template-columns: minmax(0, 1fr); }
  .stamp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stamp > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 620px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--rule); }
  .facts > div { padding: 14px 4px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-small { padding: 8px 11px; font-size: .84rem; }
  .top-row { gap: 10px; }
  .top-end { gap: 10px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .cota { gap: 10px; font-size: .72rem; }
  /* A lista da demonstração precisa caber sem rolar. */
  .demo-list { padding-inline: 10px; }
  .demo th, .demo td { padding: 9px 4px; }
  .demo table { font-size: .86rem; }
  .demo .num { font-size: .78rem; }
  .demo thead th { font-size: .66rem; letter-spacing: 0; }
  .demo td small { font-size: .7rem; }
  #drawing { overflow: visible; }
  .dim-text { font-size: 30px; }
  .code-text { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .changed { animation: none; }
  .show-slide { transition: none; }
}
