/* Pricing Page Styles - Mobile */

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    max-width: 300px;
    padding: 1.5rem;
}

.loading-logo {
    margin-bottom: 2.5rem;
}

.loading-logo img {
    max-width: 220px;
    height: auto;
    opacity: 0.9;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.scroll-dots {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: all 0.3s ease;
    animation: scrollDot 1.5s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes scrollDot {
    0%, 80%, 100% {
        background-color: var(--border-color);
        transform: scale(1);
    }
    40% {
        background-color: var(--primary-color);
        transform: scale(1.3);
    }
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 35px rgba(0, 0, 0, 0.25);
    --header-height: 84px;
    --vh: 1vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevent iOS bounce scrolling issues */
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    /* Remove overflow-y constraint to allow natural scrolling */
    /* Add smooth scrolling optimization for mobile */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--secondary-color);
    overflow-x: hidden;
    /* Remove fixed height constraint that causes scrolling issues */
    min-height: 100vh;
    /* Add mobile scroll optimizations */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.main-wrapper {
    margin-top: var(--header-height);
    /* Remove max-height constraint that restricts content */
    min-height: calc(100vh - var(--header-height));
    /* Allow natural overflow instead of forced scroll container */
    transition: opacity 0.3s ease;
}

.main-content {
    width: 100%;
    /* Ensure main content can expand naturally */
    position: relative;
    /* Add mobile scroll momentum */
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.page-hero {
    height: calc(100vh - var(--header-height));
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--accent-color);
    padding: 0;
    box-sizing: border-box;
}

.hero-content {
    width: 100%;
    padding: 20px;
    transform: translateY(-50px);
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.2;
}

.billing-steps {
    margin-bottom: 25px;
}

.billing-step {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 12px;
    line-height: 1.4;
    border-bottom: 1px solid var(--primary-color);
}

.billing-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-buttons-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.button-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.button-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-align: center;
}

.button-label strong {
    font-weight: 800;
    font-size: 0.8rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    transform: translateY(-30px);
}

.hero-cta-button {
    flex: 1;
    min-width: 0;
    padding: 20px 15px;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    background-color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    -webkit-tap-highlight-color: transparent;
    min-height: 160px;
}

.hero-cta-button:active {
    transform: scale(0.98);
}

.hero-cta-button.primary {
    background-color: var(--primary-color);
}

.hero-cta-button.primary .button-title {
    color: var(--secondary-color);
}

.hero-cta-button.primary .button-payment-breakdown {
    color: var(--secondary-color);
}

.hero-cta-button.primary .button-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.hero-cta-button.secondary {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0),
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%);
    background-size: 12px 12px, 24px 24px, 24px 24px;
}

.hero-cta-button.secondary .button-title {
    color: var(--primary-color);
}

.hero-cta-button.secondary .button-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2px;
}

.button-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.64rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 8px;
    border-bottom: 2px solid currentColor;
    margin-bottom: 4px;
}

.button-payment-breakdown {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    margin-top: 4px;
    opacity: 0.95;
}

.button-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.button-divider {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 25px 0;
    letter-spacing: 2px;
}

.button-divider-inline {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 2px;
    flex-shrink: 0;
    white-space: nowrap;
    margin-right: -4px;
    margin-left: 4px;
    transform: translateY(-4px);
}

/* Main Website Creation Section */
.main-service {
    padding: 15px 0 15px 0;
    background-color: var(--secondary-color);
    scroll-margin-top: var(--header-height);
}

.main-card {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0),
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%);
    background-size: 12px 12px, 24px 24px, 24px 24px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 16px 45px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Additional Services Section */
.additional-services {
    padding: 20px 0 20px 0;
    background-color: var(--accent-color);
    scroll-margin-top: var(--header-height);
}

.services-notice {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 10px;
    margin-bottom: 10px;
}

.important-label {
    font-weight: 700;
    color: #dc2626;
}

.services-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Keep underline on mobile - no hover effect */

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    align-items: stretch;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 50%, #ffffff 100%);
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0),
        linear-gradient(45deg, rgba(0,0,0,0.025) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.025) 25%, transparent 25%);
    background-size: 10px 10px, 20px 20px, 20px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: auto;
}

.service-card:hover {
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 12px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Gold Corner Ribbon */
.service-card.featured {
    border: 2px solid #FFD700;
}

.corner-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    z-index: 10;
}

