/* ==============================================
   RPGzando — Grimoire Design System
   Estética: Grimório Antigo / Dark Fantasy RPG
   Paleta: Pergaminho Sépia + Tinta Escura + Vinho
   ============================================== */

/* ---- VARIÁVEIS ---- */
:root {
    --parchment: #e8dcc8;
    --parchment-dark: #d9cbb0;
    --parchment-panel: #f0e8d5;
    --ink: #28201a;
    /* tinta escura principal */
    --ink-soft: #4a3c30;
    /* parágrafos e textos secundários */
    --ink-muted: #7a6a58;
    /* legendas, muted text */
    --blood: #7a1c1c;
    /* vermelho sangue / vinho — CTAs */
    --blood-dark: #5c1414;
    /* hover dos CTAs */
    --gold: #9a7c3f;
    /* ouro envelhecido — acentos */
    --gold-light: #c8a86a;
    --border: #a8926e;
    /* bordas e linhas */

    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'EB Garamond', 'Playfair Display', Georgia, serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --max-w: 760px;
    --pad-x: 2.5rem;
    --pad-y: 3.5rem;
}

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

html {
    scroll-behavior: smooth;
}

/* ---- CORPO / PERGAMINHO ---- */
body {
    background-color: var(--parchment);
    /* textura de papel envelhecido via noise SVG + vinheta radial */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at center, transparent 55%, rgba(60, 40, 20, 0.18) 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.18rem;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* ---- MARCAS D'ÁGUA ---- */
.watermark {
    position: fixed;
    width: 500px;
    height: 500px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

.watermark-tl {
    top: -80px;
    left: -80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='85' fill='none' stroke='%2328201a' stroke-width='2'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%2328201a' stroke-width='1'/%3E%3Cpath d='M100 15 L100 185 M15 100 L185 100 M36 36 L164 164 M164 36 L36 164' stroke='%2328201a' stroke-width='1'/%3E%3Cpolygon points='100,30 115,70 155,70 123,93 135,133 100,110 65,133 77,93 45,70 85,70' fill='none' stroke='%2328201a' stroke-width='1.5'/%3E%3C/svg%3E");
    transform: rotate(10deg);
}

.watermark-br {
    bottom: -80px;
    right: -80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M100 10 C 140 40, 190 60, 190 100 C 190 140, 140 160, 100 190 C 60 160, 10 140, 10 100 C 10 60, 60 40, 100 10' fill='none' stroke='%2328201a' stroke-width='1.5'/%3E%3Cpath d='M100 30 C 130 50, 170 70, 170 100 C 170 130, 130 150, 100 170 C 70 150, 30 130, 30 100 C 30 70, 70 50, 100 30' fill='none' stroke='%2328201a' stroke-width='1'/%3E%3C/svg%3E");
    transform: rotate(-15deg);
}

/* ---- BANNER DE URGÊNCIA ---- */
.top-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--blood-dark);
    color: var(--parchment);
    text-align: center;
    padding: 0.6rem var(--pad-x);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--blood);
}

/* ---- GRIMÓRIO (CONTAINER) ---- */
.grimoire {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad-x) 4rem;
    /* sutil borda lateral de livro antigo */
    border-left: 1px solid rgba(100, 80, 50, 0.18);
    border-right: 1px solid rgba(100, 80, 50, 0.18);
    background: rgba(232, 220, 200, 0.25);
}

/* ---- SEÇÕES — FADE-IN ---- */
.section,
.section-rule {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.section.visible,
.section-rule.visible {
    opacity: 1;
    transform: translateY(0);
}

.section {
    padding: var(--pad-y) 0;
}

/* ---- DIVISÓRIAS ORNAMENTAIS ---- */
.section-rule {
    text-align: center;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.35em;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-rule::before,
.section-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border));
}

.section-rule::after {
    background: linear-gradient(to left, transparent, var(--border));
}

.section-rule span {
    flex-shrink: 0;
    color: var(--gold);
}

