/* ==============================================================
   The redesigned homepage (Homepage/Main/*.razor), from the design handoff "Back Page v21".
   Type, spacing and motion are the design's. Colours and fonts are Vesta's theme (Vesta.Client.Shared: theme.css,
   fonts.css, loaded by App.razor through app.css), so a change there reaches this page too. Class names are mp-*, so
   nothing here reaches the app's pages or the coaches' page (homepage.css, hp-*), and the two are never loaded together.

   The page is dark whatever the reader chose: the design is, and .mp carries the class "dark", under which theme.css
   declares its dark tokens. Every colour below is a theme token, or a shade mixed from them (--mp-text-NN, where NN is
   the lightness the design had), except the two the theme has no token for (--mp-red, --mp-green).

   Widths are the page's, not the viewport's: .mp is a size container, and 1cqi is 1% of the page width. The design's
   breakpoints are container queries on it: 760 (phone layouts), 880 (the line track becomes dividers; main.js),
   900 (the explorer splits), 1100 (the header shows the sections).
   ============================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* The body is outside .mp's dark scope, where the tokens are the reader's theme; a light body would show as a band
   when scrolling past the top or the bottom. So this one is theme.css's dark --background, written out. */
body {
    margin: 0;
    background: hsl(220 47% 12%);
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- Root and tokens */

.mp {
    --mp-bg: hsl(var(--background));
    --mp-bg-light: hsl(var(--vesta-navy-raw));
    --mp-fg: hsl(var(--foreground));
    --mp-lime: hsl(var(--primary));
    --mp-lime-dark: color-mix(in srgb, var(--mp-lime) 90%, black);
    --mp-teal: hsl(var(--vesta-teal));
    --mp-teal-dark: color-mix(in srgb, var(--mp-teal) 86%, black);
    /* Text on lime and teal: the navy the theme puts on its primary colour. */
    --mp-on-bright: hsl(var(--primary-foreground));
    /* The theme has no red or green to read on its dark background (its dark --destructive is a fill). */
    --mp-red: hsl(0 84% 60%);
    --mp-green: hsl(150 55% 45%);
    /* Below the background, for shadows. */
    --mp-shade: color-mix(in srgb, var(--mp-bg) 35%, black);
    --mp-hair: hsl(var(--foreground) / 0.16);
    --mp-hair-soft: hsl(var(--foreground) / 0.14);

    /* The design's greys, from the foreground (95%) down to the muted foreground (60%), then towards the background. */
    --mp-text-92: color-mix(in srgb, hsl(var(--muted-foreground)) 9%, hsl(var(--foreground)));
    --mp-text-90: color-mix(in srgb, hsl(var(--muted-foreground)) 14%, hsl(var(--foreground)));
    --mp-text-88: color-mix(in srgb, hsl(var(--muted-foreground)) 20%, hsl(var(--foreground)));
    --mp-text-86: color-mix(in srgb, hsl(var(--muted-foreground)) 26%, hsl(var(--foreground)));
    --mp-text-84: color-mix(in srgb, hsl(var(--muted-foreground)) 31%, hsl(var(--foreground)));
    --mp-text-82: color-mix(in srgb, hsl(var(--muted-foreground)) 37%, hsl(var(--foreground)));
    --mp-text-80: color-mix(in srgb, hsl(var(--muted-foreground)) 43%, hsl(var(--foreground)));
    --mp-text-78: color-mix(in srgb, hsl(var(--muted-foreground)) 49%, hsl(var(--foreground)));
    --mp-text-76: color-mix(in srgb, hsl(var(--muted-foreground)) 54%, hsl(var(--foreground)));
    --mp-text-74: color-mix(in srgb, hsl(var(--muted-foreground)) 60%, hsl(var(--foreground)));
    --mp-text-70: color-mix(in srgb, hsl(var(--muted-foreground)) 71%, hsl(var(--foreground)));
    --mp-text-66: color-mix(in srgb, hsl(var(--muted-foreground)) 83%, hsl(var(--foreground)));
    --mp-text-60: hsl(var(--muted-foreground));
    --mp-text-50: color-mix(in srgb, hsl(var(--background)) 21%, hsl(var(--muted-foreground)));
    --mp-text-42: color-mix(in srgb, hsl(var(--background)) 38%, hsl(var(--muted-foreground)));
    --mp-text: var(--mp-text-86);

    /* What main.js draws the line down the page with. */
    --mp-track-hair: hsl(var(--foreground) / 0.12);

    --mp-pad: clamp(20px, 5cqi, 48px);
    --mp-h2-size: clamp(32px, 4cqi, 52px);
    --mp-poppins: var(--font-heading);

    position: relative;
    container-type: inline-size;
    container-name: mp;
    background: var(--mp-bg);
    color: var(--mp-fg);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    overflow: clip;
}

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

.mp a { color: var(--mp-fg); }
.mp a:hover { color: var(--mp-lime); }

.mp :where(h1, h2, h3, p, ol, ul) { margin: 0; padding: 0; }
.mp :where(ol, ul) { list-style: none; }
.mp :where(img) { display: block; max-width: 100%; }
.mp :where(button) { font: inherit; color: inherit; }

.mp :focus-visible {
    outline: 2px solid var(--mp-teal);
    outline-offset: 2px;
}

/* Blazor moves focus to the h1 after navigating; it is not something to type into, so it gets no ring. */
.mp h1:focus-visible { outline: none; }

.mp strong { font-weight: 700; }
.mp sup { font-size: 0.6em; margin-left: 1px; line-height: 0; }

.mp .hp-icon { width: 16px; height: 16px; flex: none; }

.mp-wrap { position: relative; max-width: 1152px; margin: 0 auto; }
.mp-section { padding: clamp(48px, 5cqi, 72px) var(--mp-pad); }
.mp-light { background: var(--mp-bg-light); }
.mp-bordered { border-top: 1px solid var(--mp-hair); }
.mp-teal { color: var(--mp-teal); }

/* A line break in a heading where the design has one; below 760px it is a space. */
.mp-brk { display: block; }

/* ---------------------------------------------------------------- Type */

.mp-h2 {
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: var(--mp-h2-size);
    line-height: 1.1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.mp-h2-22 { max-width: 22ch; }
.mp-h2-20 { max-width: 20ch; }

.mp-h3 {
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: clamp(24px, 2.4cqi, 30px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.mp-lead {
    margin-top: 24px;
    font-size: 18px;
    color: var(--mp-text);
    text-wrap: pretty;
}
.mp-lead-36 { max-width: 36ch; }
.mp-lead-46 { max-width: 46ch; }
.mp-lead-52 { max-width: 52ch; }

.mp-caps {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mp-text-80);
}

.mp-fine {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mp-text-76);
}

/* ---------------------------------------------------------------- Buttons and links */

.mp-btn {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-family: var(--mp-poppins);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.mp .mp-btn-lime { background: var(--mp-lime); color: var(--mp-on-bright); }
.mp .mp-btn-lime:hover { background: var(--mp-lime-dark); color: var(--mp-on-bright); }

.mp .mp-btn-outline { border: 1.5px solid hsl(var(--foreground) / 0.4); color: var(--mp-fg); }
.mp .mp-btn-outline:hover { border-color: var(--mp-fg); color: var(--mp-fg); }

/* Sign in: teal, which the design keeps for key statistics; here by decision. */
.mp .mp-btn-teal { background: var(--mp-teal); color: var(--mp-on-bright); }
.mp .mp-btn-teal:hover { background: var(--mp-teal-dark); color: var(--mp-on-bright); }

.mp .mp-btn-small { font-size: 14px; padding: 0 16px; min-height: 40px; }

.mp-textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 8px;
    align-self: flex-start;
    font-size: 15px;
    color: var(--mp-text-88);
    text-decoration: underline;
    text-decoration-color: hsl(var(--foreground) / 0.4);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
}
.mp a.mp-textlink { color: var(--mp-text-88); }
.mp a.mp-textlink:hover { color: var(--mp-lime); }

.mp-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--mp-text-78);
}
.mp-status-where { font-size: 15px; color: var(--mp-text-80); }

