/* =====================================================================
   Nowo redesign — design tokens, header, footer, home page
   Pixel-faithful to Figma file h9GKZkLUR8xmaVF1ibGepK (frames 3114-3125).
   Mobile-first; desktop layout above 1024px.
   ===================================================================== */

:root {
    --nowo-color-purple: #281253;
    --nowo-color-purple-deep: #0e0a1a;
    --nowo-color-orange: #ff6b36;
    --nowo-color-violet: #8b5cf6;
    --nowo-color-green: #2cc46b;
    --nowo-color-green-bg: #d9f2e0;
    --nowo-color-red: #d92d20;
    --nowo-color-red-bg: rgba(217, 45, 32, 0.12);
    --nowo-color-peach: #ffedde;
    --nowo-color-cream: #fbf6ef;
    --nowo-color-white: #ffffff;
    --nowo-color-border: #eae3f0;
    --nowo-color-border-dark: rgba(255, 255, 255, 0.08);
    --nowo-color-card-dark: rgba(255, 255, 255, 0.04);
    --nowo-color-body: #6b587a;
    --nowo-color-muted: #9b8ca8;
    --nowo-color-muted-dark: #bfb4cc;

    --nowo-shadow-card: 0 8px 24px rgba(40, 18, 83, 0.06);
    --nowo-radius-card: 18px;
    --nowo-radius-card-lg: 24px;
    --nowo-radius-pill: 999px;
    --nowo-radius-btn: 999px;

    --nowo-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --nowo-gutter: 24px;
    --nowo-gutter-lg: 120px;
    --nowo-section-pad-y: 64px;
    --nowo-section-pad-y-lg: 96px;
    --nowo-container: 1200px;
}

/* =================== Base reset on redesigned surfaces ==================== */

.nowo-redesign,
.nowo-redesign * {
    box-sizing: border-box;
}

.nowo-redesign {
    font-family: var(--nowo-font);
    color: var(--nowo-color-purple);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nowo-redesign p,
.nowo-redesign h1,
.nowo-redesign h2,
.nowo-redesign h3,
.nowo-redesign h4 {
    margin: 0;
    padding: 0;
}

/* Defeat legacy `h1,h2…{ font-family: Roboto; font-weight: normal }` in style.css. */
.nowo-redesign h1,
.nowo-redesign h2,
.nowo-redesign h3,
.nowo-redesign h4,
.nowo-redesign h5,
.nowo-redesign h6,
.nowo-redesign .nowo-hero__title,
.nowo-redesign .nowo-fund__title,
.nowo-redesign .nowo-news__title,
.nowo-redesign .nowo-platforms__title {
    font-family: var(--nowo-font);
    font-weight: 900;
    color: inherit;
}

.nowo-redesign .nowo-news-card__title {
    font-family: var(--nowo-font);
    font-weight: 900;
}

.nowo-redesign ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nowo-redesign a {
    color: inherit;
    text-decoration: none;
}

.nowo-redesign img,
.nowo-redesign svg {
    display: block;
    max-width: 100%;
}

.nowo-redesign button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}

.nowo-container {
    width: 100%;
    max-width: calc(var(--nowo-container) + var(--nowo-gutter-lg) * 2);
    margin: 0 auto;
    padding: 0 var(--nowo-gutter);
}

@media (min-width: 1024px) {
    .nowo-container {
        padding: 0 var(--nowo-gutter-lg);
    }
}

/* =================== Eyebrow / pill helpers ============================== */

.nowo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--nowo-color-purple);
}

.nowo-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nowo-color-orange);
}

.nowo-eyebrow--on-dark {
    color: var(--nowo-color-muted-dark);
}

/* =================== Buttons ============================================= */

.nowo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    border-radius: var(--nowo-radius-btn);
    font-family: var(--nowo-font);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

/* Make children — including the inner <span> that holds the label — inherit
   the button's color and font so legacy `a span { color: ... }` rules from
   the old WP theme can't silently hide button labels. */
.nowo-btn,
.nowo-btn:link,
.nowo-btn:visited,
.nowo-btn:hover,
.nowo-btn:focus,
.nowo-btn:active {
    text-decoration: none;
}

.nowo-btn > * {
    color: inherit !important;
    font: inherit;
}

.nowo-btn:hover {
    transform: translateY(-1px);
}

.nowo-btn--primary,
.nowo-btn--primary:link,
.nowo-btn--primary:visited {
    background: var(--nowo-color-purple);
    color: var(--nowo-color-white);
}

.nowo-btn--primary-violet,
.nowo-btn--primary-violet:link,
.nowo-btn--primary-violet:visited {
    background: var(--nowo-color-violet);
    color: var(--nowo-color-white);
}

.nowo-btn--secondary,
.nowo-btn--secondary:link,
.nowo-btn--secondary:visited {
    background: var(--nowo-color-white);
    color: var(--nowo-color-purple);
    border-color: var(--nowo-color-purple);
}

.nowo-btn--ghost-dark,
.nowo-btn--ghost-dark:link,
.nowo-btn--ghost-dark:visited {
    background: transparent;
    color: var(--nowo-color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.nowo-btn__arrow {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}

.nowo-btn:hover .nowo-btn__arrow {
    transform: translateX(3px);
}

/* =================== Header (sticky) ===================================== */

.nowo-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nowo-color-purple-deep);
    color: var(--nowo-color-white);
}

