/*==============================================================
  COA-IoT — camada de design

  As cores vêm do logótipo (ardósia #18303c, verdes #004830,
  #187848, #3ca860) e da interface do portal AngoWatt
  (portal/src/app/globals.css): fundo #f6f7f9, cartões brancos
  com canto de 1rem, verde de marca #059669.

  O objetivo é que o site e o produto se pareçam um com o outro.
==============================================================*/

:root {
  --ink:        #18303c;
  --body:       #374151;
  --muted:      #6b7280;
  --muted-2:    #9ca3af;

  --surface:    #f6f7f9;
  --card:       #ffffff;
  --line:       #eef0f3;
  --line-2:     #e2e5ea;

  /* escala de verde do portal AngoWatt */
  --brand-50:   #ecfdf5;
  --brand-100:  #d1fae5;
  --brand-200:  #a7f3d0;
  --brand-500:  #10b981;
  --brand-600:  #059669;
  --brand-700:  #047857;
  --brand-800:  #065f46;
  --brand-900:  #064e3b;

  /* verdes do logótipo */
  --logo-deep:  #004830;
  --logo-mid:   #187848;
  --logo-light: #3ca860;

  --amber:      #d97706;
  --rose:       #e11d48;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --r-sm: .5rem;
  --r:    .75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;

  --shadow-card: 0 1px 2px rgb(16 24 40 / .04);
  --shadow-lift: 0 8px 24px -12px rgb(16 24 40 / .18);

  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
  font-family: var(--sans);
  background-color: var(--surface);
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -.015em;
  line-height: 1.2;
}

a { color: var(--brand-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-800); }

/* o template de origem pinta cada .section de branco: o corpo da página
   volta a ser a superfície cinzenta clara, a mesma do portal AngoWatt */
.section, .section-sm {
  background-color: transparent;
  color: var(--body);
  overflow: visible;
}
.section    { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-t0 { padding-top: 0; }

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
}

.kicker {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 10px;
}

.h1 { font-size: clamp(1.95rem, 4.2vw, 2.95rem); font-weight: 800; }
.h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; margin-bottom: 14px; }
.h3 { font-size: 1.125rem; font-weight: 700; }

/*--------------------------------------------------------------
# Cartão e botões (mesmas regras do portal)
--------------------------------------------------------------*/
.card-x {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 1rem;
  padding: .625rem 1.25rem;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }

