/* MangoPOS — shared UI enhancements */
:root {
    --focus-ring: 0 0 0 3px rgba(78, 205, 196, 0.45);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 999;
    background: #062d27;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}
.skip-link:focus {
    left: 12px;
    outline: none;
    box-shadow: var(--focus-ring);
}

:focus-visible {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in-up { opacity: 1; transform: none; }
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5%;
    gap: 12px;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(15, 23, 32, 0.06);
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 52px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links > a,
.nav-dropdown > .nav-dropdown-trigger {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    padding: 8px 10px;
    border-radius: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-links > a:hover,
.nav-dropdown > .nav-dropdown-trigger:hover { color: #0f1720; background: #f4f7f5; }
.nav-links > a.active,
.nav-dropdown > .nav-dropdown-trigger.active { color: #062d27; font-weight: 600; }
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-cta {
    background: #0f1720;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: #4ecdc4; color: #0f1720; }
.nav-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1720;
}
.nav-cart-btn .cart-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #062d27;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-cart-btn .cart-badge:empty,
.nav-cart-btn .cart-badge[data-count="0"] { display: none; }
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #0f1720;
    cursor: pointer;
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 20px 50px rgba(15, 23, 32, 0.12);
    z-index: 120;
}
.nav-dropdown-menu.wide { min-width: 260px; }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: grid; gap: 2px; }
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1720;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: #f4f7f5; color: #062d27; }
.nav-dropdown-menu a span.dd-icon { font-size: 16px; width: 20px; text-align: center; }
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 5%;
    right: 5%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(15, 23, 32, 0.12);
    z-index: 180;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu > a,
.mobile-menu-cta {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0f1720;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    text-align: left;
}
.mobile-menu > a:hover { background: #f4f7f5; }
.mobile-menu-cta {
    justify-content: center;
    background: #062d27;
    color: #fff;
    margin-top: 8px;
}
.mobile-menu-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    padding: 8px 12px 4px;
}
.mobile-menu-sub a {
    font-size: 14px;
    font-weight: 500;
    padding-left: 24px;
}
@media (max-width: 1024px) {
    .nav-links, .nav-right .nav-cta { display: none; }
    .nav-hamburger { display: inline-flex; }
    .nav-right .nav-cart-btn { display: inline-flex; }
}
@media (max-width: 640px) {
    .nav-right { display: none; }
}

/* ── Hero enhancements ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6, 45, 39, 0.08);
    border-radius: 100px;
    padding: 6px 16px 6px 6px;
    margin-bottom: 20px;
}
.hero-badge-label {
    background: #062d27;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}
.hero-badge-text { font-size: 13px; font-weight: 600; color: #062d27; }
.hero-value-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.hero-value-strip li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #0f1720;
}
.hero-value-strip li i { color: #062d27; flex-shrink: 0; }
.hero-visual-mobile { display: none; margin-top: 32px; justify-content: center; }
@media (max-width: 1024px) {
    .hero-visual-desktop { display: none; }
    .hero-visual-mobile { display: flex; }
}
.btn-secondary {
    border-color: #cbd5e1 !important;
    color: #0f1720 !important;
}
.btn-secondary:hover { border-color: #0f1720 !important; background: #f8fafc; }

.display-font { font-family: 'DM Sans', 'Inter', sans-serif; }

/* ── Social proof & testimonials ── */
.social-proof-logo {
    font-size: 17px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: -0.02em;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}
.social-proof-logo:hover { opacity: 1; color: #062d27; }
.testimonials-section {
    padding: 64px 5%;
    background: #fff;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 32px auto 0;
}
.testimonial-card {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    text-align: left;
}
.testimonial-card blockquote {
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    margin: 0 0 16px;
}
.testimonial-meta { font-size: 13px; font-weight: 700; color: #0f1720; }
.testimonial-meta span { display: block; font-weight: 500; color: #64748b; margin-top: 2px; }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ── Features collapse ── */
.features-collapse-wrap { max-width: 1100px; margin: 0 auto; }
.features-collapse {
    display: none;
}
.features-collapse.is-open {
    display: block;
}
.btn-features-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 0;
    padding: 14px 28px;
    border: 2px solid #062d27;
    border-radius: 14px;
    background: #fff;
    color: #062d27;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}
.btn-features-toggle:hover { background: #062d27; color: #fff; }

/* ── Pricing snapshot ── */
.pricing-example {
    background: rgba(6, 45, 39, 0.06);
    border: 1px solid rgba(6, 45, 39, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 20px auto 0;
    max-width: 480px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    text-align: left;
}
.pricing-example strong { color: #062d27; }
.pricing-calc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #062d27;
}

/* ── Blog preview cards ── */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.blog-preview-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 20px;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-preview-card:hover {
    border-color: #062d27;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.blog-preview-card .cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #062d27;
    margin-bottom: 8px;
}
.blog-preview-card h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.blog-preview-card p {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 12px;
}
.blog-preview-card .read-link {
    font-size: 13px;
    font-weight: 700;
    color: #062d27;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
@media (max-width: 768px) { .blog-preview-grid { grid-template-columns: 1fr; } }

/* ── Demo modal steps ── */
.demo-step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.demo-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}
.demo-step-dot.active { background: #062d27; }
.demo-step-panel { display: none; }
.demo-step-panel.active { display: grid; gap: 10px; }
.demo-wa-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #25d366;
    color: #128c7e;
    font-size: 14px;
    font-weight: 700;
    background: #f0fdf4;
    margin-top: 4px;
}
.demo-wa-link:hover { background: #dcfce7; }
.demo-step-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.demo-step-back {
    flex: 0 0 auto;
    padding: 14px 16px;
    border: 1px solid #dbe2e8;
    border-radius: 16px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: #64748b;
}

/* ── FAQ ── */
.faq-item.open .faq-answer { max-height: none; padding: 0 24px 20px; }

/* ── Live walkthrough (no video) ── */
.live-walkthrough {
    padding: 56px 5%;
    background: linear-gradient(180deg, #f7f9f7 0%, #fff 100%);
}
.live-walkthrough-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 12px 40px rgba(15, 23, 32, 0.06);
}
.live-walkthrough h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.live-walkthrough p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 24px;
}
.live-walkthrough-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Shop buy vs demo tabs ── */
.shop-mode-tabs {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 32px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 14px;
}
.shop-mode-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
}
.shop-mode-tab.active {
    background: #fff;
    color: #062d27;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.shop-demo-panel { display: none; }
.shop-demo-panel.active { display: block; }
.shop-buy-panel.active { display: block; }

/* ── Sticky mobile CTA ── */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 12px 5%;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.sticky-cta.is-visible { display: block; }
.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}
.sticky-cta-text {
    font-size: 13px;
    font-weight: 600;
    color: #0f1720;
    line-height: 1.3;
}
.sticky-cta-text span {
    display: block;
    font-size: 11px;
    color: #999;
    font-weight: 400;
}
.sticky-cta-btn {
    background: #062d27;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
}
@media (max-width: 768px) {
    body.has-sticky-cta { padding-bottom: 64px; }
}
