/**
 * Premium Digital Solutions Platform - Modern Design System & Component Library
 * Brand: Premium Digital | Tagline: Build Smarter Online
 * WCAG 2.2 AA compliant, responsive, accessible, reduced-motion aware
 */

:root {
    /* Brand Color Tokens */
    --pr-primary: #1e3a8a;          /* Deep Trust Navy */
    --pr-primary-hover: #172554;
    --pr-primary-light: #3b82f6;    /* Vibrant Blue */
    --pr-primary-50: #eff6ff;
    --pr-primary-100: #dbeafe;
    
    --pr-accent: #0284c7;           /* Sky Blue Accent */
    --pr-accent-hover: #0369a1;
    --pr-accent-soft: #f0f9ff;
    
    --pr-amber: #d97706;            /* Warm Amber Accent */
    --pr-amber-soft: #fffbeb;
    
    --pr-success: #059669;          /* Emerald Green */
    --pr-success-soft: #ecfdf5;
    --pr-danger: #dc2626;
    --pr-danger-soft: #fef2f2;
    
    /* Neutrals & Surfaces */
    --pr-bg: #f8fafc;               /* Crisp Modern Light Canvas */
    --pr-surface: #ffffff;          /* Pure White Cards */
    --pr-surface-alt: #f1f5f9;      /* Subtle Contrast */
    --pr-surface-dark: #0f172a;     /* Deep Slate for Headers/Footers */
    
    /* Typography Colors */
    --pr-text-main: #0f172a;        /* High Contrast Slate (14:1) */
    --pr-text-muted: #475569;       /* Secondary Muted (7:1) */
    --pr-text-subtle: #64748b;      /* Tertiary (4.6:1) */
    --pr-text-inverse: #ffffff;
    
    /* Borders & Dividers */
    --pr-border: #e2e8f0;
    --pr-border-focus: #3b82f6;
    
    /* Shadows */
    --pr-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --pr-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
    --pr-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.07);
    --pr-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --pr-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    
    /* Border Radii */
    --pr-radius-sm: 6px;
    --pr-radius-md: 10px;
    --pr-radius-lg: 16px;
    --pr-radius-full: 9999px;
    
    /* Typography Font Stacks */
    --pr-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --pr-font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    
    /* Transitions */
    --pr-trans: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Base resets & typography */
body.priceroots-app, body.premium-digital-app {
    background-color: var(--pr-bg);
    color: var(--pr-text-main);
    font-family: var(--pr-font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Focus styles for WCAG 2.2 AA */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--pr-primary-light);
    outline-offset: 2px;
}

/* Skip link */
.pr-skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: var(--pr-primary);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 10000;
    border-radius: var(--pr-radius-sm);
    transition: top 0.2s ease;
    font-weight: 600;
}
.pr-skip-link:focus {
    top: 1rem;
}

/* Header & Navigation Bar */
.pr-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pr-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--pr-trans);
}

.pr-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.pr-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--pr-primary);
}

.pr-brand-logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-accent) 100%);
    color: #fff;
    border-radius: var(--pr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.pr-brand-text {
    display: flex;
    flex-direction: column;
}

.pr-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pr-primary);
    line-height: 1.1;
}

.pr-brand-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pr-text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pr-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pr-nav-link {
    color: var(--pr-text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: var(--pr-radius-sm);
    transition: var(--pr-trans);
}

.pr-nav-link:hover, .pr-nav-link.active {
    color: var(--pr-primary);
    background-color: var(--pr-surface-alt);
}

.pr-nav-cta {
    background: var(--pr-primary);
    color: #fff !important;
    padding: 0.55rem 1.15rem;
    border-radius: var(--pr-radius-md);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--pr-shadow-sm);
    transition: var(--pr-trans);
}

.pr-nav-cta:hover {
    background: var(--pr-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--pr-shadow-md);
}

/* Mobile Nav Toggle */
.pr-mobile-toggle {
    display: none;
    background: var(--pr-surface-alt);
    border: 1px solid var(--pr-border);
    width: 44px;
    height: 44px;
    border-radius: var(--pr-radius-md);
    color: var(--pr-text-main);
    cursor: pointer;
    font-size: 1.15rem;
    align-items: center;
    justify-content: center;
    transition: var(--pr-trans);
}

.pr-mobile-toggle:hover {
    background: var(--pr-border);
    color: var(--pr-primary);
}

