/*
Theme Name: Mapeamento de Posicionamento Feminino
Theme URI: https://seusite.com
Author: Fran Azure
Author URI: https://seusite.com
Description: Plataforma de Mapeamento de Posicionamento Feminino — diagnóstico estratégico emocional com perfis, gráfico radar e integração com Google Sheets.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mapeamento-posicionamento
*/

/* ══════════════════════════════════════════════════════════
   VARIÁVEIS — paleta original (brand bordô + dourado)
══════════════════════════════════════════════════════════ */
:root {
    --brand-50:  #FAF8F5;
    --brand-100: #F4F1EC;
    --brand-200: #EAE5DE;
    --brand-300: #D6CFC7;
    --brand-400: #C6A664;
    --brand-500: #7A1E2B;
    --brand-600: #631823;
    --brand-700: #4A1F26;
    --brand-800: #3D151B;
    --brand-900: #2A0E12;
    --neutral-400: #A8A29E;
    --neutral-600: #6F6A65;
    --neutral-700: #44403C;
    --neutral-850: #292524;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --stone-50: #FAFAF9;
    --stone-100: #F5F5F4;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', 'Lato', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--brand-50);
    color: var(--neutral-850);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    line-height: 1.5;
    font-size: 16px;
}

img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

.luxury-shadow { box-shadow: 0 4px 20px -5px rgba(122, 30, 43, 0.05); }

/* ══════════════════════════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════════════════════════ */
@keyframes aaFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes aaSlideUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes aaSpin { to { transform: rotate(360deg); } }
@keyframes aaVibrant {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(122,30,43,0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(122,30,43,0.6); }
}
.aa-fade-in { animation: aaFadeIn 1.2s ease-out forwards; }
.aa-slide-up { animation: aaSlideUp 0.8s ease-out forwards; }
.aa-vibrant { animation: aaVibrant 2s infinite ease-in-out; }

/* ══════════════════════════════════════════════════════════
   LAYOUT BÁSICO / TELAS
══════════════════════════════════════════════════════════ */
.aa-wrap {
    font-family: var(--font-sans);
    color: var(--neutral-850);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.aa-flex-grow { flex-grow: 1; }
.aa-screen { display: none; }
.aa-screen.active { display: block; }

.aa-center-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem 1rem;
    text-align: center;
}
.aa-container-sm { max-width: 28rem; margin: 0 auto; }
.aa-container-md { max-width: 32rem; margin: 0 auto; }
.aa-container-lg { max-width: 36rem; margin: 0 auto; }

/* ── Tipografia ── */
.aa-serif { font-family: var(--font-serif); }
.aa-italic { font-style: italic; }
/* ── Título intro em 3 linhas harmoniosas ── */
.aa-title-hero {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 7vw, 4.5rem);
    color: var(--brand-500);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}
.aa-title-line1 { font-size: 0.72em; color: var(--neutral-500); font-weight: 400; letter-spacing: .01em; }
.aa-title-line2 { font-size: 1em; color: var(--brand-500); }
.aa-title-line3 { font-size: 0.82em; color: var(--brand-400); font-style: italic; }

/* ── Hook Afetivo ── */
.aa-hook-media {
    width: 100%; max-width: 28rem; margin: 0 auto 2rem;
    border-radius: 1.25rem; overflow: hidden;
    background: var(--brand-50);
    min-height: 0;
}
.aa-hook-media img {
    width: 100%; height: auto; display: block;
    border-radius: 1.25rem;
}
.aa-hook-media-yt {
    position: relative; width: 100%; padding-bottom: 56.25%;
}
.aa-hook-media-yt iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
    border-radius: 1.25rem;
}
.aa-hook-eyebrow {
    font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .35em; color: var(--brand-400); margin-bottom: .75rem;
}
.aa-hook-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--brand-700); font-weight: 500;
    line-height: 1.2; margin-bottom: 1.25rem;
}
.aa-hook-title span { color: var(--brand-500); }
.aa-hook-body {
    font-size: 1rem; line-height: 1.75; color: var(--neutral-600);
    font-weight: 300; margin-bottom: 1rem;
    max-width: 30rem; margin-left: auto; margin-right: auto;
    text-align: justify;
    hyphens: auto;
}
.aa-hook-sub {
    font-size: 0.875rem; color: var(--neutral-400); font-style: italic;
    margin-bottom: 0; text-align: center;
}
.aa-hook-text { text-align: center; }

.aa-lead {
    color: var(--neutral-600);
    font-size: 1.0625rem;
    font-weight: 400;
    max-width: 22rem;
    margin: 0 auto 0.75rem;
    line-height: 1.6;
    text-align: center;
}
.aa-subtle {
    color: var(--neutral-400);
    font-size: 0.9375rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
}
.aa-eyebrow {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--neutral-400);
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}
.aa-heart { color: var(--brand-400); margin-bottom: 2rem; opacity: 0.6; }

/* ── Botões ── */
.aa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.25s ease;
    text-decoration: none;
}
.aa-btn:active { transform: scale(0.95); }
.aa-btn-primary {
    background-color: var(--brand-500);
    color: var(--brand-50);
    padding: 1rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(122,30,43,0.2);
}
.aa-btn-primary:hover { background-color: var(--brand-600); }
.aa-btn-hero {
    width: 100%;
    max-width: 340px;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
}
.aa-btn-block { width: 100%; }
.aa-btn-disabled, .aa-btn:disabled {
    background-color: var(--brand-200) !important;
    color: var(--neutral-400) !important;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}
.aa-btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    padding: 1rem 2rem;
    width: 100%;
}
.aa-btn-book {
    background-color: var(--brand-700);
    color: var(--brand-50);
    padding: 1.25rem 2.5rem;
}
.aa-btn-book:hover { background-color: var(--brand-900); }

.aa-icon { display: inline-block; vertical-align: middle; }
.aa-icon-mr { margin-right: 0.75rem; }

/* ── Cadastro / formulário ── */
.aa-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--brand-100);
}
.aa-form-group { margin-bottom: 1.5rem; }
.aa-label {
    display: block;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--neutral-400);
    margin-bottom: 0.25rem;
}
.aa-input, .aa-select {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid var(--brand-100);
    background: transparent;
    outline: none;
    font-weight: 300;
    color: var(--neutral-600);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.aa-input:focus, .aa-select:focus { border-color: var(--brand-500); }
.aa-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }

