/* ==========================================================================
   Fonte Da Vida - Corporate Accounts Page Styles
   Description: Specific styles for the Accounts page, including the 
   step-by-step grid and terms accordion.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Page Header (Animated Hero Upgrade)
   -------------------------------------------------------------------------- */
.page-header.animated-header {
    position: relative;
    overflow: hidden;
    padding: 200px 24px 140px;
    z-index: 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ph-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -99;
    transform: scale(1.0);
    animation: slowPan 25s linear infinite alternate;
}

@keyframes slowPan {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.15) translate(-1%, 1%); }
}

.ph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -98;
}

.ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.ph-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.ph-breadcrumb a:hover {
    color: #fff;
}

.ph-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ph-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ph-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force white text and white logo when navbar is transparent at top, in BOTH modes */
.navbar:not(.scrolled) .logo-light { display: none !important; }
.navbar:not(.scrolled) .logo-dark { display: block !important; }
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .btn-ghost,
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .lang-btn,
.navbar:not(.scrolled) .lang-btn .lang-text {
    color: #ffffff !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.navbar:not(.scrolled) .nav-links a { display: inline-block; }
.navbar:not(.scrolled) .lang-btn { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .theme-toggle { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .btn-ghost { background: transparent !important; }
.navbar:not(.scrolled) .nav-toggle span { background: #ffffff !important; }

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .btn-ghost:hover,
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* --------------------------------------------------------------------------
   02. Application Steps Section (Vertical Timeline)
   -------------------------------------------------------------------------- */
.application-section {
    padding-top: 40px;
    padding-bottom: 80px;
}

.vertical-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
}

/* Central Glowing Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 0;
    overflow: hidden;
}

.light-mode .timeline-line {
    background: rgba(0, 0, 0, 0.1);
}

.timeline-pulse {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    animation: pulseDown 4s linear infinite;
}

@keyframes pulseDown {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Timeline Items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 60px;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Node on the line */
.timeline-node {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--surface-1);
    border: 3px solid var(--accent);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item.left .timeline-node {
    right: -8px;
}

.timeline-item.right .timeline-node {
    left: -8px;
}

.timeline-item:hover .timeline-node {
    transform: translateY(-50%) scale(1.3);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Step Card (Premium Glass) */
.step-card {
    position: relative;
    background: rgba(30, 30, 36, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
    text-align: left;
}

.timeline-item.left .step-card {
    border-top-right-radius: 4px;
    text-align: right;
}

.timeline-item.right .step-card {
    border-top-left-radius: 4px;
}

.light-mode .step-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,1);
}

.timeline-item:hover .step-card {
    border-color: var(--accent-border);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 40px rgba(59, 130, 246, 0.1);
}

.light-mode .timeline-item:hover .step-card {
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2), 0 0 40px rgba(59, 130, 246, 0.15);
}

/* Oversized Background Number */
.bg-number {
    position: absolute;
    top: -10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 160px;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.timeline-item.left .bg-number {
    left: 20px;
}

.timeline-item.right .bg-number {
    right: 20px;
}

.light-mode .bg-number {
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.03);
}

.timeline-item:hover .bg-number {
    -webkit-text-stroke: 2px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-card p a {
    text-decoration: none;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.3s;
}

.step-card p a:hover {
    color: var(--accent-glow);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   03. Terms Accordion Section (Split Layout Premium)
   -------------------------------------------------------------------------- */
.terms-accordion-section {
    background: linear-gradient(180deg, var(--deep-space) 0%, var(--surface-1) 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 100px 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.split-sidebar {
    position: sticky;
    top: 120px;
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.terms-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.term-item {
    background: rgba(30, 30, 36, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.light-mode .term-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.term-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.light-mode .term-item:hover {
    border-color: var(--accent-border);
}

.term-btn {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    gap: 20px;
    transition: background 0.3s ease;
}

.term-title {
    flex: 1;
    line-height: 1.4;
}

.term-toggle-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .term-toggle-icon {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.05);
}

.vertical-line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.term-item.active {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 0 0 1px var(--accent);
}

.light-mode .term-item.active {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1), inset 0 0 0 1px var(--accent);
}

.term-item.active .term-toggle-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: rotate(180deg);
}

.term-item.active .vertical-line {
    transform: scaleY(0);
}

.term-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.term-answer-inner {
    padding: 0 24px 28px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.term-item.active .term-answer-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.term-answer-inner p {
    margin-bottom: 16px;
}

.term-answer-inner ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 16px;
}

.term-answer-inner li {
    margin-bottom: 8px;
}

.term-answer-inner strong {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   04. Toast Notification
   -------------------------------------------------------------------------- */
.download-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 12px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.light-mode .download-toast {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.download-toast svg {
    color: var(--accent);
}

.download-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   05. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header.animated-header { padding: 130px 24px 80px; min-height: 50vh; }
    
    .vertical-timeline {
        padding: 0;
    }
    
    .timeline-line {
        left: 20px;
        transform: none;
    }
    
    .timeline-item {
        width: 100%;
        padding: 20px 0 20px 60px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left .timeline-node,
    .timeline-item.right .timeline-node {
        left: 12px;
        right: auto;
    }
    
    .timeline-item.left .step-card,
    .timeline-item.right .step-card {
        border-radius: 24px;
        border-top-left-radius: 4px;
        text-align: left;
        padding: 32px;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .split-sidebar {
        position: relative;
        top: 0;
    }
    
    .timeline-item.left .bg-number,
    .timeline-item.right .bg-number {
        right: 10px;
        left: auto;
        font-size: 100px;
    }
    
    .term-btn {
        padding: 18px 20px;
        font-size: 14.5px;
    }
}