@media (max-width: 991px) {
    .pr-mobile-toggle {
        display: inline-flex;
    }
    .pr-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 2px solid var(--pr-border);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 0.6rem;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
        z-index: 9999;
    }
    .pr-nav.is-open {
        display: flex !important;
        animation: prNavSlideDown 0.25s ease-out;
    }
    .pr-nav-link {
        width: 100%;
        padding: 0.85rem 1.1rem;
        font-size: 1rem;
        border-radius: var(--pr-radius-md);
    }
    .pr-nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 0.75rem;
        padding: 0.85rem;
    }
}

@keyframes prNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.pr-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--pr-bg) 100%);
    overflow: hidden;
    border-bottom: 1px solid var(--pr-border);
}

.pr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: var(--pr-primary-50);
    border: 1px solid var(--pr-primary-100);
    color: var(--pr-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--pr-radius-full);
    margin-bottom: 1.25rem;
}

.pr-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--pr-text-main);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .pr-hero-title {
        font-size: 2.25rem;
    }
}

.pr-hero-title-accent {
    background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pr-hero-lead {
    font-size: 1.2rem;
    color: var(--pr-text-muted);
    margin-bottom: 2rem;
    max-width: 620px;
    line-height: 1.6;
}

.pr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

/* Buttons */
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--pr-radius-md);
    text-decoration: none;
    transition: var(--pr-trans);
    cursor: pointer;
    border: none;
}

.pr-btn-primary {
    background: var(--pr-primary);
    color: #fff;
    box-shadow: var(--pr-shadow-sm);
}

.pr-btn-primary:hover {
    background: var(--pr-primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--pr-shadow-md);
}

.pr-btn-secondary {
    background: #fff;
    color: var(--pr-text-main);
    border: 1px solid var(--pr-border);
    box-shadow: var(--pr-shadow-xs);
}

.pr-btn-secondary:hover {
    background: var(--pr-surface-alt);
    color: var(--pr-primary);
    border-color: var(--pr-border-focus);
    transform: translateY(-2px);
}

.pr-btn-outline {
    background: transparent;
    color: var(--pr-primary);
    border: 1px solid var(--pr-primary);
}

.pr-btn-outline:hover {
    background: var(--pr-primary-50);
    color: var(--pr-primary-hover);
}

.pr-btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    border-radius: var(--pr-radius-sm);
}

/* Hero Showcase Card */
.pr-hero-preview-box {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    box-shadow: var(--pr-shadow-xl);
    overflow: hidden;
    position: relative;
}

.pr-window-bar {
    background: var(--pr-surface-alt);
    border-bottom: 1px solid var(--pr-border);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pr-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.pr-dot-red { background: #ef4444; }
.pr-dot-yellow { background: #f59e0b; }
.pr-dot-green { background: #10b981; }

.pr-window-url {
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-sm);
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    color: var(--pr-text-subtle);
    font-family: var(--pr-font-mono);
    margin-left: 0.5rem;
    flex-grow: 1;
}

/* Featured Category Cards */
.pr-category-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--pr-trans);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--pr-shadow-sm);
}

.pr-category-card:hover {
    transform: translateY(-4px);
    border-color: var(--pr-primary-light);
    box-shadow: var(--pr-shadow-lg);
    color: inherit;
}

.pr-category-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--pr-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.pr-icon-blue { background: var(--pr-primary-50); color: var(--pr-primary); }
.pr-icon-sky { background: var(--pr-accent-soft); color: var(--pr-accent); }
.pr-icon-emerald { background: var(--pr-success-soft); color: var(--pr-success); }
.pr-icon-amber { background: var(--pr-amber-soft); color: var(--pr-amber); }

.pr-category-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pr-text-main);
    margin-bottom: 0.5rem;
}

.pr-category-desc {
    font-size: 0.9375rem;
    color: var(--pr-text-muted);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.pr-category-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--pr-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Flagship Product Showcase */
.pr-flagship-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    overflow: hidden;
    box-shadow: var(--pr-shadow-lg);
    margin: 2.5rem 0;
}

.pr-flagship-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-accent) 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.8rem;
    border-radius: var(--pr-radius-full);
}

.pr-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--pr-surface-alt);
    border-radius: var(--pr-radius-sm);
    font-size: 0.8125rem;
    color: var(--pr-text-muted);
    font-weight: 600;
}

/* Free Tool Components */
.pr-tool-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--pr-shadow-sm);
    transition: var(--pr-trans);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pr-tool-card:hover {
    border-color: var(--pr-accent);
    transform: translateY(-4px);
    box-shadow: var(--pr-shadow-md);
}

