/* Tokens from the app (src/Multopia.FetznApp.Client/wwwroot/css/app.css).
   Class names: mt-block, mt-block__element, mt-block--modifier (mt = Multopia).
   Every animation moves only transform and opacity, so it runs on the compositor;
   no blur, no backdrop-filter, no web fonts, no external requests. */
:root {
    color-scheme: dark;
    --mt-bg: #0A0A0F;
    --mt-surface: #13131A;
    --mt-surface-2: #1C1C26;
    --mt-border: rgba(255, 255, 255, 0.07);
    --mt-border-strong: rgba(255, 255, 255, 0.13);
    --mt-text: #F5F5F7;
    --mt-muted: #9A9AA8;
    --mt-violet: #7C5CFF;
    --mt-pink: #FF4D8D;
    --mt-gradient: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 55%, #FF8A3D 100%);
    --mt-gradient-strong: linear-gradient(135deg, #6A45FF 0%, #D6246A 55%, #C2410C 100%);
    --mt-gradient-text: var(--mt-gradient);
    --mt-brand-text: #FF7FAE;
    --mt-violet-text: #B3A5FF;
    --mt-tonal: color-mix(in srgb, var(--mt-violet) 22%, var(--mt-surface-2));
    --mt-tonal-border: color-mix(in srgb, var(--mt-violet) 45%, transparent);
    --mt-live: #34D399;
    --mt-live-text: #4ADE9F;
    --mt-glow: 0 10px 30px -10px rgba(255, 77, 141, 0.55);
    --mt-phone-shadow: 0 50px 100px -40px rgba(124, 92, 255, 0.55), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    --mt-mesh: 0.55;
    /* The logo's colors: the brand colors on dark, deeper ones on light (where the glowing opening also gets a pink lip) */
    --mt-logo-violet: #7C5CFF;
    --mt-logo-pink: #FF4D8D;
    --mt-logo-orange: #FF8A3D;
    --mt-logo-glow: #FFF6EE;
    --mt-logo-glow-edge: #FFB27A;
    --mt-logo-spark: #FFC79A;
    --mt-logo-lip: transparent;
    --mt-logo-band: 0.3;
    --mt-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mt-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --mt-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mt-gutter: clamp(16px, 4vw, 32px);
}

:root[data-theme="light"] {
    color-scheme: light;
    --mt-bg: #F6F6F9;
    --mt-surface: #FFFFFF;
    --mt-surface-2: #EEEEF3;
    --mt-border: rgba(11, 11, 18, 0.08);
    --mt-border-strong: rgba(11, 11, 18, 0.14);
    --mt-text: #0B0B12;
    --mt-muted: #5C5C6B;
    --mt-gradient-text: var(--mt-gradient-strong);
    --mt-brand-text: #D6246A;
    --mt-violet-text: #5A3BE6;
    --mt-tonal: color-mix(in srgb, var(--mt-violet) 12%, var(--mt-surface));
    --mt-tonal-border: color-mix(in srgb, var(--mt-violet) 32%, transparent);
    --mt-live: #10B981;
    --mt-live-text: #047857;
    --mt-phone-shadow: 0 50px 100px -40px rgba(124, 92, 255, 0.4), 0 30px 60px -24px rgba(16, 16, 24, 0.25);
    --mt-mesh: 0.3;
    --mt-logo-violet: #6A47F5;
    --mt-logo-pink: #E62D73;
    --mt-logo-orange: #E0600F;
    --mt-logo-glow: #FFEBDC;
    --mt-logo-glow-edge: #FF9A52;
    --mt-logo-spark: #F2A46E;
    --mt-logo-lip: #E62D73;
    --mt-logo-band: 0.32;
}

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

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

body {
    margin: 0;
    min-height: 100svh;
    background: var(--mt-bg);
    color: var(--mt-text);
    font: 400 1rem/1.6 var(--mt-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--mt-violet-text); outline-offset: 3px; border-radius: 8px; }

@keyframes mt-fade-up { from { opacity: 0; transform: translateY(16px); } }

.mt-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--mt-gutter); }