.mp-dot {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 999px;
    background: var(--mp-green);
}

/* ---------------------------------------------------------------- Grids that collapse to one column */

.mp-cols-2, .mp-cols-3 { display: grid; grid-template-columns: minmax(0, 1fr); }

@container mp (min-width: 860px) {
    .mp-coach-top, .mp-steps, .mp-pillars-3, .mp-trust-items { align-items: start; }
    .mp-coach-top { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
    .mp-pillars-3, .mp-trust-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container mp (min-width: 960px) {
    .mp-problem-top, .mp-problem-bottom, .mp-hero-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- Header */

.mp-header {
    position: relative;
    z-index: 1;
    padding: 0 var(--mp-pad);
    border-bottom: 1px solid var(--mp-hair);
}

/* On trial, not in the design: the bar stays at the top while the page scrolls (MainHeader.Sticky). Opaque, above the
   sections and the line down the page; a link to a section stops below it rather than under it. */
.mp-header-sticky {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--mp-bg);
}
html:has(.mp-header-sticky) { scroll-padding-top: calc(69px + 16px); }

/* The section being read (main.js, only with the sticky header): its menu link in lime, a thin line beneath. */
.mp .mp-nav a[aria-current] {
    color: var(--mp-lime);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.mp-header-bar {
    max-width: 1152px;
    margin: 0 auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mp-logo { display: flex; align-items: center; }
.mp-logo img { height: 26px; width: auto; }

.mp-nav {
    display: none;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}
@container mp (min-width: 1100px) { .mp-nav { display: flex; } }
.mp .mp-nav a { color: var(--mp-fg); text-decoration: none; }
.mp .mp-nav a:hover { color: var(--mp-lime); }

.mp-header-actions { display: flex; align-items: center; gap: 16px; }

/* The language menu (LanguageMenu.razor): a disclosure, so it opens without a script. */
.mp .hp-languages { position: relative; }
.mp .hp-languages summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    font-size: 15px;
    font-weight: 500;
    color: var(--mp-fg);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}
.mp .hp-languages summary::-webkit-details-marker { display: none; }
.mp .hp-languages summary:hover,
.mp .hp-languages[open] summary { color: var(--mp-lime); }

.mp .hp-languages-list {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 160px;
    padding: 6px;
    background: var(--mp-bg-light);
    border: 1px solid var(--mp-hair);
    border-radius: 12px;
    box-shadow: 0 16px 40px color-mix(in srgb, var(--mp-shade) 50%, transparent);
}
.mp .hp-languages-list a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
}
.mp .hp-languages-list a:hover { background: hsl(var(--foreground) / 0.08); }
.mp .hp-languages-list a[aria-current] { font-weight: 700; color: var(--mp-lime); }

/* On a narrow phone the logo, the language, "Sign in" and "Book a talk" do not fit in one row; "Book a talk" is the first
   button of the hero, directly below. */
@container mp (max-width: 519px) {
    .mp-header-actions { gap: 10px; }
    .mp .mp-header-book { display: none; }
}

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

.mp-hero { position: relative; padding: clamp(20px, calc(5cqi - 32px), 40px) var(--mp-pad) 0; }

.mp-seq { margin-top: clamp(20px, 2.4cqi, 32px); }

/* One row when it fits, as in the design (the size is set for the English); Norsk and Dansk are longer, so a phrase
   moves to the next row rather than off the page. */
.mp-tagline {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.28em;
    white-space: nowrap;
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: min(44px, calc((min(100cqi, 1248px) - 96px) / 26.5));
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.mp-season { margin-top: clamp(24px, 3cqi, 40px); }

.mp-eyebrow {
    padding-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mp-season-sum {
    border-top: 1px solid var(--mp-fg);
    padding-top: clamp(16px, 2cqi, 24px);
}

/* The sum: 180 − 27 + 39 = 192. Wide, it is a row of figures with their labels under them. */
.mp-sum { display: flex; align-items: flex-start; }
.mp-term { display: flex; align-items: flex-start; }

.mp-fig {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: clamp(12px, 2.4cqi, 32px);
}

.mp-num {
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: clamp(48px, 8cqi, 104px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--mp-fg);
}
.mp-num.mp-red { color: var(--mp-red); }

.mp-lab {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mp-text-78);
    white-space: nowrap;
}

.mp-op {
    display: flex;
    align-items: center;
    height: calc(clamp(48px, 8cqi, 104px) * 0.95);
    padding-right: clamp(12px, 2.4cqi, 32px);
    font-family: var(--mp-poppins);
    font-weight: 500;
    font-size: clamp(32px, 4cqi, 52px);
    line-height: 1;
    color: var(--mp-text-66);
    transform: translateY(0.06em);
}
.mp-term-start .mp-op { display: none; }

.mp-term-end .mp-fig { padding-right: 0; }
.mp-numrow { display: flex; align-items: flex-start; gap: 12px; }

.mp-badge {
    align-self: flex-start;
    padding: 2px 12px;
    border: 1.5px solid var(--mp-text-50);
    border-radius: 999px;
    font-family: var(--mp-poppins);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.6;
    white-space: nowrap;
    color: var(--mp-text-78);
}

.mp-mid {
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    max-width: 720px;
    opacity: 1;
    transition: max-width 1800ms cubic-bezier(0.2, 0, 0.2, 1), opacity 900ms cubic-bezier(0.4, 0, 0.2, 1) 350ms;
}

/* "→" until the middle has opened, then "=". */
.mp-op-equals { display: inline; }
.mp-op-arrow { display: none; }

.mp-term-start, .mp-term-end, .mp-badge {
    transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* The steps main.js plays: 0 nothing, 1 the start, 2 the end, 3 the badge, 4 the middle opens. No data-step is step 4. */
.mp-seq[data-step="0"] .mp-term-start { opacity: 0; transform: translateY(12px); }
.mp-seq:is([data-step="0"], [data-step="1"]) .mp-term-end { opacity: 0; transform: translateY(12px); }
.mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"]) .mp-badge { opacity: 0; transform: translateY(12px); }
.mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .mp-mid { max-width: 0; opacity: 0; }
.mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .mp-op-arrow { display: inline; }
.mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .mp-op-equals { display: none; }

.mp-example {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mp-text-76);
}

.mp-captions { display: grid; margin-top: 18px; }
.mp-caption {
    grid-area: 1 / 1;
    max-width: 48ch;
    font-size: clamp(18px, 1.8cqi, 22px);
    line-height: 1.5;
    color: var(--mp-text);
    text-wrap: pretty;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-caption-under { opacity: 1; transform: none; transition-delay: 500ms; }
.mp-seq[data-step="3"] .mp-caption-up { opacity: 1; transform: none; }
.mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .mp-caption-under { opacity: 0; transform: translateY(12px); transition-delay: 0ms; }

.mp-hero-lower {
    gap: 32px clamp(40px, 6cqi, 96px);
    align-items: start;
    margin-top: clamp(24px, 3cqi, 36px);
    padding-top: 24px;
    border-top: 1px solid var(--mp-hair);
}

.mp-mission {
    max-width: 44ch;
    font-size: clamp(18px, 1.6cqi, 20px);
    line-height: 1.55;
    color: var(--mp-text);
    text-wrap: pretty;
}

.mp-hero-actions { display: flex; flex-direction: column; }

.mp-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--mp-hair);
}
.mp-ask + .mp-ask { padding: 20px 0; }
.mp-ask p {
    max-width: 36ch;
    font-size: 16px;
    line-height: 1.5;
    color: var(--mp-text);
    text-wrap: pretty;
}

/* Where the line track starts: main.js reads the middle of this strip. */
.mp-rail-gap { position: relative; height: clamp(32px, 4cqi, 48px); pointer-events: none; }
.mp-rail-gap [data-rail] { position: absolute; top: 50%; left: 0; right: 0; height: 0; }

/* ---------------------------------------------------------------- Problem */

.mp-problem { padding: clamp(32px, 4cqi, 48px) var(--mp-pad); }

.mp-problem-top { gap: 48px clamp(40px, 6cqi, 72px); align-items: start; }
.mp-problem-bottom {
    gap: 40px clamp(40px, 6cqi, 72px);
    align-items: center;
    margin-top: clamp(32px, 4cqi, 48px);
    padding-top: clamp(28px, 3.4cqi, 40px);
    border-top: 1px solid var(--mp-hair-soft);
}

.mp-h2-problem { max-width: 22ch; }

.mp-problem .mp-lead { font-size: 18px; }

.mp-card {
    container-type: inline-size;
    padding: clamp(20px, 3.4cqi, 40px);
    background: var(--mp-bg-light);
    border: 1px solid var(--mp-hair-soft);
    border-radius: 16px;
}

.mp-card-figures {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: start;
    align-items: start;
    column-gap: clamp(16px, 8cqi, 64px);
}
.mp-card-figures > div { min-width: 0; }

.mp-card-num {
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: clamp(40px, 16cqi, 80px);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.mp-lt { margin-right: 0.08em; }

.mp-card-lab {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mp-text-78);
}

.mp-card-arrow {
    display: flex;
    align-items: center;
    width: clamp(24px, 8cqi, 36px);
    height: clamp(40px, 16cqi, 80px);
}
.mp-card-arrow > span:first-child { flex: 1; height: 1.5px; background: var(--mp-text-70); }
.mp-card-arrow > span:last-child {
    width: 9px;
    height: 9px;
    margin-left: -8px;
    border-top: 1.5px solid var(--mp-text-70);
    border-right: 1.5px solid var(--mp-text-70);
    transform: rotate(45deg);
}

/* 13 dots a row, 14px each, 9px apart (290px) when there is room; in a narrower card the same dots are spread across it. */
.mp-dots {
    display: grid;
    grid-template-columns: repeat(13, 14px);
    justify-content: space-between;
    row-gap: 9px;
    max-width: 290px;
    margin-top: 36px;
}
.mp-dots span { width: 14px; height: 14px; }

.mp-dot-on, .mp-dot-off { border-radius: 999px; }
.mp-dot-on { background: var(--mp-fg); }
.mp-dot-off { border: 1px solid var(--mp-text-60); }

.mp-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 24px;
    font-size: 15px;
    color: var(--mp-text);
}
.mp-legend-row > span { display: inline-flex; align-items: center; gap: 8px; }
.mp-key { display: inline-block; width: 12px; height: 12px; }

.mp-card-note {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--mp-hair-soft);
    font-size: 15px;
    line-height: 1.6;
    color: var(--mp-text);
    text-wrap: pretty;
}
.mp-card-note strong { color: var(--mp-teal); }

