/* Layout: o portfólio como um livro de ordens de serviço — cada projeto é um registro (PRJ-###) com ficha técnica. */
:root {
  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #131820;
  --muted: #586273;
  --line: #d9dee6;
  --accent: #1d4ed8;
  --accent-soft: #e3eaff;
  --on-accent: #ffffff;
  --ok: #157a3f;
  --ok-soft: #dcf2e4;
  --warn: #9a5b00;
  --warn-soft: #fbedd3;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(19, 24, 32, .06), 0 8px 24px -12px rgba(19, 24, 32, .18);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1117; --surface: #161a22; --ink: #e8ecf2; --muted: #9aa3b2; --line: #272d38;
    --accent: #8aa6ff; --accent-soft: #1c2645; --on-accent: #0b1020;
    --ok: #5fd08a; --ok-soft: #12291c; --warn: #f0b45a; --warn-soft: #2e2212; --danger: #ff8a80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1117; --surface: #161a22; --ink: #e8ecf2; --muted: #9aa3b2; --line: #272d38;
  --accent: #8aa6ff; --accent-soft: #1c2645; --on-accent: #0b1020;
  --ok: #5fd08a; --ok-soft: #12291c; --warn: #f0b45a; --warn-soft: #2e2212; --danger: #ff8a80;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.code { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* navegação */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 16px; text-decoration: none; display: inline-flex; align-items: center; }
.brand::before { content: ""; width: 10px; height: 10px; background: var(--accent); border-radius: 2px; margin-right: 8px; }
.brand span { color: var(--accent); }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav ul { gap: 14px; font-size: 14px; } .nav ul .hide-sm { display: none; } }
@media (max-width: 400px) { .nav .wrap { gap: 8px; } .nav ul { gap: 10px; font-size: 13.5px; } .nav ul .btn.sm { padding-inline: 10px; } .nav .brand { font-size: 14.5px; gap: 8px; } }
@media (max-width: 340px) { .nav ul li:first-child { display: none; } }

/* botões */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; font: 500 15px/1.2 var(--body); text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.sm { padding: 6px 11px; font-size: 13.5px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* hero */
.hero { padding-block: 72px 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; } .hero { padding-block: 48px; } }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 700; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--muted); font-size: clamp(16.5px, 1.8vw, 18.5px); max-width: 58ch; margin: 0 0 28px; }

/* ficha (o "comprovante" do hero) */
.ficha { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; font-family: var(--mono); font-size: 13.5px; min-width: 0; }
.ficha header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.ficha dl { margin: 0; display: grid; gap: 7px; }
.ficha .ln { display: flex; align-items: baseline; gap: 8px; }
.ficha dt { color: var(--muted); white-space: nowrap; }
.ficha .ln::after { content: none; }
.ficha .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 12px; }
.ficha dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.ficha footer { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; }

/* pílulas de status */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* seções */
section { padding-block: 72px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; margin-top: 6px; }

/* filtros */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 13px/1 var(--body); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* grade de projetos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; min-width: 0; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cover { aspect-ratio: 16 / 10; max-width: 100%; background: var(--accent-soft); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--accent); letter-spacing: -0.04em;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; background-color: var(--accent-soft); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-meta { font-size: 13px; color: var(--muted); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.stack span { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; color: var(--muted); background: var(--paper); }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; }

/* serviços */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.service { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.service h3 { font-size: 20px; margin: 0 0 8px; }
.service p { margin: 0; color: var(--muted); font-size: 15px; max-width: 40ch; }

/* sobre */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 24px; } }
.about h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 8px 0 14px; }
.about p { color: var(--muted); max-width: 62ch; margin: 0; }