.mt-grad {
    background: var(--mt-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* The word fetzn in running text: underlined in brand pink, as if drawn with a pencil */
.mt-fetzn { position: relative; white-space: nowrap; }

.mt-fetzn::after {
    content: "";
    position: absolute;
    left: -0.08em;
    right: -0.1em;
    bottom: -0.2em;
    height: 0.5em;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23FF4D8D' stroke-linecap='round' vector-effect='non-scaling-stroke'%3E%3Cpath d='M2 6.8C18 4.6 38 7.6 58 5.6S88 4.4 98 6.2' stroke-width='2.2' stroke-opacity='.9' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M6 9.4C26 7.6 52 9.8 74 8.2S92 7.6 96 8.6' stroke-width='1.3' stroke-opacity='.55' vector-effect='non-scaling-stroke'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / 100% 100%;
    transform-origin: left center;
    animation: mt-scribble 700ms var(--mt-ease) 900ms both;
}

@keyframes mt-scribble { from { transform: scaleX(0); } }

/* ---- Background: two soft gradient blobs, drawn once, then only moved ---------------------- */
.mt-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.mt-mesh::before, .mt-mesh::after {
    content: "";
    position: absolute;
    width: 90vmax;
    height: 90vmax;
    border-radius: 50%;
    opacity: var(--mt-mesh);
    will-change: transform;
}

.mt-mesh::before {
    top: -45vmax;
    right: -35vmax;
    background: radial-gradient(closest-side, rgba(124, 92, 255, 0.55), transparent);
    animation: mt-drift 22s ease-in-out infinite alternate;
}

.mt-mesh::after {
    bottom: -55vmax;
    left: -40vmax;
    background: radial-gradient(closest-side, rgba(255, 77, 141, 0.42), rgba(255, 138, 61, 0.12) 55%, transparent);
    animation: mt-drift 26s ease-in-out infinite alternate-reverse;
}

@keyframes mt-drift { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.08); } }

/* ---- Header ---------------------------------------------------------------------------------- */
.mt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.mt-header__actions { display: flex; align-items: center; gap: 8px; }

/* The lockup as in the app (docs/brand/lockup-inverse.svg): the wordmark --mt-logo-h tall, the mark ("Doodle-Knall": a
   party popper whose stroke draws the Watzmann ridge) 1.515 times that and 0.256 of the wordmark apart, standing on
   the baseline with its ridge above the letters */
.mt-logo { --mt-logo-h: 22px; display: inline-flex; align-items: flex-end; gap: calc(var(--mt-logo-h) * 0.256); color: var(--mt-text); text-decoration: none; }
.mt-logo__mark { width: calc(var(--mt-logo-h) * 1.515 * 67.2 / 49.64); height: calc(var(--mt-logo-h) * 1.515); margin-bottom: calc(var(--mt-logo-h) * -0.04); overflow: visible; }
.mt-logo__word { width: calc(var(--mt-logo-h) * 107.64 / 38.4); height: var(--mt-logo-h); }

/* On load the popper rises from its tip, its stroke draws the ridge, then the bang stroke and the square pop; on hover
   the popper kicks and the confetti flies out a little and back (inner groups, so the load animation stays done) */
.mt-logo__popper, .mt-logo__kick { transform-box: fill-box; transform-origin: 5% 96%; }
.mt-logo__confetti, .mt-logo__confetti > path { transform-box: fill-box; transform-origin: center; }
.mt-logo__popper { animation: mt-popper 600ms var(--mt-spring) 200ms both; }
.mt-logo__stroke { stroke-dasharray: 1 2; animation: mt-draw 640ms var(--mt-ease) 420ms both; }
.mt-logo__confetti > path { animation: mt-pop-in 380ms var(--mt-spring) calc(900ms + var(--mt-i) * 70ms) both; }
.mt-logo:hover .mt-logo__kick { animation: mt-kick 560ms var(--mt-ease); }
.mt-logo:hover .mt-logo__confetti { animation: mt-bang 560ms var(--mt-ease); }

