/* Home page — sits ON TOP of app.css (loaded first), and only holds what is genuinely the home's:
   the hero, the search bar, the trust strip, the category/destination/step blocks and the closing bands.
   Header, footer, nav menu, login modal, buttons, vehicle cards, type scale and colours all come from the
   design system now; duplicating them here is what made the logout veil and the modal spinner work on every
   page EXCEPT this one. If you need a component, add it to app.css — not here. */

/* The shared header, laid transparently over the hero. Same fragment and script as every other page;
   HomeController just puts headerVariant=over-hero in the model. */
.site-header.over-hero {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: none; box-shadow: none;
}
/* Só a altura muda sobre a fotografia; os 1.5rem laterais são os do .container, para a marca cair
   na mesma vertical da manchete logo abaixo (com 2rem ficava 8px à direita dela). */
.site-header.over-hero .header-inner { padding: 1.1rem 1.5rem; }
.site-header.over-hero .nav-link,
.site-header.over-hero .nav-account { color: #fff; opacity: 0.92; font-weight: 500; }
.site-header.over-hero .nav-link:hover,
.site-header.over-hero .nav-account:hover { opacity: 1; }
.site-header.over-hero .lang-btn {
    border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #fff;
}
/* O painel é uma caixa branca por cima da fotografia e mantém-se branco: o que muda é só o botão. */
/* The "Entrar" pill reads as glass over the photo rather than a solid dark button. */
.site-header.over-hero .btn-dark {
    background: rgba(255,255,255,0.16); color: #fff; box-shadow: none;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.site-header.over-hero .btn-dark:hover { background: rgba(255,255,255,0.26); }

.hero { position: relative; min-height: 82vh; display: flex; flex-direction: column; justify-content: center;
    padding: 8rem 2rem 6rem; text-align: center; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,40,36,0.62), rgba(10,40,36,0.78)),
                url("/images/demo/hero-toscana-2b1ce344a15eedbf9c077a3230e57cd0.jpg") center/cover no-repeat; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; max-width: 18ch; margin: 0 auto 1.1rem; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); opacity: 0.92; max-width: 42ch; margin: 0 auto 2.4rem; }

.search { background: #fff; border-radius: 18px; padding: 0.55rem; display: flex; gap: 0.4rem;
    max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-lg); flex-wrap: wrap; }
.search .field { flex: 1 1 150px; text-align: left; padding: 0.55rem 1rem; border-radius: 12px; min-width: 0; }
/* Destination is the field people actually type in, and its placeholder was being clipped mid-word at the
   default width. The date fields need only enough room for dd/mm/yyyy. */
.search .field:first-child { flex: 1.6 1 210px; }
.search .field + .field { border-left: 1px solid var(--line); }
.search .field label { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--muted); font-weight: 700; }
.search .field input { border: none; outline: none; font-size: 1rem; width: 100%; color: var(--ink);
    background: transparent; padding-top: 0.2rem; font-family: inherit; }
/* These fields borrow the generic .field class, which in app.css carries the ACCOUNT-FORM focus ring: a 3px
   teal box-shadow. On a bordered form input that reads as focus; on a borderless input inside this flat pill
   it reads as a stray bordered box around one field and not the others — which is exactly how it was
   reported. Focus is shown by tinting the whole field instead, which suits the pill. */
.search .field input:focus { box-shadow: none; }
.search .field:focus-within { background: var(--sand); }
.search button { flex: 0 0 auto; padding: 0 1.7rem; border-radius: 13px; }