/* ── Seleção de gênero ── */
.aa-gender-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.aa-gender-btn {
    padding: 3rem;
    border-radius: 1.5rem;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--brand-50);
    border: none;
    transition: background-color 0.2s ease;
}
.aa-gender-btn span {
    display: block;
    margin-bottom: 0.25rem;
    opacity: 0.5;
    font-style: italic;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.aa-gender-female { background-color: #8B1E2D; }
.aa-gender-female:hover { background-color: var(--brand-500); }
.aa-gender-male { background-color: #3F3F44; }
.aa-gender-male:hover { background-color: #2F2F34; }

/* ── Saudação do usuário ── */
.aa-greeting {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0 0;
}
.aa-greeting span.label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15em;
    position: relative;
}
.aa-greeting span.greeting-line1 {
    display: block;
    font-size: 0.6rem;
    color: #1A0A0D;
    font-style: italic;
    letter-spacing: 0.12em;
    font-family: var(--font-serif);
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
}
.aa-greeting span.greeting-line2 {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 700;
    color: var(--brand-500);
    letter-spacing: 0.14em;
    text-align: center;
    white-space: nowrap;
}

/* ── Quiz ── */
.aa-quiz-wrap { max-width: 42rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
/* Linha separadora entre saudação e pergunta */
.aa-quiz-separator {
    width: 100%;
    max-width: 28rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-200), var(--brand-300), var(--brand-200), transparent);
    margin: 0 auto 1.75rem;
    border-radius: 2px;
    position: relative;
}
.aa-quiz-separator::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-500));
    position: absolute;
    left: 50%;
    top: -0.5px;
    transform: translateX(-50%);
    border-radius: 2px;
}
.aa-progress-track {
    width: 100%;
    background: var(--brand-100);
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
}
.aa-progress-bar {
    background: var(--brand-500);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.7s ease;
    width: 0%;
}
.aa-block-title {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-500);
    font-weight: 700;
    opacity: 0.6;
}
.aa-question-text {
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    color: var(--neutral-850);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}
.aa-options { display: grid; gap: 0.5rem; margin-bottom: 0; width: 100%; max-width: 28rem; }
.aa-options + .aa-reflection,
.aa-options ~ .aa-reflection { margin-top: 1rem; }
.aa-option {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--brand-100);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.aa-option:hover { border-color: var(--brand-500); }
.aa-option .opt-label {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--neutral-700);
}
.aa-option .opt-radio {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--brand-200);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: all 0.2s ease;
}
.aa-option.selected {
    border-color: var(--brand-500);
    background: rgba(250,248,245,0.5);
    box-shadow: 0 0 0 1px var(--brand-500);
}
.aa-option.selected .opt-label { color: var(--brand-600); font-weight: 500; }
.aa-option.selected .opt-radio { background: var(--brand-500); border-color: var(--brand-500); }

.aa-reflection { border-top: none; padding-top: 0.75rem; width: 100%; max-width: 28rem; margin-bottom: 1.25rem; }
.aa-reflection label {
    display: block; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.15em;
    font-weight: 700; color: var(--brand-400); margin-bottom: 0.4rem; margin-left: 0.25rem;
}
.aa-textarea {
    width: 100%; padding: 1rem; border-radius: 0.75rem; border: 1px solid var(--brand-100);
    background: rgba(255,255,255,0.5); outline: none; font-family: inherit; font-weight: 300;
    font-size: 0.875rem; min-height: 80px; resize: none; transition: border-color 0.2s ease;
}
.aa-textarea:focus { border-color: var(--brand-400); }

/* ── Transição / Interstício ── */
.aa-divider-v { width: 1px; height: 4rem; background: var(--brand-200); margin-bottom: 2.5rem; opacity: 0.3; }
.aa-transition-quote {
    color: var(--neutral-600);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
}
.aa-interstitial-body {
    font-size: 1.0625rem; color: var(--neutral-600); font-weight: 300; line-height: 1.7;
    margin-bottom: 3rem; padding: 0 1.5rem; text-align: justify;
}
.aa-interstitial-body p { margin-bottom: 1.5rem; }

/* ── Processamento ── */
.aa-spinner {
    width: 4rem; height: 4rem;
    border: 4px solid var(--brand-100);
    border-top-color: var(--brand-500);
    border-radius: 9999px;
    animation: aaSpin 1s linear infinite;
    margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════
   RESULTADO
══════════════════════════════════════════════════════════ */
.aa-result { background: var(--brand-50); padding-bottom: 6rem; }
.aa-result-header {
    background: #fff; padding: 6rem 1.5rem 5rem;
    border-bottom-left-radius: 4rem; border-bottom-right-radius: 4rem;
    border-bottom: 1px solid var(--brand-100); margin-bottom: 3rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04); text-align: center;
}
.aa-result-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    color: var(--brand-500); font-weight: 500; margin-bottom: 2rem;
}

