/* ==========================================================================
   Cloud Sync Feature Page – Page-specific styles
   ========================================================================== */

/* ==========================================================================
   INSIGHT SECTION
   ========================================================================== */

.insight-section {
    padding: 96px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.insight-section__inner {
    max-width: 760px;
    margin: 0 auto;
}

.insight-statement {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.insight-body {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 600px;
}

/* ==========================================================================
   BENEFIT SECTION
   ========================================================================== */

.benefit-section {
    padding: 96px 24px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.benefit-section__header {
    max-width: 760px;
    margin: 0 auto 64px;
}

.benefit-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.benefit-section__lead {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
}

/* Narrative mockup container */
.narrative-mockup {
    max-width: 1000px;
    margin: 0 auto 72px;
    position: relative;
}

.narrative-mockup svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

/* Benefit points row below SVG */
.benefit-points {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 48px;
}

.benefit-point__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.benefit-point__text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   SYNC DETAIL SECTION (2-col: text + phone visual)
   ========================================================================== */

.sync-detail-section {
    padding: 96px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sync-detail-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sync-detail-section__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sync-detail-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
}

.sync-detail-section__text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Cross-link card */
.sync-cross-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    align-self: flex-start;
}

.sync-cross-link:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.sync-cross-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.sync-cross-link__icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-blue);
}

.sync-cross-link__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sync-cross-link__name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sync-cross-link__arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Phone visual container */
.sync-detail-section__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-detail-section__visual svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
   RTB / FIG SECTION
   Re-uses shared .feature-figs styles from feature-page.css
   ========================================================================== */

/* No overrides needed – uses shared component */

/* ==========================================================================
   RELATED FEATURES SECTION
   ========================================================================== */

.related-section {
    padding: 96px 24px;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.related-section__inner {
    max-width: 760px;
    margin: 0 auto;
}

.related-section__header {
    margin-bottom: 40px;
}

.related-section__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.related-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.related-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.related-card:hover::before {
    opacity: 1;
}

.related-card__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.related-card__title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.related-card__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.related-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-card__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.related-card:hover .related-card__link svg {
    transform: translateX(3px);
}

/* ==========================================================================
   USE CASE – Device Switch Section
   ========================================================================== */

.usecase-section {
    padding: 96px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.usecase-section__inner {
    max-width: 760px;
    margin: 0 auto;
}

.usecase-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 48px;
}

/* Device switch layout */
.device-switch {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.device-switch__card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.device-switch__card--new {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.04);
}

.device-switch__device-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.device-switch__icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-switch__app-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-switch__app-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-blue);
}

.device-switch__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 100px;
    align-self: flex-start;
}

.device-switch__status--backed-up {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.device-switch__status--restored {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.device-switch__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.device-switch__detail {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.device-switch__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.device-switch__arrow svg {
    width: 28px;
    height: 28px;
}

.device-switch__caption {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ==========================================================================
   TRUST BADGES – Cloud Sync specific
   ========================================================================== */

.sync-trust {
    padding: 0 24px 64px;
    max-width: 900px;
    margin: 0 auto;
}

.sync-trust__inner {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding: 32px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

.sync-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sync-trust__item svg {
    color: var(--accent-blue);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .sync-trust__inner { flex-direction: column; gap: 20px; }
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.feature-faq {
    padding: 80px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.feature-faq__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
    text-align: center;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 12px;
    background: var(--bg-card);
    transition: border-color 0.2s ease;
}

.faq-item:hover { border-color: var(--border-color-hover); }

.faq-item__question {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item__answer {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   CTA SOCIAL PROOF
   ========================================================================== */

.feature-cta__trust {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.feature-cta__trust::before {
    content: '★★★★★ ';
    color: #f59e0b;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.feature-cta {
    padding: 120px 24px;
    background: var(--bg-primary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.feature-cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.feature-cta__sub {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
}

.feature-cta__badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ==========================================================================
   STORE BADGES
   ========================================================================== */

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out-expo);
    min-height: 56px;
}

.store-badge:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.store-badge__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-badge__small {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1;
}

.store-badge__name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.footer__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer__logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.footer__links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--text-secondary);
}

.footer__copy {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    .sync-detail-section__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .sync-detail-section__visual {
        order: -1;
    }

    .device-switch {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .device-switch__arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .benefit-points {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .narrative-mockup {
        overflow-x: auto;
    }

    .insight-section,
    .benefit-section,
    .sync-detail-section,
    .related-section,
    .usecase-section {
        padding: 64px 20px;
    }

    .feature-cta {
        padding: 80px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .related-card,
    .sync-cross-link,
    .store-badge {
        transition: none;
    }
}
