/* ========================================
   ComiLog v2 LP — Page-specific styles
   Pro-quality app LP redesign
   ======================================== */

/* ----------------------------------------
   Typography scale (high jump-rate)
   h1: 3.8rem / 900    — strong hero
   h2: 2rem   / 800    — section titles
   h3: 1.4rem / 700    — feature/shot titles
   body: 1rem / 1.8    — comfortable reading
   ---------------------------------------- */

/* ---- Product header (standalone LP) ---- */
.cv2-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
}

.cv2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.cv2-header-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cv2-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}

.cv2-header-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.cv2-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cv2-header-install {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px -4px rgba(16, 185, 129, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.cv2-header-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.55);
    color: #fff;
}

/* ---- Hero ---- */
.cv2-hero {
    position: relative;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f8fafc 100%);
    padding: 64px 0 0;
    overflow: hidden;
}

.cv2-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cv2-hero::after {
    content: '';
    position: absolute;
    bottom: -160px;
    left: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cv2-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.cv2-hero-text {
    padding-bottom: 64px;
    max-width: 540px;
}

.cv2-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.cv2-badge-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.cv2-badge-free {
    display: inline-flex;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
}

.cv2-hero-h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.12;
    margin-bottom: 24px;
    color: var(--slate-900);
}

.cv2-hero-pain {
    font-size: 1rem;
    color: var(--slate-500);
    margin-bottom: 16px;
    font-weight: 600;
}

.cv2-pain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.cv2-pain-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--slate-700);
    font-weight: 600;
}

.cv2-pain-list li::before {
    content: '\2715'; /* ✕ */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cv2-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.cv2-hero-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--slate-400);
}

.cv2-hero-links a {
    color: var(--slate-500);
    font-size: 0.85rem;
}

.cv2-hero-links a:hover {
    color: var(--slate-700);
    text-decoration: underline;
}

.cv2-hero-img {
    position: relative;
    z-index: 1;
    align-self: flex-end;
}

.cv2-hero-img img {
    width: 100%;
    max-width: 400px;
    max-height: calc(100vh - 70px);
    object-fit: contain;
    object-position: bottom center;
    border-radius: 16px 16px 0 0;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.14));
}

/* ---- CTA Button (fallback) ---- */
.cv2-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #10b981;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.cv2-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
    color: white;
}

/* ---- Google Play Badge ---- */
.cv2-badge-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.cv2-badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.cv2-google-play-badge {
    display: block;
    height: 56px;
    width: auto;
}

.cv2-trust-text {
    font-size: 0.85rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* ---- Section common ---- */
.cv2-section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

/* ---- Features ---- */
.cv2-features {
    padding: 88px 0 72px;
    background: white;
}

.cv2-features .feature-card {
    border: none;
    background: var(--slate-50);
    border-radius: 20px;
    padding: 36px 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cv2-features .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(16, 185, 129, 0.18);
}

.cv2-features .feature-card .icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 18px -6px rgba(16, 185, 129, 0.5);
}

.cv2-features .feature-card .icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cv2-features .feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--slate-900);
}

.cv2-features .feature-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--slate-600);
}

/* ---- Screenshots ---- */
.cv2-screenshots {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
}

.cv2-shot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
    margin-bottom: 100px;
}

.cv2-shot-row:last-child {
    margin-bottom: 0;
}

.cv2-shot-row-reverse {
    direction: rtl;
}

.cv2-shot-row-reverse > * {
    direction: ltr;
}

/* ---- Phone mockup frame + 3D tilt ---- */
.cv2-phone-mockup {
    display: inline-flex;
    justify-content: center;
    position: relative;
    width: fit-content;
    margin: 0 auto;
    /* CSS phone frame: dark chrome */
    background: #1c1c1e;
    border-radius: 44px;
    padding: 14px 10px 10px;
    box-shadow:
        0 0 0 2px #38383a,
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* notch */
.cv2-phone-mockup::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1c1c1e;
    border-radius: 0 0 18px 18px;
    z-index: 2;
    pointer-events: none;
}

/* left side: image leans slightly toward text (rotateY negative → right edge faces viewer) */
.cv2-shot-row .cv2-phone-mockup {
    transform: perspective(1000px) rotateY(-7deg) rotateX(2deg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.28));
}

/* right side: mirror */
.cv2-shot-row-reverse .cv2-phone-mockup {
    transform: perspective(1000px) rotateY(7deg) rotateX(2deg);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.28));
}

/* hover: ease toward flat to reveal screenshot */
.cv2-shot-row:hover .cv2-phone-mockup {
    transform: perspective(1000px) rotateY(-2deg) rotateX(0deg);
}

.cv2-shot-row-reverse:hover .cv2-phone-mockup {
    transform: perspective(1000px) rotateY(2deg) rotateX(0deg);
}

.cv2-shot-img {
    width: 100%;
    max-width: 260px;
    /* inner frame radius (44px outer − 10px padding) */
    border-radius: 34px;
    display: block;
    position: relative;
    z-index: 1;
}

/* ---- Screenshot text side ---- */
.cv2-shot-num {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #10b981;
    margin-bottom: 14px;
}

.cv2-shot-num::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: #10b981;
    vertical-align: middle;
    margin-left: 12px;
    opacity: 0.5;
}

.cv2-shot-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.cv2-shot-text p {
    font-size: 1rem;
    color: var(--slate-600);
    line-height: 1.8;
    max-width: 380px;
}