/* Free Tool Interactive Workspaces */
.pr-tool-workspace {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 2rem;
    box-shadow: var(--pr-shadow-md);
    margin-bottom: 2.5rem;
}

.pr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pr-stat-box {
    background: var(--pr-surface-alt);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-md);
    padding: 1rem;
    text-align: center;
}

.pr-stat-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pr-primary);
    line-height: 1.1;
    font-family: var(--pr-font-mono);
}

.pr-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.pr-textarea-wrapper {
    position: relative;
    margin-bottom: 1.25rem;
}

.pr-textarea {
    width: 100%;
    min-height: 220px;
    padding: 1.25rem;
    font-family: var(--pr-font-sans);
    font-size: 1rem;
    color: var(--pr-text-main);
    background: #fff;
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-md);
    resize: vertical;
    transition: var(--pr-trans);
}

.pr-textarea:focus {
    border-color: var(--pr-primary-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pr-tool-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

.pr-tool-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Image Drag and Drop Area */
.pr-dropzone {
    border: 2px dashed var(--pr-border);
    border-radius: var(--pr-radius-lg);
    background: var(--pr-surface-alt);
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--pr-trans);
}

.pr-dropzone:hover, .pr-dropzone.is-dragover {
    border-color: var(--pr-primary-light);
    background: var(--pr-primary-50);
}

.pr-dropzone-icon {
    font-size: 2.75rem;
    color: var(--pr-primary-light);
    margin-bottom: 1rem;
}

/* Section Headings */
.pr-section {
    padding: 4rem 0;
}

.pr-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.pr-section-eyebrow {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pr-accent);
    margin-bottom: 0.5rem;
}

.pr-section-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--pr-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.pr-section-subtitle {
    font-size: 1.0625rem;
    color: var(--pr-text-muted);
    line-height: 1.6;
}

/* Services Cards */
.pr-service-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pr-shadow-sm);
    transition: var(--pr-trans);
}

.pr-service-card:hover {
    border-color: var(--pr-primary-light);
    transform: translateY(-4px);
    box-shadow: var(--pr-shadow-lg);
}

.pr-service-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--pr-primary);
    margin: 1rem 0;
}

.pr-service-price small {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pr-text-muted);
}

.pr-check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 2rem;
}

.pr-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--pr-text-muted);
}

.pr-check-list i {
    color: var(--pr-success);
    font-size: 1rem;
    margin-top: 0.2rem;
}

/* Learning Hub & Article Cards */
.pr-article-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pr-shadow-xs);
    border-top: 3px solid var(--pr-primary-light);
    transition: var(--pr-trans);
    text-decoration: none;
    color: inherit;
}

.pr-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pr-shadow-md);
    border-top-color: var(--pr-accent);
    color: inherit;
}

.pr-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pr-text-subtle);
    margin-bottom: 0.75rem;
}

.pr-article-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pr-text-main);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.pr-article-excerpt {
    font-size: 0.9375rem;
    color: var(--pr-text-muted);
    flex-grow: 1;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Trust Banner */
.pr-trust-box {
    background: #ffffff;
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--pr-shadow-sm);
}

/* Footer */
.pr-footer {
    background: var(--pr-surface-dark);
    color: #cbd5e1;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid #1e293b;
}

.pr-footer-grid {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 1fr 1fr !important;
    gap: 2.5rem !important;
    width: 100% !important;
    margin: 0 !important;
}

.pr-footer-col {
    min-width: 0;
}

