/* Page-local styles extracted from landing/product_section.html */

/* =====================================================================
   Product page section-local styles
     A. Sticky pill nav (left in flow; centers when stuck — matches customers)
     B. Stacked panels + BG chapter numerals (01–04) + separators
     C. Bullet dot
     D. View-switcher pills (per-panel sub-pills)
   ===================================================================== */

/* ----- A. Sticky pill nav (same behavior as customers page) ---------- */
.product-nav-row {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}
/* Compact pill bar: beige track; inactive = text only; active = white inset pill */
.product-tabs {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1px;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3px;
    background: var(--bone);
    border: 1px solid var(--rule);
    border-radius: 9999px;
    box-shadow:
        0 1px 2px rgba(15, 61, 46, 0.05),
        0 4px 12px -4px rgba(15, 61, 46, 0.08);
    transition:
        background-color 200ms ease,
        box-shadow 200ms ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
    .product-tabs {
        transition:
            background-color 200ms ease,
            box-shadow 200ms ease;
    }
}
.product-tab {
    flex: 0 1 auto;
    padding: 6px 8px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--stone);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
}
@media (min-width: 480px) {
    .product-tabs {
        gap: 2px;
        padding: 4px;
    }
    .product-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}
@media (min-width: 768px) {
    .product-tab {
        padding: 9px 14px;
        font-size: 13px;
    }
}
@media (hover: hover) {
    .product-tab:not(.is-active):hover {
        color: var(--ink);
    }
}
.product-tab.is-active {
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 61, 46, 0.10);
}

/* ----- B. Stacked panels + separators ------------------------------- */
.product-panel-chapter {
    position: relative;
    overflow: hidden;
}
/* Anchored to the panel <section> (full-bleed band), not the inner text grid */
.product-panel-chapter-num {
    position: absolute;
    left: 1rem; /* Tailwind left-4 */
    right: auto;
    top: 1.5rem;
    pointer-events: none;
    user-select: none;
    font-family: Georgia, 'Times New Roman', ui-serif, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(4.5rem, 14vw, 9rem);
    line-height: 1;
    color: rgba(15, 61, 46, 0.10);
}
.product-panel-chapter.bg-bone .product-panel-chapter-num {
    color: rgba(15, 61, 46, 0.12);
}
.product-panel {
    scroll-margin-top: 8rem;
}
.product-panel + .product-panel {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--rule);
}
@media (min-width: 768px) {
    .product-panel + .product-panel {
        margin-top: 6rem;
        padding-top: 6rem;
    }
}

/* ----- C. Bullet dot ------------------------------------------------ */
.product-bullet-dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 9999px;
    background: var(--forest);
    margin-top: 7px;
    flex-shrink: 0;
}

/* ----- D. View-switcher pills (per-panel sub-pills) ----------------- */
.product-subtabs-wrap {
    background: var(--bone);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 12px 14px;
}
.product-subtabs-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--stone);
    margin: 0 0 8px;
}
.product-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
/* Proposals: tighter chrome; wrap on mobile, single row from md up */
.product-subtabs-wrap--proposals {
    padding: 8px 10px;
}
.product-subtabs--proposals {
    flex-wrap: wrap;
    gap: 6px;
    row-gap: 8px;
    overflow-x: visible;
}
.product-subtabs--proposals .product-subtab {
    flex: 0 1 auto;
    padding: 5px 10px;
    font-size: 12px;
}
@media (min-width: 768px) {
    .product-subtabs--proposals {
        flex-wrap: nowrap;
        gap: 4px;
        row-gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .product-subtabs--proposals .product-subtab {
        flex: 0 0 auto;
    }
}
/* Sub-pills: same treatment as .product-tab / .product-tab.is-active */
.product-subtab {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--stone);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
    white-space: nowrap;
}
@media (hover: hover) {
    .product-subtab:not(.is-active):hover {
        color: var(--ink);
    }
}
.product-subtab.is-active {
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(15, 61, 46, 0.10);
}
.product-subpanel { display: none; }
.product-subpanel.is-active {
    display: block;
    animation: productSubpanelFade 280ms cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes productSubpanelFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .product-subpanel.is-active { animation: none; }
}
