/* Reset CSS with Your Variables */
:root {
    --sys--surface: #faf9fd;
    --sys--on_surface: #1a1c1e;
    --sys--primary: var(--ref--primary_40);
    --sys--on_primary: var(--ref--primary_100);
    --sys--surface_container: #eeedf1;
    --sys--surface_container_highest: #e3e2e6;
    --sys--outline_variant: #c3c6cf;
    --sys--inverse_surface: #2f3033;
    --sys--on_surface_shadow: #3f3f411e;
    --sys--inverse_on_surface: #f1f0f4;
    --sys--outline: #73777f;
    --ref--primary_95: #eaf1ff;
    --sys--surface_container_low: #f4f3f7;
    --ref--primary_0: black;
    --ref--primary_10: #001c38;
    --ref--primary_20: #00315b;
    --ref--primary_30: #004880;
    --ref--primary_40: #0060a8;
    --ref--primary_50: #287ac8;
    --ref--primary_60: #4a94e4;
    --ref--primary_70: #6aaeff;
    --ref--primary_80: #a2c9ff;
    --ref--primary_90: #d3e4ff;
    --sys--primary_container: var(--ref--primary_90);
    --sys--on_primary_container: var(--ref--primary_10);
    --ref--primary_99: #fdfcff;
    --ref--primary_100: white;
    --sys--surface_container_lowest: white;
    --sys--surface_container_high: #e8e8eb;
    --sys--on_surface_variant: #43474e;
}

/* Box Sizing and Border-Box */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin and padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed. */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    background-color: var(--sys--surface);
    color: var(--sys--on_surface);
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    margin: auto;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    padding: 1rem 0;
    text-rendering: optimizeLegibility;
    font-family: Varela Round, system-ui, sans-serif;
    /* A modern system font stack */
}

body p {
    font-size: 1rem;
    line-height: 1.5rem;
    font-family: Inter, sans-serif;
    color: var(--sys--on_surface_variant);
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Remove default button styling */
button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Anchor styling */
a {
    text-decoration: none;
    color: var(--sys--primary);
    /* or your preferred link color */
}

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

/* Form element resets */
input,
textarea,
select {
    border: 1px solid var(--sys--outline_variant);
    padding: 0.5em;
    border-radius: 4px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--sys--primary);
}

textarea {
    resize: vertical;
}

.page-wrapper {
    padding: 1rem 2rem;
}

header,
footer {
    padding: 0 1rem;
}

nav {
    display: flex;
    align-items: center;
}

.nav-logo img {
    max-height: 50px;
}

section {
    padding: 5rem 2rem;
}

section:nth-child(2n) {
    background-color: var(--sys--surface_container);
}

.section-hero {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.section-hero div:nth-child(2n) {
    flex-grow: 2;
}

.section-hero figure {
    width: 80%;
}

.highlight {
    color: var(--sys--primary);
}

h1 {
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 .highlight {
    font-weight: 700;
}

.download-badges {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 6rem;
    padding: 4rem 02rem 4rem 0rem;
}

h2 {
    font-size: 2rem;
}

.section-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem 1rem;
}

.feature-card {
    background-color: var(--sys--surface_container_high);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--sys--outline_variant);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease-in-out;
}

.feature-card:hover {
    border: 1px solid var(--sys--outline);
    box-shadow: 1px 1px 4px 0px var(--sys--on_surface_shadow);
}

.feature-card>svg,
.feature-card>figure * {
    color: var(--sys--primary);
    fill: currentColor !important;
}

.contact-info {
    display: flex;
    flex-direction: row;
    padding: 2rem 0;
    gap: 1rem;
    align-items: center;
}

a {
    text-decoration: underline;
}

.icon-wrapper {
    padding: 1rem;
    display: flex;
    background-color: var(--sys--surface_container_highest);
    border-radius: 8px;
}

footer {
    background-color: var(--sys--inverse_surface);
    color: var(--sys--inverse_on_surface);
    padding: 5rem 2rem;
}

footer div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

footer a,
footer p {
    color: var(--sys--inverse_on_surface);
    display: inline-block;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
}

/* demo section */

.demo-wrapper {
    /* variables for demo */
    --active-step: 0;
    --step-count: 4;
    --slide-duration: 5s;
    /* styling */
    display: flex;
    width: 100%;
    flex-direction: row;
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    align-items: start;
    justify-content: space-between;
}

.steps {
    display: flex;
    flex-direction: column;
    margin-top: 8rem;

    list-style: none;
    overflow: hidden;
    border-radius: 8px;
    border-color: var(--sys--outline_variant);
    border-width: 1px;
    border-style: solid;
    counter-reset: step-counter;

    >li {
        counter-increment: step-counter;
    }

    >.step {
        padding: 1rem;
        position: relative;
        counter-increment: calc(step-counter+1);
        cursor: pointer;

        >p {
            font-size: 1.25rem;
        }

        >p::before {
            content: counter(step-counter) '. ';
        }

        &:hover {
            background-color: var(--sys--surface_container_high);
        }

        >.step-indicator {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 2px;
            width: 0%;
            background-color: var(--sys--primary);
        }

        &:nth-child(var(--active-step) + 1) .step-indicator {
            width: 100%;
            animation: width-scale var(--slide-duration) ease 0 infinite;
        }
    }
}

.steps>.step.current {
    font-weight: 600;
    background-color: var(--sys--surface_container_high);
}

.steps>.step.current>.step-indicator {
    animation: width-scale var(--slide-duration) ease-in;
}

@keyframes width-scale {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.slides {
    margin-left: 2rem;
    /* position: relative; */
    position: relative;
    top: 0px;
    right: 0px;
    aspect-ratio: 9/16;
    height: 984px;
    padding-bottom: 2rem;
}

.slide-wrapper {
    /* alignment */
    align-content: center;
    opacity: 0;
    /* position */
    position: absolute;
    top: 0px;
    right: 0px;
    /* current slide */
}

.current {
    opacity: 1;
}


/* Adjust hero section on small screens */
@media (max-width: 768px) {
    .section-hero {
        flex-direction: column;

    }

    .download-badges {
        display: flex;
        align-items: start;
    }

    .section-hero text-content {
        align-items: start;
        justify-self: self-start;
    }

    .section-hero figure {
        width: 100%;
        margin-top: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .download-badges {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 2rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .demo-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
    }

    .steps {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 480px;
        list-style: none;
        padding: 0;
        margin: 0 auto;
        gap: 1rem;
    }


    .steps .step.current {
        background-color: var(--sys--surface_container_high);
        font-weight: 600;
    }

    .slider {
        display: flex;
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically (optional) */
        height: 100vh;
        /* Full viewport height (optional) */
        overflow: hidden;
    }
}

*/ .slides {

    width: 100%;
    max-width: 480px;
    position: relative;
    aspect-ratio: 9/16;
}

.slide-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.slide-wrapper.current {
    opacity: 1;
    position: relative;
}



footer {
    padding: 2rem 1rem;
    text-align: center;
}

footer div {
    flex-direction: column;
}