/* ==========================================================================
   Klarbock — marknadssida
   Tokens ur produkten (docs/marketing-brief/05-varumarke.md)
   ========================================================================== */

@font-face {
    font-family: "Schibsted Grotesk";
    src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* varumärke */
    --brand-50: #f3faea;
    --brand-100: #dff0c8;
    --brand-200: #c3e49a;
    --brand-500: #6cbb33;
    --brand-600: #45831e;
    --brand-700: #386b18;
    --brand-900: #264c12;
    --ink: #1a1a1a;

    /* härledda ytor */
    --paper: #ffffff;
    --mist: #f6f8f2;            /* ljus sektionston, grönstämd */
    --moss: #1c2712;            /* mörk grönsvart för hero-toning/CTA-band */
    --line: #e3e9da;

    /* status (placeholder-illustrationen) */
    --status-amber: #e8a13d;
    --status-red: #cf5b46;
    --status-none: #d9ded3;

    --font-display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 48px);
    --radius: 14px;
    --nav-h: 76px;

    --shadow-card: 0 1px 2px rgba(26, 26, 26, .05), 0 10px 30px -12px rgba(38, 76, 18, .18);
    --shadow-card-hover: 0 2px 4px rgba(26, 26, 26, .06), 0 22px 44px -14px rgba(38, 76, 18, .28);
}

/* --------------------------------------------------------------------------
   Bas
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    overflow-x: clip;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
    font-weight: 700;
    text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: var(--brand-600); }

:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 4px;
}

h1:focus { outline: none; }

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Byggstenar
   -------------------------------------------------------------------------- */

.eyebrow {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-600);
    margin-bottom: 1.1em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: .95em 1.5em;
    border-radius: 12px;
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease,
                transform .2s ease, box-shadow .2s ease;
}

.btn--primary {
    background: var(--brand-600);
    color: #fff;
}

.btn--primary:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(38, 76, 18, .5);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .14);
    transform: translateY(-2px);
}

/* bocken som ritas i knappar/kort */
.check {
    width: 1.05em;
    height: 1.05em;
    flex: none;
}

.check path {
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .45s ease .05s;
}

.btn:hover .check path,
.card:hover .check path,
.card:focus-within .check path {
    stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
    .check path { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(rgba(20, 28, 12, .55), rgba(20, 28, 12, 0));
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.site-nav.nav--solid {
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(26, 26, 26, .25);
}

.nav__inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: clamp(14px, 3vw, 36px);
}

.nav__brand {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}

/* märket: geten följer textfärgen, bocken är alltid loggagrön */
.brand-mark { display: block; }
.brand-mark .mark-check { fill: #59af2b; }
.brand-mark .mark-goat { fill: currentColor; transition: fill .3s ease; }

.nav__brand .brand-mark { height: 40px; width: 40px; }

.nav__wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.nav__wordmark b { color: var(--brand-500); font-weight: 800; }

.nav--solid .nav__wordmark b { color: var(--brand-600); }

.nav__links {
    display: flex;
    gap: clamp(12px, 2.5vw, 28px);
}

.nav__links a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: .98rem;
    padding: .4em 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
}

.nav__links a:hover { border-bottom-color: var(--brand-500); }

.nav__cta { padding: .75em 1.2em; font-size: .95rem; }

@media (max-width: 640px) {
    /* CTA:n finns i heron och CTA-bandet — navbaren släpper den på mobil */
    .nav__cta { display: none; }
    .nav__inner { gap: 16px; }
    .nav__brand .brand-mark { height: 32px; width: 32px; }
    .nav__wordmark { font-size: 1.15rem; }
    .nav__links { margin-left: auto; }
    .nav__links a { font-size: .95rem; }
}

/* --------------------------------------------------------------------------
   Hero — carousel som bakgrund, behandlad i tre lager
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    align-items: center;
    min-height: 560px;
    height: 78vh;
    height: 78svh;
    max-height: 880px;
    color: #fff;
    background: var(--moss);
    padding-top: var(--nav-h);
}

.hero__bg { position: absolute; inset: 0; z-index: -3; }

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
    will-change: opacity, transform;
}

.hero__slide.is-active { opacity: 1; }

.anim .hero__slide { animation: hero-drift 26s ease-in-out infinite alternate; }

@keyframes hero-drift {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}

/* lager 1: mörk gradient åt textsidan + grön duoton */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(100deg, rgba(20, 28, 12, .88) 0%, rgba(28, 39, 18, .62) 46%, rgba(38, 76, 18, .30) 100%),
        linear-gradient(rgba(38, 76, 18, .22), rgba(38, 76, 18, .22));
}

/* lager 2: planritningsmönstret */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("img/planritning.svg") right -80px top -60px / 1100px auto no-repeat;
    opacity: .13;
    pointer-events: none;
}

