/* Páginas de vendas ORBIT v2: estrutura partilhada pelas duas marcas.
   As cores, as fontes e o acabamento dos componentes vêm do tema (orbit.css ou wesolve.css). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text); text-wrap: balance; }
h3, h4 { line-height: 1.3; }
p { margin: 0; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -120px; z-index: 60; padding: 12px 16px; border-radius: var(--radius); background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(64px, 7vw, 104px); }
/* «É isso que resolvemos» leva diretamente à demonstração */
.solve { padding-bottom: 8px; }
.solve + .demo { padding-top: 48px; }
section[id] { scroll-margin-top: 24px; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 20px; height: 20px; }
.mark { width: 20px; height: 1.6em; flex: none; color: var(--mark); }

:root {
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 6px 24px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-hover), box-shadow var(--t-hover), border-color var(--t-hover), transform var(--t-press), color var(--t-hover);
}
.btn:active { transform: translateY(1px); }
.btn:has(.btn-well) { padding-right: 8px; }
.btn-lg { min-height: 58px; }
.btn-well { display: grid; place-items: center; width: 36px; height: 36px; flex: none; transition: transform var(--t-hover) var(--ease); }
.btn-well svg { width: 20px; height: 20px; }
.btn:hover .btn-well { transform: translateX(2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: var(--radius); background: none; font-weight: 500; font-size: 14px; color: var(--text); cursor: pointer; }

/* ---------- Topo ---------- */
.hero { position: relative; padding-block: clamp(32px, 4vw, 56px) clamp(64px, 7vw, 104px); overflow: hidden; }
/* Desktop: logótipo e texto à esquerda, ilustração à direita. Telemóvel: logótipo, ilustração e depois o texto */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "logo visual" "copy visual"; column-gap: clamp(24px, 4vw, 56px); }
.hero-logo { grid-area: logo; }
.hero-copy { grid-area: copy; position: relative; z-index: 1; align-self: center; }
.hero-visual { grid-area: visual; align-self: center; }
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(40px, 6vw, 72px); }
.callout { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.callout .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--in); }
.hero h1 { font-size: clamp(36px, 4.1vw, 56px); line-height: 1.05; }
.lead { margin-top: 24px; max-width: 58ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.hero-micro { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-checks { list-style: none; margin: 32px 0 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--line); }
.hero-checks li { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--text); }
.hero-checks .mark { height: 20px; }
.hero-visual { position: relative; margin: 0; }
.eco { width: 100%; height: clamp(440px, 46vw, 620px); }
.hero-visual figcaption { margin-top: 4px; text-align: center; font-size: 12px; color: var(--quiet); }

/* ---------- A conversa ---------- */
/* A conversa mantém a margem esquerda da página e uma medida de leitura confortável */
.talk-wrap > *, .solve-wrap > * { max-width: 860px; }
.talk-line { font-family: var(--font-display); font-size: clamp(28px, 3.3vw, 44px); line-height: 1.15; color: var(--text); text-wrap: balance; }
.talk-text { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); }
.talk-turn { color: var(--text); font-weight: 600; margin-top: 32px; }
.talk-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.talk-list li { display: flex; align-items: center; gap: 16px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.45; }
.talk-punch { margin-top: 40px; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--text); }

/* ---------- O tempo roubado ---------- */
.engine-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.engine-copy h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; }
.engine-copy p { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 52ch; }
.thieves { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thief { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 72px; align-items: center; gap: 16px; min-height: 64px; padding: 10px 16px; overflow: hidden; }
.thief-icon { display: grid; place-items: center; width: 44px; height: 44px; }
.thief-name { font-size: 17px; font-weight: 500; line-height: 1.3; }
.thief-flow { height: 2px; }

/* ---------- Níveis ---------- */
.section-head { max-width: 820px; }
.section-head h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.07; }
.section-head p { margin-top: 20px; max-width: 62ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
/* A figura presa ao lado do texto (desktop) ou por cima dele (telemóvel), a mudar com o nível que se lê */
.levels-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 64px; align-items: start; margin-top: 56px; }
.levels-stage { position: sticky; top: 24px; z-index: 2; }
.stage-surface { padding: 24px 24px 20px; }
.lv { display: block; width: 100%; height: auto; overflow: visible; }
.lv-desktop { max-height: calc(100vh - 210px); min-height: 300px; }
/* Telemóvel e tablet: cada nível tem a sua figura, por cima do seu texto (escondida no desktop) */
.level-visual { display: none; margin: 0; }
.pixel-img { display: none; }
.stage-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.stage-tabs { display: inline-flex; gap: 4px; padding: 4px; }
.stage-tab { min-height: 36px; padding: 0 16px; border: 0; background: transparent; font-size: 14px; font-weight: 500; line-height: 1; color: var(--muted); cursor: pointer; transition: background var(--t-hover), color var(--t-hover), box-shadow var(--t-hover); }
.stage-tab:hover { color: var(--text); }
.stage-caption { font-size: 14px; color: var(--muted); }

