/* SendToVault custom styles - used on top of Pico CSS */

/* DEBUG: This should make the background red if CSS is loading */
/* Remove this after testing */
/*
body {
    background: red !important;
}
*/

/* Import elegant fonts with fallback handling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Typography overrides with robust fallbacks */
:root {
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-family-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Base typography */
html {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Headings with display font */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-display);
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: var(--font-weight-semibold);
    font-size: 2.5rem;
}

h2 {
    font-weight: var(--font-weight-medium);
    font-size: 2rem;
}

h3 {
    font-weight: var(--font-weight-medium);
    font-size: 1.5rem;
}

/* Body text refinements */
p {
    font-weight: var(--font-weight-normal);
    line-height: 1.7;
    letter-spacing: -0.005em;
}

/* Navigation typography */
nav ul li a {
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* Header spacing and title styling */
header {
    padding-top: 2rem;
    margin-bottom: 0.25rem;
}

/* Header title link - remove underline */
header h1 {
    font-size: 2.2rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0;
}

header h1 a {
    text-decoration: none;
    color: inherit;
}

header h1 a:hover {
    text-decoration: none;
    color: var(--pico-primary);
}

/* Header navigation horizontal layout */
nav {
    margin-top: 1rem;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: block;
    padding: 0.5rem 1.25rem;
    text-decoration: none;
    color: var(--pico-color);
    border-radius: var(--pico-border-radius);
    transition: all 0.2s ease;
    font-family: var(--font-family);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

nav ul li a:hover {
    color: var(--pico-primary);
    background-color: transparent;
}

/* Header navigation active state */
nav a.active {
    font-weight: bold;
    color: var(--pico-primary);
}

/* Hero section spacing */
.hero {
    text-align: center;
    margin: 2rem 0 3rem 0;
}

/* Feature grids */
.features-grid,
.steps-grid,
.content-grid,
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Feature styling */
.feature {
    padding: 1.5rem;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-border-color);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 0;
    font-weight: var(--font-weight-semibold);
    color: var(--pico-primary);
    font-family: var(--font-family-display);
}

.feature p {
    font-size: 0.95rem;
    color: var(--pico-muted-color);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Features section styling */
.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--pico-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* Process steps */
.step {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    align-items: flex-start;
}

/* Process preview section */
.process-preview {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--pico-card-background-color) 0%, rgba(var(--pico-primary-rgb), 0.02) 100%);
    border-radius: var(--pico-border-radius);
    border: 1px solid rgba(var(--pico-primary-rgb), 0.1);
}

.process-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--pico-color);
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: step-counter;
}

.process-steps li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-border-color);
    position: relative;
    counter-increment: step-counter;
    font-size: 1rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.process-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: -0.75rem;
    top: 1.5rem;
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    font-family: var(--font-family);
}

.process-steps li strong {
    font-weight: var(--font-weight-semibold);
    color: var(--pico-primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-display);
}

.process-steps li:last-child {
    margin-bottom: 0;
}

.learn-more {
    text-align: center;
    margin-top: 3rem;
}

.learn-more a {
    color: var(--pico-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--pico-primary);
    border-radius: var(--pico-border-radius);
    transition: all 0.2s ease;
    display: inline-block;
}

.learn-more a:hover {
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    transform: translateY(-2px);
}