.hero__content { max-width: 680px; }

.hero__title {
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: .25em;
}

.hero__title .word-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero__title .word { display: inline-block; }

.hero .eyebrow { color: var(--brand-200); }

.hero__lead {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    max-width: 34em;
    color: rgba(255, 255, 255, .88);
    margin-bottom: 2em;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;
    display: flex;
    gap: 10px;
    z-index: 1;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background-color .3s ease, transform .3s ease;
}

.hero__dot.is-active {
    background: var(--brand-500);
    transform: scale(1.25);
}

.hero__dot:hover { background: rgba(255, 255, 255, .8); }

/* animationsutgångslägen — bara när JS + GSAP finns och motion är ok */
.anim .hero .eyebrow,
.anim .hero__lead,
.anim .hero__actions,
.anim .hero__dots { opacity: 0; transform: translateY(26px); }

.anim .hero__dots { transform: translateX(-50%) translateY(14px); }

.anim .hero__title .word { transform: translateY(112%); }

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

.section { padding-block: clamp(76px, 10vw, 132px); }

.section--mist { background: var(--mist); }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }

.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

.section__lead { font-size: 1.15rem; color: rgba(26, 26, 26, .78); }

.anim .reveal { opacity: 0; transform: translateY(34px); }

/* --------------------------------------------------------------------------
   Planritningssektionen (hjärtpunkten)
   -------------------------------------------------------------------------- */

.plan-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

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

/* webbläsarram för placeholder/skärmbilder */
.frame {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.frame__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: var(--mist);
    border-bottom: 1px solid var(--line);
}

.frame__bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.frame__bar span {
    margin-left: 10px;
    font-size: .78rem;
    color: rgba(26, 26, 26, .55);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .2em .9em;
}

.frame__badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: .74rem;
    font-weight: 600;
    color: var(--brand-900);
    background: rgba(223, 240, 200, .92);
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    padding: .35em 1em;
}

.plan-mock { display: block; width: 100%; height: auto; }

/* riktig skärmbild i en .frame */
.frame__shot { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Lightbox — skärmbilder i full storlek. Knappen runt bilden skapas av
   site.js (utan JS: vanlig bild, ingen död knapp).
   -------------------------------------------------------------------------- */

.zoom {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.zoom::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345831e' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M11 8v6M8 11h6M16.5 16.5 21 21'/%3E%3C/svg%3E") center / 17px no-repeat;
    box-shadow: 0 2px 10px rgba(26, 26, 26, .14);
    transition: transform .2s ease;
    pointer-events: none;
}

.zoom:hover::after,
.zoom:focus-visible::after { transform: scale(1.1); }

.lightbox {
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 92vw;
    max-height: 92vh;
    overflow: visible;
}

.lightbox::backdrop { background: rgba(26, 26, 26, .82); }

.lightbox img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card-hover);
}

.lightbox__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26, 26, 26, .2);
}

.lightbox__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

/* mobil: fullskärm istället för modal */
@media (max-width: 640px) {
    .lightbox {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
    }

    .lightbox img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: contain;
        border-radius: 0;
        background: none;
    }

    .lightbox::backdrop { background: rgba(26, 26, 26, .96); }

    .lightbox__close { top: 12px; right: 12px; }
}

/* mjuk öppning (stängning sker direkt — medvetet enkelt) */
@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] { transition: opacity .22s ease, transform .22s ease; }
    .lightbox[open]::backdrop { transition: opacity .22s ease; }

    @starting-style {
        .lightbox[open] { opacity: 0; transform: scale(.97); }
        .lightbox[open]::backdrop { opacity: 0; }
    }
}

.no-scroll { overflow: hidden; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
    font-size: .88rem;
    color: rgba(26, 26, 26, .75);
}

.legend li { display: inline-flex; align-items: center; gap: .5em; }

.legend i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(26, 26, 26, .18);
}

.legend .l-klar { background: var(--brand-500); }
.legend .l-paborjad { background: var(--status-amber); }
.legend .l-orsak {
    background: repeating-linear-gradient(45deg, #fff 0 2px, var(--status-red) 2px 4px);
}
.legend .l-incident { background: #fff; border: 2px solid var(--status-red); }
.legend .l-inget { background: var(--status-none); }

/* --------------------------------------------------------------------------
   Styrkekort
   -------------------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } }

.cards--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1020px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards--3 { grid-template-columns: 1fr; } }

.card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(22px, 2.4vw, 30px);
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--brand-200);
}

.card h3 { font-size: 1.22rem; margin-bottom: .45em; }

.card p { margin: 0; font-size: .97rem; color: rgba(26, 26, 26, .75); }

.card .check {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 22px;
    height: 22px;
    color: var(--brand-500);
}

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    color: var(--brand-600);
    margin-bottom: 18px;
}

.card__icon svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Roller
   -------------------------------------------------------------------------- */

.roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 32px);
}

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

