/* Public marketing landing — scoped; does not alter app chrome */
:root {
    --m-brand: #dc141c;
    --m-brand-dark: #a80f16;
    --m-primary: #1f4f6e;
    --m-accent: #26b1ba;
    --m-bg: #0d1218;
    --m-surface: #151c26;
    --m-text: #e8eef4;
    --m-muted: #9aa8b8;
    --m-border: rgba(255, 255, 255, 0.08);
    --m-hero-grad-a: #0d1218;
    --m-hero-grad-b: #1a1014;
    --m-nav-bg: rgba(13, 18, 24, 0.92);
    --m-card-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --m-brand: #dc141c;
    --m-brand-dark: #b01018;
    --m-primary: #1a5f85;
    --m-accent: #0d8f9c;
    --m-bg: #f4f6f8;
    --m-surface: #ffffff;
    --m-text: #14232f;
    --m-muted: #4a5d6e;
    --m-border: rgba(15, 35, 55, 0.12);
    --m-hero-grad-a: #f8f0f1;
    --m-hero-grad-b: #e8eef4;
    --m-nav-bg: rgba(255, 255, 255, 0.94);
    --m-card-bg: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] body.marketing-page {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth
}

body.marketing-page {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--m-bg);
    color: var(--m-text);
    line-height: 1.55;
    min-height: 100vh
}

html[lang="ur"] body.marketing-page {
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Geeza Pro", system-ui, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--m-accent)
}

a:hover {
    text-decoration: underline
}

.m-container {
    width: 100%;
    /* max-width: 1120px; */
    margin: 0 auto;
    padding: 0 20px
}

.m-container-wide {
    max-width: 1320px
}

/* POS screenshots: use nearly full viewport width with balanced side gutters */
.m-screenshots-section .m-screenshots-inner {
    max-width: none;
    width: 100%;
    padding-left: clamp(16px, 5vw, 80px);
    padding-right: clamp(16px, 5vw, 80px);
    box-sizing: border-box;
    overflow: visible;
}

.m-screenshots-section .m-section-intro {
    max-width: min(52rem, 100%);
}

.m-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--m-nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--m-border)
}

.m-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px
}

.m-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--m-text);
    font-weight: 600;
    font-size: 1.1rem
}

.m-brand:hover {
    text-decoration: none;
    color: #fff
}

[data-theme="light"] .m-brand:hover {
    color: var(--m-primary)
}

.m-brand img {
    height: 48px;
    width: 48px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.m-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start
}

.m-nav-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.m-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.m-select {
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--m-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--m-text);
    cursor: pointer;
    max-width: 160px;
}

[data-theme="light"] .m-select {
    background: #fff;
}

.m-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--m-text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.m-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--m-accent);
}

[data-theme="light"] .m-theme-toggle {
    background: #fff;
}

.m-theme-toggle:focus-visible {
    outline: 2px solid var(--m-accent);
    outline-offset: 2px;
}

.m-theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .m-theme-icon--sun {
    display: none;
}

[data-theme="light"] .m-theme-icon--moon {
    display: none;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .2s, color .2s
}

.m-btn:hover {
    text-decoration: none
}

.m-btn-ghost {
    background: transparent;
    color: var(--m-muted);
    border: 1px solid var(--m-border)
}

.m-btn-ghost:hover {
    color: var(--m-text);
    border-color: var(--m-accent)
}

.m-btn-primary {
    background: linear-gradient(135deg, var(--m-brand) 0%, var(--m-brand-dark) 100%);
    color: #fff
}

.m-btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px rgba(220, 20, 28, 0.35);
}

.m-btn-secondary {
    background: linear-gradient(135deg, var(--m-accent) 0%, var(--m-brand-dark) 100%);
    color: #fff;
}

.m-btn-secondary:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 16px rgba(38, 177, 186, 0.35);
}

.m-btn-whatsapp::before {
    content: "";
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-inline-end: 0.45em;
    vertical-align: -0.15em;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.m-trial-banner {
    padding: 48px 0 32px;
    background: linear-gradient(160deg, var(--m-hero-grad-b) 0%, var(--m-surface) 45%, var(--m-bg) 100%);
    border-bottom: 1px solid var(--m-border);
}

.m-trial-banner-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 400px);
    gap: 32px;
    align-items: start;
}

