/* Reset básico mobile-first */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cor-fundo: #faf9f6;
    --cor-texto: #1a1a1a;
    --cor-destaque: #d94f4f;
    --cor-botao: #2b6b4a;
    --cor-botao-hover: #1f5239;
    --espacamento: 1.25rem;
}

html {
    font-size: 100%; /* 16px base */
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--espacamento);
    max-width: 30rem;
    width: 100%;
    margin: 0 auto;
}

/* Cabeçalho */
.cabecalho {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.cabecalho h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cor-destaque);
}

.data {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Conteúdo */
.conteudo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    font-size: 1rem;
}

.conteudo p {
    max-width: 28rem;
}

/* Interação (botão + mensagem) */
.interacao {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* 44px mínimo de toque + margem */
    min-width: 160px;
    padding: 0.75rem 1.5rem;
    background: var(--cor-botao);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}

.btn:active {
    background: var(--cor-botao-hover);
}

.mensagem {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: #fff3cd;
    border-radius: 0.375rem;
    border: 1px solid #ffe69c;
    max-width: 100%;
    word-break: break-word;
}

.escondido {
    display: none;
}

/* Rodapé */
.rodape {
    text-align: center;
    padding: 1.5rem 0 0.75rem;
    font-size: 0.75rem;
    color: #888;
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    main {
        padding: 0.75rem;
    }

    .cabecalho h1 {
        font-size: 1.5rem;
    }

    .btn {
        min-width: 100%;
    }
}