.btn-secondary {
  background: #fff;
  border-color: var(--line-2);
  color: #374151;
  font-size: 1rem;
  padding: .5rem 1rem;
}
.btn-secondary:hover { background: #f9fafb; color: #374151; }

.btn-on-dark {
  background: transparent;
  border-color: rgb(255 255 255 / .28);
  color: #fff;
}
.btn-on-dark:hover { background: rgb(255 255 255 / .08); color: #fff; }

/*--------------------------------------------------------------
# Cabeçalho
--------------------------------------------------------------*/
.coa-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

/* O desfoque só a partir do ecrã largo: backdrop-filter cria um bloco de
   contenção para descendentes position:fixed, o que prenderia o menu móvel
   dentro da altura do cabeçalho. */
@media (min-width: 1200px) {
  .coa-header {
    background: rgb(255 255 255 / .92);
    backdrop-filter: blur(10px);
  }
}
.coa-header.is-scrolled { box-shadow: 0 1px 3px rgb(16 24 40 / .06); }
.coa-header .logo img { max-height: 40px; }

.coa-header .navmenu > ul > li > a {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--body);
  padding: 10px 14px;
}
.coa-header .navmenu > ul > li > a.active,
.coa-header .navmenu > ul > li > a:hover { color: var(--brand-700); }

.coa-header .navmenu .dropdown ul {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgb(16 24 40 / .10);
  padding: 6px;
  min-width: 250px;
}
.coa-header .navmenu .dropdown ul a {
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.coa-header .navmenu .dropdown ul a:hover,
.coa-header .navmenu .dropdown ul a.active { background: var(--surface); }
.coa-header .navmenu .dropdown ul a i { color: var(--brand-600); font-size: 1rem; }

a.nav-cta {
  background: var(--brand-700);
  color: #fff !important;
  border-radius: var(--r);
  padding: .5rem 1rem !important;
  margin-left: 8px;
  font-weight: 600;
}
a.nav-cta:hover { background: var(--brand-800); }

@media (max-width: 1199px) {
  a.nav-cta { background: none; color: var(--body) !important; padding: 10px 14px !important; margin-left: 0; }
}

/*--------------------------------------------------------------
# Superfícies verdes
--------------------------------------------------------------*/
.panel-dark { background: var(--brand-900); color: #d1fae5; }
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .lead { color: rgb(209 250 229 / .72); }
.panel-dark .kicker { color: var(--brand-200); }

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero { background: var(--brand-900); padding: 76px 0 84px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.16;
  margin-bottom: 18px;
  max-width: 24ch;
}
.hero p.hero-lead {
  color: rgb(209 250 229 / .75);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 58ch;
  margin-bottom: 26px;
}
.hero-tag {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brand-200);
  background: rgb(255 255 255 / .08);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Medir / Monitorizar / Alertar / Decidir
# Carrossel: os diapositivos ocupam a mesma célula da grelha, por isso
# a altura é a do mais alto e não há salto ao mudar de passo.
--------------------------------------------------------------*/
.steps-slider { position: relative; }

.steps-track {
  display: grid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  /* o gesto horizontal pertence ao carrossel: sem isto o navegador
     interpreta-o como "recuar" e sai da página */
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.step-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.step-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.step-slide.is-leaving { transform: translateX(-14px); }
/* passo ainda sem fotografia: o texto ocupa a largura toda */
.step-slide.no-media { grid-template-columns: 1fr; }

.step-text { min-width: 0; }
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-text h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; }
.step-text > p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 54ch;
}
.step-text .plain-list li { padding-top: 7px; padding-bottom: 7px; }
.step-text .plain-list li:first-child { border-top: 1px solid var(--line); }

.step-media { min-width: 0; }
.step-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

/* comandos */
.steps-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.steps-dots { display: flex; align-items: center; gap: 2px; }

/* O ponto visível tem 9 px, mas o botão mede 30 x 30 para dar
   uma área de toque confortável no telemóvel. */
.steps-dot {
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
}
.steps-dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5d3;
  transition: width .25s ease, background-color .25s ease;
}
.steps-dot:hover::before { background: var(--brand-500); }
.steps-dot.is-active { min-width: 38px; }
.steps-dot.is-active::before { width: 26px; background: var(--brand-600); }
.steps-dot:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 0; }

@media (max-width: 991px) {
  .step-slide { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .step-media { order: 2; }
  .step-text  { order: 1; }
}
@media (max-width: 575px) {
  .step-slide { padding: 20px; }
  .step-text h3 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step-slide { transition: opacity .01s; transform: none; }
  .step-slide.is-leaving { transform: none; }
}

/*--------------------------------------------------------------
# Filtro e procura de casos de estudo
--------------------------------------------------------------*/
.case-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.case-search { position: relative; flex: 1 1 100%; }
.case-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: .95rem;
  pointer-events: none;
}
.case-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: .9375rem;
  color: var(--ink);
  font-family: var(--sans);
}
.case-search input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(16 185 129 / .15);
}
.case-search input::-webkit-search-cancel-button { cursor: pointer; }

.case-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.case-chip {
  font-size: .8125rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.case-chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.case-chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }

.case-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/*--------------------------------------------------------------
# Cartões de solução
--------------------------------------------------------------*/
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 991px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .sol-grid { grid-template-columns: 1fr; } }

.sol-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  height: 100%;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sol-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.sol-card .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.sol-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.sol-card p { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 0 0 16px; flex: 1; }

/* cartão com fotografia */
.sol-card.has-media { padding: 0; overflow: hidden; }
.sol-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }

.sol-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--brand-50);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.sol-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.sol-card:hover .sol-media img { transform: scale(1.03); }

/* cartão de caso de estudo: cartão com fotografia + etiqueta da área */
.case-card { position: relative; }
.case-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: rgb(4 30 22 / .82);
  backdrop-filter: blur(2px);
  padding: 5px 11px;
  border-radius: 999px;
}

/* uma cor própria por área, sempre escura o suficiente para o texto
   branco se ler bem sobre a fotografia de capa */