.nowo-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    min-height: 80px;
}

.nowo-header__logo {
    display: inline-flex;
    align-items: center;
}

.nowo-header__logo img {
    height: 36px;
    width: auto;
}

@media (min-width: 1024px) {
    .nowo-header__logo img {
        height: 45px;
    }
}

.nowo-header__nav {
    display: none;
}

@media (min-width: 1024px) {
    .nowo-header__nav {
        display: flex;
        align-items: center;
        gap: 36px;
    }
}

.nowo-header__menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nowo-header__menu > li {
    position: relative;
}

.nowo-header__menu > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--nowo-color-white);
    padding: 8px 0;
    line-height: 1.3;
}

.nowo-header__menu > li.menu-item-has-children > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 4px;
}

.nowo-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 12px);
    background: var(--nowo-color-purple-deep);
    border: 1px solid var(--nowo-color-border-dark);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 220px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.nowo-header__menu > li:hover .sub-menu,
.nowo-header__menu > li:focus-within .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 4px);
}

.nowo-header__menu .sub-menu a {
    display: block;
    padding: 10px 22px;
    font-size: 14px;
    color: var(--nowo-color-muted-dark);
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease;
}

.nowo-header__menu .sub-menu a:hover {
    color: var(--nowo-color-white);
    background: rgba(255, 255, 255, 0.04);
}

.nowo-header__search {
    background: transparent;
    color: var(--nowo-color-white);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/*
 * Desktop search — inline expand-form anchored to the magnifier.
 * The wrap sits in the existing 1024px+ nav row. The form is absolutely
 * positioned just below the icon (rather than inline-flex) so opening it
 * doesn't push the rest of the nav around.
 */
.nowo-header__search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nowo-header__search-form {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 320px;
    padding: 8px 8px 8px 14px;
    background: var(--nowo-color-purple-deep, #1b1140);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--nowo-radius-pill);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .15s ease, transform .15s ease;
    z-index: 50;
}

.nowo-header__search-wrap.is-open .nowo-header__search-form {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nowo-header__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--nowo-color-white);
    font-size: 14px;
    line-height: 1.4;
    -webkit-appearance: none;
}

.nowo-header__search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.nowo-header__search-submit {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--nowo-color-orange);
    color: var(--nowo-color-white);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: filter .15s ease;
    -webkit-appearance: none;
}

.nowo-header__search-submit:hover {
    filter: brightness(1.05);
}

.nowo-header__cta {
    padding: 12px 22px;
    font-size: 14px;
    background: var(--nowo-color-orange);
    color: var(--nowo-color-white);
    border-radius: var(--nowo-radius-pill);
    font-weight: 700;
    transition: filter .15s ease;
}

.nowo-header__cta:hover {
    filter: brightness(1.05);
}

.nowo-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.nowo-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--nowo-color-white);
    border-radius: 2px;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
}

@media (min-width: 1024px) {
    .nowo-header__burger {
        display: none;
    }
}

/* ---- Mobile overlay menu ------------------------------------------------ */

.nowo-mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--nowo-color-purple-deep);
    color: var(--nowo-color-white);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
}

.nowo-mobile-menu.is-open {
    transform: translateX(0);
}

.nowo-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--nowo-gutter);
    min-height: 80px;
}

.nowo-mobile-menu__close {
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    color: var(--nowo-color-white);
    font-size: 28px;
    line-height: 1;
}

.nowo-mobile-menu__nav {
    padding: 12px var(--nowo-gutter) 48px;
}

/*
 * Mobile search — always visible at the top of the burger overlay's nav.
 * Full-width pill input with a circular magnifier submit on the right.
 * 48px tap target meets WCAG AA touch-size guidance.
 */
.nowo-mobile-menu__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 20px;
    padding: 6px 6px 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--nowo-radius-pill);
}

.nowo-mobile-menu__search-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--nowo-color-white);
    font-size: 16px; /* >=16px prevents iOS auto-zoom on focus */
    line-height: 1.4;
    -webkit-appearance: none;
}

.nowo-mobile-menu__search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.nowo-mobile-menu__search-submit {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: var(--nowo-color-orange);
    color: var(--nowo-color-white);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
}

.nowo-mobile-menu__nav > ul > li {
    border-top: 1px solid var(--nowo-color-border-dark);
}

.nowo-mobile-menu__nav > ul > li:last-child {
    border-bottom: 1px solid var(--nowo-color-border-dark);
}

.nowo-mobile-menu__nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--nowo-color-white);
}

.nowo-mobile-menu__nav > ul > li.menu-item-has-children > a::after {
    content: '▾';
    font-size: 12px;
    color: var(--nowo-color-muted-dark);
    transition: transform .2s ease;
}

.nowo-mobile-menu__nav > ul > li.is-open > a::after {
    transform: rotate(180deg);
}

.nowo-mobile-menu__nav .sub-menu {
    display: none;
    padding-bottom: 16px;
    padding-left: 4px;
}

