@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-200-normal.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-300-normal.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 300;
    
    background:
    radial-gradient(ellipse 100% 100% at left top, #003f7fbf 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at center top, #0000ff3f 0%, transparent 40%),
    radial-gradient(ellipse 100% 100% at bottom left, #0000ff2f 0%, transparent 30%),
    radial-gradient(ellipse 100% 200% at bottom right, #0000ff3f 0%, transparent 50%),
    linear-gradient(180deg, #4f4f4f, #1f1f1f);
    /*
     Avoiding repeating gradients: */
    min-height: 100vh;
    
    /* Should improve text rendering -- don't see a big difference yet: */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    background: #dfdfdf;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    
    /* Don't see a difference:
     border-bottom: 1px solid rgba(255,255,255,0.08);
     backdrop-filter: blur(10px);*/
}

.logo {
    display: flex;
    align-items: center;
    /*    clamp(15rem, 40vw, 25rem);*/
    text-decoration: none;
}

.logo img {
    display: block;
    height: 5rem;
    width: auto;
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

.burger {
    width: 2rem;
    height: 24px;
    margin: auto 24px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #2f2f2f; /* "Background" are actually the bars ... */
    border-radius: 1px;
    transition: 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .burger:hover span {
        background: #af2f2f;
    }
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    top: 100%;
    right: 1rem;
    width: 20rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
}

#menu-toggle:checked ~ .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul {
    list-style: none;
}

.dropdown > ul > li {
    border-top: 1px solid #dfdfdf;
    font-weight: 500;
}

.menu-heading {
    display: block;
    padding: 14px 16px;
    background: white;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #2f2f2f;
    transition: 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .dropdown a:hover {
        color: #af2f2f;
    }
}

.submenu a {
    padding-left: 32px;
    font-size: 1rem;
    font-weight: 400;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0px auto;
}

.page {
    display: none;
    padding: 32px;
    scroll-margin-top: 10rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #ffffff;
    overflow: visible; /* Preventing clipping of shadows. */
}

.page > * + * { margin-top: 2rem; }

.page h1 {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1;
}

.page h2 {
    color: #f2336b;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1;
}

.card-link {
    width: 60%;
    display: block;
    text-decoration: none; /* remove underline */
    margin-top: 2rem;
}

.card-link img {
    display: block;
    margin: 1rem 0rem 0; /* top right/left bottom */
    width: 100%;
    height: auto;     /* keep aspect ratio */
    max-height: 400px;  /* adjust value as needed */
    object-fit: contain; /* preserve aspect ratio within the max-height */
}

.left {
    margin-left: 0;
    margin-right: auto;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

.right {
    margin-left: auto;
    margin-right: 0;
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.product-header h1 {
    /*    color: #d2134b;*/
    color: #f2336b;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1;
    /*    white-space: nowrap; /* keep on one line */*/
    flex: 0 0 40%;   /* only as wide as its content */
    text-align: right;
}

.product-header p {
    color: #bfffff;
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.2;
    flex: 1 1 auto; /* take remaining width */
    min-width: 0;   /* IMPORTANT for wrapping inside flex */
    max-width: 20rem;
    margin-top: 1.5rem; /* For offset with respect to h1 ... */
}

.RowOrCol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* horizontal centering */
    align-items: flex-start;   /* top align children */
    gap: 2rem 10vw;
    overflow: visible; /* Preventing clipping of shadows. */
}

.RowOrCol > figure.image {
    margin: 0;
}

.layout-row {
    display: inline-flex;
    align-items: flex-start; /* top-align both elements */
    gap: 1rem;
    overflow: visible; /* Preventing clipping of shadows. */
    padding: 1rem;
    /*    border-radius: 0.5rem;*/
    background: rgba(0, 0, 0, 0.2);
}

.float-left {
    float: left;
    margin: 2rem 1.5rem 1rem 0;
}

figure.image img {
    display: block;
    height: auto;
    
    filter:
    drop-shadow(0 2px 8px rgba(0,0,0,0.25))
    drop-shadow(0 12px 32px rgba(0,0,0,0.35))
    drop-shadow(0 24px 40px rgba(0,0,0,0.45));
}

figure.image.bordered img {
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.5);
}

figure.image.image-smaller img {
    max-height: min(12rem, 40vw);
}

figure.image.image-narrow img {
    max-height: 55vh;
    max-width: 20vw;
}

figure.image.image-med img {
    max-height: 55vh;
    max-width: 40vw;
}

figure.image.image-large img {
    max-height: 55vh;
    max-width: 40vw;
}

figure.image.image-wide img {
    max-height: 55vh;
    max-width: min(60vw, 1200px);
}

figure.image.image-fullwidth img {
    max-width: 100%;
    background: transparent;
}

figure.zoomable { cursor: pointer; }

/* Only apply hover effects on real hover devices */
@media (hover: hover) and (pointer: fine) {
    figure.zoomable img {
        transition: transform 0.2s ease;
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0);
    }
    
    figure.zoomable:hover img {
        transform: scale(1.02);
    }
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    /* IMPORTANT */
    overflow: auto;
}

#overlay.active {
    display: flex;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
}

.audioPlayer-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /*    padding: 1rem;*/
    /*    border: 1px solid #7f7f7f;*/
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.icon-btn {
    height: 2rem;
    padding: 0 0.5rem;
    width: fit-content;
    
    background: transparent;
    border: 1px solid #7f7f7f;
    border-radius: 0.5rem;
    
    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1rem;
    font-weight: 200;
    cursor: pointer;
}

.icon-btn svg { display: block; width: 1.25rem; height: 1.25rem; }

.icon-btn svg path { fill: none; stroke-width: .002rem; stroke: white; }

@media (hover: hover) and (pointer: fine) {
    .icon-btn:hover {
        background: #0000003f;
    }
}

.icon-btn:active {
    transform: scale(0.95);
}

#playlist {
    list-style: none;
    font-size: 0.9rem;
    font-weight: 200;
    padding: 0;
}