@keyframes mt-popper {
    from { opacity: 0; transform: scale(0.4) rotate(-18deg); }
    to { opacity: 1; transform: none; }
}

/* The stroke has a path length of 1 and the dash array "1 2": at 1.05 all gap, at 0 all line */
@keyframes mt-draw {
    from { stroke-dashoffset: 1.05; }
    to { stroke-dashoffset: 0; }
}

@keyframes mt-pop-in {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}

@keyframes mt-kick {
    30% { transform: rotate(-10deg) scale(1.06); }
}

@keyframes mt-bang {
    35% { transform: scale(1.22); }
}

.mt-icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--mt-border);
    background: var(--mt-surface);
    color: var(--mt-text);
    cursor: pointer;
}

.mt-icon-btn svg { width: 18px; height: 18px; transition: transform 500ms var(--mt-ease); }
.mt-icon-btn:active svg { transform: rotate(40deg) scale(0.9); }
.mt-icon-btn__sun { display: none; }
[data-theme="light"] .mt-icon-btn__sun { display: block; }
[data-theme="light"] .mt-icon-btn__moon { display: none; }

.mt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--mt-gradient-strong);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--mt-glow);
    transition: transform 260ms var(--mt-ease);
}

.mt-btn svg { width: 18px; height: 18px; transition: transform 260ms var(--mt-ease); }
.mt-btn:hover { transform: translateY(-2px); }
.mt-btn:hover svg { transform: translateX(3px); }
.mt-btn:active { transform: scale(0.97); }
.mt-btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

/* ---- Hero ------------------------------------------------------------------------------------- */
.mt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    min-height: calc(100svh - 76px);
    padding: 24px 0 72px;
}

.mt-hero__title {
    font-size: clamp(2.8rem, 1.4rem + 5.6vw, 5.4rem);
    font-weight: 850;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

/* Lines rise in one after another */
.mt-hero__line { display: block; overflow: clip; padding-bottom: 0.08em; }
.mt-hero__line > span { display: inline-block; animation: mt-rise 1s var(--mt-ease) both; }
.mt-hero__line:nth-child(2) > span { animation-delay: 90ms; }
.mt-hero__line:nth-child(3) > span { animation-delay: 180ms; }

@keyframes mt-rise { from { transform: translateY(105%); } }

.mt-hero__lead {
    max-width: 440px;
    margin-top: 24px;
    color: var(--mt-muted);
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    animation: mt-fade-up 900ms var(--mt-ease) 350ms both;
}

.mt-hero__cta { margin-top: 36px; animation: mt-fade-up 900ms var(--mt-ease) 480ms both; }

.mt-hero__meta {
    margin-top: 22px;
    color: var(--mt-muted);
    font-size: 0.85rem;
    animation: mt-fade-up 900ms var(--mt-ease) 600ms both;
}

/* ---- Phone: a still of the app's feed, with one "Bin dabei" tap playing --------------------- */
.mt-stage { display: flex; justify-content: center; perspective: 1400px; }

.mt-phone {
    width: 300px;
    max-width: 82vw;
    aspect-ratio: 300 / 610;
    padding: 9px;
    border-radius: 46px;
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--mt-phone-shadow);
    animation: mt-phone-in 1.2s var(--mt-ease) 150ms both, mt-float 7s ease-in-out 1.4s infinite;
}

@keyframes mt-phone-in { from { opacity: 0; transform: translateY(60px) rotateX(18deg) rotateZ(-4deg); } }
@keyframes mt-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-14px) rotate(-0.5deg); }
}

.mt-phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 37px;
    background: var(--mt-bg);
    font-size: 12.5px;
    line-height: 1.35;
}

