/* ===================================
   Papervault Design System (v3)
   =================================== */

:root {
    /* Colors */
    --pv-primary: #594AE2;
    --pv-primary-dark: #4633B8;
    --pv-accent: #C1694F;
    --pv-green: #32D583;
    --pv-amber: #FFB547;

    --pv-bg-white: #FFFFFF;
    --pv-bg-warm: #F7F5F3;
    --pv-bg-page: #FAFAF9;
    --pv-bg-dark: #1A1A1A;

    --pv-text-primary: #1A1A1A;
    --pv-text-secondary: #666666;
    --pv-text-muted: #777777;
    --pv-text-light: #999999;

    --pv-border: #E8E8EC;
    --pv-border-warm: #EEEBE8;

    /* Fonts */
    --pv-font-headline: 'Fraunces', Georgia, serif;
    --pv-font-body: 'DM Sans', 'Roboto', sans-serif;
    --pv-font-logo: 'Nunito', sans-serif;
}

/* ===================================
   Section Backgrounds
   =================================== */

.pv-section {
    width: 100%;
    box-sizing: border-box;
}

.pv-section-white {
    background-color: var(--pv-bg-white);
}

.pv-section-warm {
    background-color: var(--pv-bg-warm);
}

.pv-section-cta {
    background-color: var(--pv-primary);
}

.pv-section-footer {
    background-color: var(--pv-bg-dark);
}

/* ===================================
   Typography
   =================================== */

.pv-headline {
    font-family: var(--pv-font-headline);
    font-weight: 600;
    color: var(--pv-text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.pv-headline-hero {
    font-family: var(--pv-font-headline);
    font-weight: 600;
    color: var(--pv-text-primary);
    line-height: 1.15;
    font-size: 52px;
    text-align: center;
}

.pv-body {
    font-family: var(--pv-font-body);
    color: var(--pv-text-secondary);
    line-height: 1.6;
}

.pv-label {
    font-family: var(--pv-font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pv-label-accent {
    color: var(--pv-accent);
}

.pv-label-primary {
    color: var(--pv-primary);
}

.pv-logo-text {
    font-family: var(--pv-font-logo);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===================================
   Components
   =================================== */

.pv-card {
    background: var(--pv-bg-white);
    border-radius: 14px;
    padding: 32px 28px;
}

.pv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--pv-font-body);
    font-size: 14px;
    font-weight: 500;
}

.pv-badge-primary {
    background: #F5F0FF;
    color: var(--pv-primary);
}

.pv-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    background: var(--pv-bg-warm);
    font-family: var(--pv-font-body);
    font-size: 15px;
    font-weight: 500;
    color: #444444;
}

.pv-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F0EDFF;
    color: var(--pv-primary);
    font-family: var(--pv-font-body);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.pv-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pv-icon-circle-purple { background: #F0EDFF; }
.pv-icon-circle-orange { background: #FFF0EB; }
.pv-icon-circle-green  { background: #EDFCF2; }
.pv-icon-circle-amber  { background: #FFF8EB; }

/* ===================================
   Landing-specific Overrides
   =================================== */

.pv-landing-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: var(--pv-bg-white);
    border-bottom: 1px solid var(--pv-border);
    height: 72px;
    display: flex;
    align-items: center;
}

.pv-landing-nav-link {
    font-family: var(--pv-font-body);
    font-size: 15px;
    font-weight: 500;
    color: #6B6B80;
    text-decoration: none;
    cursor: pointer;
}

.pv-landing-nav-link:hover {
    color: var(--pv-text-primary);
}

.pv-hero-note {
    font-family: var(--pv-font-body);
    font-size: 14px;
    color: var(--pv-text-light);
    text-align: center;
}

/* Feature card layout */
.pv-feature-card {
    display: flex;
    gap: 20px;
    background: var(--pv-bg-white);
    border-radius: 14px;
    padding: 28px;
}

/* Pain card */
.pv-pain-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--pv-bg-white);
    border-radius: 14px;
    padding: 32px 28px;
}

/* CTA section button (white on purple) */
.pv-cta-btn-white {
    background: var(--pv-bg-white) !important;
    color: var(--pv-primary) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 16px 36px !important;
    font-size: 17px !important;
}

.pv-cta-btn-outline {
    background: transparent !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    padding: 16px 36px !important;
    font-size: 17px !important;
}

/* ===================================
   App Page Components
   =================================== */

.pv-app-logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: linear-gradient(135deg, #594AE2, #4633B8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pv-app-bar {
    background: var(--pv-bg-white) !important;
    border-bottom: 1px solid var(--pv-border-warm) !important;
    box-shadow: none !important;
    height: 64px !important;
}

.pv-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(89, 74, 226, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pv-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--pv-primary);
    flex-shrink: 0;
}

.pv-sidebar {
    background: var(--pv-bg-white);
    border-right: 1px solid var(--pv-border-warm);
    padding: 24px 16px;
    position: sticky;
    top: 80px;
    min-height: calc(100vh - 96px);
}

.pv-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-family: var(--pv-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    margin-bottom: 4px;
}

.pv-nav-item:hover {
    background: rgba(89, 74, 226, 0.06);
    color: var(--pv-text-primary);
    text-decoration: none;
}

.pv-nav-item.active {
    background: rgba(89, 74, 226, 0.08);
    color: var(--pv-primary);
    font-weight: 600;
}

.pv-doc-card {
    border-radius: 16px;
    border: 1px solid var(--pv-border-warm);
    background: var(--pv-bg-white);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.pv-doc-card:hover {
    border-color: var(--pv-primary);
    box-shadow: 0 2px 12px rgba(89, 74, 226, 0.08);
}

.pv-doc-card-top {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pv-doc-card-bottom {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pv-doc-card-divider {
    height: 1px;
    background: var(--pv-border-warm);
}

.pv-info-card {
    border-radius: 14px;
    border: 1px solid var(--pv-border-warm);
    background: var(--pv-bg-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pv-table-card {
    border-radius: 14px;
    border: 1px solid var(--pv-border-warm);
    background: var(--pv-bg-white);
    overflow: hidden;
}

.pv-table-header {
    background: var(--pv-bg-warm);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pv-settings-card {
    border-radius: 16px;
    border: 1px solid var(--pv-border-warm);
    background: var(--pv-bg-white);
    max-width: 600px;
    padding: 32px;
}

.pv-settings-divider {
    height: 1px;
    background: var(--pv-border-warm);
    margin: 24px 0;
}

.pv-theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid var(--pv-border-warm);
    background: var(--pv-bg-white);
    font-family: var(--pv-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--pv-text-secondary);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.pv-theme-option:hover {
    border-color: var(--pv-primary);
}

.pv-theme-option.selected {
    border-color: var(--pv-primary);
    background: rgba(89, 74, 226, 0.06);
    color: var(--pv-primary);
    font-weight: 600;
}

.pv-gradient-btn {
    background: linear-gradient(135deg, #594AE2, #4633B8) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 960px) {
    .pv-headline-hero {
        font-size: 36px;
    }

    .pv-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .pv-headline-hero {
        font-size: 28px;
    }
}
