/* OneAppleFall · Home hero slider (colourful, 4 feature slides) */
.oaf-hs {
    position: relative; padding: calc(var(--oaf-nav-h, 72px) + 26px) 0 34px;
    background: radial-gradient(700px 320px at 0% 0%, rgba(236,72,153,.10), transparent 70%),
                radial-gradient(700px 320px at 100% 0%, rgba(6,182,212,.10), transparent 70%),
                linear-gradient(180deg, #eef2ff 0%, #faf5ff 60%, var(--oaf-bg, #f9f9f7) 100%);
}
body.has-topbar .oaf-hs { padding-top: calc(var(--oaf-nav-h, 72px) + 37px + 26px); }
.oaf-hs__stage { position: relative; display: grid; border-radius: 34px; overflow: hidden; isolation: isolate;
    box-shadow: 0 40px 80px -40px rgba(76,29,149,.65); }

/* Slides stack in one grid cell; the stage takes the height of the tallest */
.oaf-hs__slide {
    grid-area: 1 / 1; display: flex; align-items: center; min-height: clamp(560px, 46vw, 660px);
    padding: 56px 60px 104px; color: #fff; position: relative; overflow: hidden;
    opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s;
}
.oaf-hs__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
.oaf-hs__slide::before, .oaf-hs__slide::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; z-index: 0; }
.oaf-hs__slide::before { width: 320px; height: 320px; left: -110px; bottom: -150px; }
.oaf-hs__slide::after { width: 220px; height: 220px; left: 30%; top: -120px; }