/* ── Alerta de print na tela de resultado ── */
.aa-print-alert {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: var(--brand-50);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    line-height: 1.7;
    text-align: center;
    margin: 0.75rem 0 1rem;
}
.aa-print-alert strong {
    color: #C6A664;
}
/* Mensagem de retorno 24h */
.aa-retorno-msg {
    max-width: 32rem; margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, #fdf6ee 0%, #fef9f4 100%);
    border: 1.5px solid #e8c97a;
    border-radius: 1rem; padding: 1.25rem 1.5rem;
    text-align: center;
}
.aa-retorno-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.aa-retorno-msg p {
    font-size: 0.88rem; line-height: 1.65;
    color: #6b4c1a; margin: 0; font-weight: 400;
}
@media print { .aa-retorno-msg { display: none !important; } }
.aa-chart-card {
    max-width: 36rem; margin: 0 auto 3rem;
    background: #fff; border-radius: 1.5rem; padding: 2rem;
    border: 1px solid var(--brand-50); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.aa-chart-canvas-wrap { width: 100%; height: 18rem; }
.aa-result-main { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.aa-section {
    background: #fff; padding: 2.5rem; border-radius: 1.5rem; margin-bottom: 3rem;
    border: 1px solid var(--brand-100); box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.aa-ess-risk-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
.aa-ess-box { background: var(--brand-50); padding: 2rem; border-radius: 1rem; }
.aa-risk-box { background: var(--stone-50); padding: 2rem; border-radius: 1rem; }
.aa-box-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; display: block; margin-bottom: 0.75rem; }
.aa-ess-box .aa-box-label { color: var(--brand-400); }
.aa-risk-box .aa-box-label { color: var(--neutral-400); }
.aa-ess-box p, .aa-risk-box p {
    font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.6;
    white-space: pre-line; text-align: justify;
}
.aa-ess-box p { color: var(--brand-700); }
.aa-risk-box p { color: var(--neutral-700); }
.aa-prose { color: var(--neutral-700); font-size: 1.125rem; line-height: 1.7; font-weight: 300; text-align: justify; }
.aa-prose p { margin-bottom: 1.5rem; }

.aa-sexual-section { padding: 2.5rem; border-radius: 1.5rem; margin-bottom: 3rem; border: 1px solid var(--brand-100); }
.aa-sexual-green { background: rgba(236,253,245,0.5); border-color: var(--emerald-100); }
.aa-sexual-default { background: var(--brand-50); border-color: var(--brand-100); }
.aa-sexual-title { font-family: var(--font-serif); font-size: 1.875rem; color: var(--neutral-850); margin-bottom: 2rem; }

.aa-lock-band {
    width: 100%; background: var(--brand-500); padding: 1rem 1.5rem; margin: 1.5rem 0;
    border-radius: 0.375rem; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border: 1px solid var(--brand-600);
}
.aa-lock-band p { color: var(--brand-50); font-size: 0.8125rem; font-weight: 800; text-align: center; letter-spacing: 0.1em; text-transform: uppercase; }

.aa-insight-section {
    background: #fff; padding: 3rem; border-radius: 1.5rem; margin-bottom: 3rem;
    border: 1px solid var(--brand-50); text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    font-style: italic; font-size: clamp(1.25rem, 3vw, 1.5rem); font-family: var(--font-serif);
    color: var(--neutral-700); line-height: 1.6;
}

.aa-book-section {
    background: var(--stone-100); border-radius: 1.5rem; padding: 2.5rem; border: 1px solid var(--brand-100);
    margin-bottom: 5rem; display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); position: relative; overflow: hidden;
}
.aa-book-content { flex: 1; text-align: center; }
.aa-book-content h3 { font-size: 1.875rem; font-family: var(--font-serif); color: var(--brand-700); margin-bottom: 1.5rem; line-height: 1.2; }
.aa-book-content p { color: var(--neutral-600); font-weight: 300; line-height: 1.7; margin-bottom: 2rem; text-align: justify; }
.aa-book-cover {
    width: 12rem; height: 16rem; background-color: #1e1e1e; border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); display: flex; flex-direction: column;
    align-items: center; justify-content: space-between; padding: 1.5rem;
    border-left: 4px solid var(--brand-400); flex-shrink: 0; transform: rotate(2deg);
}
.aa-book-cover h2 { color: #fff; font-family: var(--font-serif); font-size: 1.5rem; line-height: 0.9; margin-bottom: 0.5rem; text-align: center; }
.aa-book-cover .author { color: var(--brand-400); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }

.aa-actions { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 0 1rem; max-width: 32rem; margin: 0 auto 3rem; }

/* ══════════════════════════════════════════════════════════
   MODAL (privacidade / termos)
══════════════════════════════════════════════════════════ */
.aa-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 100;
    align-items: center; justify-content: center; padding: 1.5rem;
    background: rgba(41,37,36,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.aa-modal-overlay.active { display: flex; animation: aaFadeIn 0.3s ease both; }
.aa-modal {
    background: #fff; width: 100%; max-width: 32rem; border-radius: 1.5rem; padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 1px solid var(--brand-50);
    overflow-y: auto; max-height: 90vh; animation: aaSlideUp 0.4s ease both;
}
.aa-modal h3 { font-size: 1.5rem; font-family: var(--font-serif); color: var(--brand-700); margin-bottom: 1.5rem; }
.aa-modal-body { color: var(--neutral-600); font-weight: 300; line-height: 1.7; margin-bottom: 2.5rem; font-size: 0.875rem; white-space: pre-line; text-align: justify; }

/* ══════════════════════════════════════════════════════════
   RODAPÉ LEGAL
══════════════════════════════════════════════════════════ */
.aa-legal-footer { width: 100%; margin-top: auto; }
.aa-legal-notice { background: var(--brand-500); width: 100%; padding: 1.25rem 1.5rem; }
.aa-legal-notice p {
    max-width: 56rem; margin: 0 auto; text-align: center;
    font-size: 0.75rem; color: var(--brand-50); font-weight: 300; line-height: 1.6; letter-spacing: 0.025em;
}
.aa-legal-links { width: 100%; padding: 0.75rem 0; display: flex; justify-content: center; gap: 1.5rem; background: rgba(250,248,245,0.5); }
.aa-legal-links button {
    background: none; border: none; font-size: 0.625rem; color: var(--neutral-400);
    transition: color 0.2s ease; text-underline-offset: 4px;
}
.aa-legal-links button:hover { color: var(--brand-500); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .aa-gender-grid { grid-template-columns: 1fr 1fr; }
    .aa-ess-risk-grid { grid-template-columns: 1fr 1fr; }
    .aa-book-section { flex-direction: row; }
    .aa-book-content { text-align: left; }
    .aa-section { padding: 4rem; }
    .aa-sexual-section { padding: 4rem; }
}

/* ══════════════════════════════════════════════════════════
   STORIES — botão circular + viewer (imagens e vídeos)
══════════════════════════════════════════════════════════ */
.aa-story-circle {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 2rem; -webkit-tap-highlight-color: transparent;
    animation: aaStoryFloat 3s ease-in-out infinite;
    position: relative;
}
@keyframes aaStoryFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.aa-story-circle-ring {
    width: 210px; height: 210px; border-radius: 50%;
    padding: 6px; display: flex; align-items: center; justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(122,30,43,0.3);
}
/* SVG ring overlay for dashed rotating colored ring */
.aa-story-circle-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 7px dashed #fff;
    animation: aaRingDashRotate 4s linear infinite, aaRingDashColor 9s linear infinite;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 4;
}
@keyframes aaRingDashRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes aaRingDashColor {
    0%, 32%   { border-color: #ffffff; }
    33%, 65%  { border-color: #E8C97A; }
    66%, 100% { border-color: #FF85B3; }
}
/* Static background for the ring container */
.aa-story-circle-ring {
    background: var(--brand-700);
}
.aa-story-circle-inner {
    width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 50%;
    background: var(--brand-100) center/cover no-repeat;
    border: 5px solid var(--brand-50);
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 6px; left: 6px;
    overflow: hidden;
}
.aa-story-circle-inner:not(.has-img)::before { content: '\25B6'; color: var(--brand-500); font-size: 2.6rem; }
.aa-story-circle-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 6px;
    background: var(--story-btn-intro, #C6A664); color: #4A1F26;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    z-index: 5; white-space: nowrap;
}
.aa-story-circle-label::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #7A1E2B; animation: aaPulse 1.6s infinite; flex-shrink: 0;
}
/* Botão de stories — tela de resultado */
.aa-story-circle-result .aa-story-circle-label {
    background: var(--story-btn-result, #C6A664);
}
@keyframes aaPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
/* "VEJA OS STORIES" title above circle */
.aa-story-circle-top-label {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(122,30,43,0.3);
    text-align: center; margin-bottom: 0.3rem; display: block;
}

/* Stories no resultado: centraliza o botão */
.aa-story-circle-result { margin: 0 auto 2.5rem; }

@media (min-width: 480px) {
    .aa-story-circle-ring { width: 230px; height: 230px; }
}

.aa-start-wait {
    margin-top: 1.5rem; font-size: 0.8rem; color: var(--neutral-400);
    font-style: italic; min-height: 1.2em;
}

/* Overlay do viewer */
.aa-stories-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,0.94);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.aa-stories-overlay.open { opacity: 1; visibility: visible; pointer-events: all; }
.aa-stories-box {
    position: relative; width: 100%; max-width: 440px;
    height: 100vh; height: 100dvh; background: #000;
    display: flex; flex-direction: column; overflow: hidden;
}
.aa-stories-progress { display: flex; gap: 4px; padding: 12px 12px 6px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.aa-stories-progress-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.3); overflow: hidden; }
.aa-stories-progress-fill { height: 100%; width: 0; background: #fff; border-radius: 2px; }
.aa-stories-progress-bar.done .aa-stories-progress-fill { width: 100%; }
.aa-stories-progress-bar.active .aa-stories-progress-fill { animation: aaStoryFill 5s linear forwards; }
/* Vídeos não têm barra animada por tempo (avançam no toque) */
.aa-stories-progress-bar.active[data-type="youtube"] .aa-stories-progress-fill { animation: none; width: 40%; opacity: 0.7; }
@keyframes aaStoryFill { from { width: 0; } to { width: 100%; } }

.aa-stories-top {
    position: absolute; top: 22px; left: 0; right: 0; z-index: 11;
    display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.aa-stories-author { display: flex; align-items: center; gap: 9px; }
.aa-stories-author-av {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand-400) center/cover no-repeat; border: 2px solid var(--brand-400);
    display: inline-block;
}
.aa-stories-author-nm { font-size: 0.82rem; font-weight: 700; color: #fff; }
.aa-stories-close {
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.15); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.aa-story-slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: #000; }
.aa-story-slide.active { display: flex; }
.aa-story-slide img { width: 100%; height: 100%; object-fit: cover; }
.aa-story-video { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.aa-story-video iframe { width: 100%; height: 100%; border: 0; }
.aa-story-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 20px 32px; z-index: 7;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.aa-story-caption-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.aa-story-caption-desc { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.5; }
/* Story textual sem imagem */
.aa-story-bg-text {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand-500) 60%, #4A1F26 100%);
    position: absolute; inset: 0;
}
.aa-story-caption-text-only {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.75rem;
    text-align: center;
    background: none;
}
.aa-story-caption-text-only .aa-story-caption-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-style: italic;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    font-weight: 500;
}
.aa-story-caption-text-only .aa-story-caption-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,.88);
    line-height: 1.65;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
    max-width: 20rem;
}
.aa-story-nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 8; cursor: pointer; }
.aa-story-nav-prev { left: 0; }
.aa-story-nav-next { right: 0; }
/* Sobre vídeos, deixa o centro livre para os controles do player */
.aa-story-slide:has(.aa-story-video) ~ .aa-story-nav { width: 18%; }

/* ══════════════════════════════════════════════════════════
   IMPRESSÃO / PDF — mostra apenas o relatório dedicado (#aa-report)
══════════════════════════════════════════════════════════ */
.aa-prose-full { display: none; }
#aa-report { display: none; }

@media print {
    /* Esconde a interface do app, mantém apenas o relatório. */
    .aa-wrap,
    .aa-modal-overlay,
    .aa-stories-overlay,
    .aa-story-circle { display: none !important; }

    #aa-report {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }
    html, body, #page, #content {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        display: block !important;
    }
    @page { margin: 16mm 14mm 18mm 14mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .aa-page-break { page-break-before: always; }
    .aa-report-section { page-break-inside: avoid; }
}

/* ── Estilos do relatório (usados na impressão) ── */

/* Rodapé de página — running element via CSS Paged Media */
.aa-report-page-footer {
    position: running(pageFooter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.62rem;
    color: #888;
    padding: 0.35rem 0;
    border-top: 1px solid #E5DDD5;
    width: 100%;
}
.aa-rpf-site  { text-align: left;   flex: 1; }
.aa-rpf-date  { text-align: center; flex: 1; }
.aa-rpf-name  { text-align: right;  flex: 1; }

@media print {
    /* Ativa rodapé de página nos @page (Chromium/Edge) */
    @page {
        margin: 16mm 14mm 18mm 14mm;
        @bottom-left   { content: element(pageFooterLeft); }
        @bottom-center { content: element(pageFooterCenter); }
        @bottom-right  { content: element(pageFooterRight); }
    }
    /* Fallback: torna o div visível no final do documento quando @page running não é suportado */
    .aa-report-page-footer {
        display: block !important;
        position: relative !important;
        margin-top: 1.5rem;
        padding-top: .5rem;
        border-top: 1px solid #E5DDD5;
        display: flex !important;
    }
}

.aa-report-head {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: none;
}
.aa-report-h1 {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    color: var(--brand-500);
    margin: 0.75rem 0 0.25rem;
    letter-spacing: 0.02em;
}
.aa-report-meta {
    font-size: 0.8rem;
    color: var(--neutral-600);
    margin-top: 0.5rem;
    line-height: 1.6;
}
.aa-report-meta strong { color: var(--brand-700); }

/* Botão Área Confidencial dentro do PDF */
.aa-report-cta-btn {
    display: inline-block;
    background: #7A1E2B;
    color: #FAF8F5 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.7rem 1.75rem;
    border-radius: 6px;
    text-align: center;
}

.aa-report-section { margin-bottom: 1.75rem; }
.aa-report-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand-400); display: block; margin-bottom: 0.4rem; }
.aa-report-profile-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brand-700); margin-bottom: 0.75rem; }
.aa-report-section p { font-size: 0.95rem; line-height: 1.65; color: var(--neutral-850); text-align: justify; margin-bottom: 0.75rem; white-space: pre-line; }
.aa-report-scores { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.aa-report-scores td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--brand-100); font-size: 0.85rem; color: var(--neutral-700); }
.aa-report-scores td:last-child { text-align: right; font-weight: 700; color: var(--brand-600); }
.aa-report-foot {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--brand-200);
    font-size: 0.7rem;
    color: var(--neutral-400);
    text-align: center;
    line-height: 1.6;
}