.cv2-shot-row-reverse .cv2-shot-text p {
    margin-left: auto;
}

/* ---- CTA Mid ---- */
.cv2-cta-mid {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    padding: 56px 0;
}

.cv2-cta-mid-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.cv2-cta-mid-copy {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.cv2-cta-mid .cv2-trust-text {
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Recommend ---- */
.cv2-recommend {
    padding: 48px 0;
    background: var(--slate-50);
}

/* ---- CTA Bottom ---- */
.cv2-cta-bottom {
    background: #f0fdf4;
    padding: 60px 0;
}

.cv2-cta-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.cv2-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}

.cv2-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv2-cta-bottom-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.cv2-cta-bottom-text p {
    color: var(--slate-600);
    font-size: 1rem;
}

.cv2-cta-bottom .cv2-trust-text {
    color: var(--slate-500);
}

/* ---- SEO wrapper (tightened spacing) ---- */
.cv2-seo-wrapper {
    padding: 60px 0 40px;
}

.cv2-seo-wrapper .seo-about-section {
    margin-top: 0;
    padding-top: 40px;
    border-top: none;
}

/* ========================================
   Unify legacy blocks with v2 design
   (Recommend + SEO sections reused old
   style.css classes — restyle in cv2 tone)
   ======================================== */

/* ---- Recommend card ---- */
.cv2-recommend .app-recommend {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    max-width: 760px;
    box-shadow: 0 16px 40px -18px rgba(16, 185, 129, 0.18);
}

.cv2-recommend .app-recommend > h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.cv2-recommend .recommend-item {
    align-items: flex-start;
    gap: 14px;
}

.cv2-recommend .recommend-item strong {
    color: var(--slate-900);
    font-weight: 700;
}

/* ---- Green check icon (mirrors hero pain ✕) ---- */
.cv2-recommend .check-icon,
.cv2-seo-wrapper .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -3px rgba(16, 185, 129, 0.5);
}

.cv2-recommend .check-icon::before,
.cv2-seo-wrapper .check-icon::before {
    content: '\2713'; /* ✓ */
}

/* ---- SEO section ---- */
.cv2-seo-wrapper .seo-about-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.cv2-seo-wrapper .seo-pain-list li {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
    font-weight: 600;
}

.cv2-seo-wrapper .seo-detail-grid {
    gap: 24px;
    max-width: 860px;
}

.cv2-seo-wrapper .seo-detail-card {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cv2-seo-wrapper .seo-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -12px rgba(16, 185, 129, 0.18);
}

.cv2-seo-wrapper .seo-detail-icon {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(16, 185, 129, 0.5);
    margin-bottom: 16px;
}

.cv2-seo-wrapper .seo-detail-icon svg {
    width: 22px;
    height: 22px;
}

.cv2-seo-wrapper .seo-detail-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
}

.cv2-seo-wrapper .seo-detail-card p {
    font-size: 0.92rem;
    color: var(--slate-600);
    line-height: 1.8;
}

.cv2-seo-wrapper .recommend-item strong a {
    font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .cv2-header-inner {
        height: 56px;
    }

    .cv2-header-brand {
        gap: 8px;
        flex-shrink: 0;
    }

    .cv2-header-name {
        font-size: 0.98rem;
    }

    .cv2-header-right {
        gap: 10px;
        flex-shrink: 0;
    }

    .cv2-header-right .lang-switch {
        padding: 3px;
    }

    .cv2-header-right .lang-switch button {
        padding: 4px 7px;
    }

    .cv2-header-install {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .cv2-hero {
        padding-top: 48px;
    }

    .cv2-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cv2-hero-text {
        padding-bottom: 32px;
        text-align: center;
        max-width: 100%;
    }

    .cv2-hero-h1 {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .cv2-badge {
        justify-content: center;
    }

    .cv2-pain-list li {
        justify-content: center;
    }

    .cv2-hero-cta {
        align-items: center;
    }

    .cv2-hero-links {
        justify-content: center;
    }

    .cv2-hero-img img {
        max-width: 240px;
        max-height: none;
        border-radius: 12px 12px 0 0;
    }

    .cv2-section-title {
        font-size: 1.6rem;
        margin-bottom: 36px;
    }

    .cv2-features {
        padding: 56px 0 48px;
    }

    .cv2-screenshots {
        padding: 64px 0;
    }

    .cv2-shot-row,
    .cv2-shot-row-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 28px;
        margin-bottom: 64px;
        text-align: center;
    }

    /* flatten 3D tilt on mobile */
    .cv2-shot-row .cv2-phone-mockup,
    .cv2-shot-row-reverse .cv2-phone-mockup,
    .cv2-shot-row:hover .cv2-phone-mockup,
    .cv2-shot-row-reverse:hover .cv2-phone-mockup {
        transform: none;
        filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.16));
    }

    .cv2-shot-img {
        max-width: 240px;
    }

    .cv2-shot-num {
        margin-bottom: 10px;
    }

    .cv2-shot-text h3 {
        font-size: 1.35rem;
    }

    .cv2-shot-text p,
    .cv2-shot-row-reverse .cv2-shot-text p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cv2-cta-mid-copy {
        font-size: 1.4rem;
    }

    .cv2-cta-bottom-text h2 {
        font-size: 1.6rem;
    }

    .cv2-google-play-badge {
        height: 50px;
    }

    .cv2-recommend .app-recommend {
        padding: 28px 20px;
    }

    .cv2-seo-wrapper .seo-about-heading {
        font-size: 1.4rem;
    }
}