.case-tag.cat-mineracao          { background: rgb(120 53  15  / .88); }
.case-tag.cat-industria          { background: rgb(30  41  59  / .88); }
.case-tag.cat-energia            { background: rgb(180 83  9   / .88); }
.case-tag.cat-agua-ambiente      { background: rgb(7   89  133 / .88); }
.case-tag.cat-agricultura        { background: rgb(22  101 52  / .88); }
.case-tag.cat-logistica          { background: rgb(55  48  163 / .88); }
.case-tag.cat-edificios          { background: rgb(63  63  70  / .88); }
.case-tag.cat-petroleo-gas       { background: rgb(127 29  29  / .88); }
.case-tag.cat-saude              { background: rgb(157 23  77  / .88); }
.case-tag.cat-iluminacao-publica { background: rgb(91  33  182 / .88); }

/* sem fotografia: painel sóbrio, para o cartão não ficar partido */
.sol-media-empty {
  display: grid;
  place-items: center;
  color: var(--brand-600);
  background:
    linear-gradient(135deg, rgb(5 150 105 / .07), rgb(5 150 105 / .02)),
    var(--brand-50);
  position: relative;
}
.sol-media-empty::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(4 120 87 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(4 120 87 / .05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.sol-media-empty i { font-size: 2.1rem; position: relative; opacity: .65; }

@media (prefers-reduced-motion: reduce) {
  .sol-card:hover .sol-media img { transform: none; }
}
.sol-card .go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-700);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color .15s;
}
.sol-card:hover .go { background: var(--brand-800); color: #fff; }

/* ligação simples com seta, fora de um cartão */
.go { font-weight: 600; color: var(--brand-700); display: inline-flex; align-items: center; gap: 6px; }
.go:hover { color: var(--brand-800); }

/*--------------------------------------------------------------
# Índice de soluções — cartões de categoria (empresas / particulares)
--------------------------------------------------------------*/
.cat-card {
  display: block;
  height: 100%;
  padding: 34px 32px;
  border-radius: var(--r-xl, 1.5rem);
  background: var(--brand-50);
  border: 1px solid rgb(4 120 87 / .1);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -26px rgb(4 120 87 / .35);
  border-color: rgb(4 120 87 / .25);
}
.cat-card-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-600);
  font-size: 1.4rem;
  box-shadow: 0 8px 18px -10px rgb(4 120 87 / .35);
  margin-bottom: 18px;
}
.cat-card-count {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.cat-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.cat-card p { color: var(--muted); margin-bottom: 20px; max-width: 46ch; }
.cat-card .go {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-700);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background-color .15s;
}
.cat-card:hover .go { background: var(--brand-800); }

/*--------------------------------------------------------------
# Página de solução
--------------------------------------------------------------*/
.sol-hero { background: var(--brand-900); padding: 52px 0 56px; }
.sol-hero h1 { color: #fff; font-size: clamp(1.85rem, 3.8vw, 2.45rem); font-weight: 800; margin-bottom: 16px; }
.sol-hero .lead { color: rgb(209 250 229 / .75); max-width: 64ch; }
.sol-hero .kicker { color: var(--brand-200); }

.crumb { font-size: .9375rem; color: rgb(209 250 229 / .55); margin-bottom: 18px; }
.crumb a { color: rgb(209 250 229 / .8); }
.crumb a:hover { color: #fff; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li {
  position: relative;
  padding: 9px 0 9px 22px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.plain-list li:last-child { border-bottom: 0; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 2px;
  background: var(--brand-500);
  border-radius: 1px;
}

.note {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-200);
  border-radius: var(--r);
  padding: 14px 18px;
}

.kit-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.kit { width: 100%; border-collapse: collapse; font-size: 1rem; }
.kit th {
  text-align: left;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.kit td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.65;
  vertical-align: top;
}
.kit tbody tr:last-child td { border-bottom: 0; }
.kit td:first-child { color: var(--ink); font-weight: 500; }
.kit tbody tr:hover td { background: #fafbfc; }

.arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 991px) { .arch { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .arch { grid-template-columns: 1fr; } }
.arch > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 18px;
}
.arch h4 { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.arch p { font-size: 1rem; line-height: 1.65; color: var(--muted); margin: 0; }
.arch .tool {
  display: inline-block;
  margin-bottom: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: 6px;
  padding: 3px 8px;
}

.cta-band { background: var(--brand-900); border-radius: var(--r-xl); padding: 36px 40px; }
@media (max-width: 575px) { .cta-band { padding: 26px 22px; } }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; margin-bottom: 10px; }
.cta-band p { color: rgb(209 250 229 / .72); margin: 0; max-width: 56ch; font-size: 1rem; }

.related a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: border-color .15s;
}
.related a:hover { border-color: var(--brand-200); }
.related i.bi { color: var(--brand-600); font-size: 1.25rem; flex: none; }
.related strong { display: block; font-size: 1rem; color: var(--ink); font-weight: 600; }
.related span { font-size: .9375rem; color: var(--muted); }