.mt-phone__notch { position: absolute; top: 9px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #050508; }

.mt-feed { padding: 46px 13px 0; }
.mt-feed__bar { --mt-logo-h: 16px; display: flex; align-items: flex-end; gap: calc(var(--mt-logo-h) * 0.256); margin-bottom: 14px; }
.mt-feed__title { font-size: 19px; font-weight: 850; letter-spacing: -0.02em; }
.mt-feed__sub { margin: 1px 0 12px; color: var(--mt-muted); font-size: 11.5px; font-weight: 600; }

.mt-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 10px;
    margin-bottom: 8px;
    padding: 9px;
    border-radius: 17px;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
    animation: mt-fade-up 800ms var(--mt-ease) both;
}

.mt-card:nth-of-type(1) { animation-delay: 700ms; }
.mt-card:nth-of-type(2) { animation-delay: 800ms; }
.mt-card:nth-of-type(3) { animation-delay: 900ms; }
.mt-card--live { border-color: color-mix(in srgb, var(--mt-live) 40%, var(--mt-border)); }
.mt-card--highlight { border-color: color-mix(in srgb, var(--mt-pink) 36%, var(--mt-border)); }

.mt-card__cover { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--mt-c1), var(--mt-c2)); }
.mt-card__cover svg { width: 22px; height: 22px; }
.mt-card__when { font-weight: 800; }
.mt-card__title { font-weight: 750; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-card__place { color: var(--mt-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-card__highlight { color: var(--mt-brand-text); font-size: 10px; font-weight: 750; }
.mt-card__live { display: inline-flex; align-items: center; gap: 5px; color: var(--mt-live-text); }
.mt-card__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mt-live); animation: mt-pulse 1.6s ease-in-out infinite; }
.mt-card__row { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }

@keyframes mt-pulse { 50% { transform: scale(0.55); opacity: 0.5; } }

.mt-join {
    position: relative;
    display: inline-grid;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--mt-border-strong);
    font-size: 10.5px;
    font-weight: 700;
}

.mt-join__label { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; }
.mt-join svg, .mt-count svg { width: 11px; height: 11px; }
.mt-join--on { background: var(--mt-tonal); border-color: var(--mt-tonal-border); color: var(--mt-violet-text); }

/* The tap: "Bin dabei" turns into "Dabei", the counter goes up by one, every 6 seconds */
.mt-join--tap { animation: mt-tap 6s var(--mt-ease) 2s infinite; }
.mt-join--tap .mt-join__label--off { animation: mt-tap-off 6s var(--mt-ease) 2s infinite; }
.mt-join--tap .mt-join__label--on { opacity: 0; color: var(--mt-violet-text); animation: mt-tap-on 6s var(--mt-ease) 2s infinite; }
.mt-join--tap::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--mt-tonal);
    border: 1px solid var(--mt-tonal-border);
    opacity: 0;
    z-index: -1;
    animation: mt-tap-on 6s var(--mt-ease) 2s infinite;
}

