:root {
    color-scheme: dark;

    --background: #061426;
    --background-deep: #030d1a;
    --background-soft: #091a2f;

    --surface: #10243e;
    --surface-strong: #152d4b;
    --surface-soft: #1a3557;

    --text: #f8faff;
    --text-soft: #b8c7dc;
    --muted: #8195af;

    --border: #294461;
    --border-soft: rgba(124, 157, 198, 0.18);

    --primary: #5d83ff;
    --primary-dark: #5358ec;
    --primary-light: #8ca7ff;

    --accent: #1dc9bb;
    --success: #31d3af;
    --danger: #ff8492;

    --container: 1180px;

    --shadow-small:
        0 16px 38px rgba(0, 0, 0, 0.2);

    --shadow-large:
        0 30px 90px rgba(0, 0, 0, 0.34);
}

html[data-theme="light"] {
    color-scheme: light;

    --background: #edf5fb;
    --background-deep: #e4eef7;
    --background-soft: #f6f9fc;

    --surface: #ffffff;
    --surface-strong: #f7faff;
    --surface-soft: #edf4fb;

    --text: #0b1e34;
    --text-soft: #536d88;
    --muted: #8195aa;

    --border: #ceddea;
    --border-soft: rgba(57, 87, 120, 0.14);

    --shadow-small:
        0 16px 38px rgba(33, 68, 105, 0.1);

    --shadow-large:
        0 30px 90px rgba(33, 68, 105, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 80% 8%,
            rgba(93, 131, 255, 0.13),
            transparent 31%
        ),
        radial-gradient(
            circle at 10% 88%,
            rgba(29, 201, 187, 0.08),
            transparent 31%
        ),
        var(--background);

    color: var(--text);

    font-family:
        "DM Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.menu-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

button {
    color: inherit;
}

img {
    max-width: 100%;
}

::selection {
    background: rgba(93, 131, 255, 0.35);
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid var(--border-soft);

    background: color-mix(
        in srgb,
        var(--background) 90%,
        transparent
    );

    backdrop-filter: blur(18px);
}

.header-container {
    display: flex;
    width: min(var(--container), calc(100% - 40px));
    min-height: 86px;
    align-items: center;
    gap: 22px;

    margin: 0 auto;
}

.brand {
    display: flex;
    flex: 0 0 auto;
}

.brand-logo {
    width: 205px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 19px;

    margin-left: auto;
}

.main-navigation a {
    position: relative;

    padding: 30px 0;

    color: var(--text-soft);

    font-size: 0.74rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--accent)
        );

    content: "";

    transform: scaleX(0);

    transition: transform 180ms ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--text);
}

.main-navigation a:hover::after,
.main-navigation a.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.header-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;

    border-radius: 14px;

    padding: 0 17px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;

    box-shadow:
        0 14px 32px rgba(82, 101, 238, 0.28);
}

.language-switcher {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 6px;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 0 9px;

    background: var(--surface);
    color: var(--muted);
}

.language-switcher button {
    border: 0;
    border-radius: 8px;

    padding: 7px 8px;

    background: transparent;
    color: inherit;

    font-size: 0.7rem;
    font-weight: 800;

    cursor: pointer;
}

.language-switcher button.active {
    background: rgba(93, 131, 255, 0.16);
    color: var(--primary-light);
}

.theme-toggle,
.mobile-menu-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);
    color: var(--text-soft);

    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;

    border-radius: 999px;

    background: currentColor;
}

/* =========================================================
   GEMENSAMT
========================================================= */

.section {
    position: relative;

    padding: 108px 0;
}

.section-container,
.hero-container,
.footer-container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.eyebrow {
    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 700px;
}

.section-heading.centered {
    margin: 0 auto;

    text-align: center;
}

.section-heading h2,
.split-content h2,
.contact-content h2 {
    margin: 13px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.065em;
}

.section-heading p,
.split-content p,
.contact-content > p {
    margin: 19px 0 0;

    color: var(--text-soft);

    font-size: 1.02rem;
    line-height: 1.75;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;

    margin-top: 48px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: calc(100vh - 86px);

    padding: 77px 0 86px;
}

.hero::before {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(105, 141, 183, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(105, 141, 183, 0.035) 1px,
            transparent 1px
        );

    background-size: 56px 56px;

    content: "";
}

.hero-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 620px;
}

