/* ==========================================================================
   CONTEXT PRODUCT PAGE - SECTIONS (SPECS, PRICING, CLINICIANS, TESTIMONIALS,
   SUITABILITY & PLATFORM ARCHITECTURE)
   Inherits centralized design tokens from css/design-tokens.css
   ========================================================================== */

/* --- 1. TECH SPECS STRIP --- */
.section-specs.theme-dark {
    background-color: var(--ds-bg-dark);
    background-image: radial-gradient(
        ellipse 72% 55% at 50% 0%,
        rgba(var(--ds-blue-rgb), 0.14) 0%,
        rgba(var(--rgb-white), 0.02) 48%,
        transparent 75%
    );
    color: var(--ds-text-light);
    padding: clamp(40px, 5.5vh, 64px) 0;
}

.ds-specs-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    margin: 0;
    text-align: left;
}

.spec-card {
    position: relative;
    overflow: hidden;
    grid-column: span 6;
    background: linear-gradient(
        180deg,
        rgba(var(--rgb-white), 0.075) 0%,
        rgba(var(--rgb-white), 0.022) 100%
    );
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border: 1px solid rgba(var(--rgb-white), 0.08);
    border-radius: var(--radius-bento);
    box-shadow:
        inset 0 1px 0 0 rgba(var(--rgb-white), 0.22),
        0 20px 44px rgba(var(--rgb-black), 0.45);
    padding: clamp(22px, 2.8vw, 32px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition:
        transform 0.3s var(--ease-ds),
        border-color 0.3s var(--ease-ds),
        box-shadow 0.3s var(--ease-ds);
}

.spec-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--rgb-white), 0.45) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.spec-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--rgb-white), 0.15);
    box-shadow:
        inset 0 1px 0 0 rgba(var(--rgb-white), 0.32),
        0 26px 52px rgba(var(--rgb-black), 0.55);
}

.spec-card:nth-child(1),
.spec-card:nth-child(4) {
    grid-column: span 7;
    background: linear-gradient(
        155deg,
        rgba(var(--ds-blue-rgb), 0.14) 0%,
        rgba(var(--rgb-white), 0.055) 48%,
        rgba(var(--rgb-white), 0.02) 100%
    );
}

.spec-card:nth-child(2),
.spec-card:nth-child(3) {
    grid-column: span 5;
}

.spec-badge {
    font-size: var(--type-micro);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--ds-blue-accent);
    margin-bottom: 12px;
}

.spec-card h3 {
    font-family: var(--font-heading);
    font-size: var(--type-card-title-sm);
    font-weight: var(--weight-bold);
    color: var(--ds-text-light);
    letter-spacing: var(--tracking-subtle);
    margin: 0 0 10px 0;
    line-height: var(--leading-snug);
}

.spec-card p {
    font-size: var(--text-btn);
    color: var(--ds-text-muted-light);
    line-height: var(--leading-normal);
    margin: 0;
}

/* --- 2. PRICING SECTION --- */
.ds-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: var(--container-max-pricing);
    margin: clamp(24px, 3vh, 36px) auto 0 auto;
    text-align: left;
}

.pricing-card {
    background-color: var(--ds-bg-white);
    border: 1px solid var(--ds-border-light);
    border-radius: var(--radius-card);
    padding: clamp(28px, 3.5vh, 40px) clamp(26px, 3vw, 36px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--ds-blue);
    box-shadow: var(--shadow-featured);
}

.pricing-tier-tag {
    font-size: var(--type-micro);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--ds-text-muted-dark);
    margin-bottom: 8px;
}

.pricing-tier-tag.badge-bundle {
    color: var(--ds-blue);
}

.pricing-title {
    font-family: var(--font-heading);
    font-size: var(--type-card-headline);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-snug);
    color: var(--ds-text-dark);
    margin: 0 0 8px 0;
}

.pricing-desc {
    font-size: var(--type-body);
    color: var(--ds-text-muted-dark);
    line-height: var(--leading-normal);
    margin: 0 0 18px 0;
}

.pricing-figure-group {
    margin-bottom: 20px;
}

