/* Base Styles */
:root {
    --primary-color: #4F46E5;
    --secondary-color: #10B981;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --gray-color: #6B7280;
    --error-color: #EF4444;
    --success-color: #10B981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
header {
    padding: 15px 20px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    padding: 5px 0;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    font-family: 'Inter', sans-serif;
}

.logo-rx {
    color: var(--primary-color);
    font-weight: 800;
}

.footer-logo-text {
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 90vh;
    min-height: calc(var(--vh, 1vh) * 90);
    max-height: 90vh;
    max-height: calc(var(--vh, 1vh) * 90);
    height: 90vh;
    height: calc(var(--vh, 1vh) * 90);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden by default, shown if video fails */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* 70% transparent black tint as requested */
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.hero-cta {
    margin-top: 10px;
}

.waitlist-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.waitlist-btn:hover {
    background-color: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.hero-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    position: relative;
    background-color: var(--light-color);
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    overflow: hidden;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Target SVG elements to apply the dark color */
.feature-icon svg {
    fill: var(--dark-color);
}

.feature-icon img[src$=".svg"] {
    filter: invert(13%) sepia(10%) saturate(1400%) hue-rotate(176deg) brightness(95%) contrast(96%);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--gray-color);
}

/* CTA Section */
.cta {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 80px 5% 80px 5%;
    background-color: #F3F4F6;
    border-radius: 12px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--gray-color);
    margin-bottom: 30px;
    font-size: 1.125rem;
}

.email-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    width: 100%;
}

.form-row {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}

.form-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

.form-row button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 6px 6px 0;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.recaptcha-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

/* reCAPTCHA styles */
.g-recaptcha {
    margin: 0;
    display: inline-block;
}

.form-message {
    margin-top: 1rem;
    font-size: 1rem;
}

.form-message.success {
    color: #059669;
}

.form-message.success.final {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 2rem auto;
    max-width: 600px;
    line-height: 1.5;
}

.form-message.error {
    color: #DC2626;
}

/* Phone mockup styles */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    background-color: transparent;
}

.phone-mockup img {
    max-width: 100%;
    border-radius: 24px;
    max-height: 500px; /* Control the height */
    object-fit: contain;
}

/* Transparent image handling */
.transparent-image {
    background-color: transparent !important;
    mix-blend-mode: normal;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Testimonials Section */
.testimonials {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    justify-content: center;
}

.testimonial {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author p {
    font-weight: 600;
    color: var(--gray-color);
    margin-bottom: 0;
    font-size: 0.85rem;
    text-align: left;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .testimonial p {
        font-size: 0.9rem;
    }
    
    .author-image {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-logo {
    justify-self: start;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: end;
}

.social-links a {
    color: #D1D5DB;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
    padding-top: 20px;
    border-top: 1px solid #374151;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }
    
    .logo {
        padding: 0;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .hero {
        min-height: 90vh;
        min-height: calc(var(--vh, 1vh) * 90);
        max-height: 90vh;
        max-height: calc(var(--vh, 1vh) * 90);
        height: 90vh;
        height: calc(var(--vh, 1vh) * 90);
    }
    
    .hero-content {
        padding: 15px;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .waitlist-btn {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    .cta {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row input {
        border-radius: 6px;
        margin-bottom: 10px;
    }
    
    .form-row button {
        border-radius: 6px;
    }
    
    .recaptcha-container {
        justify-content: center;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: left top;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-self: center;
    }
    
    .footer-links, .social-links {
        justify-content: center;
    }
    
    .phone-mockup img {
        max-height: 300px;
        margin: 20px 0;
    }
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(79, 70, 229, 0.8);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background-color: rgba(79, 70, 229, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Add these styles to your existing CSS */
.g-recaptcha {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.email-form button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

.email-form button:disabled:hover {
    background-color: #a0a0a0;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        margin: 10px auto;
    }
}

/* Legal Pages Styles */
.legal-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 80px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.last-updated {
    color: var(--gray-color);
    font-style: italic;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.legal-section p, 
.legal-section ul {
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
}

/* Responsive adjustments for legal pages */
@media (max-width: 768px) {
    .legal-content {
        padding: 0 20px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
}

.attribution {
    font-size: 10px;
    margin-top: 10px;
    color: #9CA3AF;
}

.attribution a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.attribution a:hover {
    color: white;
}

/* iPhone X, XS, 11 Pro specific adjustments */
@media only screen 
and (device-width: 375px) 
and (device-height: 812px) 
and (-webkit-device-pixel-ratio: 3),
only screen 
and (device-width: 414px) 
and (device-height: 896px) 
and (-webkit-device-pixel-ratio: 2),
only screen 
and (device-width: 414px) 
and (device-height: 896px) 
and (-webkit-device-pixel-ratio: 3),
only screen
and (max-width: 428px) /* Added general iPhone size */
{
    header {
        padding: 5px 10px;
    }
    
    .logo {
        padding: 0;
    }
    
    .hero {
        min-height: 90vh;
        min-height: calc(var(--vh, 1vh) * 90);
        max-height: 90vh;
        max-height: calc(var(--vh, 1vh) * 90);
        height: 90vh;
        height: calc(var(--vh, 1vh) * 90);
    }
    
    .hero-content {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
} 