/* ==========================================================================
   VPC Marketing Site — Static Styles
   Mirrors the Django app's steel-blue theme for brand consistency
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --steel-blue-dark: #4a6a8a;
    --steel-blue-medium: #6a8aaa;
    --steel-blue-light: #8aaaca;
    --steel-blue-lighter: #b8d4e8;
    --background: #ffffff;
    --off-white: #f8fafc;
    --page-bg: #e8ecf0;
    --text-primary: #1a2a3a;
    --text-secondary: #4a5a6a;
    --text-muted: #7a8a9a;
    --border: #e2e8f0;
    --green: #22c55e;
    --red: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================================================
   Page Container
   ========================================================================== */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--background);
    box-shadow: 0 0 100px rgba(74, 106, 138, 0.15);
    min-height: 100vh;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow-x: clip;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: linear-gradient(135deg, var(--steel-blue-dark) 0%, var(--steel-blue-medium) 100%);
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 24px 24px;
    height: 96px;
    position: relative;
}

.site-header::before,
.site-header::after {
    content: '';
    position: absolute;
    bottom: -24px;
    width: 24px;
    height: 24px;
    z-index: 101;
}

.site-header::before {
    left: 0;
    background: radial-gradient(circle at top left, transparent 24px, var(--background) 24px);
}

.site-header::after {
    right: 0;
    background: radial-gradient(circle at top right, transparent 24px, var(--background) 24px);
}

.site-header a { display: flex; align-items: center; }

.header-logo {
    height: 60px;
    max-height: 100%;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 36px;
    list-style: none;
    align-items: center;
}

.header-nav a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}

.header-nav a:hover { color: white; }

.btn-signin {
    background: rgba(255,255,255,0.15);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
}

.btn-signin:hover {
    background: rgba(255,255,255,0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--off-white) 0%, var(--background) 100%);
    position: relative;
}

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

.hero-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 44px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: var(--steel-blue-dark);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 24px;
}

.hero-cta:hover { background: var(--steel-blue-medium); }

/* ==========================================================================
   Features Grid (Landing Page)
   ========================================================================== */
.features-section {
    padding: 64px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.features-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--steel-blue-dark) 0%, var(--steel-blue-medium) 100%);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

/* ==========================================================================
   How It Works (Landing Page)
   ========================================================================== */
.how-section {
    padding: 64px 32px;
    max-width: 900px;
    margin: 0 auto;
}

.how-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.how-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--steel-blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.how-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

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

/* ==========================================================================
   CTA Banner (Landing Page)
   ========================================================================== */
.cta-section {
    padding: 64px 32px;
    text-align: center;
    background: var(--off-white);
    margin: 0 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 64px;
}

.cta-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-section p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Legal Pages (Privacy, Terms, DPA)
   ========================================================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--steel-blue-lighter);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
}

.legal-section ul {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    font-size: 15px;
}

.legal-section strong { color: var(--text-primary); }
.legal-section a { color: var(--steel-blue-dark); }

.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.legal-section th,
.legal-section td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.legal-section th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-section td { color: var(--text-secondary); }

.legal-note {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    font-size: 14px;
}

.legal-footer {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-top: 40px;
}

.legal-footer p {
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
}

/* ==========================================================================
   Security Page
   ========================================================================== */
.security-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 32px 64px;
}

.sec-section { margin-bottom: 40px; }

.sec-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--steel-blue-lighter);
}

.sec-section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--steel-blue-dark) 0%, var(--steel-blue-medium) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sec-section-icon svg { width: 20px; height: 20px; fill: white; }

.sec-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.sec-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.sec-card h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin: 0 0 10px; }
.sec-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 10px; }
.sec-card p:last-child { margin-bottom: 0; }
.sec-card ul { margin: 8px 0 0; padding-left: 20px; }
.sec-card li { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 4px; }

.sec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sec-highlight {
    background: var(--steel-blue-lighter);
    border: 1px solid var(--steel-blue-light);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.sec-highlight p { font-size: 14px; color: var(--text-primary); line-height: 1.7; margin: 0; }

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.compliance-item {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
}

.compliance-item h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 0 0 6px; }
.compliance-item p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

