/* Gemensam stil för sajten: startsidan, undersidor, privacy och terms */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #141516;
    --bg-raised: #1c1d1f;
    --line: rgba(255, 255, 255, .14);
    --text: #ededeb;
    --muted: #a2a5a7;
    --lime: #8be35f;
    --lime-strong: #a2f078;
    --pale: #dcdcd8;
    --ink: #141516;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --pad: clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 80px; }

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--lime);
    margin: 0 0 18px;
}

.btn-lime {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 3px;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s;
}
.btn-lime:hover { background: var(--lime-strong); }

/* Navigering */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px var(--pad);
    transition: background .25s, padding .25s;
}
.site-nav.scrolled {
    background: rgba(20, 21, 22, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.site-nav .brand img { display: block; width: 150px; height: auto; }
.site-nav ul {
    display: flex;
    gap: clamp(18px, 3vw, 44px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav ul a { font-size: 14px; font-weight: 500; color: var(--text); transition: color .2s; }
.site-nav ul a:hover { color: var(--lime); }
.nav-end { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.nav-cta { display: flex; gap: 3px; }
/* språkval: aktuell flagga är tydlig, den andra nedtonad */
.flags { display: flex; gap: 8px; }
.flags a { display: block; width: 24px; height: 16px; border-radius: 2px; overflow: hidden; opacity: .45; transition: opacity .2s; }
.flags a.on, .flags a:hover { opacity: 1; }
.flags a.on { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.flags svg { display: block; width: 100%; height: 100%; }
.nav-cta .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 3px;
    background: var(--lime);
    color: var(--ink);
}

/* Hero */
/* Hela heron fyller skärmen: text i övre halvan, filmrutan i den nedre */
.hero {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
}
.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 92px var(--pad) 28px;
    text-align: center;
}
.hero-text h1 {
    max-width: 16em;
    margin: 0 auto;
    font-size: clamp(30px, min(5.6vw, 9.5vh), 84px);
    line-height: 1.05;
    color: var(--lime);
    text-wrap: balance;
}

/* Rutnätet: filmen ligger underst, rutorna ovanpå */
.hero-grid {
    position: relative;
    height: 50vh;
    height: 50svh;
    overflow: hidden;
    background: linear-gradient(120deg, #2a2b2d, #6b6e71 45%, #3a3c3e 70%, #a5a5a1);
}
.hero-grid video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cells {
    position: relative;
    display: grid;
    height: 100%;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
.cell {
    position: relative;
    min-height: 0;
    border-radius: 5px;
    box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .42);
}
/* prick i varje korsning */
.cell::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: -3px;
    z-index: 2;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
}
/* suddade rutor: filmen syns igenom men oskarp.
   Varannan i över- och nederkant, enstaka i mitten, aldrig två intill varandra.
   Numren är utfyllnadsrutornas ordning, och den beror på antalet kolumner. */
@media (min-width: 992px) {
    .cell.fill:nth-of-type(1),
    .cell.fill:nth-of-type(4),
    .cell.fill:nth-of-type(6),
    .cell.fill:nth-of-type(8),
    .cell.fill:nth-of-type(13),
    .cell.fill:nth-of-type(18),
    .cell.fill:nth-of-type(19),
    .cell.fill:nth-of-type(21),
    .cell.fill:nth-of-type(24),
    .cell.fill:nth-of-type(26) {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, .04);
    }
}
@media (min-width: 576px) and (max-width: 991px) {
    .cell.fill:nth-of-type(1),
    .cell.fill:nth-of-type(2),
    .cell.fill:nth-of-type(4),
    .cell.fill:nth-of-type(7),
    .cell.fill:nth-of-type(10),
    .cell.fill:nth-of-type(13),
    .cell.fill:nth-of-type(17),
    .cell.fill:nth-of-type(20) {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, .04);
    }
}
@media (max-width: 575px) {
    .cell.fill:nth-of-type(2),
    .cell.fill:nth-of-type(3),
    .cell.fill:nth-of-type(6) {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        background: rgba(255, 255, 255, .04);
    }
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(10px, 1.1vw, 18px);
    background: var(--pale);
    color: var(--ink);
    box-shadow: none;
    transition: background .2s;
}
.card.lime { background: var(--lime); }
.card:hover { background: #ececea; }
.card.lime:hover { background: var(--lime-strong); }
.card .num {
    font-family: var(--mono);
    font-size: clamp(8px, .7vw, 11px);
    opacity: .7;
    margin-bottom: .5em;
}
.card .label {
    font-size: clamp(13px, 1.3vw, 21px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.01em;
}
.card .plus {
    position: absolute;
    top: clamp(10px, 1.1vw, 18px);
    right: clamp(10px, 1.1vw, 18px);
    width: clamp(12px, 1.3vw, 20px);
    height: clamp(12px, 1.3vw, 20px);
    transition: transform .25s;
}
.card:hover .plus { transform: rotate(90deg); }
.card .plus::before,
.card .plus::after {
    content: "";
    position: absolute;
    background: currentColor;
    opacity: .6;
}
.card .plus::before { left: 0; right: 0; top: calc(50% - .5px); height: 1px; }
.card .plus::after { top: 0; bottom: 0; left: calc(50% - .5px); width: 1px; }

.card.c1 { grid-column: 3; grid-row: 1; }
.card.c2 { grid-column: 8; grid-row: 2; }
.card.c3 { grid-column: 5; grid-row: 3; }

/* Sektioner */
.section {
    padding: clamp(64px, 9vw, 140px) var(--pad);
    border-top: 1px solid var(--line);
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 72px); }
.section-head.wide { max-width: 900px; margin-bottom: 0; }
.section-head h2 { font-size: clamp(30px, 4vw, 56px); }
.section-head p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 19px; }

/* Appar */
.app {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
    padding: clamp(36px, 5vw, 72px) 0;
    border-top: 1px solid var(--line);
}
.app:last-child { padding-bottom: 0; }
.app .num { font-family: var(--mono); font-size: 12px; color: var(--lime); margin-bottom: 14px; }
.app h3 { font-size: clamp(26px, 3vw, 42px); margin-bottom: 18px; }
.app .desc { color: var(--muted); }
.app .desc p:last-child { margin-bottom: 0; }
.app .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
/* fast höjd så att sidan inte flyttar sig när bilderna laddas in (annars hamnar ankarlänkar fel) */
.app .shots { display: flex; gap: 16px; align-items: center; justify-content: center; height: clamp(260px, 36vw, 520px); }
.app .shots img { min-width: 0; flex: 1 1 0; height: 100%; object-fit: contain; }
.app .shots.film { height: auto; }
.app .shots.film video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-raised); }
/* kompakt lista under de stora apparna: bara första stycket av beskrivningen */
.more-apps { margin-top: clamp(40px, 6vw, 88px); }
.more-apps .tile h3 { margin-bottom: 12px; }
.more-apps .desc { color: var(--muted); }
.more-apps .desc p { margin: 0; }
.more-apps .desc p:not(:first-child) { display: none; }
.more-apps .links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; }
.more-apps .links a { color: var(--lime); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.more-apps .links a:hover { color: var(--lime-strong); }
.app.no-shots { grid-template-columns: minmax(0, 760px); }

.store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text);
    transition: border-color .2s, color .2s;
}
.store:hover { border-color: var(--lime); color: var(--lime); }
.store small { display: block; font-size: 10px; line-height: 1; opacity: .7; }
.store strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.app .btn-lime { height: 48px; }