.pricing-figure {
    font-family: var(--font-heading);
    font-size: var(--type-price-figure);
    font-weight: var(--weight-bold);
    color: var(--ds-text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
}

.pricing-figure .price-original {
    font-family: var(--font-body);
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: var(--weight-medium);
    color: var(--ds-text-muted-dark);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(var(--rgb-black), 0.42);
    letter-spacing: var(--tracking-snug);
}

.pricing-figure .price-current {
    display: inline-flex;
    align-items: baseline;
    color: var(--ds-text-dark);
}

.pricing-figure .price-current .currency {
    font-size: 0.68em;
    font-weight: var(--weight-semibold);
    margin-right: 1px;
}

.pricing-figure .currency-code {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--ds-text-muted-dark);
}

.pricing-intro-note {
    font-size: var(--type-caption);
    font-weight: var(--weight-medium);
    color: var(--ds-blue);
    margin: 0;
    letter-spacing: var(--tracking-subtle);
}

.pricing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-feature-list li {
    font-size: var(--text-btn);
    line-height: var(--leading-snug);
    color: var(--ds-text-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-feature-list li span {
    color: var(--ds-green);
    font-weight: var(--weight-bold);
}

.pricing-card .ds-btn {
    width: 100%;
    box-sizing: border-box;
}

.pricing-card-actions {
    width: 100%;
    margin-top: auto;
}

/* --- 3. BUILT WITH LIVED EXPERIENCE (BRIGHT POP PANELS) --- */
.lived-experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 0;
}

.lived-experience-panel {
    border-radius: var(--radius-bento);
    padding: clamp(44px, 6vh, 64px) clamp(32px, 3.5vw, 44px);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    box-sizing: border-box;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.lived-experience-panel:hover {
    transform: translateY(-4px);
}

.lived-experience-panel p {
    font-family: var(--font-body);
    font-size: var(--type-panel-copy);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-snug);
    color: var(--ds-bg-white);
    margin: 0;
}

.lived-experience-panel.panel-pop-1 {
    background: var(--gradient-pop-blue);
    box-shadow: 0 14px 32px rgba(var(--ds-blue-rgb), 0.22);
}

.lived-experience-panel.panel-pop-2 {
    background: var(--gradient-pop-green);
    box-shadow: 0 14px 32px rgba(var(--ds-green-rgb), 0.22);
}

.lived-experience-panel.panel-pop-3 {
    background: var(--gradient-pop-orange);
    box-shadow: 0 14px 32px rgba(var(--ds-orange-rgb), 0.22);
}

/* --- 4. MEDICAL PROFESSIONALS & CLINICAL PRACTICE --- */
.section-clinicians-hub {
    background-color: var(--ds-bg-white);
}

.clinician-features-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 24px;
    margin: 0 0 36px 0;
    text-align: left;
}

.clinician-feature-card {
    background: var(--ds-bg-white);
    border: none;
    border-radius: var(--radius-card);
    padding: clamp(28px, 3.2vw, 38px) clamp(24px, 2.8vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.feature-icon-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-tight);
    line-height: 1;
    color: var(--ds-blue);
    margin-bottom: 20px;
}

.clinician-feature-card h3 {
    font-family: var(--font-heading);
    font-size: var(--type-card-title-sm);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-subtle);
    color: var(--ds-text-dark);
    margin: 0 0 10px 0;
    line-height: var(--leading-snug);
}

.clinician-feature-card p {
    font-size: var(--type-body);
    color: var(--ds-text-muted-dark);
    line-height: var(--leading-normal);
    margin: 0;
}

.clinician-action-row {
    margin: 0;
}

.clinician-action-row .ds-cta-group {
    justify-content: flex-start;
    margin-top: 0;
}

/* --- 5. TESTIMONIALS SECTION --- */
.section-testimonials {
    background-color: var(--ds-bg-light);
}

.ds-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 0;
    text-align: left;
}

.testimonial-card {
    background-color: var(--ds-bg-white);
    border: none;
    border-radius: var(--radius-card);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.testimonial-quote {
    font-family: var(--font-body);
    font-size: var(--type-quote);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-subhead);
    letter-spacing: var(--tracking-subtle);
    color: var(--ds-text-dark);
    font-style: normal;
    margin: 0 0 28px 0;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(var(--rgb-black), 0.06);
}

.avatar-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ds-avatar-bg);
    color: var(--ds-text-muted-dark);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--ds-text-dark);
}

.author-role {
    font-size: var(--type-caption);
    color: var(--ds-text-muted-dark);
}

