/* ========== CSS Reset (trimmed, accessible) ========== */
*, *::before, *::after {
    box-sizing: border-box
}

html:focus-within {
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100%;
    text-rendering: optimizeLegibility
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:hover, a:focus {
    text-decoration: none;
}


:root {
    --banana-50: #FFFBE2;
    --banana-yellow-light: #FFF7C7;
    --banana-200: #FFF0A1;
    --ink: #333;
    --ink-60: rgba(30, 27, 22, .6);
    --stone: #F0F0F0;
    --brand: #6A48FF; /* accent for CTAs */
    --brand-ink: #261672;
    --ok: #19B37A;
    --white: #fff;

    --radius: 18px;
    --shadow-1: 0 6px 22px rgba(0, 0, 0, .06);
    --shadow-2: 0 16px 44px rgba(0, 0, 0, .08);

    --bb-font: "itc-american-typewriter", serif;
}

body {
    font-family: var(--bb-font);
    color: var(--ink);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: clamp(1.25em, 2.5vw, 2em)
}

h1, h2, h3 {
    line-height: 1.15;
    margin: 0 0 1.5rem
}

h1 {
    font-size: clamp(1.75rem, 4vw, 3.2rem)
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.4rem)
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.35rem)
}

.lead {
    color: var(--ink-60)
}

/* Buttons */

.bu-primary {
    background-color: #8220D6;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    color: #fff;
    font: normal 700 1em/1.15 "itc-american-typewriter", serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.2s ease;
}

.bu-primary::after {
    content: "\f061"; /* Unicode for Font Awesome solid arrow-right */
    font-family: "Font Awesome 6 Free", sans-serif;
    font-weight: 900; /* required for solid style */
    position: absolute;
    opacity: 0;
    right: 23px;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bu-primary:hover {
    background-color: #333;
    padding-right: 50px;
    text-decoration: none;
    transform: scale(1.02);
}

.bu-primary:hover::after {
    opacity: 1;
    transform: translateX(0);
}



.subnote {
    margin: .45rem 0 0;
    color: var(--ink-60);
    font-size: .9rem
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: saturate(1.2) blur(6px);
    background: color-mix(in hsl, var(--banana-50) 80%, transparent);
    z-index: 50;
    border-bottom: 1px solid rgba(0, 0, 0, .04)
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.brand-logo {
    width: 200px;
    height: auto;
}

.brand-wordmark {
    font-weight: 900;
    letter-spacing: .2px
}

.brand-wordmark span {
    color: var(--brand)
}

.nav {

    display: flex;
    gap: 2.5em;
}

.nav a {
    opacity: .85
}



/* Hero */
.section-hero {
    background: var(--banana-yellow-light);
    margin-bottom: 5vw;
}

.hero-inner {
    display: grid;
    gap: 32px;
    align-items: center;
    grid-template-columns:1fr 1fr;
}

.eyebrow {
    font-size: .9rem;
    margin: .25rem 0 1rem
}

.hero-art {
    justify-self: center
}

.hero-mascot {
    /* width: min(400px, 70vw); */
    filter: drop-shadow(var(--shadow-2))
}

/* App section with central phone + cards around */
.section-app {
    padding-block: clamp(40px, 5vw, 90px);
    padding-top: 0;
    padding-bottom: 3vw;
}

.section-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.icon-container {
    margin-bottom: 4vw;

}
.icon-container img {
    width: clamp(100px, 15vw, 165px);
}


.middle-text {
    max-width: 476px;
    text-align: left;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-1)
}
.feature-card p {
    margin-bottom: 0;
    margin-top: 0;
}
.feature-card h3, .bebo-points h3 {
    margin-bottom: 0.5em;
}

.phone-figure {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-figure img {
    width: clamp(250px, 30vw, 400px);
}

/* Desktop-first default */
.app-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    /* gap: 32px; */
    align-items: center;
}

.side-col {
    display: flex;
    flex-direction: column;
    gap: 3vw;
    padding-top: 150px;
}

/* Grey band that the phone can hang below */
.section-feature,
.section-bebo {
    position: relative;
    overflow: visible;
    padding-block: clamp(30px, 5vw, 50px);
}
.section-feature {
    padding-top: 0;
}
.section-bebo {
    background: var(--stone);
    margin-bottom: 5vw;
}

/* Draw only the grey strip (not the whole section) */
.section-feature::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: clamp(320px, 65vw, 590px); /* tune this to match your mock’s grey height */
    background: var(--stone);          /* your light grey */
    z-index: 0;
    transform: translateY(115px);
}

/* Keep content above the ::before background */
.app-grid, .bebo-inner {
    position: relative;
    z-index: 1;
    align-items: start;
}

/* Make the phone overlap past the grey band’s bottom */
.phone-figure img {
    position: relative;
    z-index: 2;
}

/* Who section */
.section-who {
    margin-bottom: 2em;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1rem auto 0;
    max-width: 740px;
    display: grid;
    gap: 12px
}

.checklist li {
    display: flex;
    gap: .6rem;
    align-items: baseline;
    /* padding: 14px 16px; */
}