.trust { background: var(--ink); color: #fff; }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; padding: 1.1rem 1.5rem; }
.trust .trust-stat { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; opacity: 0.92; }
.trust .trust-stat strong { font-weight: 800; }
.trust .trust-stat .star { color: var(--amber); }

section.block { padding: 4.5rem 0; }
section.block.alt { background: var(--sand); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.4rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); margin-top: 0.6rem; font-size: 1.05rem; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius, 16px); border-radius: 16px;
    padding: 1.6rem; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat .ic { width: 48px; height: 48px; border-radius: 12px; background: #e9f2ef; color: var(--teal);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.cat h3 { font-size: 1.15rem; }
.cat p { color: var(--muted); font-size: 0.92rem; margin: 0.35rem 0 0.9rem; }
.cat .more { color: var(--teal-dark); font-weight: 700; font-size: 0.9rem; }

.dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.dest { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; display: flex;
    align-items: flex-end; color: #fff; box-shadow: var(--shadow); transition: transform .15s; isolation: isolate; }
.dest:hover { transform: translateY(-4px); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.dest::after { content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(8,24,21,0.75)); }
.dest span { position: relative; z-index: 2; padding: 1rem; font-weight: 700; font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.step { text-align: center; }
.step .num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--teal); color: #fff;
    font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin-top: 0.4rem; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); }