.hero h1 {
    margin: 23px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: clamp(4rem, 7vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.075em;
}

.hero h1 span {
    display: block;
}

.gradient-text {
    margin-top: 8px;

    background:
        linear-gradient(
            135deg,
            #4d82ff,
            #7b62f2
        );

    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 620px;
    margin: 25px 0 0;

    color: var(--text-soft);

    font-size: 1.04rem;
    line-height: 1.76;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border: 1px solid transparent;
    border-radius: 14px;

    padding: 0 20px;

    font-size: 0.83rem;
    font-weight: 800;
    text-decoration: none;

    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    box-shadow:
        0 16px 35px rgba(78, 100, 238, 0.3);
}

.button-secondary {
    border-color: var(--border);

    background: var(--surface);
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;

    margin-top: 25px;

    color: var(--text-soft);

    font-size: 0.73rem;
}

.hero-visual {
    position: relative;

    min-height: 530px;
}

.automation-window {
    position: absolute;
    top: 82px;
    right: 0;

    width: min(100%, 540px);

    border: 1px solid var(--border);
    border-radius: 20px;

    padding-bottom: 20px;

    background: var(--surface);

    box-shadow: var(--shadow-large);
}

.window-topbar {
    display: flex;
    gap: 6px;

    border-bottom: 1px solid var(--border);

    padding: 17px;
}

.window-topbar span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #6c839d;
}

.automation-card {
    margin: 18px;

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 24px 20px;

    background: var(--surface-strong);
}

.automation-label {
    color: var(--muted);

    font-size: 0.68rem;
}

.automation-steps {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 12px;

    margin-top: 26px;
}

.automation-step {
    display: grid;
    min-width: 60px;

    justify-items: center;
    gap: 8px;

    color: var(--muted);

    font-size: 0.61rem;
}

.automation-step strong {
    display: grid;
    width: 34px;
    height: 34px;

    place-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: var(--surface);
}

.automation-step.active strong {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;
}

.automation-line {
    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(93, 131, 255, 0.3),
            var(--primary)
        );
}

.automation-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;

    margin: 0 18px;
}

.automation-stat {
    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 20px;

    background: var(--surface-strong);
}

.automation-stat span,
.automation-stat strong,
.automation-stat small {
    display: block;
}

.automation-stat span,
.automation-stat small {
    color: var(--muted);
}

.automation-stat span {
    font-size: 0.66rem;
}

.automation-stat strong {
    margin-top: 12px;

    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
}

.automation-stat small {
    margin-top: 5px;

    font-size: 0.6rem;
}

.floating-card {
    position: absolute;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 13px 16px;

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.floating-card span,
.floating-card strong {
    display: block;
}

.floating-card span {
    color: var(--muted);

    font-size: 0.62rem;
}

.floating-card strong {
    margin-top: 4px;

    font-size: 0.73rem;
}

.floating-card-top {
    top: 54px;
    right: -14px;
}

.floating-card-bottom {
    right: 335px;
    bottom: 66px;
}

/* =========================================================
   TJÄNSTER
========================================================= */

.services-section,
.process-section {
    border-top: 1px solid var(--border-soft);

    background: var(--background-soft);
}

.feature-card {
    min-height: 290px;

    border: 1px solid var(--border);
    border-radius: 25px;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-strong)
        );

    box-shadow: var(--shadow-small);

    transition:
        transform 180ms ease,
        border-color 180ms ease;
}

.feature-card:hover {
    border-color: rgba(93, 131, 255, 0.55);

    transform: translateY(-5px);
}

.feature-icon {
    display: grid;
    width: 50px;
    height: 50px;

    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(93, 131, 255, 0.22),
            rgba(29, 201, 187, 0.16)
        );

    color: var(--primary-light);

    font-size: 1.3rem;
}

.feature-card h3 {
    margin: 28px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
}

.feature-card p {
    margin: 13px 0 0;

    color: var(--text-soft);

    line-height: 1.72;
}

/* =========================================================
   LÖSNINGAR
========================================================= */

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 85px;
}

.split-content {
    position: sticky;
    top: 130px;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 26px;

    color: var(--primary-light);

    font-weight: 800;
    text-decoration: none;
}

.solution-list {
    border: 1px solid var(--border);
    border-radius: 25px;

    overflow: hidden;

    background: var(--surface);

    box-shadow: var(--shadow-small);
}