/* contato */
.contact { background: var(--ink); color: var(--paper); }
.contact .label { color: color-mix(in srgb, var(--paper) 65%, transparent); }
.contact h2 { font-size: clamp(30px, 4.6vw, 52px); margin: 10px 0 12px; }
.contact p { color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 55ch; margin: 0; }
.contact .btn { background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.contact .btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .btns { margin-top: 24px; }
footer.site { padding-block: 24px; color: var(--muted); font-size: 13px; font-family: var(--mono); }

/* página do projeto */
.p-hero { padding-block: 44px 72px; }
.back { font-family: var(--mono); font-size: 13.5px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.p-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.p-hero h1 { font-size: clamp(32px, 5.4vw, 58px); font-weight: 700; margin: 12px 0 12px; }
.p-hero .lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px 24px; border-block: 1px solid var(--line); padding-block: 18px; margin: 28px 0; }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.p-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 36px; max-width: 100%; }
.p-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
@media (max-width: 860px) { .p-body { grid-template-columns: 1fr; gap: 28px; } }
.prose p { margin: 0 0 1em; max-width: 66ch; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 36px; }
.gallery a { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* ===== painel ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.login { max-width: 460px; margin: 56px auto; }
.field { display: grid; gap: 6px; min-width: 0; }
.form-grid { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
.field > label { font-size: 13.5px; font-weight: 500; }
input, textarea, select { width: 100%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 10px 12px; font: 15px/1.4 var(--body); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.hint a { color: var(--accent); }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 36px 0 18px; }
.topbar h1 { font-size: 30px; }
.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.table { width: 100%; border-collapse: collapse; }
.list-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.thumb { width: 64px; height: 44px; border-radius: 6px; overflow: hidden; background: var(--accent-soft); display: grid; place-items: center; font-family: var(--display); color: var(--accent); font-weight: 800; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info { min-width: 0; }
.list-item .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.list-item .info small { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .list-item { grid-template-columns: 52px minmax(0, 1fr); } .thumb { width: 52px; } .actions { grid-column: 1 / -1; justify-content: flex-start; } }
.imgs { display: flex; flex-wrap: wrap; gap: 10px; }
.imgs figure { margin: 0; position: relative; width: 120px; height: 76px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.imgs figure img { width: 100%; height: 100%; object-fit: cover; }
.imgs figure button { position: absolute; top: 4px; right: 4px; background: var(--ink); color: var(--paper); border: 0; border-radius: 5px; width: 24px; height: 24px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.check input { width: auto; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 8px; font-weight: 500; font-size: 14.5px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; }
.toast.err { background: var(--danger); color: #fff; }
.confirm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--warn-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.hidden { display: none !important; }

/* ===== interatividade ===== */
.btn.lg { padding: 13px 20px; font-size: 16px; }
.nav ul { align-items: center; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sub { color: var(--muted); max-width: 60ch; margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
html.lock { overflow: hidden; }

/* hero com maquete */
.hero { padding-block: 64px 0; border-bottom: 0; }
.hero .wrap:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.hero .wrap + .wrap { display: block; }
@media (max-width: 960px) { .hero .wrap:first-child { grid-template-columns: 1fr; } }
.hero-mock { position: relative; min-width: 0; overflow-x: clip; overflow-y: visible; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 56px 0 0; border-block: 1px solid var(--line); }
.kpis > div { padding: 18px 16px 18px 0; }
.kpis > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.kpis dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* maquete de sistema */
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: visible; font-size: 12.5px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-url { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--paper); border-radius: 5px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mock-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 300px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; background: var(--paper); border-bottom-left-radius: 12px; }
.mock-side b { font-family: var(--display); font-size: 14px; margin: 0 6px 10px; line-height: 1.2; overflow-wrap: anywhere; }
.mock-side span { padding: 6px 8px; border-radius: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-side span.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.mock-kpis small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-kpis b { font-family: var(--display); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 6px 4px 0; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 23px; }
.mock-chart span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; transition: height .4s; }
.mock-chart span:last-child { opacity: 1; }
.mock-rows { display: flex; flex-direction: column; }
.mock-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--line); }
.mock-rows div:last-child { border-bottom: 0; }
.mock-rows span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mock-rows b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock-rows .new { animation: rowin .5s ease-out; background: linear-gradient(90deg, var(--accent-soft), transparent); }
@keyframes rowin { from { transform: translateY(-6px); opacity: .3; } }
.mock-tag { position: absolute; font: 600 12px/1.2 var(--body); background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; max-width: 70%; overflow: hidden; text-overflow: ellipsis; }
.mock-tag::before { content: "●"; color: var(--ok-soft); margin-right: 6px; }
.mock-tag.t1 { top: 58px; right: -10px; animation: float 5s ease-in-out infinite; }
.mock-tag.t2 { bottom: -14px; left: 40px; animation: float 5s ease-in-out -2.5s infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock-side { display: none; } .mock-tag.t1 { right: 6px; top: 50px; } .mock-tag.t2 { left: 10px; } }
@media (prefers-reduced-motion: reduce) { .mock-tag, .mock-rows .new, .marquee-track { animation: none !important; } }

/* faixa de segmentos */
.marquee { margin-top: 0; border-bottom: 1px solid var(--line); overflow: hidden; padding-block: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 120s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: "/"; margin-left: 40px; color: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }


/* vitrine do topo: projetos reais em pilha */
.deck { position: relative; padding: 6px 28px 54px 6px; }
.dk-stack { position: relative; aspect-ratio: 5 / 4.6; }
.dk-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .3s; transform-origin: 50% 100%; }
.dk-card[data-pos="0"] { z-index: 5; transform: none; }
.dk-card[data-pos="0"]:hover { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px -18px rgba(19,24,32,.45); }
.dk-card[data-pos="1"] { z-index: 4; transform: translate(16px, -14px) rotate(3deg) scale(.96); opacity: .9; cursor: pointer; }
.dk-card[data-pos="2"] { z-index: 3; transform: translate(30px, -26px) rotate(6deg) scale(.92); opacity: .65; cursor: pointer; }
.dk-card:not([data-pos="0"]):not([data-pos="1"]):not([data-pos="2"]) { z-index: 1; transform: translate(40px, -34px) rotate(8deg) scale(.88); opacity: 0; pointer-events: none; }
.dk-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.dk-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dk-bar span { margin-left: 8px; font: 11px var(--mono); color: var(--muted); background: var(--paper); border-radius: 5px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dk-shot { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dk-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.dk-art { position: absolute; inset: 0; padding: 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, hsl(calc(var(--h) + 30) 85% 64%) 0%, transparent 55%), linear-gradient(135deg, hsl(var(--h) 72% 46%), hsl(calc(var(--h) + 18) 78% 26%)); }
.dk-art i { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); }
.dk-art i:first-child { width: 62%; aspect-ratio: 1; right: -14%; top: -22%; }
.dk-art i:nth-child(2) { width: 34%; aspect-ratio: 1; right: 18%; top: 30%; background: rgba(255,255,255,.08); border: 0; }
.dk-art span { position: relative; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.dk-art b { position: relative; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.05; letter-spacing: -0.02em; max-width: 90%; }
.dk-info { padding: 14px 16px 16px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.dk-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dk-info b { font-family: var(--display); font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-info small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cta { color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.dk-dots { position: absolute; left: 6px; bottom: 14px; display: flex; gap: 6px; }
.dk-dots button { width: 22px; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: background .2s, width .2s; }
.dk-dots button[aria-current] { background: var(--accent); width: 34px; }
.deck .mock-tag { z-index: 6; }
.deck .mock-tag.t1 { top: 40px; right: 0; }
.deck .mock-tag.t2 { bottom: 4px; left: auto; right: 24px; }
@media (max-width: 560px) { .deck { padding-right: 18px; } .dk-card[data-pos="1"] { transform: translate(10px, -10px) rotate(2deg) scale(.96); } .dk-card[data-pos="2"] { transform: translate(18px, -18px) rotate(4deg) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .dk-card { transition: none; } }

/* simulador */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.sim { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .sim { grid-template-columns: 1fr; } }
.sim-controls { display: grid; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 13.5px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.mods, .types { display: flex; flex-wrap: wrap; gap: 6px; }
.mod { position: relative; cursor: pointer; }
.mod input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mod span { display: inline-block; font-size: 13.5px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.mod input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mod input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.sim-view { min-width: 0; padding-bottom: 14px; }


/* abas do simulador e cores */
.sim-tabs { grid-column: 1 / -1; display: inline-flex; justify-self: start; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.sim-tabs button { font: 600 14px/1 var(--body); border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.sim-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

/* maquete de site: tem a própria paleta, como um site de verdade */
.site-mock { --sc: #1d4ed8; background: #fff; color: #1b1f27; border-color: var(--line); transition: opacity .35s; }
.site-mock.fade { opacity: 0; }
.site-mock .mock-bar { border-color: #e6e9ef; }
.site-mock .mock-bar i { background: #dde1e8; }
.site-mock .mock-url { background: #f1f3f7; color: #5b6475; }
.sm-nav { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid #eef0f4; font-size: 11.5px; color: #5b6475; white-space: nowrap; overflow: hidden; }
.sm-nav b { font-family: var(--display); font-size: 14px; color: var(--sc); margin-right: auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sm-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 16px; background: color-mix(in srgb, var(--sc) 8%, #fff); }
.sm-hero small { display: block; font: 600 10.5px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--sc); margin-bottom: 6px; }
.sm-hero h4 { font-family: var(--display); font-size: clamp(17px, 2vw, 21px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.sm-btn { display: inline-block; background: var(--sc); color: #fff; font-weight: 600; font-size: 11.5px; padding: 7px 12px; border-radius: 6px; }
.sm-img { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 70%, #fff), var(--sc)); overflow: hidden; }
.sm-img i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.sm-img i:first-child { width: 46%; aspect-ratio: 1; right: -8%; top: -10%; }
.sm-img i:last-child { width: 30%; aspect-ratio: 1; left: 12%; bottom: -8%; background: rgba(255, 255, 255, .18); }
.sm-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 16px 18px; }
.sm-sec { border: 1px solid #eef0f4; border-radius: 8px; padding: 10px; min-width: 0; font-size: 11px; }
.sm-sec h5 { margin: 0 0 8px; font: 700 11.5px/1.2 var(--body); color: #1b1f27; }
.sm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sm-cards div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sm-cards i { display: block; aspect-ratio: 4 / 3; border-radius: 5px; background: color-mix(in srgb, var(--sc) 18%, #fff); }
.sm-cards span, .sm-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3d4452; }
.sm-cards b { font-size: 10.5px; }
.sm-cards em { font-style: normal; font-size: 10px; text-align: center; color: #fff; background: var(--sc); border-radius: 4px; padding: 2px 0; }
.sm-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #e6e9ef; }
.sm-row b { white-space: nowrap; color: var(--sc); }
.sm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sm-gallery i { aspect-ratio: 1; border-radius: 4px; background: color-mix(in srgb, var(--sc) 30%, #fff); }
.sm-gallery i:nth-child(2n) { background: color-mix(in srgb, var(--sc) 55%, #fff); }
.sm-slots { display: flex; flex-wrap: wrap; gap: 4px; }
.sm-slots span { border: 1px solid #e1e5ec; border-radius: 4px; padding: 3px 6px; font-family: var(--mono); font-size: 10px; }
.sm-slots span.on { background: var(--sc); border-color: var(--sc); color: #fff; }
.sm-stars { color: #e3a008; font-size: 13px; letter-spacing: 1px; }
.sm-stars small { color: #5b6475; font-size: 10.5px; letter-spacing: 0; }
.sm-lines { display: grid; gap: 5px; margin-top: 6px; }
.sm-lines i { height: 6px; border-radius: 3px; background: #edf0f5; }
.sm-lines i:last-child { width: 60%; }
.sm-map { height: 46px; border-radius: 6px; position: relative; background-color: #eef2ec; background-image: linear-gradient(#dde4d8 1px, transparent 1px), linear-gradient(90deg, #dde4d8 1px, transparent 1px); background-size: 12px 12px; }
.sm-map i { position: absolute; left: 50%; top: 40%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sc); }
.sm-hours { display: block; margin-top: 5px; color: #5b6475; }
.sm-wa { position: absolute; right: 14px; bottom: 14px; background: #1fa855; color: #fff; font: 600 11px/1 var(--body); padding: 8px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
@media (max-width: 560px) { .sm-hero { grid-template-columns: 1fr; } .sm-img { display: none; } .sm-body { grid-template-columns: 1fr; } .sm-nav span:nth-of-type(n+3) { display: none; } }

/* etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { padding: 20px 22px 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.service .link { margin-top: 12px; font-size: 14.5px; }

/* perguntas */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 20px; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 64ch; }

/* contato */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.channels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.channels li { display: grid; gap: 2px; }
.channels a, .channels .sel { color: var(--paper); font-size: 18px; font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.contact-form { background: var(--surface); color: var(--ink); border-radius: 14px; padding: 24px; min-width: 0; }
.contact-form .label { color: var(--muted); }
.form-error { margin: 0; color: var(--danger); font-size: 14.5px; }
.form-error a { color: inherit; }
.sent { text-align: left; display: grid; gap: 10px; padding: 8px 0; }
.sent[hidden] { display: none; }
.sent-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.sent h3 { font-size: 24px; }
.sent p { margin: 0; color: var(--muted); }

/* janela de orçamento */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 13, 18, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); overflow-y: auto; animation: fade .2s; }
.modal[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-card h2 { font-size: 28px; margin: 6px 0 18px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 20px; cursor: pointer; }

/* página de projeto: chamada */
.p-aside { display: grid; gap: 22px; align-content: start; }
.cta-box { background: var(--accent-soft); border-radius: 10px; padding: 18px; display: grid; gap: 8px; }
.cta-box p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* botão flutuante */
.fab { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: #1f9d55; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .15s; }
.fab-btn:hover { transform: scale(1.06); }
.fab-panel { width: min(300px, calc(100vw - 36px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.fab-panel[hidden] { display: none; }
.fab-panel p { margin: 0; color: var(--muted); font-size: 14px; }
.fab-panel .btn { justify-content: center; }
.contact .contact-form .btn { background: var(--surface); color: var(--ink); border-color: var(--line); }
.contact .contact-form .btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.field-error { color: var(--danger); font-size: 13px; margin: 0; }
.field-error[hidden] { display: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 20%, transparent); }

/* ===== logo, idioma, telefone e rodapé ===== */
.brand::before { content: none; }
.brand { gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-name span { color: var(--accent); }
.lang-btn { font: 600 12.5px/1 var(--mono); letter-spacing: .04em; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; cursor: pointer; }
.lang-btn:hover { color: var(--ink); border-color: var(--muted); }
.phone-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 8px; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }
.contact-alt { margin-top: 18px !important; }
.contact-alt a { color: var(--paper); text-underline-offset: 3px; }
footer.site { padding-block: 56px 28px; border-top: 1px solid var(--line); font-family: var(--body); font-size: 15px; color: var(--ink); background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .7fr); gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
.foot-brand .brand { font-size: 18px; }
.foot-brand .logo-mark { width: 36px; height: 36px; }
.foot-brand p { color: var(--muted); margin: 12px 0 0; max-width: 34ch; }
.foot-h { margin-bottom: 12px; }
footer.site .channels { margin: 0; gap: 12px; }
footer.site .channels a { color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none; }
footer.site .channels a:hover { color: var(--accent); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links .link:hover { color: var(--ink); }
.foot-links .link { color: var(--muted); text-decoration: none; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font: 13px var(--mono); }
.en-box { border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; }
.en-box summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.brand .brand-name { color: var(--ink); }
.brand .brand-name span { color: var(--accent); }
.contact .contact-form p, .contact .contact-form .hint { color: var(--muted); }
.contact .contact-form .sent p { color: var(--muted); }
