/*
Theme Name: ProfitUpsy
Theme URI: https://profitupsy.com
Author: ProfitUpsy Team
Author URI: https://profitupsy.com
Description: Tema WordPress oficial do ProfitUpsy - SaaS Metrics Analytics Platform. Design moderno, responsivo e otimizado para conversão.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profitupsy
Tags: saas, analytics, responsive, modern, business
*/

/* ========================================
   ROOT VARIABLES
   ======================================== */
:root {
    --navy-deep: #051c2c;
    --navy: #0a2d46;
    --navy-light: #134b6e;
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-light: #f5f5f5;
    --gray: #e5e5e5;
    --gray-medium: #999999;
    --gray-dark: #666666;
    --text-primary: #222222;
    --text-secondary: #555555;
    --accent: #2251ff;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
.serif {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: transparent;
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray);
    padding: 1rem 3rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-btn {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav.scrolled .menu-btn span {
    background: var(--text-primary);
}

.logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav.scrolled .logo {
    color: var(--navy-deep);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
}

.nav.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link:hover {
    opacity: 0.7;
}

.search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.search-icon:hover {
    opacity: 1;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
}

.nav.scrolled .search-icon svg {
    stroke: var(--text-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    background: var(--navy-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(19, 75, 110, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(10, 45, 70, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    gap: 1.5rem;
}

.arrow-circle {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hero-cta:hover .arrow-circle {
    background: var(--white);
    border-color: var(--white);
}

.arrow-circle svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.hero-cta:hover .arrow-circle svg {
    stroke: var(--navy-deep);
}

.hero-notes {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    gap: 3rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    padding: 6rem 3rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-medium);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
    max-width: 700px;
}

/* ========================================
   EDITORIAL GRID
   ======================================== */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    padding: 0 3rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-large {
    grid-column: span 7;
}

.card-medium {
    grid-column: span 5;
}

.card-full {
    grid-column: span 12;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--gray-light);
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem 0;
}

.card-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.card-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    background: var(--off-white);
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding: 0 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature {
    padding: 2rem 0;
}

.feature-number {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--gray-medium);
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-title {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing {
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Stripe Pricing Table Wrapper */
.stripe-pricing-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.stripe-pricing-wrapper stripe-pricing-table {
    --stripe-pricing-table-background: var(--white);
    --stripe-pricing-table-card-background: var(--white);
    --stripe-pricing-table-card-border: var(--gray);
    --stripe-pricing-table-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --stripe-pricing-table-primary-color: var(--navy-deep);
    --stripe-pricing-table-accent-color: var(--accent);
    --stripe-pricing-table-text-color: var(--text-primary);
    --stripe-pricing-table-secondary-text-color: var(--text-secondary);
    --stripe-pricing-table-button-background: var(--navy-deep);
    --stripe-pricing-table-button-color: var(--white);
    --stripe-pricing-table-button-hover-background: var(--navy);
    --stripe-pricing-table-highlighted-card-background: var(--navy-deep);
    --stripe-pricing-table-highlighted-card-border: var(--navy);
    --stripe-pricing-table-highlighted-card-text-color: var(--white);
    --stripe-pricing-table-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --stripe-pricing-table-heading-font-family: 'Crimson Pro', Georgia, serif;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--navy-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border-color: var(--navy);
    background: var(--navy-deep);
}

.pricing-card.featured * {
    color: var(--white);
}

.pricing-card.featured .pricing-price {
    color: var(--white);
}

.pricing-card.featured .pricing-period {
    color: rgba(255, 255, 255, 0.6);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
}

.pricing-name {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.pricing-card.featured .pricing-desc {
    color: rgba(255, 255, 255, 0.7);
}

.pricing-price {
    font-family: 'Crimson Pro', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--gray-medium);
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pricing-savings {
    font-size: 0.8125rem;
    color: #10b981;
    margin-bottom: 2rem;
}

.pricing-card.featured .pricing-savings {
    color: #6ee7b7;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray);
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

.pricing-card.featured .pricing-btn {
    border-color: var(--white);
    color: var(--white);
}

.pricing-card.featured .pricing-btn:hover {
    background: var(--white);
    color: var(--navy-deep);
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
    background: var(--off-white);
    padding: 6rem 3rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-item {
    border-bottom: 1px solid var(--gray);
    padding: 2rem 0;
}

.faq-question {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--navy-light);
}

.faq-answer {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
    background: var(--navy-deep);
    padding: 8rem 3rem;
    text-align: center;
}

.final-cta-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.final-cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.final-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--navy-deep);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.final-cta-btn:hover {
    background: var(--accent);
    color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--white);
    padding: 4rem 3rem 2rem;
    border-top: 1px solid var(--gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Crimson Pro', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--navy);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-medium);
}

/* ========================================
   PAGE HEADER (for policy pages)
   ======================================== */
.page-header {
    background: var(--navy-deep);
    padding: 10rem 3rem 4rem;
    margin-bottom: 4rem;
}

.page-title {
    font-family: 'Crimson Pro', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   PAGE CONTENT
   ======================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem 6rem;
}

.page-content h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 3rem 0 1rem;
    color: var(--navy-deep);
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.page-content ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--navy);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.guarantee-box {
    background: var(--off-white);
    border-left: 4px solid var(--navy);
    padding: 2rem;
    margin: 2rem 0;
}

.last-updated {
    color: var(--gray-medium);
    margin-bottom: 2rem;
}

/* ========================================
   SIMPLE FOOTER (for policy pages)
   ======================================== */
.simple-footer {
    background: var(--off-white);
    padding: 3rem;
    text-align: center;
    border-top: 1px solid var(--gray);
}

.simple-footer a {
    color: var(--navy);
    text-decoration: none;
}

.simple-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-notes {
        display: none;
    }

    .section-header,
    .editorial-grid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .card-large,
    .card-medium {
        grid-column: span 12;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .page-header {
        padding: 8rem 1.5rem 3rem;
    }

    .page-content {
        padding: 0 1.5rem 4rem;
    }
}
