/* =========================================================
   Karlik Solutions – gemensam stil för alla sidor
   ========================================================= */

:root {
    --ink: #0b1220;
    --ink-soft: #151d2d;
    --cloud: #f5f3ef;
    --sand: #efe7dc;
    --brand: #f97316;
    --brand-dark: #d65f10;
    --sea: #0ea5a0;
    --edge: #1c2a3d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Work Sans", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: radial-gradient(circle at top left, #ffffff 0%, var(--cloud) 55%, var(--sand) 100%);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* ---------- Header & meny ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(28, 42, 61, 0.1);
}

.logo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}

.logo {
    height: 44px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    font-weight: 600;
}

nav a {
    text-decoration: none;
    color: var(--ink);
}

nav a:hover,
nav a[aria-current="page"] {
    color: var(--brand);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid rgba(28, 42, 61, 0.2);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--ink) 0%, var(--edge) 60%, #1f354f 100%);
    color: #ffffff;
    padding: 90px 0 110px;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
}

.hero-section::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, var(--brand) 0%, transparent 65%);
    top: -120px;
    right: -120px;
}

.hero-section::after {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--sea) 0%, transparent 70%);
    bottom: -180px;
    left: -140px;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(2.4rem, 3vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.cta-button {
    display: inline-block;
    background-color: var(--brand);
    color: var(--ink);
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--brand);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.35);
}

.ghost-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.metric {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 16px;
    border-radius: 16px;
}

.metric strong {
    display: block;
    font-size: 1.4rem;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.hero-card {
    background: #ffffff;
    color: var(--ink);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(10, 20, 35, 0.35);
    animation: float 8s ease-in-out infinite;
}

.hero-card img {
    border-radius: 16px;
    margin-bottom: 18px;
}

.hero-card h3 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    margin-bottom: 8px;
}

/* ---------- Sektioner ---------- */

section {
    padding: 80px 0;
}

h2 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    margin-bottom: 24px;
}

.section-intro {
    max-width: 680px;
    margin: -8px 0 32px;
}

.about-section p {
    max-width: 760px;
    margin-bottom: 16px;
}

/* ---------- Tjänstekort ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(28, 42, 61, 0.1);
    box-shadow: 0 10px 24px rgba(20, 30, 45, 0.08);
    color: var(--ink);
    text-decoration: none;
}

.service-card h3 {
    margin-bottom: 12px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.service-card p {
    flex-grow: 1;
}

a.service-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 16px 30px rgba(20, 30, 45, 0.12);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.12);
    color: var(--brand-dark);
    margin-bottom: 18px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.card-link {
    margin-top: 18px;
    font-weight: 700;
    color: var(--brand-dark);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--sand);
    color: var(--edge);
}

.service-card.coming-soon {
    opacity: 0.85;
}

/* ---------- Case / exempel ---------- */

.case-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.case-list {
    list-style: none;
    margin-top: 20px;
}

.case-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.case-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
}

/* Illustration av en skärm – fiktiva data */
.mock-screen {
    background: var(--ink);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 20px 40px rgba(10, 20, 35, 0.25);
}

.mock-inner {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
}

.mock-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--edge);
    opacity: 0.7;
    margin-bottom: 8px;
}

.mock-input {
    border: 2px solid var(--brand);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
}

.mock-result {
    background: var(--cloud);
    border-radius: 14px;
    padding: 18px;
}

.mock-result small {
    display: block;
    font-weight: 600;
    opacity: 0.7;
}

.mock-result strong {
    display: block;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--brand-dark);
}

.mock-caption {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 12px;
}

/* Klickbara exempelrutor */
.example-card {
    cursor: pointer;
}

.example-card.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px var(--brand), 0 16px 30px rgba(20, 30, 45, 0.12);
}

#exempel {
    scroll-margin-top: 70px;
}

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

.example-panel {
    animation: fadeUp 0.4s ease;
}

.panel-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px dashed rgba(28, 42, 61, 0.2);
    font-size: 0.95rem;
}

/* Illustration: automatiserat flöde */
.mock-flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: left;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cloud);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    font-size: 0.95rem;
}

.flow-step small {
    display: block;
    font-weight: 400;
    opacity: 0.7;
}

.flow-dot {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.85rem;
}

.flow-arrow {
    text-align: center;
    color: var(--brand-dark);
    font-weight: 700;
    line-height: 1;
}

.flow-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

/* Illustration: internt verktyg (tabell) */
.mock-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.mock-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    padding: 0 8px 8px;
}

.mock-table td {
    padding: 10px 8px;
    border-top: 1px solid rgba(28, 42, 61, 0.08);
}

.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.pill-ok { background: rgba(14, 165, 160, 0.15); color: #0b7d79; }
.pill-out { background: rgba(249, 115, 22, 0.15); color: var(--brand-dark); }

.mock-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-weight: 700;
}

