/* redesign-core.css - shared foundation for redesigned public pages.
   Extracted from redesign/index-BRAND_NEW_LANDINGPAGE.html. Load before page CSS. */

        :root {
            --bg: #ffffff;
            --bg-soft: #f6f7f9;
            --bg-tint: #fff6f0;     /* warm orange tint */
            --line: #e9eaee;
            --line-2: #dfe1e6;
            --ink: #16161a;
            --ink-2: #3b3d44;
            --muted: #6b6e76;
            --muted-2: #82858d;
            --orange: #ff6600;
            --orange-2: #ff8534;
            --orange-soft: #ffeede;
            --green: #1f9d55;
            --green-soft: #e7f6ee;
            --red: #d63a3a;
            --card: #ffffff;
            --radius: 16px;
            --radius-sm: 10px;
            --radius-lg: 22px;
            --maxw: 1180px;
            --shadow-sm: 0 2px 10px rgba(20,22,30,0.06);
            --shadow: 0 18px 50px rgba(20,22,30,0.10);
            --shadow-lg: 0 30px 80px rgba(20,22,30,0.14);
            /* motion system */
            --ease-out: cubic-bezier(.22,.61,.36,1);
            --ease-spring: cubic-bezier(.34,1.56,.64,1);
            --dur-1: 140ms;   /* taps, hovers */
            --dur-2: 240ms;   /* standard transitions */
            --dur-3: 520ms;   /* reveals, larger moves */
            /* focus ring */
            --focus: 0 0 0 3px rgba(255,102,0,0.45);
            --focus-offset: #fff;
        }

        /* Typographic precision: balance short headings, avoid orphans in body */
        h1, h2, h3, h4, .hero-tagline { text-wrap: balance; }
        .lead, .hero-sub, .svc-desc, .faq-a-inner, p { text-wrap: pretty; }
        [data-theme="dark"] { --focus-offset: #16161a; }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body {
            margin: 0;
            background: var(--bg);
            color: var(--ink);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 17px;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
            /* sticky footer: a page's main content wrapper can set flex:1 0 auto to push the footer down */
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        a { color: inherit; text-decoration: none; }

        /* ---- Accessibility: focus, skip link ---- */
        :where(a, button, [tabindex], summary):focus-visible {
            outline: 2px solid transparent;
            box-shadow: var(--focus);
            border-radius: 6px;
        }
        /* Text fields: no glow ring, just the browser's default outline removed */
        :where(input, textarea, select):focus-visible {
            outline: none;
        }
        .btn:focus-visible, .nav-signup:focus-visible { box-shadow: 0 0 0 3px var(--focus-offset), 0 0 0 6px rgba(255,102,0,0.5); }
        .skip-link {
            position: fixed; top: 10px; left: 10px; z-index: 1000;
            background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px;
            font-weight: 700; font-size: 0.92rem; transform: translateY(-150%);
            transition: transform var(--dur-2) var(--ease-out);
        }
        .skip-link:focus { transform: translateY(0); }

        /* ---- Interactive states ---- */
        .btn, .nav-signup, .theme-toggle, .menu-toggle, .search-tab, .faq-q { transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out); }
        .btn:active, .nav-signup:active { transform: translateY(1px); }
        @media (hover:hover){ .btn-primary:hover { filter: brightness(1.04); } }

        /* ---- Reduced motion: honor user preference everywhere ---- */
        @media (prefers-reduced-motion: reduce) {
            html { scroll-behavior: auto; }
            *, *::before, *::after {
                animation-duration: .001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .001ms !important;
            }
            .reveal { opacity: 1 !important; transform: none !important; }
        }
        img { max-width: 100%; display: block; }
        h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; margin: 0; font-weight: 800; color: var(--ink); }
        h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
        h2 { font-size: clamp(1.9rem, 3.7vw, 2.8rem); }
        p { margin: 0 0 1rem; }
        .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
        .accent { color: var(--orange); }
        .eyebrow {
            display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
            text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
        }
        .section { padding: 110px 0; position: relative; }
        .section-sm { padding: 80px 0; }
        .band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
        .band-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
        .center { text-align: center; }
        .lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

        /* Buttons */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
            padding: 15px 30px; border-radius: 11px; cursor: pointer; border: none;
            transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s, border-color .2s;
        }
        .btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(255,102,0,0.28); }
        .btn-primary:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,102,0,0.36); }
        .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
        .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
        .btn-lg { padding: 17px 38px; font-size: 1.05rem; }
        /* Header */
        header.nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            background: rgba(255,255,255,0.72); backdrop-filter: blur(14px);
            border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease, box-shadow .3s;
        }
        header.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,0.92); box-shadow: var(--shadow-sm); }
        .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
        .brand img { height: 40px; width: auto; }
        .nav-links { display: flex; align-items: center; gap: 28px; }
        .nav-links a.link { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
        .nav-links a.link:hover { color: var(--orange); }
        .nav-cta { display: flex; align-items: center; gap: 14px; }
        .nav-login { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
        .nav-login:hover { color: var(--orange); }
        .nav-signup { background: var(--orange); color: #fff; padding: 10px 22px; border-radius: 9px; font-weight: 700; font-size: 0.95rem; transition: background .2s, transform .15s; }
        .nav-signup:hover { background: var(--orange-2); transform: translateY(-1px); }
        .menu-toggle { display: none; background: none; border: none; color: var(--ink); cursor: pointer; }
        .menu-toggle .material-icons { font-size: 30px; }
        /* Footer */
        footer.site-footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: var(--bg-soft); }
        .footer-news { display:flex; align-items:center; justify-content:space-between; gap:18px 32px; flex-wrap:wrap; padding:24px 28px; margin-top:44px; background:var(--bg); border:1px solid var(--line); border-radius:16px; }
        .fn-text strong { display:block; font-size:1rem; color:var(--ink); font-weight:700; }
        .fn-text span { font-size:0.86rem; color:var(--muted); }
        .footer-news form { display:flex; gap:9px; flex-wrap:wrap; }
        .footer-news input[type=email] { padding:11px 14px; border-radius:9px; border:1px solid var(--line-2); background:var(--bg); color:var(--ink); font-size:0.92rem; font-family:inherit; min-width:230px; outline:none; transition:border-color .2s, box-shadow .2s; }
        .footer-news input[type=email]:focus { border-color:var(--line-2); }
        .footer-news button { padding:11px 20px; border-radius:9px; border:0; background:var(--orange); color:#fff; font-weight:700; font-size:0.9rem; cursor:pointer; transition:background .2s; }
        .footer-news button:hover { background:var(--orange-2); }
        @media(max-width:560px){ .footer-news input[type=email]{ min-width:0; flex:1; } }
        .footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
        .footer-brand { max-width: 320px; }
        .footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
        /* Dark mode: the horizontal logo's wordmark is dark, so swap to the white-wordmark variant on the dark footer. */
        [data-theme="dark"] .footer-brand img,
        [data-theme="dark"] .footer-minimal .fb-left img { content: url("/Content/landing/global/vip-app-icon-url-horizontal-dark.svg"); }
        .footer-brand p { color: var(--muted); font-size: 0.95rem; }
        .footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
        .footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 16px; font-weight: 700; }
        .footer-col a { display: block; color: var(--muted); margin-bottom: 10px; font-size: 0.95rem; transition: color .2s; }
        .footer-col a:hover { color: var(--orange); }
        .footer-social { display: flex; gap: 12px; margin-top: 18px; }
        .footer-social a { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; transition: all .2s; background: var(--bg); color: var(--muted); }
        .footer-social a:hover { border-color: var(--orange); background: var(--orange); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255,102,0,.25); }
        .footer-social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
        .footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 0.88rem; }

        /* Slim footer variant (auth/utility pages: login, register, ...) - see _RedesignFooterMinimal.cshtml */
        footer.site-footer.footer-minimal { flex-shrink: 0; padding: 30px 0; }
        .footer-minimal .footer-bottom { margin-top: 0; padding-top: 0; border-top: none; align-items: center; }
        .footer-minimal .fb-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
        .footer-minimal .footer-bottom img { height: 22px; width: auto; }
        .footer-minimal .footer-bottom a:hover { color: var(--orange); }
        .footer-minimal .footer-social a { width: 34px; height: 34px; border-radius: 9px; }
        .footer-minimal .footer-social svg { width: 16px; height: 16px; }

        /* Notice/alert banner (form error or info messages) - shared by login/register */
        .auth-notice { margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; font-weight: 600; text-align: center; }
        .auth-notice.is-error { background: rgba(224,57,139,0.1); color: #e0398b; border: 1px solid rgba(224,57,139,0.28); }
        .auth-notice.is-info { background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(255,102,0,0.28); }
        @media (max-width: 560px) { .footer-minimal .footer-bottom { justify-content: center; text-align: center; } }

        /* Reveal animation */
        .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
        .reveal.in { opacity: 1; transform: none; }

        /* Mobile menu */
        .mobile-menu { position: fixed; inset: 0; z-index: 1100; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); display: none; flex-direction: column; padding: 28px 24px; }
        .mobile-menu.open { display: flex; }
        .mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
        .mobile-menu .mm-top img { height: 28px; }
        .mobile-menu a { font-size: 1.4rem; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
        .mobile-menu .mm-close { background: none; border: none; color: var(--ink); cursor: pointer; }
        .mobile-menu .mm-close .material-icons { font-size: 32px; }

        /* jQuery UI autocomplete light styling */
        .ui-autocomplete { background: #fff !important; border: 1px solid var(--line-2) !important; border-radius: 12px !important; box-shadow: var(--shadow) !important; padding: 6px !important; z-index: 2000 !important; max-height: 360px; overflow-y: auto; }
        .ui-autocomplete .ui-menu-item a, .ui-autocomplete .ui-menu-item { color: var(--ink) !important; border: none !important; border-radius: 8px !important; }
        .autocomplete-item-rich { display: flex !important; align-items: center; gap: 12px; padding: 8px 10px !important; }
        .autocomplete-img-wrap, .autocomplete-thumb, .autocomplete-thumb-placeholder { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
        .autocomplete-thumb-placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--muted); }
        .autocomplete-type-badge { margin-left: auto; font-size: 0.72rem; color: var(--muted); background: var(--bg-soft); padding: 3px 9px; border-radius: 999px; }
        .ui-autocomplete .ui-state-hover, .ui-autocomplete .ui-state-focus, .ui-autocomplete .ui-menu-item a:hover { background: var(--bg-soft) !important; }
        /* Theme toggle button */
        html { transition: background .3s ease; }
        body, header.nav, .stat, .quote-card, .price-card, .partner-cell, .search-box, .search-tabs, .media-card, .btn, .hero, .final-cta, footer.site-footer, .stats, .pricing, .faq-item { transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease; }
        .theme-toggle {
            width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2);
            background: var(--bg); color: var(--ink-2); cursor: pointer; display: flex;
            align-items: center; justify-content: center; transition: all .2s;
        }
        .theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
        .theme-toggle .material-icons { font-size: 21px; }
        .mm-theme {
            display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer;
            color: var(--ink); font-family: inherit; font-size: 1.4rem; font-weight: 700; padding: 16px 0; text-align: left;
        }
        .mm-theme .material-icons { color: var(--orange); }

        /* ============ DARK THEME ============ */
        [data-theme="dark"] {
            --bg: #0c0d11;
            --bg-soft: #131419;
            --bg-tint: #16120e;
            --line: rgba(255,255,255,0.09);
            --line-2: rgba(255,255,255,0.16);
            --ink: #f2f3f6;
            --ink-2: #c8cad2;
            --muted: #9a9da6;
            --muted-2: #71747e;
            --orange-soft: rgba(255,102,0,0.18);
            --green-soft: rgba(31,157,85,0.18);
            --card: #15161c;
            --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
            --shadow: 0 18px 50px rgba(0,0,0,0.55);
            --shadow-lg: 0 30px 80px rgba(0,0,0,0.6);
        }
        [data-theme="dark"] body { background: var(--bg); }
        [data-theme="dark"] header.nav { background: rgba(12,13,17,0.72); }
        [data-theme="dark"] header.nav.scrolled { background: rgba(12,13,17,0.92); }
        [data-theme="dark"] .mobile-menu { background: rgba(12,13,17,0.98); }
        [data-theme="dark"] .theme-toggle,
        [data-theme="dark"] .footer-social a,
        [data-theme="dark"] .ui-autocomplete { background: var(--bg-soft) !important; }
        [data-theme="dark"] .ui-autocomplete .ui-menu-item a,
        [data-theme="dark"] .ui-autocomplete .ui-menu-item { color: var(--ink) !important; }
        [data-theme="dark"] .ui-autocomplete .ui-state-hover,
        [data-theme="dark"] .ui-autocomplete .ui-menu-item a:hover { background: rgba(255,255,255,0.06) !important; }
