/* ---- ChessFlow landing page ---- */

/* ---- Hero tagline (h2 for hierarchy, styled as plain text) ---- */
.cf-hero-tagline {
    max-width: 640px;
    margin: 12px auto 0 auto;
    text-align: center;
    color: #6b7280;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

/* ---- Header subtitle (page doesn't load elo.css) ---- */
.internal-subtitle {
    max-width: 640px;
    margin: 12px auto 0 auto;
    text-align: center;
    color: #6b7280;
    line-height: 1.6;
    font-size: 16px;
}

.cf-hero-intro {
    max-width: 600px;
    margin: 18px auto 0 auto;
    text-align: center;
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

.cf-hero-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-dark);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

[data-theme="dark"] .cf-hero-badge {
    background: rgba(37, 99, 235, 0.25);
    color: #93c5fd;
}

/* ---- Hero visual ---- */
.cf-hero-visual {
    display: flex;
    justify-content: center;
    margin: 30px 0 10px;
}

.cf-hero-visual img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
    .cf-hero-visual img {
        max-height: 380px;
    }
}

/* ---- Sections ---- */
.cf-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 50px 20px;
    border-top: 1px solid var(--border);
}

.cf-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px;
    text-align: center;
}

.cf-section-intro {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 28px;
}

.cf-mobile-break {
    display: none;
}

@media (max-width: 600px) {
    .cf-mobile-break {
        display: inline;
    }
}

.cf-section p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 15px;
}

.cf-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 8px;
}

.cf-section a,
.cf-hero-intro a {
    color: var(--link-color);
    font-weight: 600;
    text-decoration: none;
}

.cf-section a:hover,
.cf-hero-intro a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cf-section {
        padding: 36px 20px;
    }

    .cf-section h2 {
        font-size: 22px;
    }
}

/* ---- Split layout (text + image) ---- */
.cf-section-wide {
    max-width: 920px;
}

.cf-split {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 10px;
}

.cf-split-reverse {
    flex-direction: row-reverse;
}

.cf-split-text {
    flex: 1 1 50%;
    min-width: 0;
}

.cf-split-text h3:first-child {
    margin-top: 0;
}

.cf-split-media {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
}

.cf-split-media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.cf-split-media-portrait img {
    max-width: 420px;
}

@media (max-width: 700px) {
    .cf-split {
        flex-direction: column;
    }

    .cf-split-reverse {
        flex-direction: column;
    }

    .cf-split-media {
        order: -1;
        width: 100%;
    }

    .cf-split-media img {
        max-width: 100%;
    }

    .cf-split-media-portrait img {
        max-width: 320px;
    }
}

/* ---- Ecosystem personal visual ---- */
.cf-ecosystem-visual {
    display: flex;
    justify-content: center;
    margin: 0 0 30px;
}

.cf-ecosystem-visual img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .cf-ecosystem-visual img {
        max-height: 380px;
    }
}

/* ---- Feature grid ---- */
.cf-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

.cf-feature h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.cf-feature p {
    font-size: 14px;
    margin: 0;
}

/* ---- Ecosystem (Prepare better / Play better) ---- */
.cf-ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 10px;
}

.cf-ecosystem-col {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.cf-ecosystem-col h3 {
    margin-top: 0;
}

.cf-ecosystem-note {
    margin-top: 20px;
    text-align: center;
}

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

/* ---- FAQ ---- */
.cf-faq-item {
    margin-bottom: 22px;
}

.cf-faq-item h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.cf-faq-item p {
    margin: 0;
}

/* ---- Final CTA ---- */
.cf-cta-final {
    text-align: center;
    padding: 50px 20px 70px;
}

.cf-cta-final h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 10px;
}

.cf-cta-final p {
    color: #6b7280;
    font-size: 16px;
}

.cf-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 10px 22px 10px 10px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-light);
}

.cf-cta-badge-icon {
    width: 64px;
    height: 64px;
    border-radius: 22.5%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.cf-cta-badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cf-cta-badge-text strong {
    font-size: 17px;
    font-weight: 800;
}

.cf-cta-badge-text span {
    font-size: 14px;
    color: #6b7280;
}

/* ---- Hero download CTA (App Store) ---- */
.cf-hero-cta {
    margin: 22px auto 0 auto;
    text-align: center;
}

.cf-store-link {
    display: inline-block;
    line-height: 0;
    border-radius: 12px;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.cf-store-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.cf-store-badge {
    width: 180px;
    height: 60px;
}

/* switch light/dark come .app-cta-badge in style.css */
.cf-store-badge-dark {
    display: none;
}

[data-theme="dark"] .cf-store-badge-light {
    display: none;
}

[data-theme="dark"] .cf-store-badge-dark {
    display: inline-block;
}

.cf-store-note {
    margin: 12px auto 0 auto;
    color: #6b7280;
    font-size: 14px;
}

/* ---- Video (embed responsive 16:9) ---- */
.cf-video {
    max-width: 860px;
    margin: 34px auto 10px;
    padding: 0 20px;
}

.cf-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
    background: #000;
}

.cf-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Pricing (FAQ) ---- */
.cf-pricing {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}

.cf-pricing strong {
    color: inherit;
    font-weight: 700;
}

.cf-pricing-note {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 600px) {
    .cf-store-badge {
        width: 160px;
        height: 53px;
    }

    .cf-video {
        padding: 0 12px;
    }
}