/* CTA section */
.cta-section {
    margin: 4rem 0;
    text-align: center;
    padding: 3rem 2rem;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.signup-note {
    color: var(--pico-muted-color);
    font-size: 0.95rem;
}

.step-number {
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Highlight boxes */
.highlight,
.highlight-box {
    background: var(--pico-card-background-color);
    padding: 1.5rem;
    border-radius: var(--pico-border-radius);
    border-left: 4px solid var(--pico-primary);
    margin: 1.5rem 0;
}

/* Security tables */
.principle-row,
.data-item,
.auth-item,
.compliance-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 1rem 0;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: var(--pico-border-width) solid var(--pico-border-color);
}

/* Blog styles */
.blog-intro {
    text-align: center;
    margin: 2rem 0;
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-preview {
    margin: 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid var(--pico-border-color);
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.post-header h2 {
    margin-bottom: 0.5rem;
}

.post-header h2 a {
    text-decoration: none;
    color: inherit;
}

.post-header h2 a:hover {
    color: var(--pico-primary);
}

.post-meta {
    color: var(--pico-muted-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta time {
    margin-right: 1rem;
}

.post-excerpt {
    line-height: 1.6;
}

.read-more {
    color: var(--pico-primary);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-subscribe {
    background: var(--pico-card-background-color);
    padding: 2rem;
    border-radius: var(--pico-border-radius);
    text-align: center;
    margin: 3rem 0;
}

/* Individual blog post styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post .post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-post .post-header h1 {
    margin-bottom: 1rem;
}

.post-content {
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content .highlight-box {
    background: var(--pico-card-background-color);
    padding: 1.5rem;
    border-radius: var(--pico-border-radius);
    border-left: 4px solid var(--pico-primary);
    margin: 2rem 0;
}

.post-content .highlight-box h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--pico-primary);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pico-border-color);
}

.post-navigation {
    text-align: center;
}

.back-to-blog {
    text-decoration: none;
    color: var(--pico-primary);
    font-weight: 500;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Typography responsive adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
      /* Process steps mobile adjustments */
    .process-preview {
        padding: 2rem 1rem;
    }
    
    .process-steps li {
        padding: 1.25rem;
        margin-left: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .process-steps li::before {
        left: -0.5rem;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }
    
    /* How It Works page mobile adjustments */
    .steps-section {
        margin: 2rem 1rem;
    }
    
    .step {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-content h3 {
        font-size: 1.4rem;
    }
    
    .key-points {
        margin: 3rem 1rem;
    }
    
    .points-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .point {
        padding: 1.5rem;
    }
    
    .contact-section {
        margin: 3rem 1rem;
        padding: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.25rem;
    }
    
    /* Navigation responsive adjustments */
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }    nav ul li a {
        padding: 0.75rem 1.5rem;
        min-width: 120px;
        text-align: center;
        font-size: 0.9rem;
    }
    
    .principle-row,
    .data-item,
    .auth-item,
    .compliance-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
}

/* Utility classes */
.text-center { text-align: center; }
.margin-top-lg { margin-top: 3rem; }
.margin-bottom-lg { margin-bottom: 3rem; }

/* How It Works page styles */
.steps-section {
    margin: 3rem 0;
}

.step {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-border-color);
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.step-content h3 {
    font-family: var(--font-family-display);
    font-size: 1.6rem;
    font-weight: var(--font-weight-semibold);
    color: var(--pico-primary);
    margin-bottom: 1rem;
    margin-top: 0;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--pico-color);
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-content code {
    background: rgba(var(--pico-primary-rgb), 0.1);
    color: var(--pico-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.process-list {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.process-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.highlight {
    background: linear-gradient(135deg, rgba(var(--pico-primary-rgb), 0.1) 0%, rgba(var(--pico-primary-rgb), 0.05) 100%);
    padding: 1rem 1.5rem;
    border-radius: var(--pico-border-radius);
    border-left: 4px solid var(--pico-primary);
    margin: 1.5rem 0;
}

.highlight strong {
    color: var(--pico-primary);
    font-weight: var(--font-weight-semibold);
}

.final-step {
    background: linear-gradient(135deg, var(--pico-card-background-color) 0%, rgba(var(--pico-primary-rgb), 0.03) 100%);
    border: 2px solid rgba(var(--pico-primary-rgb), 0.2);
}

.final-step .step-content h3 {
    font-size: 1.8rem;
}

/* Key points section */
.key-points {
    margin: 4rem 0;
    text-align: center;
}

.key-points h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--pico-color);
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.point {
    padding: 2rem;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
    border: 1px solid var(--pico-border-color);
    text-align: left;
}

.point strong {
    display: block;
    font-family: var(--font-family-display);
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--pico-primary);
    margin-bottom: 0.75rem;
}

.point p {
    margin: 0;
    line-height: 1.6;
    color: var(--pico-muted-color);
}

/* Contact section */
.contact-section {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem;
    background: var(--pico-card-background-color);
    border-radius: var(--pico-border-radius);
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--pico-color);
}

.contact-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.signature {
    font-style: italic;
    color: var(--pico-muted-color);
    font-size: 1rem;
    margin-top: 2rem;
}