.lv-link { fill: none; stroke: var(--lv-link); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 7; opacity: .8; transition: stroke .4s, opacity .4s; }
.lv-linhas .lv-link { stroke-width: 1.6; stroke-dasharray: 2 5; }
.lv-node-face { fill: var(--lv-face); stroke: var(--lv-face-line); stroke-width: 1; transition: fill .4s, stroke .4s; }
.lv-node-icon { color: var(--lv-icon); transition: color .4s; }
.lv-label { font-family: var(--font-body); font-size: 18px; font-weight: 500; fill: var(--lv-label); transition: fill .4s; }
.lv-linhas .lv-label { font-size: 13px; }
.lv[data-estado="2"] .lv-link[data-l2], .lv[data-estado="3"] .lv-link { opacity: 1; stroke-dasharray: 8 8; }
.lv-linhas[data-estado="2"] .lv-link[data-l2], .lv-linhas[data-estado="3"] .lv-link { stroke-dasharray: 5 5; }
.lv[data-estado="2"] .lv-link.lv-entrada[data-l2], .lv[data-estado="3"] .lv-link.lv-entrada { stroke: var(--lv-in); }
.lv[data-estado="3"] .lv-link.lv-saida { stroke: var(--lv-out); }
.lv[data-estado="2"] .lv-node[data-l2] .lv-node-face, .lv[data-estado="3"] .lv-node .lv-node-face { fill: var(--lv-face-on); stroke-width: 1.5; }
.lv[data-estado="2"] .lv-node.lv-entrada[data-l2] .lv-node-face, .lv[data-estado="3"] .lv-node.lv-entrada .lv-node-face { stroke: var(--lv-in); }
.lv[data-estado="3"] .lv-node.lv-saida .lv-node-face { stroke: var(--lv-out); }
.lv[data-estado="2"] .lv-node[data-l2] .lv-node-icon, .lv[data-estado="3"] .lv-node .lv-node-icon { color: var(--lv-icon-on); }
.lv[data-estado="2"] .lv-node[data-l2] .lv-label, .lv[data-estado="3"] .lv-node .lv-label { fill: var(--lv-label-on); }
/* Estado «q» (quiz): só acendem as áreas que a pessoa escolheu, com o ORBIT ao centro */
.lv[data-estado="q"] .lv-link.is-on { opacity: 1; stroke-dasharray: 5 5; }
.lv[data-estado="q"] .lv-link.lv-entrada.is-on { stroke: var(--lv-in); }
.lv[data-estado="q"] .lv-link.lv-saida.is-on { stroke: var(--lv-out); }
.lv[data-estado="q"] .lv-node.is-on .lv-node-face { fill: var(--lv-face-on); stroke-width: 1.5; }
.lv[data-estado="q"] .lv-node.lv-entrada.is-on .lv-node-face { stroke: var(--lv-in); }
.lv[data-estado="q"] .lv-node.lv-saida.is-on .lv-node-face { stroke: var(--lv-out); }
.lv[data-estado="q"] .lv-node.is-on .lv-node-icon { color: var(--lv-icon-on); }
.lv[data-estado="q"] .lv-node.is-on .lv-label { fill: var(--lv-label-on); }
.lv[data-estado="q"] .lv-c3 { opacity: 1; }
.lv-center { opacity: 0; transition: opacity .4s var(--ease); }
.lv[data-estado="1"] .lv-c1, .lv[data-estado="2"] .lv-c2, .lv[data-estado="3"] .lv-c3 { opacity: 1; }
.lv-window, .lv-base, .lv-core { fill: var(--lv-window); stroke: var(--lv-ink); stroke-width: 1.5; stroke-linejoin: round; }
.lv-bubble { fill: var(--lv-bubble); }
.lv-bubble-you { fill: var(--lv-in); }
.lv-prompt { fill: none; stroke: var(--lv-out-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lv-orbit { fill: none; stroke: var(--lv-out); stroke-width: 1.5; stroke-dasharray: 3 6; }
.lv-orbit-tilt { stroke: var(--lv-in); }
.lv-hex { fill: none; stroke: var(--lv-in); stroke-width: 2.4; stroke-linejoin: round; }
.lv-hex-in { fill: var(--lv-in); }
.lv-center-label { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; fill: var(--lv-ink); }
/* O fluxo só corre com a figura à vista e sem preferência por movimento reduzido */
@media (prefers-reduced-motion: no-preference) {
  .lv.is-visible[data-estado="2"] .lv-link[data-l2], .lv.is-visible[data-estado="3"] .lv-link { animation: lv-flow 1.2s linear infinite; }
  .lv.is-visible[data-estado="3"] .lv-orbit { animation: lv-flow 2.4s linear infinite; }
  .lv.is-visible[data-estado="q"] .lv-link.is-on, .lv.is-visible[data-estado="q"] .lv-orbit { animation: lv-flow 1.4s linear infinite; }
}
@keyframes lv-flow { to { stroke-dashoffset: -16; } }

.levels-list { list-style: none; margin: 0; padding: 0; }
.level { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; scroll-margin-top: 24px; }
.level-orbit { min-height: 0; margin-block: 12vh 4vh; padding: 36px; }
.level-tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; line-height: 1; color: var(--muted); }
.level-meter { display: inline-flex; gap: 4px; }
.level-meter span { width: 16px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.level-meter .on { background: var(--text); }
.level h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.level-tools { margin-top: 10px; font-size: 16px; color: var(--muted); }
.level-here { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 30px; margin-top: 16px; padding: 0 12px; font-size: 13px; font-weight: 600; line-height: 1; }
.level-cols { display: grid; gap: 24px; margin-top: 28px; }
.level h4 { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.level-we p { font-size: 15px; }
.level-outcome { margin-top: 28px; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.4; }
.marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.marks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
.marks .mark { height: 1.5em; }
.marks-no .mark { color: var(--quiet); }

.solve-wrap .talk-text { color: var(--text); }

/* ---------- Demonstração ---------- */
.instrument { margin-top: 48px; padding: 12px; }
.instrument-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 8px 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--in); }
.instrument-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; text-decoration: none; }
.instrument-view {
  position: relative; height: clamp(520px, 72vh, 760px); overflow: hidden;
  background: radial-gradient(circle at 50% 46%, rgb(255 138 61 / 16%), transparent 26%), radial-gradient(circle at 1px 1px, rgb(255 255 255 / 14%) 1px, transparent 1.5px) 0 0 / 28px 28px, #0A0B0E;
}
.instrument-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.instrument-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0A0B0E; }
.instrument-shield { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; border: 0; background: radial-gradient(ellipse at center, rgb(10 11 14 / 10%), rgb(10 11 14 / 45%)); cursor: pointer; }
.instrument-shield:focus-visible { outline: none; }
.shield-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; font-size: 15px; font-weight: 600; line-height: 1; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 70%); transition: transform var(--t-hover) var(--ease); }
.instrument-shield:hover .shield-pill { transform: translateY(-2px); }
.instrument-shield:focus-visible .shield-pill { outline: 2px solid var(--focus); outline-offset: 3px; }
.instrument-view.is-live .instrument-shield { display: none; }
.instrument-poster { display: none; }
.demo-guide { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* O número ancora à primeira linha de instruções que podem ocupar várias linhas */
.demo-guide li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--muted); }
.demo-guide strong { color: var(--text); font-weight: 600; }
.step-dot { display: grid; place-items: center; width: 32px; height: 32px; font-size: 14px; font-weight: 600; line-height: 1; }

