/* ============================================================================
   MyFurtopia — Luxury Theme Layer
   Loaded AFTER main.css. Elevates the existing blue→purple identity into a
   calm, premium experience: refined tokens, soft white/lavender canvas,
   deep-ink type, champagne-gold accents, glass cards, and quiet micro-motion.
   ----------------------------------------------------------------------------
   Design language: Apple-calm. Generous whitespace, restrained color,
   layered soft shadows, type as the hero. Brand gradient used sparingly,
   as an accent — not as wallpaper.
   ========================================================================== */

:root {
    /* ---- Refined brand ---- */
    --brand-blue:   #667eea;
    --brand-purple: #764ba2;
    --brand-indigo: #5b54d6;
    --gradient-brand: linear-gradient(135deg, #6a7bf0 0%, #8a5cc4 55%, #764ba2 100%);
    --gradient-brand-soft: linear-gradient(135deg, #eef1ff 0%, #f5eefc 100%);

    /* ---- Ink & canvas ---- */
    --ink-900: #0c0e1f;   /* near-black indigo — headings */
    --ink-700: #1f2440;   /* strong body */
    --ink-500: #4a5072;   /* muted body */
    --ink-400: #6b7194;   /* captions */
    --canvas:        #ffffff;
    --canvas-soft:   #f8f8fd;   /* very light lavender-white */
    --canvas-lav:    #f3f2fb;   /* lavender section wash */
    --hairline:      #ecebf5;   /* refined borders */

    /* ---- Champagne gold accent ---- */
    --gold-700: #b08a3e;
    --gold-500: #c9a44c;
    --gold-300: #e3cf94;
    --gold-100: #f6efdc;
    --gradient-gold: linear-gradient(135deg, #d9bd6e 0%, #c9a44c 100%);

    /* ---- Premium soft shadows (lavender-tinted, layered) ---- */
    --shadow-xs:  0 1px 2px rgba(28, 25, 71, 0.05);
    --shadow-sm:  0 2px 8px rgba(28, 25, 71, 0.06);
    --shadow-md:  0 8px 24px rgba(28, 25, 71, 0.08);
    --shadow-lg:  0 18px 48px -12px rgba(40, 33, 99, 0.18);
    --shadow-xl:  0 32px 70px -20px rgba(40, 33, 99, 0.28);
    --shadow-gold:0 14px 40px -12px rgba(201, 164, 76, 0.45);
    --shadow-brand:0 18px 44px -14px rgba(118, 75, 162, 0.45);

    /* ---- Motion ---- */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    /* ---- Fluid type scale ---- */
    --display: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem);
    --h1: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem);
    --h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
    --h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
    --lead: clamp(1.06rem, 1rem + 0.4vw, 1.28rem);
}

/* ---------------------------------------------------------------------------
   Base canvas & typography polish
   ------------------------------------------------------------------------- */
body {
    background: var(--canvas);
    color: var(--ink-700);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink-900); letter-spacing: -0.02em; }
h1 { line-height: 1.05; }
h2 { line-height: 1.12; }

::selection { background: rgba(118, 75, 162, 0.16); color: var(--ink-900); }

/* Refined focus ring for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand-purple);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Brand gradient text — richer, with subtle weight */
.gradient-text,
.primary-keyword {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* A gold-text utility for premium touches */
.gold-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------------
   Navbar — refined glass, scroll-aware
   ------------------------------------------------------------------------- */
.navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(236, 235, 245, 0.8);
    box-shadow: none;
    transition: background var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--hairline);
}
.brand-text { color: var(--ink-900); letter-spacing: -0.02em; font-weight: 800; }
.professional-platform-badge {
    background: var(--gradient-gold);
    color: #3a2d09;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-xs);
}
.nav-link {
    color: var(--ink-500);
    font-weight: 600;
    position: relative;
    transition: color var(--transition-fast);
}
.nav-link:hover { color: var(--ink-900); }
.nav-link.active { color: var(--brand-purple); }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-brand);
}