/*--------------------------------------------------------------
# Contacto
--------------------------------------------------------------*/
.contact-wrap { background: transparent; border-top: 1px solid var(--line); padding: 64px 0; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 26px; }
.field-label { display: block; font-size: 1rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-card .form-control {
  width: 100%;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: #fff;
  padding: .625rem .875rem;
  font-size: 1rem;
  box-shadow: none;
}
.form-card .form-control:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgb(16 185 129 / .15);
}
.steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: st; }
.steps li { display: flex; gap: 12px; padding: 10px 0; counter-increment: st; }
.steps li::before {
  content: counter(st);
  flex: none;
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: .9375rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.steps strong { display: block; font-size: 1rem; color: var(--ink); }
.steps span { font-size: 1rem; color: var(--muted); }

.contact-office {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-office i { flex: none; font-size: 1.25rem; color: var(--brand-700); margin-top: 2px; }
.contact-office strong { display: block; font-size: 1rem; color: var(--ink); }
.contact-office span { font-size: .9375rem; color: var(--muted); line-height: 1.5; }

/*--------------------------------------------------------------
# Rodapé
--------------------------------------------------------------*/
.coa-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  font-size: 1rem;
  color: var(--muted);
}
.coa-footer-logo img { max-height: 38px; margin-bottom: 14px; }
.coa-footer p.about { line-height: 1.7; max-width: 44ch; }
.coa-footer p.footer-address { margin-top: 10px; font-size: .875rem; }
.coa-footer p.footer-address i { color: var(--brand-700); margin-right: 4px; }
.coa-footer h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.coa-footer ul { list-style: none; padding: 0; margin: 0; }
.coa-footer ul.two-cols { columns: 2; }
@media (max-width: 575px) { .coa-footer ul.two-cols { columns: 1; } }
.coa-footer li { margin-bottom: 8px; break-inside: avoid; }
.coa-footer a { color: var(--muted); }
.coa-footer a:hover { color: var(--brand-700); }
.coa-footer h3 a { color: inherit; }
.coa-footer h3 a:hover { color: var(--brand-700); }
.coa-footer .socials { display: flex; gap: 8px; margin-top: 16px; }
.coa-footer .socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--muted);
}
.coa-footer .socials a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.coa-footer .bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bottom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.bottom-meta .socials { margin-top: 0; }
.bottom-meta .footer-langs { margin-top: 0; }

/*--------------------------------------------------------------
# Animação de entrada (só depois de o JS arrancar)
--------------------------------------------------------------*/
html.coa-anim [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
html.coa-anim [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.coa-anim [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

.scroll-top { background: var(--brand-600); border-radius: var(--r); }
.scroll-top:hover { background: var(--brand-700); }

.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid rgb(255 255 255 / .12);
}

.hero-demo { position: relative; }
.hero-demo-nav {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-demo-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .24);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.hero-demo-btn:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .4); }
.hero-demo-count {
  color: rgb(209 250 229 / .7);
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: center;
}
/* nota: nunca usar filter/transform aqui — cria um bloco de
   contenção que prende o ecrã inteiro (position:fixed) dentro
   desta coluna, em vez de cobrir a janela toda. */
.hero-demo-stage .dm-frame { box-shadow: 0 24px 48px -12px rgb(0 0 0 / .45); }
.hero-demo-slide { display: none; }
.hero-demo-slide.is-active { display: block; }

