/* ============================================
   Product detail page styles
   ============================================ */

/* Product Hero — icon + title + tagline */
.product-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 24px 64px;
    background: #f5f5f7;
}

.product-hero-icon {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* No white frame around icon */
.product-hero-icon.no-frame {
    box-shadow: none;
}

.product-hero h1 {
    font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.product-hero-tagline {
    font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(18px, 2.2vw, 24px);
    color: #6e6e73;
    margin-bottom: 16px;
}

.product-hero-desc {
    font-size: 17px;
    color: #86868b;
    max-width: 900px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.product-hero-desc strong {
    color: #1d1d1f;
}

/* Feature sections — stacked: text above, full-width image below */
.feature-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 0;
}

.feature-stacked + .feature-stacked {
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-stacked .feature-text {
    max-width: 900px;
    margin-bottom: 8px;
}

.feature-stacked .feature-text h2 {
    font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.feature-stacked .feature-text p {
    font-size: 17px;
    line-height: 1.55;
    color: #6e6e73;
}

.feature-stacked .feature-text p strong {
    color: #1d1d1f;
}

.feature-stacked .feature-text p + p {
    margin-top: 16px;
}

.feature-stacked .feature-image {
    width: 100%;
    max-width: 1100px;
}

.feature-stacked .feature-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    display: block;
}

/* Legacy side-by-side (keep for future use) */
.feature {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 32px;
}

.feature + .feature:not(.feature-stacked) {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-text {
    flex: 1;
    min-width: 0;
}

.feature-text h2 {
    font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1d1d1f;
    margin-bottom: 14px;
}

.feature-text p {
    font-size: 17px;
    line-height: 1.55;
    color: #6e6e73;
}

.feature-text p strong {
    color: #1d1d1f;
}

.feature-image {
    flex: 1.4;
    min-width: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);
    display: block;
}

.feature-right {
    flex-direction: row;
}

.feature-left {
    flex-direction: row-reverse;
}

/* Bottom CTA */
.product-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px 64px;
    background: #f5f5f7;
    margin-top: 32px;
}

.product-cta h2 {
    font-family: "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

/* Retina-sized images — constrain to logical pixel width, centered, no frame */
.feature-stacked .feature-image-retina img {
    max-width: 752px;
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

/* Footnote */
.product-footnote {
    font-size: 14px;
    color: #86868b;
    margin-top: 20px;
    max-width: 480px;
    line-height: 1.5;
}

.page-footnotes {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px 48px;
    color: #86868b;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.page-footnotes p {
    scroll-margin-top: 80px;
}

.page-footnotes p + p {
    margin-top: 8px;
}

.footnote-ref {
    color: #6e6e73;
    text-decoration: none;
    margin-left: 1px;
}

.footnote-ref:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .product-hero {
        padding: 80px 20px 48px;
    }

    .product-hero-desc {
        font-size: 16px;
    }

    .feature-stacked {
        padding: 48px 16px 0;
    }

    .feature-stacked + .feature-stacked {
        padding-top: 40px;
    }

    .feature-stacked .feature-text {
        margin-bottom: 24px;
    }

    .feature-stacked .feature-text h2 {
        font-size: 24px;
    }

    .feature-stacked .feature-text p {
        font-size: 16px;
    }

    .feature {
        flex-direction: column !important;
        gap: 28px;
        padding: 48px 20px;
        text-align: center;
    }

    .feature-text h2 {
        font-size: 24px;
    }

    .feature-text p {
        font-size: 16px;
    }

    .product-cta {
        padding: 48px 20px 64px;
        margin-top: 40px;
    }
}