/* Premium dropdown polish */
.dropdown-menu {
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
}
.dropdown-item:hover { background: var(--canvas-lav); }
.dropdown-badge.premium-badge,
.premium-badge {
    background: var(--gradient-gold) !important;
    color: #3a2d09 !important;
}

/* Sign-in button — quiet luxury */
.nav-signin-luxury {
    background: var(--ink-900);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-normal), background var(--transition-normal);
}
.nav-signin-luxury:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: #16193a;
}

/* ---------------------------------------------------------------------------
   Hero — calm, spacious, luminous
   ------------------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(118,75,162,0.10) 0%, transparent 55%),
        radial-gradient(90% 80% at 0% 0%, rgba(102,126,234,0.10) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--canvas-soft) 100%);
}
.hero-badge {
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--hairline);
    color: var(--ink-700);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(8px);
    font-weight: 600;
}
.hero-title { font-size: var(--display); font-weight: 800; letter-spacing: -0.035em; }
.hero-subtitle { font-size: var(--lead); color: var(--ink-500); line-height: 1.65; max-width: 38ch; }
.hero-subtitle strong { color: var(--ink-700); font-weight: 700; }

/* Feature preview rows — glass chips */
.feature-preview {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-normal) var(--ease-out), box-shadow var(--transition-normal);
}
.feature-preview:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-preview .preview-text strong { color: var(--ink-900); }

/* Stats — refined glass slab (overrides inline styles via specificity) */
.hero .hero-stats {
    background: rgba(255,255,255,0.78) !important;
    border: 1px solid var(--hairline) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-2xl) !important;
    backdrop-filter: blur(14px);
}
.hero .stat-number { color: var(--ink-900) !important; font-weight: 800; letter-spacing: -0.03em; text-shadow: none !important; }
.hero .stat-label { color: var(--ink-400) !important; font-weight: 600; letter-spacing: 0.01em; }

/* ---------------------------------------------------------------------------
   Buttons — primary brand, gold premium, ghost
   ------------------------------------------------------------------------- */
.download-btn.primary,
.cta-button,
.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-brand);
    transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-normal), filter var(--transition-normal);
}
.download-btn.primary:hover,
.cta-button:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px -16px rgba(118, 75, 162, 0.6);
    filter: saturate(1.05);
}
.download-btn.secondary,
.btn-ghost {
    background: rgba(255,255,255,0.7);
    color: var(--ink-700);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-full);
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: transform var(--transition-fast) var(--ease-out), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.download-btn.secondary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-sm);
}
.btn-gold {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: var(--gradient-gold);
    color: #3a2d09;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-normal);
    cursor: pointer;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -14px rgba(201,164,76,0.6); }

/* ---------------------------------------------------------------------------
   Sections & cards
   ------------------------------------------------------------------------- */