.role {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease;
}

.role:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.role__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.role__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.role:hover .role__media img { transform: scale(1.06); }

.role__body { padding: clamp(22px, 2.6vw, 32px); }

.role__body h3 { font-size: 1.45rem; }

.role__body p { color: rgba(26, 26, 26, .75); margin-bottom: 1.2em; }

.role__link {
    font-weight: 600;
    color: var(--brand-600);
    display: inline-flex;
    align-items: center;
    gap: .4em;
}

.role__link::after {
    content: "→";
    transition: transform .25s ease;
}

.role:hover .role__link::after { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   CTA-band
   -------------------------------------------------------------------------- */

.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--moss);
    color: #fff;
    text-align: center;
    padding-block: clamp(80px, 10vw, 140px);
}

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("img/planritning.svg") center / 1300px auto no-repeat;
    opacity: .09;
}

.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.cta-band p {
    max-width: 38em;
    margin-inline: auto;
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
    margin-bottom: 2.2em;
}

.cta-band .eyebrow { color: var(--brand-200); }

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

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .75);
    padding-block: 56px;
    font-size: .95rem;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
    justify-content: space-between;
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    color: #fff;
    text-decoration: none;
}

.footer__brand .brand-mark { height: 34px; width: 34px; }

.footer__brand .nav__wordmark b { color: var(--brand-500); }

.footer__tagline { color: rgba(255, 255, 255, .55); }

.site-footer a { color: var(--brand-200); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Undersidornas sidhuvud
   -------------------------------------------------------------------------- */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--mist);
    padding-top: calc(var(--nav-h) + clamp(52px, 7vw, 92px));
    padding-bottom: clamp(52px, 7vw, 92px);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("img/planritning-gron.svg") right -120px top -40px / 1000px auto no-repeat;
    opacity: .07;
    pointer-events: none;
}

.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.page-hero .section__lead { max-width: 620px; }

.section[id], .cluster[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* --------------------------------------------------------------------------
   Funktionskluster (text + visual, varannan spegelvänd)
   -------------------------------------------------------------------------- */

.cluster {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.cluster + .cluster { margin-top: clamp(64px, 8vw, 112px); }

.cluster h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }

.cluster__intro { color: rgba(26, 26, 26, .75); margin-bottom: 1.6em; }

.cluster--flip .cluster__media { order: -1; }

@media (max-width: 900px) {
    .cluster { grid-template-columns: 1fr; }
    .cluster--flip .cluster__media { order: 0; }
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px;
}

.feature-list li {
    position: relative;
    padding-left: 36px;
    font-size: .98rem;
    color: rgba(26, 26, 26, .75);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid var(--brand-100);
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 10 18.5 20 6.5' fill='none' stroke='%2345831e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.feature-list strong { color: var(--ink); }

/* --------------------------------------------------------------------------
   Telefonram + appskärmbilder
   -------------------------------------------------------------------------- */

.phone {
    position: relative;
    width: min(320px, 100%);
    margin-inline: auto;
    background: var(--ink);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-card-hover);
}

.phone__screen {
    background: var(--mist);
    border-radius: 30px;
    overflow: hidden;
}

.phone__screen img { display: block; width: 100%; height: auto; }

/* foto som klustervisual */
.cluster__photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.cluster__photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* skärmbildscollage på ljus bakgrund behöver en kant för att inte flyta ihop med sektionen */
.cluster__photo--shot { border: 1px solid var(--line); background: #fff; }

/* --------------------------------------------------------------------------
   Uppstartsstegen (numrerad trestegslista på /pilot)
   -------------------------------------------------------------------------- */

.steps {
    list-style: none;
    counter-reset: steg;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

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

.steps li {
    counter-increment: steg;
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(26px, 3vw, 38px);
    padding-top: 72px;
    box-shadow: var(--shadow-card);
}

.steps li::before {
    content: counter(steg);
    position: absolute;
    top: 24px;
    left: clamp(26px, 3vw, 38px);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-600);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
}

.steps h3 { font-size: 1.22rem; margin-bottom: .45em; }

.steps p { margin: 0; font-size: .97rem; color: rgba(26, 26, 26, .75); }

.steps__note {
    margin-top: clamp(24px, 3vw, 36px);
    color: rgba(26, 26, 26, .65);
    font-size: .97rem;
}

/* kontaktbandets synliga adress */
.cta-band__mail {
    display: inline-block;
    margin-top: 20px;
    font-size: 1.05rem;
    color: var(--brand-200);
    text-decoration: none;
}

.cta-band__mail:hover { text-decoration: underline; color: #fff; }

/* --------------------------------------------------------------------------
   Blazor-standard (felsidor)
   -------------------------------------------------------------------------- */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after { content: "Ett fel har inträffat."; }