@keyframes mt-tap { 0%, 8% { transform: none; } 11% { transform: scale(0.9); } 16%, 100% { transform: none; } }
@keyframes mt-tap-off { 0%, 11% { opacity: 1; } 14%, 85% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes mt-tap-on { 0%, 11% { opacity: 0; } 14%, 85% { opacity: 1; } 90%, 100% { opacity: 0; } }

.mt-count { display: inline-grid; margin-left: auto; color: var(--mt-muted); font-size: 10.5px; font-weight: 650; }
.mt-count__value { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.mt-count__value--next { opacity: 0; }
.mt-join--tap ~ .mt-count .mt-count__value--prev { animation: mt-tap-off 6s var(--mt-ease) 2s infinite; }
.mt-join--tap ~ .mt-count .mt-count__value--next { animation: mt-count-up 6s var(--mt-ease) 2s infinite; }

@keyframes mt-count-up { 0%, 12% { opacity: 0; transform: translateY(6px); } 16%, 85% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

.mt-heart { color: var(--mt-muted); }
.mt-heart svg { width: 12px; height: 12px; }
.mt-heart--on { color: var(--mt-pink); }

.mt-fab {
    position: absolute;
    right: 13px;
    bottom: 72px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 13px;
    border-radius: 999px;
    background: var(--mt-gradient-strong);
    color: #fff;
    font-size: 11.5px;
    font-weight: 750;
    box-shadow: var(--mt-glow);
    animation: mt-fade-up 800ms var(--mt-ease) 1.1s both;
}

.mt-fab svg { width: 13px; height: 13px; }

.mt-tabbar {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 4px 14px;
    border-top: 1px solid var(--mt-border);
    background: var(--mt-surface);
    color: var(--mt-muted);
    font-size: 9px;
    font-weight: 650;
}

.mt-tabbar__tab { display: grid; justify-items: center; gap: 3px; }
.mt-tabbar__tab svg { width: 19px; height: 19px; }
.mt-tabbar__tab--active { color: var(--mt-brand-text); }

/* ---- Three facts ----------------------------------------------------------------------------- */
.mt-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 120px;
    padding: 0;
    list-style: none;
    border-radius: 28px;
    overflow: hidden;
    background: var(--mt-border);
    border: 1px solid var(--mt-border);
}

.mt-facts__item { padding: 32px 28px; background: var(--mt-surface); }
.mt-facts__icon { width: 26px; height: 26px; margin-bottom: 18px; }
.mt-facts__title { font-size: 1.15rem; letter-spacing: -0.01em; }
.mt-facts__text { margin-top: 6px; color: var(--mt-muted); font-size: 0.95rem; }

/* ---- Sections: features and trust ------------------------------------------------------------ */
.mt-section { margin-bottom: 120px; }
.mt-section__eyebrow { color: var(--mt-brand-text); font-size: 0.8rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.mt-section__title { margin-top: 10px; max-width: 640px; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; }
.mt-section__lead { margin-top: 16px; max-width: 560px; color: var(--mt-muted); font-size: 1.05rem; }

.mt-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.mt-features__item { padding: 26px 24px; border-radius: 22px; background: var(--mt-surface); border: 1px solid var(--mt-border); }
.mt-features__icon { width: 24px; height: 24px; margin-bottom: 16px; }
.mt-features__title { font-size: 1.05rem; letter-spacing: -0.01em; }
.mt-features__text { margin-top: 6px; color: var(--mt-muted); font-size: 0.93rem; }

.mt-trust {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 32px;
    background: var(--mt-surface);
    border: 1px solid var(--mt-border);
}

.mt-trust__seals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.mt-trust__seal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--mt-tonal);
    border: 1px solid var(--mt-tonal-border);
    color: var(--mt-violet-text);
    font-size: 0.85rem;
    font-weight: 700;
}

.mt-trust__seal svg { width: 15px; height: 15px; }
.mt-trust__list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.mt-trust__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.mt-trust__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--mt-surface-2); border: 1px solid var(--mt-border); }
.mt-trust__icon svg { width: 22px; height: 22px; }
.mt-trust__title { font-size: 1.05rem; letter-spacing: -0.01em; }
.mt-trust__text { color: var(--mt-muted); font-size: 0.93rem; }

/* ---- CTA ------------------------------------------------------------------------------------- */
.mt-cta {
    position: relative;
    overflow: hidden;
    margin-bottom: 56px;
    padding: clamp(56px, 8vw, 96px) 24px;
    border-radius: 32px;
    background: var(--mt-gradient-strong);
    color: #fff;
    text-align: center;
}