/* ---------- O que é ---------- */
.galaxies { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.galaxy { display: grid; gap: 12px; align-content: start; padding: 24px; }
.galaxy-icon { display: grid; place-items: center; width: 44px; height: 44px; }
.galaxy h3 { font-size: 18px; }
.galaxy p { font-size: 15px; color: var(--muted); }
.does { margin-top: 64px; }
.does-lead { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; max-width: 30ch; }
.does-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
/* O alojamento do ícone ancora ao topo do bloco de texto, que pode ter várias linhas */
.does-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 20px; border-top: 1px solid var(--line); }
.does-list h3 { font-size: 17px; }
.does-list p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.does-note { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 15px; color: var(--muted); }

/* ---------- O que fazemos ---------- */
/* Cinco passos (sequência real, por isso numerados); cada um mostra o ecossistema a crescer */
.build { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.build-step { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 12px; align-content: start; }
/* As cinco colunas partilham as linhas: título, texto e «O Seu Papel» ficam alinhados de passo para passo */
@supports (grid-template-rows: subgrid) {
  .build { grid-template-rows: repeat(5, auto); row-gap: 12px; }
  .build-step { grid-row: span 5; grid-template-rows: subgrid; }
}
.build-num { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; font-size: 15px; font-weight: 600; line-height: 1; transition: border-color .4s, color .4s, background .4s, box-shadow .4s; }
.build-step:not(:last-child)::after { content: ''; position: absolute; top: 20px; left: 48px; right: -16px; height: 1px; background: var(--line-strong); transition: background .5s var(--ease); }
.build-glyph { padding: 10px 12px; }
.pg { display: block; width: 100%; height: auto; }
.build-step h3 { margin-top: 4px; font-size: 18px; }
.build-text { font-size: 15px; color: var(--muted); }
.build-papel { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.build-papel span { font-size: 12px; font-weight: 600; color: var(--quiet); }
.pg-ring { fill: none; stroke: var(--pg-line); stroke-width: 1.2; stroke-dasharray: 3 4; }
.pg-core { fill: var(--pg-fill); stroke: var(--pg-core); stroke-width: 1.6; stroke-linejoin: round; }
.pg-core-in { fill: var(--pg-core); }
.pg-line { fill: none; stroke: var(--pg-line); stroke-width: 1.4; stroke-linecap: round; }
.pg-node { fill: var(--pg-fill); stroke: var(--pg-line); stroke-width: 1.4; stroke-linejoin: round; }
.pg-dot { fill: var(--pg-line); }
.pg-novo .pg-line, .pg-novo .pg-node, .pg-novo .pg-ring { stroke: var(--pg-novo); }
.pg-novo .pg-dot { fill: var(--pg-novo); }
/* Ao entrar no ecrã, os passos acendem-se por ordem e cada figura acrescenta a sua parte (só com movimento) */
.build-anim .pg-novo { opacity: 0; transform: scale(.86); transform-box: fill-box; transform-origin: center; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.build-anim .is-built .pg-novo { opacity: 1; transform: none; }
/* A implementação guiada abraça os cinco passos */
.guided { position: relative; margin-top: 28px; }
.guided-bracket { display: block; height: 16px; border: 1px solid var(--guided); border-top: 0; border-radius: 0 0 8px 8px; }
.guided-bracket::after { content: ''; position: absolute; left: 50%; top: 16px; width: 1px; height: 16px; background: var(--guided); }
.guided-copy { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; font-size: 16px; color: var(--muted); }
.guided-copy strong { color: var(--text); font-weight: 600; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px 40px; align-items: center; margin-top: 56px; padding: 32px 36px; }
.result-label { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.result-big { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
.result-text { font-size: 18px; line-height: 1.55; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.pair-card { padding: 32px; }
.pair-card h3 { font-size: 22px; line-height: 1.25; }
.pair-card p { margin-top: 14px; color: var(--muted); }

/* ---------- Custo e preços ---------- */
.cost-compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; overflow: hidden; }
.cost-side { display: grid; gap: 12px; align-content: start; padding: 36px; }
.cost-label { font-size: 15px; font-weight: 600; }
.cost-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; font-family: var(--font-display); font-size: clamp(44px, 5vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cost-value span { font-family: var(--font-body); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.cost-value .cost-from { order: -1; width: 100%; }
.cost-value-text { font-size: clamp(28px, 3vw, 40px); }
.cost-detail { font-size: 14px; color: var(--muted); }
.cost-delta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 36px; padding: 0 14px; font-size: 15px; font-weight: 600; line-height: 1; }
.footnote { margin-top: 20px; max-width: 90ch; font-size: 13px; color: var(--quiet); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.plan { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 28px; }
.plan h3 { font-size: 20px; }
.plan-for { min-height: 3.2em; font-size: 15px; color: var(--muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 12px 0 8px; }
.plan-price strong { font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 14px; color: var(--muted); }
.plan .btn { width: 100%; }
.plan .btn:has(.btn-well) { justify-content: space-between; padding-left: 24px; }
.included { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.included h3 { font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.6; }
.included > p { grid-column: 2; font-size: 14px; color: var(--muted); }

/* ---------- Só reunião ---------- */
.takeaways { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.takeaway { display: grid; gap: 14px; align-content: start; padding: 28px; }
.takeaway h3 { font-size: 20px; }
.takeaway p { font-size: 15px; color: var(--muted); }

/* ---------- Perguntas ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: 4px; border-radius: 4px; }
.faq-icon { width: 24px; height: 24px; flex: none; transition: transform var(--t-detail) var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item p { max-width: 64ch; margin: 0 0 20px; line-height: 1.65; color: var(--muted); }

/* ---------- Marcação ---------- */
.booking-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.booking-copy h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.07; }
.booking-copy > p { margin-top: 20px; font-size: 18px; color: var(--muted); }
/* Fim da landing que leva ao diagnóstico: o cartão com o botão para começar */
.diag-fim-painel { display: grid; justify-items: start; gap: 16px; padding: clamp(28px, 3.4vw, 40px); }
.diag-fim-painel h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.diag-fim-painel p { color: var(--muted); }
.booking-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.booking-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.booking-form { padding: 32px; scroll-margin-top: 16px; }
.form-progress { list-style: none; margin: 0 0 28px; padding: 0; display: flex; justify-content: space-between; gap: 8px; border-block: 1px solid var(--line-strong); }
.form-progress li { display: flex; align-items: center; gap: 8px; padding-block: 16px; font-size: 14px; line-height: 1; color: var(--quiet); white-space: nowrap; }
.form-progress li span { display: grid; place-items: center; width: 24px; height: 24px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.form-progress .is-current { color: var(--text); box-shadow: 0 2px var(--out); }
.form-step { display: grid; gap: 20px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form-step:focus { outline: none; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .choice-group legend { font-size: 14px; font-weight: 500; line-height: 1.4; }
.opt { font-size: 13px; font-weight: 400; color: var(--quiet); }
.field input, .field textarea { display: block; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.5; }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-group legend { padding: 0; margin-bottom: 12px; }
.choices { display: grid; gap: 8px; }
.choices-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; display: block; min-width: 0; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; font-size: 14px; line-height: 1.35; text-align: center; pointer-events: none; transition: background var(--t-hover), border-color var(--t-hover), box-shadow var(--t-hover); }
.choices-2 .choice span { justify-content: flex-start; text-align: left; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.schedule-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.schedule-intro strong { font-size: 16px; font-weight: 600; }
.schedule-intro span { font-size: 14px; color: var(--muted); }
.slot-status { font-size: 14px; color: var(--muted); }
.slot-status:empty { display: none; }
.days-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.days-head p { font-size: 14px; font-weight: 600; text-align: center; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; cursor: pointer; }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days[data-n="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.day { display: grid; place-content: center; gap: 4px; min-width: 0; min-height: 64px; padding: 8px 2px; cursor: pointer; text-align: center; }
.day span { font-size: 12px; line-height: 1; }
.day b { font-size: 17px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots-label { font-size: 14px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 44px; padding: 8px; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; }
.slot-hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--error); }
.form-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-actions [data-form-next], .form-actions [data-form-submit] { margin-left: auto; }
.form-actions .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.booking-form.is-done > :not(.form-done) { display: none !important; }
.form-done { display: grid; justify-items: start; gap: 12px; }
.form-done:focus { outline: none; }
.form-done h3 { margin-top: 8px; font-size: 24px; }
.form-done p { color: var(--muted); }
.form-done strong { color: var(--text); font-weight: 600; }

/* ---------- Rodapé, barra de revisão e CTA fixa ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; font-size: 14px; color: var(--muted); }
.footer-row .logo { margin: 0; }
.footer-row img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--text); text-underline-offset: 3px; }
.review-bar { font-size: 13px; }
.review-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 40px; padding-block: 6px; }
.review-row > span { display: inline-flex; align-items: center; gap: 8px; }
.review-bar .dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--in); }
.review-bar a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; text-underline-offset: 3px; }
.review-row > span { margin-right: auto; }
.review-action { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid currentColor; border-radius: var(--radius); background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
[tabindex="-1"]:focus { outline: none; }
.sticky-cta { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .galaxies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Telemóvel e tablet: sem figura presa. Figura, texto; figura, texto; figura, texto, pela ordem dos níveis */
@media (max-width: 1079px) {
  .levels-grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .levels-stage { display: none; }
  .level { min-height: 0; padding-block: 32px 40px; }
  .level-visual { display: block; max-width: 420px; margin-bottom: 28px; padding: 16px 14px 14px; }
  .level-visual .lv { width: 100%; height: auto; }
  .level-visual figcaption { margin-top: 10px; text-align: center; font-size: 13px; line-height: 1.4; color: var(--muted); }
  .level-orbit { margin-block: 16px 8px; padding: 24px 20px 28px; }
  /* Dentro do cartão do nível 3, a figura usa a largura toda, para os rótulos não ficarem abaixo de 12 px */
  .level-orbit .level-visual { padding: 0; margin-inline: -10px; }
}

@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "logo" "visual" "copy"; }
  .hero-logo { margin-bottom: 8px; }
  .hero-visual { margin-bottom: 24px; }
  .eco { height: clamp(360px, 62vw, 480px); }
  .engine-grid, .faq-grid, .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .takeaways { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .does-list { grid-template-columns: 1fr 1fr; }
  .build { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 0; max-width: 640px; }
  .build-step { grid-row: auto; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: none; column-gap: 16px; row-gap: 10px; padding-bottom: 32px; }
  .build-num { grid-row: 1 / span 5; align-self: start; }
  .build-step > :not(.build-num) { grid-column: 2; }
  .build-step:not(:last-child)::after { top: 48px; bottom: 8px; left: 20px; right: auto; width: 1px; height: auto; }
  .build-glyph { max-width: 200px; padding: 8px 10px; }
  .guided { max-width: 640px; margin-top: 0; }
  .guided-bracket { display: none; }
  .guided-copy { justify-content: flex-start; margin-top: 0; padding: 16px 20px; border: 1px solid var(--guided); border-radius: var(--radius); }
  .result { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .included { grid-template-columns: minmax(0, 1fr); }
  .included > p { grid-column: auto; }
  .demo-guide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 760px) {
  .section { padding-block: 72px; }
  .hero { padding-block: 24px 56px; }
  .hero-logo { margin-bottom: 4px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-checks { gap: 10px; flex-direction: column; }
  .eco { height: 380px; }
  .hero h1 { font-size: clamp(31px, 8.8vw, 40px); }
  .lead { font-size: 17px; }
  .galaxies { grid-template-columns: minmax(0, 1fr); }
  .galaxy { grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 20px; }
  .galaxy-icon { grid-row: 1 / span 2; }
  .does-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .result { padding: 28px 24px; }
  .pair-card { padding: 24px; }
  .cost-compare { grid-template-columns: minmax(0, 1fr); }
  .cost-side { padding: 28px 24px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px; }
  .instrument { padding: 8px; }
  .instrument-top { padding: 4px 6px 10px; }
  .instrument-top .instrument-link { display: none; }
  .instrument-view { height: auto; aspect-ratio: 4 / 5; }
  .instrument-view iframe, .instrument-shield { display: none !important; }
  .instrument-poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; padding: 24px; text-align: center; color: #E7E2DC; background: linear-gradient(180deg, rgb(10 11 14 / 0%) 35%, rgb(10 11 14 / 88%) 80%); }
  .instrument-poster p { font-size: 14px; }
  .booking-form { padding: 24px 20px; }
  .form-progress li { gap: 6px; font-size: 13px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .choices-4, .choices-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices-2 { grid-template-columns: minmax(0, 1fr); }
  .days { gap: 4px; }
  .day { min-height: 60px; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-actions [data-form-next], .form-actions [data-form-submit] { flex: 1 1 auto; justify-content: space-between; }
  .footer-links { margin-left: 0; }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  /* CTA fixa no fundo do ecrã enquanto se faz scroll (o JS esconde-a no topo e junto ao formulário) */
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); transform: translateY(0); transition: transform var(--t-enter) var(--ease), opacity var(--t-enter) var(--ease); }
  .sticky-cta[hidden] { display: block !important; transform: translateY(110%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform var(--t-enter) var(--ease), opacity var(--t-enter) var(--ease), visibility 0s linear var(--t-enter); }
  .sticky-cta .btn { width: 100%; justify-content: space-between; }
}

@media (max-width: 420px) {
  .thief { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 12px; padding: 10px 12px; }
  .thief-icon { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
