/* Vendyx · página inicial (apresentação do produto). Usa as cores e o tipo de letra da aplicação (estilo.css). */
.home {
  --h-largura: 1160px;
  --h-gutter: clamp(16px, 4vw, 40px);
  --h-tinta: #0f172a;
  --h-azul: #1e3a8a;
  --h-azul-escuro: #172e6e;
  --h-azul-claro: #eaf0fd;
  --h-ambar: #f59e0b;
  --h-suave: #4c5566;
  background: #fff;
  color: var(--h-tinta);
  min-height: 100vh;
  display: block;
}
:where(.home) h1, :where(.home) h2, :where(.home) h3 { color: var(--h-tinta); margin: 0; }
:where(.home) p { margin: 0; }
:where(.home) a { color: var(--h-azul); }
.home :focus-visible { outline: 3px solid var(--h-ambar); outline-offset: 3px; border-radius: 6px; }

.saltar { position: absolute; left: -9999px; top: 0; background: #fff; padding: 0.6rem 1rem; z-index: 20; }
.saltar:focus { left: 1rem; top: 1rem; }

/* ---------- topo ---------- */
.h-topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem var(--h-gutter);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #e8ecf3;
}
.h-marca { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--h-tinta) !important; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.h-nav { display: none; gap: 1.6rem; margin-left: auto; }
.h-nav a { color: var(--h-suave); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.h-nav a:hover { color: var(--h-azul); }
.h-entrar {
  margin-left: auto; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--h-azul) !important; border: 1.5px solid #c9d4ee; border-radius: 999px; padding: 0.5rem 1.05rem; white-space: nowrap;
}
.h-entrar:hover { border-color: var(--h-azul); background: var(--h-azul-claro); }
@media (min-width: 900px) {
  .h-nav { display: flex; }
  .h-entrar { margin-left: 0.5rem; }
}

/* ---------- hero ---------- */
.h-hero {
  max-width: var(--h-largura); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--h-gutter) clamp(2rem, 5vw, 4rem);
  display: grid; gap: 2.5rem; align-items: center;
}
.h-hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em;
  max-width: 15ch;
}
.h-hero__sub { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: var(--h-suave); max-width: 34rem; }
.h-provas { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.h-provas li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem; color: var(--h-tinta); }
.h-provas svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: var(--h-azul); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-hero__imagem { margin: 0; }
.h-hero__imagem img { display: block; width: 100%; height: auto; max-width: 560px; margin: 0 auto; }
@media (min-width: 900px) {
  .h-hero { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
}

/* ---------- secções ---------- */
.h-seccao { max-width: var(--h-largura); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--h-gutter); }
.h-seccao h2, .h-seguranca h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
.h-intro { margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; color: var(--h-suave); max-width: 40rem; }

