/* ---------------------------------------------------------------
   Top section (header + hero) — responsive
   The artwork is a single wide illustration (1774x887), so from xl up
   the block keeps that ratio and everything inside scales in vw with it.
   Below xl the ratio is dropped: the box grows with its content, the
   absolutely-placed book/pencils give way to the in-flow pair in the
   markup, and the type falls back to sizing that fits a narrow screen.
   ---------------------------------------------------------------- */
#hero-top {
    background-position: center bottom;
}

@media (min-width: 1280px) {
    #hero-top {
        aspect-ratio: 1774 / 887;
    }
}

/* ------------------------------------------------------------------
   Mobile hero book — parked on the podium painted into top-new-mobile.png
   (864x1821). The podium's top face sits at y 1481-1571 with its centre
   at x 455, so the contact point is 15.7% up from the bottom of the art
   and 52.7% across. Two regimes, because `bg-cover` switches axis at the
   point where min-h stops being 230vw and clamps to 1080px (W ~ 470px):
   below that the art is scaled by height, above it by width.
   ------------------------------------------------------------------ */
[data-hero-book-mobile] {
    left: 51.6%;
    transform: translateX(-50%);
    width: 42vw;
    max-height: 34vh;
    bottom: 15.7%;
}

[data-hero-shadow-mobile] {
    left: 51.6%;
    transform: translateX(-50%);
    width: 30vw;
    height: 3.4vw;
    bottom: 15.2%;
}

@media (min-width: 470px) {
    [data-hero-book-mobile] {
        bottom: 33.1vw;
    }

    [data-hero-shadow-mobile] {
        bottom: 32vw;
    }
}

/* Headline + copy scale with the art instead of jumping at breakpoints */
#hero h1 > span {
    font-size: min(10.3vw, 51px);
}

#hero h1 > span.font-brush {
    font-size: min(8.8vw, 46px);
}

#hero p {
    font-size: clamp(15px, 4.4vw, 18px);
}

#hero [data-hero-swoosh] {
    width: min(42vw, 170px);
}

@media (min-width: 1280px) {
    #hero h1 > span {
        font-size: min(5.1vw, 90px);
    }

    #hero h1 > span.font-brush {
        font-size: min(5.2vw, 92px);
    }

    #hero p {
        font-size: clamp(14px, 1.15vw, 19px);
    }

    #hero [data-hero-swoosh] {
        width: min(14.1vw, 250px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--light-blue) 0%, #dbeafe 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    color: var(--dark-blue);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-title text {
    display: block;
}

.hero-title {
    font-weight: 800;
    font-size: 68px;
}

.hero-title .brush-text {
    font-family: var(--font-brush);
    font-weight: 700;
}

.hero-title .brush-text.red {
    font-size: 58px;
    color: var(--brush-red);
}

.hero-title .brush-text.blue {
    font-size: 64px;
    color: var(--brush-blue);
}

.hero-paragraph {
    font-weight: 400;
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.book-mockup {
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 10px 20px 20px 10px;
    box-shadow: -5px 10px 30px rgba(0,0,0,0.2), inset 5px 0 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-15deg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 15px solid #f1f1f1;
}

.book-cover {
    text-align: center;
    color: var(--dark-blue);
}

.podium {
    position: absolute;
    bottom: -50px;
    width: 400px;
    height: 100px;
    background: linear-gradient(to bottom, #fde047, #eab308);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.podium::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    width: 360px;
    height: 90px;
    background: #fef08a;
    border-radius: 50%;
}