/* ---- TIPOGRAFIA ---- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 1.4rem;
}

h1 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.01em;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 1.6rem;
    /* ÚNICA DROP CAP — somente na Seção 1 */
}

h2 {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    font-weight: 700;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
    margin-bottom: 1.4rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--blood-dark);
}

p {
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

strong {
    color: var(--ink);
}

/* ---- HERO ---- */
.hero-section {
    padding-top: 4rem;
}

.hero-logo {
    text-align: center;
    margin-bottom: 1.6rem;
}

.hero-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: inline-block;
}

.hero-lead {
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-mockup {
    width: 100%;
    min-height: 280px;
    background: #160f09;
    border: 3px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), 0 6px 30px rgba(0, 0, 0, 0.25);
}

.glow-core {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(154, 124, 63, 0.15) 0%, transparent 70%);
}

.mockup-caption {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    padding: 1.5rem;
    margin: 0;
}

/* TRUST LIST */
.trust-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    margin: 0.5rem auto 0;
    padding: 0;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.trust-list li {
    position: relative;
    padding-left: 1rem;
}

.trust-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ---- BOTÕES CTA ---- */
.cta-primary,
.cta-secondary {
    display: block;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background-color 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

.cta-primary {
    width: 100%;
    max-width: 480px;
    margin: 2rem auto;
    padding: 1.15rem 2rem;
    background-color: var(--blood);
    color: var(--parchment);
    font-size: 1rem;
    border: 2px solid var(--blood-dark);
    box-shadow: 0 0 15px rgba(122, 28, 28, 0.4);
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(122, 28, 28, 0.4);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px rgba(122, 28, 28, 0.8), 0 0 10px rgba(122, 28, 28, 0.5);
        transform: scale(1.02);
    }
}

.cta-primary:hover {
    background-color: var(--blood-dark);
    color: #fff;
    animation: none;
    box-shadow: 0 0 20px rgba(122, 28, 28, 0.9);
    transform: scale(1.02);
}

.cta-secondary {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0;
    background: none;
    color: var(--ink-muted);
    font-size: 0.82rem;
    text-decoration: underline;
    border: none;
}

.cta-secondary:hover {
    color: var(--blood);
}

/* ---- SUB-TÍTULO INTERNO ---- */
.sub-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 700;
    color: var(--ink);
    margin: 3rem 0 1.5rem;
    border: none;
    padding: 0;
}

/* ---- GRID DE CARDS — INFO ---- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

@media (min-width: 600px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background: var(--parchment-panel);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    padding: 1.6rem 1.8rem;
    border-radius: 3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.info-card h4 {
    color: var(--ink);
}

.info-card p {
    margin-bottom: 0;
}

/* ---- BÔNUS ---- */
.bonus-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.bonus-item {
    background: var(--parchment-panel);
    border: 1px solid var(--border);
    border-left: 4px solid var(--blood);
    padding: 1.6rem 2rem;
    border-radius: 3px;
    transition: transform 0.25s ease;
}

.bonus-item:hover {
    transform: translateX(4px);
}

.bonus-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blood);
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--blood);
    padding-bottom: 0.1rem;
}

.bonus-item h4 {
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.bonus-item p {
    margin: 0;
}

/* ---- TIMER ---- */
.timer-wrap {
    text-align: center;
    margin: 1.5rem 0 2.5rem;
    padding: 1.4rem;
    background: var(--parchment-dark);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.timer-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.4rem;
}

.timer-display {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--blood);
    letter-spacing: 0.05em;
    line-height: 1;
}

/* ---- PRICING GRID ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
    align-items: start;
}

@media (min-width: 600px) {
    .pricing-grid {
        grid-template-columns: 2fr 3fr;
        align-items: start;
    }
}

.price-card {
    border-radius: 3px;
    padding: 2.5rem 2.2rem;
    text-align: center;
    position: relative;
}

/* Card Básico */
.price-card--basic {
    background: var(--parchment-panel);
    border: 1px solid var(--border);
}

