:root {
    --color-bg-primary: #FAFAFA;
    --color-bg-secondary: #FFFFFF;
    --color-text-main: #111827;
    --color-text-muted: #6B7280;
    --color-accent: #059669;
    /* Profound Emerald */
    --color-accent-hover: #047857;
    --color-border: #E5E7EB;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    padding-bottom: 80px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.max-w-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-md);
}

.mt-6 {
    margin-top: 2.5rem;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* HEADER */
.header {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg-primary);
}

.cause-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* HERO */
.hero {
    padding: var(--space-2xl) 0 var(--space-xl);
    background-color: var(--color-bg-primary);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: #FFF;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4);
}

.pulse {
    animation: pulse-shadow 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(5, 150, 105, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    }
}

/* NARRATIVE */
.narrative {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-secondary);
}

.narrative-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-border);
    z-index: 0;
}

.documentary-photo {
    width: 100%;
    position: relative;
    z-index: 1;
    filter: grayscale(15%) contrast(105%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.story-text {
    max-width: 680px;
    font-size: 1.125rem;
    color: var(--color-text-main);
    line-height: 1.8;
}

.story-text p {
    margin-bottom: var(--space-md);
}

.drop-cap {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    line-height: 1.4;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: var(--space-md);
}

.pull-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    border-left: 4px solid var(--color-accent);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--color-text-muted);
}

/* ACTION SECTION */
.action-section {
    padding: var(--space-xl) 0 var(--space-2xl);
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.action-section::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: var(--space-lg);
}

.btn-donate {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.btn-donate:hover,
.btn-donate.active {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(5, 150, 105, 0.05);
}

.btn-donate[data-popular="true"]::before {
    content: "Mais Escolhido";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: #FFF;
    font-size: 0.65rem;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.custom-value-area {
    background-color: var(--color-bg-primary);
    padding: var(--space-lg);
    border-radius: 4px;
    border: 1px dashed var(--color-border);
    text-align: left;
}

.custom-value-area label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.custom-value-area input {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    outline: none;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-main);
    transition: border-color 0.2s;
}

.custom-value-area input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* PROGRESS */
.progress-container {
    text-align: left;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.progress-labels .raised {
    color: var(--color-text-main);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* MOBILE CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    z-index: 50;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sticky-cta.visible {
    transform: translateY(0);
}

.mobile-sticky-cta .btn-primary {
    width: 100%;
    max-width: 400px;
}

/* FOOTER */
.footer {
    padding: var(--space-xl) 0 var(--space-2xl);
    background-color: var(--color-text-main);
    color: #FFF;
    font-size: 0.875rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer .disclaimer {
    color: #9CA3AF;
    font-size: 0.75rem;
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* MEDIA QUERIES */
@media (min-width: 768px) {
    .narrative-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .image-wrapper {
        flex: 1;
        position: sticky;
        top: 2rem;
    }

    .story-text {
        flex: 1;
    }

    .mobile-sticky-cta {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* CHECKOUT FORM STYLES */
.checkout-container {
    background-color: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: left;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkout-header-msg {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    text-align: center;
    line-height: 1.3;
}

.checkout-amount-display {
    font-size: 1.125rem;
    text-align: center;
    color: var(--color-text-main);
}

.checkout-amount-display strong {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
    display: block;
    margin: 0 auto;
}

.btn-text:hover {
    color: var(--color-text-main);
}

.payment-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.payment-form legend {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    padding-bottom: 0.25rem;
}

.input-group {
    margin-bottom: 0.75rem;
    position: relative;
}

.input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.input-row>* {
    flex: 1;
}

.payment-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    background-color: var(--color-bg-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.payment-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.relative {
    position: relative;
}

.secure-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.payment-form input#cardNumber {
    padding-right: 40px;
}

.secure-notice {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.payment-feedback {
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.payment-feedback.error {
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.payment-feedback.success {
    background-color: #F0FDF4;
    color: #16A34A;
    border: 1px solid #86EFAC;
}

/* LOADER */
.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #FFF;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* TABS E PIX */
.payment-tabs {
    display: flex;
    gap: 0.5rem;
    background-color: var(--color-bg-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.payment-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-tab.active {
    background-color: var(--color-bg-primary);
    color: var(--color-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pix-area {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

.pix-area h4 {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.qr-code-box img {
    max-width: 200px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem;
    background: #FFF;
}

.copy-paste-box input {
    width: 100%;
    padding: 0.75rem;
    border: 1px dashed var(--color-text-muted);
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    text-align: center;
    font-size: 0.875rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: monospace;
}