.nowo-mobile-menu__nav > ul > li.is-open > .sub-menu {
    display: block;
}

.nowo-mobile-menu__nav .sub-menu li a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: var(--nowo-color-muted-dark);
}

.nowo-mobile-menu__cta {
    margin: 16px 0 0;
}

/* =================== Hero ================================================ */

.nowo-hero {
    background: var(--nowo-color-purple-deep);
    color: var(--nowo-color-white);
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
}

@media (min-width: 1024px) {
    .nowo-hero {
        /* Figma 3116:2226 — pt-100 pb-120. */
        padding: 100px 0 120px;
    }
}

/* Hero block uses a vertical flex column with a 36px gap between every
   sibling, matching Figma `gap-[36px]`. We use both column-direction and
   a stacked-margin fallback so the layout stays correct even if the
   container's display gets overridden by legacy CSS. */
.nowo-hero > .nowo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

@media (min-width: 1024px) {
    .nowo-hero > .nowo-container {
        gap: 36px;
    }
}

.nowo-hero__title {
    font-size: clamp(36px, 8vw, 88px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.03em;
    max-width: 1100px;
    color: var(--nowo-color-white);
    margin: 0;
}

.nowo-hero__subtitle {
    font-size: clamp(15px, 2vw, 22px);
    line-height: 1.45;
    color: var(--nowo-color-muted-dark);
    max-width: 820px;
    font-weight: 400;
    margin: 0;
}

.nowo-hero__source {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nowo-color-muted-dark);
    letter-spacing: 0.02em;
    margin: 0;
}

.nowo-hero__source::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nowo-color-orange);
}

/* Ticker bar
 * --------------------------------------------------------------
 * Mobile (default): one horizontal strip; the fund rows scroll
 * right-to-left like an electronic stock tableau (animation driven
 * by JS via `--nowo-ticker-duration`).
 * Desktop (≥1024px): static rows laid out side-by-side, no marquee.
 * Each row reads: "<Display Name> <NAV> kr Senaste utv. <Pct>%".
 * The `<Pct>%` span is colored green by default and red via the
 * `.is-negative` modifier toggled in JS. */
.nowo-ticker {
    background: var(--nowo-color-card-dark);
    border: 1px solid var(--nowo-color-border-dark);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.nowo-ticker__viewport {
    position: relative; /* anchors the ::before/::after edge-fade overlays */
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    /* Force a dedicated compositing layer on iOS so the animated track
     * below doesn't share a layer with the hero/header. Sharing layers
     * is what causes Safari iOS to re-rasterize on every keyframe
     * boundary, which manifests as a periodic blink. */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

/* Edge fade — used to be `-webkit-mask-image` on the viewport, but the
 * mask + animated-transform combo produces a periodic flicker on iOS
 * Safari. Overlaying solid gradients on top of the marquee is visually
 * identical and avoids that compositing path entirely. The gradient end
 * color matches the hero background (purple-deep) so the marquee fades
 * cleanly into the surroundings. */
.nowo-ticker__viewport::before,
.nowo-ticker__viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 1;
}

.nowo-ticker__viewport::before {
    left: 0;
    background: linear-gradient(to right, var(--nowo-color-purple-deep) 0%, rgba(14, 10, 26, 0) 100%);
}

.nowo-ticker__viewport::after {
    right: 0;
    background: linear-gradient(to left, var(--nowo-color-purple-deep) 0%, rgba(14, 10, 26, 0) 100%);
}

.nowo-ticker__track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    will-change: transform;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    animation: nowo-ticker-marquee var(--nowo-ticker-duration, 18s) linear infinite;
}

/* The PHP-rendered rows live inside `.nowo-ticker__rows`. JS clones the
 * whole rows container to fill the track for a seamless loop. */
.nowo-ticker__rows {
    display: inline-flex;
    align-items: center;
    gap: 28px;
}

.nowo-ticker__row {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-size: 14px;
    white-space: nowrap;
}

.nowo-ticker__name {
    font-weight: 700;
    color: var(--nowo-color-white);
    margin-right: 10px;
}

.nowo-ticker__nav {
    font-weight: 600;
    color: var(--nowo-color-muted-dark);
    margin-right: 4px;
}

.nowo-ticker__unit {
    font-weight: 600;
    color: var(--nowo-color-muted-dark);
    margin-right: 14px;
}

.nowo-ticker__delta-label {
    font-weight: 500;
    color: var(--nowo-color-muted-dark);
    margin-right: 6px;
}

.nowo-ticker__delta {
    font-weight: 900;
    color: var(--nowo-color-green);
}

.nowo-ticker__delta.is-negative {
    color: var(--nowo-color-red);
}

@keyframes nowo-ticker-marquee {
    /* `--nowo-ticker-shift` is set by JS to exactly one set-width in
     * negative pixels, so the loop snap from `to` back to `from` lands
     * on a position visually identical to the start (a clone already
     * sits where the original was). The `-50%` fallback is approximate
     * and only used if JS hasn't initialised yet. */
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(var(--nowo-ticker-shift, -50%), 0, 0); }
}

/* Pause on hover/focus so users can actually read the values. */
.nowo-ticker:hover .nowo-ticker__track,
.nowo-ticker:focus-within .nowo-ticker__track {
    animation-play-state: paused;
}

