/* CSS for index_amazon_repricer_newww.html */

/* ── Font Fallback Metric Overrides ── */
    @font-face {
        font-family: 'Inter Fallback';
        src: local('Arial');
        size-adjust: 107.64%;
        ascent-override: 90%;
        descent-override: 22.43%;
        line-gap-override: 0%;
    }
    body, .font-inter { font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; }

    /* ── Hero ── */
    .hero-section { background: #ffffff; position: relative; overflow: hidden; }
    .hero-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.7; pointer-events: none; z-index: 0; }
    .hero-blob-1 { width: 500px; height: 500px; background: rgba(4,107,252,0.3); top: -180px; left: -120px; }
    .hero-blob-2 { width: 400px; height: 400px; background: rgba(255,153,0,0.2); top: 40px; right: -80px; }
    .hero-blob-3 { width: 350px; height: 350px; background: rgba(4,107,252,0.2); bottom: -80px; left: 30%; }
    @media (max-width: 768px) {
        .hero-blob { opacity: 0.35; filter: blur(120px); }
        .hero-blob-1 { width: 300px; height: 300px; }
        .hero-blob-2 { width: 250px; height: 250px; }
        .hero-blob-3 { width: 220px; height: 220px; }
    }
    .hero-content { position: relative; z-index: 10; }
    .hero-grid { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: linear-gradient(rgba(4,107,252,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(4,107,252,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; z-index: 1; }

    /* ── Section blobs ── */
    .section-blob { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: 0; }
    .section-blob-blue { background: rgba(4,107,252,0.15); }
    .section-blob-orange { background: rgba(255,153,0,0.12); }

    /* ── Macrobox dark ── */
    .macrobox-dark { background: #04143d; position: relative; overflow: hidden; }
    .macrobox-dark::before { content: ''; position: absolute; top: -30%; right: -15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(4,107,252,0.4) 0%, transparent 60%); pointer-events: none; }
    .macrobox-dark::after { content: ''; position: absolute; bottom: -25%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,153,0,0.25) 0%, transparent 60%); pointer-events: none; }

    /* ── Hero rotating text ── */
    @keyframes heroTextIn { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes heroTextOut { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-18px); } }
    .hero-rotate { display: inline-block; animation: heroTextIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
    .hero-rotate.out { animation: heroTextOut 0.4s cubic-bezier(0.7,0,0.84,0) forwards; }
    @media (prefers-reduced-motion: reduce) { .hero-rotate, .hero-rotate.out { animation: none !important; opacity: 1 !important; transform: none !important; } }

    /* ── Buttons ── */
    .btn-pill { border-radius: 50px; }

    /* ── Exit-Intent Popup ── */
    .exit-intent-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
    .exit-intent-overlay.visible { opacity: 1; pointer-events: auto; }
    .exit-intent-card { background: #fff; border-radius: 1.5rem; max-width: 480px; width: 100%; box-shadow: 0 25px 60px rgba(0,0,0,.3); transform: translateY(24px) scale(.96); transition: transform .4s cubic-bezier(.16,1,.3,1); position: relative; }
    .exit-intent-overlay.visible .exit-intent-card { transform: translateY(0) scale(1); }
    .exit-intent-close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 50%; background: #f1f5f9; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #64748b; transition: background .2s, color .2s; }
    .exit-intent-close:hover { background: #e2e8f0; color: #1e293b; }
    .exit-intent-close:focus-visible { outline: 2px solid #046bfc; outline-offset: 2px; }

    /* ── FAQ ── */
    .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
    .faq-item.active .faq-answer { max-height: 600px; }
    .faq-item.active .faq-icon { transform: rotate(45deg); background: #046bfc; color: white; }
    .faq-tab { padding: 10px 20px; border: 2px solid #e2e8f0; border-radius: 30px; background: white; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; display: flex; align-items: center; gap: 8px; min-height: 44px; }
    .faq-tab:hover { border-color: #046bfc; color: #046bfc; }
    .faq-tab.active { background: #046bfc; border-color: #046bfc; color: white; }
    .faq-tab:focus-visible { outline-offset: 3px; border-radius: 50px; }
    .faq-category { display: none; }
    .faq-category.active { display: block; }

    /* ── Counter ── */
    .counter { font-variant-numeric: tabular-nums; }

    /* ── Toast ── */
    .toast-snackbar { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(120px); z-index: 9999; background: #04143d; color: white; padding: 14px 24px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 12px 40px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease; display: flex; align-items: center; gap: 10px; max-width: 90vw; }
    .toast-snackbar.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
    .toast-snackbar .toast-close { margin-left: 8px; background: rgba(255,255,255,0.15); border: none; color: white; min-width: 44px; min-height: 44px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; transition: background 0.2s; flex-shrink: 0; }
    .toast-snackbar .toast-close:hover { background: rgba(255,255,255,0.25); }
    @media (max-width: 768px) { .toast-snackbar { bottom: 120px; } }

    /* ── Submenu ── */
    .submenu { position: fixed; top: 72px; left: 0; right: 0; z-index: 40; background: rgba(4,20,61,0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); transform: translateY(calc(-100% - 80px)); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; }
    .submenu.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .submenu-link { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 500; padding: 14px 16px; min-height: 44px; display: flex; align-items: center; transition: color 0.2s; white-space: nowrap; position: relative; }
    .submenu-link:hover, .submenu-link.active { color: white; }
    .submenu-link.active::after { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: #046bfc; border-radius: 2px; }
    .progress-bar { position: absolute; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, #046bfc, #3d8bfd); width: 0%; transition: width 0.1s linear; }
    .submenu > div:first-child { scrollbar-width: none; -ms-overflow-style: none; mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%); }
    .submenu > div:first-child::-webkit-scrollbar { display: none; }

    /* ── Feature card ── */
    .feature-card { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1); }
    .feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -12px rgba(0,0,0,0.08), 0 8px 20px -6px rgba(4,20,61,0.12); }

    /* ── Bridge card ── */
    .bridge-card { transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease; }
    .bridge-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -12px rgba(4,20,61,0.12); border-color: rgba(4,107,252,0.3); }

    /* ── Accessibility ── */
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border-width: 0; }
    :focus-visible { outline: 2px solid #046bfc; outline-offset: 2px; }
    .btn-pill:focus-visible { outline-offset: 3px; border-radius: 50px; }
    .btn-pill:active { transform: scale(0.97); }

    /* ── Scroll-reveal ── */
    .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
    .reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
    .reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
    .reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: translate(0,0); }
    .reveal-d1 { transition-delay: 0.1s; }
    .reveal-d2 { transition-delay: 0.2s; }
    .reveal-d3 { transition-delay: 0.3s; }
    .reveal-d4 { transition-delay: 0.4s; }

    /* ── Scroll-margin for fixed nav ── */
    section[id] { scroll-margin-top: 140px; }

    /* ── Sticky CTA ── */
    .sticky-cta-mobile { transform: translateY(100%); transition: transform 0.4s ease-out; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
    .sticky-cta-mobile.visible { transform: translateY(0); }
    .sticky-cta-desktop { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid #e2e8f0; box-shadow: 0 -4px 16px -4px rgba(0,0,0,0.06); transform: translateY(100%); transition: transform 0.4s ease-out; display: none; }
    @media (min-width: 768px) { .sticky-cta-desktop { display: block; } }
    .sticky-cta-desktop.visible { transform: translateY(0); }

    /* ── Reduced motion ── */
    @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; }
        .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
        .rep-wheel-card { transition: none !important; }
    }

    /* ── Vertical Wheel Carousel ── */
    .rep-wheel-container { position: relative; overflow: visible; overscroll-behavior: contain; touch-action: pan-y; }
    .rep-wheel-card { position: absolute; width: 88%; left: 6%; transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .5s cubic-bezier(.4,0,.2,1), filter .5s cubic-bezier(.4,0,.2,1); pointer-events: none; }
    .rep-wheel-card[data-index="0"] { opacity: 1; filter: blur(0); }
    .rep-wheel-card[data-position="center"] { z-index: 10; transform: translateY(0) scale(1); opacity: 1; filter: blur(0); pointer-events: auto; }
    .rep-wheel-card[data-position="top"] { z-index: 5; transform: translateY(-65%) scale(.82); opacity: .5; filter: blur(3px); }
    .rep-wheel-card[data-position="bottom"] { z-index: 5; transform: translateY(65%) scale(.82); opacity: .5; filter: blur(3px); }
    .rep-wheel-card[data-position="hidden"] { z-index: 1; transform: translateY(0) scale(.6); opacity: 0; filter: blur(6px); }
    .rep-dot { width: 10px; height: 10px; border-radius: 9999px; background: transparent; border: none; padding: 0; cursor: pointer; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; position: relative; }
    .rep-dot::after { content: ''; width: 10px; height: 10px; border-radius: 9999px; background: #cbd5e1; transition: all .3s ease; display: block; }
    .rep-dot.active::after { background: #046bfc; width: 28px; }

    /* ── Touch active states ── */
    @media (hover: none) {
        .btn-pill:active { transform: scale(0.97); }
        .feature-card:active, .bridge-card:active { transform: scale(0.98); }
        .submenu-link:active { color: white; }
        .faq-question:active { background: rgba(4,107,252,0.04); }
    }

    /* ── Content visibility for below-fold sections ── */
    #what-is, #why-it-matters, #how-it-works, #reseller-strategies, #brand-strategies, #cost-engine, #bulk, #fba-fbm, #monitoring, #comparison, #suite, #who-its-for, #free-tools, #faq, #final-cta, #results, #automate-vs-repricer, #marketplaces, #security, #pricing-preview, #whats-included, #pillars { content-visibility: auto; contain-intrinsic-size: auto 600px; }

    /* ── Print ── */
    @media print {
        nav, .submenu, .sticky-cta-mobile, .sticky-cta-desktop, .hero-blob, .hero-grid, .section-blob, .macrobox-dark::before, .macrobox-dark::after, footer, #submenu, .toast-snackbar, .faq-tabs, .exit-intent-overlay { display: none !important; }
        body { background: white !important; color: #000 !important; font-size: 12pt; }
        section { background: white !important; box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; }
        .macrobox-dark { background: #f5f5f5 !important; color: #000 !important; }
        h1, h2, h3, h4, p, li, span, a { color: #000 !important; }
        h2, h3 { page-break-after: avoid; }
        a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #666 !important; }
        a[href^="#"]::after, a[href^="javascript"]::after { content: "" !important; }
        img { max-width: 100% !important; }
        .faq-answer { max-height: none !important; overflow: visible !important; }
        .faq-category { display: block !important; }
        * { overflow: visible !important; }
    }
