/* ==========================================================================
   TileWork Data — Folha de Estilos Oficial (Design System & Manual de Identidade)
   Proposta v1 / Versão v2.4 — rascunho — Braga, Norte de Portugal
   Fontes auto-hospedadas (SIL OFL 1.1). Zero dependências externas.
   ========================================================================== */

/* Fontes locais WOFF2 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope/manrope-latin-600-normal.woff2?v=f7ac6258") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope/manrope-latin-700-normal.woff2?v=d2a12c85") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/manrope/manrope-latin-800-normal.woff2?v=74c161db") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-400-normal.woff2?v=8909904a") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-500-normal.woff2?v=f3779f1e") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-700-normal.woff2?v=6f56409f") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2?v=08949f72") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2?v=01d28544") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-600-normal.woff2?v=0d1f0b8d") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono/ibm-plex-mono-latin-700-normal.woff2?v=4f84d86c") format("woff2");
}

:root {
  /* Cores principais do Manual */
  --cobalt: #1F4E9C;
  --navy: #12284C;
  --mist: #DCE6F5;
  --chalk: #FBFBF8;
  --sky: #7FA0D4;
  
  /* Cores de apoio e neutros */
  --white: #FFFFFF;
  --muted: #46546B;
  --grey: #7D879A;
  --track: #EEF2F8;
  --data-inv: #B9CBEA;
  --foot-tx: #C9D4E8;
  --foot-rule: #2C4470;
  --cta-tx: #E8EEF9;
  
  /* Cores semânticas, alertas e placeholders */
  --alert: #9E2B25;
  --alert-bg: #FBEAE8;
  --alert-hatch: #C2554D;
  --draft: #7A1A1A;
  --confirm-bg: #FDE7E7;
  --confirm-bd: #BB3333;
  --ph-bg: #FFF3C4;
  --ph-bd: #B8860B;
  --ph-tx: #5C4300;
  
  /* Tipografia */
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  
  /* Grafismos e texturas */
  --band: url("../padroes/faixa-azulejo-modulo.svg?v=2e6899bc");
  --hatch: repeating-linear-gradient(135deg, var(--alert) 0 5px, var(--alert-hatch) 5px 8px);
  
  /* Tokens de raio */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

/* Reset e base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Tipografia */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.05rem, 7.6vw, 3.5rem);
  font-weight: 800;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.55rem, 5.4vw, 2.25rem);
  font-weight: 800;
  overflow-wrap: break-word;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1em;
}

/* Estrutura de layout */
.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 760px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Link de acessibilidade para saltar navegação */
.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 0.15s ease;
}

.skip:focus {
  top: 1rem;
  transform: translateY(0);
}

/* Faixa de Rascunho / Draft (Landmark <aside>) */
.draft {
  background: var(--draft);
  color: #fff;
  text-align: center;
  font: 700 0.78rem/1.45 var(--font-mono);
  padding: 0.5rem 1rem;
  letter-spacing: 0.03em;
  display: block;
}

.draft span {
  display: none;
  font-weight: 400;
  opacity: 0.92;
}

.draft b {
  display: block;
}

.draft i {
  display: none;
  font-style: normal;
}

/* Placeholders & tags do Design System */
.mail-addr {
  font: 600 0.95em/1.4 var(--font-mono);
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-note {
  display: block;
  margin-top: 0.35rem;
  font: 500 0.7rem/1.4 var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.legal-note::before {
  content: "§ ";
}

.ph {
  background: var(--ph-bg);
  color: var(--ph-tx);
  border: 1.5px dashed var(--ph-bd);
  border-radius: var(--radius-sm);
  padding: 0.05em 0.4em;
  font: 600 0.82em/1.5 var(--font-mono);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.ph::before {
  content: "✎ ";
}

.ph-block {
  display: block;
  padding: 0.6rem 0.8rem;
  margin: 0.8rem 0 0;
}

.tag {
  display: inline-block;
  font: 600 0.7rem/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
}

.tag-demo {
  background: var(--ph-bg);
  color: var(--ph-tx);
  border: 1.5px dashed var(--ph-bd);
}

.tag-confirm {
  background: var(--confirm-bg);
  color: var(--draft);
  border: 1.5px dashed var(--confirm-bd);
}

/* Cabeçalho */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 248, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}

.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 60px;
  position: relative;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--navy);
  font: 800 1.1rem/1 var(--font-head);
  white-space: nowrap;
}

.brand b {
  color: var(--cobalt);
  font-weight: 600;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

nav.main {
  display: none;
}

/* Menu móvel acessível (<details class="mob-menu">) para telas < 900px */
.mob-menu {
  display: block;
  margin-left: auto;
  position: relative;
}

.mob-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.7rem;
  font: 700 0.88rem/1 var(--font-head);
  color: var(--navy);
  border: 1.5px solid var(--mist);
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
}

.mob-menu summary::-webkit-details-marker {
  display: none;
}

.mob-menu summary::after {
  content: "▾";
  font-size: 0.85rem;
  color: var(--cobalt);
}

.mob-menu[open] summary::after {
  content: "▴";
}

.mob-menu summary:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.mob-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1.5px solid var(--mist);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(18, 40, 76, 0.12);
  padding: 0.5rem 0;
  min-width: 170px;
  z-index: 100;
}

.mob-menu-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mob-menu-dropdown li {
  margin: 0;
}

.mob-menu-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.mob-menu-dropdown a:hover,
.mob-menu-dropdown a:focus {
  background: var(--mist);
  color: var(--cobalt);
}

/* Comutador de idioma PT | EN */
.lang {
  display: flex;
  border: 1.5px solid var(--cobalt);
  border-radius: 6px;
  overflow: hidden;
  flex: none;
}

.lang a, .lang button {
  all: unset;
  cursor: pointer;
  font: 600 0.85rem/1 var(--font-mono);
  padding: 0.6rem 0.75rem;
  color: var(--cobalt);
  min-width: 1.6rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
}

.lang a.active, .lang a[aria-current="page"], .lang button[aria-pressed="true"] {
  background: var(--cobalt);
  color: #fff;
  font-weight: 700;
}