.m-trial-badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: rgba(220, 20, 28, 0.15);
    color: var(--m-brand);
    border: 1px solid rgba(220, 20, 28, 0.35);
}

.m-trial-banner h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.25;
    color: var(--m-text);
}

.m-trial-lead {
    margin: 0 0 16px;
    color: var(--m-muted);
    font-size: 1.02rem;
    max-width: 52ch;
}

.m-trial-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.m-trial-perks li {
    position: relative;
    padding-inline-start: 1.35em;
    color: var(--m-text);
    font-size: .95rem;
}

.m-trial-perks li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--m-accent);
    font-weight: 700;
}

.m-trial-wa-cta {
    margin-top: 4px;
}

.m-trial-form {
    background: var(--m-card-bg);
    border: 1px solid var(--m-border);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.m-trial-form h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.m-trial-form-note {
    margin: 0 0 16px;
    font-size: .88rem;
    color: var(--m-muted);
}

.m-field {
    display: block;
    margin-bottom: 14px;
}

.m-field span {
    display: block;
    margin-bottom: 4px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--m-text);
}

.m-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--m-border);
    background: var(--m-surface);
    color: var(--m-text);
    font: inherit;
}

.m-field input:focus {
    outline: 2px solid var(--m-accent);
    outline-offset: 1px;
}

.m-trial-submit {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .m-trial-banner-inner {
        grid-template-columns: 1fr;
    }
}

.m-hero {
    padding: 56px 0 72px;
    background: linear-gradient(165deg, var(--m-hero-grad-a) 0%, var(--m-hero-grad-b) 45%, var(--m-hero-grad-a) 100%);
    border-bottom: 1px solid var(--m-border)
}

.m-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}

.m-hero h1 strong {
    color: var(--m-brand);
}

.m-hero-lead {
    font-size: 1.1rem;
    color: var(--m-muted);
    max-width: 640px;
    margin: 0 0 28px
}

.m-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center
}

.m-hero-note {
    margin-top: 20px;
    font-size: .9rem;
    color: var(--m-muted)
}

.m-section {
    padding: 56px 0
}

.m-section-alt {
    background: var(--m-surface);
    border-top: 1px solid var(--m-border);
    border-bottom: 1px solid var(--m-border)
}

.m-section h2 {
    font-size: 1.5rem;
    margin: 0 0 12px
}

.m-section-intro {
    color: var(--m-muted);
    max-width: 720px;
    margin: 0 0 32px
}

.m-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px
}

.m-card {
    background: var(--m-card-bg);
    border: 1px solid var(--m-border);
    border-radius: 12px;
    padding: 22px
}

.m-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--m-brand)
}

.m-card p {
    margin: 0;
    font-size: .95rem;
    color: var(--m-muted)
}

.m-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: step
}

.m-step {
    position: relative;
    padding-left: 48px
}

.m-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--m-brand) 0%, var(--m-brand-dark) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem
}

.m-step h3 {
    margin: 0 0 8px;
    font-size: 1.05rem
}

.m-step p {
    margin: 0;
    color: var(--m-muted);
    font-size: .95rem
}

.m-trust-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.m-trust-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--m-border);
    color: var(--m-muted)
}

.m-trust-list li:last-child {
    border-bottom: none
}

.m-trust-list strong {
    color: var(--m-text)
}

.m-cta-strip {
    text-align: center;
    padding: 48px 20px;
    background: linear-gradient(135deg, var(--m-brand) 0%, var(--m-brand-dark) 55%, var(--m-primary) 100%);
    border-radius: 12px;
    margin: 0 0 8px
}

.m-cta-strip h2 {
    margin: 0 0 12px;
    font-size: 1.4rem
}

.m-cta-strip p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .85)
}

.m-footer {
    padding: 40px 0 28px;
    border-top: 1px solid var(--m-border);
    font-size: .9rem;
    color: var(--m-muted)
}

.m-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start
}

.m-footer a {
    color: var(--m-accent)
}

.m-footer-brand {
    color: var(--m-text);
    font-size: 1rem;
}