/* Om och tjänster */
.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.tile { background: var(--bg); padding: clamp(24px, 3.5vw, 52px); }
.tile .num { font-family: var(--mono); font-size: 12px; color: var(--lime); margin-bottom: 40px; }
.tile h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 14px; }
.tile p { color: var(--muted); margin: 0; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
a.tile { display: block; transition: background .2s; }
a.tile:hover { background: var(--bg-raised); }
a.tile .more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Undersidor utan film */
.page-hero { padding: clamp(140px, 16vw, 220px) var(--pad) clamp(56px, 7vw, 100px); }
.page-hero h1 { max-width: 14em; font-size: clamp(36px, 6vw, 88px); color: var(--lime); text-wrap: balance; }
.page-hero .lead { max-width: 720px; margin: 28px 0 0; font-size: clamp(18px, 1.6vw, 22px); color: var(--text); }
.page-hero .btn-lime { margin-top: 36px; height: 48px; padding: 0 24px; }

.faq { margin: 0; border-top: 1px solid var(--line); }
.faq > div {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 12px clamp(24px, 5vw, 80px);
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.faq dt { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.faq dd { margin: 0; color: var(--muted); }

/* Privacy och terms: löpande juridisk text */
.legal { max-width: calc(820px + 2 * var(--pad)); color: var(--muted); }
.legal h2 { font-size: clamp(26px, 3vw, 38px); color: var(--text); margin: 0 0 24px; }
.legal h3 { font-size: 24px; color: var(--text); margin: 56px 0 16px; }
.legal h4 { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--text); margin: 28px 0 10px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--lime); }
.legal a:hover { text-decoration: underline; }
.legal ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }

/* Kontakt */
.contact {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(28px, 6vw, 100px);
}
.contact .section-head { margin-bottom: 0; }
#contact-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#contact-form .wide { grid-column: 1 / -1; }
#contact-form label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
#contact-form input[type=text],
#contact-form input[type=email],
#contact-form select,
#contact-form textarea {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--bg-raised);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    transition: border-color .2s;
}
#contact-form select { appearance: none; -webkit-appearance: none; }
#contact-form textarea { min-height: 150px; resize: vertical; }
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus { outline: none; border-color: var(--lime); }
#contact-form.was-validated :invalid { border-color: #e8836b; }
#contact-form .btn-lime { margin-top: 22px; height: 48px; padding: 0 24px; }
#contact-form.sending { opacity: .3; transition: .3s ease; }
#contact-form.sent { color: var(--lime); font-size: 20px; }

/* Sidfot */
.site-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    padding: 36px var(--pad);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}
.site-foot img { display: block; width: 120px; opacity: .9; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.site-foot a:hover { color: var(--lime); }
.site-foot .social { display: flex; align-items: center; gap: 16px; }

@media (max-width: 991px) {
    .site-nav ul { display: none; }
    .cells { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); }
    .cell.fill:nth-of-type(n+22) { display: none; }
    .card.c1 { grid-column: 2; grid-row: 1; }
    .card.c2 { grid-column: 5; grid-row: 2; }
    .card.c3 { grid-column: 3; grid-row: 4; }
    .card .label { font-size: clamp(13px, 2.3vw, 21px); }
    .card .num { font-size: 10px; }
    .card .plus { width: 16px; height: 16px; }
    .app, .contact, .faq > div { grid-template-columns: minmax(0, 1fr); }
    .tiles, .tiles.three { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .site-nav .brand img { width: 112px; }
    .nav-cta .arrow { display: none; }
    .nav-cta .btn-lime { padding: 0 12px; }
    .cells { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
    .cell.fill:nth-of-type(n+7) { display: none; }
    .card.c1 { grid-column: 2; grid-row: 1; }
    .card.c2 { grid-column: 3; grid-row: 2; }
    .card.c3 { grid-column: 1; grid-row: 3; }
    .card .label { font-size: 15px; }
    #contact-form .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
