/**
 * Product Flows Frontend CSS — Modern Design System
 * Version: 1.1.0
 * Design: Navy & Gold professional theme, inspired by data-gate.ch brand.
 * Features: Responsive, mobile-first, subtle animations, conversion-optimized CTAs.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* Design Tokens (CSS Custom Properties) */
:root {
    /* Colors - Navy & Gold Theme */
    --pf-primary:     #1C244B;    /* Deep navy */
    --pf-primary-light: #2A3A75;
    --pf-accent:      #D4AF37;    /* Gold */
    --pf-accent-hover: #b5952f;
    --pf-success:     #10B981;    /* Green for price/trust */
    --pf-danger:      #EF4444;

    /* Neutrals */
    --pf-white:       #ffffff;
    --pf-gray-50:     #F9FAFB;
    --pf-gray-100:    #F3F4F6;
    --pf-gray-200:    #E5E7EB;
    --pf-gray-300:    #D1D5DB;
    --pf-gray-500:    #6B7280;
    --pf-gray-700:    #374151;
    --pf-gray-800:    #1F2937;
    --pf-gray-900:    #111827;

    /* Typography */
    --pf-font-heading: 'Poppins', 'Inter', sans-serif;
    --pf-font-body:    'Inter', sans-serif;
    --pf-font-size-base: 18px;
    --pf-line-height: 1.62;

    /* Spacing */
    --pf-space-xs: 0.5rem;
    --pf-space-sm: 1rem;
    --pf-space-md: 1.5rem;
    --pf-space-lg: 2.5rem;
    --pf-space-xl: 4rem;
    --pf-container-width: 1000px;

    /* Other */
    --pf-radius: 12px;
    --pf-radius-sm: 8px;
    --pf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --pf-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --pf-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --pf-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    font-family: var(--pf-font-body);
    font-size: var(--pf-font-size-base);
    line-height: var(--pf-line-height);
    color: var(--pf-gray-800);
    background-color: var(--pf-white);
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--pf-font-heading);
    color: var(--pf-primary);
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 0.75em;
}
h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.1rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

/* Container & Wrapper */
.pf-wrapper {
    max-width: var(--pf-container-width);
    margin: 0 auto;
    padding: 0 var(--pf-space-sm);
}

/* Sections base */
.pf-section {
    padding: var(--pf-space-xl) var(--pf-space-sm);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.pf-section.pf-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Container inside sections (optional) */
.pf-container {
    max-width: var(--pf-container-width);
    margin: 0 auto;
}

/* Utilities */
.pf-text-center { text-align: center; }
.pf-text-right  { text-align: right; }

/* =========================================
   HERO SECTION
   ========================================= */
.pf-hero {
    position: relative;
    padding: 6rem var(--pf-space-sm) 5rem;
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    color: var(--pf-white);
    text-align: center;
    overflow: hidden;
}
.pf-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.pf-hero .pf-container {
    position: relative;
    z-index: 1;
}
.pf-hero-title {
    color: var(--pf-white);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 0.5em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.pf-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto var(--pf-space-lg);
    font-weight: 400;
}
.pf-hero-image {
    margin: 2rem auto;
    max-width: 320px;
}
.pf-hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow-xl);
    border: 4px solid rgba(255,255,255,0.1);
}
.pf-hero-price {
    font-size: 2rem;
    color: var(--pf-accent);
    margin: 1.5rem 0;
    font-weight: 700;
}
.pf-currency {
    font-size: 1.2rem;
    opacity: 0.8;
    vertical-align: middle;
}

/* =========================================
   BUTTONS
   ========================================= */
.pf-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pf-font-heading);
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: var(--pf-radius-sm);
    line-height: 1;
    gap: 0.5rem;
}
.pf-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-lg);
}
.pf-buy-button:active {
    transform: translateY(0);
}
.pf-btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.15rem;
}
.pf-btn-xlarge {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
}
.pf-btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* Hero button overrides */
.pf-hero .pf-buy-button {
    background: var(--pf-white);
    color: var(--pf-primary);
    box-shadow: var(--pf-shadow-md);
}
.pf-hero .pf-buy-button:hover {
    background: var(--pf-gray-100);
}