.checklist li span {
    color: #fff;
    background-color: #333;
    padding: 5px 11px;
    border-radius: 50%;
    margin-top: 3px
}

#checklist-not li span {
    background-color: #D93B16;
}

/* Bebo section */

.bebo-inner {
    display: grid;
    gap: 3em;
    grid-template-columns:1.3fr 0.7fr;
}

.bebo-points {
    display: grid;
    gap: 16px;
    margin-top: .5rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-1);
}

.bebo-phone {
    margin: 0;
}

/* Team section */
.section-team {
    padding-block: clamp(40px, 5vw, 96px);
    padding-top: 0;
}

.team-inner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* side by side on larger screens */
    gap: 48px;
}

.team-member {
    background: var(--banana-50);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.team-member h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.container-center {
    text-align: center;
}

.linkedin-bu {
    display:inline-flex;
    align-items:center;
    gap:8px;
    background-color:#0A66C2;
    color:white;
    padding:8px 16px;
    border-radius:4px;
    font-weight:600;
    text-decoration:none;
    font-family:sans-serif;
}

/* CTA */
.section-cta {
    padding-block: clamp(40px, 8vw, 96px);
    text-align: center;
    padding-top: 0;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto
}

/* Footer */
.site-footer {
    background: var(--banana-yellow-light);
    border-top: 1px solid rgba(0, 0, 0, .06)
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.legal {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.legal a {
    opacity: .85
}

copyright, .legal {
    font-size: .95rem
}

/* A11y helpers */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: .5rem .75rem;
    background: var(--brand);
    color: var(--white);
    border-radius: 8px
}

/* ===== Modal Styles ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;              /* hidden by default, shown via JS */
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6); /* dimmed background */
    z-index: 9999;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    padding: 2em;
    box-shadow: var(--shadow-2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-top: 1.5em;
}

textarea, input[type="text"], input[type="email"] {
    width: 100%;
    padding: 0.75em;
    margin: 0.5em 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
}

/* === Validation error styling (matching the app) === */
.error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 4px;
    text-align: left;
}

.input-error {
    border: 3px solid #e74c3c !important;
    background-color: #fff5f5 !important;
}

.form-group input,
.form-group textarea {
    margin-bottom: 1rem;       /* kill browser differences */
    display: block;         /* uniform flow */
}
.form-group .error {
    margin-top: 6px;        /* set the only gap yourself */
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* Motion-respectful hover effects */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto
    }

    .hero-mascot {
        transition: none
    }
}


@media (max-width: 1100px) {
    .bebo-inner {
        grid-template-columns: 1.35fr 0.65fr;
    }
    .section-who {
        margin-bottom: 5vw;
    }
}

@media (max-width: 1000px) {
    .nav {
        gap: 1.5em;
    }
    .section-intro .middle-text {
        margin-bottom: 0;
    }
    .side-col {
        gap: 2em;
        padding-top: 120px;
    }
    .section-who {
        margin-bottom: 5rem;
    }
}

@media (max-width: 900px) {

    .app-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .phone-figure {
        order: -1; /* move phone to the top */
        width: calc(100% - (60px + clamp(1.25em, 2.5vw, 2em)));
    }

    .side-col.left,
    .side-col.right {
        order: 0;
    }

    .side-col.left {
        margin-bottom: 4vw;
    }

    .side-col {
        flex-direction: column;
        gap: 20px;
        padding-top: 0;
    }

    .phone-figure img {
        transform: none;
    }

    .section-feature {
        overflow: clip;              /* prevent accidental spillover on mobile */
        background: var(--stone);
        padding-bottom: 1em;
        margin-bottom: 2em;
    }
    .section-feature::before{
        inset: 0;                    /* cover the whole section */
        height: auto;                /* ignore the desktop clamp */
        background: transparent;     /* pseudo no longer paints; section does */
    }
    .section-feature .phone-figure img{
        transform: none;             /* keep the phone fully inside the grey */
    }
    .bebo-inner {
        grid-template-columns:1fr 1fr;
        align-items: center
    }
    .section-who {
        margin-bottom: 1rem;
    }
    .section-bebo {
        margin-bottom: 3rem;
    }

}
@media (max-width: 860px) {
    .nav {
        display: none;
    }
    .header-inner {
        display: block;
        text-align: center;
    }
    .hero-inner {
        grid-template-columns:1.2fr 0.8fr;
    }
}

@media (max-width: 600px) {
    .team-inner {
        display: block;
    }
    .team-member {
        margin-bottom: 2em;
    }
    .team-member:last-child {
        margin-bottom: 0;
    }
    .section-hero {
        margin-bottom: 2vw;
    }
    .bebo-phone {
        display: none;
    }
    .bebo-inner {
        grid-template-columns: 1fr;
    }
    .section-feature {
        margin-bottom: 1em;
    }
}

@media (max-width: 500px) {
    .hero-inner {
        grid-template-columns:1fr;
    }
    .hero-copy {
        text-align: center;
    }
}