.mp-stat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.mp-stat-big {
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: clamp(32px, 4cqi, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}
.mp-stat-row p {
    flex: 1 1 220px;
    max-width: 30ch;
    font-size: 16px;
    line-height: 1.6;
    color: var(--mp-text);
    text-wrap: pretty;
}
.mp-stat-row p strong { color: var(--mp-fg); }

.mp-question {
    max-width: 24ch;
    font-family: var(--mp-poppins);
    font-weight: 600;
    font-size: clamp(24px, 2.4cqi, 30px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}

.mp-source {
    margin-top: clamp(24px, 3cqi, 32px);
    font-size: 14px;
    line-height: 1.5;
    color: var(--mp-text-76);
}

/* ---------------------------------------------------------------- Research */

.mp-lead-research { margin-top: 12px; font-size: 19px; color: var(--mp-text-80); }
.mp-research .mp-h2-research-2 { margin-top: clamp(56px, 6cqi, 80px); }

.mp-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(28px, 3.8cqi, 48px);
    margin-top: 32px;
    padding-top: 40px;
    border-top: 1px solid var(--mp-hair-soft);
}
.mp-score > div { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.mp-score-big {
    display: flex;
    align-items: flex-end;
    min-height: clamp(40px, 4.4cqi, 56px);
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: clamp(40px, 4.4cqi, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.mp-score-big.mp-score-quote { font-size: clamp(26px, 2.66cqi, 34px); color: var(--mp-fg); }

.mp-score p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--mp-text-80);
    text-wrap: pretty;
}

.mp-reasons { margin-top: 32px; }
.mp-reasons-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mp-hair-soft);
}

