/* Mumbin website. Same design language as the app: dark surfaces, signal-red accent, calm motion.
   Source file; scripts/buildSite.js copies it to docs/assets/site.css. */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 500 800;
    font-display: swap;
    src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --surface-1: #141010;
    --surface-2: #1c1515;
    --surface-3: #271d1d;
    --surface-4: #352828;
    --accent: #e50914;
    --accent-hover: #ff1f2c;
    --accent-soft: #ff4d57;
    --accent-dim: rgba(229, 9, 20, 0.16);
    --gold: #f5c518;
    --green: #22c55e;
    --text-1: #f5f5f5;
    --text-2: #b4b2ae;
    --text-3: #8f8d86;
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --radius: 14px;
    --radius-small: 8px;
    --max: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", Consolas, monospace;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background:
        radial-gradient(900px 520px at 8% -80px, rgba(229, 9, 20, 0.22), transparent 70%),
        radial-gradient(700px 480px at 96% 40px, rgba(229, 9, 20, 0.1), transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--text-1);
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

.wrap {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 16px;
    top: 16px;
    z-index: 100;
    padding: 8px 14px;
    background: var(--accent);
    border-radius: var(--radius-small);
}

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

.red {
    color: var(--accent-soft);
}

.eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead {
    color: var(--text-2);
    font-size: 18px;
    max-width: 62ch;
}

/* ── Navigation ───────────────────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    margin-top: 14px;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 9px 12px 9px 18px;
    background: rgba(18, 14, 14, 0.78);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.brand {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex: none;
    height: 38px;
    text-decoration: none;
}

.brand-ghost {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
}

.brand-sign {
    position: relative;
    z-index: 1;
    margin-left: -4px;
    padding-left: 3px;
    transform-origin: 1px 21px;
    transform: rotate(-5deg);
    transition: transform 0.35s var(--ease);
}

.brand:hover .brand-sign {
    transform: rotate(2deg);
}

.brand-sign::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 3px;
    height: 36px;
    border-radius: 2px;
    background: #b5a98f;
}

.brand-board {
    display: block;
    margin-top: 3px;
    padding: 0 9px;
    border-radius: 5px;
    background: #f3eee3;
    box-shadow: 0 2px 0 #b5a98f;
    color: #1a0d0f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 22px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-inline: auto;
}

.nav-links a {
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-links a:hover {
    color: var(--text-1);
    background: var(--surface-3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions .language,
.nav-actions .icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.language svg {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--border-strong);
}

.nav-actions .language:hover,
.nav-actions .icon-link:hover {
    background: var(--surface-3);
    color: var(--text-1);
}

.icon-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.icon-link {
    padding: 0;
}

/* ── Buttons and chips ────────────────────────────────────────────────── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-1);
    font: inherit;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.button:hover {
    transform: translateY(-1px);
    background: var(--surface-3);
}

.button.primary {
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.35);
}

.button.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 14px 38px rgba(229, 9, 20, 0.5);
}

.button.small {
    padding: 8px 18px;
    font-size: 14px;
}

.ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.chips span {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    padding: 88px 0 72px;
}

.hero h1 {
    font-size: clamp(42px, 5.4vw, 70px);
    font-weight: 800;
}

.hero .lead {
    margin: 24px 0 32px;
}

.fine {
    margin-top: 16px;
    color: var(--text-3);
    font-size: 14px;
}

/* A screenshot in a window frame. */
.frame {
    position: relative;
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--surface-1);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.frame::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 14px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff30;
    box-shadow: 15px 0 #ffffff30, 30px 0 #ffffff30;
}

.frame a {
    display: block;
    padding-top: 30px;
}

.frame img {
    display: block;
    width: 100%;
}

.frame figcaption {
    padding: 10px 16px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 13px;
}

.hero .frame {
    transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform 0.5s var(--ease);
}

.hero .frame:hover {
    transform: none;
}

/* ── The mummy ────────────────────────────────────────────────────────── */

/* It peeks over the edge of a window or a panel: behind the box (z-index -1), above the page. */
.hero-visual,
.download-panel,
.closing {
    position: relative;
}

.hero-mascot,
.panel-mascot,
.closing-mascot {
    position: absolute;
    z-index: -1;
}