.badge-active {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.badge-implemented { background: #dcfce7; color: #166534; }
.badge-planned { background: var(--steel-blue-lighter); color: var(--steel-blue-dark); }

.sec-contact {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 40px;
}

.sec-contact h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; color: var(--text-primary); margin-bottom: 12px; }
.sec-contact p { color: var(--text-secondary); margin-bottom: 12px; font-size: 14px; }
.sec-contact a { color: var(--steel-blue-dark); font-weight: 500; }

/* ==========================================================================
   Tiers Page
   ========================================================================== */
.tiers-container {
    max-width: 960px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.tier-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: box-shadow 0.2s;
}

.tier-card:hover { box-shadow: 0 8px 24px rgba(74, 106, 138, 0.1); }
.tier-card--featured { border-color: var(--steel-blue-dark); border-width: 2px; }

.tier-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.tier-badge--free { background: #f0fdf4; color: #166534; }
.tier-badge--basic { background: #eff6ff; color: #1e40af; }
.tier-badge--professional { background: #fef3c7; color: #92400e; }
.tier-badge--validated { background: rgba(74, 106, 138, 0.12); color: var(--steel-blue-dark); }

.tier-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tier-card .tier-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.tier-features { list-style: none; padding: 0; margin: 0; }

.tier-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.tier-features li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; fill: var(--steel-blue-dark); }

.tier-compare {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
}

.tier-compare h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--text-primary);
    padding: 28px 32px 0;
    margin-bottom: 20px;
}

.tier-compare table { width: 100%; border-collapse: collapse; }

.tier-compare th, .tier-compare td {
    padding: 12px 20px;
    text-align: left;
    font-size: 14px;
    border-top: 1px solid var(--border);
}

.tier-compare th { font-weight: 600; color: var(--text-primary); background: var(--off-white); }
.tier-compare td { color: var(--text-secondary); }
.tier-compare .check { color: var(--steel-blue-dark); font-weight: 600; }
.tier-compare .dash { color: var(--text-muted); }

.tier-note {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.tier-note h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.tier-note p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.tier-cta { text-align: center; padding: 40px 0; }
.tier-cta p { font-size: 16px; color: var(--text-secondary); margin-bottom: 20px; }

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    background: var(--steel-blue-dark);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--steel-blue-medium); }

/* ==========================================================================
   FAQ Page
   ========================================================================== */
.faq-layout {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 32px 64px;
    gap: 48px;
}

.faq-nav {
    position: sticky;
    top: 120px;
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    height: fit-content;
    align-self: flex-start;
}

.faq-nav-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 12px;
}

.faq-nav-list { list-style: none; padding: 0; margin: 0; }
.faq-nav-item { margin-bottom: 4px; }

.faq-nav-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.faq-nav-link:hover { color: var(--text-primary); background: var(--off-white); }

.faq-nav-link.active {
    color: var(--steel-blue-dark);
    background: var(--steel-blue-lighter);
    border-left-color: var(--steel-blue-dark);
    font-weight: 500;
}

.faq-content { flex: 1; min-width: 0; }

.faq-section { margin-bottom: 40px; scroll-margin-top: 100px; }

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 2px solid var(--steel-blue-lighter);
}

.faq-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.faq-item {
    margin-bottom: 16px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question { font-size: 15px; font-weight: 600; color: var(--text-primary); padding: 16px 20px; }

.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
}

.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 10px 0; padding-left: 20px; }
.faq-answer li { margin-bottom: 6px; }
.faq-answer a { color: var(--steel-blue-dark); }

.faq-cta {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 40px;
}

.faq-cta h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; color: var(--text-primary); margin-bottom: 12px; }
.faq-cta p { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }
.faq-cta p:last-child { margin-bottom: 0; }
.faq-cta a { color: var(--steel-blue-dark); font-weight: 500; }

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--background);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--steel-blue-dark);
    box-shadow: 0 0 0 3px rgba(74, 106, 138, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.contact-note {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 24px;
}

.contact-note p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.contact-note a { color: var(--steel-blue-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
    border-radius: 0 0 24px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-brand .footer-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-brand .footer-logo-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-column h4 {
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }

.footer-column a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.footer-column a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-grid, .compliance-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .tier-grid { grid-template-columns: 1fr; }
    .tier-compare { overflow-x: auto; }
    .tier-compare table { min-width: 600px; }
    .faq-layout { flex-direction: column; gap: 24px; }
    .faq-nav {
        position: static;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
        background: var(--off-white);
        border-radius: 10px;
        border: 1px solid var(--border);
    }
    .faq-nav-title { width: 100%; margin-bottom: 8px; padding-left: 0; }
    .faq-nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .faq-nav-item { margin-bottom: 0; }
    .faq-nav-link { padding: 6px 12px; border: 1px solid var(--border); border-left: none; border-radius: 16px; }
    .faq-nav-link.active { border-color: var(--steel-blue-dark); }
}

@media (max-width: 640px) {
    .hero-header h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .legal-content { padding: 16px; }
    .security-content { padding: 16px; }
    .faq-layout { padding: 16px; }
    .site-header { padding: 0 16px; }
    .header-nav { gap: 16px; }
    .header-nav a { font-size: 14px; }
}