.mp-reason {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 2.5cqi, 32px);
    padding: 20px 0;
    border-bottom: 1px solid var(--mp-hair-soft);
}

.mp-reason-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mp-reason-go { text-align: right; }
.mp-reason-tag { display: none; margin-bottom: 2px; }
.mp-reason-text { font-size: 18px; color: var(--mp-fg); text-wrap: pretty; }
.mp-reason-share { font-size: 14px; color: var(--mp-text-80); }
.mp-reason-share strong { color: var(--mp-teal); }

.mp-pillar-word {
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: var(--mp-h2-size);
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-align: center;
    color: var(--mp-lime);
}

.mp-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 40px;
    margin-top: 32px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mp-text-76);
}
.mp-notes li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.mp-notes li span:last-child { text-wrap: pretty; }

/* ---------------------------------------------------------------- Why the coach */

.mp-coach-top { gap: 40px clamp(40px, 6cqi, 80px); }

/* The figure in the introduction (73%) is a key statistic, in teal, as in the design. */
.mp-coach .mp-lead strong { color: var(--mp-teal); }

.mp-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: min(560px, 70vh);
    object-fit: cover;
    object-position: 50% 55%;
    border-radius: 12px;
}

.mp-pillars-3 { gap: 40px 32px; margin-top: clamp(32px, 3.5cqi, 48px); }

