/* home-sync.css: aligns legacy subpages (global.css + page styles) with the homepage
   design system (src/styles/redesign.css). Loaded last on legacy pages only.
   Page-scoped styles redefine buttons/cards with higher specificity and !important,
   so this layer uses !important on skin properties (colour, border, radius, shadow)
   and leaves layout (padding, size, grid) to each page.
   Revert: remove the <link> to this file in src/layouts/Layout.astro. */

/* ---------- Tokens: blueprint dashed motif -> solid hairlines like the homepage ---------- */
:root {
    --border-dash: 1px solid rgba(255, 255, 255, 0.08);
    --border-dash-accent: 1px solid rgba(77, 182, 172, 0.3);
}

/* ---------- Remove legacy decorations ---------- */
.bp-dot { display: none !important; }
.feature-card::before { display: none !important; }
[data-aos] { opacity: 1 !important; transform: none !important; transition-property: none !important; }

/* ---------- Top lightbar = homepage .lightbar ---------- */
.subpage-lightbar {
    height: 1.5px !important;
    z-index: 200;
    background: linear-gradient(90deg, transparent 5%, rgba(77, 182, 172, 0.35) 25%, #80cbc4 50%, rgba(77, 182, 172, 0.35) 75%, transparent 95%) !important;
    box-shadow: 0 0 20px 1px rgba(77, 182, 172, 0.65), 0 2px 45px 6px rgba(77, 182, 172, 0.28) !important;
}

/* ---------- Primary buttons = .btn-glow ---------- */
.btn-primary, .hero-cta-primary, .product-cta.primary-btn,
.price-cta.primary, .price-cta.pro-btn, .purchase-btn:not(.outline),
.mm-button.mm-primary, .sm-button.sm-primary, .nav-buy {
    background: linear-gradient(180deg, #74cfc6 0%, #4db6ac 100%) !important;
    color: #061312 !important;
    border: 1px solid rgba(128, 203, 196, 0.6) !important;
    border-radius: 0.65rem !important;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.35) inset, 0 0 25px -4px rgba(77, 182, 172, 0.45) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.btn-primary:hover, .hero-cta-primary:hover, .product-cta.primary-btn:hover,
.price-cta.primary:hover, .price-cta.pro-btn:hover, .purchase-btn:not(.outline):hover,
.mm-button.mm-primary:hover, .sm-button.sm-primary:hover, .nav-buy:hover {
    background: linear-gradient(180deg, #88dad2 0%, #5bc2b8 100%) !important;
    color: #061312 !important;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.45) inset, 0 0 32px -2px rgba(77, 182, 172, 0.65) !important;
    transform: translateY(-1px);
}

/* ---------- Secondary buttons = .btn-quiet ---------- */
.btn-outline, .hero-cta-secondary, .product-cta.secondary-btn,
.price-cta.outline, .price-cta.free-btn, .purchase-btn.outline,
.mm-button.mm-secondary, .sm-button.sm-secondary {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #e4e4e7 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.65rem !important;
    box-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
.btn-outline:hover, .hero-cta-secondary:hover, .product-cta.secondary-btn:hover,
.price-cta.outline:hover, .price-cta.free-btn:hover, .purchase-btn.outline:hover,
.mm-button.mm-secondary:hover, .sm-button.sm-secondary:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover, .hero-cta-primary:hover, .purchase-btn:hover,
    .mm-button:hover, .sm-button:hover, .nav-buy:hover { transform: none; }
}

/* ---------- Cards = .panel ---------- */
.feature-card, .price-card, .pricing-card, .stat-card, .hub-card,
.purchase-card, .showcase-card, .mm-card, .sm-card, .install-card {
    background: linear-gradient(180deg, rgba(20, 20, 26, 0.78) 0%, rgba(12, 12, 16, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1rem !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.feature-card:hover, .price-card:hover, .pricing-card:hover, .hub-card:hover,
.purchase-card:hover, .showcase-card:hover, .mm-card:hover, .sm-card:hover, .install-card:hover {
    border-color: rgba(77, 182, 172, 0.32) !important;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), 0 0 35px -10px rgba(77, 182, 172, 0.12) !important;
    transform: none !important;
}
.price-card.featured, .pricing-card.featured, .feature-card.highlight {
    border-color: rgba(77, 182, 172, 0.4) !important;
    box-shadow: 0 0 35px -10px rgba(77, 182, 172, 0.18) !important;
}
/* Doubled class: beats page-scoped `.faq-item[data-astro-cid] { border: dashed !important }` (search.astro) */
body .faq-item.faq-item {
    background: linear-gradient(180deg, rgba(20, 20, 26, 0.78) 0%, rgba(12, 12, 16, 0.92) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.75rem !important;
}

/* ---------- Typography = homepage display-title / section-heading / eyebrow ---------- */
h1, h2 { font-weight: 600 !important; }
h2, .section-title, .cta-box h2 { letter-spacing: -0.028em !important; }
.hero h1 {
    font-size: clamp(2.35rem, 5.2vw, 4.35rem) !important;
    letter-spacing: -0.035em !important;
    line-height: 1.08 !important;
}
.section-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    color: #4db6ac !important;
}

/* ---------- Header = homepage precision bar ---------- */
nav {
    padding: 12px 32px !important;
    background: rgba(8, 8, 10, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 16px;
}
nav .logo { gap: 10px !important; }
nav .logo .logo-mark { height: 24px !important; width: auto; }
nav .logo .logo-words { display: flex; flex-direction: column; gap: 3px; }
nav .logo .logo-wordmark { height: 13px !important; width: auto; align-self: flex-start; }
nav .logo .logo-tagline {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px; font-weight: 400; letter-spacing: 0.08em; line-height: 1;
    color: #6e6e77;
}
.nav-links { gap: 4px !important; }
.nav-links > a, .nav-links .dropdown-trigger {
    font-size: 13px !important; font-weight: 400 !important;
    color: #9a9aa2 !important;
    padding: 6px 12px; border-radius: 6px;
}
.nav-links > a:hover, .nav-links .dropdown-trigger:hover { color: #f2f2f3 !important; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-buy {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 6px 14px; font-size: 13px; line-height: 1.4; white-space: nowrap; text-decoration: none;
}

/* Language toggle = homepage boxed segmented toggle */
.lang-toggle {
    background: #0e0e12 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.5rem !important;
    padding: 2px !important;
    font-size: 11px !important;
}
.lang-toggle button {
    border-radius: 0.375rem !important;
    padding: 0.25rem 0.5rem !important;
    color: #9a9aa2 !important;
    background: transparent !important;
}
.lang-toggle button:hover { color: #f2f2f3 !important; }
.lang-toggle button.active {
    background: rgba(77, 182, 172, 0.2) !important;
    color: #80cbc4 !important;
    font-weight: 600 !important;
}

/* Mobile: header always visible (like the homepage); the floating button opens the link panel */
@media (max-width: 768px) {
    nav {
        padding: 10px 60px 10px 16px !important;
        min-height: 54px;
        transform: none !important;
        background: rgba(8, 8, 10, 0.92) !important;
    }
    nav .logo .logo-tagline { display: none; }
    nav .logo .logo-mark { height: 20px !important; }
    .nav-actions { gap: 8px; }
    .nav-buy { padding: 5px 12px; font-size: 12px; }
    /* Header is now always visible: push page content below it */
    body { padding-top: 40px; }
    /* Link panel = homepage mobile drawer (2-column grid of boxed links).
       Solid background, no nested backdrop-filter (Chrome renders it see-through). */
    .nav-links {
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        padding: 14px 16px 16px !important;
        background: #050507 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .nav-links.open { display: grid !important; }
    .nav-links > a, .nav-links .dropdown-trigger {
        display: block;
        padding: 8px 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0.5rem !important;
        background: #0e0e12;
        color: #f2f2f3 !important;
        text-align: left;
    }
    .nav-links .nav-dropdown-wrapper { grid-column: 1 / -1; display: block; }
    .nav-links .nav-dropdown-content { margin-top: 6px; border-radius: 0.5rem !important; }
    .mobile-fab {
        top: 9px !important; right: 12px !important;
        width: 36px !important; height: 36px !important;
        border-radius: 0.5rem !important;
        background: #0e0e12 !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;
    }
    .mobile-fab.fab-open { border-color: #4db6ac !important; background: #0e0e12 !important; }
    .mobile-fab.fab-open svg line { stroke: #80cbc4 !important; }
}
