/*
Theme Name: Bike FixUp Theme
Author: Tsega
Description: A modern, high-performance WordPress theme for Bike FixUp.
Version: 1.0
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700;800&display=swap");

:root {
    /* Base Colors from Lovable */
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 348 90% 35%;
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 100%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 348 90% 55%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 348 90% 35%;
    --radius: 0.75rem;

    /* Custom tokens */
    --crimson-deep: hsl(348, 95%, 25%);
    --crimson-base: hsl(348, 90%, 45%);
    --crimson-bright: hsl(355, 100%, 60%);
    --metallic-red: linear-gradient(
      180deg,
      var(--crimson-bright) 0%,
      var(--crimson-base) 50%,
      var(--crimson-deep) 100%
    );
    --gradient-primary: var(--metallic-red);
    --gradient-dark: linear-gradient(180deg, hsl(0, 0%, 98%), hsl(0, 0%, 100%));
    --gradient-card: linear-gradient(145deg, hsl(0, 0%, 100%), hsl(0, 0%, 98%));
    --shadow-glow: 0 10px 30px -10px hsla(348, 100%, 35%, 0.5);
    --shadow-card: 0 20px 50px -12px hsl(0 0% 0% / 0.15);
    --glass-bg: hsla(0, 0%, 100%, 0.7);
    --glass-border: hsla(0, 0%, 0%, 0.08);
    
    /* Transitions */
    --theme-transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Dark Mode Tokens */