@media (max-width: 991px) {
    .pr-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

@media (max-width: 600px) {
    .pr-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.pr-footer h5 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.pr-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pr-footer-links li {
    margin-bottom: 0.65rem;
}

.pr-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.pr-footer-links a:hover {
    color: #38bdf8;
    transform: translateX(3px);
}

.pr-footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.pr-footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pr-footer-bottom a:hover {
    color: #38bdf8;
}

/* ================================================
   GLOBAL LAYOUT NORMALIZATION — fixes all pages
   ================================================ */

/* Page content wrapper: provides consistent vertical spacing after .pr-hero */
.pr-page-content {
    padding: 4rem 0 5rem;
}

.pr-page-content-sm {
    padding: 2.5rem 0 4rem;
}

/* Inner page hero — centered variant used on most inner pages */
.pr-hero.text-center .pr-hero-title {
    margin-left: auto;
    margin-right: auto;
}
.pr-hero.text-center .pr-hero-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Prevent hero from being too tall on inner pages (no two-column layout) */
.pr-hero.text-center {
    padding: 3.5rem 0 2.75rem;
}

/* Section alternating background (light alt for odd sections) */
.pr-section-alt {
    background: var(--pr-surface-alt);
    border-top: 1px solid var(--pr-border);
    border-bottom: 1px solid var(--pr-border);
}

/* Deals & legacy pages: hero-style banner */
.deals-hero {
    background: linear-gradient(135deg, var(--pr-primary) 0%, var(--pr-accent) 100%);
    color: #fff;
    border-radius: var(--pr-radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.deals-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.deals-hero-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.deals-filters {
    background: var(--pr-surface);
    border: 1px solid var(--pr-border);
    border-radius: var(--pr-radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--pr-shadow-xs);
}

.page-deals {
    padding: 2.5rem 0 5rem;
}

/* Legacy product-card discount badge */
.product-card-discount {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--pr-danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--pr-radius-sm);
}

/* Products grid: 4 columns on large, 3 on md, 2 on sm, 1 on xs */
.products-grid-responsive {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}
.products-grid-responsive > .col {
    flex: 0 0 25%;
    max-width: 25%;
}
@media (max-width: 1199px) {
    .products-grid-responsive > .col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
@media (max-width: 767px) {
    .products-grid-responsive > .col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 479px) {
    .products-grid-responsive > .col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Deals empty state */
.page-deals-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--pr-text-muted);
}
.page-deals-empty h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--pr-text-main);
}

/* Guides page */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .guides-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog grid consistency */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix Bootstrap .bg-light in sections — use platform token */
.priceroots-app .bg-light, .premium-digital-app .bg-light {
    background-color: var(--pr-surface-alt) !important;
}

/* Fix Bootstrap text-muted color to use platform token */
.priceroots-app .text-muted, .premium-digital-app .text-muted {
    color: var(--pr-text-muted) !important;
}

/* Ensure Bootstrap .border uses platform border color */
.priceroots-app .border, .premium-digital-app .border {
    border-color: var(--pr-border) !important;
}

/* Service page layout wrapper */
.pr-services-layout {
    padding: 3.5rem 0 5rem;
}

/* Pagination consistent styling */
.pagination .page-link {
    color: var(--pr-primary);
    border-color: var(--pr-border);
}
.pagination .page-item.active .page-link {
    background-color: var(--pr-primary);
    border-color: var(--pr-primary);
    color: #fff;
}
.pagination .page-link:hover {
    background-color: var(--pr-primary-50);
    color: var(--pr-primary);
}

/* ================================================
   RESPONSIVE UTILITIES
   ================================================ */
@media (max-width: 768px) {
    .pr-hero-title { font-size: 2.1rem; }
    .pr-section-title { font-size: 1.75rem; }
    .pr-section { padding: 2.5rem 0; }
    .pr-page-content { padding: 2.5rem 0 3.5rem; }
    .deals-hero h1 { font-size: 1.8rem; }
    .pr-hero.text-center { padding: 2.5rem 0 2rem; }
}
@media (max-width: 576px) {
    .pr-hero-title { font-size: 1.85rem; }
    .pr-hero-actions { flex-direction: column; }
    .pr-hero-actions .pr-btn { width: 100%; justify-content: center; }
}

/* ================================================
   INTERACTIVE ESTIMATOR & DIRECTORY FILTER STYLES
   ================================================ */
.cursor-pointer {
    cursor: pointer;
}

.shadow-2xs {
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

.category-pill {
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.82rem;
}
.category-pill:hover {
    transform: translateY(-1px);
}

.estimator-radio-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--pr-surface);
    border: 1px solid var(--pr-border);
    user-select: none;
    display: block;
}
.estimator-radio-card:hover {
    border-color: var(--pr-primary-light);
    background-color: #f8fafc;
}
.estimator-radio-card.active {
    border-color: var(--pr-primary-light) !important;
    background-color: #eff6ff !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.estimator-checkbox-label {
    transition: all 0.2s ease-in-out;
    background-color: var(--pr-surface);
    user-select: none;
}
.estimator-checkbox-label:hover {
    border-color: var(--pr-primary-light);
    background-color: #f8fafc;
}

#estimator-breakdown-list li {
    display: flex;
    align-items: flex-start;
}
#estimator-breakdown-list li i {
    margin-top: 3px;
    flex-shrink: 0;
}

