/**
 * Add URL / Pricing Page Styles
 * Extracted from addurl/index.php for cacheability
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #00498f;
    --primary-dark: #003870;
    --primary-light: #e6f0ff;
    --secondary: #0066cc;
    --accent: #00498f;
    --success: #28a745;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg: #f8f9fa;
    --white: #fff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Override site CSS for addurl page elements */
.hero h1, .hero h2, .hero p,
.pricing-section h2, .pricing-section h3, .pricing-section p,
.cta-section h2, .cta-section p,
.card-name, .card-tier, .feature-item {
    font-style: normal !important;
    letter-spacing: normal !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #003870 100%);
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 52px) !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    color: white !important;
    line-height: 1.1 !important;
    margin-bottom: 20px;
}

.hero h1 span {
    color: white !important;
}

.hero p {
    font-size: 18px !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    color: rgba(255,255,255,0.9) !important;
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-hero-primary {
    background: white !important;
    color: var(--primary) !important;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-hero-secondary {
    background: transparent !important;
    color: white !important;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.3) !important;
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.5) !important;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.hero-stats .stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-trust-item svg {
    width: 18px;
    height: 18px;
    fill: var(--success);
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0 80px;
    background: var(--bg);
}

.pricing-header {
    text-align: center;
    margin-bottom: 64px;
}

.pricing-header h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    color: var(--text) !important;
    margin-bottom: 16px;
}

/* Billing Toggle */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.billing-toggle label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.billing-toggle label.active {
    color: var(--primary);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.active::after {
    transform: translateX(22px);
}

.save-badge {
    background: var(--success);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-top: -44px;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.pricing-card.featured .card-mockup {
    margin-top: 44px;
}

@media (max-width: 1100px) {
    .pricing-card.featured {
        margin-top: 0;
    }
}

/* Card Mockup/Preview Image */
.card-mockup {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f7ff 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.card-mockup img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.mockup-placeholder {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mockup-placeholder .mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mockup-placeholder .mockup-logo {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-placeholder .mockup-logo svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.mockup-placeholder .mockup-title {
    flex: 1;
}

.mockup-placeholder .mockup-title-bar {
    height: 12px;
    background: var(--text);
    border-radius: 4px;
    width: 80%;
    margin-bottom: 6px;
}

.mockup-placeholder .mockup-subtitle-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    width: 60%;
}

.mockup-placeholder .mockup-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-placeholder .mockup-line {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.mockup-placeholder .mockup-line:nth-child(1) { width: 100%; }
.mockup-placeholder .mockup-line:nth-child(2) { width: 90%; }
.mockup-placeholder .mockup-line:nth-child(3) { width: 75%; }

/* Card Content */
.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-tier {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 4px;
}

.card-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.card-price .currency {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.card-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.card-price .period {
    font-size: 16px;
    color: var(--text-muted);
    margin-left: 4px;
}

.card-price .paddle-gross {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.card-billing {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card-cta {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.card-cta-primary {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.card-cta-primary:hover {
    background: var(--primary-dark) !important;
}

.card-cta-secondary {
    background: var(--white) !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}

.card-cta-secondary:hover {
    background: var(--primary-light) !important;
}

/* Card Features */
.card-features,
.card-content .features {
    list-style: none;
    flex: 1;
}

.card-features li,
.card-content .features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text);
    border-top: 1px solid var(--border);
}

.card-features li:first-child,
.card-content .features li:first-child {
    border-top: none;
}

.card-features li svg,
.card-content .features li svg {
    width: 18px;
    height: 18px;
    fill: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Inherited features note */
.card-content .features li.inherited-note {
    font-weight: 600;
    color: var(--primary);
    font-style: italic;
    border-top: none;
    padding-top: 0;
}

.card-content .features li.inherited-note svg {
    fill: var(--primary);
}

/* Testimonials Section - matches /upgrade/ page style */
.testimonials-section {
    padding: 60px 0;
    background: var(--bg);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 22px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    color: var(--primary) !important;
    margin-bottom: 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 3px solid var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 13px !important;
    font-style: italic !important;
    color: #555 !important;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: left;
    flex-grow: 1;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.testimonial-author img {
    width: 20px;
    height: 15px;
    border: 1px solid #ddd;
}

.testimonial-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .testimonial-card {
        padding: 14px;
    }
    
    .testimonial-text {
        font-size: 12px !important;
        margin-bottom: 10px;
    }
    
    .testimonial-author {
        font-size: 12px;
    }
}

/* Why Choose Section */
.why-section {
    padding: 80px 0;
    background: var(--white);
}

.why-section h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 48px;
}

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

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    text-align: center;
    padding: 24px;
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.why-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

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

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

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--primary);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item .stat-number {
    font-size: 48px;
    font-weight: 800;
    display: block;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    color: var(--white);
}

.cta-box h2 {
    font-size: 32px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    margin-bottom: 16px;
    color: white !important;
}

.cta-box p {
    font-size: 18px !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    opacity: 0.9;
    margin-bottom: 32px;
    color: white !important;
}

.cta-box .btn {
    background: var(--white);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.footer a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Pricing note */
.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Free card styling */
.pricing-card.free-card {
    border-style: dashed;
}

.pricing-card.free-card:hover {
    border-color: #6b7280;
}

/* Direct Checkout Modal */
.dc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.dc-overlay.active {
    display: flex;
}

.dc-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: dcSlideUp 0.3s ease;
}

@keyframes dcSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dc-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.dc-close:hover {
    background: var(--bg);
    color: var(--text);
}

.dc-header {
    text-align: center;
    margin-bottom: 28px;
}

.dc-plan-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dc-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
}

.dc-header p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.dc-form-group {
    margin-bottom: 18px;
}

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

.dc-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.dc-form-group input:focus {
    border-color: var(--primary);
}

.dc-form-group input.dc-error {
    border-color: #dc3545;
}

.dc-error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.dc-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.dc-submit:hover {
    background: var(--primary-dark);
}

.dc-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.dc-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.dc-footer svg {
    width: 14px;
    height: 14px;
    fill: var(--success);
    vertical-align: -2px;
    margin-right: 4px;
}

.dc-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dc-secure span {
    display: flex;
    align-items: center;
    gap: 4px;
}