.mp-pillar { position: relative; padding-left: 24px; min-width: 0; }
.mp-pillar-bar { position: absolute; left: 0; top: 0; width: 3px; height: 28px; background: var(--mp-lime); }
.mp-pillar-label { font-size: 16px; font-weight: 600; line-height: 28px; color: var(--mp-lime); }
.mp-pillar .mp-h3 { margin-top: 10px; }
.mp-pillar p { margin-top: 12px; max-width: 34ch; font-size: 16px; color: var(--mp-text-84); text-wrap: pretty; }

.mp-statements {
    margin-top: clamp(32px, 3.5cqi, 48px);
    border-top: 1px solid var(--mp-hair);
}
.mp-statements > div { padding: 20px 0; border-bottom: 1px solid var(--mp-hair); }
.mp-statements p { max-width: 72ch; font-size: 17px; color: var(--mp-text); text-wrap: pretty; }
.mp-statements strong { color: var(--mp-fg); }

/* ---------------------------------------------------------------- A week with Vesta */

.mp-week { border-top: 1px solid var(--mp-hair); }

.mp-eyebrow-plain { font-size: 16px; font-weight: 600; color: var(--mp-text-80); }
.mp-h2-week { margin-top: 12px; text-wrap: pretty; }

.mp-steps {
    gap: clamp(40px, 4cqi, 56px) clamp(32px, 4cqi, 56px);
    margin-top: clamp(32px, 3.5cqi, 48px);
}
.mp-steps > li { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.mp-step-text { padding-top: 20px; border-top: 1px solid var(--mp-hair); }
.mp-step-when { font-size: 16px; font-weight: 600; line-height: 28px; color: var(--mp-text-80); }
.mp-step-text .mp-h3 { margin-top: 10px; }
.mp-step-text p { margin-top: 12px; max-width: 42ch; font-size: 16px; color: var(--mp-text-84); text-wrap: pretty; }

.mp-step-shot {
    margin-top: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1179 / 1130;
    border: 1px solid var(--mp-hair);
    border-radius: 12px;
}

.mp-week-closing { margin-top: clamp(32px, 4cqi, 48px); }

/* ---------------------------------------------------------------- What Vesta does */

.mp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: clamp(32px, 3.5cqi, 48px);
    font-size: 14px;
    font-weight: 500;
}
.mp-legend > span { display: inline-flex; align-items: center; gap: 10px; }
.mp-legend-coming { color: var(--mp-text-80); }
.mp-dash { display: inline-block; width: 28px; border-top: 2px solid var(--mp-text-90); }
.mp-dash-dim { border-top-color: var(--mp-text-42); }