.features { background: linear-gradient(180deg, var(--canvas-soft) 0%, #ffffff 100%); }
/* Community section was authored as white text + white-glass cards, so it
   needs a deep gradient canvas (not the light lavender) to stay legible. */
.community {
    background:
        radial-gradient(120% 90% at 90% 0%, rgba(255,255,255,0.12) 0%, transparent 55%),
        var(--gradient-brand);
    color: #fff;
}
.community .stat-number { color: #fff !important; }
.community .section-tag {
    background: rgba(255,255,255,0.16);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.community .community-stat,
.community .community-card {
    border: 1px solid rgba(255,255,255,0.22);
}
.community .community-cta { background: #fff; color: var(--brand-purple); }
.how-it-works { background: #ffffff; }

.section-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--gold-100);
    color: var(--gold-700);
    border: 1px solid var(--gold-300);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feature-card {
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
    transition: transform var(--transition-normal) var(--ease-out), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(118,75,162,0.25);
}
.feature-card.featured {
    border-color: var(--gold-300);
    box-shadow: var(--shadow-gold);
}

/* ---------------------------------------------------------------------------
   Footer — deep ink with gold-warmed links
   ------------------------------------------------------------------------- */
.footer {
    background: linear-gradient(180deg, #10122a 0%, #0c0e1f 100%);
    color: #c5c8de;
}
.footer h4 { color: #fff; }
.footer-brand p { color: #9aa0c0; }
.footer a { color: #b9bedb; transition: color var(--transition-fast); }
.footer a:hover { color: var(--gold-300); }
.footer .social-link {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #d6d9ee;
    transition: transform var(--transition-fast) var(--ease-out), background var(--transition-normal), color var(--transition-normal);
}
.footer .social-link:hover { transform: translateY(-3px); background: var(--gradient-gold); color: #2a2008; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer-badge { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); color: #aeb3d2; }

/* ---------------------------------------------------------------------------
   Modals — softer glass
   ------------------------------------------------------------------------- */
.modal-content {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--hairline);
}
.professional-option { border: 1px solid var(--hairline); border-radius: var(--radius-xl); transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-normal), border-color var(--transition-normal); }
.professional-option:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(118,75,162,0.3); }

/* ---------------------------------------------------------------------------
   Scroll-reveal micro-motion (wired in components.js)
   ------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------------
   Shared section heading rhythm helper (used by redesigned pages)
   ------------------------------------------------------------------------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head h2 { font-size: var(--h2); margin: 1rem 0 0.75rem; }
.section-head p { font-size: var(--lead); color: var(--ink-500); line-height: 1.6; }

/* ============================================================================
   CENTERED PREMIUM HERO  (v3 — clean, conversion-first, money-driven)
   Centered headline + two store-button pills + a phone framed by gradient
   feature-icon badges on a flowing connected path. No emoji/childish elements.
   Overrides the earlier playful hero layer.
   ========================================================================== */
.hero.hero-centered {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 140px 24px 72px;
    background:
        radial-gradient(60% 50% at 50% -8%, rgba(118,75,162,0.10) 0%, transparent 70%),
        radial-gradient(40% 40% at 90% 10%, rgba(102,126,234,0.10) 0%, transparent 70%),
        radial-gradient(40% 40% at 8% 18%, rgba(118,75,162,0.08) 0%, transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #f7f6fc 100%);
}
.hero-shell { max-width: 1180px; margin: 0 auto; }
.hero-lead { max-width: 880px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin: 0 auto 1.6rem;
    padding: 0.5rem 1.1rem;
    background: #fff;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    font-weight: 600; font-size: 0.92rem; color: var(--ink-600, var(--ink-500));
}
.hero-eyebrow .he-stars { color: #f5b301; letter-spacing: 2px; }
.hero-eyebrow strong { color: var(--ink-900); }

.hero.hero-centered .hero-title {
    font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.2rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
    margin: 0 auto 1.3rem; max-width: 16ch;
}
.hero.hero-centered .hero-title .gradient-text { display: block; }

.hero.hero-centered .hero-subtitle {
    font-size: var(--lead); color: var(--ink-500); line-height: 1.65;
    max-width: 600px; margin: 0 auto 2.2rem;
}

/* Store-button pills */
.hero.hero-centered .hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.app-btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.85rem 1.7rem; min-height: 60px;
    border-radius: var(--radius-full);
    font-family: inherit; text-decoration: none; cursor: pointer;
    transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-normal), background var(--transition-normal);
}
.app-btn svg { width: 24px; height: 24px; flex: none; }
.app-btn .app-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.app-btn .app-btn-text small { font-size: 0.68rem; font-weight: 600; opacity: 0.8; letter-spacing: 0.02em; }
.app-btn .app-btn-text strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.app-btn-primary { background: var(--gradient-brand); color: #fff; border: 1px solid transparent; box-shadow: var(--shadow-brand); }
.app-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 26px 56px -16px rgba(118,75,162,0.6); }
.app-btn-ghost { background: #fff; color: var(--ink-900); border: 1.5px solid #dcd9ec; box-shadow: var(--shadow-sm); }
.app-btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand-purple); box-shadow: var(--shadow-md); }

.hero.hero-centered .hero-download-note {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.6rem;
    margin: 1.4rem auto 0; color: var(--ink-400); font-weight: 600; font-size: 0.9rem;
}
.hero.hero-centered .hero-download-note span { position: relative; }
.hero.hero-centered .hero-download-note span + span::before {
    content: "•"; position: absolute; left: -0.95rem; color: #c9c6dd;
}

/* ---- Stage: phone framed by feature badges on a flowing path ---- */
.hero-stage {
    position: relative;
    width: 100%; max-width: 1120px; margin: 2.6rem auto 0;
    min-height: 540px;
    display: flex; align-items: center; justify-content: center;
}
.hero-orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.hero-orbit .orbit-path {
    stroke-width: 2; stroke-linecap: round; opacity: 0.5;
    stroke-dasharray: 2400; stroke-dashoffset: 2400;
    animation: orbit-draw 2.4s var(--ease-out) 0.2s forwards;
}
.hero-orbit .orbit-dot { fill: var(--brand-purple); opacity: 0.55; }
@keyframes orbit-draw { to { stroke-dashoffset: 0; } }

.hero-centered .premium-phone-showcase { height: 560px !important; z-index: 2; }

.feat-badge {
    position: absolute; z-index: 3;
    width: 60px; height: 60px; border-radius: 18px;
    display: grid; place-items: center;
    background: var(--gradient-brand); color: #fff;
    box-shadow: 0 16px 34px -10px rgba(118,75,162,0.5);
    border: 1px solid rgba(255,255,255,0.18);
    animation: badge-float 6s ease-in-out infinite;
}
.feat-badge svg { width: 28px; height: 28px; }
.feat-badge.fb-gold { background: var(--gradient-gold); color: #3a2d09; box-shadow: var(--shadow-gold); }
@keyframes badge-float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

.fb-1 { top: 12%; left: 24%; animation-delay: 0s; }
.fb-2 { top: 3%;  left: 49%; animation-delay: .5s; }   /* gold premium, top-center */
.fb-3 { top: 40%; left: 11%; animation-delay: 1s; }
.fb-4 { top: 20%; left: 80%; animation-delay: 1.4s; }
.fb-5 { top: 66%; left: 19%; animation-delay: .8s; }
.fb-6 { top: 56%; left: 82%; animation-delay: 1.8s; }
.fb-7 { top: 80%; left: 38%; animation-delay: 1.2s; }
.fb-8 { top: 78%; left: 66%; animation-delay: 2.1s; }

@media (max-width: 820px) {
    .hero-stage { min-height: 440px; }
    .hero-centered .premium-phone-showcase { height: 460px !important; }
    .feat-badge { width: 48px; height: 48px; border-radius: 14px; }
    .feat-badge svg { width: 22px; height: 22px; }
    .fb-1 { left: 6%; } .fb-3 { left: 2%; top: 46%; } .fb-5 { left: 6%; top: 72%; }
    .fb-4 { left: 86%; } .fb-6 { left: 88%; } .fb-8 { left: 80%; }
}
@media (max-width: 540px) {
    .fb-2, .fb-7, .fb-8 { display: none; }   /* declutter on small screens */
    .app-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .feat-badge, .hero-orbit .orbit-path { animation: none; stroke-dashoffset: 0; }
}

/* ---- hero v3.1: full-bleed stage, clean phone, badges spread edge-to-edge ---- */
/* Remove the harsh gradient glow behind the phone */
.hero-centered .phone-background-effects { display: none !important; }
.hero-centered .phone-glow { opacity: 0.18 !important; filter: blur(70px) !important; }

/* Break the stage out to full viewport width so nothing is cramped in the centre */
.hero-stage {
    width: 100vw; max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 620px;
    overflow: visible;
}
.hero-orbit { overflow: visible; }
.hero-orbit .orbit-path { opacity: 0.55; stroke-width: 2.5; }

/* Spread the feature badges across the whole screen, framing the phone */
.fb-1 { top: 16%; left: 9%;  animation-delay: 0s; }
.fb-2 { top: 1%;  left: 50%; animation-delay: .5s; }   /* gold premium crown, top-centre over phone */
.fb-3 { top: 58%; left: 17%; animation-delay: 1s; }
.fb-4 { top: 14%; left: 85%; animation-delay: 1.4s; }
.fb-5 { top: 70%; left: 7%;  animation-delay: .8s; }
.fb-6 { top: 42%; left: 91%; animation-delay: 1.8s; }
.fb-7 { top: 26%; left: 27%; animation-delay: 1.2s; }
.fb-8 { top: 72%; left: 78%; animation-delay: 2.1s; }

@media (max-width: 1100px) {
    .fb-1 { left: 5%; } .fb-7 { left: 22%; }
    .fb-4 { left: 88%; } .fb-6 { left: 93%; }
}
@media (max-width: 720px) {
    .hero-stage { min-height: 480px; }
    .hero-centered .premium-phone-showcase { height: 470px !important; }
    .feat-badge { width: 46px; height: 46px; border-radius: 13px; }
    .feat-badge svg { width: 22px; height: 22px; }
    .fb-1 { top: 10%; left: 4%; } .fb-3 { top: 52%; left: 3%; } .fb-5 { top: 74%; left: 6%; }
    .fb-4 { top: 10%; left: 88%; } .fb-6 { top: 44%; left: 90%; } .fb-8 { top: 74%; left: 86%; }
    .fb-7 { top: 24%; left: 18%; }
}

/* ============================================================================
   STICKY DOWNLOAD BAR — site-wide, appears on scroll, dismissible
   ========================================================================== */
.sticky-download {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 -10px 40px -18px rgba(40,33,99,0.4);
    transform: translateY(110%);
    transition: transform 0.5s var(--ease-out);
}
.sticky-download.visible { transform: translateY(0); }
.sd-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
    padding: 0.7rem 1.2rem;
}
.sd-icon { border-radius: 12px; box-shadow: var(--shadow-sm); flex: none; }
.sd-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sd-text strong { color: var(--ink-900); font-size: 1rem; }
.sd-text span { color: var(--ink-400); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-cta { display: flex; gap: 0.6rem; margin-left: auto; }
.sd-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.1rem; border-radius: var(--radius-full);
    font-weight: 700; font-size: 0.92rem; text-decoration: none;
    transition: transform var(--transition-fast) var(--ease-out), box-shadow var(--transition-normal);
}
.sd-btn svg { width: 18px; height: 18px; }
.sd-apple { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-brand); }
.sd-google { background: #fff; color: var(--ink-900); border: 1.5px solid #dcd9ec; }
.sd-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sd-close {
    flex: none; border: none; background: transparent; cursor: pointer;
    font-size: 1.5rem; line-height: 1; color: var(--ink-400); padding: 0.2rem 0.4rem;
    border-radius: 8px; transition: background var(--transition-fast), color var(--transition-fast);
}
.sd-close:hover { background: var(--canvas-lav); color: var(--ink-900); }

@media (max-width: 720px) {
    .sd-text span { display: none; }
    .sd-text strong { font-size: 0.9rem; }
    .sd-btn span { display: none; }       /* icon-only store buttons on mobile */
    .sd-btn { padding: 0.6rem 0.8rem; }
    .sd-inner { gap: 0.7rem; padding: 0.6rem 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sticky-download { transition: none; }
}

/* ---- Header cart icon + badge (site-wide; header is injected by components.js) ---- */
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius-full); color: var(--ink-700); margin-right: 0.4rem; transition: background var(--transition-fast); }
.nav-cart:hover { background: var(--canvas-lav); }
.nav-cart svg { width: 22px; height: 22px; }
#cart-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--gradient-brand); color: #fff; font-size: 0.68rem; font-weight: 800; border-radius: 99px; display: none; place-items: center; }