/* --- 6. SUITABILITY ASSESSMENT CALLOUT (CARD STYLES CENTRALIZED IN style.css) --- */
.section-suitability {
    background-color: var(--ds-bg-white);
}

.section-suitability + .section-voice {
    padding-top: 0;
}

/* --- 7. COMMUNICATION PLATFORM ARCHITECTURE DIAGRAM (INSCRIBE FUTURE) --- */
.platform-architecture-card {
    max-width: var(--container-max-platform);
    margin: 0 auto;
    padding: clamp(28px, 3.8vh, 44px) clamp(24px, 3.5vw, 44px) !important;
    box-sizing: border-box;
}

.platform-flow-stage {
    position: relative;
    width: 100%;
    max-width: var(--container-max-diagram);
    height: clamp(352px, 45vh, 412px);
    margin: 18px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.platform-flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-base);
}

.platform-inputs-col {
    position: relative;
    z-index: var(--z-elevated);
    width: 27.5%;
    min-width: 240px;
    max-width: 286px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.platform-node {
    background: var(--ds-bg-white);
    border: 1px solid var(--ds-border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 22px rgba(var(--rgb-black), 0.04);
    box-sizing: border-box;
}

.platform-input-node {
    height: 62px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.platform-node--inscribe {
    border: 1.5px dashed var(--ds-purple-accent);
    background: var(--ds-purple-surface);
    box-shadow: 0 10px 26px rgba(var(--ds-purple-rgb), 0.1);
}

.platform-node-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
    background: var(--ds-bg-gray-box);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-node-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.platform-icon--brain {
    background: var(--ds-purple-tint);
}

.platform-node-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.platform-node-tag {
    font-size: var(--type-badge);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--ds-text-muted-dark);
}

.platform-tag--future {
    color: var(--ds-purple);
}

.platform-tag--output {
    color: var(--ds-green-dark);
}

.platform-node-title {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--ds-text-dark);
    line-height: var(--leading-snug);
}

.platform-center-col {
    position: absolute;
    left: 50%;
    top: 48.913%;
    transform: translate(-50%, -50%);
    z-index: var(--z-elevated);
}

.platform-inscribe-cta-wrap {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 50%);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-inscribe-link {
    white-space: nowrap;
}

.platform-ai-hub {
    width: 152px;
    height: 152px;
    border-radius: var(--radius-xl);
    background: var(--ds-bg-white);
    border: 1.5px solid rgba(var(--ds-blue-rgb), 0.28);
    box-shadow:
        0 20px 44px rgba(var(--ds-blue-rgb), 0.14),
        0 4px 12px rgba(var(--rgb-black), 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    box-sizing: border-box;
}

.platform-ai-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-ai-icon svg {
    width: 58px;
    height: 58px;
    display: block;
}

.platform-ai-label {
    font-family: var(--font-body);
    font-size: var(--text-sub);
    font-weight: var(--weight-bold);
    color: var(--ds-text-dark);
    letter-spacing: var(--tracking-subtle);
    line-height: var(--leading-snug);
}

.platform-ai-sub {
    font-size: var(--type-micro);
    font-weight: var(--weight-medium);
    color: var(--ds-text-muted-dark);
}

.platform-output-col {
    position: relative;
    z-index: var(--z-elevated);
    width: 26.15%;
    min-width: 220px;
    max-width: 272px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transform: translateY(-5px);
}

.platform-output-node {
    width: 100%;
    padding: 26px 22px;
    border-radius: var(--radius-bento);
    border: 1.5px solid rgba(var(--ds-green-dark-rgb), 0.28);
    box-shadow:
        0 18px 40px rgba(var(--rgb-black), 0.06),
        0 4px 12px rgba(var(--ds-green-dark-rgb), 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.platform-output-icon {
    width: 84px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--ds-bg-gray-box);
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-output-icon svg {
    width: 68px;
    height: 40px;
    display: block;
}

.platform-output-title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--ds-text-dark);
    letter-spacing: var(--tracking-subtle);
}

.platform-output-sub {
    font-size: var(--text-sm);
    color: var(--ds-text-muted-dark);
}

.platform-future-footnote {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ds-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-dashed-key {
    width: 36px;
    height: 0;
    border-top: 3px dashed var(--ds-purple);
    display: inline-block;
    flex-shrink: 0;
}

.platform-future-footnote p {
    margin: 0;
    font-size: var(--text-base);
    color: var(--ds-text-muted-dark);
    line-height: var(--leading-normal);
}

.platform-future-footnote strong {
    color: var(--ds-text-dark);
    font-weight: var(--weight-semibold);
}

/* --- 8. TABLET & MOBILE RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .ds-specs-grid,
    .ds-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spec-card,
    .spec-card:nth-child(1),
    .spec-card:nth-child(2),
    .spec-card:nth-child(3),
    .spec-card:nth-child(4) {
        grid-column: span 1;
    }

    .lived-experience-grid {
        gap: 18px;
    }

    .clinician-features-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .lived-experience-panel {
        padding: 32px 24px;
        min-height: 200px;
    }

    .clinician-feature-card {
        padding: 28px 24px;
    }

    .platform-architecture-card {
        padding: 28px 24px !important;
    }

    .platform-flow-stage {
        height: auto;
        flex-direction: column;
        gap: 16px;
        margin-top: 14px;
    }

    .platform-flow-svg {
        display: none;
    }

    .platform-inputs-col {
        width: 100%;
        max-width: 640px;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        transform: none;
    }

    .platform-inputs-col .platform-node--inscribe {
        grid-column: 1 / -1;
    }

    .platform-input-node {
        height: auto;
        padding: 12px 14px;
        gap: 10px;
    }

    .platform-node-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .platform-node-icon svg {
        width: 26px;
        height: 26px;
    }

    .platform-output-col {
        width: 100%;
        max-width: 420px;
        height: auto;
        gap: 12px;
        transform: none;
    }

    .platform-output-node {
        padding: 18px 20px;
        flex-direction: row;
        gap: 16px;
        text-align: left;
    }

    .platform-output-icon {
        width: 64px;
        height: 44px;
        flex-shrink: 0;
    }

    .platform-output-icon svg {
        width: 52px;
        height: 32px;
    }

    .platform-center-col,
    .platform-inscribe-cta-wrap {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        transform: none;
    }

    .platform-center-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .platform-ai-hub {
        width: 124px;
        height: 124px;
        padding: 12px;
        gap: 4px;
    }

    .platform-ai-icon,
    .platform-ai-icon svg {
        width: 44px;
        height: 44px;
    }

    .platform-center-col::before,
    .platform-center-col::after {
        content: "↓";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background-color: var(--ds-bg-white);
        border: 1px solid var(--ds-border-light);
        color: var(--ds-blue);
        font-size: 13px;
        font-weight: var(--weight-bold);
        box-shadow: var(--shadow-card);
    }

    .platform-center-col::after {
        color: var(--ds-green-dark);
    }

    .platform-future-footnote {
        margin-top: 18px;
        padding-top: 14px;
        gap: 10px;
    }
}

@media (max-width: 699px) {
    .ds-specs-grid,
    .ds-testimonials-grid,
    .lived-experience-grid,
    .clinician-features-grid,
    .ds-pricing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .testimonial-card {
        padding: 24px 22px;
    }

    .testimonial-quote {
        margin-bottom: 18px;
    }

    .clinician-features-grid {
        margin-bottom: 24px;
    }

    .clinician-feature-card {
        padding: 24px 22px;
    }

    .feature-icon-badge {
        margin-bottom: 12px;
    }

    .spec-card {
        padding: 24px 22px;
    }

    .pricing-card {
        padding: 26px 22px;
    }

    .platform-architecture-card {
        padding: 22px 18px !important;
    }

    .platform-inputs-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .platform-input-node {
        padding: 10px 12px;
        gap: 8px;
    }

    .platform-node-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .platform-node-icon svg {
        width: 22px;
        height: 22px;
    }

    .platform-node-title {
        font-size: var(--text-sm);
    }

    .platform-ai-hub {
        width: 108px;
        height: 108px;
        padding: 10px;
    }

    .platform-ai-icon,
    .platform-ai-icon svg {
        width: 36px;
        height: 36px;
    }

    .platform-output-node {
        padding: 16px 18px;
        gap: 14px;
    }

    .platform-future-footnote p {
        font-size: var(--text-sm);
    }

    .lived-experience-panel {
        padding: 28px 24px;
        min-height: 160px;
    }
}

@media (max-width: 440px) {
    .platform-inputs-col {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}