.oaf-hs--a { background: radial-gradient(760px 340px at 0% 0%, rgba(236,72,153,.55), transparent 65%), radial-gradient(680px 340px at 100% 100%, rgba(6,182,212,.5), transparent 65%), linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%); }
.oaf-hs--b { background: radial-gradient(700px 320px at 100% 0%, rgba(124,58,237,.55), transparent 65%), radial-gradient(600px 300px at 0% 100%, rgba(251,191,36,.45), transparent 65%), linear-gradient(135deg, #db2777 0%, #ec4899 45%, #f97316 100%); }
.oaf-hs--c { background: radial-gradient(700px 320px at 0% 100%, rgba(16,185,129,.5), transparent 65%), radial-gradient(600px 300px at 100% 0%, rgba(168,85,247,.5), transparent 65%), linear-gradient(135deg, #0891b2 0%, #4f46e5 60%, #7c3aed 100%); }
.oaf-hs--d { background: radial-gradient(700px 320px at 0% 0%, rgba(249,115,22,.45), transparent 65%), radial-gradient(600px 300px at 100% 100%, rgba(6,182,212,.4), transparent 65%), linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #ec4899 100%); }

/* Copy */
.oaf-hs__copy { position: relative; z-index: 2; max-width: 590px; text-shadow: 0 2px 18px rgba(30,10,60,.25); }
.oaf-hs__copy > * { transform: translateY(14px); opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; }
.oaf-hs__slide.is-active .oaf-hs__copy > * { transform: none; opacity: 1; }
.oaf-hs__slide.is-active .oaf-hs__copy > :nth-child(2) { transition-delay: .08s; }
.oaf-hs__slide.is-active .oaf-hs__copy > :nth-child(3) { transition-delay: .16s; }
.oaf-hs__slide.is-active .oaf-hs__copy > :nth-child(4) { transition-delay: .24s; }
.oaf-hs__slide.is-active .oaf-hs__copy > :nth-child(5) { transition-delay: .32s; }
.oaf-hs__kick { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); }
.oaf-hs__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04;
    letter-spacing: -.035em; margin: 18px 0 16px; color: #fff; }
.oaf-hs__title span { display: inline-block; background: linear-gradient(90deg, #fde68a, #fbcfe8 55%, #a5f3fc);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fde68a; }
.oaf-hs__text { font-size: 17.5px; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 54ch; margin: 0 0 20px; }
.oaf-hs__points { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 26px; }
.oaf-hs__points span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; padding: 7px 13px 7px 9px;
    border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.oaf-hs__points svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: #fff; color: #7c3aed; flex: none; }
.oaf-hs--b .oaf-hs__points svg { color: #db2777; } .oaf-hs--c .oaf-hs__points svg { color: #0891b2; } .oaf-hs--d .oaf-hs__points svg { color: #c026d3; }
.oaf-hs__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.oaf-hs__btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 15.5px;
    text-decoration: none !important; background: #fff; color: #4f46e5 !important; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s; }
.oaf-hs--b .oaf-hs__btn:not(.oaf-hs__btn--ghost) { color: #db2777 !important; } .oaf-hs--c .oaf-hs__btn:not(.oaf-hs__btn--ghost) { color: #0e7490 !important; } .oaf-hs--d .oaf-hs__btn:not(.oaf-hs__btn--ghost) { color: #a21caf !important; }
.oaf-hs__btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(0,0,0,.5); }
.oaf-hs__btn--ghost { background: rgba(255,255,255,.12); color: #fff !important; border: 1.5px solid rgba(255,255,255,.45); box-shadow: none; }
.oaf-hs__btn--ghost:hover { background: rgba(255,255,255,.22); }

/* Image: fills the right of the slide edge to edge, fading into the slide colour behind the text */
.oaf-hs__media { position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 62%; }
.oaf-hs__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 16%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 16%, #000 38%);
    transform: scale(1.08); transition: transform 8s ease-out; }
.oaf-hs__slide.is-active .oaf-hs__media img { transform: scale(1); }
.oaf-hs--a .oaf-hs__media img { object-position: 60% 35%; }
.oaf-hs--c .oaf-hs__media img, .oaf-hs--d .oaf-hs__media img { object-position: 50% 12%; }
.oaf-hs__chip { position: absolute; right: 34px; bottom: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px;
    border-radius: 999px; background: #fff; color: #1e1b4b; font-weight: 800; font-size: 14px; box-shadow: 0 18px 34px -14px rgba(0,0,0,.5); text-shadow: none; }
.oaf-hs__chip svg { width: 24px; height: 24px; padding: 5px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #10b981, #059669); flex: none; }

/* Navigation */
.oaf-hs__nav { position: absolute; z-index: 3; left: 60px; bottom: 30px; display: flex; align-items: center; gap: 14px; }
.oaf-hs__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.14); color: #fff;
    display: grid; place-items: center; cursor: pointer; transition: background .2s; padding: 0; }
.oaf-hs__arrow:hover { background: rgba(255,255,255,.28); }
.oaf-hs__arrow:focus-visible, .oaf-hs__dot:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.oaf-hs__dots { display: flex; gap: 8px; }
.oaf-hs__dot { width: 30px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.35); overflow: hidden; position: relative; transition: width .3s; }
.oaf-hs__dot.is-active { width: 56px; }
.oaf-hs__dot i { position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.oaf-hs__dot.is-active i { width: 100%; }
.oaf-hs__stage.is-playing .oaf-hs__dot.is-active i { width: 0; animation: oaf-hs-fill var(--oaf-hs-dur, 7s) linear forwards; }
.oaf-hs__stage.is-paused .oaf-hs__dot.is-active i { animation-play-state: paused; }
@keyframes oaf-hs-fill { to { width: 100%; } }

@media (max-width: 900px) {
    .oaf-hs { padding-top: calc(var(--oaf-nav-h, 72px) + 16px); }
    .oaf-hs__stage { border-radius: 26px; }
    .oaf-hs__slide { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 22px 86px; }
    .oaf-hs__media { order: -1; position: relative; width: auto; height: clamp(260px, 62vw, 420px); margin: 0 -22px 4px; }
    .oaf-hs__media img { -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
    .oaf-hs__chip { right: auto; left: 16px; bottom: 26px; font-size: 13px; }
    .oaf-hs__copy { max-width: none; }
    .oaf-hs__title { margin: 14px 0 12px; }
    .oaf-hs__text { font-size: 16px; }
    .oaf-hs__nav { left: 22px; bottom: 24px; }
}
@media (max-width: 480px) { .oaf-hs__btn { padding: 12px 20px; font-size: 14.5px; } .oaf-hs__points span { font-size: 12.5px; } }
@media (prefers-reduced-motion: reduce) {
    .oaf-hs__slide, .oaf-hs__copy > *, .oaf-hs__media img { transition: none !important; }
    .oaf-hs__copy > *, .oaf-hs__media img { transform: none !important; }
}