.m-footer-tagline {
    margin: 8px 0 0;
    color: var(--m-muted);
}

.m-cta-strip-actions {
    justify-content: center;
}

.m-cta-email {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

[data-theme="light"] .m-cta-email {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

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

@media (max-width:600px) {
    .m-nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0
    }

    .m-nav-actions {
        width: 100%
    }

    .m-btn {
        flex: 1;
        min-width: 120px
    }
}

/* Anchor nav + section offset for sticky header */
.m-nav-cols {
    width: 100%;
}

.m-nav-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px 16px;
    min-height: 72px;
    padding: 10px 0;
}

.m-brand {
    order: 1;
    flex-shrink: 0;
    min-width: 0;
}

.m-brand span {
    white-space: nowrap;
}

.m-nav-panel {
    order: 2;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    min-width: 0;
}

.m-nav-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 14px;
    justify-content: center;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.m-nav-links::-webkit-scrollbar {
    display: none;
}

.m-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.m-nav-actions .m-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.m-nav-links a {
    color: var(--m-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.m-nav-links a:hover {
    color: var(--m-accent);
    text-decoration: none;
}

.m-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--m-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--m-text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.m-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--m-accent);
}

.m-nav-toggle:focus-visible {
    outline: 2px solid var(--m-accent);
    outline-offset: 2px;
}

.m-nav-toggle-bars {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: background 0.2s;
}

.m-nav-toggle-bars::before,
.m-nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, top 0.25s ease;
}

.m-nav-toggle-bars::before {
    top: -7px;
}

.m-nav-toggle-bars::after {
    top: 7px;
}

.m-nav-open .m-nav-toggle-bars {
    background: transparent;
}

.m-nav-open .m-nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.m-nav-open .m-nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.m-anchor {
    scroll-margin-top: 96px;
}

#overview {
    scroll-margin-top: 96px;
}

.m-code {
    font-family: ui-monospace, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: #c5d4e0;
}

.m-section-footnote {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--m-muted);
}

.m-shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.m-shot {
    margin: 0;
}

.m-shot-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--m-border);
    background: #0a1018;
    line-height: 0;
}

[data-theme="light"] .m-shot-frame {
    background: #e2e8f0;
}

/* eBay-style: lens + flyout magnifier (see marketing.js) */
.m-shot-zoom-wrap {
    position: relative;
    width: 100%;
    overflow: visible;
}

.m-shot-zoom-viewport {
    position: relative;
    display: block;
    overflow: hidden;
}

.m-shot-zoom-img {
    width: 100%;
    height: auto;
    display: block;
}

.m-shot-zoom-lens {
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.35),
        0 4px 16px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.m-shot-zoom-flyout {
    position: absolute;
    z-index: 30;
    top: 0;
    left: 100%;
    margin-left: 16px;
    width: min(420px, 36vw);
    height: min(280px, 55vh);
    border-radius: 12px;
    border: 1px solid var(--m-border);
    background-color: #0a1018;
    background-repeat: no-repeat;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.m-shot-zoom-flyout--left {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 16px;
}

.m-shot-zoom-active .m-shot-zoom-lens {
    opacity: 1;
}

.m-shot-zoom-active .m-shot-zoom-flyout {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    .m-shot-zoom-viewport {
        cursor: crosshair;
    }

    .m-shot-featured .m-shot-zoom-wrap.m-shot-zoom-active .m-shot-frame {
        box-shadow: 0 50px 56px rgba(0, 0, 0, 0.45);
    }
}

@media (max-width: 900px) {

    .m-shot-zoom-lens,
    .m-shot-zoom-flyout {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    .m-shot-zoom-lens,
    .m-shot-zoom-flyout {
        display: none !important;
    }
}

.m-shot figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--m-muted);
    text-align: center;
    line-height: 1.4;
}

.m-shot-grid-large {
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 52px);
    max-width: 85%;
    width: 100%;
}