/* Accessibility: stop the marquee for users who opt out of motion. */
@media (prefers-reduced-motion: reduce) {
    .nowo-ticker__track { animation: none !important; transform: none !important; }
}

/* Desktop: no marquee — rows laid out side-by-side with a vertical
 * divider between them. */
@media (min-width: 1024px) {
    .nowo-ticker {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 18px 24px;
        width: auto;
        min-width: min(100%, 480px);
        overflow: visible;
    }
    .nowo-ticker__viewport {
        overflow: visible;
    }
    .nowo-ticker__viewport::before,
    .nowo-ticker__viewport::after {
        display: none; /* no marquee on desktop — no edge fade needed */
    }
    .nowo-ticker__track {
        display: flex;
        width: auto;
        animation: none;
        transform: none;
        gap: 0;
    }
    .nowo-ticker__rows {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
    }
    .nowo-ticker__row + .nowo-ticker__row {
        border-left: 1px solid rgba(255, 255, 255, 0.16);
        padding-left: 24px;
    }
}

/* Starfield (dark sections) */

.nowo-starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.nowo-starfield span {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.nowo-hero > * {
    position: relative;
    z-index: 1;
}

/* =================== Fund section ======================================== */

.nowo-fund {
    padding: var(--nowo-section-pad-y) 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .nowo-fund {
        padding: var(--nowo-section-pad-y-lg) 0;
    }
}

.nowo-fund--light {
    background: var(--nowo-color-peach);
    color: var(--nowo-color-purple);
}

.nowo-fund--dark {
    background: var(--nowo-color-purple-deep);
    color: var(--nowo-color-white);
}

.nowo-fund__title {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.nowo-fund--dark .nowo-fund__title {
    color: var(--nowo-color-white);
}

.nowo-fund__lede {
    margin-top: 24px;
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.55;
    color: var(--nowo-color-body);
    max-width: 820px;
    font-weight: 400;
}

.nowo-fund--dark .nowo-fund__lede {
    color: var(--nowo-color-muted-dark);
}

.nowo-fund > .nowo-container > * + * {
    margin-top: 32px;
}

/* Chart card — mobile matches Figma 2923:15094; desktop 3117:2229. */

.nowo-chart-card {
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: 24px;
    padding: 18px 16px;
    box-shadow: var(--nowo-shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 1024px) {
    .nowo-chart-card {
        padding: 32px 40px;
        border-radius: var(--nowo-radius-card-lg);
        gap: 0;
    }
}

.nowo-fund--dark .nowo-chart-card {
    background: var(--nowo-color-card-dark);
    border-color: var(--nowo-color-border-dark);
    box-shadow: none;
}

.nowo-chart-card__top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 1024px) {
    .nowo-chart-card__top {
        gap: 16px;
    }
}

.nowo-nav-stat__label {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.07em;
    color: var(--nowo-color-muted);
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .nowo-nav-stat__label {
        font-size: 12px;
        letter-spacing: 0.08em;
    }
}

.nowo-nav-stat__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
}

@media (min-width: 1024px) {
    .nowo-nav-stat__row {
        gap: 8px;
        margin-top: 6px;
    }
}

.nowo-nav-stat__value {
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    color: var(--nowo-color-purple);
    letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
    .nowo-nav-stat__value {
        font-size: clamp(36px, 5vw, 56px);
        line-height: 1.07;
    }
}

.nowo-fund--dark .nowo-nav-stat__value {
    color: var(--nowo-color-white);
}

.nowo-nav-stat__unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--nowo-color-body);
}

@media (min-width: 1024px) {
    .nowo-nav-stat__unit {
        font-size: clamp(18px, 2vw, 24px);
    }
}

.nowo-fund--dark .nowo-nav-stat__unit {
    color: var(--nowo-color-muted-dark);
}

.nowo-delta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nowo-color-green-bg);
    color: var(--nowo-color-green);
    padding: 6px 10px;
    border-radius: var(--nowo-radius-pill);
    font-weight: 900;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .nowo-delta-pill {
        gap: 8px;
        padding: 10px 16px;
        font-size: 16px;
    }
}

.nowo-fund--dark .nowo-delta-pill {
    background: rgba(44, 196, 107, 0.16);
}

.nowo-delta-pill.is-negative {
    background: var(--nowo-color-red-bg);
    color: var(--nowo-color-red);
}

.nowo-delta-pill__arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid currentColor;
}

.nowo-delta-pill.is-negative .nowo-delta-pill__arrow {
    border-bottom: 0;
    border-top: 6px solid currentColor;
}

/* =================== Period pill carousel ===============================
   Matches Figma node 3141:2274 (light) and 3120:2226 (dark MetaSpace card).
   Two-line pills: bold label on top (14px), bold delta below (11px green),
   active state filled with orange (light card) or violet (dark card),
   selected text turns white. */

.nowo-periods {
    margin-top: 0;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 4px;
}

.nowo-periods::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .nowo-periods {
        margin-top: 24px;
        justify-content: space-between;
        gap: 6px;
        overflow: visible;
        padding-bottom: 4px;
    }
}