.dark {
    --background: 224 71% 4%;
    --foreground: 213 31% 91%;
    --card: 224 71% 4%;
    --card-foreground: 213 31% 91%;
    --popover: 224 71% 4%;
    --popover-foreground: 215 20.2% 65.1%;
    --secondary: 222.2 47.4% 11.2%;
    --secondary-foreground: 210 40% 98%;
    --muted: 223 47% 11%;
    --muted-foreground: 215.4 16.3% 56.9%;
    --accent: 348 80% 65%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    --border: 216 34% 17%;
    --input: 216 34% 17%;
    --ring: 216 34% 17%;
    
    --glass-bg: hsla(224, 71%, 4%, 0.7);
    --glass-border: hsla(213, 31%, 91%, 0.1);
    --gradient-dark: linear-gradient(180deg, hsl(224, 71%, 4%), hsl(224, 71%, 8%));
    --gradient-card: linear-gradient(145deg, hsl(224, 71%, 6%), hsl(224, 71%, 4%));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: var(--theme-transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    color: hsl(var(--foreground));
    transition: var(--theme-transition);
}

.text-black, .text-gray-900 {
    color: rgb(35, 37, 43);
}

.dark .text-black, .dark .text-gray-900 {
    color: hsl(var(--foreground)) !important;
}

/* Gradient Text Utility */
.gradient-text {
    background: var(--metallic-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.dark .gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section & Card Theming */
.media-coverage-section {
    background-color: hsl(var(--background)) !important;
}

.editorial-card {
    background-color: hsl(var(--card)) !important;
}

.dark .editorial-card {
    background-color: hsl(var(--card)) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.font-display {
    font-family: 'Manrope', sans-serif;
}

/* Navigation & List Resets */
nav ul, nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item, .mobile-menu-item {
    list-style: none;
}

/* Custom Components */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    transition: var(--theme-transition);
}

.gradient-text {
    background-image: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: 0.15em;
    margin-right: -0.15em;
}

.gradient-bg {
    background-image: var(--gradient-primary);
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-main {
    overflow-x: hidden;
    width: 100%;
}

.section-padding {
    padding: 2.5rem 1rem;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 3.5rem 2rem;
    }
}

.container-custom {
    width: 100%;
    max-width: 100rem;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes roll {
  0% { transform: translateX(-2px) rotate(-1deg); }
  25% { transform: translateY(-1px) rotate(0deg); }
  50% { transform: translateX(2px) rotate(1deg); }
  75% { transform: translateY(-1px) rotate(0deg); }
  100% { transform: translateX(-2px) rotate(-1deg); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-roll { animation: roll 0.8s linear infinite; }
.animate-spin-slow { animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-scale-up { animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.animate-marquee { animation: marquee var(--marquee-duration, 60s) linear infinite; }
.animate-marquee-reverse { animation: marquee-reverse var(--marquee-duration, 60s) linear infinite; }

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Grid Helpers */
.grid-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Global Fixed Header Spacer */
body:not(.home) .site-main {
    margin-top: 32px;
}

@media (min-width: 1024px) {
    body:not(.home) .site-main {
        margin-top: 48px;
    }
}


/* User Account Dropdown */
/* Scoped Dropdown (if needed, but header uses Tailwind) */
.user-account-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.absolute.invisible {
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container img {
    transition: transform 0.3s ease;
}

.logo-container:hover img {
    transform: scale(1.05);
}

/* Footer SEO Section */
#seo-content-wrapper {
    transition: max-height 0.5s cubic-bezier(0, 0, 0.2, 1);
}

#seo-overlay {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#toggle-seo-content svg {
    transition: transform 0.3s ease;
}

.dark #seo-overlay {
    background: linear-gradient(to top, hsl(224, 71%, 4%), transparent);
}


/* Footer Enhancements */
footer .prose p { margin-bottom: 0.5rem; }
footer .prose .dark p { color: #9ca3af; }

/* Custom Details Accordion */
footer details summary::-webkit-details-marker { display: none; }
footer details > summary { list-style: none; }

footer details[open] summary svg { transform: rotate(180deg); color: hsl(var(--primary)); }
footer details summary:hover { color: hsl(var(--primary)); }

/* Animation-like feel for details */
footer details > div {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SEO Toggle Arrow */
#toggle-seo-content.active svg { transform: rotate(180deg); }

/* --- Accessibility & Global Wizard Styles --- */
.bf-input {
    border: 1px solid #e2e8f0 !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: -0.01em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.bf-input:focus {
    border-color: hsl(var(--primary)) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px hsla(348, 90%, 35%, 0.1) !important;
    transform: translateY(-1px);
}

.dark .bf-input {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

.dark .bf-input:focus {
    border-color: hsl(var(--primary)) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 0 4px hsla(348, 90%, 35%, 0.2) !important;
}

.bf-primary-button {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, #a32626 100%) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-style: italic !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(201, 47, 47, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.bf-primary-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.bf-primary-button:hover:not(:disabled)::after {
    left: 100%;
}

.bf-primary-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(201, 47, 27, 0.3) !important;
    filter: brightness(1.1);
}

.bf-primary-button:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.bf-primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}

.bf-label {
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-style: italic !important;
}

.dark .bf-label {
    color: #94a3b8 !important;
}

/* --- Franchise & Partner Page Styles --- */
.bg-subtle { background-color: #f8fafc; }
.dark .bg-subtle { background-color: rgba(255,255,255,0.02); }

.bf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .two-col { grid-template-columns: 1fr 1fr; }
}

.section-label {
    display: inline-block;
    color: hsl(var(--primary));
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-style: italic;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-style: italic;
    padding-right: 0.15em;
}

.section-title em {
    color: hsl(348, 90%, 35%);
    font-style: italic;
}

.section-body {
    color: #64748b;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.head-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Store Image */
.store-img-wrap {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15);
}

.store-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.store-img-wrap:hover img { transform: scale(1.05); }

.store-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.store-overlay strong { display: block; font-size: 1.5rem; font-style: italic; text-transform: uppercase; }
.store-overlay span { display: block; font-size: 0.875rem; opacity: 0.8; font-weight: 600; }

.store-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: hsl(348, 90%, 35%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Feature Lists */
.sfs { display: flex; flex-direction: column; gap: 2rem; }
.sf { display: flex; gap: 1.5rem; align-items: flex-start; }
.sf-ico {
    font-size: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: white;
    box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    flex-shrink: 0;
}

.sf h4 { font-size: 1.125rem; font-weight: 900; margin-bottom: 0.5rem; text-transform: uppercase; font-style: italic; }
.sf p { color: #64748b; font-size: 0.875rem; line-height: 1.5; }

/* Market Chart Section */
.market-chart-box {
    background: white;
    padding: 2.5rem;
    border-radius: 2.5rem;
    box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15);
    margin-top: 2rem;
}

.chart-tag {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.challenges { margin-top: 3rem; }
.challenges h5 { font-size: 0.875rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; color: #1e293b; }
.ci { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; font-size: 0.875rem; font-weight: 600; color: #475569; }
.ci-x { color: #ef4444; font-weight: 900; }

.big-stat-num {
    font-size: 5rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    color: hsl(348, 90%, 35%);
    margin-bottom: 1rem;
}

.big-stat-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.rule-red { width: 4rem; height: 0.5rem; background: hsl(348, 90%, 35%); margin-bottom: 3rem; }

.mini-cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.mc { background: white; padding: 2rem; border-radius: 2rem; box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15); }
.mc-num { font-size: 2rem; font-weight: 900; font-style: italic; color: hsl(348, 90%, 35%); margin-bottom: 0.5rem; }
.mc p { font-size: 0.875rem; font-weight: 600; color: #64748b; line-height: 1.4; }

/* Grid Components */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wc {
    background: white;
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15);
    position: relative;
    overflow: hidden;
}

.wc-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.5rem;
    height: 100%;
    background: hsl(348, 90%, 35%);
}

.wc-ico { font-size: 2.5rem; margin-bottom: 1.5rem; }
.wc h4 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; font-style: italic; margin-bottom: 1rem; }
.wc p { color: #64748b; line-height: 1.6; }

/* Marketing Pillars */
.pillar-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.pillar { display: flex; gap: 1.5rem; align-items: flex-start; }
.pillar-ico {
    width: 3rem; height: 3rem; background: #fee2e2; color: #b91c1c;
    display: flex; align-items: center; justify-content: center;
    border-radius: 0.75rem; font-size: 1.25rem; flex-shrink: 0;
}

.mkt-metrics { display: flex; flex-direction: column; gap: 1.5rem; }
.mm { background: #1e293b; color: white; padding: 2.5rem; border-radius: 2.5rem; }
.mm-num { font-size: 2.5rem; font-weight: 900; font-style: italic; color: #f87171; margin-bottom: 0.5rem; }
.mm p { opacity: 0.8; font-weight: 600; line-height: 1.4; }

/* App Grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.app-panel { background: white; border-radius: 3rem; overflow: hidden; box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15); }
.ap-head { padding: 3rem 2.5rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.ap-head.partner { background: #fef2f2; }
.ap-badge {
    display: inline-block; padding: 0.25rem 1rem; border-radius: 2rem; font-size: 10px; font-weight: 900;
    text-transform: uppercase; tracking: 0.1em;
}
.ap-badge.bp { background: #b91c1c; color: white; }
.ap-badge.bc { background: #1e293b; color: white; }
.ap-head h3 { font-size: 1.75rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.ap-body { padding: 0 2.5rem 3rem; }
.af { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid #f1f5f9; font-weight: 600; font-size: 0.875rem; color: #475569; }
.af-a { color: hsl(348, 90%, 35%); font-weight: 900; }

/* USPS Grid */
.usps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.usp {
    background: white; border: 1px solid #f1f5f9; padding: 2rem; border-radius: 1.5rem; position: relative;
    transition: all 0.3s ease;
}

.usp:hover { transform: translateY(-5px); box-shadow: 0 20px 50px -12px hsl(0 0% 0% / 0.15); border-color: white; }
.usp-ico { font-size: 2rem; margin-bottom: 1.5rem; }
.usp h4 { font-size: 1rem; font-weight: 900; text-transform: uppercase; font-style: italic; line-height: 1.3; }
.usp-n { position: absolute; top: 1.5rem; right: 2rem; font-size: 0.75rem; font-weight: 900; color: #cbd5e1; }

/* Animations */
.reveal, .reveal-l, .reveal-r { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
.reveal.active, .reveal-l.active, .reveal-r.active { opacity: 1; transform: translateY(0); }
.reveal-l { transform: translateX(-30px); }
.reveal-r { transform: translateX(30px); }

/* --- FAQ Accordion --- */
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: white; border: 1px solid #f1f5f9; border-radius: 1.5rem; overflow: hidden; transition: all 0.3s ease; }
.dark .faq-item { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }

.faq-question {
    width: 100%; padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; text-align: left; background: none; border: none; outline: none;
    font-size: 1.125rem; font-weight: 800; font-style: italic; text-transform: uppercase; color: #1e293b;
}
.dark .faq-question { color: #f8fafc; }

.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 2rem; color: #64748b; font-size: 0.95rem; font-weight: 600; line-height: 1.6;
}
.dark .faq-answer { color: #94a3b8; }

.faq-icon {
    width: 24px; height: 24px; background: #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease; color: #94a3b8;
}
.dark .faq-icon { background: rgba(255,255,255,0.05); }

.faq-item.active { border-color: hsl(var(--primary)); box-shadow: 0 10px 30px -10px hsla(348, 90%, 35%, 0.1); }
.faq-item.active .faq-icon { transform: rotate(180deg); background: hsl(var(--primary)); color: white; }
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 1.5rem; }

/* --- Partner App & Expansion Styles --- */
.app-points { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.ap { display: flex; gap: 0.75rem; align-items: center; font-size: 0.95rem; font-weight: 600; color: #475569; }
.ap-ico { color: #22c55e; font-weight: 900; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 1rem; font-size: 0.875rem; font-weight: 800;
    text-transform: uppercase; tracking: 0.05em; transition: all 0.3s ease; font-style: italic;
}
.btn-primary { background: hsl(var(--primary)); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.1); }
.btn-ghost { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-ghost:hover { background: #e2e8f0; color: #1e293b; }

/* Phone Mockup 1 (Login) */
.phone-wrap { position: relative; max-width: 320px; margin: 0 auto; z-index: 1; }
.phone-glow {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, hsla(348, 90%, 35%, 0.15), transparent 70%);
    border-radius: 4rem; z-index: -1; filter: blur(40px);
}
.phone-body {
    background: #111; padding: 12px; border-radius: 3.5rem; width: 310px; margin: 0 auto;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4), inset 0 0 2px 1px rgba(255,255,255,0.1);
}
.phone-screen {
    background: #f8fafc; border-radius: 2.8rem; height: 580px; width: 100%; max-width: 300px; position: relative;
    display: flex; flex-direction: column; align-items: center; padding: 2.5rem 1.5rem;
    overflow: hidden; margin: 0 auto;
}
.phone-screen.p-0 { padding: 0 !important; }
.phone-slider { position: relative; width: 100%; height: 100%; }
.phone-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1.5s ease-in-out;
    z-index: 1;
}
.phone-slide.active { opacity: 1; z-index: 2; }

.phone-notch {
    width: 40%; height: 26px; background: #111; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 1.2rem; border-bottom-right-radius: 1.2rem;
    z-index: 10;
}
.phone-row { width: 100%; display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; color: #94a3b8; margin-bottom: 3rem; }
.phone-logo-wrap {
    width: 64px; height: 64px; background: hsl(var(--primary)); border-radius: 1.25rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(169, 17, 42, 0.3);
}
.phone-logo-wrap svg { width: 32px; height: 32px; }
.phone-heading { font-size: 1.5rem; font-weight: 900; color: #1e293b; margin-bottom: 0.5rem; font-style: italic; }
.phone-subheading { font-size: 0.75rem; font-weight: 600; color: #64748b; margin-bottom: 2rem; }
.phone-field {
    width: 100%; padding: 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
    margin-bottom: 1rem; font-size: 0.875rem; color: #1e293b; font-weight: 600;
}
.phone-cta {
    width: 100%; padding: 1rem; background: hsl(var(--primary)); color: white; border-radius: 1rem;
    text-align: center; font-weight: 800; font-size: 0.875rem; text-transform: uppercase; margin-top: 1rem;
}
.phone-summary {
    position: absolute; bottom: 0; left: 0; right: 0; background: #1e293b; padding: 1.5rem;
    border-top-left-radius: 2rem; border-top-right-radius: 2rem; color: white;
}
.phone-summary-title { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6; margin-bottom: 0.75rem; }
.phone-summary-row { display: flex; justify-content: space-between; }
.phone-summary-row span { font-size: 0.75rem; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.phone-summary-row b { font-size: 0.875rem; color: #f87171; }

/* Phone Mockup 2 (Dashboard) */
.phone-body-2 {
    background: #1e293b; padding: 10px; border-radius: 3rem;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.3);
}
.phone-screen-2 {
    background: #0f172a; border-radius: 2.2rem; height: 500px; position: relative;
    padding: 1.5rem; overflow: hidden; color: white;
}
.pm2-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; margin-top: 0.5rem; }
.pm2-title { font-size: 1.125rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.pm2-badge { background: #ef4444; color: white; font-size: 8px; font-weight: 900; padding: 2px 6px; border-radius: 4px; }
.pm2-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem; border-radius: 1.25rem; margin-bottom: 0.75rem;
    display: flex; align-items: center; gap: 0.75rem; backdrop-filter: blur(10px);
}
.pm2-ico { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.pm2-label { font-size: 0.875rem; font-weight: 900; margin-bottom: 2px; }
.pm2-sub { font-size: 0.75rem; opacity: 0.5; font-weight: 600; }
.pm2-amt { margin-left: auto; font-size: 0.875rem; font-weight: 900; color: #4ade80; }
.pm2-total { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed rgba(255,255,255,0.2); font-size: 0.875rem; font-weight: 900; color: #f87171; text-align: center; }

/* App Store Buttons */
.store-btns { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.store-btn {
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.store-btn:hover { transform: translateY(-5px); filter: brightness(1.1); }
.store-btn img { height: 100px; width: auto; }

.qr-block { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; background: #fff; border-radius: 1.5rem; border: 1px solid #e2e8f0; }
.qr-svg-wrap { width: 64px; height: 64px; border: 1px solid #eee; border-radius: 0.5rem; overflow: hidden; }
.qr-text h5 { font-size: 0.875rem; font-weight: 900; margin-bottom: 2px; }
.qr-text p { font-size: 0.75rem; color: #64748b; line-height: 1.4; font-weight: 600; }

/* Stats Section */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.stat-card {
    text-align: center; padding: 3rem 2rem; background: white; border-radius: 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05); border: 1px solid #f1f5f9;
}
.stat-big { font-size: 3.5rem; font-weight: 900; font-style: italic; color: hsl(var(--primary)); margin-bottom: 0.5rem; }
.stat-card p { font-size: 0.875rem; font-weight: 800; text-transform: uppercase; tracking: 0.1em; color: #64748b; }

/* 3 Steps Guide */
.steps-connector { position: relative; margin-top: 4rem; }
.steps-connector::after {
    content: ''; position: absolute; top: 110px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(to right, #e2e8f0, #e2e8f0 10px, transparent 10px, transparent 20px);
    z-index: 0;
}
@media (max-width: 768px) { .steps-connector::after { display: none; } }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4rem; position: relative; z-index: 1; }
.step-card { text-align: center; }
.step-num {
    width: 64px; height: 64px; background: white; border: 4px solid #f1f5f9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem;
    font-size: 1.25rem; font-weight: 900; color: hsl(var(--primary)); box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.step-card:hover .step-num { background: hsl(var(--primary)); color: white; border-color: hsl(var(--primary)); }
.step-illo { font-size: 4rem; margin-bottom: 2rem; height: 80px; display: flex; align-items: center; justify-content: center; }
.step-card h3 { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; font-style: italic; margin-bottom: 1rem; tracking: -0.02em; }
.step-card p { color: #64748b; font-size: 0.95rem; line-height: 1.6; font-weight: 500; }

/* Animations */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-slide-up { animation: slide-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.animate-fade-in-up { animation: slide-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.animate-fade-in { animation: fade-in 1s ease-out forwards; }

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reveal Animation System */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dark Mode Overrides for Custom Components */
.dark .stat-card,
.dark .mc,
.dark .wc,
.dark .usp,
.dark .sf-ico,
.dark .market-chart-box,
.dark .app-panel,
.dark .qr-block,
.dark .phone-screen {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

.dark .step-num {
    background-color: #111 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.dark .sf h4,
.dark .wc h4,
.dark .usp h4,
.dark .mc-num,
.dark .big-stat-label,
.dark .qr-text h5,
.dark .ap-head h3,
.dark .phone-heading {
    color: white !important;
}

.dark .sf p,
.dark .wc p,
.dark .usp-n,
.dark .mc p,
.dark .qr-text p,
.dark .phone-subheading,
.dark .phone-row {
    color: #94a3b8 !important;
}

.dark .sf-ico,
.dark .wc-ico,
.dark .usp-ico {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: hsl(var(--primary)) !important;
    box-shadow: none !important;
}

.dark .steps-connector::after {
    background: repeating-linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 10px, transparent 10px, transparent 20px) !important;
}

.dark .phone-body,
.dark .phone-notch {
    background-color: #000 !important;
}

.dark .phone-field {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

.dark .ap-head.partner {
    background-color: rgba(185, 28, 28, 0.1) !important;
}

.dark .af {
    border-bottom-color: rgba(255,255,255,0.05) !important;
    color: #94a3b8 !important;
}

.dark .btn-ghost {
    background-color: rgba(255,255,255,0.05) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #f8fafc !important;
}

.dark .btn-ghost:hover {
    background-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

/* =====================================================
   COLOR SYSTEM FIX: dark:text-gray-90 is not a valid
   Tailwind shade. This rule restores correct dark-mode
   text colour across all templates without touching
   the 50+ PHP files that reference it.
   ===================================================== */
.dark .dark\:text-gray-90 {
    color: hsl(var(--foreground));
}

/* =====================================================
   ACCESSIBILITY: Global :focus-visible styles
   Provides a clear, branded keyboard-focus ring on
   every interactive element without affecting mouse/
   touch users (uses :focus-visible, not :focus).
   ===================================================== */
:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 3px;
    border-radius: 6px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 0;
    border-radius: 6px;
}

/* =====================================================
   SERVICES GRID: Show-more / show-less logic
   Moved from inline <style> in services.php to here
   so the rules are cached and not duplicated per render.
   ===================================================== */
#home-services-grid[data-showing-all="false"] .group:nth-child(n+9) {
    display: none !important;
}

.see-more-wrap-home {
    display: flex !important;
    justify-content: center;
    margin-top: 50px;
    width: 100%;
}

.btn-see-more-home {
    padding: 14px 50px;
    border-radius: 99px;
    background: transparent;
    color: hsl(var(--primary)) !important;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid hsl(var(--primary));
    display: inline-block;
}

.btn-see-more-home:hover {
    background: hsl(var(--primary));
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px hsla(348, 90%, 35%, 0.3);
}

/* Dark mode variant */
.dark .btn-see-more-home {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary)) !important;
}

.dark .btn-see-more-home:hover {
    background: hsl(var(--primary));
    color: white !important;
}

/* =====================================================
   PROMO SLIDER: bounce animation
   Moved from inline <style> in promo-slider.php
   ===================================================== */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}