.benefit svg { color: var(--teal); margin-bottom: 0.7rem; }
.benefit h3 { font-size: 1.1rem; }
.benefit p { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.center-cta { text-align: center; margin-top: 2.2rem; }
.link-dark { color: var(--teal-dark); font-weight: 700; }

.owner { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; }
.owner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 3rem 1.5rem; }
.owner h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 18ch; }
.owner p { opacity: 0.9; margin-top: 0.5rem; max-width: 44ch; }
.owner .btn { background: #fff; color: var(--teal-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* Phones: the header already gets 1rem from `header`, so the over-hero inner padding drops its own sides —
   stacked, the two left 264px of a 360px screen for logo + nav and the whole home scrolled sideways. The nav
   gap is app.css's (0.5rem under 480px); an 0.8rem here outranked it. */
@media (max-width: 640px) { header { padding: 1rem; } .site-header.over-hero .header-inner { padding: 0.2rem 0; } .hero { padding: 7rem 1.2rem 4rem; } }
/* A faixa do aviso é uma faixa: tem de ir de bordo a bordo. Como no telemóvel o cabeçalho da página
   inicial leva 1rem de margem própria (regra acima), a faixa desfá-la para si. */
@media (max-width: 640px) { .site-header.over-hero .demo-bar { margin-left: -1rem; margin-right: -1rem; } }

.cat { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cat-img { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: #d9e2df;
    transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.cat:hover .cat-img { transform: scale(1.05); }
.cat-body { padding: 1.2rem 1.3rem 1.4rem; }
.cat-body h3 { font-size: 1.12rem; }
.cat-body p { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0.8rem; }

.dual { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.dual-card { position: relative; border-radius: 18px; padding: 2.2rem; overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: flex-start; }
.dual-card.host { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: #fff; border: none; }
.dual-card.op { background: var(--sand); }
.dual-ic { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.dual-card.host .dual-ic { background: rgba(255,255,255,0.18); color: #fff; }
.dual-card.op .dual-ic { background: #e9f2ef; color: var(--teal); }
.dual-card h3 { font-size: 1.3rem; max-width: 20ch; }
.dual-card p { margin: 0.55rem 0 1.4rem; font-size: 0.96rem; max-width: 42ch; }
.dual-card.host p { opacity: 0.92; }
.dual-card.op p { color: var(--muted); }
.dual-card.host .btn { background: #fff; color: var(--teal-dark); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.dual-card.op .btn { background: var(--ink); color: #fff; }

.freedom { text-align: center; }
.freedom .container { max-width: 700px; }
.freedom h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.freedom p { color: var(--muted); margin: 0.8rem auto 1.7rem; font-size: 1.05rem; }

/* Nudge for a host who hasn't listed a van yet (home is otherwise all traveller marketing). */
.host-nudge { background: #fdf3e2; border-bottom: 1px solid #f0e0bf; }
.host-nudge .container { display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    padding: 0.85rem 1rem; flex-wrap: wrap; color: #8a5a12; font-weight: 600; font-size: 0.95rem; }
.host-nudge svg { width: 20px; height: 20px; flex: none; }

/* A validation message inside the bar used to grow the field, which grew the bar: the whole pill jumped and
   the button moved out from under the cursor. It hangs below instead — the bar keeps its shape. */
.search .field { position: relative; }
.search .field .js-date-err { position: absolute; top: 100%; left: 1rem; right: 0.4rem; margin-top: 0.35rem;
    font-size: 0.76rem; font-weight: 600; color: #9b1c1c; }

/* Bloco do roteiro, em faixa escura. Antes eram três caixas tracejadas a cinzento sobre creme: a ideia
   era que se visse à légua que são esboços e não inclusões, mas o que se via era uma secção por acabar.
   A faixa escura faz o mesmo trabalho pelo lado contrário: muda o fundo a meio da página, liga ao painel
   do herói e marca o bloco como outra coisa — de propósito, não por falta de acabamento. Os números âmbar
   dão-lhe ordem sem lhe dar datas, que é exactamente o que podemos prometer. */
.soon-badge { display: inline-block; margin-bottom: 0.7rem; padding: 0.28rem 0.7rem; border-radius: 999px;
    background: rgba(232,163,61,0.16); color: #8a5b12; font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; }
/* "roteiro" e não "next": .next-card já existe no app.css, no painel do anfitrião, e é um flex de
   duas colunas (ícone à esquerda, texto à direita). Com o mesmo nome aqui, o display vinha de lá e os
   cartões desta secção partiam-se em duas colunas: o título espremido num canal de 60px, "Seguro de
   aluguer incluído" em quatro linhas. Nomes diferentes para componentes diferentes. */
.block.next { background: var(--ink); color: #fff; }
.block.next .section-head h2 { color: #fff; }
.block.next .section-head p { color: rgba(255,255,255,0.7); }
.block.next .soon-badge { background: rgba(232,163,61,0.18); color: var(--amber); }

.roteiro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.4rem 2.6rem; align-items: start; counter-reset: roteiro; }
/* Sem caixa: um fio por cima de cada ponto chega para os separar, e três filetes alinhados
   fazem mais ordem no ecrã do que três rectângulos. */
.roteiro-card { display: flex; flex-direction: column; border: 0;
    border-top: 1px solid rgba(255,255,255,0.2); padding: 1.15rem 0 0; counter-increment: roteiro; }
.roteiro-card::before { content: counter(roteiro, decimal-leading-zero); display: block;
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; color: var(--amber);
    margin-bottom: 0.7rem; }
.roteiro-card h3 { font-size: 1.02rem; line-height: 1.3; color: #fff; margin: 0 0 0.5rem; }
.roteiro-card p { color: rgba(255,255,255,0.66); font-size: 0.92rem; line-height: 1.58; margin: 0; }
/* Alinhada à esquerda como o título da secção: centrada, ficava a flutuar sozinha debaixo de um
   bloco que começa todo na mesma vertical. */
.roteiro-nota { margin: 1.8rem 0 0; color: rgba(255,255,255,0.48); font-size: 0.85rem; max-width: 62ch; }

/* Startup honesty note — an eyebrow above the hero headline, sitting on the dark hero photo. Translucent
   light pill with white text so it reads on the image; centred, self-sized (not full width). Says plainly
   that Campvoy is starting out — confidence, not a warning. The dot is a small "live and building" pulse. */
.startup-note { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: fit-content; max-width: 90%; margin: 0 auto 1.4rem; padding: 0.5rem 1.1rem;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(4px); border-radius: 999px;
    color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0.95; }
.startup-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
    box-shadow: 0 0 0 0 rgba(232,163,61,0.6); animation: startup-pulse 2.4s ease-out infinite; }
@keyframes startup-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(232,163,61,0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(232,163,61,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,163,61,0); }
}
@media (prefers-reduced-motion: reduce) { .startup-dot { animation: none; } }

/* Bloco das apps móveis. Duas colunas: o que se pode fazer hoje à esquerda, a Campvoy num telemóvel à
   direita. A fotografia é um ecrã real da app, por isso o "telemóvel" é só uma moldura à volta dela. */
.app-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.app-text h2 { font-size: clamp(1.5rem, 2.2vw, 2.05rem); }
.app-lead { color: var(--muted); margin-top: 0.6rem; font-size: 1.05rem; max-width: 46ch; }
.app-list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.app-list li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: 0.97rem; }
/* O visto desenhado em CSS, não um emoji: o emoji muda de cara em cada sistema. */
.app-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.5rem; height: 0.28rem;
    border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }

/* Sem os selos oficiais: estas são pastilhas de texto, e dizem o que é verdade — ainda não estão lá. */
.app-stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.store-pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.9rem;
    border: 1px dashed var(--line); border-radius: 999px; background: transparent;
    color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.app-install { margin-top: 1.5rem; }
.app-install .app-note { margin-top: 0.5rem; color: var(--muted); font-size: 0.88rem; max-width: 42ch; }

.app-notify { margin-top: 1.8rem; max-width: 30rem; }
.app-notify label { display: block; font-size: 0.92rem; font-weight: 600; margin-bottom: 0.5rem; }
.app-notify-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.app-notify input { flex: 1 1 14rem; min-width: 0; padding: 0.7rem 0.9rem; border: 1px solid var(--line);
    border-radius: 12px; font: inherit; font-size: 0.95rem; background: #fff; color: var(--ink); }
.app-notify input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,107,0.14); }
.app-notify .btn { flex: 0 0 auto; }
.app-ok, .app-err { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 600; }
.app-ok { color: var(--teal-dark); }
.app-err { color: #9b1c1c; }

.app-shot { display: flex; justify-content: center; }
.phone { width: 260px; max-width: 100%; padding: 10px; border-radius: 34px; background: var(--ink);
    box-shadow: 0 24px 50px rgba(16,45,41,0.28); }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }

@media (max-width: 860px) {
    /* O telemóvel passa para cima: é a imagem que explica o bloco antes de se ler uma linha. */
    .app-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .app-shot { order: -1; }
    .phone { width: 220px; }
}

/* ══════════════════════════════════════════════════════════════════
   2026 — ritmo e abertura
   Camada posta no fim de propósito: o que está acima continua a ser a
   página como foi desenhada, e isto são as decisões novas, juntas e
   reversíveis. O que mudou não foi a paleta nem os componentes; foi o
   RITMO. A página eram oito secções com a mesma forma (título ao
   centro, parágrafo cinzento, grelha de caixas brancas com sombra),
   uma atrás da outra, e nada dizia a ninguém onde olhar primeiro.
   ══════════════════════════════════════════════════════════════════ */

/* O herói deixa de ser um cartaz centrado e passa a abertura editorial:
   o texto alinha à esquerda, na mesma coluna de tudo o que vem a seguir,
   e a fotografia volta a ver-se (o escurecido passa a vir de lado, não
   por cima de tudo). */
/* 72vh e não 86: a página inicial tem de deixar ver que há mais por baixo. Com o herói a ocupar o ecrã
   inteiro, quem chega a um monitor grande vê um cartaz e tem de adivinhar que se rola. */
.hero { text-align: left; justify-content: flex-end;
    min-height: min(72vh, 620px); padding: 7rem 0 3.25rem; }
.hero::before {
    background:
        linear-gradient(100deg, rgba(8,30,27,0.88) 0%, rgba(8,30,27,0.66) 46%, rgba(8,30,27,0.20) 82%),
        linear-gradient(180deg, rgba(8,30,27,0.55), transparent 28%),
        url("/images/demo/hero-toscana-2b1ce344a15eedbf9c077a3230e57cd0.jpg") center/cover no-repeat;
}
.hero-inner { width: 100%; }
.hero .startup-note { margin: 0 0 1.5rem; }
/* Escala maior e linhas mais juntas: é a diferença entre um título e uma manchete. */
/* 52 px de tecto, não 69: a manchete tem de ser a maior coisa da página, não a única que se lê. */
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.25rem); line-height: 1.05; max-width: 16ch; margin: 0 0 0.9rem; }
.hero .sub { font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 46ch; margin: 0 0 1.8rem; opacity: 0.88; }
.hero .search { margin: 0; max-width: 880px; border-radius: 20px; padding: 0.5rem; }
.hero-cta { padding: 0.95rem 1.8rem; font-size: 1.02rem; }
.hero-owner { min-height: min(78vh, 700px); }

/* A faixa de confiança era uma barra preta a cortar a página a meio.
   Passa a uma linha discreta sobre a areia: diz o mesmo e não grita. */
.trust { background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); }
.trust .container { justify-content: flex-start; gap: 0.6rem 2.2rem; padding: 1.15rem 1.5rem; }
/* Tinta e não cinzento: a cinzento, e sem ícone, a linha lia-se como letra pequena de rodapé. */
.trust .trust-stat { opacity: 1; font-size: 0.9rem; font-weight: 600; color: var(--ink); gap: 0.55rem; }
.trust .trust-stat svg { flex: none; color: var(--teal); }
.trust .trust-stat strong { color: var(--ink); }

/* Secções: mais ar, títulos maiores e alinhados à esquerda. Um título ao
   centro sobre uma grelha alinhada à esquerda nunca assentou em nada. */
section.block { padding: clamp(3.5rem, 7vw, 5.75rem) 0; }
/* Alternância a sério: painel branco entre secções, em vez de areia sobre areia. */
section.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: left; max-width: 52ch; margin: 0 0 2.2rem; }
/* Abaixo do herói, sempre: três tamanhos a gritar ao mesmo tempo não são hierarquia nenhuma. */
.section-head h2 { font-size: clamp(1.5rem, 2.2vw, 2.05rem); line-height: 1.12; }
.section-head p { font-size: 1.05rem; max-width: 50ch; }
.center-cta { text-align: left; }

/* Cartões: traço fino em vez de sombra. A sombra em tudo é o que mais
   envelhece uma página; o relevo fica para quando o rato lá está. */
.cat, .benefit, .dual-card { box-shadow: none; }
.cat, .dest { border-radius: 20px; }
.cat { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
/* Mesmo problema dos preços: "Caravana" tem uma linha de descrição e os outros têm duas, por isso
   o "Ver" dessa coluna ficava 13px acima dos vizinhos. Preso ao fundo, a fila alinha. */
.cat-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.cat-body .more { margin-top: auto; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d9d2c4; }
.dest { box-shadow: none; }
.dest:hover { transform: translateY(-3px); }

/* Os três passos passam a numeração editorial: o número grande no serif
   da marca, sob um traço, em vez de três bolas verdes centradas. */
.steps { gap: 1.4rem 2.2rem; }
.step { text-align: left; padding-top: 1rem; border-top: 2px solid var(--ink); }
.step .num { display: block; width: auto; height: auto; margin: 0 0 0.3rem; background: none;
    color: var(--ink); font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1; }
.step h3 { font-size: 1.1rem; }
.step p { font-size: 0.95rem; }

/* O bloco das apps herda a alternância branca; o telemóvel fica melhor
   sobre o branco do que sobre a areia. */
.appband .app-lead { max-width: 44ch; }

@media (max-width: 640px) {
    .hero { padding: 7rem 0 3rem; min-height: min(80vh, 640px); }
    /* Num telemóvel o texto atravessa a largura toda, e o escurecido que vem de lado deixa de o cobrir:
       as últimas palavras de cada linha caíam na parte clara da fotografia. Aqui o escurecido vem de cima
       e de baixo, que é por onde o texto passa. */
    .hero::before {
        background:
            linear-gradient(180deg, rgba(8,30,27,0.62) 0%, rgba(8,30,27,0.26) 40%, rgba(8,30,27,0.74) 100%),
            linear-gradient(100deg, rgba(8,30,27,0.34), rgba(8,30,27,0.06) 72%),
            url("/images/demo/hero-toscana-2b1ce344a15eedbf9c077a3230e57cd0.jpg") center/cover no-repeat;
    }
    .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); max-width: 18ch; }
    .trust .container { gap: 0.3rem 1.6rem; }
}

/* No telemóvel o aviso de "somos uma startup" ocupava quatro linhas e
   empurrava a manchete para baixo da dobra. Continua a dizer-se, mais
   baixinho — é uma nota, não o título. */
@media (max-width: 640px) {
    .hero .startup-note { font-size: 0.78rem; padding: 0.4rem 0.9rem; margin-bottom: 1.1rem; max-width: 100%; }
    /* E, por garantia, uma sombra curta atrás das letras: o escurecido resolve o caso geral, isto resolve
       o ponto claro que calhar debaixo de uma palavra. Custa nada e não tira luz à fotografia. */
    .hero h1, .hero .sub { text-shadow: 0 1px 14px rgba(8,30,27,0.45); }
}

/* Destinos: de seis azulejos iguais a um mosaico. Seis tiles do mesmo
   tamanho em fila dizem que os seis valem o mesmo e não dão nada a ler
   primeiro; o primeiro passa a valer quatro, e a grelha ganha um ponto
   de entrada. São 3 colunas × 3 filas = 9 células para 2 + 1 + 1 ... + 1,
   ou seja, exactamente as seis que há. */
.dests { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 1rem; }
.dest { aspect-ratio: auto; height: 100%; border-radius: 20px; }
.dest:first-child { grid-column: span 2; grid-row: span 2; }
.dest img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.dest:hover img { transform: scale(1.06); }
/* O escurecido só na metade de baixo, e mais leve: a fotografia é que
   convida, não o gradiente. */
/* O escurecido tinha de chegar para "Peneda e Gerês" escrito por cima de água ao sol, que era onde
   o nome desaparecia. Começa mais cedo e acaba mais escuro; a sombra do texto trata do resto. */
.dest::after { background: linear-gradient(180deg, transparent 28%, rgba(8,24,21,0.42) 56%,
    rgba(8,24,21,0.88)); }
.dest span { text-shadow: 0 1px 10px rgba(8,24,21,0.5); }
.dest span { padding: 1.1rem 1.2rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.45rem; }
.dest:first-child span { font-size: 1.5rem; font-family: var(--font-display); font-weight: 600; }
/* A seta aparece ao passar: diz que o azulejo leva a algum lado, sem
   ocupar espaço enquanto ninguém olha. */
.dest span::after { content: "→"; opacity: 0; transform: translateX(-4px);
    transition: opacity .18s ease, transform .18s ease; }
.dest:hover span::after { opacity: 1; transform: translateX(0); }

@media (max-width: 900px) {
    .dests { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
    .dest:first-child { grid-column: span 2; grid-row: span 1; }
    .dest:first-child span { font-size: 1.25rem; }
}

/* A faixa final era texto cinzento centrado sobre areia, igual a tudo o
   resto, a fechar a página sem fechar nada. Passa a um painel: a estrada
   em fotografia, o convite em cima dela, e um fim que se vê. */
.freedom { padding-bottom: clamp(3.5rem, 7vw, 5.75rem); }
.freedom .container { max-width: 1120px; }
.freedom .container { position: relative; isolation: isolate; overflow: hidden;
    border-radius: 28px; padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
    text-align: left; color: #fff; }
.freedom .container::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(95deg, rgba(8,30,27,0.88), rgba(8,30,27,0.55) 60%, rgba(8,30,27,0.25)),
                url("/images/demo/cv3-a4d711aab5f21b4d8ddeb297ba6f9e77.jpg") center/cover no-repeat; }
/* O serif da marca, como no herói: a página abre e fecha com a mesma voz. */
.freedom h2 { font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: 16ch; line-height: 1.08; }
.freedom p { color: rgba(255,255,255,0.86); margin: 0.9rem 0 1.8rem; max-width: 46ch; font-size: 1.05rem; }
.freedom .btn { padding: 0.95rem 1.8rem; font-size: 1.02rem; }

/* O nome do destino ganhou uma segunda linha: quantas carrinhas lá há. Um destino vazio diz-no antes do
   clique, em vez de levar a pessoa a uma lista vazia e deixá-la a pensar que a pesquisa está avariada. */
.dest span { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.dest span small { font-size: 0.78rem; font-weight: 600; opacity: 0.88; letter-spacing: 0.01em; }
.dest span small.soon { opacity: 0.75; font-style: italic; }
.dest:first-child span small { font-size: 0.9rem; }
/* A seta tem de ficar ao lado do nome, não debaixo da contagem. */
.dest span::after { position: absolute; right: 1.2rem; bottom: 1.25rem; }

/* "Avisem-me quando abrir". Antes do primeiro anfitrião é o único sinal que se pode recolher, por isso
   tem de ser visível sem ser um pop-up: fica no fim da página, onde quem leu tudo já decidiu se quer. */
.avisem { background: var(--ink); color: #fff; }
.avisem-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.avisem h2 { font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; max-width: 18ch; }
.avisem p { color: rgba(255,255,255,0.84); margin-top: 0.7rem; max-width: 46ch; }
.avisem-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.avisem-row input { flex: 1 1 15rem; min-width: 0; padding: 0.85rem 1rem; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff;
    font: inherit; font-size: 0.98rem; }
.avisem-row input::placeholder { color: rgba(255,255,255,0.55); }
.avisem-row input:focus { outline: none; border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(232,163,61,0.25); background: rgba(255,255,255,0.12); }
.avisem-row .btn { flex: 0 0 auto; background: var(--amber); color: var(--ink); }
.avisem-row .btn:hover { background: #f0b457; }
.avisem-nota { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.8rem; max-width: 46ch; }
.avisem-ok, .avisem-err { margin-top: 0.7rem; font-weight: 600; font-size: 0.92rem; }
.avisem-ok { color: #9fe0c6; }
.avisem-err { color: #f3b0a6; }
/* O rótulo existe para quem navega por leitor de ecrã; o campo tem o seu próprio texto de exemplo. */
.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; }

@media (max-width: 860px) { .avisem-wrap { grid-template-columns: 1fr; gap: 1.4rem; } }

/* A recolha de email no herói. Duas acções, uma para quem já tem carrinha e outra para quem só quer ser
   avisado — e a segunda não pode parecer tão importante como a primeira.
   Em coluna e não lado a lado: ao lado do botão, o formulário caía em cima da carrinha da fotografia e o
   rótulo ficava ilegível, com o campo e o botão âmbar a flutuar em alturas diferentes. Agora é um cartão
   escuro com fundo próprio, que se lê esteja por cima do céu, da serra ou da carrinha. */
.hero-accoes { display: flex; flex-direction: column; align-items: flex-start; gap: 1.35rem; }
.hero-aviso { width: 100%; max-width: 27rem; padding: 0.9rem 1rem 0.95rem; border-radius: 16px;
    background: rgba(6,24,22,0.5); border: 1px solid rgba(255,255,255,0.16);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-aviso label { display: block; font-size: 0.86rem; color: rgba(255,255,255,0.86); margin-bottom: 0.5rem; }
.hero-aviso-row { display: flex; gap: 0.45rem; flex-wrap: wrap; }
/* 9rem de base e não 13: a 13 o botão caía para a linha de baixo e o campo ficava sozinho a ocupar tudo. */
.hero-aviso-row input { flex: 1 1 9rem; min-width: 0; padding: 0.72rem 0.9rem; border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.12); color: #fff;
    font: inherit; font-size: 0.93rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-aviso-row input::placeholder { color: rgba(255,255,255,0.6); }
.hero-aviso-row input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,0.2); }
.hero-aviso-row .btn-ghost { background: rgba(255,255,255,0.14); color: #fff;
    border: 1px solid rgba(255,255,255,0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-aviso-row .btn-ghost:hover { background: rgba(255,255,255,0.24); border-color: #fff; }
.hero-aviso-ok { margin-top: 0.5rem; font-size: 0.86rem; font-weight: 600; color: #bdf0da; }
.hero-aviso-err { margin-top: 0.5rem; font-size: 0.86rem; font-weight: 600; color: #ffc9bf; }

@media (max-width: 640px) {
    /* No telemóvel o botão manda, e o email fica por baixo em largura inteira. */
    .hero-accoes { gap: 1.1rem; width: 100%; }
    .hero-aviso, .hero-aviso-row { width: 100%; }
    .hero-aviso { max-width: 100%; }
}

/* ===========================================================================
   HERÓI DIVIDIDO — variante de angariação (sem inventário)
   ---------------------------------------------------------------------------
   O herói era um cartaz: fotografia inteira com o texto por cima, encostado à
   esquerda. Três problemas que não se resolviam a afinar margens — o contraste
   do texto dependia do sítio da fotografia onde calhasse, 60% do ecrã ficava
   vazio à direita, e o aviso, o botão e o campo de email eram três formas
   diferentes empilhadas (pílula translúcida, pílula âmbar, cartão escuro).

   Passa a duas metades: painel sólido à esquerda, fotografia à direita. O texto
   nunca mais compete com a imagem, as três formas passam a uma só família sobre
   o mesmo fundo, e a fotografia ganha metade do ecrã em vez de servir de pano.
   =========================================================================== */
.hero-owner { padding: 0; min-height: 0; display: block; text-align: left; }
.hero-owner::before { content: none; }

.hero-split { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
    min-height: min(82vh, 680px); }

/* A esquerda alinha com o .container das secções de baixo: a manchete e o "Como funciona"
   começam na mesma vertical, que é o que faz a página parecer desenhada de uma vez. */
.hero-painel { background: var(--ink); display: flex; align-items: center;
    padding: 7rem 3.25rem 3.5rem max(1.5rem, calc((100vw - 1120px) / 2 + 1.5rem)); }
.hero-painel-inner { width: 100%; max-width: 35rem; }

.hero-foto { position: relative; background: url("/images/demo/hero-toscana-2b1ce344a15eedbf9c077a3230e57cd0.jpg") center/cover no-repeat; }
/* Duas sombras: uma a dissolver a junta com o painel (sem ela vê-se um corte a régua),
   outra no topo, para os links brancos do cabeçalho se lerem sobre o céu. */
.hero-foto::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(16,45,41,0) 20%),
                linear-gradient(180deg, rgba(16,45,41,0.5), transparent 30%); }

/* O aviso de startup deixa de ser pílula: sobre fundo sólido não precisa de se defender
   da imagem, e uma linha discreta diz o mesmo sem disputar com a manchete. */
.hero-owner .startup-note { display: flex; align-items: baseline; justify-content: flex-start;
    text-align: left; width: auto; max-width: 46ch; margin: 0 0 1.5rem; padding: 0;
    background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.6); opacity: 1; }
/* O ponto alinhava-se pelo meio do parágrafo: com o texto a dar três linhas ficava a flutuar a
   meio, apontado a nada. Fica na linha do princípio da frase, que é onde se lê. */
.hero-owner .startup-dot { align-self: baseline; transform: translateY(-1px); }

/* A -0.03em geral é para títulos de secção; a este tamanho, em Archivo Bold, apertava tanto que
   "Tens uma" se lia como uma palavra só. Aqui afrouxa, e o espaço entre palavras ganha um pouco. */
.hero-owner h1 { font-size: clamp(2.1rem, 3.1vw, 2.95rem); line-height: 1.07;
    letter-spacing: -0.012em; word-spacing: 0.04em;
    /* balance em vez de uma largura apertada: a 16ch a manchete partia-se em três linhas, e o
       browser equilibra-a melhor do que um corte fixo. */
    max-width: 22ch; text-wrap: balance; margin: 0 0 1rem; }
.hero-owner .sub { font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.6;
    max-width: 38ch; margin: 0 0 2.1rem; opacity: 0.78; }

/* O campo de email perde o cartão: sobre o painel sólido já se lê, e um traço por cima
   chega para dizer "isto é a segunda hipótese, não a primeira". */
.hero-owner .hero-aviso { max-width: 30rem; padding: 1.35rem 0 0; border-radius: 0;
    background: none; border: 0; border-top: 1px solid rgba(255,255,255,0.14);
    -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero-owner .hero-aviso label { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* Tablet e telemóvel: a fotografia passa para cima, em faixa, e o painel fica inteiro
   por baixo. Lado a lado, abaixo dos 900px nenhuma das metades tem largura para nada. */
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; min-height: 0; }
    .hero-foto { order: -1; min-height: 34vh; }
    .hero-foto::after { background: linear-gradient(180deg, rgba(16,45,41,0.55), rgba(16,45,41,0) 45%),
                                    linear-gradient(0deg, var(--ink), rgba(16,45,41,0) 25%); }
    .hero-painel { padding: 2.6rem 1.5rem 3rem; }
    .hero-painel-inner { max-width: 100%; }
    .hero-owner h1 { font-size: clamp(2rem, 7.5vw, 2.6rem); max-width: 18ch; }
    .hero-owner .sub { max-width: 46ch; }
}