/* ---------- como funciona: o caminho em forma de visto ---------- */
.h-fluxo__mapa { position: relative; margin-top: 3rem; }
.h-fluxo__rota { display: none; }
.h-passos { list-style: none; margin: 0; padding: 0 0 0 0; display: grid; gap: 1.75rem; position: relative; }
.h-passo:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 40px; bottom: calc(-1.75rem - 6px); width: 4px; background: var(--h-azul); }
.h-passo { position: relative; padding-left: 64px; }
.h-passo__n {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--h-azul); color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 0 0 6px #fff; z-index: 1;
}
.h-passo--4 .h-passo__n { background: var(--h-ambar); color: var(--h-tinta); }
.h-passo h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; padding-top: 0.55rem; }
.h-passo p { margin-top: 0.45rem; line-height: 1.6; color: var(--h-suave); max-width: 30rem; }
@media (min-width: 900px) {
  .h-fluxo__rota {
    display: block; position: absolute; left: 0; top: 23px; width: 100%; height: 180px; overflow: visible; pointer-events: none;
  }
  .h-fluxo__rota path { fill: none; stroke: var(--h-azul); stroke-width: 4px; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .h-passos { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .h-passo::after { display: none; }
  /* os números seguem o caminho (em forma de visto); os textos alinham todos por baixo */
  .h-passo { padding-left: 0; padding-top: 250px; }
  .h-passo__n { left: 50%; transform: translateX(-50%); }
  .h-passo--2 .h-passo__n { top: 90px; }
  .h-passo--3 .h-passo__n { top: 180px; }
  .h-passo h3 { border-top: 3px solid var(--h-azul); padding-top: 0.9rem; }
  .h-passo--4 h3 { border-top-color: var(--h-ambar); }
}

/* ---------- antes / depois ---------- */
.h-troca { background: none; }
.h-troca__lista { margin-top: 2.5rem; display: grid; gap: 1rem; }
.h-troca__par { display: grid; gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid #e3e8f2; }
.h-troca__antes, .h-troca__depois { padding: 1.15rem 1.35rem; line-height: 1.55; }
.h-troca__antes { background: #f5f7fb; color: var(--h-suave); text-decoration: line-through; text-decoration-color: #b6bfd0; text-decoration-thickness: 1.5px; }
.h-troca__depois { background: #fff; font-weight: 600; position: relative; padding-left: 3.1rem; }
.h-troca__depois::before {
  content: ''; position: absolute; left: 1.3rem; top: 1.35rem; width: 14px; height: 8px;
  border-left: 3px solid var(--h-azul); border-bottom: 3px solid var(--h-azul); transform: rotate(-45deg);
}
@media (min-width: 760px) {
  .h-troca__par { grid-template-columns: 1fr 1.15fr; }
}

/* ---------- equipa ---------- */
.h-equipa { border-top: 1px solid #edf0f6; }
.h-equipa__grelha { margin-top: 2.5rem; display: grid; gap: 2.5rem; }
.h-papel h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; padding-bottom: 0.7rem; border-bottom: 3px solid var(--h-azul); display: inline-block; }
.h-papel > p { margin-top: 0.9rem; font-weight: 600; line-height: 1.5; }
.h-papel ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.h-papel li { position: relative; padding-left: 1.2rem; line-height: 1.5; color: var(--h-suave); }
.h-papel li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--h-azul); }
@media (min-width: 900px) {
  .h-equipa__grelha { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

/* ---------- funcionalidades ---------- */
.h-func { background: none; }
.h-func__lista { margin: 2.5rem 0 0; display: grid; gap: 2rem 3rem; }
.h-func__lista dt { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.h-func__lista dt svg { width: 40px; height: 40px; flex: 0 0 40px; padding: 8px; border-radius: 12px; background: var(--h-azul-claro); fill: none; stroke: var(--h-azul); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.h-func__lista dd { margin: 0.6rem 0 0; padding-left: calc(40px + 0.75rem); line-height: 1.6; color: var(--h-suave); }
@media (min-width: 760px) { .h-func__lista { grid-template-columns: 1fr 1fr; } }

/* ---------- segurança ---------- */
.h-seguranca { background: var(--h-azul); color: #e6ecfa; }
.h-seguranca__dentro { max-width: var(--h-largura); margin: 0 auto; padding: clamp(3.5rem, 8vw, 6rem) var(--h-gutter); }
.h-seguranca h2 { color: #fff; }
.h-seguranca ul { margin: 2.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 1.5rem 3rem; }
.h-seguranca li { line-height: 1.6; padding-left: 1.6rem; position: relative; }
.h-seguranca li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 10px; height: 10px; border-radius: 50%; background: var(--h-ambar); }
.h-seguranca b { color: #fff; }
@media (min-width: 760px) { .h-seguranca ul { grid-template-columns: 1fr 1fr; } }

/* ---------- perguntas ---------- */
.h-faq details { border-bottom: 1px solid #e3e8f2; max-width: 46rem; }
.h-faq h2 + details { margin-top: 2rem; border-top: 1px solid #e3e8f2; }
.h-faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after {
  content: ''; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--h-azul); border-bottom: 2.5px solid var(--h-azul); transform: rotate(45deg); transition: transform 0.15s;
}
.h-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.h-faq details p { padding: 0 0 1.2rem; line-height: 1.65; color: var(--h-suave); }

/* ---------- rodapé ---------- */
.h-rodape {
  max-width: var(--h-largura); margin: 0 auto; padding: 2rem var(--h-gutter) 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  border-top: 1px solid #e3e8f2; color: var(--h-suave); font-size: 0.92rem;
}
.h-rodape__marca, .h-rodape__links { display: flex; align-items: center; gap: 0.65rem; }
.h-rodape__links { gap: 1.25rem; }
.h-rodape a { font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .h-faq summary::after { transition: none; } }