/* CTA section button */
.pf-cta .pf-buy-button {
    background: linear-gradient(135deg, var(--pf-accent) 0%, var(--pf-accent-hover) 100%);
    color: var(--pf-white);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.pf-cta .pf-buy-button:hover {
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
}

/* Cross-sell card buttons */
.pf-cross-sell-card .pf-buy-button {
    width: 100%;
    background: var(--pf-primary);
    color: var(--pf-white);
}
.pf-cross-sell-card .pf-buy-button:hover {
    background: var(--pf-primary-light);
}

/* =========================================
   PAIN POINTS
   ========================================= */
.pf-pain-points {
    background: var(--pf-white);
}
.pf-pain-points .pf-container { max-width: 800px; }
.pf-pain-points h2 { text-align: center; margin-bottom: var(--pf-space-lg); }
.pf-pain-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pf-pain-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--pf-gray-200);
    font-size: 1.05rem;
}
.pf-pain-list li:last-child { border-bottom: none; }
.pf-pain-list li::before {
    content: '⚠️';
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* =========================================
   SOLUTION
   ========================================= */
.pf-solution {
    background: var(--pf-gray-50);
    text-align: center;
}
.pf-solution .pf-lead {
    font-size: 1.25rem;
    color: var(--pf-gray-700);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================
   BENEFITS
   ========================================= */
.pf-benefits {
    background: var(--pf-white);
}
.pf-benefits h2 { text-align: center; margin-bottom: var(--pf-space-md); }
.pf-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--pf-space-md);
}
.pf-benefit-item {
    background: var(--pf-white);
    border: 1px solid var(--pf-gray-200);
    border-radius: var(--pf-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--pf-shadow-sm);
}
.pf-benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--pf-shadow-md);
    border-color: var(--pf-gray-300);
}
.pf-benefit-item .pf-icon {
    display: block;
    font-size: 2rem;
    color: var(--pf-success);
    margin-bottom: 0.75rem;
}
.pf-benefit-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--pf-gray-900);
}
.pf-benefit-item p {
    margin: 0;
    color: var(--pf-gray-500);
    font-size: 0.95rem;
}

/* =========================================
   FEATURES
   ========================================= */
.pf-features {
    background: var(--pf-gray-50);
}
.pf-features h2 { text-align: center; margin-bottom: var(--pf-space-md); }

/* =========================================
   DEMO / PRODUCT PREVIEW
   ========================================= */
.pf-demo {
    background: var(--pf-white);
    text-align: center;
}
.pf-demo h2 { margin-bottom: var(--pf-space-md); }

/* =========================================
   SOCIAL PROOF
   ========================================= */
.pf-social-proof {
    background: var(--pf-gray-50);
}
.pf-social-proof h2 { text-align: center; margin-bottom: var(--pf-space-md); }
.pf-testimonial {
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--pf-gray-700);
    padding: var(--pf-space-md);
    background: var(--pf-white);
    border-left: 4px solid var(--pf-accent);
    border-radius: 0 var(--pf-radius) var(--pf-radius) 0;
    box-shadow: var(--pf-shadow-sm);
}
.pf-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--pf-gray-500);
}

/* =========================================
   AUDIENCE (FOR / NOT FOR)
   ========================================= */
.pf-audience {
    background: var(--pf-white);
}
.pf-audience h2 { text-align: center; margin-bottom: var(--pf-space-md); }
/* Simple two-column layout */
.pf-audience .pf-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--pf-space-lg);
}
@media (max-width: 768px) {
    .pf-audience .pf-container { grid-template-columns: 1fr; }
}

/* =========================================
   GUARANTEE
   ========================================= */
.pf-guarantee {
    background: var(--pf-gray-50);
    border-top: 3px solid var(--pf-accent);
}
.pf-guarantee h2 { text-align: center; color: var(--pf-success); }

/* =========================================
   FAQ
   ========================================= */
