/* ─── TOKENS ─── */
:root {
    --paper:   #f5f2ed;
    --ink:     #0d0d0d;
    --accent:  #433eed;
    --muted:   #333;
    --rule:    #e0ddd8;
    --surface: #eceae5;
    --nav-h:   52px;
}

[data-theme="dark"] {
    --paper:   #181816;
    --ink:     #f0e8c0;
    --accent:  #ff5a3d;
    --muted:   #CCCCCC;
    --rule:    #2c2c2a;
    --surface: #222220;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.25s, color 0.25s;
    min-width: 200px;
}
a { color: inherit; text-decoration: none; }
.body-sm a { color: var(--accent); text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }
a[rel~="external"]::after {
    content: "\2197";
    display: inline-block;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: bold;
    margin-right: -0.15rem;
    vertical-align: super;
}

ul  { list-style: none;
        padding-left: 20px;
        margin-left: 0;
    }
li:hover { text-decoration: underline;
            text-decoration-color: var(--accent);
            text-decoration-thickness: 2px;}


/* ─── TYPOGRAPHY ─── */
.text-section-title {
    font-size: clamp(28px, 3.8vw, 52px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}
.label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.body-sm{
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
}
.outline-text { -webkit-text-stroke: 2px currentColor; color: transparent; }

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 300;
    height: var(--nav-h);
    min-height: var(--nav-h);
    max-height: var(--nav-h);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: background 0.25s, border-color 0.25s;
}
.nav-logo {
    padding: 0 24px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: border-color 0.25s;
    opacity: 0;
}
nav.logo-landed .nav-logo { opacity: 1; }
.nav-links {
    display: flex;
    align-items: stretch;
    margin-left: auto;
}
.nav-links a {
    padding: 0 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-left: 1px solid var(--rule);
    display: flex;
    align-items: center;
    opacity: 0.45;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.nav-cta {
    background: var(--ink);
    color: var(--paper);
    opacity: 1;
    border-left-color: var(--ink);
}
.nav-links a.nav-cta:hover { background: var(--accent); border-left-color: var(--accent); }

/* ─── BURGER ─── */
.nav-burger {
    display: none;
    padding: 0 16px;
    border: none;
    border-left: 1px solid var(--rule);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 52px;
    flex-shrink: 0;
}

.nav-burger svg {
    width: 18px;
    height: 18px;
    position: absolute;
}

.icon-close { opacity: 0; }

/* Mobile nav drawer */
.nav-links.mobile-open {
    pointer-events: all;
}

.theme-toggle {
    padding: 0 18px;
    border: none;
    border-left: 1px solid var(--rule);
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.theme-toggle:hover { color: var(--ink); }

#icon-moon, #icon-sun {
    width: 1.2em;
    height: 1.2em;
}
/* ─── FLYING HERO TITLE ─── */
#flying-title {
    position: fixed;
    top: 0; left: 0;
    z-index: 400;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.04em;
    text-transform: uppercase;
    line-height: 1;
    transform-origin: top left;
    will-change: transform, font-size;
    pointer-events: none;
    white-space: nowrap;
    transition: color 0.25s;
}

.display-plus {
    font-size: 0.8em;
    font-weight: 100;
    color: var(--accent);
    position: relative;
    top: -0.75em;
    left: -0.25em;
}

/* ─── HERO SPACER ─── */
#hero-spacer {
    height: 100vh;
    border-bottom: 1px solid var(--rule);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 32px 28px;
    justify-content: space-between;
}
.hero-sub-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: calc(var(--nav-h) + 20px);
}

/* ─── SCROLL NARRATIVE ─── */
.scroll-narrative {
    position: relative;
}

/* ─── STICKY VIS ─── */
.sticky-vis {
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    width: 50%;
    float: left;
    border-right: 1px solid var(--rule);
    overflow: hidden;
}

/* ─── VIS LAYERS ─── */
/* GSAP controls transform/opacity via inline styles.
   CSS only provides layout — no transforms here. */
.vis-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 32px;
    pointer-events: none;
    will-change: transform, opacity;
}
[data-theme="dark"] .kompis-img {
    content: url('img/kompis-dark.png');
}

.vis-layer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#vis-overlay,
#vis-overlay2{
    align-items: center;
    justify-content: flex-end;
    padding: 45% 0 0 18%;
}

