/* =========================================
   Production Feature Page
   ========================================= */

:root {
    --prod-text-main: #0F172A;
    --prod-text-muted: #475569;
    --prod-border-radius: 20px;
    --prod-accent: #e8935a;
    --prod-accent-soft: #fdf0e6;
}

html {
    scroll-padding-top: 96px;
}

/* --- Hero: production flow as the page signature --- */
.prod-hero {
    gap: 20px;
    padding-bottom: 40px;
}

.prod-hero-eyebrow {
    margin: 0 0 4px;
    color: var(--prod-accent) !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.prod-hero .hero-title {
    max-width: 16ch;
    font-weight: 700;
}

.prod-hero .hero-title span {
    color: var(--prod-accent);
}

.prod-hero .hero-subtitle {
    max-width: 760px;
}

.prod-hero .hero-cta-button,
.prod-hero .hero-profit-btn {
    min-height: 48px;
    box-sizing: border-box;
}

.prod-hero .hero-cta-button:focus-visible,
.prod-hero .hero-profit-btn:focus-visible,
.prod-faq .faq-question:focus-visible {
    outline: 3px solid var(--prod-accent);
    outline-offset: 3px;
}

.prod-hero-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--primary-header-and-footer-logo);
    box-shadow: 0 20px 50px rgba(4, 13, 18, 0.15);
}

.prod-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Scroll Animation --- */
.prod-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.prod-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Header --- */
.prod-section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-inline: auto;
}

.prod-section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    color: var(--prod-text-main);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.prod-section-header p {
    font-size: 1.125rem;
    color: var(--prod-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   SECTION: Problem & Solution
   ========================================= */
.prod-problem-theme {
    background-color: var(--primary-background);
    color: var(--prod-text-main);
}

.prod-problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.prod-problem-item {
    background-color: var(--primary-header-and-footer-logo);
    border: 1px solid #dbe2f9;
    border-radius: var(--prod-border-radius);
    padding: 32px;
}

.prod-problem-label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--prod-accent-soft);
    color: var(--prod-accent);
    font-size: 13px;
    font-weight: 600;
}

.prod-problem-item h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--prod-text-main);
}

.prod-problem-item p {
    font-size: 1rem;
    color: var(--prod-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   SECTION: Features
   ========================================= */

.prod-bento-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: var(--prod-accent-soft);
    color: var(--prod-accent);
}

/* Hero feature: full-width, side-by-side */
.prod-feature-hero {
    display: flex;
    align-items: center;
    gap: 48px;
    background-color: var(--primary-header-and-footer-background);
    border-radius: var(--prod-border-radius);
    padding: 48px;
    margin-bottom: 24px;
}

.prod-feature-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.prod-feature-hero-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-header-and-footer-logo);
    line-height: 1.4;
}

.prod-feature-hero-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 0;
    max-width: 48ch;
}

.prod-feature-hero-media {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.prod-feature-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

/* Supporting features: 2×2 grid */
.prod-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.prod-feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--primary-header-and-footer-logo);
    border: 1px solid #dbe2f9;
    border-radius: var(--prod-border-radius);
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prod-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(10, 25, 47, 0.06);
}

.prod-feature-card h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
    color: var(--prod-text-main);
    line-height: 1.4;
}

.prod-feature-card p {
    font-size: 1rem;
    color: var(--primary-gray-text);
    line-height: 1.8;
    margin: 0;
}

/* =========================================
   SECTION: How It Works (Timeline)
   ========================================= */
.prod-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.prod-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, var(--prod-accent), #dbe2f9);
    transform: translateX(-50%);
    border-radius: 2px;
}

.prod-timeline-row {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    padding: 32px 0;
}

.prod-timeline-row:nth-child(odd) {
    flex-direction: row;
}

.prod-timeline-row:nth-child(even) {
    flex-direction: row-reverse;
}

.prod-timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--prod-accent);
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--prod-accent-soft);
}

.prod-timeline-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 4px 16px rgba(10,25,47,0.05);
}

.prod-timeline-img {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
}

.prod-timeline-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.prod-timeline-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--prod-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 12px;
}

.prod-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--prod-text-main);
    line-height: 1.4;
}

.prod-detail-text {
    font-size: 0.9375rem;
    color: var(--prod-text-muted);
    line-height: 1.7;
    margin: 0;
}


.prod-flow-section {
    scroll-margin-top: 96px;
}

.prod-faq .faq-question {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    text-align: right;
}

.prod-faq .faq-question span {
    flex-grow: 1;
    color: var(--primary-dark-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 2;
}

.prod-faq .faq-question:hover span {
    color: var(--primary-button-color);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .prod-hero .hero-title {
        font-size: 3rem;
    }

    .prod-section-header h2 {
        font-size: 1.875rem;
    }

    .prod-problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prod-hero .hero-title {
        font-size: 2.25rem;
    }

    .prod-problem-grid {
        grid-template-columns: 1fr;
    }

    /* Timeline: collapse to flat stacked cards */
    .prod-timeline {
        gap: 24px;
    }

    .prod-timeline::before {
        display: none;
    }

    .prod-timeline-row,
    .prod-timeline-row:nth-child(odd),
    .prod-timeline-row:nth-child(even) {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .prod-timeline-dot {
        display: none;
    }

    .prod-timeline-card {
        width: 100%;
        padding: 28px 24px;
        border-radius: 16px;
        position: static;
        order: 1;
    }

    .prod-timeline-num {
        position: static;
        display: inline-flex;
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .prod-timeline-img {
        width: 100%;
        margin-top: 16px;
        border-radius: 16px;
        overflow: hidden;
        order: 2;
    }

    .prod-timeline-img img {
        aspect-ratio: 16/9;
    }

    .prod-detail-title {
        font-size: 1.125rem;
    }

    .prod-detail-text {
        font-size: 0.9375rem;
    }

    .prod-feature-hero {
        flex-direction: column;
        gap: 32px;
        padding: 32px;
    }

    .prod-feature-hero-text h3 {
        font-size: 1.375rem;
    }

    .prod-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .prod-hero .hero-title {
        font-size: 1.875rem;
    }

    .prod-section-header h2 {
        font-size: 1.375rem;
    }

    .prod-timeline {
        gap: 20px;
    }

    .prod-timeline-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .prod-timeline-num {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .prod-timeline-img {
        margin-top: 12px;
        border-radius: 14px;
    }

    .prod-detail-title {
        font-size: 1.0625rem;
    }

    .prod-feature-hero {
        padding: 24px;
    }

    .prod-hero-media {
        margin-top: 20px;
        border-radius: 12px 12px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .prod-reveal,
    .prod-faq .faq-toggle-icon,
    .prod-faq .faq-answer {
        transition: none !important;
    }

    .prod-reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