.mp-explorer { margin-top: 20px; }

/* Stacked, below 900px: the audiences, the pillars (both scroll sideways), then the text and the screenshot. */
.mp-corner { display: none; }

.mp-tabs, .mp-pillars {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid hsl(var(--foreground) / 0.2);
    scrollbar-width: none;
}
.mp-tabs::-webkit-scrollbar, .mp-pillars::-webkit-scrollbar { display: none; }
.mp-pillars { margin-top: 20px; }

.mp-tab, .mp-pill {
    position: relative;
    appearance: none;
    background: none;
    border: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    color: var(--mp-fg);
}

.mp-tab {
    flex: 1 0 auto;
    min-height: 56px;
    padding: 14px 12px 18px 0;
    font-family: var(--mp-poppins);
    font-weight: 700;
    font-size: clamp(15px, 2.6cqi, 24px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--mp-text-78);
}
.mp-tab[aria-selected="true"] { color: var(--mp-fg); }
.mp-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 8px;
    bottom: -1px;
    height: 3px;
    background: var(--mp-lime);
}

.mp-pill {
    flex: 1 0 auto;
    min-height: 48px;
    padding: 0 10px 0 0;
    font-family: var(--mp-poppins);
    font-weight: 600;
    font-size: clamp(14px, 2.4cqi, 18px);
    letter-spacing: -0.01em;
    color: var(--mp-text-74);
}
.mp-pill[aria-selected="true"] { color: var(--mp-fg); }
.mp-pill[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 10px;
    bottom: -1px;
    height: 3px;
    background: var(--mp-lime);
}

.mp-tab:focus-visible, .mp-pill:focus-visible { outline-offset: -2px; }

.mp-stage { margin-top: 24px; }

.mp-panel-headline {
    font-family: var(--mp-poppins);
    font-weight: 600;
    font-size: clamp(24px, 2.4cqi, 30px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: pretty;
}
.mp-panel-headline + .mp-points { margin-top: 24px; }
.mp-points-live + .mp-points-coming { margin-top: 24px; }

.mp-points { display: flex; flex-direction: column; gap: 14px; }
.mp-points-coming { gap: 12px; }
.mp-points > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-point-dash { margin-top: 12px; border-top: 2px solid var(--mp-text-92); }
.mp-points p { font-size: 17px; line-height: 1.5; color: var(--mp-text-92); text-wrap: pretty; }
.mp-points-coming .mp-point-dash { margin-top: 11px; border-top-color: var(--mp-text-42); }
.mp-points-coming p { font-size: 16px; color: var(--mp-text-78); }

.mp-panel[hidden], .mp-shot[hidden] { display: none; }

.mp-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 5;
    min-width: 0;
    margin-top: 28px;
    overflow: hidden;
    background: var(--mp-bg-light);
}

.mp-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mp-layer.is-active { z-index: 2; opacity: 1; pointer-events: auto; }