#vis-overlay img,
#vis-overlay2 img {
    width: 80%;
    height: auto;
    object-fit: contain;
    object-position: top left;
    box-shadow: 0 20px 60px rgba(0,0,0,0.22);
    border: 1px solid var(--rule);
    background: var(--paper);
}

#vis-dual { gap: 14px; }

#vis-dual img {
    flex: 1;
    min-width: 0;
    max-height: 100%;
    object-fit: contain;
}

/* ─── SCROLL STEPS ─── */
.scroll-steps { margin-left: 50%; }

.scroll-step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 56px;
}

.scroll-step:last-child { border-bottom: none; }
.scroll-step-inner h2 { margin-bottom: 24px; }
.scroll-step-inner p  { margin-bottom: 14px; }
.scroll-step-inner p:last-child { margin-bottom: 0; }

/* clearfix */
.scroll-narrative::after {
    content: '';
    display: table;
    clear: both;
}

.compat-underline {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

/* ─── SECTION KICKER ─── */
.section-kicker {
    border-top: 0.5px solid var(--rule);
    border-bottom: 0.5px solid var(--rule);
    padding: 16px 32px 22px;
    display: flex;
    flex-direction: column;
    align-items: end;
}
.kicker-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}
.kicker-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.kicker-title {
    font-size: clamp(60px, 14vw, 180px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.85;
    margin-top: 2rem;
}

/* ─── FAQ ─── */

#faq{
    counter-reset: faq-section;
}
.faq-list { border-bottom: 0.5px solid var(--rule); }
.faq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 0.5px solid var(--rule);
    border-left: 3px solid transparent;
    padding: 28px 32px 28px 29px;
    gap: 40px;
    cursor: pointer;
    transition: background 0.15s, border-left-color 0.2s;
}
.faq-row:hover { background: var(--surface); }
.faq-row.open {
    border-left-color: var(--accent);
    background: var(--surface);
}
.faq-q {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.faq-q::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--muted);
    margin-left: auto;
    padding-left: 16px;
    flex-shrink: 0;
    line-height: 1.2;
    transition: transform 0.2s, color 0.2s;
}
.faq-row.open .faq-q::after {
    transform: rotate(45deg);
    color: var(--accent);
}
.faq-num {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ink);
    flex-shrink: 0;
    padding-top: 3px;
    transition: color 0.2s;
}
.faq-num:before{
    counter-increment: faq-section;
    content: counter(faq-section, decimal-leading-zero);
}
.faq-row.open .faq-num { color: var(--accent); }
.faq-question {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.4;
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { padding-left: 0; list-style: none; }
.faq-a li { padding: 3px 0; }

/* ─── FEATURES ─── */
.how-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 0.5px solid var(--rule);
}
.how-row:nth-child(odd) {
    border-right: 0.5px solid var(--rule);
}
.how-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.5fr;
    gap: 32px;
    align-items: baseline;
    border-top: 0.5px solid var(--rule);
    padding: 24px 32px;
    transition: background 0.15s;
}
.how-row:hover {
    background: var(--surface);
}
.how-num {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--ink);
    padding-top: 2px;
}
.how-step {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}
.how-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

/* --- FAQ --- */

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: fit-content;
    background-color: var(--paper);
    font-weight: bold;
    color: var(--ink);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--rule);
    outline: none;
    transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
    background-color: var(--accent);
    color: var(--paper);
}
.accordion::after {
    content: "";
    display: block;
    width: 2em;
    height: 2em;
    background-color: var(--ink);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.1717 12.0005L9.34326 9.17203L10.7575 7.75781L15.0001 12.0005L10.7575 16.2431L9.34326 14.8289L12.1717 12.0005Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.1717 12.0005L9.34326 9.17203L10.7575 7.75781L15.0001 12.0005L10.7575 16.2431L9.34326 14.8289L12.1717 12.0005Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    transform: rotate(0deg);
    transition: transform 0.4s;
}

.accordion.active::after {
    transform: rotate(180deg);
}

/* Style the accordion panel. Note: hidden by default */
.panel {
    display: grid;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;

}


.panel p { padding: 20px; }


/* ─── TWO-COL ─── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 0.5px solid var(--rule);
}

.col-left  { border-right: 0.5px solid var(--rule); padding: 56px 32px; }
.col-right { padding: 56px 32px; }

/* ─── FORMAT LIST ─── */
.format-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 0.5px solid var(--rule);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.format-item:last-child { border-bottom: none; }
.format-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; }