.m-shot-featured .m-shot-frame {
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

.m-shot-featured figcaption {
    font-size: 1rem;
    margin-top: 14px;
}

@media (max-width: 1100px) {
    .m-brand {
        font-size: 0.95rem;
    }

    .m-brand img {
        height: 40px;
        width: 40px;
    }

    .m-nav-links a {
        font-size: 0.85rem;
    }

    .m-nav-links {
        gap: 8px 10px;
    }

    .m-nav-actions .m-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }

    .m-select {
        max-width: 120px;
        font-size: 0.82rem;
        padding: 6px 8px;
    }

    .m-theme-toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 900px) {
    .m-nav-top {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: auto;
        padding: 10px 0;
        gap: 8px 12px;
    }

    .m-nav-panel {
        display: flex;
        flex-direction: column;
        flex: none;
        flex-basis: 100%;
        width: 100%;
        order: 3;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .m-nav.m-nav-open .m-nav-panel {
        max-height: min(75vh, 560px);
        overflow-y: auto;
        border-top: 1px solid var(--m-border);
        margin-top: 4px;
        padding-top: 4px;
    }

    .m-brand {
        order: 1;
        flex: 1;
        min-width: 0;
        margin-left: 0;
        align-self: center;
    }

    .m-nav-toggle {
        display: inline-flex;
        order: 2;
        flex-shrink: 0;
    }

    .m-nav-links {
        order: unset;
        flex: none;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 0;
        padding: 8px 0 4px;
    }

    .m-nav-links a {
        padding: 12px 8px;
        white-space: normal;
        border-radius: 6px;
    }

    .m-nav-links a:active {
        background: rgba(255, 255, 255, 0.06);
    }

    .m-nav-actions {
        order: unset;
        flex: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 0 12px;
    }

    .m-nav-actions .m-btn {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .m-nav-actions .m-btn {
        width: 100%;
        justify-content: center;
    }

    .m-nav-tools {
        width: 100%;
        justify-content: flex-start;
    }

    .m-nav-tools .m-select {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
}

/* Screenshot carousel */
.m-carousel {
    margin-top: 8px;
}

.m-carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.m-carousel-counter {
    margin: 0;
    min-width: 4.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--m-muted);
}

.m-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--m-border);
    background: var(--m-card-bg);
    color: var(--m-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.m-carousel-btn:hover:not(:disabled) {
    background: rgba(220, 20, 28, 0.12);
    border-color: rgba(220, 20, 28, 0.45);
}

.m-carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.m-carousel-viewport {
    overflow: hidden;
    border-radius: 12px;
}

.m-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.m-carousel-track--dragging {
    transition: none;
}

.m-carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 2px;
}

.m-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.m-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--m-border);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.m-carousel-dot--active,
.m-carousel-dot[aria-selected="true"] {
    background: var(--m-brand);
    transform: scale(1.15);
}

.m-carousel .m-shot-featured .m-shot-frame {
    max-height: min(72vh, 720px);
}

.m-carousel .m-shot-zoom-img {
    max-height: min(72vh, 720px);
    width: 100%;
    object-fit: contain;
    object-position: top center;
    background: #0a1018;
}

[data-theme="light"] .m-carousel .m-shot-zoom-img {
    background: #e2e8f0;
}

@media (max-width: 600px) {
    .m-carousel-toolbar {
        gap: 12px;
    }

    .m-carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* Zoom flyout is clipped inside carousel viewport — tap/click through slides instead */
.m-carousel .m-shot-zoom-flyout,
.m-carousel .m-shot-zoom-lens {
    display: none !important;
}

.m-carousel .m-shot-zoom-viewport {
    cursor: default;
}

/* Demo launcher page */
.m-demo-page .m-nav-panel--open {
    display: flex;
    justify-content: flex-end;
}

.m-demo-main {
    padding: 48px 0 72px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.m-demo-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 28px;
    border-radius: 14px;
    border: 1px solid var(--m-border);
    background: var(--m-card-bg);
}

.m-demo-lead {
    margin: 0 0 16px;
    color: var(--m-muted);
    font-size: 1.05rem;
}

.m-demo-perks {
    margin-bottom: 24px;
}

.m-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.m-demo-status {
    margin: 16px 0 0;
    color: var(--m-accent);
    font-size: 0.95rem;
}

.m-demo-error {
    margin: 12px 0 0;
    color: #ff8a8a;
    font-size: 0.95rem;
}

.m-nav-demo {
    color: var(--m-accent);
    font-weight: 600;
}