.hero-mascot {
    top: -66px;
    right: 9%;
    width: 92px;
    height: 92px;
}

.panel-mascot {
    top: -62px;
    right: 56px;
    width: 88px;
    height: 88px;
}

.closing-mascot {
    top: -64px;
    left: 50%;
    width: 90px;
    height: 90px;
    margin-left: -45px;
}

.bubble {
    position: absolute;
    z-index: -1;
    padding: 7px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 14px 14px 4px 14px;
    background: var(--surface-3);
    color: var(--text-1);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    animation: bubble-in 0.5s var(--ease) both 0.8s;
}

.panel-bubble {
    top: -52px;
    right: 158px;
}

.closing-bubble {
    top: -50px;
    left: calc(50% + 52px);
    border-radius: 14px 14px 14px 4px;
}

@keyframes bubble-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.9);
    }
}

/* The sleeper next to the headline of the protection section. */
#protection {
    position: relative;
}

.head-mascot {
    position: absolute;
    top: 78px;
    right: 0;
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 10px 28px rgba(229, 9, 20, 0.25));
}

.not-found {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 90px 0 60px;
    text-align: center;
}

.lost-mascot {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 12px 30px rgba(229, 9, 20, 0.3));
}

.code-404 {
    margin: 10px 0 0;
    color: var(--accent);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

@media (max-width: 900px) {
    .hero-mascot {
        right: 6%;
        width: 76px;
        height: 76px;
        top: -52px;
    }

    .head-mascot {
        position: static;
        display: block;
        width: 84px;
        height: 84px;
        margin: -24px 0 20px;
    }

    .bubble {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble {
        animation: none;
    }
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
    padding: 96px 0 24px;
}

.section h2 {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 800;
    max-width: 22ch;
}

.section-head {
    margin-bottom: 44px;
}

.section-head .lead {
    margin-top: 18px;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 48px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.benefits li {
    position: relative;
    padding-left: 30px;
    color: var(--text-2);
}

.benefits li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 12px;
    height: 7px;
    border-left: 2.5px solid var(--accent-soft);
    border-bottom: 2.5px solid var(--accent-soft);
    transform: translateY(-50%) rotate(-45deg);
}

/* ── Feature rows ─────────────────────────────────────────────────────── */

.row {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.row:nth-of-type(even) {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.row:nth-of-type(even) .row-copy {
    order: 2;
}

.row h3 {
    margin-bottom: 14px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
}

.row p {
    color: var(--text-2);
}

.points {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.points li {
    position: relative;
    margin-top: 9px;
    padding-left: 22px;
    color: var(--text-2);
    font-size: 15.5px;
}

.points li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.shots {
    display: grid;
    gap: 18px;
}

/* ── Protection ───────────────────────────────────────────────────────── */

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

.card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
}

.card p {
    color: var(--text-2);
    font-size: 15.5px;
}

.card .num {
    display: block;
    margin-bottom: 14px;
    color: var(--accent-soft);
    font-family: var(--font-mono);
    font-size: 13px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th,
td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface-2);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

td {
    color: var(--text-2);
}

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
}

/* ── Numbers ──────────────────────────────────────────────────────────── */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat {
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-1);
}

.stat strong {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.stat span {
    display: block;
    margin-top: 8px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.method {
    margin-top: 22px;
    color: var(--text-3);
    font-size: 14px;
}

/* ── Download ─────────────────────────────────────────────────────────── */

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    padding: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    background:
        radial-gradient(500px 260px at 0% 0%, rgba(229, 9, 20, 0.2), transparent 70%),
        var(--surface-1);
}

.download-panel h3 {
    font-size: 28px;
    font-weight: 800;
}

.download-panel h3 {
    margin-bottom: 22px;
}

.download-panel .fine {
    margin-top: 22px;
}

.specs {
    display: grid;
    gap: 0;
    margin: 0;
}

.specs div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.specs div:last-child {
    border-bottom: 0;
}

.specs dt {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-top: 3px;
}

.specs dd {
    margin: 0;
    color: var(--text-1);
    font-size: 15.5px;
}

.code {
    margin-top: 22px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: #0d0909;
    color: var(--text-2);
    font-family: var(--font-mono);
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-1);
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent);
    font-weight: 800;
    font-size: 15px;
}

.steps h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.steps p {
    color: var(--text-2);
    font-size: 15px;
}

/* ── Gallery ──────────────────────────────────────────────────────────── */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gallery .frame a {
    padding-top: 26px;
}

.gallery .frame::before {
    top: 9px;
    width: 7px;
    height: 7px;
    box-shadow: 12px 0 #ffffff30, 24px 0 #ffffff30;
}

.gallery .frame {
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.gallery .frame:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 77, 87, 0.5);
}