/* Scoped under `.nowo-redesign` so this beats the `.nowo-redesign button`
   base reset (which would otherwise strip the pill's background + padding on
   the light card; the dark variant already wins on specificity). */
.nowo-redesign .nowo-period {
    flex: 0 0 auto;
    background: #fbf6ef; /* Figma 3117:2241 pill fill */
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    font-family: var(--nowo-font);
    line-height: normal;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 1024px) {
    .nowo-redesign .nowo-period {
        padding: 12px 22px;
        gap: 4px;
    }
}

.nowo-period > * {
    color: inherit;
    font-family: inherit;
}

.nowo-period__label {
    font-size: 11px;
    font-weight: 900;
    color: #281253;
    letter-spacing: 0;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nowo-period__label {
        font-size: 14px;
    }
}

.nowo-period__delta {
    font-size: 9px;
    font-weight: 700;
    color: #2cc46b;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .nowo-period__delta {
        font-size: 11px;
    }
}

.nowo-period__delta.is-negative {
    color: var(--nowo-color-red);
}

/* Dark card variant — translucent pill with a soft outline. */
.nowo-fund--dark .nowo-period {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 11px; /* compensate for the 1px border */
}

@media (min-width: 1024px) {
    .nowo-fund--dark .nowo-period {
        padding: 11px 21px;
    }
}

.nowo-fund--dark .nowo-period__label {
    color: var(--nowo-color-white);
}

.nowo-fund--dark .nowo-period__delta {
    color: #2cc46b;
}

/* Negative state must beat the dark-variant green above on specificity. */
.nowo-fund--dark .nowo-period__delta.is-negative {
    color: var(--nowo-color-red);
}

/* Active states. */
.nowo-period[aria-pressed='true'] {
    background: var(--nowo-color-orange);
    border-color: transparent;
}

.nowo-period[aria-pressed='true'] .nowo-period__label,
.nowo-period[aria-pressed='true'] .nowo-period__delta {
    color: var(--nowo-color-white);
}

.nowo-period[aria-pressed='true'] .nowo-period__delta {
    color: rgba(255, 255, 255, 0.88);
}

.nowo-fund--dark .nowo-period[aria-pressed='true'] {
    background: var(--nowo-color-violet);
    border-color: transparent;
}

/* =================== Chart canvas =======================================
   Desktop: Figma 3118:2226 (1120 × 360 viewBox).
   Mobile:  Figma 2945:2132 (310 × 198 viewBox) — set in chart.js. */

.nowo-chart {
    margin-top: 0;
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: 16px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .nowo-chart {
        margin-top: 24px;
    }
}

.nowo-fund--dark .nowo-chart {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--nowo-color-border-dark);
}

.nowo-chart__svg-wrap {
    width: 100%;
    /* Mobile Figma sub-card is 310 × 198. Desktop is 1120 × 360. */
    aspect-ratio: 310 / 198;
}

@media (min-width: 1024px) {
    .nowo-chart__svg-wrap {
        aspect-ratio: 1120 / 360;
    }
}

.nowo-chart__svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    display: block;
}

.nowo-chart__heading-text {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.8px;
    fill: rgba(40, 18, 83, 0.55);
    text-transform: uppercase;
    font-family: var(--nowo-font);
}

@media (min-width: 1024px) {
    .nowo-chart__heading-text {
        font-size: 11px;
        letter-spacing: 0.88px;
    }
}

.nowo-fund--dark .nowo-chart__heading-text {
    fill: rgba(255, 255, 255, 0.55);
}

.nowo-chart__gridline {
    stroke: var(--nowo-color-border);
    stroke-width: 1;
}

.nowo-fund--dark .nowo-chart__gridline {
    stroke: var(--nowo-color-border-dark);
}

.nowo-chart__y-label,
.nowo-chart__x-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0;
    fill: rgba(40, 18, 83, 0.45);
    font-family: var(--nowo-font);
}

@media (min-width: 1024px) {
    .nowo-chart__y-label,
    .nowo-chart__x-label {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.04em;
        fill: rgba(40, 18, 83, 0.55);
    }
}

.nowo-fund--dark .nowo-chart__y-label,
.nowo-fund--dark .nowo-chart__x-label {
    fill: rgba(255, 255, 255, 0.55);
}

.nowo-chart__x-label {
    fill: rgba(40, 18, 83, 0.5);
}

.nowo-fund--dark .nowo-chart__x-label {
    fill: rgba(255, 255, 255, 0.5);
}

.nowo-chart__line {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 1024px) {
    .nowo-chart__line {
        stroke-width: 2.5;
    }
}

.nowo-chart__area {
    opacity: 0.5;
}

/* Risk row — mobile Figma 2923:15157 (side-by-side cards); desktop scales up. */

.nowo-risk-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
}

@media (min-width: 1024px) {
    .nowo-risk-row {
        gap: 16px;
    }
}

