/* ============ Brand tokens (from style.css) ============ */
:root {
    --heading-font: "Manrope", sans-serif;
    --body-font: "Roboto", sans-serif;
    --mono-font: "Roboto Mono", monospace;

    --primary-color: #082841;
    --primary-offset-color: #407bb3;

    --secondary-color: #DEF5FF;

    --alt-color: #1a71f3;

    --highlight-color: #13633e;
    --highlight-offset-color: #3fb67e;

    --light-color: #FAFAFA;
    --dark-color: #070707;

    --grey-color: #5f676e;
    --grey-offset-color: #a8b2b9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-size: 1rem;
    font-family: var(--body-font);
    color: var(--dark-color);

    line-height: 1.55;
}

h1,
h2,
h3 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--alt-color);
}

img,
svg {
    max-width: 100%;
}

/* ============ Buttons (from style.css) ============ */
.button {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    text-decoration: none;
    box-sizing: border-box;
    margin: 0;
    border-radius: 1.275rem;
    font-family: var(--body-font);
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    border: 0.15rem solid transparent;
}

.button-primary {
    border-color: var(--primary-color);
    background: linear-gradient(0deg, var(--primary-color), var(--primary-offset-color));
    color: var(--light-color);
}

.button-primary:hover {
    background-image: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.button-save {
    border-color: var(--highlight-color);
    background: linear-gradient(0deg, var(--highlight-color), var(--highlight-offset-color));
    color: var(--light-color);
}

.button-save:hover {
    background-image: none;
    background-color: var(--light-color);
    color: var(--highlight-color);
}

.cta {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.65rem 1.8rem;
    border-radius: 1.5rem;
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ============ Layout helpers ============ */
.wrap {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 2.5rem 0;
}

.section-tint {
    background: var(--secondary-color);
}

/* ============ Header ============ */
header.site {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 0;
}

header.site .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wordmark {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--light-color);
    text-decoration: none;
    letter-spacing: -0.01em;
}

#lang-toggle {
    background: transparent;
    border: 0.1rem solid var(--secondary-color);
    color: var(--light-color);
    border-radius: 1.275rem;
    padding: 0.3rem 0.9rem;
    font-family: var(--body-font);
    font-weight: 500;
    cursor: pointer;
}

#lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============ Hero ============ */

#logo {
    height: 3rem;
    width: auto;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--primary-color);
    font-weight: 800;
}

.hero h2 {
    font-size: clamp(1.4rem, 3.2vw, 2rem);
    color: var(--alt-color);
    font-weight: 800;
}

.hero .lede {
    font-size: 1.1rem;
    color: var(--grey-color);
}

.hero .headline {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
}

.hero .fine-print {
    font-size: 0.9rem;
    color: var(--grey-color);
    margin-top: 0.75rem;
}

.hero-section-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text {
    width: 100%;
}

.hero-image {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 0.6rem;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* ---- Waitlist form ---- */

.sib-form,
.sib-container--medium,
.sib-form-block {
    padding: 0;
}

#sib-container {
    padding: 0;
    margin-top: 0.5rem;
}

.hero .sib-form {
    margin-top: 1rem;
    width: 100%;
}

.form-fields {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.form-fields label {
    display: block;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
    color: var(--primary-color);
}

.form-fields input[type="email"] {
    flex: 1 1 15rem;
    padding: 0.65rem 1rem;
    border: 0.1rem solid var(--grey-offset-color);
    border-radius: 1.275rem;
    font-family: var(--body-font);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.form-fields input[type="email"]:focus-visible,
#lang-toggle:focus-visible,
.button:focus-visible {
    outline: 0.15rem solid var(--alt-color);
    outline-offset: 0.15rem;
}

.form-confirm {
    display: none;
}

.hero .sib-form.is-done .form-fields {
    display: none;
}

.hero .sib-form.is-done .form-confirm {
    display: block;
}

.stamp {
    display: inline-block;
    border: 0.2rem solid var(--highlight-color);
    color: var(--highlight-color);
    font-family: var(--heading-font);
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 0.4rem;
    transform: rotate(-4deg);
    animation: stamp-pop 0.35s ease-out;
}

@keyframes stamp-pop {
    from {
        transform: rotate(-4deg) scale(0.6);
        opacity: 0;
    }

    to {
        transform: rotate(-4deg) scale(1);
        opacity: 1;
    }
}

.form-confirm p {
    margin-top: 0.75rem;
    color: var(--grey-color);
}


/* ============ Problem list ============ */
.problem-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.problem-list li {
    border-left: 0.3rem solid var(--primary-offset-color);
    padding: 0.4rem 0 0.4rem 1rem;
    color: var(--grey-color);
}

/* ============ How it works (folder tabs) ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.step-tab {
    background: var(--primary-color);
    color: var(--light-color);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 0.95rem;
    width: 70%;

    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem 0.6rem 0 0;
    clip-path: polygon(0 0, 92% 0, 100% 100%, 0% 100%);
}

.step-body {
    background: white;
    border: 0.1rem solid var(--grey-offset-color);
    border-radius: 0 0.6rem 0.6rem 0.6rem;
    padding: 1.25rem 1rem 1rem;
    color: var(--grey-color);
    min-height: 6rem;
}

/* ============ Compliance callout ============ */
.compliance .wrap {
    max-width: 46rem;
}

.compliance h2 {
    color: var(--primary-color);
}

/* ============ Beta CTA ============ */
.beta .wrap {
    text-align: left;
    max-width: 46rem;
}

.beta h2 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0rem;
}

/* ============ Footer ============ */
footer.site {
    background: var(--secondary-color);
    color: var(--dark-color);
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

footer.site .wrap {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

footer.site a {
    color: var(--dark-color);
    text-decoration: none;
}

footer.site p {
    margin: 0;
}

/* ============ Language toggle logic ============ */
/* All bilingual text is a pair of <span data-de>/<span data-en> — this is
   the only rule needed. */
[data-en] {
    display: none;
}

body.en [data-de] {
    display: none;
}

body.en [data-en] {
    display: inline;
}


/* -------- Impressum and Forms ----------- */

body.impressum,
body.submit {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;    
}

.impressum main .wrap {
    max-width: 90vw;
    padding-top: 2rem;
}

.impressum footer,
.submit footer {
    margin-top: auto;
}

.impressum main .submit-wrap,
.submit main .submit-wrap {
    padding-top: 2.5rem;
}

.submit-wrap {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.submit h2 {
    margin: 2rem 0 2rem 0;
}

.gdpr,
.impressum {
    color: var(--dark-color);
}


/* ============ Responsive ============ */

/* Medium screen sizes - 768px up*/
@media screen and (min-width: 768px) {
    .wrap {
        max-width: 90vw;
    }

    .impressum main .wrap {
        max-width: 80vw;
    }

    .hero-section-flex {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .hero-text {
        width: 55%;
    }

    .hero-image {
        width: 100%;

    }

    .hero .sib-form {
        width: 40%;
        margin-top: 0rem;
    }
}

/* Large screen sizes - 992px up*/
@media screen and (min-width: 992px) {
    .wrap {
        max-width: 80vw;
    }

    .impressum main .wrap {
        max-width: 60vw;
    }
}

/* XX-Large screen sizes - 1400px up*/
@media screen and (min-width: 1400px) {
    .wrap {
        max-width: 60vw;
    }

    .impressum main .wrap {
        max-width: 50vw;
    }

    .hero-text {
        width: 50%;
    }

    .hero .sib-form {
        width: 38%;
        margin-top: 0rem;
    }

    .submit-wrap {
        max-width: 50vw;
    }
}

@media (max-width: 800px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}