/* ========== SOSA CONSTRUCTION — PAGE SPECIFIC ========== */

/* Fix space above hero — compare.css adds padding-top: 4.5rem to .content-wrapper */
.content-wrapper {
    padding-top: 0;
}

/* Metric labels green, values stay black */
.cs-metric__label { color: var(--secondary-green); }

/* Company logo badge background */
.cs-hero__company-icon { background: var(--grey-06); }

/* ---- Hero: Photo Proof App Mockup ---- */
.sosa-photo-mockup {
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.38), 0 4px 16px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: center;
}

.sosa-photo-mockup__chrome {
    background: #1a2332;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sosa-photo-mockup__dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.sosa-photo-mockup__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}
.sosa-photo-mockup__dots span:nth-child(1) { background: #ff5f57; }
.sosa-photo-mockup__dots span:nth-child(2) { background: #febc2e; }
.sosa-photo-mockup__dots span:nth-child(3) { background: #28c840; }

.sosa-photo-mockup__chrome-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sosa-photo-mockup__body {
    background: #f3f4f6;
    padding: 0.875rem;
}

.sosa-photo-mockup__bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sosa-photo-mockup__search {
    flex: 1;
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

.sosa-photo-mockup__filter {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    flex-shrink: 0;
}

.sosa-photo-mockup__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

.sosa-photo-mockup__item {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    animation: sosa-photo-in 0.45s ease forwards;
}

.sosa-photo-mockup__item--1 { animation-delay: 0.15s; }
.sosa-photo-mockup__item--2 { animation-delay: 0.35s; }
.sosa-photo-mockup__item--3 { animation-delay: 0.55s; }
.sosa-photo-mockup__item--4 { animation-delay: 0.75s; }

@keyframes sosa-photo-in {
    to { opacity: 1; transform: translateY(0); }
}

.sosa-photo-mockup__img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.sosa-photo-mockup__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sosa-photo-mockup__item:hover .sosa-photo-mockup__img-wrap img {
    transform: scale(1.04);
}

.sosa-photo-mockup__proof-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(24, 168, 125, 0.92);
    color: var(--white);
    font-size: 0.58rem;
    font-weight: var(--font-weight-semibold);
    padding: 2px 7px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

.sosa-photo-mockup__gps {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.52);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sosa-photo-mockup__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
}

.sosa-photo-mockup__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--white);
    font-size: 0.5rem;
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sosa-photo-mockup__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sosa-photo-mockup__user {
    font-size: 0.6rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sosa-photo-mockup__date {
    font-size: 0.55rem;
    color: #9ca3af;
    white-space: nowrap;
}

.sosa-photo-mockup__tag {
    background: var(--secondary-green);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: var(--font-weight-semibold);
    padding: 1px 6px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sosa-photo-mockup__resolved {
    background: rgba(24, 168, 125, 0.1);
    border: 1px solid rgba(24, 168, 125, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: var(--font-weight-semibold);
    color: var(--secondary-green);
    opacity: 0;
    animation: sosa-photo-in 0.45s ease 1s forwards;
}

/* ---- Hero Photo Showcase (old, hidden) ---- */
.sosa-hero__photo-wrap {
    position: relative;
    padding: 1.5rem 1rem;
}

.sosa-hero__photo-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.sosa-hero__photo {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.sosa-hero__card {
    position: absolute;
    background: var(--white);
    border-radius: 14px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-width: 260px;
    z-index: 2;
}

.sosa-hero__card--before {
    bottom: -0.5rem;
    left: -1.25rem;
}

.sosa-hero__card--after {
    top: -0.5rem;
    right: -1.25rem;
    background: var(--secondary-green);
}

.sosa-hero__card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sosa-hero__card-icon--red {
    background: #fef2f2;
    color: #dc2626;
}

.sosa-hero__card-icon--white {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.sosa-hero__card-title {
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 2px;
    line-height: 1.2;
}

.sosa-hero__card--after .sosa-hero__card-title,
.sosa-hero__card--after .sosa-hero__card-sub {
    color: var(--white);
}

.sosa-hero__card-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ---- George Story Section ---- */
.cs-george {
    background: var(--white);
    padding: 8rem 0;
}

.cs-george__container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.cs-george__photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.cs-george__photo {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.cs-george__overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cs-george__overlay-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-green);
    flex-shrink: 0;
}

.cs-george__overlay-name {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0 0 2px;
}

.cs-george__overlay-role {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0 0 2px;
}

.cs-george__overlay-loc {
    font-size: 0.72rem;
    color: var(--text-quaternary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cs-george__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-mint);
    color: var(--secondary-green);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    border-radius: 100px;
    padding: 6px 16px;
    margin-bottom: 1.25rem;
}

.cs-george__title {
    font-size: 2.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.cs-george__body {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.cs-george__pullquote {
    border-left: 4px solid rgba(24, 168, 125, 0.4);
    background: rgba(24, 168, 125, 0.07);
    border-radius: 0 12px 12px 0;
    padding: 1.125rem 1.5rem;
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.cs-george__stats {
    display: flex;
    gap: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--grey-03);
    margin-top: 0.5rem;
}

.cs-george__stat-value {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-green);
    line-height: 1;
    margin: 0 0 4px;
}

.cs-george__stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- Responsive: George story ---- */
@media (max-width: 1024px) {
    .cs-george__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .cs-george__photo {
        height: 420px;
    }

    .cs-george__title {
        font-size: 2.25rem;
    }
}

@media (max-width: 640px) {
    .cs-george {
        padding: 5rem 0;
    }

    .cs-george__title {
        font-size: 1.875rem;
    }

    .cs-george__photo {
        height: 280px;
    }

    .cs-george__overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1rem;
        border-radius: 14px;
    }

    .cs-george__stats {
        gap: 2rem;
    }
}

/* ---- Responsive: Hero photo showcase ---- */
@media (max-width: 1024px) {
    .sosa-hero__photo-wrap {
        display: none;
    }
}

/* ---- Metrics 4-col grid (if isc css not loaded separately) ---- */
.cs-metrics__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .cs-metrics__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cs-metrics__grid--4 {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: left;
    }
}

/* ---- Story problems — 3 columns flat (override bento) ---- */
.cs-story__problems {
    grid-template-columns: repeat(3, 1fr);
}
.cs-story__problem-card {
    grid-column: span 1 !important;
}

/* ---- Story problems responsive ---- */
@media (max-width: 1024px) {
    .cs-story__problems {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-story__problem-card {
        grid-column: span 1 !important;
    }
}

@media (max-width: 640px) {
    .cs-story__problems {
        grid-template-columns: 1fr;
    }
}

/* ---- cs-br-desktop helper ---- */
@media (max-width: 768px) {
    .cs-br-desktop {
        display: none;
    }
}

/* ---- Story Result Banner ---- */
.cs-story__result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "title  visual"
        "body   visual";
    gap: 1.25rem 3rem;
    background: var(--white);
    border: 1px solid var(--grey-03);
    border-radius: 20px;
    padding: 1.75rem;
    margin-top: 1.25rem;
}

.cs-story__result-title {
    grid-area: title;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.cs-story__result-body-wrap {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cs-story__result-body {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.cs-story__result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.cs-story__result-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.cs-story__result-visual {
    grid-area: visual;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    align-self: stretch;
}

.cs-story__result-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs-story__result-stat {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--white);
    border-radius: 12px;
    padding: 0.75rem 1.125rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cs-story__result-stat-num {
    font-size: 1.625rem;
    font-weight: var(--font-weight-bold);
    color: #dc2626;
    line-height: 1;
}

.cs-story__result-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cs-story__result {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "title"
            "visual"
            "body";
        gap: 1rem;
        padding: 1.25rem;
    }

    .cs-story__result-visual {
        height: 200px;
    }
}

/* ---- Workflow grid responsive ---- */
.cs-wf__grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1024px) {
    .cs-wf__grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-wf__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cs-wf__grid--2,
    .cs-wf__grid--3,
    .cs-wf__grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ---- Hero: Chat wrap — mirror isc-hero__chat-wrap ---- */
.sosa-hero__chat-wrap {
    width: 100%;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
}

.sosa-hero__chat-wrap > div {
    width: 100%;
}

.sosa-hero__chat-wrap .f3__wrapper {
    width: 100%;
    min-height: 560px;
    align-items: flex-end;
}

.sosa-hero__chat-wrap .f3__ui {
    width: 100%;
    max-width: none;
    min-height: 560px;
}

/* ---- Hero brand responsive ---- */
@media (max-width: 1024px) {
    .cs-hero--brand .cs-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .cs-hero__company-badge {
        align-self: center;
        text-align: left;
    }

    .cs-hero--brand .cs-hero__title,
    .cs-hero--brand .cs-hero__subtitle {
        text-align: center;
    }

    .cs-hero__visual {
        display: none;
    }

    .sosa-hero__chat-wrap {
        margin: 0 auto;
        width: 100%;
        max-width: 480px;
    }

    .sosa-hero__chat-wrap .f3__wrapper,
    .sosa-hero__chat-wrap .f3__ui {
        min-height: 426px;
    }
}

@media (max-width: 480px) {
    .cs-hero--brand .cs-hero__title {
        font-size: 1.75rem;
    }

    .sosa-hero__chat-wrap {
        max-width: 100%;
    }

    .cs-hero__company-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
}