.daw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.daw-tag {
    border: 0.5px solid var(--rule);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.daw-tag:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── DOWNLOAD ─── */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 0.5px solid var(--rule);
}
.dl-left {
    background: var(--ink);
    color: var(--paper);
    padding: 64px 32px;
    border-right: 0.5px solid var(--rule);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    transition: background 0.25s, color 0.25s;
}
.text-download {
    font-size: clamp(56px, 9vw, 110px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
}

.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 13px 20px;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--paper);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-decoration: none;
}
.dl-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dl-btn.solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.dl-btn.solid:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.dl-right { padding: 64px 32px; }
.sys-list { list-style: none; border-top: 0.5px solid var(--rule); }
.sys-list li {
    font-size: 12px;
    color: var(--muted);
    padding: 9px 0;
    border-bottom: 0.5px solid var(--rule);
}
.sys-list li:last-child { border-bottom: none; }

/* ─── COOKIE HINT ─── */
.cookie-hint {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 11px 28px;
    background: var(--surface);
    border-top: 0.5px solid var(--rule);
    font-size: 1em;
    color: var(--muted);
    transition: opacity 0.25s, transform 0.25s;
}
.cookie-hint.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}
.cookie-ok {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: none;
    border: 0.5px solid var(--rule);
    padding: 5px 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-family: inherit;
}
.cookie-ok:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* ─── FOOTER ─── */
footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 0.5px solid var(--rule);
}
.footer-col { padding: 36px 28px; border-right: 0.5px solid var(--rule); }
.footer-col:last-child { border-right: none; }
.footer-mark { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 10px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-links a.accent { color: var(--accent); }
.foot-bar { padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; }

/* ─── RESPONSIVE ─── */

/* ─── STEP IMAGES (mobile only) ─── */
.mobile-img {
    display: none;
}

@media (max-width: 860px) {
    .mobile-img {
        display: flex;
        margin-top: 32px;
        width: 100%;
    }

    .mobile-img img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border: 1px solid var(--rule);
    }

    .mobile-img--dual {
        gap: 12px;
    }

    .mobile-img--dual img {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 860px) {
    .sticky-vis { display: none; }
    .scroll-steps { margin-left: 0; }
    .scroll-step { padding: 60px 24px; min-height: auto; }
    .two-col { grid-template-columns: 1fr; }
    .col-left { border-right: none; border-bottom: 0.5px solid var(--rule); }
    .section-kicker { padding: 12px 24px 16px; }
    .kicker-meta { padding-bottom: 10px; margin-bottom: 12px; }
    .how-section { grid-template-columns: 1fr; }
    .how-row:nth-child(odd) { border-right: none; }
    .how-row { grid-template-columns: 48px 1fr; }
    .how-desc { display: none; }
    .faq-row { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
    .download-grid { grid-template-columns: 1fr; }
    .dl-left { border-right: none; border-bottom: 0.5px solid var(--rule); }
    footer { grid-template-columns: 1fr; }
    .footer-col { border-right: none; border-bottom: 0.5px solid var(--rule); }
    .footer-col:last-child { border-bottom: none; }
    .accordion::after {
        transform: rotate(90deg);
    }

    .accordion.active::after {
        transform: rotate(270deg);
    }
}

@media (max-width: 600px) {
    .how-row { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; }
    .how-desc { display: block; grid-column: 2; }
    .section-kicker { padding: 10px 20px 12px; }
    .nav-burger {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        /* hidden by default — GSAP animates this */
        pointer-events: none;
        visibility: hidden;
    }

    .nav-links a,
    .nav-links .theme-toggle {
        border-left: none;
        border-bottom: 1px solid var(--rule);
        border-top: none;
        padding: 16px 24px;
        font-size: 11px;
        opacity: 1;
        justify-content: space-between;
    }

    .nav-links a::after { content: '↗'; opacity: 0.3; }
    .nav-links a.nav-cta::after { content: '↓'; opacity: 1; }

    .nav-links a.nav-cta {
        background: var(--ink);
        color: var(--paper);
    }

    .nav-links .theme-toggle {
        border-bottom: none;
        justify-content: space-between;
    }

    .nav-links .theme-toggle::before { content: 'Theme'; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

}