.pf-faq {
    background: var(--pf-white);
}
.pf-faq h2 { text-align: center; margin-bottom: var(--pf-space-md); }
.pf-faq-list dt {
    font-weight: 600;
    margin-top: 1.5rem;
    color: var(--pf-gray-900);
}
.pf-faq-list dd {
    margin-left: 1.5rem;
    color: var(--pf-gray-600);
    margin-bottom: 1rem;
}

/* =========================================
   CROSS-SELL (RELATED PRODUCTS)
   ========================================= */
.pf-cross-sell {
    background: linear-gradient(180deg, var(--pf-white) 0%, var(--pf-gray-50) 100%);
}
.pf-section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}
.pf-section-subtitle {
    text-align: center;
    color: var(--pf-gray-500);
    margin-top: 0;
    margin-bottom: var(--pf-space-lg);
    font-size: 1.1rem;
}
.pf-cross-sell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--pf-space-md);
    margin-top: var(--pf-space-md);
}
.pf-cross-sell-card {
    background: var(--pf-white);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pf-gray-200);
}
.pf-cross-sell-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pf-shadow-lg);
}
.pf-cross-sell-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--pf-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pf-cross-sell-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pf-cross-sell-placeholder {
    color: var(--pf-gray-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pf-cross-sell-content {
    padding: 1rem 1.25rem 0.75rem;
    flex: 1;
}
.pf-cross-sell-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pf-gray-900);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.pf-cross-sell-desc {
    font-size: 0.9rem;
    color: var(--pf-gray-500);
    margin: 0;
    line-height: 1.5;
}
.pf-cross-sell-footer {
    padding: 1rem 1.25rem;
    background: var(--pf-gray-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--pf-gray-200);
}
.pf-cross-sell-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pf-success);
}
.pf-cross-sell-footer .pf-buy-button {
    flex-shrink: 0;
}

/* =========================================
   CTA SECTION
   ========================================= */
.pf-cta {
    text-align: center;
    padding: var(--pf-space-xl) var(--pf-space-sm);
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    color: var(--pf-white);
}
.pf-cta h2 { color: var(--pf-white); font-size: 2.2rem; margin-bottom: 0.5rem; }
.pf-cta p {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: var(--pf-space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.pf-secure-note {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 0.75rem;
}

/* =========================================
   FOOTER
   ========================================= */
.pf-footer {
    background: var(--pf-gray-900);
    color: var(--pf-gray-300);
    padding: var(--pf-space-lg) var(--pf-space-sm);
    font-size: 0.9rem;
}
.pf-footer hr {
    border: 0;
    height: 1px;
    background: var(--pf-gray-700);
    margin: 0 auto var(--pf-space-md);
    max-width: 200px;
}
.pf-footer p { margin: 0.25rem 0; }
.pf-footer a {
    color: var(--pf-accent);
    text-decoration: none;
}
.pf-footer a:hover { text-decoration: underline; }

/* =========================================
   MOBILE STICKY CTA
   ========================================= */
.pf-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--pf-white);
    border-top: 1px solid var(--pf-gray-200);
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
}
.pf-mobile-cta .pf-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pf-success);
}
.pf-mobile-cta .pf-buy-button {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

/* Show mobile CTA only on small screens */
@media (max-width: 768px) {
    .pf-mobile-cta { display: flex; }
    .pf-wrapper { padding-bottom: 80px; } /* make space for sticky CTA */
    h1 { font-size: 2rem; }
    .pf-hero { padding-top: 4rem; padding-bottom: 4rem; }
    .pf-btn-large, .pf-btn-xlarge { width: 100%; }
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */
@media (max-width: 640px) {
    :root { --pf-font-size-base: 16px; }
    .pf-section { padding: 3rem var(--pf-space-sm); }
    .pf-hero-title { font-size: 1.85rem; }
    .pf-hero-subtitle { font-size: 1.05rem; }
    h2 { font-size: 1.75rem; }
    .pf-cross-sell-grid { grid-template-columns: 1fr; }
}

/* =========================================
   UTILITY: Accessibility
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for accessibility (optional) */
.pf-skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pf-primary);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.pf-skip-link:focus { top: 0; }