.lang a:hover:not(.active), .lang button:hover:not([aria-pressed="true"]) {
  background: var(--mist);
  color: var(--navy);
}

.lang a:focus-visible, .lang button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -3px;
}

/* Botões */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font: 700 1.02rem/1.2 var(--font-head);
  text-decoration: none;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--cobalt);
  text-align: center;
  min-height: 52px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--cobalt);
}

.btn-ghost:hover {
  background: var(--mist);
  color: var(--navy);
}

.actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

/* Secções */
section {
  padding: 3.25rem 0;
}

.band {
  height: 28px;
  background: var(--band) repeat-x left center;
  background-size: 56px 28px;
}

.kicker {
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 0.8rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 40rem;
}

.alt {
  background: #fff;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}

.mist {
  background: var(--mist);
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

/* 1. Gancho (Hero) */
.hero {
  padding: 2.4rem 0 2.6rem;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--navy);
}

.hero .lead strong {
  color: var(--cobalt);
}

.hero-tiles {
  display: none;
}

.hero .confirm {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

/* 2. Problema */
.plist {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.plist li {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  background: var(--chalk);
  border: 1px solid var(--mist);
  border-left: 5px solid var(--cobalt);
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-size: 1.05rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.plist svg {
  flex: none;
  width: 30px;
  height: 30px;
}

/* 3. Solução */
.checks {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.checks li {
  position: relative;
  padding-left: 2.3rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 4px;
  background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

.checks strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.08rem;
}

.checks span {
  color: var(--muted);
}

.value {
  margin-top: 1.8rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.25rem;
}

.value h3 {
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.value ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.value li {
  padding-left: 1.3rem;
  position: relative;
}

.value li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--sky);
}

.tools {
  margin: 1rem 0 0;
}

/* 4. Exemplos Antes / Depois */
.ex-list {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.ex {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-xl);
  padding: 1.15rem;
  box-shadow: 0 1px 0 var(--mist);
  min-width: 0;
}

.ex-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.ex-sector {
  font: 600 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0;
}

.ex-q {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.dash {
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--chalk);
  min-width: 0;
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.45rem 0.7rem;
  font: 500 0.72rem/1.3 var(--font-mono);
}

.dash-top i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--sky);
  flex: none;
}

.dash-in {
  padding: 0.85rem 0.8rem 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
}

.seg {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1.5px solid var(--cobalt);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.seg button {
  all: unset;
  cursor: pointer;
  text-align: center;
  font: 700 0.92rem/1.2 var(--font-head);
  padding: 0.65rem 0.5rem;
  color: var(--cobalt);
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.seg button + button {
  border-left: 1.5px solid var(--cobalt);
}

.seg button[aria-pressed="true"] {
  background: var(--cobalt);
  color: #fff;
}

.seg button:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: -4px;
}

.seg small {
  display: block;
  font: 500 0.7rem/1.3 var(--font-mono);
  opacity: 0.85;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Altura estável nos exemplos: os dois estados partilham a mesma linha da grelha */
.ex[data-state] .st-antes,
.ex[data-state] .st-depois {
  grid-column: 1;
  grid-row: 2;
  transition: opacity 0.2s ease;
}

.ex[data-state="antes"] .st-antes {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ex[data-state="antes"] .st-depois {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ex[data-state="depois"] .st-depois {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ex[data-state="depois"] .st-antes {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.st {
  animation: fade 0.25s ease;
}

@keyframes fade {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

.st-cap {
  font: 600 0.78rem/1.3 var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.7rem;
}

.st-note {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.st-alert {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  color: var(--alert);
  font-weight: 700;
}

/* Gráficos de barras horizontais */
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bars li {
  display: grid;
  grid-template-columns: minmax(0, 5.7rem) minmax(2rem, 1fr) minmax(0, 4.4rem);
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  min-width: 0;
}

.bl {
  font-weight: 500;
  line-height: 1.15;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bl small {
  display: block;
  font: 600 0.68rem/1.2 var(--font-mono);
  color: var(--alert);
  text-transform: uppercase;
}

.bt {
  position: relative;
  height: 20px;
  background: var(--track);
  border-radius: 3px;
  min-width: 0;
}

.b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--cobalt);
  border-radius: 3px;
}

.b.grey {
  background: var(--grey);
}

.b.neg {
  background: var(--hatch);
}

.bt.div::after {
  content: "";
  position: absolute;
  left: 30%;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--navy);
}

.bv {
  font: 600 0.82rem/1 var(--font-mono);
  text-align: right;
  white-space: nowrap;
  min-width: 0;
}

li.loss .bv, li.loss .bl {
  color: var(--alert);
}

.axis {
  display: grid;
  grid-template-columns: minmax(0, 5.7rem) minmax(2rem, 1fr) minmax(0, 4.4rem);
  gap: 0.5rem;
  font: 500 0.66rem/1 var(--font-mono);
  color: var(--muted);
  margin-top: 0.35rem;
  min-width: 0;
}

.axis span:nth-child(2) {
  padding-left: calc(30% - 1.2em);
}

/* KPIs dos exemplos */
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.kpi {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  min-width: 0;
}

.kpi span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.25;
}

.kpi b {
  display: block;
  font: 700 1.15rem/1.2 var(--font-mono);
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.kpi.bad {
  border-color: var(--alert);
  background: var(--alert-bg);
}

.kpi.bad b {
  color: var(--alert);
}

/* Barra empilhada (Exemplo 2) */
.stack {
  display: flex;
  height: 30px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--navy);
}

.stack span {
  display: block;
}

.s-ok {
  background: var(--cobalt);
}

.s-slow {
  background: var(--sky);
  border-left: 1px solid var(--navy);
}

.s-stuck {
  background: var(--hatch);
  border-left: 1px solid var(--navy);
}

.s-grey {
  background: var(--grey);
}

.legend {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.legend i {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  border: 1px solid var(--navy);
}

.legend b {
  margin-left: auto;
  font: 600 0.82rem/1 var(--font-mono);
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: clamp(.85rem, 4vw, 1rem);
}

.legend li b,
.cmp td,
.cmp th,
.ladder li b,
.ladder li,
.lic,
span.ph,
footer.site,
footer.site * {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legend li b {
  font-size: clamp(.85rem, 4vw, 1rem);
  white-space: normal;
}

.ladder li {
  flex-wrap: wrap;
}

.ladder b {
  white-space: normal;
}

.legend li.loss {
  color: var(--alert);
  font-weight: 700;
}

/* Grelha de azulejos das encomendas */
.orders-cap {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0 0.4rem;
}

.orders {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  max-width: 330px;
}

.orders span {
  aspect-ratio: 1;
  background: var(--cobalt);
  border-radius: 2px;
  position: relative;
}

.orders.neutral span {
  background: var(--grey);
}

.orders span.late {
  background: var(--alert);
}

.orders span.mat::after {
  content: "";
  position: absolute;
  inset: 32%;
  background: #fff;
  border-radius: 50%;
}

/* Gráfico de colunas verticais (Exemplo 3) */
.cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  align-items: end;
  height: 150px;
  border-bottom: 2px solid var(--navy);
  padding: 0 0.2rem;
  min-width: 0;
}

.cols div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.cols b {
  font: 600 0.72rem/1.2 var(--font-mono);
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.cols i {
  display: block;
  width: 70%;
  background: var(--grey);
  border-radius: 3px 3px 0 0;
}

.cols-l {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  text-align: center;
  font: 500 0.75rem/1 var(--font-mono);
  color: var(--muted);
  margin-top: 0.35rem;
  min-width: 0;
}

/* Insight e Decisão */
.ex-text {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.insight, .decision {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.insight {
  background: var(--mist);
}

.decision {
  background: #fff;
  border: 1.5px solid var(--cobalt);
}

.insight strong, .decision strong {
  display: block;
  font: 600 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 0.2rem;
}

.ex-foot {
  margin: 0.8rem 0 0;
  font: 500 0.72rem/1.4 var(--font-mono);
  color: var(--muted);
}

/* 5. Confiança e FAQ */
.commit {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.commit li {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem 0.9rem 3.2rem;
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
}

.commit li svg {
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 28px;
  height: 28px;
}

.commit strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.3;
}

.commit span.d {
  color: var(--muted);
  font-size: 0.97rem;
}

.faq {
  margin-top: 2.2rem;
}

.faq h3 {
  font-size: 1.25rem;
}

.faq details {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  margin: 0.55rem 0;
  min-width: 0;
}

.faq summary {
  cursor: pointer;
  padding: 0.95rem 1rem;
  font: 700 1.02rem/1.35 var(--font-head);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 48px;
  align-items: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font: 700 1.3rem/1 var(--font-mono);
  color: var(--cobalt);
  flex: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details > div {
  padding: 0 1rem 0.9rem;
  color: var(--muted);
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* 6. Preços e Ofertas (v2.4) */
.offers {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
  grid-template-columns: minmax(0, 1fr);
}

.offer {
  background: #fff;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  align-items: baseline;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.offer.first {
  border: 2px solid var(--cobalt);
  box-shadow: inset 0 6px 0 var(--cobalt);
}

.offer .n {
  grid-column: 1 / -1;
  font: 600 0.72rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--cobalt);
  margin: 0 0 0.25rem;
}

.offer h3 {
  margin: 0;
  font-size: 1.12rem;
}

.price {
  margin: 0.2rem 0 0;
  font: 800 1.35rem/1.1 var(--font-head);
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--cobalt);
}

.price small {
  font: 500 0.8rem/1 var(--font-body);
  color: var(--muted);
}

.offer .meta {
  grid-column: 1 / -1;
  font: 500 0.78rem/1.4 var(--font-mono);
  color: var(--muted);
  margin: 0.25rem 0 0.45rem;
}

.offer .what {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.97rem;
}

.offer .bonus,
.offer .privacy,
.offer .extras,
.offer .ladder,
.offer details.tier {
  grid-column: 1 / -1;
  min-width: 0;
}

.offer .bonus {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cobalt);
}

.offer .privacy {
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.85rem;
  background: var(--mist);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.offer .extras {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Escada de preços */
.ladder {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  min-width: 0;
}

.ladder li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  min-width: 0;
}

.ladder li + li {
  border-top: 1px solid var(--mist);
}

.ladder b {
  font: 800 0.98rem/1.2 var(--font-head);
  white-space: nowrap;
}

.ladder b small,
.ladder small {
  font: 500 0.72rem/1 var(--font-body);
  color: var(--muted);
}

/* Detalhes recolhíveis nos cartões */
.offer details.tier {
  border-top: 1px solid var(--mist);
  margin-top: 0.6rem;
}

.offer details.tier + details.tier {
  margin-top: 0;
}

.offer details.tier summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  font: 700 0.92rem/1.3 var(--font-head);
  color: var(--navy);
}

.offer details.tier summary::-webkit-details-marker {
  display: none;
}

.offer details.tier summary::after {
  content: "+";
  font: 700 1.2rem/1 var(--font-mono);
  color: var(--cobalt);
}

.offer details.tier[open] summary::after {
  content: "–";
}

.offer details.tier ul {
  margin: 0 0 0.7rem;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.offer details.tier li {
  margin: 0.2rem 0;
}

/* Contentor com scroll horizontal acessível para tabela de preços */
.cmp-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.cmp-scroll:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

/* Tabela de resumo compacta */
.cmp {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
  margin: 1.2rem 0 0;
  background: #fff;
  border: 1.5px solid var(--mist);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.92rem;
  min-width: 0;
}

.cmp caption {
  text-align: left;
  font: 600 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
  padding: 0 0 0.45rem;
}

.cmp th, .cmp td {
  padding: 0.6rem 0.7rem;
  border-top: 1px solid var(--mist);
  text-align: left;
  vertical-align: baseline;
  overflow-wrap: anywhere;
}

.cmp thead th {
  border-top: 0;
  font: 600 0.7rem/1.2 var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--chalk);
}

.cmp tbody th {
  font: 700 0.95rem/1.3 var(--font-head);
}

.cmp tbody th a {
  color: var(--navy);
  text-decoration: none;
}

.cmp tbody th a:hover {
  color: var(--cobalt);
  text-decoration: underline;
}

.cmp td {
  color: var(--muted);
  font-size: 0.85rem;
}

.cmp td:last-child {
  text-align: right;
  white-space: nowrap;
  color: var(--navy);
  font: 800 1rem/1.2 var(--font-head);
}

.cmp td small {
  font: 500 0.72rem/1 var(--font-body);
  color: var(--muted);
}

@media (max-width: 520px) {
  .cmp thead th:nth-child(2),
  .cmp td:nth-child(2) {
    display: none;
  }
}

.lic {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.lic strong {
  color: var(--navy);
}

.promise {
  margin-top: 1.1rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.05rem 1.15rem;
  font-size: 0.98rem;
}

.promise p {
  margin: 0;
}

/* 7. Contacto e Chamada para Ação (CTA) */
.cta {
  background: var(--cobalt);
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: var(--cta-tx);
}

.cta .mail-alt {
  margin-top: 0.9rem;
}

.cta .btn-primary {
  background: #fff;
  color: var(--cobalt);
  border-color: #fff;
}

.cta .btn-primary:hover {
  background: var(--mist);
  color: var(--navy);
}

.cta .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta :focus-visible {
  outline-color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.3rem 0 0;
  display: grid;
  gap: 0.45rem;
}

.contact-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.contact-list a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--mist);
}

.who {
  margin-top: 1.8rem;
  background: #fff;
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
  overflow-wrap: anywhere;
}

.who > div {
  flex: 1 1 200px;
  min-width: 0;
}

.who .photo {
  flex: none;
  width: 64px;
  height: 64px;
  border: 1.5px dashed var(--ph-bd);
  background: var(--ph-bg);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font: 600 0.62rem/1.2 var(--font-mono);
  color: var(--ph-tx);
  text-align: center;
}

.who h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.who p {
  color: var(--muted);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.who ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

/* 8. Rodapé */
footer.site {
  background: var(--navy);
  color: var(--foot-tx);
  padding: 2.3rem 0 1.8rem;
  font-size: 0.9rem;
}

footer.site a {
  color: #fff;
}

.foot {
  display: grid;
  gap: 1.4rem;
}

footer.site h3 {
  color: #fff;
  font-size: 0.95rem;
}

footer.site ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer.site li {
  margin: 0.35rem 0;
}

.foot-note {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--foot-rule);
  font: 500 0.76rem/1.5 var(--font-mono);
}

/* Ecrãs Maiores (Tablet >= 760px) */
@media (min-width: 760px) {
  section {
    padding: 4.5rem 0;
  }
  .draft span, .draft b, .draft i {
    display: inline;
  }
  .bar {
    min-height: 68px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand svg {
    width: 38px;
    height: 38px;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
  }
  .btn {
    display: inline-flex;
  }
  .plist {
    grid-template-columns: repeat(3, 1fr);
  }
  .plist li {
    align-items: flex-start;
  }
  .checks {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }
  .ex {
    padding: 1.6rem;
  }
  .ex-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.6rem;
    align-items: start;
  }
  .ex-text {
    margin-top: 0;
  }
  .ex-q {
    font-size: 1.5rem;
  }
  .commit {
    grid-template-columns: 1fr 1fr;
  }
  .offers {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  .offer {
    grid-template-columns: 1fr;
    align-content: start;
  }
  .price {
    text-align: left;
    margin: 0.3rem 0 0;
  }
  .contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
  }
  .foot {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .band {
    height: 40px;
    background-size: 80px 40px;
  }
}

/* Ecrãs Maiores (Desktop >= 900px) */
@media (min-width: 900px) {
  .mob-menu {
    display: none !important;
  }
  nav.main {
    display: block;
    margin-left: auto;
  }
  nav.main ul {
    display: flex;
    gap: 1.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav.main a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 500;
    font-size: 0.95rem;
  }
  nav.main a:hover {
    color: var(--cobalt);
    text-decoration: underline;
  }
  .lang {
    margin-left: 0.5rem;
  }
  .hero {
    padding: 4.5rem 0 4rem;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
    justify-self: center;
  }
  .hero-tiles svg {
    width: 100%;
    height: auto;
  }
}

/* Fallback para navegadores sem JavaScript */
noscript .ex .dash-in {
  display: block !important;
}
noscript .ex .st-antes,
noscript .ex .st-depois {
  grid-row: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
  margin-bottom: 1.5rem !important;
}
noscript .seg {
  display: none !important;
}

/* Rótulos dos exemplos para navegadores sem JavaScript */
.st-rot {
  display: none;
  font: 700 0.85rem/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cobalt);
  margin-bottom: 0.5rem;
}
noscript .st-rot {
  display: block !important;
}

/* Cabeçalho estático quando texto a 200% excede 15% da altura da viewport */
header.site.header-static {
  position: static !important;
}

/* Cabeçalho a 320 px numa só linha sem overflow */
@media (max-width: 360px) {
  .wrap {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }
  header.site .wrap {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .bar {
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
  }
  .brand {
    font-size: 0.95rem !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
  }
  .brand svg {
    width: 26px !important;
    height: 26px !important;
    flex: none !important;
  }
  .mob-menu {
    margin-left: auto !important;
  }
  .mob-menu summary {
    padding: 0.35rem 0.45rem !important;
    font-size: 0.8rem !important;
    min-height: 44px !important;
  }
  .lang a, .lang button {
    padding: 0.35rem 0.45rem !important;
    font-size: 0.78rem !important;
    min-width: 1.2rem !important;
  }
}

/* Foco no cabeçalho sticky não faz rolar a página */
header.site a,
header.site summary {
  scroll-margin-top: -100vh;
}

/* Modo static com quebra de linha quando texto a 200% ou ecrã <= 360 px */
header.site.header-static .bar {
  flex-wrap: wrap !important;
  row-gap: 0.5rem;
}
header.site.header-static .brand {
  min-width: auto !important;
}

/* ===== v5 — elementos azulejo (do protótipo v3) ===== */

/* 1. Variáveis e aliases */
:root {
  --ceu: var(--sky);
  --nevoa: var(--mist);
  --cal: var(--chalk);
  --branco: var(--white);
  --texto: var(--navy);
  --data-escuro: var(--data-inv);
  --texto-2: #34425C;
  --junta: #C9D6EC;
  --f-titulo: var(--font-head);
  --f-texto: var(--font-body);
  --f-num: var(--font-mono);
  --raio: 14px;
  --sombra: 0 1px 2px rgba(18, 40, 76, 0.06), 0 8px 24px rgba(18, 40, 76, 0.08);
  --mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --azulejo-borda: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23DCE6F5'/%3E%3Cpath d='M0 0H15.6C15.9 8.3 8.6 15.4 0 15.8Z M40 0V15.5C31.8 15.9 24.5 8.6 24.3 0Z M40 40H24.4C24.2 31.6 31.5 24.4 40 24.2Z M0 40V24.3C8.4 24.1 15.7 31.7 15.8 40Z' fill='%231F4E9C'/%3E%3Cpath d='M20 12.2C21.4 16.6 23.5 18.7 27.9 20.1 23.4 21.3 21.3 23.4 20.1 27.8 18.7 23.5 16.5 21.4 12.1 20 16.6 18.6 18.7 16.5 20 12.2Z' fill='%2312284C'/%3E%3Cpath d='M.4 0V40M0 .5H40' stroke='%23FBFBF8' stroke-width='1.2'/%3E%3C/svg%3E");
  --azulejo-canto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%2312284C'/%3E%3Cpath d='M20 4.5C24.6 4.3 27.4 8.6 26.2 13.8 31.2 12.4 35.8 15.3 35.5 20 35.7 24.6 31.4 27.5 26.2 26.1 27.6 31.4 24.5 35.6 20 35.5 15.4 35.8 12.5 31.3 13.8 26.2 8.7 27.5 4.2 24.5 4.5 20 4.3 15.4 8.6 12.5 13.8 13.8 12.4 8.6 15.5 4.2 20 4.5Z' fill='%23DCE6F5'/%3E%3Ccircle cx='20' cy='20' r='5.2' fill='%231F4E9C'/%3E%3C/svg%3E");
}

/* 2. Passo A — Intro do logótipo no hero */
.intro {
  display: flex;
  align-items: center;
  height: 88px;
  margin: 0 0 1.25rem;
  padding: 8px 14px 8px 8px;
  width: max-content;
  max-width: 100%;
  background-color: var(--cal);
  background-image: linear-gradient(#E6E9EE 1px, transparent 1px), linear-gradient(90deg, #E6E9EE 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid #E6E9EE;
  border-radius: 10px;
}
.intro__simbolo {
  flex: none;
  position: relative;
  z-index: 1;
  display: block;
  overflow: visible;
}
.peca {
  transform-box: fill-box;
  transform-origin: center;
}
.peca--1 { animation: peca-1 0.7s var(--mola) 0.15s both; }
.peca--2 { animation: peca-2 0.7s var(--mola) 0.25s both; }
.peca--3 { animation: peca-3 0.7s var(--mola) 0.35s both; }
.peca--4 { animation: peca-4 0.7s var(--mola) 0.45s both; }
@keyframes peca-1 { from { opacity: 0; transform: translate(-34px, -26px) rotate(-9deg) scale(0.9); } }
@keyframes peca-2 { from { opacity: 0; transform: translate(32px, -30px) rotate(8deg) scale(0.9); } }
@keyframes peca-3 { from { opacity: 0; transform: translate(-30px, 30px) rotate(7deg) scale(0.9); } }
@keyframes peca-4 { from { opacity: 0; transform: translate(34px, 28px) rotate(-8deg) scale(0.9); } }
.intro__linha {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: traco 0.6s ease-out 1.05s both;
}
@keyframes traco { from { stroke-dashoffset: 1; } }
.intro__area { animation: surgir 0.4s ease-out 1.35s both; }
.intro__ponto {
  transform-box: fill-box;
  transform-origin: center;
  animation: ponto 0.45s var(--mola) 1.5s both;
}
@keyframes surgir { from { opacity: 0; } }
@keyframes ponto { from { transform: scale(0); } }
.intro__janela {
  display: block;
  overflow: hidden;
  margin-left: -2px;
  padding: 4px 4px 4px 14px;
}
.intro__nome {
  display: block;
  font: 800 1.6rem/1.1 var(--f-titulo);
  letter-spacing: -0.015em;
  color: var(--navy);
  white-space: nowrap;
  animation: nome 0.6s var(--suave) 1.6s both;
}
.intro__nome b {
  font-weight: 700;
  color: var(--cobalt);
}
@keyframes nome {
  from { transform: translateX(-110%); opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 22rem) {
  .intro { height: 76px; }
  .intro__simbolo { width: 60px; height: 60px; }
  .intro__nome { font-size: 1.3rem; }
}
/* Adaptação de intro para texto a 200% */
.intro { height: auto; min-height: 88px; }
.intro__janela { min-width: 0; }
.intro__nome { white-space: normal; }

/* 3. Passo B — Mini-painel no hero */
.hero-grid > * { min-width: 0; }
.etiqueta {
  display: inline-block;
  font: 600 0.75rem/1.4 var(--f-num);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--nevoa);
  border: 1px solid var(--cobalt);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}
.etiqueta--suave { border-color: transparent; }
.fonte {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
  font: 500 0.8125rem/1.4 var(--f-num);
  color: var(--texto-2);
  background: var(--cal);
  border: 1px dashed var(--cobalt);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.fonte > * { min-width: 0; }
.moldura {
  position: relative;
  margin: 0;
  padding: 20px;
  background: var(--azulejo-borda) 0 0/20px 20px;
  border-radius: 6px;
  box-shadow: 0 0 0 1.5px var(--navy), var(--sombra);
  transform: rotate(-0.4deg);
}
.moldura__canto {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--azulejo-canto) 0 0/20px 20px;
}
.moldura__canto--ce { top: 0; left: 0; border-top-left-radius: 6px; }
.moldura__canto--cd { top: 0; right: 0; border-top-right-radius: 6px; }
.moldura__canto--be { bottom: 0; left: 0; border-bottom-left-radius: 6px; }
.moldura__canto--bd { bottom: 0; right: 0; border-bottom-right-radius: 6px; }
.painel {
  position: relative;
  background: var(--cal);
  border-radius: 3px;
  padding: 1.25rem 1.125rem 1.125rem;
  box-shadow: 0 0 0 1.5px var(--navy);
  transform: rotate(0.4deg);
  container-type: inline-size;
}
.painel__cabeca {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.painel__negocio {
  margin: 0;
  font: 800 1.0625rem/1.3 var(--f-titulo);
  color: var(--navy);
}
.painel__rotulo {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto-2);
}
.painel__kpi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0 0 1.25rem;
}
.painel__kpi-valor {
  font: 600 clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem)/1.05 var(--f-num);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-size: min(clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem), 12vw);
  font-size: min(clamp(2.1rem, 1.6rem + 2.4vw, 2.9rem), 15cqi);
}
.painel__kpi-var {
  font: 600 0.875rem/1.4 var(--f-num);
  color: var(--cobalt);
  background: var(--nevoa);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.barras {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.barras rect {
  fill: var(--ceu);
  stroke: var(--cobalt);
  stroke-width: 1.5;
}
.barras rect.destaque { fill: var(--cobalt); }
.barras text {
  font: 500 11px var(--f-num);
  fill: var(--texto-2);
}
.barras__grelha line {
  stroke: var(--navy);
  stroke-width: 1;
}
.painel__tabela {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}
.painel__tabela summary {
  cursor: pointer;
  color: var(--cobalt);
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.painel__tabela table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-family: var(--f-num);
  font-size: 0.8125rem;
}
.painel__tabela caption,
.painel__tabela th,
.painel__tabela td {
  overflow-wrap: anywhere;
}
.painel__tabela th,
.painel__tabela td {
  text-align: left;
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid var(--junta);
}
.painel__tabela td { text-align: right; }

/* 4. Passo C — Cartões-pergunta (Quando é que podemos ajudar?) */
.perguntas-secao { padding-bottom: 2.5rem; }
.perguntas {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.pergunta {
  position: relative;
  min-width: 0;
  background: var(--branco);
  border: 1.5px solid var(--cobalt);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.35rem;
}
.pergunta__icone {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1.5px var(--cobalt);
}
.pergunta__titulo {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  overflow-wrap: break-word;
}
.pergunta__resposta {
  margin: 0;
  color: var(--texto-2);
}
@media (min-width: 40rem) {
  .perguntas--4,
  .perguntas:has(> .pergunta:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 56rem) {
  .perguntas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .pergunta { padding: 1.5rem 1.5rem 1.6rem; }
  .perguntas--4,
  .perguntas:has(> .pergunta:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* 5. Passo D — Grelha viva */
.grelha-viva {
  position: relative;
  height: calc(3 * 56px + 4px);
  overflow: hidden;
  background: var(--cal);
  border-block: 1px solid var(--junta);
}
.grelha-viva__malha {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(24, 56px);
  grid-auto-rows: 56px;
  gap: 1px;
  padding: 1px;
  background: #E3E7ED;
  width: max-content;
}
.vt {
  position: relative;
  display: block;
  background: var(--cal);
  overflow: hidden;
}
.vt:nth-child(odd) { background: #F3F6FB; }
.vt > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vt__dados { clip-path: inset(0 100% 0 0); }
.vt--v .vt__dados { clip-path: inset(0 0 100% 0); }
.grelha-viva.ativa .vt--h .vt__dados {
  animation: onda-h 18s infinite;
  animation-timing-function: var(--suave);
  animation-delay: calc(var(--c) * 90ms + var(--r) * 160ms);
}
.grelha-viva.ativa .vt--v .vt__dados {
  animation: onda-v 18s infinite;
  animation-timing-function: var(--suave);
  animation-delay: calc(var(--c) * 90ms + var(--r) * 160ms + 9s);
}
@keyframes onda-h {
  0% { clip-path: inset(0 100% 0 0); }
  3%, 36% { clip-path: inset(0 0 0 0); }
  39%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes onda-v {
  0% { clip-path: inset(0 0 100% 0); }
  3%, 36% { clip-path: inset(0 0 0 0); }
  39%, 100% { clip-path: inset(100% 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .vt__dados,
  .vt--v .vt__dados { clip-path: none; }
}
html:not(.js) .vt__dados { clip-path: none; }

.vt--logo .vt__logo {
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
}
.vt--q0 { --dx: -22px; --dy: -16px; --rot: -14deg; }
.vt--q1 { --dx: 20px; --dy: -18px; --rot: 12deg; }
.vt--q2 { --dx: -18px; --dy: 20px; --rot: 10deg; }
.vt--q3 { --dx: 22px; --dy: 18px; --rot: -12deg; }
.vt--q0 .vt__logo { transform-origin: 100% 100%; }
.vt--q1 .vt__logo { transform-origin: 0 100%; }
.vt--q2 .vt__logo { transform-origin: 100% 0; }
.vt--q3 .vt__logo { transform-origin: 0 0; }
.js .vt__logo { opacity: 0; }
.grelha-viva.ativa .vt__logo {
  animation: montar 18s infinite;
  animation-delay: calc(4s + var(--g) * 1.4s + var(--o) * 100ms);
}
@keyframes montar {
  0% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.6);
    animation-timing-function: var(--mola);
  }
  4%, 36% {
    opacity: 1;
    transform: none;
    animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
  }
  39%, 100% {
    opacity: 0;
    transform: scale(0.85);
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .vt__logo { opacity: 1; transform: none; }
}

/* 6. Passo E — Escalões em degraus (Como começar) */
.escaloes-secao {
  background: var(--cal);
  border-top: 1px solid var(--junta);
  overflow-wrap: break-word;
}
.escaloes__lead {
  font-size: 1.0625rem;
  color: var(--texto-2);
  max-width: 40em;
}
.escaloes__baixo-risco {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  max-width: 44rem;
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--nevoa);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 12px 12px 0;
  color: var(--navy);
}
.escaloes__baixo-risco svg {
  flex: none;
  margin-top: 0.1rem;
}
.escaloes__baixo-risco span { min-width: 0; }
.escaloes__resumo {
  font-size: 1.125rem;
  margin: 2.25rem 0 0.9rem;
}

.degraus {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
}
.degrau {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.degrau__cartao {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.9rem;
  align-items: start;
  background: var(--branco);
  border: 1.5px solid var(--cobalt);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}
.degrau__icone {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: block;
  width: 44px;
  height: 44px;
  margin-top: 0.15rem;
}
.degrau__passo,
.degrau__nome,
.degrau__dados {
  grid-column: 2;
  margin: 0;
  min-width: 0;
}
.degrau__passo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font: 600 0.8125rem/1.4 var(--f-num);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.degrau__nome {
  font: 800 1.125rem/1.3 var(--f-titulo);
  color: var(--navy);
  overflow-wrap: break-word;
}
.degrau__nome a {
  color: inherit;
  text-decoration-color: var(--ceu);
  text-decoration-thickness: 2px;
}
.degrau__nome a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}
.degrau__nome a:hover { color: var(--cobalt); }
.degrau__nome a:focus-visible { outline: none; }
.degrau__cartao:has(a:focus-visible) {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}
.degrau__dados {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.25rem;
  margin-top: 0.35rem;
}
.degrau__dados div { min-width: 0; }
.degrau__dados dt {
  font: 500 0.75rem/1.3 var(--f-num);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-2);
}
.degrau__dados dd {
  margin: 0;
  font: 600 1.0625rem/1.35 var(--f-num);
  color: var(--navy);
}
.degrau__dados small {
  font: 500 0.8em var(--f-texto);
  color: var(--texto-2);
}
.degrau__barra { display: none; }
.degrau--2::before,
.degrau--3::before {
  content: "";
  position: absolute;
  left: calc(1rem + 21px);
  top: -1.1rem;
  height: 1.1rem;
  border-left: 2px solid var(--cobalt);
}
.degrau--inicio .degrau__cartao {
  border-width: 3px;
  box-shadow: 0 4px 0 var(--navy);
}
.selo-inicio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: 700 0.75rem/1.3 var(--f-num);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--branco);
  background: var(--navy);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.selo-inicio::before {
  content: "★";
  font-size: 0.9em;
}
.degrau--opcional { margin-top: 0.6rem; }
.degrau--opcional .degrau__cartao {
  border-style: dashed;
  background: var(--cal);
}

.escaloes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.escalao {
  min-width: 0;
  hyphens: auto;
  -webkit-hyphens: auto;
  background: var(--branco);
  border: 1.5px solid var(--junta);
  border-radius: 18px;
  padding: 1.25rem;
  scroll-margin-top: 1rem;
  box-shadow: var(--sombra);
}
.escalao--inicio { border: 3px solid var(--cobalt); }
.escalao--opcional {
  border: 1.5px dashed var(--cobalt);
  background: var(--cal);
  box-shadow: none;
}
.escalao__cabeca {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.escalao__cabeca > div { min-width: 0; }
.escalao__icone {
  flex: none;
  display: block;
  width: 52px;
  height: 52px;
}
.escalao__n {
  margin: 0 0 0.15rem;
  font: 600 0.8125rem/1.4 var(--f-num);
  letter-spacing: 0.05em;
  color: var(--cobalt);
}
.escalao h3 {
  font-size: 1.375rem;
  margin: 0;
}
.selo-inicio--grande { margin: 1rem 0 0; }
.selo-opcional {
  display: inline-block;
  margin: 1rem 0 0;
  font: 700 0.75rem/1.3 var(--f-num);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1.5px dashed var(--cobalt);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.preco {
  margin: 0.9rem 0 0.2rem;
  font: 600 2rem/1.1 var(--f-num);
  letter-spacing: -0.02em;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.preco small {
  font: 500 0.875rem var(--f-texto);
  letter-spacing: 0;
  color: var(--texto-2);
}
.meta {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--texto-2);
  overflow-wrap: break-word;
}
.escalao__bonus {
  margin: 0.25rem 0 0;
  padding: 0.6rem 0.8rem;
  background: var(--nevoa);
  border-radius: 10px;
  font-weight: 700;
  color: var(--navy);
}
.escalao__bonus::before {
  content: "✓ ";
  color: var(--cobalt);
}
.escada {
  list-style: none;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  border-top: 1px solid var(--junta);
}
.escada li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.1rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--junta);
  font-size: 0.9375rem;
}
.escada li span {
  min-width: 0;
  overflow-wrap: break-word;
}
.escada b {
  font: 600 1rem var(--f-num);
  color: var(--navy);
  white-space: nowrap;
}
.escada b small {
  font: 500 0.8em var(--f-texto);
  color: var(--texto-2);
}
.extras {
  font-size: 0.9375rem;
  color: var(--texto-2);
  margin: 0;
}
.escalao__corpo {
  margin-top: 1.1rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--junta);
}
.escalao__corpo h4 {
  margin: 1rem 0 0.35rem;
  font: 600 0.8125rem/1.4 var(--f-num);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.escalao__corpo > p {
  color: var(--texto-2);
  margin-bottom: 0.6rem;
}
.privacidade {
  padding: 0.7rem 0.85rem;
  background: var(--branco);
  border: 1px solid var(--junta);
  border-radius: 10px;
}
.inclui {
  list-style: none;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
}
.inclui li {
  position: relative;
  padding-left: 1.6rem;
  overflow-wrap: break-word;
}
.inclui li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1rem;
  height: 1rem;
  border-radius: 3px;
  background: var(--nevoa) no-repeat center/70% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='%231F4E9C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 0 0 1px var(--cobalt) inset;
}
.mais {
  border-top: 1px solid var(--junta);
}
.mais summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--cobalt);
}
.mais ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--texto-2);
}
.mais li {
  margin-bottom: 0.25rem;
  overflow-wrap: break-word;
}
.escaloes__notas {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-width: 52rem;
}
.escaloes__notas p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--texto-2);
  overflow-wrap: anywhere;
}
.provisorio-nota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
}
.promessa {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--cobalt);
  border-radius: 12px;
  background: var(--branco);
  color: var(--navy) !important;
}

@media (min-width: 56rem) {
  .degraus {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.95fr);
    gap: 1.6rem;
    align-items: end;
  }
  .degrau__cartao {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    padding: 1rem 1rem 1.1rem;
  }
  .degrau__icone,
  .degrau__passo,
  .degrau__nome,
  .degrau__dados {
    grid-column: 1;
    grid-row: auto;
  }
  .degrau__icone { margin: 0 0 0.4rem; }
  .degrau__dados { flex-direction: column; }
  .degrau__barra {
    display: block;
    height: var(--h);
    background: var(--cobalt);
    border-radius: 0 0 6px 6px;
  }
  .degrau--1 { --h: 2.5rem; }
  .degrau--2 { --h: 5.5rem; }
  .degrau--3 { --h: 8.5rem; }
  .degrau--3 .degrau__barra {
    background: var(--ceu);
    box-shadow: inset 0 0 0 2px var(--cobalt);
  }
  .degrau--inicio .degrau__cartao {
    box-shadow: none;
    border-bottom: 0;
  }
  .degrau--2::before,
  .degrau--3::before {
    content: "→";
    border: 0;
    left: -1.3rem;
    top: auto;
    bottom: calc(var(--h) + 1rem);
    height: auto;
    font: 800 1.25rem/1 var(--f-titulo);
    color: var(--cobalt);
  }
  .degrau--opcional {
    margin-top: 0;
    align-self: start;
  }
  .degrau--opcional::before {
    content: "+";
    position: absolute;
    left: -1.25rem;
    top: 3.5rem;
    font: 800 1.25rem/1 var(--f-titulo);
    color: var(--cobalt);
  }
  .degrau--opcional .degrau__cartao {
    border-bottom: 1.5px dashed var(--cobalt);
    border-radius: 16px;
  }
  .escaloes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
  .escalao { padding: 1.5rem; }
  .escalao--opcional {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 0 2.5rem;
  }
  .escalao--opcional .escalao__corpo {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }
  .escalao--opcional .escalao__corpo > h4:first-child { margin-top: 0; }
}

@media (forced-colors: active) {
  .degrau__barra { background: CanvasText; }
  .selo-inicio { border: 1px solid CanvasText; }
}

/* ===== v5d — correções da revisão de 28/10/2026 (só acréscimos) ===== */
/* v5c: chip "Fonte" com o ícone na mesma linha do texto */
.fonte { flex-wrap: nowrap; align-items: flex-start; }
.fonte > svg { flex: none; margin-top: .2em; }

/* A2: com o cabeçalho estático (texto grande), ele continua a criar camada acima da intro do hero */
header.site.header-static { position: relative !important; z-index: 50; }

/* B4: com o cabeçalho estático, o menu pode ir para a 2.ª linha; o dropdown alinha pela barra e não sai do ecrã */
header.site.header-static .mob-menu { position: static; }
header.site.header-static .mob-menu-dropdown {
  left: 0.65rem;
  right: auto;
  max-width: calc(100% - 1.3rem);
}

/* B3: sem JS a intro aparece logo no estado final (as animações só correm com html.js) */
html:not(.js) .intro .peca,
html:not(.js) .intro__linha,
html:not(.js) .intro__area,
html:not(.js) .intro__ponto,
html:not(.js) .intro__nome { animation: none !important; }

/* ===== v5e — M1 aprovado pelo Victor (29/10/2026): botão Pausar da grelha viva (WCAG 2.2.2) ===== */
.grelha-viva.pausada *, .grelha-viva.pausada *::before, .grelha-viva.pausada *::after { animation-play-state: paused !important; }
.grelha-viva__controlo { display: flex; justify-content: flex-end; margin-top: .5rem; margin-bottom: .5rem; }
.grelha-viva__pausa {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .875rem/1.2 var(--font-body, inherit);
  color: #12284C; background: #FBFBF8;
  border: 1.5px solid #1F4E9C; border-radius: 6px;
  min-height: 44px; padding: .5rem .9rem; cursor: pointer; max-width: 100%;
  text-align: left; overflow-wrap: break-word;
}
.grelha-viva__pausa:hover { background: #DCE6F5; }
.grelha-viva__pausa[aria-pressed="true"] { background: #1F4E9C; color: #FBFBF8; }
.grelha-viva__pausa[aria-pressed="true"]:hover { background: #12284C; }
.grelha-viva__pausa:focus-visible { outline: 3px solid #12284C; outline-offset: 3px; box-shadow: 0 0 0 2px #FBFBF8; }
.grelha-viva__pausa[hidden] { display: none; }
.grelha-viva__icone { width: 1em; height: 1em; flex: none; fill: currentColor; }
.grelha-viva__pausa .i-play { display: none; }
.grelha-viva__pausa[aria-pressed="true"] .i-pausa { display: none; }
.grelha-viva__pausa[aria-pressed="true"] .i-play { display: inline; }

/* Etiqueta "Em vigor" (preços aprovados, 03/11/2026) */
.tag-vigor {
  background: var(--branco);
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
}

/* r3 (03/11/2026): espaçamento das escadas de preços nos cartões (PT e EN) */
.escalao .escada {
  margin: 0.5rem 0 0.9rem;
  padding: 0;
  border: 1px solid var(--junta);
  border-radius: 12px;
  overflow: hidden;
}
.escalao .escada li {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  border-bottom: 1px solid var(--junta);
  line-height: 1.4;
}
.escalao .escada li:last-child {
  border-bottom: 0;
}
.escalao .escada li span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.escalao .escada b {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.escalao .meta,
.escalao .extras {
  hyphens: manual;
  -webkit-hyphens: manual;
}
@media (min-width: 25rem) {
  .escalao .escada li {
    padding: 0.75rem 1rem;
  }
}