.mp-layer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: mp-push 20s ease-in-out infinite alternate;
}
@keyframes mp-push { from { transform: scale(1); } to { transform: scale(1.03); } }

.mp-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 62% 52% at 50% 50%, color-mix(in srgb, var(--mp-shade) 55%, transparent), transparent 78%);
}

.mp-shot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86%;
    overflow: hidden;
    background: var(--mp-bg);
    border: 1px solid var(--mp-hair-soft);
    border-radius: 12px;
    box-shadow: 0 28px 60px color-mix(in srgb, var(--mp-shade) 55%, transparent);
}
.mp-shot img { width: 100%; height: auto; }

.mp-shot:has(.mp-shot-coming) { width: 56%; background: none; border: 0; box-shadow: none; overflow: visible; }
.mp-shot-coming {
    padding: 28px 24px;
    border: 1px solid hsl(var(--foreground) / 0.3);
    border-radius: 12px;
    background: var(--mp-bg);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--mp-text);
}

/* The explorer split: from 900px the audiences run across the top, the pillars down the left. */
@container mp (min-width: 900px) {
    .mp-explorer {
        display: grid;
        grid-template-columns: minmax(150px, 180px) minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: clamp(24px, 3.5cqi, 48px);
    }

    .mp-corner { display: block; grid-column: 1; grid-row: 1; border-bottom: 1px solid hsl(var(--foreground) / 0.2); }

    .mp-tabs { grid-column: 2; grid-row: 1; overflow: visible; }
    .mp-tab { flex: 1 1 0; min-width: 0; }

    .mp-pillars {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        flex-direction: column;
        overflow: visible;
        margin: 28px 0 0;
        border-bottom: 0;
        border-left: 1px solid hsl(var(--foreground) / 0.2);
    }
    .mp-pill { display: flex; align-items: center; flex: none; min-height: 52px; padding: 0 0 0 20px; }
    .mp-pill[aria-selected="true"]::after { left: -2px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }

    .mp-stage {
        grid-column: 2;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(24px, 3.5cqi, 48px);
        align-items: start;
        margin-top: 0;
        padding-top: 36px;
    }
    .mp-visual { margin-top: 0; }
}

/* ---------------------------------------------------------------- Where your club's data lives */

.mp-trust-group { margin-top: clamp(40px, 5cqi, 56px); padding-top: 24px; border-top: 1px solid var(--mp-hair); }
.mp-trust-group.mp-trust-first { margin-top: clamp(40px, 5cqi, 56px); }

.mp-trust-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 16px;
    font-weight: 600;
}
.mp-trust-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.mp-trust-note { font-size: 15px; font-weight: 400; color: var(--mp-text-82); }

.mp-square { display: inline-block; width: 12px; height: 12px; flex: none; }
.mp-square-solid { border: 1px solid var(--mp-fg); background: var(--mp-fg); }
.mp-square-outline { border: 1px solid var(--mp-text-50); }

.mp-trust-items { gap: 0 32px; }
.mp-trust-items > div { display: flex; flex-direction: column; gap: 6px; padding: 20px 0 0; }
.mp-trust-title { font-weight: 600; font-size: 18px; }
.mp-trust-items p { font-size: 16px; color: var(--mp-text); text-wrap: pretty; }

/* ---------------------------------------------------------------- Where we are */

.mp-h2-where { margin-top: 16px; }
.mp-where-body + .mp-where-body { margin-top: 16px; }
.mp-where-body {
    margin-top: 24px;
    max-width: 56ch;
    font-size: 20px;
    line-height: 1.55;
    color: var(--mp-text);
    text-wrap: pretty;
}

/* ---------------------------------------------------------------- FAQ */

.mp-faq { margin-top: clamp(32px, 3.5cqi, 48px); border-top: 1px solid var(--mp-hair); max-width: 800px; }
.mp-faq details { border-bottom: 1px solid var(--mp-hair); }
.mp-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding: 12px 0;
    font-family: var(--mp-poppins);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}
.mp-faq summary::-webkit-details-marker { display: none; }
.mp-faq summary:hover { color: var(--mp-lime); }
.mp-faq .mp-faq-chevron { width: 20px; height: 20px; transition: transform 200ms ease; }
.mp-faq details[open] .mp-faq-chevron { transform: rotate(90deg); }
.mp-faq details p { padding: 0 0 20px; max-width: 64ch; font-size: 16px; color: var(--mp-text); text-wrap: pretty; }

/* ---------------------------------------------------------------- Start with a conversation */

/* The FAQ sits on the same light navy as the call to action below it: no line between the two. */
.mp-faq-section + .mp-cta { border-top: 0; }