.mock-btn {
    background: var(--brand);
    color: var(--ink);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 999px;
}

/* Illustration: statisk hemsida i webbläsarfönster */
.mock-browser {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-align: left;
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--sand);
}

.browser-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(28, 42, 61, 0.25);
}

.browser-url {
    margin-left: 8px;
    flex: 1;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.75rem;
    opacity: 0.8;
}

.browser-page {
    padding: 18px;
}

.mini-hero {
    background: linear-gradient(120deg, var(--ink), var(--edge));
    color: #ffffff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
}

.mini-hero strong {
    display: block;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.1rem;
}

.mini-btn {
    display: inline-block;
    margin-top: 10px;
    background: var(--brand);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mini-cards span {
    height: 48px;
    border-radius: 8px;
    background: var(--cloud);
}

.speed-badge {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.speed-badge span {
    color: #0b7d79;
}

@media (max-width: 820px) {
    .case-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Villkorssida ---------- */

.legal-page {
    padding: 56px 0 80px;
}

.legal-page .container {
    max-width: 860px;
}

.legal-page h1 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.legal-meta {
    opacity: 0.7;
    margin-bottom: 28px;
}

.legal-toc {
    background: #ffffff;
    border: 1px solid rgba(28, 42, 61, 0.1);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 40px;
}

.legal-toc strong {
    display: block;
    margin-bottom: 8px;
}

.legal-toc ol {
    padding-left: 20px;
}

.legal-toc a {
    color: var(--ink);
}

.legal-toc a:hover {
    color: var(--brand-dark);
}

.legal-part {
    scroll-margin-top: 90px;
    background: #ffffff;
    border: 1px solid rgba(28, 42, 61, 0.1);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 28px;
}

.legal-part > h2 {
    margin-bottom: 8px;
}

.legal-part h3 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.1rem;
    margin: 26px 0 8px;
}

.legal-part p,
.legal-part ul {
    margin-bottom: 12px;
}

.legal-part ul {
    padding-left: 22px;
}

.legal-part li {
    margin-bottom: 4px;
}

.legal-part dt {
    font-weight: 700;
    margin-top: 10px;
}

.legal-part dd {
    margin: 0 0 8px;
}

.legal-part a {
    color: var(--brand-dark);
}

@media (max-width: 640px) {
    .legal-part {
        padding: 22px 18px;
    }
}

/* ---------- Fördelar ---------- */

.benefits-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f2e8 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.benefit-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px dashed rgba(28, 42, 61, 0.15);
}

.benefit-item strong {
    display: block;
    margin-bottom: 6px;
}

/* ---------- Process ---------- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.process-step {
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(28, 42, 61, 0.12);
}

.process-step span {
    display: inline-block;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

/* ---------- Kontakt ---------- */

.contact-section {
    background: var(--ink);
    color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.contact-item {
    margin-bottom: 16px;
}

.contact-item h4 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

form {
    position: relative;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: #f5f3ef;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    font-size: 1rem;
    color: var(--ink);
}

form select {
    cursor: pointer;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form button {
    padding: 12px 26px;
    border: none;
    background: var(--brand);
    color: var(--ink);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form-note {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 4px 0 14px;
}

.form-note a {
    color: #ffffff;
}

/* Honeypot: dolt för människor, synligt för bottar */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin-top: 12px;
    font-weight: 600;
}

.form-status.success {
    color: var(--brand);
}

.form-status.error {
    color: #fca5a5;
}

/* ---------- Footer ---------- */

footer {
    background: #070d18;
    color: #ffffff;
    text-align: center;
    padding: 24px 0;
}

footer a {
    color: #ffffff;
}

/* ---------- Animationer ---------- */

.reveal {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; }
    .hero-card { animation: none; }
}

/* ---------- Mobil ---------- */

@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cloud);
        border-bottom: 1px solid rgba(28, 42, 61, 0.1);
        box-shadow: 0 12px 24px rgba(20, 30, 45, 0.08);
    }

    header nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: min(1120px, 92%);
        margin: 0 auto;
        padding: 8px 0 16px;
    }

    nav li a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(28, 42, 61, 0.08);
    }

    nav li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        padding: 70px 0 90px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 60px 0;
    }

    .services-grid,
    .benefits-grid,
    .process-grid {
        gap: 16px;
    }

    .service-card {
        padding: 22px;
    }

    .service-card p,
    .benefit-item span {
        font-size: 0.98rem;
    }

    .contact-content {
        gap: 24px;
    }
}

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

    .metric {
        padding: 12px;
    }

    .hero-card {
        padding: 18px;
    }
}

/* ---------- Om oss ---------- */

.about-section h3 {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: 1.25rem;
    margin: 32px 0 10px;
}

.about-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-top: -8px;
}

.about-tagline {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 28px;
}