/* ══ v3: INTRO PREMIUM ══════════════════════════════════ */
.aa-title-hero {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 7vw, 4.5rem);
    color: var(--brand-500);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08em;
    text-align: center;
}
.aa-title-line1 {
    font-size: 0.68em;
    color: var(--neutral-500);
    font-weight: 400;
    letter-spacing: .02em;
    font-family: var(--font-body);
}
.aa-title-line2 {
    font-size: 1em;
    color: var(--brand-500);
}
.aa-title-line3 {
    font-size: 0.78em;
    color: var(--brand-400);
    font-style: italic;
}

/* ══ v3: HOOK AFETIVO ══════════════════════════════════ */
.aa-hook-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0;
}
.aa-hook-media {
    width: 100%;
    max-height: 45vh;
    overflow: hidden;
    background: var(--brand-50);
    flex-shrink: 0;
    margin-top: 1.5rem;
    border-radius: 1rem;
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}
.aa-hook-media img {
    width: 100%;
    height: 45vh;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}
.aa-hook-media-yt {
    position: relative;
    width: 100%;
    padding-bottom: 45vh;
    height: 0;
}
.aa-hook-media-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.aa-hook-content {
    padding: 2.5rem 1.5rem 3rem;
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aa-hook-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .35em;
    color: var(--brand-400);
    margin-bottom: .85rem;
}
.aa-hook-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    color: var(--brand-700);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}
.aa-hook-title span { color: var(--brand-500); }
.aa-hook-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--neutral-600);
    font-weight: 300;
    margin-bottom: 1rem;
    text-align: justify;
    text-align-last: center;
}
.aa-hook-sub {
    font-size: 0.8125rem;
    color: var(--neutral-400);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ══ v3: TEXTO JUSTIFICADO GERAL ═══════════════════════ */
.aa-result-main p,
.aa-ess-box p,
.aa-risk-box p,
.aa-prose,
.aa-prose p,
.aa-interstitial-body p,
.aa-transition-quote,
.aa-hook-body,
.aa-legal-notice p {
    text-align: justify;
    text-align-last: left;
}
/* Manter centralizado onde precisa */
.aa-result-header,
.aa-center-screen,
.aa-eyebrow,
.aa-box-label,
.aa-result-title,
.aa-retorno-msg,
.aa-lock-band p {
    text-align: center;
}

/* ══ v3: DEPOIMENTO POR PERFIL ═════════════════════════ */
.aa-testimonial-block {
    margin: 2.5rem 0;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, var(--brand-50) 0%, #fdf8f0 100%);
    border-left: 3px solid var(--brand-400);
    border-radius: 0 1rem 1rem 0;
}
.aa-testi-quote {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    font-style: italic;
    color: var(--brand-700);
    line-height: 1.7;
    margin-bottom: .75rem;
    text-align: justify;
    text-align-last: left;
}
.aa-testi-quote::before { content: '\201C'; margin-right: .15em; }
.aa-testi-quote::after  { content: '\201D'; margin-left: .15em; }
.aa-testi-meta {
    font-size: 0.75rem;
    color: var(--neutral-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ══ v3: ÁREA DA CLIENTE ═══════════════════════════════ */
.aa-cliente-area {
    margin: 3rem 0;
    padding: 2rem 1.5rem;
    background: var(--brand-50);
    border-radius: 1.5rem;
}
.aa-cliente-header { margin-bottom: 1.5rem; }
.aa-cliente-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--brand-700);
    font-weight: 500;
    margin-top: .3rem;
}
.aa-cliente-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 480px) { .aa-cliente-grid { grid-template-columns: 1fr; } }
.aa-cliente-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: left;
    border: 1px solid rgba(122,30,43,.1);
}
.aa-cliente-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.aa-cliente-card h4 {
    font-size: .875rem;
    font-weight: 600;
    color: var(--brand-700);
    margin-bottom: .4rem;
}
.aa-cliente-card p {
    font-size: .8rem;
    color: var(--neutral-600);
    line-height: 1.5;
    margin-bottom: .75rem;
    text-align: left;
}
.aa-btn-outline {
    background: transparent;
    border: 1.5px solid var(--brand-400);
    color: var(--brand-500);
    padding: .4rem .9rem;
    border-radius: .5rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
}
.aa-btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.aa-historico { margin-top: 1.5rem; }
.aa-historico-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--brand-700);
    margin-bottom: 1rem;
}
.aa-historico-vazio { font-size: .85rem; color: var(--neutral-400); font-style: italic; }
.aa-historico-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: #fff;
    border-radius: .75rem;
    margin-bottom: .5rem;
    border: 1px solid rgba(122,30,43,.08);
}
.aa-historico-info strong { display: block; font-size: .875rem; color: var(--brand-700); }
.aa-historico-info span  { font-size: .75rem; color: var(--neutral-400); }
.aa-mini-badge {
    background: var(--brand-50);
    color: var(--brand-500);
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 100px;
    border: 1px solid rgba(122,30,43,.15);
}