#playlist li {
    padding: 0.5rem;
    cursor: pointer;
}

#playlist li.active {
    background: #0000003f;
}

#timeline {
    height: 6px;
    background: #7f7f7f7f;
    cursor: pointer;
    position: relative;
}

#progress {
    height: 100%;
    width: 0%;
    background: #ffffff7f;
}

.appstore-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    gap: 1rem;
}

.app-icon {
    display: inline-block;
    border-radius: 22%;
    
    /* glow */
    box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 10px rgba(255,255,255,0.06),
    0 0 24px rgba(120,170,255,0.25),
    0 6px 18px rgba(0,0,0,0.35);
    
    transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* resize Apple embed */
.app-icon a {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

/* optional hover polish */
@media (hover: hover) and (pointer: fine) {
    .app-icon:hover {
        transform: translateY(-1px);
        
        box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 0 14px rgba(255,255,255,0.10),
        0 0 32px rgba(120,170,255,0.3),
        0 10px 28px rgba(0,0,0,0.42);
    }
}

.app-store-badge {
    height: 2.5rem;
}

/*    .image img {*/
/*        max-width: min(40rem, 40%);*/
/*        height: auto;*/
/*    }*/

/* Default main page */
#main-page {
    display: block;
}

/* Show selected content using :target */
.page:target {
    display: block;
}

/* Hide default main page when another section is targeted */
body:has(.page:target) #main-page {
    display: none;
}

body:has(#main-page:target) #main-page {
    display: block;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .dropdown {
        right: 16px;
        width: calc(100% - 32px);
    }
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh; /* Don't know why I need this again here. */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.page.active {
    display: block;
}

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9; /* Standard YouTube ratio */
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    
    padding: 1rem 2rem;
    
    color: #2f2f2f;
    background: #dfdfdf;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-links a {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    
    color: inherit;
    text-decoration: none;
    border-radius: 0.4rem;
}

.footer-links a:active {
    background: #2f2f2f;
}

.footer-links a:focus-visible {
    outline: 2px solid #2f2f2f;
    outline-offset: 3px;
}

.copyright {
    font-weight: 300;
}

@media (hover: hover) and (pointer: fine) {
    .footer-links a:hover {
        text-decoration: underline;
    }
}

/*    @media (max-width: 600px) {*/
/*        .site-footer {*/
/*            flex-direction: column;*/
/*            align-items: flex-start;*/
/*        }*/
/*    }*/

.formkit-form[data-uid="43823bcd4b"] [data-style="clean"] {
    padding-top: 0 !important;
}

.formkit-form[data-uid="43823bcd4b"] [data-style="clean"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.formkit-form[data-uid="43823bcd4b"] .formkit-powered-by-convertkit {
    filter: brightness(0) saturate(100%) invert(40%);
}