/*--------------------------------------------------------------
# Categorias de solução (empresas / particulares)
--------------------------------------------------------------*/
.cat-block + .cat-block { margin-top: 48px; }
.cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.cat-head h2,
.cat-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.cat-head p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  flex: 1 1 320px;
  min-width: 0;
}

/* título de grupo dentro do submenu */
.coa-header .navmenu .dropdown ul li.nav-group {
  padding: 10px 12px 4px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.coa-header .navmenu .dropdown ul li.nav-group:not(:first-child) {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

/*--------------------------------------------------------------
# Página do método: texto largo à esquerda, imagem e lista à direita
--------------------------------------------------------------*/
.method-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 44px;
  align-items: start;
}
.method-text .step-n { margin-bottom: 12px; }
.method-text .lead { max-width: 68ch; }
.method-text .lead + .lead { margin-top: 14px; }
.method-aside img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
@media (max-width: 991px) {
  .method-row { grid-template-columns: 1fr; gap: 26px; }
}

/*--------------------------------------------------------------
# Perguntas frequentes
--------------------------------------------------------------*/
.faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.faq-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  transition: color .15s;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--brand-700); }
.faq-item > summary:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.faq-item > summary i {
  flex: none;
  font-size: 1rem;
  color: var(--brand-600);
  transition: transform .2s ease;
}
.faq-item[open] > summary i { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 92ch;
}
.faq-answer p { margin: 0; }

/*--------------------------------------------------------------
# Seletor de idioma
--------------------------------------------------------------*/
.coa-header .navmenu .lang-switch > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
}
.coa-header .navmenu .lang-switch > a > i.bi-translate { font-size: 1rem; color: var(--brand-600); }
.coa-header .navmenu .lang-switch ul { min-width: 160px; }
@media (max-width: 1199px) {
  .coa-header .navmenu .lang-switch > a { padding-left: 14px; }
}

/* bandeiras do seletor de idioma */
.flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex: none;
  display: inline-block;
  vertical-align: -2px;
  box-shadow: inset 0 0 0 1px rgb(16 24 40 / .12);
}
.coa-header .navmenu .lang-switch ul a { gap: 9px; }

/* o seletor é o último item da barra: o submenu abre para a esquerda
   para não sair fora do ecrã */
@media (min-width: 1200px) {
  .coa-header .navmenu .lang-switch > ul {
    left: auto;
    right: 0;
  }
}

/* seletor de idioma no rodapé, a seguir às redes sociais */
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.footer-langs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color .15s, color .15s, background-color .15s;
}
.footer-langs a:hover { border-color: var(--brand-500); color: var(--brand-700); }
.footer-langs a.is-current {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-800);
  font-weight: 600;
}
.footer-langs a:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }

/* campo-armadilha: fora do ecrã, nunca visível nem focável */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* última linha das listas de medição: indica que não é exaustiva */
.plain-list li.is-more {
  color: var(--muted);
  font-style: italic;
}
.plain-list li.is-more::before { background: var(--muted-2); }

/*--------------------------------------------------------------
# Menu no telemóvel
# O template alinha os links com space-between, o que empurra o
# texto para a direita quando há um ícone à cabeça. Aqui o ícone
# vem primeiro e o texto a seguir, como se espera de uma lista.
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .coa-header .navmenu .dropdown ul a {
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 20px;
    font-size: 1rem;
  }
  .coa-header .navmenu .dropdown ul a i.bi {
    width: auto;
    height: auto;
    margin-left: 0;
    border-radius: 0;
    background: none;
    font-size: 1.05rem;
    flex: none;
  }
  .coa-header .navmenu .dropdown ul a i.bi:hover { background: none; }

  .coa-header .navmenu .dropdown ul li.nav-group {
    padding: 14px 20px 4px;
    border-top: 0;
    margin-top: 0;
  }
  .coa-header .navmenu .dropdown ul li.nav-group + li a { padding-top: 8px; }

  /* seletor de idioma dentro do menu */
  .coa-header .navmenu .lang-switch > a { justify-content: flex-start; gap: 10px; }
  .coa-header .navmenu .lang-switch > a > i.bi-chevron-down { margin-left: auto; }
  .coa-header .navmenu .lang-switch ul a { justify-content: flex-start; gap: 12px; }
}