/* ══ v3: CADERNO DE REFLEXÕES ══════════════════════════ */
.aa-notes-modal { max-width: 36rem; }
.aa-notes-sub { font-size: .82rem; color: var(--neutral-400); margin-bottom: 1rem; }
.aa-notes-textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    border: 1.5px solid var(--brand-100);
    border-radius: .75rem;
    padding: .85rem 1rem;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--neutral-700);
    line-height: 1.6;
    outline: none;
}
.aa-notes-textarea:focus { border-color: var(--brand-400); }
.aa-notes-status { font-size: .75rem; color: var(--brand-400); margin-top: .5rem; display: block; }
.aa-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--neutral-200);
    color: var(--neutral-500);
    cursor: pointer;
    border-radius: .75rem;
    font-family: var(--font-body);
    font-weight: 500;
    padding: .65rem 1.25rem;
}

/* ══ v3: PDF PREMIUM ══════════════════════════════════ */
.aa-report-brand {
    margin-bottom: 1.5rem;
}
.aa-report-h1 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--brand-500);
    margin-bottom: .5rem;
}
.aa-report-gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #C6A664, transparent);
    margin: 1rem auto;
    max-width: 200px;
}
.aa-report-section p,
.aa-report-section div {
    text-align: justify;
    text-align-last: left;
}

/* ══ v3: ALERTA LEGAL ATUALIZADO ═══════════════════════ */
.aa-legal-notice p {
    font-size: 0.72rem;
    line-height: 1.65;
    text-align: justify;
    text-align-last: center;
}

/* ══════════════════════════════════════════════════════════
   NOVAS FUNCIONALIDADES v3
   1. Painel da Cliente · 2. Evolução · 3. PDF Premium
   4. Consentimento · 5. WhatsApp auto · 6. Modo Mentor
   7. Stories por Perfil · 8. Depoimentos no Resultado
══════════════════════════════════════════════════════════ */

