/* Página pública do talento — `/p/{slug}`.
 *
 * É o link que a pessoa cola no WhatsApp quando diz "meu perfil é esse".
 * Quem o abre é um dono de pequeno negócio, no telemóvel, a decidir em
 * quinze segundos se liga. Por isso a página não é um currículo: é uma
 * ficha de trabalho, e a parte que a faz funcionar é a tabela de preços.
 *
 * Sem webfont de propósito: esta é a página mais partilhada do produto e
 * abre-se em dados móveis — o texto tem de estar lá no primeiro quadro.
 */

.tt-pp {
    --pp-ink: #171a4a;
    --pp-rule: #e6e3dc;
    --pp-paper: #fffdfa;

    background: var(--tt-surface);
}

/* ---------- Faixa de identidade ---------- */

.tt-pp__band {
    background:
        radial-gradient(120% 140% at 88% -10%, rgba(34, 176, 212, .22), transparent 55%),
        var(--pp-ink);
    color: #fff;
    padding: 1.75rem 0 2.5rem;
}

.tt-pp__inner {
    width: min(68rem, 100% - 2rem);
    margin-inline: auto;
}

.tt-pp__eyebrow {
    margin: 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .62);
}

.tt-pp__eyebrow a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Identidade ---------- */

.tt-pp__id {
    margin: 1.5rem 0 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1.25rem;
    align-items: end;
}

.tt-pp__portrait {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1.25rem;
    object-fit: cover;
    background: var(--tt-primary);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
}

.tt-pp__portrait--initials {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.tt-pp__portrait--initials[hidden] {
    display: none;
}

.tt-pp__naming {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.tt-pp__name {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
    color: #fff;
}

.tt-pp__headline {
    margin: .5rem 0 0;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.45;
    max-width: 46ch;
    color: rgba(255, 255, 255, .82);
}

.tt-pp__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-top: .85rem;
}

.tt-pp__where {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .92rem;
    color: rgba(255, 255, 255, .72);
}

.tt-pp__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: rgba(34, 176, 212, .2);
    color: #9fe6f7;
    font-size: .8rem;
    font-weight: 600;
}

@media (min-width: 48rem) {
    .tt-pp__id {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .tt-pp__portrait {
        width: 9rem;
        height: 9rem;
    }

    .tt-pp__naming {
        grid-column: 2;
        margin-top: 0;
        padding-bottom: .35rem;
    }
}

/* ---------- Corpo ---------- */

.tt-pp__body {
    width: min(68rem, 100% - 2rem);
    margin: 2.75rem auto 0;
    padding-bottom: 3rem;
    display: grid;
    gap: 2.5rem;
}

/* No telemóvel a ordem é a da decisão: quem faz o quê e por quanto, depois
   como falar com a pessoa, e só então o resto da ficha. No desktop o
   contacto sobe para a coluna da direita e fica à vista o tempo todo. */
@media (min-width: 60rem) {
    .tt-pp__body {
        grid-template-columns: minmax(0, 1fr) 20rem;
        align-items: start;
        gap: 1rem 3rem;
    }

    .tt-pp__body > *:not(.tt-pp__contact) {
        grid-column: 1;
    }

    .tt-pp__contact {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}

.tt-pp__section + .tt-pp__section {
    margin-top: 2.5rem;
}

.tt-pp__more {
    margin-top: 1.25rem;
}

.tt-pp__title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--pp-ink);
}

/* ---------- Tabela de preços ----------
   O que uma pessoa vende, lido como se lê uma tabela de preços afixada:
   uma linha por frente, o preço alinhado à direita, réguas entre linhas.
   Cartões iguais e sombreados diriam "componente"; isto diz "serviço". */

.tt-pp__price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pp-rule);
}

.tt-pp__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .25rem 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--pp-rule);
}

.tt-pp__item-area {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tt-text);
}

.tt-pp__item-area a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid rgba(34, 176, 212, .45);
}

.tt-pp__item-area a:hover,
.tt-pp__item-area a:focus-visible {
    border-bottom-color: var(--tt-primary);
}

.tt-pp__item-rate {
    grid-column: 2;
    grid-row: 1;
    align-self: baseline;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pp-ink);
    white-space: nowrap;
}

.tt-pp__item-note {
    grid-column: 1 / -1;
    margin: 0;
    max-width: 60ch;
    color: var(--tt-text-muted);
    line-height: 1.5;
}

.tt-pp__item-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    margin: .15rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    color: var(--tt-text-muted);
}

/* ---------- Ficha: rótulo à esquerda, conteúdo à direita ---------- */

.tt-pp__rows {
    margin: 0;
    border-top: 1px solid var(--pp-rule);
}

.tt-pp__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--pp-rule);
}

@media (min-width: 34rem) {
    .tt-pp__row {
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: 1rem;
        align-items: baseline;
    }
}

.tt-pp__row-label {
    margin: 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--tt-text-muted);
}

.tt-pp__row-value {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-width: 0;
}

.tt-pp__tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem;
    border: 1px solid var(--pp-rule);
    border-radius: 999px;
    background: var(--pp-paper);
    color: var(--tt-primary);
    font-size: .85rem;
    text-decoration: none;
}

.tt-pp__tag:hover,
.tt-pp__tag:focus-visible {
    border-color: var(--tt-primary);
    background: var(--tt-primary);
    color: #fff;
}

.tt-pp__tag--locked {
    color: var(--tt-text-muted);
    cursor: default;
}

.tt-pp__tag--locked:hover {
    border-color: var(--pp-rule);
    background: var(--pp-paper);
    color: var(--tt-text-muted);
}

.tt-pp__prose {
    margin: 0;
    max-width: 62ch;
    line-height: 1.6;
    color: var(--tt-text);
    white-space: pre-line;
}

/* ---------- Contacto ---------- */

.tt-pp__contact {
    border: 1px solid var(--pp-rule);
    border-radius: 1rem;
    background: var(--pp-paper);
    padding: 1.25rem;
}

@media (min-width: 60rem) {
    .tt-pp__contact {
        position: sticky;
        top: 1.5rem;
        align-self: start;
    }
}

.tt-pp__contact-title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pp-ink);
}

.tt-pp__contact-note {
    margin: 0 0 1rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--tt-text-muted);
}

.tt-pp__contact-actions {
    display: grid;
    gap: .5rem;
}

.tt-pp__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: .7rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.tt-pp__btn--primary {
    background: var(--pp-ink);
    color: #fff;
}

.tt-pp__btn--primary:hover,
.tt-pp__btn--primary:focus-visible {
    background: var(--tt-primary);
    color: #fff;
}

.tt-pp__btn--whats {
    background: #25d366;
    color: #06331a;
}

.tt-pp__btn--whats:hover,
.tt-pp__btn--whats:focus-visible {
    background: #1eb455;
    color: #06331a;
}

.tt-pp__btn--ghost {
    border-color: var(--pp-rule);
    background: transparent;
    color: var(--pp-ink);
}

.tt-pp__btn--ghost:hover,
.tt-pp__btn--ghost:focus-visible {
    border-color: var(--tt-primary);
    color: var(--tt-primary);
}

@media (prefers-reduced-motion: reduce) {
    .tt-pp * {
        transition: none !important;
    }
}
