@import url('fresh-values.css');

:root {
    --zoogaboog-blue: #01aade;
    --zoogaboog-dark-blue: #0085ae;
    --purple: #8B5CF6;
    --green: #10B981;
    --orange: #F59E0B;
    --red: #EF4444;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero */
.story-hero {
    padding: 6rem 0 0;
    background: linear-gradient(135deg, var(--zoogaboog-blue) 0%, var(--zoogaboog-dark-blue) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Doc sits on the blue / white boundary; headline stays upper */
@media (min-width: 1025px) {
    .story-hero .hero-layout {
        align-items: flex-end;
    }

    .story-hero .hero-text {
        align-self: flex-start;
        padding-bottom: 2rem;
    }

    .story-hero .hero-doc {
        margin-bottom: 0;
    }
}

.story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.05"/></svg>') repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.story-hero h1 {
    font-size: clamp(1.5rem, 2.5vw + 1rem, 3.25rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.story-hero .tagline {
    font-size: 2rem;
    opacity: 0.95;
    font-weight: 700;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.story-hero .subtext {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.4rem;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
}

/* The Solution Section */
.solution-section {
    padding: 6rem 0;
    background: #f0fdf4;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.solution-text h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.solution-text p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.solution-list li {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
}

.solution-list i {
    color: var(--green);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Solution column: screenshot carousel + lightbox */
.solution-screenshots {
    width: 100%;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.solution-screenshots__chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.solution-screenshots__btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--zoogaboog-blue);
    background: #fff;
    color: var(--zoogaboog-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.solution-screenshots__btn:hover:not(:disabled) {
    background: var(--zoogaboog-blue);
    color: #fff;
}

.solution-screenshots__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Hide carousel arrows while lightbox is open (no overlap with fullscreen view) */
.solution-screenshots--lightbox-open .solution-screenshots__btn {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.solution-screenshots__viewport {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    border: 2px solid #cbd5e1;
}

.solution-screenshots__img-btn {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.solution-screenshots__img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: block;
    vertical-align: top;
    opacity: 1;
    transition: opacity 0.28s ease;
}

.solution-screenshots__img.solution-screenshots__img--fade {
    opacity: 0;
}

.solution-screenshots__caption {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    margin: 0.75rem 0 0.5rem;
    min-height: 1.4em;
}

.solution-screenshots__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.solution-screenshots__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.solution-screenshots__dot.is-active {
    background: var(--zoogaboog-blue);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(1, 170, 222, 0.3);
}

.solution-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.solution-lightbox.solution-lightbox--open {
    opacity: 1;
    pointer-events: auto;
}

.solution-lightbox[hidden] {
    display: none !important;
}

.solution-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    cursor: pointer;
}

.solution-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: auto;
    max-width: min(96vw, calc(1400px + 120px));
    max-height: 92vh;
    margin: 0;
    transform: scale(0.96);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    pointer-events: none;
}

.solution-lightbox.solution-lightbox--open .solution-lightbox__dialog {
    transform: scale(1);
    opacity: 1;
}

/* Same control style as carousel chrome; flanking image, not overlaid */
.solution-lightbox__dialog .solution-screenshots__btn {
    flex-shrink: 0;
    pointer-events: auto;
}

.solution-lightbox__img-wrap {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.solution-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    cursor: default;
}

@media (max-width: 768px) {
    .solution-screenshots__chrome {
        gap: 0.35rem;
    }
    .solution-screenshots__btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .solution-screenshots__img {
        max-height: 300px;
    }
    .solution-lightbox__dialog {
        gap: 16px;
    }
}

.solution-kicker {
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
}

/* Our Mission Section */
.mission-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    text-align: center;
}

.mission-section .public-section-title {
    color: var(--zoogaboog-blue);
}

.mission-section .section-title {
    color: #ffffff;
}

.mission-quote {
    font-size: 2.2rem;
    font-weight: 800;
    font-style: italic;
    max-width: 1000px;
    margin: 0 auto 2rem;
    line-height: 1.4;
    color: var(--zoogaboog-blue);
}

.mission-description {
    font-size: 1.3rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0.95;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: #f9fafb;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.team-intro h2 {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.team-intro p {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.team-member {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: var(--zoogaboog-blue);
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: #e2e8f0;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #94a3b8;
    border: 4px solid var(--zoogaboog-blue);
}

.team-member h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1.1rem;
    color: var(--zoogaboog-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.team-bio {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* What Makes Us Different Section */
.different-section {
    padding: 6rem 0;
    background: transparent;
}

.different-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.different-card {
    background: white;
    border: 3px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    align-items: start;
    transition: all 0.3s ease;
}

.different-card:hover {
    border-color: var(--zoogaboog-blue);
    transform: translateX(8px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.different-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: var(--zoogaboog-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.different-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.different-content p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
}

/* See it in action */
.our-story-feature-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.our-story-feature-cta .public-container-custom {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.our-story-feature-cta__title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.our-story-feature-cta__text {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.our-story-feature-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--zoogaboog-blue);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.our-story-feature-cta__link:hover {
    text-decoration: underline;
}

/* Why we built this / Manifesto */
.our-story-founder {
    padding: 6rem 0;
    background: #f8fafc;
}

.our-story-manifesto {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 35%, #f8fafc 100%);
}

.our-story-manifesto__intro {
    margin-bottom: 2.5rem;
}

.our-story-manifesto__label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zoogaboog-blue);
    margin: 0 0 1rem;
}

.our-story-manifesto__headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 900;
    font-style: italic;
    color: var(--zoogaboog-blue);
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-align: center;
    max-width: 920px;
    margin: 0 auto 2.5rem;
    padding: 1.25rem 1.5rem;
    border: 3px solid var(--zoogaboog-blue);
    border-radius: 4px;
    box-shadow: 12px 12px 0 rgba(1, 170, 222, 0.15);
    background: #ffffff;
}

/* Floated illustration: text wraps on the left */
.our-story-manifesto__body {
    position: relative;
}

.our-story-manifesto__body::after {
    content: '';
    display: table;
    clear: both;
}

/* Paragraph + illustration: image bottom-aligned with paragraph, slightly larger than old float */
.our-story-manifesto__guy-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 1.25rem 1.75rem;
    margin-bottom: 2rem;
}

.our-story-manifesto__guy-row .our-story-founder__p {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.our-story-manifesto__guy-row .our-story-manifesto__guy {
    width: min(320px, 44%);
    max-width: 380px;
    height: auto;
    margin: 0;
    border-radius: 12px;
    flex-shrink: 0;
    display: block;
}

/* Closing line: CTA left, cat right */
.our-story-manifesto__closing {
    clear: both;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    text-align: left;
}

.our-story-manifesto__closing-text {
    flex: 1;
    min-width: 12rem;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    line-height: 1.4;
    color: var(--zoogaboog-blue);
}

.our-story-manifesto__cat {
    display: block;
    width: 140px;
    height: auto;
    max-width: min(40%, 200px);
    object-fit: contain;
    flex-shrink: 0;
    margin-left: auto;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .our-story-manifesto__closing {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .our-story-manifesto__closing-text {
        flex-basis: 100%;
        min-width: 0;
    }

    .our-story-manifesto__cat {
        width: 120px;
        max-width: 55%;
    }
}

.our-story-founder__title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.our-story-founder__inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Justified “book block” for manifesto prose (full justification) */
.our-story-manifesto .our-story-founder__inner .our-story-founder__p:not(.our-story-manifesto__closing) {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* Manifesto body: bold phrases match body gray (closing line is exception below) */
.our-story-manifesto__body .our-story-founder__p strong:not(.our-story-manifesto__closing-text) {
    color: #64748b;
    font-weight: 800;
}

.our-story-founder__p {
    font-size: 1.3rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.founder-principle-card {
    background: #f9fafb;
    padding: 3rem;
    border-radius: 16px;
    border: 3px solid #e2e8f0;
    margin-bottom: 2rem;
}

.founder-principle-card__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.founder-principle-card__title .bi {
    color: var(--zoogaboog-blue);
    margin-right: 0.35rem;
    vertical-align: -0.1em;
}

.founder-principle-card__body {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

.our-story-founder__closing {
    font-size: 1.4rem;
    color: #1e293b;
    line-height: 1.8;
    font-weight: 700;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0;
}

/* Press */
.our-story-press {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.our-story-press .public-container-custom {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.our-story-press__title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
}

.our-story-press__text {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.7;
}

.our-story-press__text a {
    color: var(--zoogaboog-blue);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    /* Doc hidden below 1024px — restore bottom padding */
    .story-hero {
        padding: 6rem 0 2rem;
    }

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

@media (max-width: 768px) {
    .story-hero { padding: 3rem 0 2rem; }
    .story-hero h1 { font-size: clamp(1.45rem, 4vw, 2rem); }
    .story-hero .tagline { font-size: 1.35rem; }
    .story-hero .subtext { font-size: 1.1rem; }
    .story-content { padding: 2rem 0; }
    .story-section { margin-bottom: 2rem; }
    .story-section h2 { font-size: 1.5rem; }
    .story-section p { font-size: 0.95rem; }
    .team-grid, .different-grid {
        grid-template-columns: 1fr;
    }
    .solution-content {
        grid-template-columns: 1fr;
    }
    .container-custom { padding: 0 1rem; }
    .our-story-founder__title { font-size: 2rem; }
    .our-story-manifesto__headline {
        font-size: 1.65rem;
        padding: 1rem 1rem;
        box-shadow: 8px 8px 0 rgba(1, 170, 222, 0.12);
    }

    .our-story-manifesto__guy-row {
        flex-direction: column;
        align-items: center;
    }

    .our-story-manifesto__guy-row .our-story-manifesto__guy {
        order: -1;
        width: min(280px, 88%);
        max-width: none;
        margin: 0 0 1.25rem;
    }

    .founder-principle-card { padding: 2rem 1.25rem; }
}

@media (max-width: 576px) {
    .story-hero h1 { font-size: 1.5rem; }
    .story-hero .tagline { font-size: 1.15rem; }
}

/* Baby Rocket styles have been moved to public/css/baby-rocket.css for global use */
