.how-hero,
.story-section {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.how-hero {
    position: relative;
    overflow: hidden;
    border-color: var(--line-strong);
    background:
        linear-gradient(135deg, rgba(125, 223, 245, 0.12), transparent 38%),
        var(--panel-strong);
}

.how-hero::before {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -55%;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 214, 255, 0.1), transparent 65%);
    pointer-events: none;
}

.how-hero__topbar {
    justify-content: space-between;
}

.how-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 830px;
}

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

.how-hero h1,
.story-section h2,
.story-section h3 {
    font-family: var(--font-ui);
}

.how-hero h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2.15rem, 3.3vw, 2.95rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.how-hero__copy > p:last-child {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.2vw, 1.12rem);
    line-height: 1.6;
}

.process-flow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: clamp(38px, 6vw, 66px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(3, 9, 13, 0.35);
}

.process-flow span {
    flex: 1 1 auto;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.process-flow b {
    color: var(--text-muted);
    font-weight: 500;
}

.story-section {
    padding: clamp(30px, 5vw, 58px);
}

.story-section h2 {
    max-width: 26ch;
    margin: 0;
    font-size: clamp(1.55rem, 2.1vw, 1.85rem);
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.story-section h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.story-section p {
    color: var(--text-soft);
    line-height: 1.7;
}

.story-head {
    max-width: 780px;
    margin-bottom: 30px;
}

.story-head > p:last-child {
    margin: 14px 0 0;
}

.story-split,
.followup-grid,
.startpoint-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    /* start, inte center: annars centreras textkolumnen mot den högre
       visualen och eyebrown hamnar 10–30px lägre än i sektioner utan split. */
    align-items: start;
    gap: clamp(38px, 7vw, 88px);
}

.story-split > div:first-child > p:not(.story-eyebrow) {
    margin: 16px 0 0;
}

.story-emphasis {
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    background: rgba(125, 223, 245, 0.055);
    color: var(--text) !important;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.6;
}

.probability-glimpse {
    padding: 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(125, 223, 245, 0.075), transparent 48%),
        rgba(255, 255, 255, 0.035);
}

