:root {
    color-scheme: light;
    --bg: #f3f4f6;
    --fg: #0f172a;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.40);
    --muted: #6b7280;
    --card-bg: #ddd;
    --border: #e5e7eb;
    --radius-xl: 2rem;

    --dropdown-bg: #ffffff;
    --dropdown-border: #d1d5db;
    --dropdown-border-hover: #9ca3af;
    --dropdown-border-focus: #6366f1;
    --dropdown-text: #111827;
    --dropdown-placeholder: #6b7280;
    --dropdown-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

*::after,
*::before {
    box-sizing: inherit;
}

html {
    font-size: 16px;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-size: 1rem;
    /* 1rem => 18px */
    margin: 0;
    color: var(--muted);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.underline:hover {
    text-decoration: underline;
}

a.highlight {
    padding: .1rem .3rem .3rem .3rem
}

a.highlight:hover {
    color: #fff;
    background: #4091bf;
    text-decoration: underline;
    border-radius: .2rem
}

header,
footer {
    margin: 0 auto;
    padding: 1.0rem 1.25rem;
}


/* Icons */
.fa-icon {
    width: 1em;
    height: 1em;
    margin-right: .5em;
    vertical-align: -0.125em;
    fill: currentColor;
    opacity: .5;
    filter:
        drop-shadow(1px 1px rgba(190, 190, 190, .5))
        /* highlight */
        drop-shadow(0 -1px rgba(0, 0, 0, .5))
        /* shadow */
        drop-shadow(-1px 1px rgba(0, 0, 0, .25));
    /* shadow */
}

.fa-icon-flat {
    width: 2em;
    height: 2em;
    margin-right: .5em;
    vertical-align: -0.55em;
    fill: currentColor;
    opacity: .7;
}

.platform-icon {
    width: 100%;
    height: 100px;
    color: #789;
    margin: 0 auto;

    .fa-icon {
        width: 100%;
        height: 100px;
        filter: unset;
        opacity: 1;
    }
}


/* Flex */
.flex {
    display: flex
}

.flex-space-between {
    justify-content: space-between
}

.flex-1 {
    flex: 1
}

.flex-row {
    flex-direction: row
}

.flex-row-center-h {
    justify-content: center
}

.flex-row-center-v {
    align-items: center
}

.flex-col {
    flex-direction: column
}

.flex-col-center-h {
    align-items: center
}

.flex-col-center-v {
    justify-content: center
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-start {
    justify-content: flex-start;
}

.flex-end {
    justify-content: flex-end;
}

.flex-col-start {
    align-items: flex-start;
}

.flex-col-end {
    align-items: flex-end;
}

/* Gap */
.gap8 {
    gap: .8rem;
}

.gap10 {
    gap: 1rem;
}

/* Font */
.font-bold {
    font-weight: bold
}

.font-normal {
    font-weight: normal
}

.font-xsmall {
    font-size: x-small
}

.font-small {
    font-size: small
}

.font-smaller {
    font-size: smaller
}

.font-larger {
    font-size: larger
}

.font-xlarge {
    font-size: x-large
}

/* Padding */
.px-1 {
    padding-left: .25rem;
    padding-right: .25rem;
}

.px-2 {
    padding-left: .5rem;
    padding-right: .5rem;
}

.px-3 {
    padding-left: .75rem;
    padding-right: .75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

.p-percent-1 {
    padding-left: 1%;
    padding-right: 1%;
}

.p-percent-2 {
    padding-left: 2%;
    padding-right: 2%;
}

.p-percent-3 {
    padding-left: 3%;
    padding-right: 3%;
}

.p-percent-4 {
    padding-left: 4%;
    padding-right: 4%;
}

.p-percent-5 {
    padding-left: 5%;
    padding-right: 5%;
}

/* Margin */
.m-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-1 {
    margin-top: .25rem;
}

.mt-2 {
    margin-top: .5rem;
}

.mt-3 {
    margin-top: .75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.ml-1 {
    margin-left: .25rem;
}

.ml-2 {
    margin-left: .5rem;
}

.ml-3 {
    margin-left: .75rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mr-1 {
    margin-right: .25rem;
}

.mr-2 {
    margin-right: .5rem;
}

.mr-3 {
    margin-right: .75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-6 {
    margin-right: 1.5rem;
}

.mb-1 {
    margin-bottom: .25rem;
}

.mb-2 {
    margin-bottom: .5rem;
}

.mb-3 {
    margin-bottom: .75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

.w-100 {
    width: 100%;
}

/* Positioning */
.pos-rel {
    position: relative;
}

.pos-abs {
    position: absolute;
}

.top {
    top: 0
}

.right {
    right: 0
}

.text-left {
    text-align: left
}

.text-center {
    text-align: center
}

.text-right {
    text-align: right
}

.vertical-top {
    vertical-align: top
}

.vertical-middle {
    vertical-align: middle
}

.center-middle {
    text-align: center;
    vertical-align: middle;
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}



.screenshot {
    box-shadow: 3px 6px 20px 6px #000000;
    width: 90vw;
    max-width: 1250px;
    border-radius: 10px;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 50%;
    background: #0005;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;

    &::before {
        content: "";
        position: absolute;
        border: 5px solid #fff;
        border-radius: 50%;
        left: 6px;
        right: 6px;
        width: 148px;
        height: 148px;
    }

    &::after {
        content: "";
        margin-left: 6px;
        border-left: 44px solid #fff;
        border-top: 23px solid transparent;
        border-bottom: 23px solid transparent;
    }
}

.video-thumbnail {
    position: relative;
    display: inline-block;
    cursor: pointer;

    &::after { 
        content: "";
        position: absolute;
        inset: 0;
    }

    &:hover {
        .play-button {
            transform: translate(-50%, -50%) scale(1.08);
            background: #0008;
        }

        &::after {
            background: rgba(0, 0, 0, 0.15);
        }
    }
}

video {
    width: 94vw;
    max-width: 1280px;
    aspect-ratio: 16 / 9;
}


.wrapper-shadow {
    /*box-shadow: 0px 3px 1px #293847;*/
    border-top: 2px solid #4d6479a0;
    /*#4d6479;*/
    border-bottom: 3px solid #1d2935a0;
    /*box-shadow: 0px 5px 8px #7fa1b9;*/
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 5.5em;
    text-decoration: none;
    color: #7b818c;
    margin-top: -1px;
    padding-left: 1rem;

    .logo-img {
        width: 131px;
        height: 36px;
        border-radius: 8px;
        background: url(../assets/redaxa_logo_262x72.png);
        background-size: 131px 36px;
        margin-right: 1px;
    }

    .slogan {
        font-size: .8rem;
        color: #fff;
        opacity: .5;
    }

    &:hover {
        .slogan {
            opacity: .7;
        }
    }
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
}

nav a.nav-link {
    opacity: .75;
}

nav a.nav-link:hover {
    opacity: 1;
    color: #000;
}


.flex-row-centered {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.flex-col-centered {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
}

.row {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: stretch;
}




.hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    display: grid;
    /*grid-template-columns:minmax(0, 2fr) minmax(0, 1.6fr);*/
    gap: 2rem;
    align-items: center;
}

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 1rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(37, 99, 235, .4);
    font-size: .8rem;
    line-height: 1.6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}

.hero-title {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    line-height: 1.1;
    margin: 0 0 .75rem;
}

.hero-sub {
    margin: 0 0 1rem;
    color: #ccc;
    line-height: 1.4em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .7rem 1.3rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .08s ease, box-shadow .08s ease, background .1s ease, border-color .1s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #f9fafb;
    box-shadow: 0 6px 25px rgba(37, 99, 235, .25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, .55);
}

.btn-ghost {
    background: #ffffff;
    border-color: #d1d5db;
    color: var(--fg);
}

.btn-ghost:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.hero-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 16px 35px rgba(15, 23, 42, .08);
}

.hero-mock {
    margin-top: .5rem;
    border-radius: 1rem;
    background: #0f172a;
    padding: 1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: .8rem;
    color: #e5e7eb;
    max-height: 260px;
    overflow: auto;
}


#features {
    ul {
        margin: .5em 0 0 0
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .04);
}

.card h2 {
    color: #404248;
}

.card h3 {
    margin: .1rem 0 .4rem;
    font-size: 1.12rem;
}

.card p {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-badge {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
}

.pricing-meta {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: .8rem;
}

#note {
    display: flex;
    justify-content: center;

    div {
        max-width: 800px;
    }

    p {
        background-color: #2a3746;
        border: 2px solid #aabdc7;
        border-radius: 10px;
        padding: 1rem 2rem;
        color: #d4b872;
        font-size: 1rem;
    }
}

.simple-layout {
    margin-top: -1rem;
    /*background-color: #fff;*/
    max-width: 1000px;

    h2,
    h3 {
        text-transform: uppercase;
    }

    h3 {
        margin: 1.4em 0 .3em 0;
    }
}




/* Container */

.container {
    margin: 0 auto;
    max-width: calc(100% - 100px);
    width: 1400px;
}

@media screen and (max-width: 1280px) {

    .container {
        width: 100%;
    }

}

@media screen and (max-width: 980px) {

    .container {
        width: 100%;
    }

}

@media screen and (max-width: 736px) {

    .container {
        width: 100%;
        max-width: 100%;
    }

}




/* just to make them tall and separated */
.section {
    padding: 0 2%;
}

/* small devices */
@media (min-width: 576px) {
    .section {
        padding: 0 2%;
    }
}

/* tablets */
@media (min-width: 768px) {
    .section {
        padding: 0 5%;
    }
}

/* laptops */
@media (min-width: 992px) {
    .section {
        padding: 0 10%;
    }
}

/* desktops */
@media (min-width: 1200px) {
    .section {
        padding: 0 14%;
    }
}

/* desktops */
@media (min-width: 1500px) {
    .section {
        padding: 0 18%;
    }
}



.section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.6rem;
}

/* initial hidden state */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 1.4s ease-out,
        transform 1s ease-out;
}

/* when in view */
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.bg-lighter {
    background-color: #fff8;
}

.bg-lighter {
    background-color: #ffff;
}



.section-content>* {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease-out,
        transform 0.5s ease-out;
}

/* When the section is in view, animate each child */
.reveal.in-view .section-content>* {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger effect with delays */
.reveal.in-view .section-content>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal.in-view .section-content>*:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal.in-view .section-content>*:nth-child(3) {
    transition-delay: 0.25s;
}

.reveal.in-view .section-content>*:nth-child(4) {
    transition-delay: 0.35s;
}

.reveal.in-view .section-content>*:nth-child(5) {
    transition-delay: 0.45s;
}

.reveal.in-view .section-content>*:nth-child(6) {
    transition-delay: 0.55s;
}

.reveal.in-view .section-content>*:nth-child(7) {
    transition-delay: 0.65s;
}

.reveal.in-view .section-content>*:nth-child(8) {
    transition-delay: 0.75s;
}




/* Custom DropDown */
.dd {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    line-height: 1em;
    text-shadow: none;
    user-select: none;
}

/* Hidden checkbox that controls open/close */
.dd input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dd label {
    padding: 0 1em;
    border-radius: 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.dd-label-monthly,
.dd-label-lifetime {
    height: 32px;
    white-space: nowrap;
    background-color: rgb(220, 225, 230);
    font-size: 1.14em;
    box-shadow: 0px 1px 0px 1px rgba(0, 0, 50, 0.18) !important;

    &:hover {
        background-color: rgba(62, 106, 162, 0.18);
        box-shadow: 0 1px 2px rgba(0, 0, 0, .5) !important;
    }
}

.dd-label-header {
    background: #2c2e33;
    color: #7cbdcf;
    box-shadow: -1px -1px 1px #fff4, 1px 1px 1px #000d !important;

    &:hover {
        background: #484b53;
    }
}

.dd-label-header::after,
.dd-label-monthly::after,
.dd-label-lifetime::after {
    border-color: transparent;
    border-top-color: inherit;
}

.dd-label-header:hover::after,
.dd-label-monthly:hover::after.dd-label-lifetime:hover::after {
    border-color: inherit transparent transparent transparent;
}

.dd-label-titlebar {
    background: #fff;
    border: 1px solid #d1d5db;
    color: inherit;
    height: 26px;
}

.dd-label-titlebar::after {
    border-color: #6b7280 transparent transparent transparent;
}

/* Arrow */
.dd label::after {
    content: "";
    border-width: 6px 5px 0 5px;
    border-style: solid;
    transition: transform 0.25s ease;
    margin-left: 1em;
}

/* Open state rotates arrow */
.dd input:checked~label::after {
    transform: rotate(180deg);
}

/* Dropdown list */
.dd-list,
.dd-price-list {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 6px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
    line-height: 1em;
}


/* Show list when checked */
.dd-toggle:checked~.dd-list,
.dd-price-toggle:checked~.dd-price-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Items */
.dd-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.dd-item:hover {
    background: #eeeef0;
}

.dd-item[selected] {
    background-color: #6fadd7;
    color: #fff;
}

button {
    font-family: inherit;
}

.price-cards {
    .card {
        text-align: left;
    }

    .main-card {
        border-radius: 1.24rem;
        background-color: #eaeaea;
        box-shadow: rgba(32, 32, 32, 0.02) 0px 4px 6px -2px, rgba(32, 32, 32, 0.08) 0px 12px 16px -4px;
    }

    h3 {
        font-size: 1.1em;
        font-weight: 400;
        text-transform: uppercase;
    }

    .price {
        color: #234;
        font-size: 3em;
        font-weight: 600;
        margin: 1rem 0 0 0;
        line-height: .45em;

        .span {
            float: left;
        }
    }

    .price-info {
        display: inline-block;
        font-size: 14px;
    }

    .subtitle {
        line-height: 1.4em;
        margin: 1rem 0 0;
        font-size: .9rem;
        color: var(--muted);
    }

    a,
    button {
        width: 100%;
        text-align: center;
        display: inline-block;
        text-align: center;
        line-height: 10px;
        font-size: larger;
    }

    button {
        line-height: 25px;
    }

    section {
        &.trial {
            li {
                margin: .5em 0;
                line-height: 1.2em;
                min-height: 1.5em;
            }
        }
    }

    ul {
        display: grid;
        grid-template-columns: 40px 1fr;
        margin: 1.2em 0 -.2em;

        li {
            margin: .65em 0;
            line-height: 1.5em;
        }
    }
}

.download-archive {
    a {
        color: #acb2bf;

        &:hover {color: #ccc;}
    }
}


.legal-layout {
    background-color: white !important;

    section {
        text-align: left;
        line-height: 1.4em;
        margin-bottom: 3em;
    }

    ul {
        list-style-type: disc;
        margin: 1.0em 0 1.4em 3em;
    }

    .no-bullet {
        list-style-type: none !important;
    }

    h4 {
        margin: 1.5em 0 .5em;
    }
}