/* -------------------------------------------------
   Global reset & base styles
------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    /* baseline – easy to scale with rem */
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #F2F2F2;
    min-height: 100vh;
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* -------------------------------------------------
   Layout helpers
------------------------------------------------- */
.container {
    width: 1500px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    gap:80px;
    /* allows stacking on small screens */
}

img {
    max-width: 100%;
    max-height: 100%;
}

/* -------------------------------------------------
   Header (hero) section
------------------------------------------------- */
header {
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(to bottom, #F2F2F2, #E1E1E1);
    margin-bottom: auto;
    flex: 1;
    overflow:hidden;
}

ul,ol {
    padding-left:1.2em;
    margin-bottom:24px;
}

main {
    flex: 1;
}

.container-sm {
    margin-inline: auto;
    padding-block: 80px;
    padding-inline:1.5rem;
    width: 900px;
    max-width: 100%;

}

a {
    color: #222;

    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgb(255, 102, 0);
}
a:hover {
    text-decoration-color: #222;
}

a:visited {
   /* color: #222; */
}

p {
    margin: 0 0 24px 0;
}
.back-link{
    display:inline-block;
    margin-bottom:40px;
}
.back-link img  {
margin-right:8px;
}

/* Left‑hand content */
.content {
    flex: 2 0 0;
    /* grow, shrink, basis */
    max-width: 580px;
}

.content .logo {
    height: 300px;
    margin-bottom:24px;
}

.content h1 {
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 1.1em;
    margin-bottom: 1rem;
    color: #282864;
    /* strong primary colour */
}

.content p {
    margin-bottom: 1rem;
    color: #190101;
}



.lead {
    font-size: 24px;
    font-weight: bold;
}

/* Store‑badge links */
.app-store-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.app-store-links a img {
    height: 80px;
    /* keep badges uniform */
    transition: transform .2s ease;
}

.app-store-links a:hover img {
    transform: scale(1.05);
}

/* Right‑hand image */
.image {
    /* background:red; */
    flex: 3;
    text-align: right;
    /* keep image flush to the right edge */
}

.image img {
    width: 60%;
    display:block;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.3));
}

.image .full {
    display: none;
}

.image .clipped {
    display: block;
}

header .image {
    display:flex;
    align-items: center;
}
header .image img:nth-of-type(odd) {
    z-index:2;
}
header .image img:nth-of-type(even) {
    width:55%;
     max-width: 380px;
    transform-origin: 0% 50%;
    margin-left:-15%;
}

@media (min-width: 992px) {
    .image .full {
        display: inline-block;
    }

    .image .clipped {
        display: none;
    }
}

/* -------------------------------------------------
   Footer
------------------------------------------------- */
footer {
    background: #000033;
    color: #eee;
    text-align: center;
    padding: 0.5rem 0;
    font-size: .875rem;
}

footer a {
    color: #35C17A;
    margin: 0 .5rem;
    text-decoration: underline;
}

/* -------------------------------------------------
   Responsive tweaks
------------------------------------------------- */
@media (max-width: 1200px) {
    .content .logo {
    height:250px;
}
}
@media (max-width: 992px) {
    header {
        padding-bottom: 0;
        align-items: stretch;
        padding-top:2rem;
    }

    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }
    .container-sm {
        padding-top:24px;
    }
.content .logo {
    height:200px;
}
    .content,
    .image {
        flex: auto;
        max-width: none;
        text-align: center;
    }

    header .image {
        display: Flex;
        align-items: flex-end;
        margin-top: auto;
        text-align: center;
    }

    .app-store-links {
        justify-content: center;
    }
}

/* Optional: smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}