/* ReadSync Landing Page Styles */

/* Sticky Footer Layout */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, #0a1024 0%, #16306e 55%, #2563eb 100%);
    color: white;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 75% 45%, rgba(56, 189, 248, 0.22) 0%, transparent 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.app-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.app-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    margin-bottom: 1.5rem;
}

.btn-download {
    background: #2563eb;
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.55);
}

.btn-icon {
    font-size: 1.4rem;
}

.hero-note {
    font-size: 0.95rem;
    opacity: 0.75;
    margin: 0;
}

/* Hero Visual — Two Devices, Same Page */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.devices {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.device {
    background: linear-gradient(180deg, #111c3a, #070d1e);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.device-mac {
    width: 260px;
    height: 190px;
    border-radius: 12px;
}

.device-phone {
    width: 120px;
    height: 230px;
    border-radius: 22px;
    padding: 1.1rem 0.8rem 0.8rem;
}

.device-phone::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: -0.4rem auto 0.2rem;
}

.page-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.page-lines span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.16);
}

.page-lines span.short {
    width: 60%;
}

.page-lines span.highlight {
    background: rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.18);
}

.page-lines span.highlight-alt {
    background: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.16);
    width: 75%;
}

.page-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.6rem;
}

.page-device {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #93c5fd;
    font-weight: 700;
}

.page-number {
    font-size: 0.8rem;
    color: #e0f2fe;
    font-weight: 600;
}

.sync-arc {
    position: absolute;
    left: 50%;
    top: -34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    white-space: nowrap;
}

.sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    animation: pulse 2s ease-in-out infinite;
}

.sync-text {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bae6fd;
}

/* Problem / Solution Band */
.problem-band {
    padding: 4rem 0;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.problem-band .container {
    max-width: 760px;
    text-align: center;
}

.problem-band p {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.problem-band p.answer {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.feature-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: #f9fafb;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.instruction {
    text-align: center;
    padding: 2rem;
}

.instruction-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.instruction h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.instruction p {
    color: #666;
    line-height: 1.6;
}

/* Privacy Strip */
.privacy-strip {
    padding: 4.5rem 0;
    background: linear-gradient(135deg, #0a1024, #16306e);
    color: white;
}

.privacy-strip .container {
    max-width: 780px;
    text-align: center;
}

.privacy-strip h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-strip p {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.privacy-strip p:last-child {
    margin-bottom: 0;
}

.privacy-strip a {
    color: #93c5fd;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    background: white;
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.pricing-lede {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d4ed8;
    max-width: 680px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.pricing-card.pro {
    border-color: #2563eb;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.15);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}

.pricing-card .plan-note {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.85rem;
    color: #444;
    line-height: 1.6;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: 700;
}

.pricing-footnote {
    text-align: center;
    color: #6b7280;
    max-width: 640px;
    margin: 2.5rem auto 0;
    line-height: 1.7;
}

/* Requirements + Final CTA */
.requirements-section {
    padding: 5rem 0;
    background: #f9fafb;
    text-align: center;
}

.requirements-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.requirements-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.requirement {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    color: #374151;
    font-weight: 600;
}

.btn-store-large {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.btn-store-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}

/* App Footer Section */
.app-footer-section {
    padding: 2rem 0;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.footer-links {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.separator {
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-text,
    .hero-visual,
    .sync-dot {
        animation: none;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-title {
        font-size: 3rem;
    }

    .hero-visual {
        margin-top: 3rem;
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .app-title {
        font-size: 2.5rem;
    }

    .app-tagline {
        font-size: 1.2rem;
    }

    .btn-download {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .features-section,
    .how-it-works,
    .pricing-section,
    .requirements-section {
        padding: 3rem 0;
    }

    .features-section h2,
    .how-it-works h2,
    .pricing-section h2,
    .requirements-section h2 {
        font-size: 2rem;
    }

    .problem-band p {
        font-size: 1.15rem;
    }

    .problem-band p.answer {
        font-size: 1.3rem;
    }

    .devices {
        gap: 1rem;
    }

    .device-mac {
        width: 190px;
        height: 160px;
    }

    .device-phone {
        width: 100px;
        height: 190px;
    }
}
