/* Layout: header fixo → hero com "quadro elétrico" interativo → bandas de conteúdo a largura total com coluna de 72rem. */
:root {
  --red: #C20605;          /* vermelho Faísca (marca) */
  --red-hi: #D7263D;       /* vermelho hover */
  --red-soft: #FBE9E8;     /* fundo de realce */
  --ink: #1F1E1D;          /* texto principal (carvão da marca) */
  --ink-2: #45443F;        /* texto secundário */
  --muted: #6E6C65;
  --line: #E4E3DF;
  --bg: #F6F5F2;           /* neutro levemente quente */
  --surface: #FFFFFF;
  --panel: #262624;        /* quadro elétrico / rodapé */
  --panel-2: #30302E;
  --panel-ink: #F1F0EC;
  --ok: #1E7A46;
  --warn: #F5B301;
  --focus: #C20605;
  --shadow: 0 1px 2px rgb(31 30 29 / .06), 0 8px 24px -12px rgb(31 30 29 / .18);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, "Arial Narrow", sans-serif;

  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --radius: 10px;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #F0483D; --red-hi: #FF6A5F; --red-soft: #3A1B19;
    --ink: #F1F0EC; --ink-2: #CFCDC6; --muted: #A3A19A; --line: #3A3936;
    --bg: #161514; --surface: #1F1E1C; --panel: #0F0F0E; --panel-2: #1B1B19; --panel-ink: #F1F0EC;
    --ok: #4CC07F; --focus: #FF6A5F;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #F0483D; --red-hi: #FF6A5F; --red-soft: #3A1B19;
  --ink: #F1F0EC; --ink-2: #CFCDC6; --muted: #A3A19A; --line: #3A3936;
  --bg: #161514; --surface: #1F1E1C; --panel: #0F0F0E; --panel-2: #1B1B19; --panel-ink: #F1F0EC;
  --ok: #4CC07F; --focus: #FF6A5F;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-hi); }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-family: var(--font-cond); font-size: var(--step-4); font-weight: 700; letter-spacing: -.015em; }
h2 { font-family: var(--font-cond); font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap); 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: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; line-height: 1.5; }
.muted { color: var(--muted); }
.prose { max-width: 68ch; display: grid; gap: 1rem; }
.prose h2 { margin-top: 1.5rem; }
.prose h3 { margin-top: .75rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.note { border-left: 3px solid var(--warn); background: var(--surface); padding: .85rem 1rem; border-radius: 0 8px 8px 0; color: var(--ink-2); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: 8px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hi); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--panel); color: var(--panel-ink); font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .4rem; flex-wrap: wrap; }
@media (max-width: 600px) { .topbar .hours { display: none; } }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar .dgeg { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .dgeg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4CC07F; box-shadow: 0 0 0 3px rgb(76 192 127 / .25); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 52px; height: auto; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name strong { font-family: var(--font-cond); font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.brand-name span { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.menu { display: none; }
.menu a { color: var(--ink-2); text-decoration: none; font-weight: 500; padding: .5rem .65rem; border-radius: 6px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); background: var(--bg); }
.menu a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 6px 6px 0 0; }
.nav .btn { min-height: 42px; padding: .55rem 1rem; }
.nav-cta { display: none; }
.burger { display: inline-flex; }
.burger summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); }
.burger summary::-webkit-details-marker { display: none; }
.burger[open] .mobile-menu { display: grid; }
.mobile-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .75rem max(16px, env(safe-area-inset-right, 0px)) 1.25rem max(16px, env(safe-area-inset-left, 0px)); gap: .15rem;
}
.mobile-menu a { padding: .8rem .5rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: .75rem; color: #fff; border: 0; }
@media (min-width: 960px) {
  .menu { display: flex; gap: .15rem; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 1.25rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 2.5rem 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--red); }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--step--1); color: var(--ink-2); padding: 0; margin: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding-block: 3.5rem 4.5rem; } }