.solution-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;

    padding: 29px;
}

.solution-item + .solution-item {
    border-top: 1px solid var(--border);
}

.solution-item > span {
    color: var(--accent);

    font-size: 0.72rem;
    font-weight: 800;
}

.solution-item h3 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.25rem;
}

.solution-item p {
    margin: 9px 0 0;

    color: var(--text-soft);

    line-height: 1.7;
}

/* =========================================================
   PROCESS
========================================================= */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-top: 52px;
}

.process-card {
    min-height: 275px;

    border: 1px solid var(--border);
    border-radius: 25px;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-strong)
        );

    box-shadow: var(--shadow-small);
}

.process-number {
    display: grid;
    width: 42px;
    height: 42px;

    place-items: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--primary-light);

    font-size: 0.7rem;
    font-weight: 800;
}

.process-card h3 {
    margin: 52px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.2rem;
}

.process-card p {
    color: var(--text-soft);

    line-height: 1.72;
}

/* =========================================================
   PRISER
========================================================= */

.pricing-section {
    border-top: 1px solid var(--border-soft);
}

.pricing-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.billing-switch {
    display: flex;

    border: 1px solid var(--border);
    border-radius: 14px;

    padding: 5px;

    background: var(--surface);
}

.billing-switch button {
    min-height: 40px;

    border: 0;
    border-radius: 10px;

    padding: 0 15px;

    background: transparent;
    color: var(--muted);

    font-size: 0.74rem;
    font-weight: 800;

    cursor: pointer;
}

.billing-switch button.active {
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;

    margin-top: 48px;
}

.pricing-card {
    position: relative;

    display: flex;
    min-height: 680px;
    flex-direction: column;

    border: 1px solid var(--border);
    border-radius: 25px;

    padding: 29px;

    background:
        linear-gradient(
            160deg,
            var(--surface),
            var(--surface-strong)
        );

    box-shadow: var(--shadow-small);
}

.pricing-card.featured {
    border-color: rgba(93, 131, 255, 0.78);

    box-shadow:
        0 24px 70px rgba(66, 86, 218, 0.22);
}

.recommended-badge {
    position: absolute;
    top: 18px;
    right: 18px;

    border: 1px solid rgba(93, 131, 255, 0.4);
    border-radius: 999px;

    padding: 6px 10px;

    background: rgba(93, 131, 255, 0.12);
    color: var(--primary-light);

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pricing-label {
    color: var(--accent);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pricing-card-header h3 {
    margin: 16px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.65rem;
    letter-spacing: -0.045em;
}

.pricing-card-header p {
    min-height: 84px;
    margin: 13px 0 0;

    color: var(--text-soft);

    line-height: 1.7;
}

.pricing-price {
    margin-top: 27px;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    padding: 23px 0;
}

.pricing-price > div {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.pricing-price strong {
    font-family: "Manrope", sans-serif;
    font-size: 2.25rem;
    letter-spacing: -0.06em;
}

.pricing-price > div span {
    padding-bottom: 6px;

    color: var(--muted);

    font-size: 0.73rem;
}

.pricing-price small {
    display: block;

    margin-top: 8px;

    color: var(--muted);
}

.pricing-price small strong {
    font-family: inherit;
    font-size: inherit;
    letter-spacing: normal;
}

.pricing-features {
    display: grid;
    gap: 13px;

    margin: 25px 0 0;
    padding: 0;

    list-style: none;
}

.pricing-features li {
    position: relative;

    padding-left: 27px;

    color: var(--text-soft);

    font-size: 0.87rem;
    line-height: 1.5;
}

.pricing-features li::before {
    position: absolute;
    left: 0;

    color: var(--success);

    content: "✓";

    font-weight: 800;
}

.pricing-button {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: auto;

    border: 1px solid rgba(93, 131, 255, 0.6);
    border-radius: 14px;

    padding: 0 15px;

    background: rgba(93, 131, 255, 0.08);
    color: var(--primary-light);

    font-size: 0.84rem;
    font-weight: 800;

    cursor: pointer;
}

.pricing-button-primary {
    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;
}

.pricing-note {
    display: flex;
    gap: 9px;

    margin-top: 20px;

    border: 1px solid var(--border);
    border-radius: 15px;

    padding: 17px 19px;

    background: var(--surface);

    color: var(--text-soft);

    font-size: 0.8rem;
}

/* =========================================================
   VARFÖR FORMORA
========================================================= */

.why-section {
    overflow: hidden;

    border-top: 1px solid var(--border-soft);

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(29, 201, 187, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 70%,
            rgba(93, 131, 255, 0.1),
            transparent 32%
        ),
        var(--background-soft);
}

.why-heading-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr);
    align-items: end;
    gap: 80px;
}

.why-intro {
    margin: 0;

    color: var(--text-soft);

    font-size: 1.04rem;
    line-height: 1.8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;

    margin-top: 52px;
}

.why-card {
    position: relative;

    display: grid;
    min-height: 300px;
    grid-template-rows: auto 1fr;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 24px;

    padding: 25px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-strong)
        );

    box-shadow: var(--shadow-small);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.why-card::after {
    position: absolute;
    right: -60px;
    bottom: -80px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(93, 131, 255, 0.16),
            transparent 68%
        );

    content: "";
}