.nowo-risk-card {
    flex: 1 1 0;
    min-width: 0;
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (min-width: 1024px) {
    .nowo-risk-card {
        border-radius: 16px;
        padding: 22px 28px;
        gap: 8px;
    }
}

.nowo-fund--dark .nowo-risk-card {
    background: var(--nowo-color-card-dark);
    border-color: var(--nowo-color-border-dark);
}

.nowo-risk-card__label {
    font-size: 9px;
    font-weight: 900;
    color: var(--nowo-color-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: normal;
}

@media (min-width: 1024px) {
    .nowo-risk-card__label {
        font-size: 12px;
        letter-spacing: 0.08em;
    }
}

.nowo-fund--dark .nowo-risk-card__label {
    color: var(--nowo-color-muted-dark);
}

.nowo-risk-card__value {
    font-size: 16px;
    font-weight: 900;
    color: var(--nowo-color-purple);
    letter-spacing: -0.01em;
    line-height: normal;
}

@media (min-width: 1024px) {
    .nowo-risk-card__value {
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 0;
    }
}

.nowo-fund--dark .nowo-risk-card__value {
    color: var(--nowo-color-white);
}

.nowo-ms-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nowo-ms-rating__score {
    color: inherit;
}

.nowo-stars {
    letter-spacing: 2px;
    color: var(--nowo-color-orange);
}

@media (min-width: 1024px) {
    .nowo-stars {
        letter-spacing: 4px;
    }
}

/* Platforms row inside fund — mobile Figma 2923:15173 (3-up row). */

.nowo-fund__platforms-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--nowo-color-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: normal;
}

@media (min-width: 1024px) {
    .nowo-fund__platforms-label {
        font-size: 12px;
        letter-spacing: 0.08em;
    }
}

.nowo-fund--dark .nowo-fund__platforms-label {
    color: var(--nowo-color-muted-dark);
}

.nowo-fund__platforms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 1024px) {
    .nowo-fund__platforms {
        gap: 16px;
    }
}

/*
 * 3-column grid so the 4th platform (Mangold) lands in row 2 with
 * `grid-column: 2` (centered under Nordnet). Flex would have laid it out
 * left-aligned on its own row; grid gives us the deterministic placement.
 * On mobile the same 3-col layout applies so Mangold also sits centered
 * under Nordnet there. (Per spec — see user request.)
 */
.nowo-platform-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 8px;
}

@media (min-width: 1024px) {
    .nowo-platform-logos {
        gap: 16px;
    }
}

.nowo-platform-logo {
    min-width: 0;
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* `color` is what the inlined broker SVGs (currentColor) and the text
       fallback inherit. On light cards the marks render in deep purple,
       matching the Figma values. */
    color: var(--nowo-color-purple);
    font-weight: 900;
    font-size: 14px;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease;
}

@media (min-width: 1024px) {
    .nowo-platform-logo {
        border-radius: 16px;
        padding: 22px 24px;
        min-height: 92px;
    }
}

.nowo-platform-logo:hover {
    transform: translateY(-2px);
    border-color: var(--nowo-color-purple);
}

.nowo-platform-logo img,
.nowo-platform-logo__svg {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Default SVG sizing — overridden per brand below. */
.nowo-platform-logo__svg {
    height: 17px;
    fill: currentColor;
}

@media (min-width: 1024px) {
    .nowo-platform-logo__svg {
        height: 22px;
    }
}

/* --- Per-brand sizing & coloring --- */

/* Avanza — green staples + theme-colored wordmark. */
.nowo-platform-logo__svg--avanza {
    height: 17px;
}

@media (min-width: 1024px) {
    .nowo-platform-logo__svg--avanza {
        height: 50px;
    }
}

.nowo-platform-logo__svg--avanza .nowo-brand__avanza-bars {
    fill: #00B452;
}

.nowo-fund--dark .nowo-platform-logo__svg--avanza .nowo-brand__avanza-bars {
    fill: var(--nowo-color-white);
}

/* Nordnet — wide wordmark. */
.nowo-platform-logo__svg--nordnet {
    height: 14px;
}

@media (min-width: 1024px) {
    .nowo-platform-logo__svg--nordnet {
        height: 20px;
    }
}

/* Nowoappen — Figma brand orange (#FF6B36) on light cards, white on dark. */
.nowo-platform-logo--nowoappen {
    color: #ff6b36;
}

.nowo-platform-logo__svg--nowoappen {
    height: 19px;
}

@media (min-width: 1024px) {
    .nowo-platform-logo__svg--nowoappen {
        height: 34px;
    }
}

.nowo-platform-logo__svg--nowoappen,
.nowo-platform-logo__svg--nowoappen path {
    fill: #ff6b36;
}

.nowo-fund--dark .nowo-platform-logo--nowoappen {
    color: var(--nowo-color-white);
}

.nowo-fund--dark .nowo-platform-logo__svg--nowoappen,
.nowo-fund--dark .nowo-platform-logo__svg--nowoappen path {
    fill: var(--nowo-color-white);
}

/*
 * Mangold — yellow brand mark on the light card (Nowo Global Fund),
 * white on the dark card (MetaSpace Fund).
 *
 * We bypass the `color: …; fill: currentColor` chain used by the other
 * brokers and set `fill:` directly on the path elements with a selector
 * that is more specific than any base `.nowo-platform-logo__svg` rule,
 * so the yellow wins regardless of source order or any
 * downstream `color:` overrides on `.nowo-platform-logo`.
 *
 * Placed under Nordnet (col 2 of the 3-col grid) on its own row.
 * Hex `#FFD500` is Pantone 109 C — Mangold's documented brand yellow,
 * used across their corporate identity (annual reports, signage,
 * wordmark on third-party media like analystgroup.se).
 */
.nowo-platform-logo--mangold {
    grid-column: 2;
    color: #FFD500;
}

.nowo-platform-logo__svg--mangold {
    height: 17px;
}

@media (min-width: 1024px) {
    .nowo-platform-logo__svg--mangold {
        height: 22px;
    }
}

.nowo-platform-logo--mangold .nowo-platform-logo__svg--mangold,
.nowo-platform-logo--mangold .nowo-platform-logo__svg--mangold path {
    fill: #FFD500;
}

.nowo-fund--dark .nowo-platform-logo--mangold {
    color: var(--nowo-color-white);
}

.nowo-fund--dark .nowo-platform-logo--mangold .nowo-platform-logo__svg--mangold,
.nowo-fund--dark .nowo-platform-logo--mangold .nowo-platform-logo__svg--mangold path {
    fill: var(--nowo-color-white);
}

.nowo-fund--dark .nowo-platform-logo {
    background: var(--nowo-color-card-dark);
    border-color: var(--nowo-color-border-dark);
    color: var(--nowo-color-white);
}

.nowo-fund--dark .nowo-platform-logo:hover {
    border-color: var(--nowo-color-orange);
}

/* =================== News section ======================================== */

.nowo-news {
    /* Reduced bottom padding so the "Se alla nyheter" button sits closer to
       the following "Välj din väg" section (the button already adds its own
       top margin). */
    padding: var(--nowo-section-pad-y) 0 36px;
    background: var(--nowo-color-peach);
}

@media (min-width: 1024px) {
    .nowo-news {
        padding: var(--nowo-section-pad-y-lg) 0 48px;
    }
}

.nowo-news__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.nowo-news__title {
    margin-top: 18px;
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    color: var(--nowo-color-purple);
    letter-spacing: -0.02em;
}

.nowo-news__see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 900;
    color: var(--nowo-color-purple);
}

