/* ============================================================
   PaymentPulse — Main Stylesheet
   Imports shared Pulse Design System + PaymentPulse-specific styles.
   Pulse Design System · Hand-crafted CSS · No frameworks
   Accent: Violet (premium, billing, payments)
   ============================================================ */

/* === SHARED DESIGN SYSTEM === */
@import url('pulse-design-system/css/tokens/_brand-paymentpulse.css');
@import url('pulse-design-system/css/pulse-core.css');

/* === PAYMENTPULSE-SPECIFIC TOKENS === */

:root {
    /* Legacy aliases */
    --pulse-violet: #8B5CF6;
    --pulse-violet-light: #A78BFA;
    --pulse-violet-glow: rgba(139, 92, 246, 0.15);
    --pulse-violet-glow-strong: rgba(139, 92, 246, 0.3);
    --pulse-white: #F8FAFC;
}

/* === LANDING PAGE === */

/* How It Works */
.how {
    padding: var(--space-24) 0;
}

.how__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    position: relative;
}

.how__steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-glow), var(--accent));
    opacity: 0.3;
}

.how__step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.how__step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--text-2xl);
    font-weight: 800;
    background: var(--accent-glow);
    color: var(--accent);
    border: 2px solid var(--accent-border-subtle);
}

.how__step-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.how__step-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 280px;
    margin: 0 auto;
}

/* Code Preview */
.code-preview {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 560px;
    margin: 0 auto;
}

.code-preview__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-preview__dot--red { background: #F43F5E; }
.code-preview__dot--amber { background: #F59E0B; }
.code-preview__dot--green { background: #10B981; }

.code-preview__title {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    margin-left: var(--space-2);
    font-family: var(--font-mono);
}

.code-preview__body {
    padding: var(--space-5);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #E2E8F0;
    overflow-x: auto;
}

.code-preview__body .code-comment { color: #64748B; }
.code-preview__body .code-key { color: #7DD3FC; }
.code-preview__body .code-string { color: #86EFAC; }
.code-preview__body .code-number { color: #FDE68A; }
.code-preview__body .code-method { color: #C4B5FD; font-weight: 700; }
.code-preview__body .code-url { color: #A78BFA; }

/* Trusted By / Logos placeholder */
.trusted {
    padding: var(--space-16) 0;
    text-align: center;
}

.trusted__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

.trusted__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    opacity: 0.4;
}

.trusted__logo {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

/* Status page link in footer */
.footer__status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-on-dark-secondary);
}

.footer__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 768px) {
    .how__steps {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    .how__steps::before {
        display: none;
    }
}

/* === API DOCS PAGE === */

.docs {
    padding: var(--space-16) 0 var(--space-24);
}

.docs__nav {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-8);
    margin-bottom: var(--space-12);
}

.docs__nav-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-4);
}

.docs__nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
}

.docs__nav-list a {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.docs__nav-list a:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.docs__section {
    padding: var(--space-10) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs__section:last-of-type {
    border-bottom: none;
}

.docs__heading {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.docs__subheading {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.docs__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    max-width: 720px;
}

.docs__text--muted {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    font-style: italic;
}

.docs__text code {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-light);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    font-family: var(--font-mono);
}

.docs__text a {
    color: var(--accent);
    text-decoration: none;
}

.docs__text a:hover {
    text-decoration: underline;
}

.docs__endpoint {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.docs__method {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

.docs__method--get {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.docs__method--post {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
}

.docs__path {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.docs__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
}

.docs__table thead th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.docs__table tbody td {
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: top;
}

.docs__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.docs__table code {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-light);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
    font-size: 0.88em;
    font-family: var(--font-mono);
}

.docs .code-preview {
    margin-bottom: var(--space-6);
    max-width: 100%;
}

.mkt-hero--compact .mkt-hero__content {
    padding-bottom: var(--space-8);
}

@media (max-width: 768px) {
    .docs__nav-list {
        flex-direction: column;
    }
    .docs__table {
        display: block;
        overflow-x: auto;
    }
}