.why-card:hover {
    border-color: rgba(93, 131, 255, 0.55);

    transform: translateY(-6px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.22);
}

.why-icon {
    display: grid;
    width: 52px;
    height: 52px;

    place-items: center;

    border: 1px solid rgba(93, 131, 255, 0.25);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(93, 131, 255, 0.17),
            rgba(29, 201, 187, 0.12)
        );

    color: var(--primary-light);

    font-size: 1.25rem;
}

.why-card-content {
    position: relative;
    z-index: 1;

    align-self: end;
}

.why-number {
    display: block;

    margin-top: 28px;

    color: var(--accent);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.why-card h3 {
    margin: 12px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.25rem;
    letter-spacing: -0.035em;
}

.why-card p {
    margin: 12px 0 0;

    color: var(--text-soft);

    line-height: 1.7;
}

.why-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

    margin-top: 28px;

    border: 1px solid rgba(93, 131, 255, 0.42);
    border-radius: 24px;

    padding: 30px 32px;

    background:
        linear-gradient(
            135deg,
            rgba(93, 131, 255, 0.14),
            rgba(29, 201, 187, 0.07)
        );
}

.why-cta-label {
    color: var(--accent);

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.why-cta h3 {
    margin: 8px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    letter-spacing: -0.045em;
}

.why-cta p {
    max-width: 670px;
    margin: 9px 0 0;

    color: var(--text-soft);

    line-height: 1.7;
}

/* =========================================================
   OM OSS
========================================================= */

.about-content {
    display: grid;
    gap: 18px;

    color: var(--text-soft);

    font-size: 1.05rem;
    line-height: 1.8;
}

/* =========================================================
   KONTAKT
========================================================= */

.contact-section {
    border-top: 1px solid var(--border-soft);

    background:
        linear-gradient(
            145deg,
            var(--background-soft),
            var(--background)
        );
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 70px;
}

.contact-content {
    position: sticky;
    top: 130px;
}

.contact-benefits {
    display: grid;
    gap: 13px;

    margin-top: 28px;

    color: var(--text-soft);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    margin-top: 34px;

    text-decoration: none;
}

.contact-email > span:first-child {
    display: grid;
    width: 46px;
    height: 46px;

    place-items: center;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: var(--surface);
    color: var(--primary-light);
}

.contact-email small,
.contact-email strong {
    display: block;
}

.contact-email small {
    color: var(--muted);
}

.contact-form {
    border: 1px solid var(--border);
    border-radius: 25px;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            var(--surface),
            var(--surface-strong)
        );

    box-shadow: var(--shadow-large);
}

