/* Accessibility styles */
.skip-link {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #7c3aed;
    color: white;
    padding: 1rem 2rem;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 4px;
}

.skip-link:hover {
    background: #6d28d9;
}

/* Focus styles for better accessibility */
:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography - Uniform heading sizes */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.5;
}

h6 {
    font-size: 1rem;
    line-height: 1.5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

@media (min-width: 640px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1.5rem;
        height: 4rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.5rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    border-radius: 12px;
}

.logo-text {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.hero .btn-primary {
    background: white;
    color: #7c3aed;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
}

.hero-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .hero-store-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-store-buttons .store-button {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-store-buttons .btn {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .hero-store-buttons {
        justify-content: flex-start;
    }
}

.hero-store-buttons .store-button {
    transition: transform 0.2s ease;
    display: flex;
}

.hero-store-buttons .store-button:hover {
    transform: translateY(-2px);
}

.hero-store-buttons .store-button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    border-radius: 6px;
}

.hero-store-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-store-buttons .store-button {
    display: flex;
    align-items: center;
}

.hero-store-buttons img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.hero-store-buttons .btn-outline {
    height: 55px;  /* Increased height to match store badges */
    padding: 0 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 8px;  /* Reduced border radius */
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-store-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.hero-store-buttons .btn-outline:active {
    transform: translateY(0);
}

.hero-store-buttons .store-button {
    transition: transform 0.2s ease;
}

.hero-store-buttons .store-button:hover {
    transform: translateY(-1px);
}

.hero-store-buttons .store-button:active {
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .hero-store-buttons {
        justify-content: flex-start;
    }
}

.hero .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.hero .btn-primary:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.hero .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero .btn-outline:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Non-hero buttons */
.btn-primary {
    background: #7c3aed;
    color: white;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-outline:hover {
    background: #f1f5f9;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
    mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 20%, transparent 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        order: -1;  /* Move image above text on mobile */
        margin-bottom: 1rem;
    }

    .hero-phone {
        width: 220px;
        height: 440px;
    }
}

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

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
        padding-right: 2rem;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.animated-underline {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-weight: 900;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #c4b5fd);
    transform: scaleX(0);
    transform-origin: left;
    animation: drawUnderline 1.5s ease-out forwards;
    animation-delay: 0.8s;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

@keyframes drawUnderline {
    0% {
        transform: scaleX(0);
    }
    100% {
        transform: scaleX(1);
    }
}

/* Make the animation repeat every 5 seconds */
.animated-underline::after {
    animation: drawUnderline 1.5s ease-out forwards infinite;
    animation-delay: 0.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
    .hero p {
        margin: 0 0 2rem;
    }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-phone {
    position: relative;
    width: 280px;
    height: 570px;
    background: #1e293b;
    border-radius: 3rem;
    padding: 1rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: rotate(-5deg);
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 2rem;
}

.phone-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 2rem;
}

.hero-shape-1,
.hero-shape-2,
.hero-shape-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    z-index: -1;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    background: #4f46e5;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: #7c3aed;
    bottom: -50px;
    left: -50px;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    background: #6d28d9;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .hero-shape-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .hero-shape-2 {
        width: 150px;
        height: 150px;
        bottom: -30px;
        left: -30px;
    }

    .hero-shape-3 {
        width: 100px;
        height: 100px;
    }
}

/* Section styles */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: #f1f5f9;
    color: #334155;  /* Ensuring text has good contrast against the light background */
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #475569;  /* Darker gray for better contrast */
    max-width: 42rem;
    margin: 0 auto 4rem;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Card styles */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon-wrapper {
    width: 3rem;
    height: 3rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.card-description {
    color: #64748b;
}

/* Step styles */
.step {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 4rem;
    height: 4rem;
    background: #ede9fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-icon-svg {
    width: 2rem;
    height: 2rem;
    color: #7c3aed;
}

.step-number {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 2rem;
    height: 2rem;
    background: #7c3aed;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

/* Phone mockup styles */
.phone-mockup {
    max-width: 280px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    border: 10px solid #1e293b;
    border-radius: 2.5rem;
    background: black;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Test fact styles */
.test-fact {
    background: #f1f5f9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.test-fact-icon {
    width: 2rem;
    height: 2rem;
    color: #7c3aed;
    margin: 0 auto 0.5rem;
}

.test-fact-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.test-fact-label {
    font-size: 0.875rem;
    color: #64748b;
}

/* Info box styles */
.info-box {
    background: #faf5ff;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.info-box h3 {
    color: #6b21a8;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #7c2d91;
}

/* FAQ styles */
.faq-item {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
}

.faq-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    color: #64748b;
}

/* Download banner styles */
.download-banner {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.download-content h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-content p {
    font-size: 1.125rem;
    color: #c4b5fd;
    max-width: 36rem;
    margin: 0 auto 2rem;
}

.download-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* QR code styles */
.qr-codes {
    display: flex;
    gap: 2rem;
}

.qr-code {
    text-align: center;
}

.qr-frame {
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.qr-frame img {
    width: 8rem;
    height: 8rem;
    display: block;
}

/* Store button styles */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.store-button img {
    height: 3.5rem;
    transition: transform 0.3s;
}

.store-button:hover img {
    transform: scale(1.05);
}

/* Footer styles */
.footer {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    padding: 0;
}

.footer-logo .logo-icon {
    width: 2rem;
    height: 2rem;
}

.footer-logo .logo-text {
    font-size: 1.125rem;
    color: #0f172a;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #7c3aed;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;  /* Darker gray for better contrast */
}

.footer-bottom #current-year {
    color: #475569;  /* Even darker for the year text */
}

/* Responsive styles */
@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .qr-codes {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-section {
        flex-direction: column;
    }
    
    .desktop-btn {
        display: none;
    }
}

/* Desktop button styles */
.desktop-btn {
    display: block;
    text-align: center;
    width: 100%;
    max-width: 200px;
}

@media (min-width: 640px) {
    .desktop-btn {
        width: auto;
        max-width: none;
    }
}

/* Animation styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* Content Grid styles */
.content-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card p {
    color: #64748b;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style-type: none;
    padding: 0;
}

.info-card li {
    color: #64748b;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.info-card li::before {
    content: "✓";
    color: #7c3aed;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Policy pages styles */
.policy-content {
    max-width: 48rem;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: #334155;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.policy-section p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.policy-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: #64748b;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}