body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: #000000;
    background-color: #ffffff;
}

@media (min-width: 1600px) {
    .header, .main-container {
        zoom: 1.3;
    }
    
    .header {
        padding-left: 5%;
    }
}

h1 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
    font-weight: 700;

}

p {
    font-size: 12px;
    justify-content: center;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;

}

.main-container {
    display: flex;
    max-width: 1100px;
    margin: 60px auto;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 40px;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .main-container {
        margin: 20px auto;
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
    }

    .text-section {
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .text-section h2 {
        font-size: 24px;
    }

    .text-section .hero-text {
        text-align: center;
        margin: 0 auto;
        font-size: 16px;
    }

    .contact-links {
        justify-content: center;
    }

    .right-column {
        max-width: 100%;
    }

    .workflow {
        padding: 20px 15px;
        /* Skalar ner hela sektionen för att passa mobilskärmen utan att behöva scrolla */
        transform: scale(0.85); 
        transform-origin: top center;
        margin-bottom: -40px; /* Kompenserar för tomrummet som scale skapar */
    }

    .carousel {
        width: 100%;
    }
}

.text-section {
    flex: 1;
    min-width: 300px;
    text-align: left;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.text-section h2 {
    font-size: 30px;
    margin-bottom: 20px;
    line-height: 1.2;
    margin-left: 0;
    margin-right: 0;
    font-family: "Tomorrow", Arial, sans-serif;
}

.text-section h2 .sub-text {
    font-size: 18px;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

.text-section .hero-text {
    text-align: left;
    width: 100%;
    max-width: 500px;
    font-size: 18px;
    color: #555;
    line-height: 1.5;
    margin-left: 0;
    margin-right: 0;
    font-family: "Tomorrow", Arial, sans-serif;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    font-family: "Tomorrow", Arial, sans-serif;
}

.linkedin-link {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    text-decoration: none;
}

.right-column {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 520px;
}

.background {
    min-height: 100dvh;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: inherit;
    z-index: -1;
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5px;
    padding-left: 40px;
    padding-top: 20px;
}

.header img {
    transform: translateY(-0.7px);
}

.rounded {
    border-radius: 7px;
}

.footer {
    display: none;
}

.footer a {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
}

.content {
    flex: none;
}

.noselect {
    user-select: none;
}

.carousel {
    background: rgb(245, 245, 245);
    border: 1px solid rgba(255, 255, 255, 0);
    margin: 20px auto;
    width: 70%;
    height: 100px;
    border-radius: 20px;
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: hidden;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.cta-container {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 20px;
}

.cta-button {
    background: rgb(71, 109, 254);
    border: 1px solid rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #000000;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.4s ease;
}

.cta-button:hover {
    background: rgba(71, 109, 254, 0.57);
    border: 1px solid rgba(255, 255, 255, 0.82);
    transition: background 0.3s ease;
}

.group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 7s infinite linear;
    padding-right: 1em;
}

.card {
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    background-color: white;
    font-size: 20px;
    border-radius: 10px;
    text-align: center;
    align-content: center;
}

@keyframes spin {
    from  { translate: 0; }
    to    { translate: -100%; }
}


.workflow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 520px;
    background: #f4f4f4;
    border-radius: 24px;
    padding: 32px 28px;
    position: relative;
}

.workflow-label {
    position: absolute;
    top: 24px;
    left: 28px;
    font-family: "Tomorrow", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.5px;
}

.connector {
    width: 1.5px;
    height: 20px;
    background: #d4d4d4;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}
.connector--1 { animation-delay: 0.55s; }
.connector--2 { animation-delay: 1.35s; }
.connector--3 { animation-delay: 4.05s; }

.doc-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(-12px);
    animation: revealDown 0.5s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.1s;
}
.doc-icon__label {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.3px;
}
.doc-icon__paper {
    width: 30px;
    height: 38px;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 6px;
}
.doc-icon__line {
    height: 2px;
    background: #d6d6d6;
    border-radius: 2px;
}
.doc-icon__line:nth-child(1) { width: 70%; }
.doc-icon__line:nth-child(2) { width: 90%; }
.doc-icon__line:nth-child(3) { width: 60%; }
.doc-icon__line:nth-child(4) { width: 80%; }

.sync-icon {
    width: 36px;
    height: 36px;
    background: #4a90f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.6);
    animation: revealScale 0.45s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.7s;
    box-shadow: 0 3px 12px rgba(74,144,245,0.35);
}
.sync-icon img {
    width: 22px;
    height: 22px;
}

.table-wrap {
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    padding: 14px 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: revealDown 0.5s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 1.5s;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5px;
    table-layout: fixed; /* Låser kolumnbredderna direkt */
}

thead th {
    text-align: left;
    font-weight: 700;
    color: #999;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0 0 6px 0;
    border-bottom: 1.5px solid #e8e8e8;
}
thead th:first-child { padding-left: 16px; }

thead th:first-child,
tbody td:first-child {
    padding-right: 20px;
}
tbody tr {
    opacity: 0;
    transform: translateY(8px);
    animation: rowIn 0.4s cubic-bezier(.22,1,.36,1) forwards;
}
tbody tr:nth-child(1) { animation-delay: 1.9s; }
tbody tr:nth-child(2) { animation-delay: 2.15s; }
tbody tr:nth-child(3) { animation-delay: 2.4s; }
tbody tr:nth-child(4) { animation-delay: 2.65s; }
tbody tr:nth-child(5) { animation-delay: 2.9s; }
tbody tr:nth-child(6) { animation-delay: 3.15s; }

tbody td {
    padding: 5px 0;
    color: #222;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
}
tbody td:first-child { padding-left: 16px; }

.row-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 1.5px;
    background: #4a90f5;
    margin-right: 6px;
    vertical-align: middle;
}

.cell-text {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    width: auto;
    opacity: 0;
    /* Maskerar texten så den ser ut att skrivas ut */
    clip-path: inset(0 100% 0 0); 
}

.cell-text.animate {
    animation: cellReveal var(--dur, 0.6s) steps(40, end) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes cellReveal {
    from {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.excel-icon {
    width: 36px;
    height: 36px;
    background: #21a366;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.6);
    animation: revealScale 0.45s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 4.5s;
    box-shadow: 0 3px 10px rgba(33,163,102,0.3);
}
.excel-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes revealDown {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes revealScale {
    to { opacity: 1; transform: scale(1); }
}
@keyframes rowIn {
    to { opacity: 1; transform: translateY(0); }
}