.probability-glimpse__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.probability-glimpse__kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.probability-glimpse__tag {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Fixtureraden speglar matchkortet i Analysvyn: emblem, lagnamn, tankestreck. */
.probability-glimpse__fixture {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.probability-glimpse__side {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.probability-glimpse__side--away {
    justify-content: flex-end;
}

.probability-glimpse__crest {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.probability-glimpse__team {
    overflow: hidden;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.probability-glimpse__vs {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.probability-glimpse__outcomes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.probability-glimpse__outcome {
    display: grid;
    gap: 8px;
    padding: 14px 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

/* Toppvalet lyfts med accentram i stället för med större text — talet bär. */
.probability-glimpse__outcome--top {
    border-color: rgba(125, 223, 245, 0.42);
    background:
        linear-gradient(180deg, rgba(125, 223, 245, 0.1), transparent 70%),
        rgba(255, 255, 255, 0.04);
}

.probability-glimpse__label {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1;
}

.probability-glimpse__outcome--top .probability-glimpse__label {
    color: var(--accent);
}

.probability-glimpse__value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.probability-glimpse__track {
    position: relative;
    display: block;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.probability-glimpse__track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.28);
}

.probability-glimpse__outcome--top .probability-glimpse__track > span {
    background: var(--accent);
}

.probability-glimpse__hint {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.7rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.probability-glimpse__note {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
}


.story-section--market {
    background:
        linear-gradient(135deg, rgba(143, 214, 255, 0.045), transparent 50%),
        var(--panel);
}

.agreement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.agreement-grid p {
    margin: 0;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.agreement-grid p:last-child {
    border-color: var(--bet-line);
    background: var(--bet-wash);
    color: var(--bet-strong);
}

.wow-section {
    /* Samma vertikala padding som övriga sektioner — 82px sköt eyebrown
       24px lägre än i resten av sekvensen. */
    padding-block: clamp(30px, 5vw, 58px);
    border-color: rgba(125, 223, 245, 0.23);
    background:
        radial-gradient(circle at 85% 12%, rgba(125, 223, 245, 0.09), transparent 30%),
        var(--panel-strong);
}

.value-example {
    position: relative;
    overflow: hidden;
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(3, 9, 13, 0.36);
}

.value-example__row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(80px, 0.65fr) minmax(100px, 0.8fr);
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
}

.value-example__row > :not(:first-child) {
    text-align: right;
}

.value-example__head {
    border-top: 0;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.value-example__row:not(.value-example__head) strong:not(:first-child),
.value-example__row:not(.value-example__head) span:not(:first-child) {
    font-family: var(--font-display);
    font-size: 1.12rem;
    letter-spacing: -0.03em;
}

.value-example__row--opportunity {
    border-left: 3px solid var(--accent);
    background: rgba(125, 223, 245, 0.06);
}

.value-example__row--opportunity strong:nth-child(2) {
    color: var(--accent-strong);
}

.value-example__label {
    margin: 0;
    padding: 10px 22px;
    border-top: 1px solid var(--line);
    color: var(--text-muted) !important;
    font-size: 0.7rem;
    text-align: right;
}

/* Sektionen hade tre olika vänsterkanter: rubriken i sektionens kant (59px),
 * tabellen centrerad i 860px (170px) och payoff-raden i 950px (125px).
 * Den läste som tre olika layouter staplade. Allt delar nu samma centrerade
 * kolumn, vilket också ger rubriken plats att bryta balanserat i stället för
 * att klämmas in på 26ch.
 */
.wow-section .story-head {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.wow-section .story-head h2 {
    max-width: none;
    text-wrap: balance;
}

.wow-section .value-question {
    max-width: 860px;
}

@media (max-width: 600px) {
    .wow-section .story-head {
        text-align: left;
    }
}

.value-takeaway {
    display: grid;
    gap: 8px;
    max-width: 860px;
    margin: 30px auto 0;
}

.value-takeaway p {
    margin: 0;
}

.value-takeaway strong {
    color: var(--text);
}

.value-question {
    max-width: 950px;
    margin: clamp(44px, 7vw, 78px) auto 0;
    color: var(--text) !important;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 2.6vw, 2.4rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.25 !important;
    text-align: center;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.signal-grid article,
.concept-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.035);
}

.signal-grid p,
.concept-grid p {
    margin: 10px 0 0;
}

.startpoint-section {
    border-color: rgba(125, 223, 245, 0.22);
    background:
        linear-gradient(135deg, rgba(125, 223, 245, 0.075), transparent 44%),
        var(--panel);
}

.startpoint-section > div:first-child > p:last-child {
    margin: 16px 0 0;
}

/* Yttre ramen motsvarar .analysis-glimpse på startsidan; själva kortet är
   den delade .startpoint-glimpse-komponenten i app.css. */
.startpoint-callout {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

/* .story-section h3 och .story-section p är element-selektorer (0,1,1) och
 * slår den delade komponentens klassregler i app.css. Återställ det som
 * gäller startpunkts-kortet, så det ser likadant ut som på startsidan. */
.story-section .startpoint-glimpse__kicker {
    color: var(--accent);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1;
}

.story-section .startpoint-glimpse__headline h3 {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.story-section .startpoint-glimpse__reason,
.story-section .startpoint-glimpse__pick {
    line-height: 1.55;
}

.startpoint-callout__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 0;
    color: var(--text-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Komponenten speglar .startpoint-card i Analysvyn — accentram, accenttvätt,
 * kicker i versaler, matchrad och utfallschips. Tillräckligt för att modulen
 * ska kännas igen när man loggat in, men utan EV, edge och Roiqo Score, som
 * är det den betalda vyn faktiskt levererar. */

/* Det markerade utfallet — samma roll som --active i Analysvyn. */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.followup-grid > div:first-child > p:not(.story-eyebrow) {
    margin: 16px 0 0;
}

.followup-grid .btn-primary {
    margin-top: 24px;
}

.followup-glimpse {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.035);
}

.followup-glimpse div {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.followup-glimpse strong {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.3;
}

.followup-glimpse p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.story-disclaimer {
    margin: 28px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-muted) !important;
    font-size: 0.78rem;
}

.technical-list {
    display: grid;
    gap: 10px;
}

.technical-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.technical-list details[open] {
    background: rgba(255, 255, 255, 0.045);
}

.technical-list summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.technical-list summary::-webkit-details-marker {
    display: none;
}

.technical-list summary::after {
    content: "+";
    margin-left: auto;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 400;
}

.technical-list details[open] summary::after {
    content: "−";
}

.technical-list summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-md);
}

.technical-list details > div {
    padding: 0 20px 20px;
}

.technical-list details p {
    max-width: 76ch;
    margin: 10px 0 0;
}

@media (max-width: 960px) {
    .process-flow {
        flex-wrap: wrap;
    }

    .process-flow span {
        flex: 1 1 28%;
    }

    .story-split,
    .followup-grid,
    .startpoint-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .concept-grid,
    .signal-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
        .how-hero h1 {
        font-size: clamp(2.05rem, 8.8vw, 2.4rem);
    }

    /* Sex staplade pills med roterade pilar kostade 430px. Samma sekvens som
       numrerad tidslinje: cirkel, tunn linje, text — läser som process i
       stället för som sex knappar under varandra. */
    .process-flow {
        display: grid;
        gap: 0;
        padding: 2px 0;
        border: 0;
        background: none;
        counter-reset: process-step;
    }

    .process-flow b {
        display: none;
    }

    .process-flow span {
        counter-increment: process-step;
        position: relative;
        display: flex;
        flex: none;
        align-items: center;
        min-height: 42px;
        padding: 0 0 0 36px;
        border: 0;
        border-radius: 0;
        background: none;
        color: var(--text);
        font-size: 0.88rem;
        font-weight: 600;
        letter-spacing: 0;
        text-align: left;
        text-transform: none;
    }

    .process-flow span::before {
        content: counter(process-step, decimal-leading-zero);
        position: absolute;
        left: 0;
        top: 50%;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 23px;
        height: 23px;
        margin-top: -11.5px;
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        background: var(--bg-panel);
        color: var(--text-muted);
        font-size: 0.58rem;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .process-flow span:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 11px;
        top: calc(50% + 12px);
        height: calc(100% - 23px);
        width: 1px;
        background: var(--line);
    }

    /* Sista steget är resultatet av flödet och markeras med accenten. */
    .process-flow span:last-child::before {
        border-color: rgba(125, 223, 245, 0.5);
        color: var(--accent);
    }

    .story-section {
        padding: 22px 18px;
        border-radius: 24px;
    }

    /* Rubrik → ingress → visual hade 30px + 24px luft i varje sektion.
       Åtta sektioner gånger den luften är en halv viewport. */
    .story-head {
        margin-bottom: 18px;
    }

    .story-head > p:last-child {
        margin-top: 10px;
        font-size: 0.97rem;
        line-height: 1.55;
    }

    .story-split > div:first-child > p:not(.story-eyebrow) {
        margin-top: 10px;
        font-size: 0.97rem;
        line-height: 1.55;
    }

    .story-split,
    .followup-grid,
    .startpoint-section {
        gap: 20px;
    }

    .how-hero__copy > p:last-child {
        margin-top: 12px;
    }

    .value-question {
        margin-top: 26px;
    }

    .probability-glimpse,
    .followup-glimpse {
        padding: 16px;
        border-radius: 22px;
    }

    .followup-glimpse div,
    .startpoint-callout {
        padding: 14px 16px;
    }

    /* Titel och chips ryms inte på samma rad under ~380px. */
    .story-emphasis {
        padding: 12px 14px;
    }

    .probability-glimpse {
        padding: 18px;
    }

    /* Tre kolumner klämde ihop sig till 0.78rem för att rymmas. På mobil får
       varje utfall en egen rad med utfallsnamnet överst och de två talen
       under — samma data, läsbar grad, ingen horisontell klämning. */
    .value-example__head {
        display: none;
    }

    .value-example__row {
        grid-template-columns: 1fr 1fr;
        gap: 4px 10px;
        padding: 14px 16px;
    }

    .value-example__row > :first-child {
        grid-column: 1 / -1;
        color: var(--text);
        font-size: 0.95rem;
        font-weight: 700;
    }

    .value-example__row > :not(:first-child) {
        display: flex;
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }

    .value-example__row > :nth-child(2)::before { content: "Roiqo"; }
    .value-example__row > :nth-child(3)::before { content: "Marknad"; }

    .value-example__row > :nth-child(2)::before,
    .value-example__row > :nth-child(3)::before {
        color: var(--text-muted);
        font-family: var(--font-ui);
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .value-example__row:not(.value-example__head) strong:not(:first-child),
    .value-example__row:not(.value-example__head) span:not(:first-child) {
        font-size: 1.15rem;
    }

    .value-example__label {
        padding-inline: 16px;
        text-align: left;
    }

    /* ── Signalspår och begrepp: kompakta rader i stället för stora kort ──── */
    .signal-grid article,
    .concept-grid article {
        padding: 16px 18px;
        border-radius: var(--radius-md);
    }

    .signal-grid p,
    .concept-grid p {
        margin: 5px 0 0;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .signal-grid,
    .concept-grid {
        gap: 10px;
    }

    /* ── Accordions: kompakt stängt läge, bibehållen tappyta ────────────── */
    .technical-list summary {
        gap: 12px;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.92rem;
    }

    .technical-list details > div {
        padding: 0 16px 16px;
    }

    .technical-list {
        gap: 8px;
    }

    .value-question {
        font-size: clamp(1.6rem, 7vw, 1.95rem);
        text-align: left;
    }

    .followup-grid .btn-primary {
        width: 100%;
    }
}