.price-card--basic h3 {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.price-card--basic .price-value {
    font-size: 2rem;
    color: var(--ink-soft);
}

/* Card Premium */
.price-card--premium {
    background: linear-gradient(170deg, #1a0e07 0%, #2c1a0b 60%, #180c05 100%);
    border: 2px solid var(--gold);
    box-shadow:
        0 0 0 1px rgba(154, 124, 63, 0.25),
        0 12px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 80px rgba(154, 124, 63, 0.04);
}

.price-card--premium h3 {
    color: var(--gold-light);
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
}

.price-card--premium .price-value {
    color: #e8d49a;
    font-size: 2.5rem;
}

.price-card--premium .price-note {
    font-size: 0.82rem;
    color: #8a7a60;
    margin-bottom: 1.5rem;
}

.safe-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 1rem;
    font-family: var(--font-body);
}

.safe-payment--premium {
    color: #8a7a60;
}

.safe-payment span {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-size: 0.75rem;
}

.premium-banner {
    display: inline-block;
    background: var(--gold);
    color: #1a0e07;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.4rem;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    text-align: left;
}

.premium-features li {
    color: #c8b890;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(154, 124, 63, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.premium-features li::before {
    content: '✦';
    color: var(--gold);
    flex-shrink: 0;
    font-size: 0.75rem;
    line-height: 1.8;
}

/* Preço comum */
.price-desc {
    font-size: 0.98rem;
    color: var(--ink-soft);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.price-value {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    display: block;
}

/* ---- GALERIA PLACEHOLDER ---- */
.gallery-placeholder {
    min-height: 220px;
    border: 2px dashed var(--border);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.02);
    color: var(--ink-muted);
    font-style: italic;
    font-size: 0.95rem;
}

/* ---- DEPOIMENTOS ---- */
.testimonial {
    background: var(--parchment-panel);
    border-left: 4px solid var(--gold);
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 0 3px 3px 0;
    font-style: italic;
    box-shadow: 1px 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial p {
    color: var(--ink-soft);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.testimonial footer {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---- GARANTIA ---- */
.guarantee-box {
    background: var(--parchment-panel);
    border: 1px solid var(--border);
    border-top: 4px solid var(--gold);
    padding: 2.5rem 2.5rem;
    border-radius: 3px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.guarantee-box h2 {
    border: none;
    padding: 0;
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.guarantee-box p {
    max-width: 540px;
    margin: 0 auto;
    color: var(--ink-soft);
}

/* ---- FAQ ---- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
}

.faq-entry {
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(168, 146, 110, 0.35);
}

.faq-entry:first-child {
    border-top: 1px solid rgba(168, 146, 110, 0.35);
}

.faq-entry h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.faq-entry p {
    margin: 0;
    font-size: 1rem;
}

/* ---- RODAPÉ ---- */
.grimoire-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

/* ---- HERO IMAGE REAL ---- */
.hero-mockup {
    width: 100%;
    margin: 2rem 0 2.5rem;
    border: 3px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: #160f09;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.28);
    line-height: 0;
    /* remove gap below img */
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ---- CARROSSEL ---- */
.carousel {
    width: 100%;
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: #160f09;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #160f09;
}

/* Slide com imagem real */
.slide-img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #160f09;
}

/* Slide placeholder (sem imagem) */
.slide-placeholder {
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    background: #1a1109;
    text-align: center;
    position: relative;
}

.slide-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(154, 124, 63, 0.1) 0%, transparent 70%);
}

.slide-placeholder p {
    position: relative;
    z-index: 1;
    color: var(--gold-light);
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

.slide-caption {
    width: 100%;
    padding: 0.7rem 1.2rem;
    background: rgba(22, 15, 9, 0.92);
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

/* Controles do carrossel */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    background: #160f09;
    border-top: 1px solid rgba(154, 124, 63, 0.2);
}

.carousel-btn {
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 1.1rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: var(--font-body);
    line-height: 1;
}

.carousel-btn:hover {
    background: var(--gold);
    color: #160f09;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--gold);
}