/* ── Image viewer ─────────────────────────────────────────────────────── */

/* The window covers the whole screen; the picture is as large as fits, the buttons stay in
   the corners, so that the viewer can always be closed. */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-1);
    overflow: hidden;
}

.lightbox::backdrop {
    background: rgba(5, 3, 3, 0.88);
    backdrop-filter: blur(6px);
}

.lightbox[open] {
    display: grid;
    place-items: center;
    animation: lightbox-in 0.2s var(--ease);
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox-figure {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 0;
}

.lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: min(92vw, 1500px);
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.lightbox figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 14px;
    line-height: 1.5;
    max-width: 92vw;
    padding: 0 12px;
    color: var(--text-2);
    font-size: 14px;
    text-align: center;
}

.lightbox-count {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 13px;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    place-self: start;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: rgba(18, 14, 14, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-1);
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s var(--ease);
}

.lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent);
}

.lightbox-previous {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.frame a {
    cursor: zoom-in;
}

/* ── Guides ───────────────────────────────────────────────────────────── */

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
    text-decoration: none;
    transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.guide-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 77, 87, 0.5);
}

.guide-card .meta {
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guide-card h3 {
    font-size: 21px;
    font-weight: 800;
}

.guide-card p {
    color: var(--text-2);
    font-size: 15.5px;
}

.guide-card .more {
    margin-top: auto;
    padding-top: 10px;
    color: var(--accent-soft);
    font-weight: 700;
    font-size: 15px;
}

/* ── Fit ──────────────────────────────────────────────────────────────── */

.fit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.fit h3 {
    margin-bottom: 14px;
    font-size: 20px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
    max-width: 860px;
}

details {
    border-bottom: 1px solid var(--border);
}

summary {
    position: relative;
    padding: 20px 40px 20px 0;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 14px;
    color: var(--accent-soft);
    font-size: 26px;
    font-weight: 500;
    transition: transform 0.2s var(--ease);
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    padding: 0 40px 22px 0;
    color: var(--text-2);
}

/* ── Closing call to action and footer ────────────────────────────────── */

.closing {
    margin: 110px auto 0;
    padding: 70px 24px;
    text-align: center;
    border: 1px solid var(--border-strong);
    border-radius: 26px;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(229, 9, 20, 0.28), transparent 70%),
        var(--surface-1);
}

.closing h2 {
    margin-inline: auto;
    max-width: 18ch;
    font-size: clamp(32px, 4vw, 52px);
}

.closing p {
    margin: 18px auto 30px;
    max-width: 52ch;
    color: var(--text-2);
}

.closing .ctas {
    justify-content: center;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 80px;
    padding: 28px 0 8px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text-1);
}

.legal-line {
    padding: 8px 0 48px;
    color: var(--text-3);
    font-size: 13px;
}

/* ── Guide pages and legal pages ──────────────────────────────────────── */

.article {
    max-width: 780px;
    padding: 80px 0 20px;
}

.article h1 {
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 800;
}

.article .lead {
    margin: 22px 0 40px;
}

.article h2 {
    margin: 52px 0 14px;
    font-size: 26px;
    font-weight: 800;
}

.article h3 {
    margin: 28px 0 8px;
    font-size: 19px;
}

.article p,
.article li {
    color: var(--text-2);
}

.article p + p {
    margin-top: 14px;
}

.article ol,
.article ul {
    padding-left: 22px;
}

.article li {
    margin: 8px 0;
}

.article strong {
    color: var(--text-1);
}

.article .frame {
    margin: 30px 0;
}