.corner-ribbon::before {
    content: "BEST";
    position: absolute;
    top: 18px;
    right: -20px;
    width: 100px;
    height: 25px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    text-align: center;
    line-height: 25px;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.corner-ribbon::after {
    content: "";
    position: absolute;
    top: 43px;
    right: -20px;
    width: 100px;
    height: 6px;
    background: linear-gradient(135deg, #DAA520, #B8860B);
    transform: rotate(45deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.service-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.service-prefix {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000;
    text-align: center;
    margin-top: -8px;
    margin-bottom: 0;
    line-height: 1;
}

.service-plus {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    text-align: center;
    margin: 0;
    line-height: 1;
}

.service-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 8px 0;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}

/* Add black box styling for main card title */
.main-card .service-header h2 {
    border: none;
    padding: 0;
    display: inline-block;
    border-radius: 0;
}

/* Adjust Complete Plan title to center the text instead of the icon */
.service-card.featured .service-header h2 {
    margin-left: -18px;
}

.service-icon {
    width: 52px;
    height: 52px;
    margin: 0;
}

.service-icon-spacer {
    width: 52px;
    height: 1px;
}

.service-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    line-height: 1;
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    display: inline-block;
    border-radius: 4px;
    text-align: center;
}

.service-price h2 {
    margin: 0 0 4px 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.service-price span {
    display: block;
    font-size: 1.6rem;
}

.service-price-split {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    border: 2px solid var(--primary-color);
    padding: 10px 16px;
    display: inline-block;
    border-radius: 4px;
    text-align: center;
}

.price-line {
    font-size: 1.2rem;
    line-height: 1.3;
}

.price-line:first-child {
    margin-bottom: 4px;
}

.price-subtext {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    margin-top: 8px;
    max-width: 100%;
}

.price-emphasis {
    font-weight: 700;
}

.service-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-includes h4,
.payment-policy h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-includes ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    display: inline-block;
}

/* Center bullet points for main website creation card only */
.main-card .service-includes ul {
    text-align: center;
}

.main-card .service-includes li {
    position: relative;
    padding-left: 0;
    display: block;
}

.main-card .service-includes li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    left: auto;
    margin-right: 8px;
}

/* Two-column grid for main card bullet points */
.main-card .main-includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
    margin-bottom: 15px;
    text-align: left;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.main-card .main-includes-left,
.main-card .main-includes-right {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-card .main-includes-left li,
.main-card .main-includes-right li {
    position: relative;
    padding-left: 0;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.main-card .main-includes-left li:before,
.main-card .main-includes-right li:before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    display: inline;
}

.main-card .main-includes-bottom {
    text-align: center;
    margin-top: 10px;
}

.main-card .main-includes-bottom li {
    position: relative;
    padding-left: 0;
    display: inline-block;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.main-card .main-includes-bottom li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    left: auto;
    margin-right: 8px;
    line-height: 1.4;
}

.service-includes li {
    padding: 5px 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-includes li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.payment-policy {
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.payment-policy p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.service-note {
    background-color: var(--accent-color);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.service-note p {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.service-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
    font-style: italic;
}

/* Two-column includes grid for Complete Plan */
.includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.includes-left,
.includes-right {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .includes-left li,
.includes-right li {
    padding: 3px 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 16px;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Stack columns on very small screens */
@media (max-width: 350px) {
    .includes-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}.includes-left li:before,
.includes-right li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Referral Program Link */
.referral-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.referral-link:hover {
    color: #4169E1;
    text-decoration: underline;
}

/* CTA Buttons */
.cta-button {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.cta-button.primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.cta-button.secondary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Button loader inline styles */
.btn-loader-inline {
    display: inline-flex;
    gap: 4px;
}

.btn-loader-inline .loader-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: loader-bounce 1.4s infinite ease-in-out both;
}

.btn-loader-inline .loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.btn-loader-inline .loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loader-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Add-Ons Section */
.add-ons {
    padding: 40px 0;
    background-color: var(--secondary-color);
}

.add-ons h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.add-ons-list {
    max-width: 100%;
    margin: 0 auto;
}

.add-on-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
    margin-bottom: 12px;
    background-color: var(--accent-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.add-on-item span:first-child {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.add-on-price {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Final CTA Section */
.final-cta {
    padding: 10px 0 60px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.final-cta h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.cta-button.large {
    max-width: 100%;
    font-size: 1.1rem;
    padding: 16px 35px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .page-hero {
        padding: 20px 0 10px 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .main-service {
        padding: 10px 0 10px 0;
    }
    
    .additional-services {
        padding: 5px 0 30px 0;
    }
    
    .main-card,
    .service-card {
        padding: 18px;
    }
    
    .service-header h2 {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .service-price {
        font-size: 1.2rem;
    }
    
    .service-header h3 {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .service-includes li {
        font-size: 0.85rem;
    }
    
    .payment-policy p {
        font-size: 0.8rem;
    }
    
    .final-cta {
        padding: 40px 0;
    }
    
    .final-cta h2 {
        font-size: 1.7rem;
    }
    
    .add-ons h2 {
        font-size: 1.6rem;
    }
}

/* iOS Safari viewport fix - Less restrictive approach */
@supports (-webkit-touch-callout: none) {
    body {
        /* Use -webkit-fill-available for better iOS support but don't constraint height */
        min-height: -webkit-fill-available;
    }
    
    .main-wrapper {
        /* Only set min-height, allow content to expand naturally */
        min-height: calc(-webkit-fill-available - var(--header-height));
    }
    
    .page-hero {
        min-height: auto;
    }
}