.mp-cta {
    position: relative;
    padding: clamp(48px, 5.5cqi, 80px) var(--mp-pad);
    background: var(--mp-bg-light);
    border-top: 1px solid var(--mp-hair);
}

.mp-cta-sub { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--mp-text-90); }

.mp-cta-ask {
    max-width: 560px;
    margin-top: clamp(40px, 5cqi, 56px);
    padding-top: 20px;
    border-top: 1px solid var(--mp-fg);
}
.mp-cta-ask > p { max-width: 40ch; font-size: 18px; }
.mp-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

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

.mp-footer {
    padding: 40px var(--mp-pad) 28px;
    border-top: 1px solid var(--mp-hair);
    font-size: 14px;
    color: var(--mp-text-82);
}
.mp-footer-bar {
    max-width: 1152px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px 32px;
}
.mp-footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mp-footer-brand img { height: 22px; width: auto; }
.mp-footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.mp .mp-footer-nav a:not(.mp-btn) { color: var(--mp-fg); text-decoration: none; }
.mp .mp-footer-nav a:not(.mp-btn):hover { color: var(--mp-lime); }
.mp-footer-copy { font-size: 14px; line-height: 1.5; color: var(--mp-text-76); }

/* ---------------------------------------------------------------- The line that runs down the page (main.js) */

.mp-track {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}

/* ---------------------------------------------------------------- Phones: below 760px */

@container mp (max-width: 759px) {
    .mp-brk { display: inline; }

    /* A phrase may wrap on a phone: Norsk is longer than English ("Få klubben din til å vokse."). */
    .mp-tagline { font-size: clamp(32px, 4cqi, 52px); white-space: normal; }
    .mp-season { margin-top: 28px; }
    .mp-example { margin-top: 14px; }
    .mp-captions { margin-top: 14px; }
    .mp-caption { font-size: 17px; }

    /* The sum as rows: operator, figure, label. */
    .mp-sum { display: block; }
    .mp-term {
        display: grid;
        grid-template-columns: 28px auto minmax(0, 1fr);
        align-items: baseline;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--mp-hair);
    }
    .mp-term-start .mp-op { display: block; }
    .mp-fig { display: contents; }
    .mp-op { display: block; height: auto; padding: 0; transform: none; }
    .mp-lab { white-space: normal; text-align: right; }

    .mp-mid {
        display: block;
        max-width: none;
        max-height: 200px;
        transition: max-height 1500ms cubic-bezier(0.2, 0, 0.2, 1), opacity 900ms cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    }
    .mp-mid .mp-term { padding: 10px 0; }
    .mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .mp-mid { max-width: none; max-height: 0; opacity: 0; }

    .mp-term-end {
        grid-template-areas: "op num badge" "op num lab";
        align-items: center;
        row-gap: 6px;
        border-top: 2px solid var(--mp-fg);
        border-bottom: 0;
        transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms cubic-bezier(0.4, 0, 0.2, 1), border-color 400ms;
    }
    .mp-seq:is([data-step="0"], [data-step="1"], [data-step="2"], [data-step="3"]) .mp-term-end { border-top-color: transparent; }
    .mp-term-end .mp-op { grid-area: op; }
    .mp-numrow { display: contents; }
    .mp-term-end .mp-num { grid-area: num; }
    .mp-badge { grid-area: badge; justify-self: end; font-size: 15px; }
    .mp-term-end .mp-lab { grid-area: lab; justify-self: end; }

    /* The research stacks: each number above its text, and each pillar over its stay and go. */
    .mp-research .mp-h2-research-2 { margin-top: 56px; }
    .mp-lead-research { font-size: 18px; }
    .mp-score { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 40px; }
    .mp-score > div { gap: 16px; }
    .mp-score-big { min-height: 0; font-size: 52px; }
    .mp-score-big.mp-score-quote { font-size: 32px; }

    .mp-reasons { margin-top: 40px; border-top: 1px solid var(--mp-hair-soft); }
    .mp-reasons-head { display: none; }
    .mp-reason {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "pillar pillar" "stay go";
        align-items: start;
        gap: 16px 20px;
        padding: 22px 0;
    }
    .mp-pillar-word { grid-area: pillar; text-align: left; }
    .mp-reason-stay { grid-area: stay; }
    .mp-reason-go { grid-area: go; text-align: left; }
    .mp-reason-tag { display: block; }
    .mp-reason-text { font-size: 17px; }
    .mp-reason-share { font-size: 13px; }

    .mp-notes { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }

    .mp-card-figures { column-gap: clamp(16px, 8cqi, 64px); }
}