.nowo-news__see-all::after {
    content: '→';
    font-size: 14px;
}

.nowo-news__grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.nowo-news__all {
    margin-top: 32px;
    width: 100%;
}

@media (min-width: 1024px) {
    .nowo-news__all {
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }
}

.nowo-news__all-btn {
    /* Match news-card column width on mobile (full grid track). */
    display: flex;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 20px;
    font-size: 13px;
}

@media (min-width: 1024px) {
    .nowo-news__all-btn {
        display: inline-flex;
        width: auto;
        padding: 18px 30px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .nowo-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nowo-news__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.nowo-news-card {
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: var(--nowo-radius-card);
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.nowo-news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--nowo-shadow-card);
}

.nowo-news-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nowo-news-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--nowo-color-cream);
    padding: 6px 10px;
    border-radius: var(--nowo-radius-pill);
    font-size: 9px;
    font-weight: 900;
    color: var(--nowo-color-purple);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nowo-news-card__pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nowo-color-orange);
    flex-shrink: 0;
}

.nowo-news-card__subject {
    font-size: 11px;
    font-weight: 600;
    color: var(--nowo-color-body);
    letter-spacing: 0.04em;
}

.nowo-news-card__sep {
    color: var(--nowo-color-muted);
}

.nowo-news-card__title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 900;
    color: var(--nowo-color-purple);
    letter-spacing: -0.005em;
}

.nowo-news-card__title a {
    color: inherit;
}

.nowo-news-card__title a:hover {
    color: var(--nowo-color-orange);
}

.nowo-news-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.nowo-news-card__date {
    font-size: 10px;
    font-weight: 900;
    color: var(--nowo-color-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nowo-news-card__date::after {
    content: '';
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--nowo-color-muted);
}

.nowo-news-card__read-time {
    font-size: 10px;
    font-weight: 600;
    color: var(--nowo-color-body);
    letter-spacing: 0.04em;
}

.nowo-news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 900;
    color: var(--nowo-color-orange);
    margin-left: auto;
}

.nowo-news-card__cta::after {
    content: '→';
    font-size: 12px;
}

/* =================== Platforms + Trust ================================== */

.nowo-platforms {
    /* Reduced top padding: this section shares the peach background with the
       news section above, so its top padding stacks with the news button's
       spacing. Trimmed to keep the gap proportional. */
    padding: 36px 0 var(--nowo-section-pad-y);
    background: var(--nowo-color-peach);
}

@media (min-width: 1024px) {
    .nowo-platforms {
        padding: 48px 0 var(--nowo-section-pad-y-lg);
    }
}

.nowo-platforms__title {
    margin-top: 18px;
    font-size: clamp(30px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    color: var(--nowo-color-purple);
    letter-spacing: -0.02em;
}

.nowo-platforms__body {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--nowo-color-body);
    max-width: 900px;
}