.article code,
.kbd {
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--text-1);
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.crumbs {
    margin-bottom: 24px;
    color: var(--text-3);
    font-size: 14px;
}

.crumbs a {
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--text-1);
}

.next {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.text-link {
    color: var(--accent-soft);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* ── Small screens ────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .nav-inner {
        justify-content: space-between;
    }

    .hero,
    .row,
    .row:nth-of-type(even),
    .download-panel,
    .fit,
    .pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        padding-top: 56px;
        gap: 40px;
    }

    .hero .frame {
        transform: none;
    }

    .row:nth-of-type(even) .row-copy {
        order: 0;
    }

    .row {
        gap: 28px;
        padding: 40px 0;
    }

    .cards,
    .steps,
    .gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .benefits {
        grid-template-columns: minmax(0, 1fr);
    }

    .download-panel {
        padding: 26px;
    }
}

@media (max-width: 700px) {
    /* The arrows go below the picture, so that they do not cover it. */
    .lightbox-nav {
        top: auto;
        bottom: 14px;
        margin-top: 0;
    }

    .lightbox-previous {
        left: calc(50% - 64px);
    }

    .lightbox-next {
        right: calc(50% - 64px);
    }

    .lightbox-image {
        max-height: calc(100vh - 190px);
        max-height: calc(100dvh - 190px);
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .specs div {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .section {
        padding-top: 72px;
    }

    .button {
        width: 100%;
    }

    .ctas {
        flex-direction: column;
    }

    .nav-actions .button {
        width: auto;
    }

    .nav-actions .icon-link,
    .nav-actions .language span {
        display: none;
    }

    .nav-actions .language {
        padding: 0 4px;
    }

    .nav-inner {
        gap: 8px;
        padding-left: 14px;
    }

    .brand {
        flex: none;
    }

    .nav-actions {
        margin-left: auto;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* "Is Mumbin right for you?" has only the good fit now: one card. */
.fit.single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

/* ── Tabs and slideshows (made by site.js; without it everything is simply listed) ── */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.tab {
    padding: 10px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-1);
    color: var(--text-2);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tab:hover {
    border-color: rgba(255, 77, 87, 0.5);
    color: var(--text);
}

.tab[aria-selected="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.tab:focus-visible,
.slider-arrow:focus-visible,
.slider-dot:focus-visible,
.slider-thumb:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

.tabbed .row[hidden],
.slider [hidden] {
    display: none;
}

.tabbed .row {
    padding: 32px 0 0;
    border-top: 0;
}

.slider {
    display: block;
}

.slider-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.slider-arrow {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--surface-1);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slider-arrow:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.slider-dots {
    display: flex;
    gap: 4px;
}

.slider-dot {
    position: relative;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.slider-dot::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #ffffff40;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.slider-dot[aria-current="true"]::before {
    background: var(--accent);
    transform: scale(1.3);
}

.slider-count {
    min-width: 44px;
    color: var(--text-3);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.slider-thumbs {
    display: flex;
    flex: 1;
    gap: 10px;
    min-width: 0;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.slider-thumb {
    flex: none;
    width: 112px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-small);
    background: var(--surface-1);
    opacity: 0.6;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slider-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.slider-thumb:hover {
    opacity: 1;
}

.slider-thumb[aria-current="true"] {
    border-color: var(--accent);
    opacity: 1;
}

.gallery.slider {
    max-width: 1000px;
    margin-inline: auto;
}

.slider .frame:hover {
    transform: none;
}

@media (max-width: 960px) {
    .tabs {
        flex-wrap: nowrap;
        margin-inline: -16px;
        padding: 0 16px 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tab {
        flex: none;
    }

    .tabbed .row {
        padding-top: 24px;
    }

    .slider-thumb {
        width: 84px;
    }
}

/* The button that stops the automatic advance. */
.slider-pause {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: none;
    color: var(--text-3);
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.slider-pause:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.slider-pause:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 3px;
}

.tabs .slider-pause {
    margin-left: auto;
}

/* ── Blog ─────────────────────────────────────────────────────────────── */

.more-row {
    margin-top: 28px;
    text-align: center;
}

.article.index h2 {
    margin: 56px 0 24px;
    font-size: 26px;
}

.article.index .cards {
    margin-top: 32px;
}