.form-heading h3 {
    margin: 9px 0 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.selected-package-card {
    display: none;

    margin-top: 20px;

    border: 1px solid rgba(93, 131, 255, 0.45);
    border-radius: 14px;

    padding: 14px 16px;

    background: rgba(93, 131, 255, 0.1);
}

.selected-package-card.visible {
    display: block;
}

.selected-package-card span,
.selected-package-card strong {
    display: block;
}

.selected-package-card span {
    color: var(--muted);

    font-size: 0.68rem;
}

.selected-package-card strong {
    margin-top: 4px;

    color: var(--primary-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;

    margin-top: 28px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field > span {
    font-size: 0.75rem;
    font-weight: 700;
}

.form-field small {
    margin-left: 4px;

    color: var(--muted);

    font-weight: 400;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;

    background: var(--surface-strong);
    color: var(--text);
}

.form-field input,
.form-field select {
    min-height: 50px;

    padding: 0 14px;
}

.form-field textarea {
    min-height: 150px;

    padding: 14px;

    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--muted);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(93, 131, 255, 0.13);
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 17px;

    color: var(--muted);

    font-size: 0.7rem;
    line-height: 1.5;
}

.consent-field input {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;

    margin-top: 2px;

    accent-color: var(--primary);
}

.form-submit-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 20px;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        0 16px 34px rgba(76, 96, 235, 0.3);

    cursor: pointer;
}

.form-submit-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-reassurance {
    margin: 11px 0 0;

    color: var(--muted);

    font-size: 0.68rem;
    text-align: center;
}

.form-status {
    display: none;

    margin-top: 14px;

    border-radius: 12px;

    padding: 12px 14px;

    font-size: 0.74rem;
}

.form-status.visible {
    display: block;
}

.form-status.success {
    border: 1px solid rgba(49, 211, 175, 0.34);

    background: rgba(49, 211, 175, 0.1);
    color: var(--success);
}

.form-status.error {
    border: 1px solid rgba(255, 132, 146, 0.34);

    background: rgba(255, 132, 146, 0.1);
    color: var(--danger);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    border-top: 1px solid var(--border-soft);

    padding: 68px 0 34px;

    background: var(--background-deep);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.footer-logo {
    width: 205px;
}

.footer-brand p {
    margin: 18px 0 0;

    color: var(--text-soft);
}

.footer-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px;
}

.footer-navigation a {
    color: var(--text-soft);

    font-size: 0.78rem;
    text-decoration: none;
}

.copyright {
    grid-column: 1 / -1;

    margin: 18px 0 0;

    border-top: 1px solid var(--border-soft);

    padding-top: 24px;

    color: var(--muted);

    font-size: 0.72rem;
}

/* =========================================================
   CHATT
========================================================= */

.chat-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 220;

    display: grid;
    width: 58px;
    height: 58px;

    place-items: center;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5d4aef,
            #119f9b
        );

    box-shadow:
        0 18px 44px rgba(64, 84, 220, 0.42);

    cursor: pointer;
}

.chat-toggle span {
    position: relative;

    width: 24px;
    height: 18px;

    border-radius: 50%;

    background: #ffffff;
}

.chat-toggle span::after {
    position: absolute;
    right: 2px;
    bottom: -3px;

    width: 8px;
    height: 8px;

    background: #ffffff;

    clip-path: polygon(0 0, 100% 0, 100% 100%);

    content: "";
}

.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 210;

    display: grid;
    width: min(410px, calc(100vw - 32px));
    height: min(650px, calc(100vh - 130px));
    grid-template-rows: auto 1fr auto;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 24px;

    background: var(--surface);

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.45);
}

.chat-panel[hidden] {
    display: none;
}

.chat-header {
    min-height: 126px;

    padding: 27px 23px;

    background:
        linear-gradient(
            135deg,
            #3f62ef,
            #5450ed,
            #11a8a3
        );

    color: #ffffff;
}

.chat-header h2 {
    margin: 0;

    font-family: "Manrope", sans-serif;
    font-size: 1.5rem;
}

.chat-header p {
    margin: 20px 0 0;

    color: rgba(255, 255, 255, 0.88);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 13px;

    overflow-y: auto;

    padding: 18px;
}

.chat-message {
    max-width: 84%;

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 13px 15px;

    background: var(--surface-strong);

    font-size: 0.84rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.chat-message.user {
    align-self: flex-end;

    border-color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5948e7
        );

    color: #ffffff;
}

.chat-message.assistant {
    align-self: flex-start;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 9px;

    border-top: 1px solid var(--border);

    padding: 14px;
}

.chat-form textarea {
    width: 100%;
    min-height: 50px;
    max-height: 125px;

    border: 1px solid var(--border);
    border-radius: 15px;
    outline: none;

    padding: 14px;

    resize: none;

    background: var(--surface-strong);
    color: var(--text);
}

.chat-form button {
    display: grid;
    width: 48px;
    height: 48px;

    place-items: center;

    border: 0;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    cursor: pointer;
}

/* =========================================================
   RESPONSIVT
========================================================= */