.nowo-platforms__buttons {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .nowo-platforms__buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.nowo-platform-btn {
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform .15s ease, border-color .15s ease;
}

.nowo-platform-btn:hover {
    transform: translateY(-2px);
    border-color: var(--nowo-color-purple);
}

.nowo-platform-btn__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--nowo-color-purple);
    color: var(--nowo-color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 26px;
    flex-shrink: 0;
}

.nowo-platform-btn__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nowo-platform-btn__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--nowo-color-purple);
}

.nowo-platform-btn__sublabel {
    font-size: 11px;
    font-weight: 900;
    color: var(--nowo-color-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nowo-platform-btn__arrow {
    font-size: 22px;
    color: var(--nowo-color-purple);
    font-weight: 700;
    flex-shrink: 0;
}

/* Brand-logo variant — logo replaces the letter badge + name */
.nowo-platform-btn--logo .nowo-platform-btn__text {
    gap: 8px;
}

.nowo-platform-btn__logo {
    display: block;
}

.nowo-platform-btn__logo img {
    display: block;
    width: auto;
    height: 20px;
}

.nowo-platform-btn__logo--avanza img {
    height: 20px;
}

.nowo-platform-btn__logo--nordnet img {
    height: 13px;
}

.nowo-platform-btn__logo--nowo img {
    height: 22px;
}

.nowo-platform-btn__logo--mangold img {
    height: 14px;
}

@media (min-width: 1024px) {
    .nowo-platform-btn__logo--avanza img {
        height: 24px;
    }

    .nowo-platform-btn__logo--nordnet img {
        height: 16px;
    }

    .nowo-platform-btn__logo--nowo img {
        height: 26px;
    }

    .nowo-platform-btn__logo--mangold img {
        height: 18px;
    }
}

/*
 * Mangold — second-row centered button on desktop (under Nordnet, the
 * middle column of the 3-col grid). On mobile the parent grid collapses
 * to 1fr so Mangold stacks last after Nowoappen automatically and we
 * don't need a media-query override here.
 */
@media (min-width: 768px) {
    .nowo-platform-btn--mangold {
        grid-column: 2;
    }
}

/* Trust — "Du sparar säkert" */

.nowo-trust {
    margin-top: 32px;
    background: var(--nowo-color-white);
    border: 1px solid var(--nowo-color-border);
    border-radius: var(--nowo-radius-card-lg);
    box-shadow: var(--nowo-shadow-card);
    padding: 28px 24px;
    text-align: center;
}

@media (min-width: 1024px) {
    .nowo-trust {
        padding: 48px;
    }
}

.nowo-trust__title {
    margin: 0;
    font-family: var(--nowo-font);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--nowo-color-purple);
}

.nowo-trust .nowo-trust__subtitle,
p.nowo-trust__subtitle {
    margin-top: 14px;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    max-width: 640px;
    width: auto;
    font-size: 16px;
    line-height: 1.55;
    color: var(--nowo-color-body);
    text-align: center;
}

.nowo-trust__items {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .nowo-trust__items {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.nowo-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.nowo-trust__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--nowo-color-peach);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nowo-trust__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nowo-trust__item-title {
    max-width: 240px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nowo-color-purple);
}

/* =================== Footer ============================================== */

.nowo-footer {
    background: var(--nowo-color-purple-deep);
    color: var(--nowo-color-white);
    padding: 64px 0 48px;
}

@media (min-width: 1024px) {
    .nowo-footer {
        padding: 96px 0 56px;
    }
}

.nowo-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 768px) {
    .nowo-footer__top {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .nowo-footer__top {
        grid-template-columns: 1.6fr 1fr 1fr;
        gap: 56px;
    }
}

.nowo-footer__logo-block {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.nowo-footer__pri {
    margin-top: 4px;
}

.nowo-footer__pri img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    opacity: 0.95;
}

.nowo-footer__logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.nowo-footer__logo-img {
    display: block;
    height: 30px;
    width: auto;
}

.nowo-footer__logo-tag {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--nowo-color-muted-dark);
    letter-spacing: 0.04em;
}

.nowo-footer__col h4 {
    font-size: 12px;
    font-weight: 900;
    color: var(--nowo-color-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.nowo-footer__col ul li {
    margin-bottom: 10px;
}

.nowo-footer__col ul li a {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--nowo-color-white);
    line-height: 1.3;
    transition: color .15s ease;
}

.nowo-footer__col ul li a:hover {
    color: var(--nowo-color-orange);
}

.nowo-footer__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 48px 0 32px;
}

.nowo-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nowo-footer__disclaimer {
    max-width: 900px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--nowo-color-muted-dark);
    font-weight: 400;
}

.nowo-footer__copyright {
    font-size: 12px;
    font-weight: 500;
    color: var(--nowo-color-muted-dark);
}

.nowo-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.nowo-footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nowo-color-white);
    transition: background .15s ease;
}

.nowo-footer__socials a:hover {
    background: var(--nowo-color-orange);
    color: var(--nowo-color-white);
}

/* =================== Utility: scroll lock during overlay ================ */

body.nowo-no-scroll {
    overflow: hidden;
    touch-action: none;
}

/* =================== Hide legacy theme chrome on redesigned pages ====== */

body.nowo-redesign-active > .header,
body.nowo-redesign-active > .footer {
    display: none !important;
}