/* ── 1. PAINEL DA CLIENTE ───────────────────────────────── */
.aa-painel-screen { background: var(--brand-50); min-height: 100vh; }
.aa-painel-header {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    padding: 2rem 1.5rem 3rem;
    text-align: center; color: var(--brand-50);
}
.aa-painel-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255,255,255,.15) center/cover no-repeat;
    border: 2.5px solid rgba(255,255,255,.35);
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-size: 1.75rem; color: #fff;
}
.aa-painel-name {
    font-family: var(--font-serif); font-size: 1.5rem;
    font-weight: 500; margin-bottom: .25rem;
}
.aa-painel-sub { font-size: .8rem; opacity: .65; }
.aa-painel-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .85rem; padding: 1.5rem;
    margin-top: -1.5rem;
}
.aa-painel-card {
    background: #fff; border-radius: 1rem;
    padding: 1.1rem; box-shadow: 0 2px 16px rgba(122,30,43,.08);
    text-align: center; cursor: pointer;
    transition: transform .18s, box-shadow .18s;
    border: 1.5px solid transparent;
}
.aa-painel-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(122,30,43,.14);
    border-color: var(--brand-400);
}
.aa-painel-card-icon { font-size: 1.75rem; margin-bottom: .5rem; display: block; }
.aa-painel-card-label {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--brand-500);
}
.aa-painel-card-desc { font-size: .72rem; color: var(--neutral-600); margin-top: .28rem; }
/* Eixos de posicionamento no painel */
.aa-painel-eixos { padding: 0 1.5rem 1.5rem; }
.aa-painel-eixos-title {
    font-size: .62rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .2em; color: var(--neutral-400);
    margin-bottom: .85rem; text-align: center;
}
.aa-painel-eixo { margin-bottom: .9rem; }
.aa-painel-eixo-row { display: flex; justify-content: space-between; margin-bottom: .28rem; }
.aa-painel-eixo-name { font-size: .8rem; font-weight: 600; color: var(--neutral-700); }
.aa-painel-eixo-val { font-size: .8rem; color: var(--brand-500); font-weight: 700; }
.aa-painel-bar { height: 6px; background: var(--brand-100); border-radius: 100px; overflow: hidden; }
.aa-painel-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--brand-500)); border-radius: 100px; transition: width .6s ease; }
/* Notas reflexivas no painel */
.aa-painel-notas { padding: 0 1.5rem 2rem; }
.aa-painel-nota-form textarea {
    width: 100%; min-height: 80px; border: 1.5px solid var(--brand-200);
    border-radius: .75rem; padding: .75rem 1rem;
    font-family: var(--font-sans); font-size: .9rem;
    color: var(--neutral-850); resize: vertical;
    background: #fff; outline: none;
}
.aa-painel-nota-form textarea:focus { border-color: var(--brand-400); }
.aa-painel-nota-saved {
    font-size: .75rem; color: var(--neutral-400); text-align: right;
    margin-top: .3rem; height: 1em;
}

/* ── 2. EVOLUÇÃO ────────────────────────────────────────── */
.aa-evolucao-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--emerald-50); border: 1px solid var(--emerald-100);
    color: #1a7f37; border-radius: 100px;
    padding: .35rem .85rem; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    margin-bottom: 1.25rem;
}
.aa-evolucao-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.aa-evolucao-card {
    background: #fff; border-radius: .85rem;
    padding: .9rem; border: 1.5px solid var(--brand-100);
    text-align: center;
}
.aa-evolucao-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--neutral-400); margin-bottom: .35rem; }
.aa-evolucao-valores { display: flex; align-items: baseline; justify-content: center; gap: .3rem; }
.aa-evolucao-antes { font-size: 1rem; color: var(--neutral-400); }
.aa-evolucao-depois { font-size: 1.5rem; font-family: var(--font-serif); font-weight: 700; color: var(--brand-500); }
.aa-evolucao-seta { font-size: .75rem; color: #1a7f37; }

/* ── 3. PDF PREMIUM ─────────────────────────────────────── */
.aa-pdf-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: var(--brand-50); border: none; border-radius: .75rem;
    padding: .9rem 1.75rem; font-family: var(--font-sans);
    font-weight: 700; font-size: .82rem; cursor: pointer;
    letter-spacing: .06em; text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(122,30,43,.28);
    transition: transform .18s, box-shadow .18s;
    text-decoration: none;
}
.aa-pdf-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(122,30,43,.38); }
.aa-pdf-btn-gold {
    background: linear-gradient(135deg, var(--brand-400), #b8924a);
    color: var(--brand-900); box-shadow: 0 4px 16px rgba(198,166,100,.35);
}

/* ── 4. CONSENTIMENTO ÍNTIMO (elegante) ─────────────────── */
.aa-consent-card {
    background: #fff; border-radius: 1.25rem;
    padding: 2rem 1.5rem; margin: 0 auto;
    max-width: 34rem; box-shadow: 0 2px 20px rgba(122,30,43,.08);
    border-top: 3px solid var(--brand-400);
}
.aa-consent-icon { font-size: 2rem; text-align: center; margin-bottom: 1rem; }
.aa-consent-title {
    font-family: var(--font-serif); font-size: 1.5rem;
    color: var(--brand-700); text-align: center; margin-bottom: 1.25rem;
}
.aa-consent-body {
    font-size: .95rem; line-height: 1.75;
    color: var(--neutral-600); text-align: justify;
    hyphens: auto; margin-bottom: 1.5rem;
}
.aa-consent-check {
    display: flex; align-items: flex-start; gap: .75rem;
    background: var(--brand-50); border-radius: .75rem;
    padding: .85rem; margin-bottom: 1.5rem;
    border: 1.5px solid var(--brand-100); cursor: pointer;
}
.aa-consent-check input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0;
    accent-color: var(--brand-500); margin-top: 2px;
}
.aa-consent-check-label { font-size: .85rem; color: var(--neutral-700); line-height: 1.5; }

