/* Public marketing landing — scoped; does not alter app chrome */
:root {
    --m-primary: #1f4f6e;
    --m-accent: #26b1ba;
    --m-bg: #0d1520;
    --m-surface: #151f2e;
    --m-text: #e8eef4;
    --m-muted: #9aa8b8;
    --m-border: rgba(255, 255, 255, 0.08);
    --m-hero-grad-a: #0d1520;
    --m-hero-grad-b: #152a3d;
    --m-nav-bg: rgba(13, 21, 32, 0.92);
    --m-card-bg: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] {
    --m-primary: #1a5f85;
    --m-accent: #0d8f9c;
    --m-bg: #eef2f6;
    --m-surface: #ffffff;
    --m-text: #14232f;
    --m-muted: #4a5d6e;
    --m-border: rgba(15, 35, 55, 0.12);
    --m-hero-grad-a: #e2eaf2;
    --m-hero-grad-b: #d0dde8;
    --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: auto;
    display: block
}

.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: var(--m-accent);
    color: #fff
}

.m-btn-primary:hover {
    filter: brightness(1.08)
}

.m-btn-secondary {
    background: var(--m-primary);
    color: #fff
}

.m-btn-secondary:hover {
    filter: brightness(1.1)
}

.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;
    /* max-width: 720px */
}

.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-accent)
}

.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: var(--m-primary);
    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-primary) 0%, #163a52 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: wrap;
    align-items: center;
    gap: 14px 20px;
    min-height: 88px;
    padding: 14px 0;
    justify-content: space-between;
}

/* Visual order: actions (left) → anchor links (center) → brand (right) */
.m-nav-actions {
    order: 3;
    justify-content: flex-start;
}

.m-nav-links {
    order: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    justify-content: center;
    flex: 1 1 280px;
    max-width: 640px;
}

.m-brand {
    order: 1;
    /* margin-left: auto; */
}

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

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

/* Mobile menu: panel uses display:contents on desktop so flex order (brand / links / actions) is unchanged */
.m-nav-panel {
    display: contents;
}

.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: 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-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-panel {
        display: flex;
        flex-direction: column;
        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-nav-links {
        order: unset;
        flex: none;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        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;
        gap: 10px;
        padding: 8px 0 12px;
    }

    .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;
    }
}