.mt-cta__title { position: relative; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.mt-cta .mt-btn { position: relative; margin-top: 30px; background: #fff; color: #0B0B12; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.55); }

/* The full mark, one-color, as a large watermark */
.mt-cta__mark {
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 330px;
    height: 277px;
    opacity: 0.13;
    animation: mt-sway 9s ease-in-out infinite alternate;
}

@keyframes mt-sway { from { transform: rotate(-14deg); } to { transform: rotate(-6deg) translateY(-14px); } }

/* Scroll reveal without JavaScript, where the browser supports scroll-driven animations */
@supports (animation-timeline: view()) {
    .mt-reveal {
        animation: mt-fade-up linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 70%;
    }
}

/* ---- Footer ---------------------------------------------------------------------------------- */
.mt-footer {
    padding: 0 0 28px;
    color: var(--mt-muted);
    font-size: 0.8rem;
    text-align: center;
}

.mt-footer__links { display: flex; justify-content: center; gap: 4px 16px; flex-wrap: wrap; margin-top: 2px; }
.mt-footer__link { padding: 4px 2px; color: var(--mt-muted); text-decoration: none; }
.mt-footer__link:hover { color: var(--mt-text); text-decoration: underline; text-underline-offset: 3px; }

/* The site's pages once more above the copyright, so every page is two clicks from every other */
.mt-footer__nav { display: flex; justify-content: center; gap: 4px 20px; flex-wrap: wrap; margin-bottom: 14px; padding-top: 28px; border-top: 1px solid var(--mt-border); font-size: 0.9rem; }

/* ---- Header navigation (the footer carries the same links on small screens) ------------------- */
.mt-nav { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
.mt-nav__link { padding: 8px 12px; border-radius: 999px; color: var(--mt-muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; transition: color 200ms var(--mt-ease); }
.mt-nav__link:hover { color: var(--mt-text); }
.mt-nav__link[aria-current="page"] { color: var(--mt-text); background: var(--mt-surface); }

/* ---- How it works: three numbered steps -------------------------------------------------------- */
.mt-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: mt-step;
}

.mt-steps__item { position: relative; padding: 28px 24px 26px; border-radius: 22px; background: var(--mt-surface); border: 1px solid var(--mt-border); counter-increment: mt-step; }
.mt-steps__item::before {
    content: counter(mt-step);
    display: block;
    margin-bottom: 14px;
    font-size: 2.6rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
    background: var(--mt-gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.mt-steps__title { font-size: 1.05rem; letter-spacing: -0.01em; }
.mt-steps__text { margin-top: 6px; color: var(--mt-muted); font-size: 0.93rem; }

/* ---- Regions: one card per region with its towns ------------------------------------------------ */
.mt-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.mt-regions__item { padding: 28px 24px; border-radius: 22px; background: var(--mt-surface); border: 1px solid var(--mt-border); }
.mt-regions__title { font-size: 1.15rem; letter-spacing: -0.01em; }
.mt-regions__text { margin-top: 8px; color: var(--mt-muted); font-size: 0.93rem; }
.mt-regions__towns { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.mt-regions__town { padding: 3px 10px; border-radius: 999px; background: var(--mt-surface-2); border: 1px solid var(--mt-border); font-size: 0.8rem; font-weight: 650; }

/* ---- Categories: the app's chips in their colors ------------------------------------------------ */
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.mt-chips__item { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--mt-surface); border: 1px solid var(--mt-border); font-size: 0.9rem; font-weight: 650; }
.mt-chips__item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mt-c); }

/* ---- FAQ: native details, the plus turns into a cross ------------------------------------------ */
.mt-faq { display: grid; gap: 10px; max-width: 820px; margin-top: 40px; }
.mt-faq__item { border-radius: 18px; background: var(--mt-surface); border: 1px solid var(--mt-border); }
.mt-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.mt-faq__question::-webkit-details-marker { display: none; }
.mt-faq__question::after { content: "+"; flex: none; color: var(--mt-brand-text); font-size: 1.5rem; font-weight: 500; line-height: 1; transition: transform 300ms var(--mt-ease); }
.mt-faq__item[open] .mt-faq__question::after { transform: rotate(45deg); }
.mt-faq__answer { padding: 0 22px 20px; color: var(--mt-muted); }
.mt-faq__answer p + p { margin-top: 10px; }
.mt-faq__answer a { color: var(--mt-brand-text); }

/* The FAQ page: the questions in groups, each under its own heading */
.mt-faq-groups { display: grid; gap: 56px; margin-bottom: 96px; }
.mt-faq-group__title { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -0.025em; }
.mt-faq-group .mt-faq { margin-top: 20px; }
.mt-page-head__lead a { color: var(--mt-brand-text); text-underline-offset: 3px; }

/* ---- Subpages: a head with breadcrumb, then running text ---------------------------------------- */
.mt-page-head { padding: clamp(32px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.mt-page-head__title { margin-top: 12px; max-width: 820px; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.8rem); line-height: 1.02; letter-spacing: -0.04em; animation: mt-fade-up 900ms var(--mt-ease) both; }
.mt-page-head__lead { margin-top: 20px; max-width: 640px; color: var(--mt-muted); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); animation: mt-fade-up 900ms var(--mt-ease) 120ms both; }

.mt-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--mt-muted); font-size: 0.85rem; }
.mt-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.mt-crumbs a { text-decoration: none; }
.mt-crumbs a:hover { color: var(--mt-text); text-decoration: underline; text-underline-offset: 3px; }

.mt-prose { max-width: 720px; margin-bottom: 96px; font-size: 1.05rem; line-height: 1.7; }
.mt-prose h2 { margin-top: 56px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.15; letter-spacing: -0.025em; }
.mt-prose h3 { margin-top: 36px; font-size: 1.2rem; letter-spacing: -0.01em; }
.mt-prose p, .mt-prose ul, .mt-prose ol { margin: 16px 0 0; }
.mt-prose ul, .mt-prose ol { padding-left: 1.3em; }
.mt-prose li + li { margin-top: 8px; }
.mt-prose li::marker { color: var(--mt-brand-text); }
.mt-prose a:not(.mt-btn, .mt-nav__link) { color: var(--mt-brand-text); text-underline-offset: 3px; }
.mt-prose > :first-child { margin-top: 0; }
.mt-prose__note { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--mt-tonal); border: 1px solid var(--mt-tonal-border); font-size: 0.97rem; }
.mt-prose__note strong { color: var(--mt-violet-text); }