@media (max-width: 1200px) {
    .main-navigation {
        gap: 14px;
    }

    .main-navigation a {
        font-size: 0.68rem;
    }

    .brand-logo {
        width: 175px;
    }
}

@media (max-width: 1080px) {
    .main-navigation a[href="#varfor-formora"],
    .main-navigation a[href="#om-oss"] {
        display: none;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .mobile-menu-button {
        display: inline-flex;

        order: 3;
    }

    .main-navigation {
        position: fixed;
        top: 86px;
        right: 0;
        left: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: calc(100vh - 86px);

        overflow-y: auto;

        border-bottom: 1px solid var(--border);

        padding: 16px 20px 24px;

        background: var(--background);
    }

    .main-navigation.open {
        display: flex;
    }

    .main-navigation a,
    .main-navigation a[href="#varfor-formora"],
    .main-navigation a[href="#om-oss"] {
        display: block;

        padding: 16px 4px;

        border-bottom: 1px solid var(--border-soft);

        font-size: 0.85rem;
    }

    .main-navigation a::after {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-container,
    .split-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 500px;
    }

    .automation-window {
        right: 50%;

        transform: translateX(50%);
    }

    .split-content,
    .contact-content {
        position: static;
    }

    .three-column-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        min-height: auto;
    }

    .pricing-card-header p {
        min-height: 0;
    }

    .pricing-button {
        margin-top: 30px;
    }

    .why-heading-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .header-container,
    .section-container,
    .hero-container,
    .footer-container {
        width: calc(100% - 28px);
    }

    .header-container {
        min-height: 76px;
    }

    .brand-logo {
        width: 155px;
    }

    .header-cta {
        display: none;
    }

    .language-switcher {
        min-height: 42px;
    }

    .theme-toggle,
    .mobile-menu-button {
        width: 42px;
        height: 42px;
    }

    .main-navigation {
        top: 76px;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 60px 0 70px;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 17vw, 5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-benefits {
        display: grid;
        gap: 10px;
    }

    .three-column-grid,
    .process-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .pricing-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .billing-switch {
        width: 100%;
    }

    .billing-switch button {
        flex: 1;
    }

    .pricing-note {
        flex-direction: column;
    }

    .why-card {
        min-height: 260px;
    }

    .why-cta {
        padding: 24px 20px;
    }

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

    .form-field-full {
        grid-column: auto;
    }

    .contact-form {
        padding: 23px 18px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-navigation {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
    }

    .chat-panel {
        right: 10px;
        bottom: 82px;

        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
    }

    .chat-toggle {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 520px) {
    .automation-stat-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 580px;
    }

    .floating-card {
        display: none;
    }

    .pricing-card {
        padding: 23px 19px;
    }

    .recommended-badge {
        position: static;

        display: inline-flex;

        margin-bottom: 15px;
    }

    .pricing-price strong {
        font-size: 2rem;
    }
}

:focus-visible {
    outline: 3px solid rgba(93, 131, 255, 0.42);
    outline-offset: 3px;
}
/* =========================================================
   FÖRTROENDE OCH EFTERLEVNAD
========================================================= */

.privacy-assurance {
    margin: 16px 0 0;

    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.6;
}

.trust-section {
    border-top: 1px solid var(--border-soft);
}

.trust-placeholder {
    max-width: 760px;
    margin: 42px auto 0;

    border: 1px dashed var(--border);
    border-radius: 22px;

    padding: 28px;

    background: color-mix(in srgb, var(--surface) 76%, transparent);
    text-align: center;
}

.trust-placeholder strong {
    font-family: "Manrope", sans-serif;
    font-size: 1.15rem;
}

.trust-placeholder p {
    margin: 11px 0 0;

    color: var(--text-soft);
    line-height: 1.7;
}

.footer-compliance {
    grid-column: 1 / -1;

    display: grid;
    gap: 8px;

    margin-top: 8px;

    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}

.footer-compliance p {
    margin: 0;
}

.footer-company-details {
    color: var(--muted);
}

.chat-demo-notice {
    display: block;
    margin-top: 9px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .trust-placeholder {
        padding: 23px 18px;
    }

    .footer-compliance {
        grid-column: auto;
    }
}

.value-comparison {
    margin: 18px 0 0;

    border-left: 3px solid var(--accent);

    padding-left: 12px;

    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.55;
}
