/* 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);
}

/* O esqueleto — cartão principal, painel lateral fixo, cabeçalho com a
   foto — é o mesmo do detalhe da oportunidade (`tt-detail` em tokens.css).
   Aqui fica só o que é do talento. */

.tt-pp__headline {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    line-height: 1.45;
    max-width: 52ch;
    color: var(--tt-text-muted);
}

.tt-pp__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
}

.tt-pp__where {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .92rem;
    color: var(--tt-text-muted);
}

.tt-pp__badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: #e0f5fb;
    color: #0e6f88;
    font-size: .8rem;
    font-weight: 600;
}

/* ---------- 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-title {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    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: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tt-pp__btn--primary {
    padding: .8rem 1rem;
    background: linear-gradient(135deg, var(--tt-primary) 0%, var(--tt-primary-light) 100%);
    color: #fff;
    font-size: 1.05rem;
    transition: transform .25s cubic-bezier(.22, .8, .3, 1), box-shadow .25s;
}

.tt-pp__btn--primary:hover,
.tt-pp__btn--primary:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(43, 47, 119, .28);
}

.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;
    }
}