/* Início rápido do orçamento: a 1.ª pergunta do formulário no topo da página */
.quick { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 1.25rem; display: grid; gap: .9rem; min-width: 0; }
.quick-head { display: flex; gap: .55rem; align-items: baseline; }
.quick-head .tf-num { font-size: .95rem; }
.quick-head h2 { font-family: var(--font); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.quick-sub { color: var(--muted); font-size: .95rem; margin-top: -.4rem; }
.quick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.quick-opt {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: .8rem; min-height: 60px; padding: .55rem .8rem .55rem .6rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .12s, background .12s;
}
.quick-opt:hover, .quick-opt:focus-visible { border-color: var(--red); background: var(--red-soft); color: var(--ink); }
.quick-opt .ico { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); color: var(--red); border: 1px solid var(--line); }
.quick-opt .ico svg { width: 22px; height: 22px; }
.quick-opt b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.quick-opt small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.3; }
.quick-opt > svg { width: 18px; height: 18px; color: var(--muted); }
.quick-opt:hover > svg { color: var(--red); }
.quick-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; }
.quick-foot a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (min-width: 560px) and (max-width: 959px) { .quick-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 959px) { .hero-ctas { display: none; } .hero-grid { gap: 1.5rem; } }
@media (max-width: 520px) { .quick { padding: 1rem .85rem; border-radius: 14px; } .quick-opt { min-height: 56px; gap: .65rem; } }
@media (prefers-reduced-motion: reduce) { .quick-opt, .btn { transition: none; } }
.why { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.why li { display: grid; gap: .35rem; }
.why h3 { display: flex; gap: .5rem; align-items: center; }
.why h3 svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.why p { color: var(--ink-2); font-size: .96rem; }

/* ---------- Secções ---------- */
.band { padding-block: 3.5rem; }
.band-alt { background: var(--surface); border-block: 1px solid var(--line); }
.band-dark { background: var(--panel); color: var(--panel-ink); }
.band-dark .lead, .band-dark .muted { color: #CFCDC6; }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 46rem; }

.grid-services { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.svc {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: .6rem; padding: 1.35rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.svc:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--ink); }
.svc .ico { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.svc .ico svg { width: 24px; height: 24px; }
.svc p { color: var(--ink-2); font-size: .96rem; }
.svc .more { font-weight: 600; color: var(--red); font-size: .94rem; }

.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; gap: .4rem; padding-top: 1rem; border-top: 2px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 700 var(--step-2)/1 var(--font-cond); color: var(--red); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-2); font-size: .96rem; }
.band-dark .steps li { border-color: #3A3936; }
.band-dark .steps p { color: #CFCDC6; }

.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.aside { display: grid; gap: 1rem; position: sticky; top: 6.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: grid; gap: .75rem; }
.card-cta { background: var(--panel); color: var(--panel-ink); border: 0; }
.card-cta p { color: #CFCDC6; }
.card h3 { font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: .22rem; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C20605' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.links-list { list-style: none; padding: 0; margin: 0; display: grid; }
.links-list a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.links-list a:hover { color: var(--red); }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec div { background: var(--surface); padding: 1rem; display: grid; gap: .2rem; }
.spec dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font: 700 var(--step-1)/1.2 var(--font-cond); font-variant-numeric: tabular-nums; }

/* FAQ nativo */
.faq { display: grid; gap: .5rem; max-width: 52rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.15rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--red); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 1.15rem 1.1rem; color: var(--ink-2); max-width: 68ch; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips a, .chips button {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; font: 500 .94rem var(--font); cursor: pointer;
}
.chips.areas span { display: inline-flex; align-items: center; min-height: 36px; padding: .35rem .85rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .94rem; }
.chips a:hover, .chips button:hover { border-color: var(--red); color: var(--red); }

.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: grid; gap: 1.25rem; padding-block: 2.75rem; align-items: center; }
.cta-band p { color: rgb(255 255 255 / .88); }
.cta-band .btn-primary { background: #fff; color: #9E0504; }
.cta-band .btn-primary:hover { background: #FBE9E8; }
.cta-band .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

.posts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.post { display: grid; gap: .5rem; padding: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.post:hover { border-color: var(--red); color: var(--ink); }
.post .meta { font-size: .8rem; color: var(--muted); }
.post p { color: var(--ink-2); font-size: .96rem; }

/* ---------- Contactos ---------- */
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.contact-item { display: grid; gap: .25rem; }
.contact-item dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-item dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy { margin-left: .35rem; font: 500 .75rem var(--font); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: .15rem .45rem; cursor: pointer; }
.copy:hover { border-color: var(--ink-2); }

.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .94rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: .75rem .85rem; min-height: 48px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.form-msg { padding: .85rem 1rem; border-radius: 8px; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }

/* ---------- Formulário estilo Typeform ---------- */
.tf-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.tf-progress { height: 4px; background: var(--line); }
.tf-progress span { display: block; height: 100%; width: 0; background: var(--red); transition: width .35s ease; }
.tf-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tf-top button { background: none; border: 0; color: var(--ink-2); font: 500 .85rem var(--font); cursor: pointer; padding: .35rem .5rem; border-radius: 6px; }
.tf-top button:hover { color: var(--red); }
.tf-top button[disabled] { visibility: hidden; }
.tf-stage { padding: clamp(1.5rem, 4vw, 3rem) clamp(1.1rem, 4vw, 3rem) 2rem; min-height: 26rem; display: grid; align-content: start; }
.tf-step { display: grid; gap: 1.1rem; animation: tf-in .35s ease both; }
.tf-step.back { animation-name: tf-in-back; }
@keyframes tf-in { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tf-in-back { from { opacity: .001; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tf-step { animation: none; } .tf-progress span { transition: none; } }
.tf-q { display: flex; gap: .65rem; align-items: baseline; }
.tf-num { font: 600 .9rem var(--font); color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf-q h2 { font-family: var(--font); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 600; letter-spacing: -.01em; }
.tf-help { color: var(--muted); margin-left: 1.9rem; max-width: 60ch; }
.tf-body { margin-left: 1.9rem; display: grid; gap: .6rem; min-width: 0; }
@media (max-width: 520px) { .tf-help, .tf-body { margin-left: 0; } }
.tf-options { display: grid; gap: .5rem; max-width: 34rem; }
.tf-options.cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); max-width: 44rem; }
.tf-opt {
  display: flex; align-items: center; gap: .75rem; text-align: left; width: 100%; min-height: 52px; padding: .6rem .85rem;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 8px; font: 500 1rem var(--font); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.tf-opt:hover { border-color: var(--red); }
.tf-opt[aria-checked="true"] { border-color: var(--red); background: var(--red-soft); }
.tf-key { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--line); border-radius: 5px; font: 600 .78rem var(--font); color: var(--ink-2); background: var(--surface); }
.tf-opt[aria-checked="true"] .tf-key { background: var(--red); color: #fff; border-color: var(--red); }
.tf-opt small { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
.tf-input {
  width: 100%; max-width: 34rem; font: 400 clamp(1.15rem, 1rem + .8vw, 1.5rem) var(--font); color: var(--ink);
  border: 0; border-bottom: 2px solid var(--line); background: transparent; padding: .5rem 0; border-radius: 0;
}
.tf-input:focus { outline: none; border-bottom-color: var(--red); }
.tf-input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
textarea.tf-input { min-height: 7rem; resize: vertical; font-size: 1.1rem; line-height: 1.5; }
.tf-row { display: grid; gap: 1.25rem; max-width: 34rem; }
@media (min-width: 560px) { .tf-row.two { grid-template-columns: 1fr 1.6fr; } }
.tf-row label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.tf-count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tf-err { color: var(--red); font-weight: 500; font-size: .92rem; min-height: 1.4em; }
.tf-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-left: 1.9rem; }
@media (max-width: 520px) { .tf-actions { margin-left: 0; } }
.tf-hint { font-size: .8rem; color: var(--muted); }
.tf-hint kbd { font: 600 .75rem var(--font); border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; background: var(--bg); }
.tf-drop { border: 1.5px dashed var(--line); border-radius: 10px; padding: 1.1rem; display: grid; gap: .4rem; max-width: 34rem; cursor: pointer; background: var(--bg); color: var(--ink-2); }
.tf-drop:hover, .tf-drop.over { border-color: var(--red); }
.tf-files { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; font-size: .88rem; color: var(--ink-2); }
.tf-consent { display: flex; gap: .75rem; align-items: flex-start; max-width: 40rem; cursor: pointer; }
.tf-consent input { width: 22px; height: 22px; accent-color: var(--red); margin-top: .15rem; flex: none; }
.tf-review { display: grid; gap: 0; max-width: 40rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tf-review div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: .75rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); align-items: baseline; font-size: .95rem; }
.tf-review div:last-child { border-bottom: 0; }
.tf-review dt { color: var(--muted); font-size: .85rem; }
.tf-review dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tf-review button { background: none; border: 0; color: var(--red); font: 500 .85rem var(--font); cursor: pointer; }
@media (max-width: 520px) { .tf-review div { grid-template-columns: 1fr auto; } .tf-review dd { grid-column: 1 / -1; grid-row: 2; } }
.tf-done { display: grid; gap: 1rem; justify-items: start; }
.tf-done .badge { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .75rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); font-weight: 600; font-size: .9rem; }
.tf-done pre { max-width: 100%; overflow-x: auto; background: var(--panel); color: var(--panel-ink); padding: 1rem; border-radius: 10px; font-size: .8rem; line-height: 1.5; margin: 0; }
.tf-done details { width: 100%; }
.tf-done summary { cursor: pointer; color: var(--ink-2); font-weight: 500; margin-bottom: .5rem; }
.test-flag { display: inline-flex; gap: .4rem; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6B4E00; background: #FFF1C2; border-radius: 999px; padding: .2rem .65rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--panel); color: #CFCDC6; font-size: .94rem; padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); } }
.site-footer a { color: #E9E8E4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.foot-grid h2 { font: 600 .78rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: #8F8D86; margin-bottom: .75rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot-brand { display: grid; gap: .9rem; }
.foot-brand .brand { color: #F1F0EC; }
.foot-brand .brand-name span { color: #8F8D86; }
.foot-legal { border-top: 1px solid #3A3936; padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; font-size: .82rem; color: #8F8D86; }

/* Barra fixa mobile: ligar + orçamento */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem;
  padding: .6rem max(12px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--surface) 95%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.mobile-bar .btn { min-height: 46px; }
@media (min-width: 960px) { .mobile-bar { display: none; } }
.is-form-page .mobile-bar { display: none; }
.is-form-page .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Router da versão artefacto */
[data-route] { display: block; }