/* ── 6. MODO MENTOR ─────────────────────────────────────── */
.aa-mentor-wrap {
    max-width: 960px; margin: 0 auto;
    padding: 1.5rem; background: var(--brand-50); min-height: 100vh;
}
.aa-mentor-header {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    border-radius: 1.25rem; padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; color: var(--brand-50);
}
.aa-mentor-title { font-family: var(--font-serif); font-size: 1.5rem; }
.aa-mentor-stats { display: flex; gap: 1.5rem; }
.aa-mentor-stat { text-align: center; }
.aa-mentor-stat .n { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; }
.aa-mentor-stat .l { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.aa-mentor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.aa-mentor-card {
    background: #fff; border-radius: 1rem;
    padding: 1.25rem; box-shadow: 0 2px 12px rgba(122,30,43,.07);
    border-left: 4px solid var(--brand-400);
    transition: transform .18s;
}
.aa-mentor-card:hover { transform: translateY(-2px); }
.aa-mentor-card-name { font-family: var(--font-serif); font-size: 1.05rem; color: var(--brand-700); margin-bottom: .28rem; }
.aa-mentor-card-profile { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-400); margin-bottom: .75rem; }
.aa-mentor-mini-bars { margin-bottom: .85rem; }
.aa-mentor-mini-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: .28rem; }
.aa-mentor-mini-bar span:first-child { font-size: .68rem; color: var(--neutral-400); width: 80px; flex-shrink: 0; }
.aa-mentor-mini-bar .track { flex: 1; height: 4px; background: var(--brand-100); border-radius: 100px; overflow: hidden; }
.aa-mentor-mini-bar .fill { height: 100%; background: var(--brand-400); border-radius: 100px; }
.aa-mentor-mini-bar span:last-child { font-size: .68rem; font-weight: 700; color: var(--brand-500); width: 28px; text-align: right; flex-shrink: 0; }
.aa-mentor-retorno { width: 100%; border: 1.5px solid var(--brand-200); border-radius: .65rem; padding: .65rem .85rem; font-family: var(--font-sans); font-size: .85rem; resize: vertical; min-height: 68px; color: var(--neutral-850); outline: none; }
.aa-mentor-retorno:focus { border-color: var(--brand-400); }
.aa-mentor-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; gap: .5rem; }
.aa-mentor-badge { display: inline-block; padding: .2rem .65rem; border-radius: 100px; font-size: .62rem; font-weight: 700; }
.aa-mentor-badge-novo { background: var(--brand-50); color: var(--brand-500); border: 1px solid var(--brand-200); }
.aa-mentor-badge-respondido { background: var(--emerald-50); color: #1a7f37; }
.aa-mentor-send-btn {
    background: var(--brand-500); color: var(--brand-50);
    border: none; border-radius: .65rem; padding: .45rem .9rem;
    font-size: .75rem; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.aa-mentor-send-btn:hover { background: var(--brand-700); }
.aa-mentor-send-btn.sent { background: #1a7f37; }

/* ── 7. DEPOIMENTOS NO RESULTADO ────────────────────────── */
.aa-testemunho {
    background: var(--brand-50); border-radius: 1rem;
    padding: 1.5rem; margin: 1.5rem 0;
    border-left: 3px solid var(--brand-400);
}
.aa-testemunho-quote {
    font-family: var(--font-serif); font-style: italic;
    font-size: 1rem; line-height: 1.7;
    color: var(--brand-700); text-align: justify; hyphens: auto;
    margin-bottom: .85rem;
}
.aa-testemunho-quote::before { content: '\201C'; color: var(--brand-400); font-size: 1.5em; line-height: 0; vertical-align: -0.4em; margin-right: .1em; }
.aa-testemunho-quote::after  { content: '\201D'; color: var(--brand-400); font-size: 1.5em; line-height: 0; vertical-align: -0.4em; margin-left: .1em; }
.aa-testemunho-author { display: flex; align-items: center; gap: .6rem; }
.aa-testemunho-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-200) center/cover no-repeat; font-size: .8rem; display: flex; align-items: center; justify-content: center; color: var(--brand-600); font-weight: 700; flex-shrink: 0; }
.aa-testemunho-info .name { font-size: .82rem; font-weight: 700; color: var(--neutral-700); }
.aa-testemunho-info .meta { font-size: .7rem; color: var(--neutral-400); }

/* ── GERAL: justificação de textos longos ─────────────────── */
.aa-prose, .aa-prose p,
.aa-result-main p:not(.aa-eyebrow):not(.aa-box-label),
.aa-ess-box p, .aa-risk-box p,
.aa-sexual-section p,
.aa-insight-section p,
.aa-transition-quote,
.aa-interstitial-body,
.aa-interstitial-body p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
/* Rodapé legal justificado */
.aa-legal-notice p { text-align: justify; hyphens: auto; }
/* Retorno 24h justificado */
.aa-retorno-msg p { text-align: justify; }

/* ── BADGE "NOVO" no resultado ───────────────────────────── */
.aa-result-tag {
    display: inline-block; background: var(--brand-400);
    color: var(--brand-900); font-size: .6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .12em;
    border-radius: 100px; padding: 2px 9px; margin-left: .5rem;
    vertical-align: middle;
}

/* ── Portal Mulher Rara — Bloco de código de acesso ── */
.aa-portal-acesso {
    max-width: 32rem; margin: 1.5rem auto;
}
.aa-portal-acesso-inner {
    background: linear-gradient(135deg, #4A1F26 0%, #7A1E2B 100%);
    border-radius: 1rem; padding: 1.5rem;
    text-align: center; color: #FAF8F5;
}
.aa-portal-acesso-icon { font-size: 1.75rem; display: block; margin-bottom: .5rem; }
.aa-portal-acesso-label {
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: rgba(255,255,255,.65); margin-bottom: .75rem;
}
.aa-portal-acesso-code {
    display: block; font-family: 'Courier New', monospace;
    font-size: 1.25rem; font-weight: 700; letter-spacing: .15em;
    background: rgba(255,255,255,.12); border-radius: .5rem;
    padding: .6rem 1.25rem; margin: 0 auto .85rem;
    color: #E8C97A; border: 1px solid rgba(255,255,255,.2);
    word-break: break-all;
}
.aa-portal-acesso-sub {
    font-size: .78rem; color: rgba(255,255,255,.65);
    line-height: 1.55; margin-bottom: 1.1rem;
}
.aa-portal-acesso-btn {
    display: inline-block;
    background: #E8C97A; color: #4A1F26;
    border-radius: .65rem; padding: .65rem 1.5rem;
    font-weight: 700; font-size: .82rem; text-decoration: none;
    letter-spacing: .04em; transition: opacity .15s;
}
.aa-portal-acesso-account-alert {
    font-size: 0.78rem;
    color: #C6A664;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.6;
    padding: 0 0.5rem;
}
.aa-portal-acesso-account-alert strong {
    font-weight: 700;
    color: #C6A664;
}
.aa-portal-acesso-btn:hover { opacity: .88; }
@media print { .aa-portal-acesso { display: none !important; } }

/* ── Foto de perfil no painel ── */
/* ── Painel: foto + stories unificado ── */
.aa-painel-photo-stories-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem 0;
    gap: .3rem;
}
/* Botão que é o anel de stories com a foto dentro */
.aa-painel-stories-photo-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Anel animado de stories */
.aa-painel-stories-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        var(--brand-500) 0deg,
        var(--brand-400) 90deg,
        #C6A664 180deg,
        var(--brand-500) 270deg,
        var(--brand-400) 360deg
    );
}
.aa-stories-ring-anim {
    animation: storiesRingRotate 4s linear infinite, storiesRingPulse 2.5s ease-in-out infinite;
}
@keyframes storiesRingRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes storiesRingPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(122,30,43,0); }
    50%     { box-shadow: 0 0 0 5px rgba(122,30,43,0.18); }
}
/* Foto de perfil dentro do anel */
.aa-painel-stories-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--brand-50) center/cover no-repeat;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--brand-600);
    font-style: italic;
}
/* Botão de trocar foto */
.aa-painel-photo-edit {
    position: absolute;
    top: 1.25rem;
    right: calc(50% - 64px);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand-500);
    color: #fff;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    border: 2px solid #fff;
}
/* Label "Stories da [Nome]" */
.aa-painel-stories-label {
    font-size: .62rem;
    color: var(--brand-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .2rem;
}
/* compatibilidade: mantém alias */
.aa-painel-photo-wrap { display: none; }
.aa-painel-photo { display: none; }

/* ══════════════════════════════════════════════════════════
   MOBILE FIRST — otimizações para telas até 430px
══════════════════════════════════════════════════════════ */
@media (max-width: 430px) {

    /* ── Tela inicial: reduz hero title e espaçamentos ── */
    .aa-title-hero {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1.25rem;
    }
    .aa-lead {
        font-size: 0.875rem;
        max-width: 22rem;
        line-height: 1.6;
        margin-bottom: 0.6rem;
    }
    .aa-subtle {
        font-size: 0.75rem;
        max-width: 22rem;
        margin-bottom: 2rem;
    }
    .aa-btn-hero {
        margin-top: 1.5rem;
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    /* ── Story circle menor em mobile ── */
    .aa-story-circle-ring { width: 180px; height: 180px; }

    /* ── Quiz: compacto ── */
    .aa-quiz-wrap { padding: 1.5rem 1rem 2.5rem; }
    .aa-question-text {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
        margin-bottom: 1.25rem;
        max-width: 100%;
    }
    .aa-option { padding: 0.875rem; }
    .aa-option .opt-label { font-size: 0.875rem; }
    .aa-options { gap: 0.5rem; }

    /* ── Greeting compacto ── */
    .aa-greeting { padding: 0.5rem 0 0; }
    .aa-greeting span.greeting-line1 { font-size: 0.55rem; letter-spacing: 0.1em; }
    .aa-greeting span.greeting-line2 { font-size: 0.82rem; letter-spacing: 0.12em; }

    /* ── Separador ── */
    .aa-quiz-separator { margin: 0 auto 1.25rem; }

    /* ── Hook afetivo ── */
    .aa-hook-content { padding: 1.75rem 1.25rem 2.5rem; }
    .aa-hook-title { font-size: clamp(1.25rem, 5vw, 1.875rem); }
    .aa-hook-body { font-size: 0.875rem; }
    .aa-hook-sub { font-size: 0.75rem; }

    /* ── Formulário de cadastro ── */
    .aa-card { padding: 1.75rem 1.25rem; }
    .aa-grid-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* ── Tela de resultado ── */
    .aa-result-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .aa-section { padding: 1.75rem 1.25rem; }
    .aa-chart-card { padding: 1.25rem 1rem; }
    .aa-print-alert { font-size: 0.78rem; }

    /* ── Portal code block ── */
    .aa-portal-acesso-code { font-size: 0.85rem; letter-spacing: 0.06em; word-break: break-all; }

    /* ── Transition / interstitial ── */
    .aa-transition-quote { font-size: 1rem; }
    .aa-hook-wrap { min-height: auto; }

    /* ── Botão principal ── */
    .aa-btn-primary { padding: 0.875rem 1.5rem; font-size: 0.8125rem; }
    .aa-btn-block { width: 100%; }

    /* ── Reflection textarea ── */
    .aa-textarea { font-size: 0.875rem; }
    .aa-reflection label { font-size: 0.65rem; }
}

@media (max-width: 375px) {
    .aa-title-hero { font-size: clamp(1.5rem, 7.5vw, 2rem); }
    .aa-lead { font-size: 0.8125rem; max-width: 22rem; }
    .aa-subtle { font-size: 0.7rem; max-width: 22rem; }
    .aa-story-circle-ring { width: 160px; height: 160px; }
    .aa-question-text { font-size: clamp(1.0625rem, 4.8vw, 1.375rem); }
    .aa-option .opt-label { font-size: 0.8125rem; }
    .aa-card { padding: 1.5rem 1rem; }
    .aa-portal-acesso-code { font-size: 0.875rem; word-break: break-all; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE PREMIUM — telas até 480px (smartphones)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

    /* Tela inicial: textos legíveis, laterais aproveitadas */
    .aa-center-screen { padding: 1.75rem 0.875rem; }
    .aa-title-hero { font-size: clamp(1.875rem, 8.5vw, 2.75rem); margin-bottom: 1rem; }
    .aa-lead { font-size: 1.0625rem !important; line-height: 1.6; margin-bottom: 0.6rem; max-width: 100%; padding: 0 0.25rem; }
    .aa-subtle { font-size: 0.9375rem !important; line-height: 1.6; margin-bottom: 1.75rem; max-width: 100%; padding: 0 0.25rem; }
    .aa-btn-hero { margin-top: 1.25rem; font-size: 1rem; padding: 0.9rem 1rem; width: 100%; }

    /* Story circle */
    .aa-story-circle-ring { width: 185px; height: 185px; }

    /* Quiz */
    .aa-quiz-wrap { padding: 1.25rem 0.875rem 1.75rem; }
    .aa-question-text { font-size: clamp(1.25rem, 5.5vw, 1.625rem) !important; margin-bottom: 1rem; max-width: 100%; }
    .aa-option { padding: 0.875rem; }
    .aa-option .opt-label { font-size: 1rem !important; font-weight: 400; line-height: 1.4; }
    .aa-options { gap: 0.5rem; }

    /* Greeting */
    .aa-greeting { padding: 0.4rem 0 0; }
    .aa-greeting span.greeting-line1 { font-size: 0.6rem; letter-spacing: 0.1em; }
    .aa-greeting span.greeting-line2 { font-size: 0.875rem; letter-spacing: 0.12em; }
    .aa-quiz-separator { margin: 0 auto 1rem; }

    /* Reflection: sem espaço grande entre opções e textarea */
    .aa-reflection { padding-top: 0.625rem !important; margin-top: 0.625rem !important; margin-bottom: 1rem !important; border-top: none !important; }
    .aa-reflection label { font-size: 0.625rem; }
    .aa-textarea { font-size: 0.9375rem; min-height: 72px; padding: 0.75rem; }

    /* Hook afetivo */
    .aa-hook-content { padding: 1.5rem 1rem 2rem; }
    .aa-hook-title { font-size: clamp(1.25rem, 5.5vw, 1.875rem); }
    .aa-hook-body { font-size: 0.9375rem; line-height: 1.65; }
    .aa-hook-sub { font-size: 0.8125rem; }
    .aa-hook-wrap { min-height: auto; }

    /* Formulário */
    .aa-card { padding: 1.5rem 1rem; }
    .aa-grid-2 { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    /* Resultado */
    .aa-result-title { font-size: clamp(1.875rem, 7.5vw, 2.75rem); }
    .aa-result-header { padding: 3.5rem 1rem 3rem; }
    .aa-section { padding: 1.5rem 1rem; }
    .aa-chart-card { padding: 1.25rem 0.875rem; }
    .aa-print-alert { font-size: 0.875rem; line-height: 1.65; }
    .aa-result-main { padding: 0 0.875rem; }

    /* Portal code: sem quebra de linha */
    .aa-portal-acesso-code { font-size: 0.8125rem !important; letter-spacing: 0.04em !important; word-break: break-all; padding: 0.75rem 0.5rem; }

    /* Transição */
    .aa-transition-quote { font-size: 1.0625rem; }
    .aa-interstitial-body { font-size: 1rem; }

    /* Botões */
    .aa-btn-primary { padding: 0.875rem 1.25rem; font-size: 0.9375rem; }
    .aa-btn-block { width: 100%; }
}

@media (max-width: 390px) {
    .aa-center-screen { padding: 1.5rem 0.75rem; }
    .aa-title-hero { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .aa-lead { font-size: 1rem !important; }
    .aa-subtle { font-size: 0.875rem !important; }
    .aa-story-circle-ring { width: 165px; height: 165px; }
    .aa-question-text { font-size: clamp(1.1875rem, 5.5vw, 1.5rem) !important; }
    .aa-option .opt-label { font-size: 0.9375rem !important; }
    .aa-card { padding: 1.25rem 0.875rem; }
    .aa-portal-acesso-code { font-size: 0.75rem !important; }
    .aa-hook-body { font-size: 0.9rem; }
}