/* Legal pages: long German words in headings may wrap, the overview of a long text, its source and date at the end */
.mt-prose h2, .mt-prose h3 { overflow-wrap: break-word; }
.mt-prose__toc { padding: 18px 22px; border: 1px solid var(--mt-border-strong); border-radius: 18px; font-size: 0.97rem; }
.mt-prose__toc ol { margin-top: 8px; }
.mt-prose__toc li + li { margin-top: 4px; }
.mt-prose__meta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--mt-border); color: var(--mt-muted); font-size: 0.85rem; }

/* Page and article end: the next step, with the related pages beside it */
.mt-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--mt-border); }
.mt-next__label { color: var(--mt-muted); font-size: 0.9rem; }

/* ---- Small screens --------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .mt-nav { display: none; }
}

@media (max-width: 880px) {
    .mt-hero { grid-template-columns: 1fr; min-height: 0; gap: 64px; padding: 32px 0 88px; text-align: center; }
    .mt-hero__lead { margin-inline: auto; }
    .mt-facts { grid-template-columns: 1fr; margin-bottom: 72px; }
    .mt-section { margin-bottom: 72px; }
    .mt-features, .mt-steps, .mt-regions { grid-template-columns: 1fr; }
    .mt-trust { grid-template-columns: 1fr; gap: 36px; }
    .mt-prose { margin-bottom: 72px; }
}

@media (min-width: 881px) and (max-width: 1040px) {
    .mt-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
    .mt-btn--sm { padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .mt-join--tap .mt-join__label--on, .mt-join--tap::before, .mt-count__value--next { opacity: 0; }
}
