/* =====================================================
   Xpensplit - One Page Website Styles
   Brand palette extracted from app icon (blue→teal gradient)
   ===================================================== */

:root {
    --c-primary: #1E88E5;
    --c-primary-dark: #0D47A1;
    --c-primary-light: #42A5F5;
    --c-cyan: #00BCD4;
    --c-teal: #26C6DA;
    --c-accent-green: #22C55E;
    --c-accent-purple: #7B5FFF;
    --c-accent-orange: #FF8A3D;
    --c-accent-pink: #FF4D8D;

    --c-text: #0F1B2D;
    --c-text-soft: #4A5A75;
    --c-text-muted: #7A8AA0;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F4F8FF;
    --c-bg-alt: #EEF4FE;
    --c-border: #E2EAF5;
    --c-shadow: 0 20px 60px -20px rgba(15, 27, 45, 0.18);
    --c-shadow-lg: 0 30px 80px -20px rgba(30, 136, 229, 0.35);

    --grad-primary: linear-gradient(135deg, #00BCD4 0%, #1E88E5 60%, #1565C0 100%);
    --grad-primary-soft: linear-gradient(135deg, #E0F4FF 0%, #EAF1FF 100%);
    --grad-hero: linear-gradient(135deg, #00BCD4 0%, #1E88E5 50%, #1565C0 100%);
    --grad-text: linear-gradient(135deg, #00BCD4 0%, #1E88E5 100%);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --container: 1200px;
    --header-h: 76px;

    --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* =================== RESET =================== */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    /* clip stray horizontal overflow (e.g. AOS slide transforms) at the
       viewport. 'clip' instead of 'hidden' so position: sticky keeps working. */
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-primary-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--c-text);
    margin: 0 0 .6em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }
p { margin: 0 0 1em; color: var(--c-text-soft); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section {
    padding: clamp(60px, 8vw, 110px) 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 60px);
}
.section-head p { color: var(--c-text-soft); font-size: 1.05rem; }

.section-eyebrow {
    display: inline-block;
    background: var(--grad-primary-soft);
    color: var(--c-primary);
    font-weight: 600;
    font-size: .82rem;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(30, 136, 229, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(30, 136, 229, .65); color: #fff; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border: 2px solid var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }

/* =================== HEADER =================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: #ffffff;
    z-index: 100;
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(15, 27, 45, .08);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text);
    font-weight: 800;
    font-family: var(--font-display);
}
.brand:hover { color: var(--c-text); }
.brand-logo {
    width: 38px; height: 38px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30, 136, 229, .25);
}
.brand-name { font-size: 1.25rem; }

.nav-desktop {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-desktop a {
    color: var(--c-text);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
}
.nav-desktop a::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--grad-primary);
    transition: width .25s ease;
    border-radius: 2px;
}
.nav-desktop a:hover { color: var(--c-primary); }
.nav-desktop a:hover::after { width: 100%; }

.header-cta { display: inline-flex; flex-shrink: 0; }
.header-inner > .brand { flex-shrink: 0; }
.nav-desktop { flex: 0 1 auto; min-width: 0; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--c-bg-soft);
    align-items: center; justify-content: center;
    flex-direction: column; gap: 5px;
}
.nav-toggle span {
    width: 18px; height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    padding: 24px;
    display: none;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--c-border);
    /* Hidden when closed: opacity + visibility keep it fully out of view
       (a transform alone can't, since it's anchored below the header). */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
    box-shadow: 0 20px 30px -10px rgba(15,27,45,.1);
}
.nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.nav-mobile a {
    color: var(--c-text);
    font-weight: 500;
    padding: 12px 8px;
    border-radius: 10px;
}
.nav-mobile a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.nav-mobile .btn { margin-top: 12px; justify-content: center; }

/* =================== HERO =================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 80px;
    background: var(--grad-hero);
    overflow: hidden;
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,.15) 0%, transparent 40%);
    pointer-events: none;
}
.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
}
.shape-1 { width: 400px; height: 400px; background: #fff; top: -100px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: #00E5FF; bottom: -200px; right: -150px; opacity: .25; }
.shape-3 { width: 300px; height: 300px; background: #7B5FFF; top: 40%; right: 30%; opacity: .15; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text h1 { color: #fff; }
.hero-text h1 .text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #B3E5FC 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-text .lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,.92);
    max-width: 540px;
    margin-bottom: 32px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.2);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.app-badge {
    display: inline-block;
    line-height: 0;
    border-radius: 9px;
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.app-badge img {
    height: 56px;
    width: auto;
    display: block;
    pointer-events: none;
}
.app-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -10px rgba(0,0,0,.4);
}
.app-badge-lg img { height: 64px; }

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.hero-bullets li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
    font-size: .92rem;
}
.hero-bullets i { color: #5EFFA8; }

/* Phone visuals */
.hero-visual { position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; }
.phone-stack { position: relative; width: 100%; max-width: 420px; }
.phone {
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
    transition: transform .35s ease;
    background: transparent;
}
.phone img { width: 100%; height: auto; display: block; }
.phone-front {
    position: relative;
    z-index: 2;
    transform: translateX(-30px) rotate(-4deg);
    max-width: 280px;
    margin: 0 auto;
}
.phone-back {
    position: absolute;
    top: 30px;
    right: 0;
    z-index: 1;
    transform: rotate(6deg);
    max-width: 250px;
    opacity: .92;
}
.phone-tilt { transform: rotate(-3deg); transition: transform .4s ease; }
.phone-tilt:hover { transform: rotate(0deg) scale(1.02); }
.phone-tilt-r { transform: rotate(3deg); transition: transform .4s ease; }
.phone-tilt-r:hover { transform: rotate(0deg) scale(1.02); }

.float-chip {
    position: absolute;
    background: #fff;
    color: var(--c-text);
    padding: 10px 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 30px -8px rgba(15,27,45,.25);
    animation: floaty 5s ease-in-out infinite;
    z-index: 3;
}
.float-chip i { color: var(--c-primary); }
.chip-1 { top: 8%; left: -10px; animation-delay: 0s; }
.chip-2 { top: 45%; right: -20px; animation-delay: 1.2s; }
.chip-2 i { color: var(--c-accent-purple); }
.chip-3 { bottom: 14%; left: 30px; animation-delay: 2.4s; }
.chip-3 i { color: var(--c-accent-green); }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =================== TRUST STRIP =================== */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    padding: 28px 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--c-text-soft);
    font-weight: 600;
    font-size: .92rem;
    text-align: center;
}
.trust-item i {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--grad-primary-soft);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =================== FEATURES GRID =================== */
.features { background: var(--c-bg-soft); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--c-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    border: 1px solid transparent;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -15px rgba(30, 136, 229, .25);
    border-color: rgba(30, 136, 229, .15);
}
.feature-icon {
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 22px;
    box-shadow: 0 12px 24px -8px currentColor;
}
.icon-blue { background: linear-gradient(135deg, #1E88E5, #0D47A1); }
.icon-purple { background: linear-gradient(135deg, #7B5FFF, #4527A0); }
.icon-green { background: linear-gradient(135deg, #22C55E, #047857); }
.icon-cyan { background: linear-gradient(135deg, #00BCD4, #006978); }
.icon-orange { background: linear-gradient(135deg, #FF8A3D, #D84315); }
.icon-pink { background: linear-gradient(135deg, #FF4D8D, #AD1457); }

.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; }

/* =================== ABOUT =================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-stats {
    display: flex;
    gap: 36px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.about-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-stats .stat strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-stats .stat span {
    color: var(--c-text-muted);
    font-size: .88rem;
    font-weight: 500;
}
.about-visual { display: flex; justify-content: center; }
.about-visual .phone {
    max-width: 320px;
    border-radius: 32px;
}

/* =================== SHOWCASE =================== */
.showcase { background: linear-gradient(180deg, #FFFFFF 0%, var(--c-bg-soft) 100%); }
.showcase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
}
.showcase-row.reverse .showcase-text { order: 2; }
.showcase-row.reverse .showcase-visual { order: 1; }
.showcase-text .step-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}
.showcase-text h3 {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    margin-bottom: 16px;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--c-text-soft);
    font-weight: 500;
}
.check-list i {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, .15);
    color: var(--c-accent-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
}
.showcase-visual { display: flex; justify-content: center; }
.showcase-visual .phone { max-width: 320px; }

/* =================== GALLERY =================== */
.gallery { background: var(--c-bg); }
.gallery-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 4px 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--c-primary) transparent;
}
.gallery-track::-webkit-scrollbar { height: 8px; }
.gallery-track::-webkit-scrollbar-track { background: var(--c-bg-soft); border-radius: 4px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--grad-primary); border-radius: 4px; }
.gallery-phone {
    flex: 0 0 240px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 50px -15px rgba(15, 27, 45, .25);
    cursor: zoom-in;
    scroll-snap-align: start;
    transition: transform .35s ease, box-shadow .35s ease;
    background: #fff;
}
.gallery-phone:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(30, 136, 229, .4);
}
.gallery-phone img { display: block; width: 100%; }

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.gallery-btn {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 10px 24px -8px rgba(30, 136, 229, .55);
    transition: transform .2s ease;
}
.gallery-btn:hover { transform: translateY(-2px); }

/* =================== PLATFORM TABS (Gallery) =================== */
.platform-tabs {
    display: flex;
    justify-content: center;
    background: var(--c-bg-soft);
    padding: 6px;
    border-radius: 999px;
    margin: 0 auto 36px;
    gap: 4px;
    border: 1px solid var(--c-border);
    width: fit-content;
}
.platform-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    color: var(--c-text-soft);
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.platform-tab i { font-size: 1.05rem; }
.platform-tab:hover { color: var(--c-primary); }
.platform-tab.active {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(30, 136, 229, .55);
}

.gallery-track { display: none; }
.gallery-track.active { display: flex; }

/* =================== DOWNLOAD CTA =================== */
.download-cta {
    background: var(--grad-hero);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.download-cta::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.18) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,.1) 0%, transparent 40%);
    pointer-events: none;
}
.download-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.download-cta h2 { color: #fff; }
.download-cta p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 32px; }
.cta-stores {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* =================== FAQ =================== */
.faq { background: var(--c-bg); }
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--c-bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
    border-color: var(--c-primary);
    box-shadow: 0 16px 40px -16px rgba(30, 136, 229, .2);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--c-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f067';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
    transition: transform .25s ease;
}
.faq-item[open] summary::after { content: '\f068'; }
.faq-body {
    padding: 0 24px 22px;
    color: var(--c-text-soft);
    line-height: 1.7;
}

/* =================== CONTACT =================== */
.contact { background: var(--c-bg-soft); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: 0 8px 24px -10px rgba(15, 27, 45, .1);
}
.contact-list i {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--grad-primary-soft);
    color: var(--c-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-list strong { display: block; color: var(--c-text); margin-bottom: 2px; }
.contact-list a { color: var(--c-primary); }

.contact-form {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--c-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
    font-weight: 600;
    font-size: .88rem;
    color: var(--c-text);
}
.form-row input,
.form-row textarea {
    padding: 14px 16px;
    border: 2px solid var(--c-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--c-text);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
}
.form-status {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 500;
    font-size: .92rem;
    margin: 0;
}
.form-status.show { display: flex; }
.form-status.success {
    background: rgba(34, 197, 94, .12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, .35);
}
.form-status.error {
    background: rgba(239, 68, 68, .1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, .3);
}
.form-status .status-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: .9rem;
}
.form-status.success .status-icon {
    background: var(--c-accent-green);
    animation: pop-in .45s cubic-bezier(.34, 1.56, .64, 1);
}
.form-status.error .status-icon {
    background: #ef4444;
}
@keyframes pop-in {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.btn .btn-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label,
.btn.is-loading .btn-icon { display: none; }
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =================== FOOTER =================== */
.site-footer {
    background: #0F1B2D;
    color: rgba(255,255,255,.75);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 50px;
}
.footer-brand p {
    color: rgba(255,255,255,.65);
    margin: 16px 0 20px;
    max-width: 320px;
    font-size: .94rem;
}
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-stores {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.app-badge-sm img { height: 44px; }

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
    font-weight: 700;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,.7);
    font-size: .92rem;
    padding: 6px 0;
    transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover {
    color: #fff;
    transform: translateX(3px);
}
.footer-meta {
    display: block;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin-top: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 22px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,.6);
    font-size: .88rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,.7); }
.footer-bottom-links a:hover { color: #fff; }

/* =================== LIGHTBOX =================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(8, 16, 32, .92);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 30px 80px -10px rgba(0,0,0,.7);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
    transition: background .2s ease, transform .2s ease;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--c-primary);
}

/* =================== BACK TO TOP =================== */
.back-to-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px -10px rgba(30, 136, 229, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); }

/* =================== RESPONSIVE =================== */
@media (max-width: 992px) {
    .nav-desktop, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-mobile { display: flex; }
    .hero-grid, .about-grid, .showcase-row, .showcase-row.reverse, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    /* Stop wide grid items (e.g. phone mockups) from stretching the track
       past the viewport and clipping the text column. */
    .hero-grid > *, .about-grid > *, .showcase-row > *, .contact-grid > * { min-width: 0; }
    .showcase-row.reverse .showcase-text { order: 1; }
    .showcase-row.reverse .showcase-visual { order: 2; }
    .feature-grid, .price-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { min-height: 460px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-card-featured { transform: none; }
    .price-card-featured:hover { transform: translateY(-6px); }
}

@media (max-width: 600px) {
    :root { --header-h: 68px; }
    .feature-grid, .price-grid, .trust-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .app-badge { display: flex; justify-content: center; }
    .app-badge img { margin: 0 auto; }
    .hero-bullets { flex-direction: column; gap: 10px; }
    .phone-stack { max-width: min(320px, 100%); margin: 0 auto; }
    .phone-front { max-width: 220px; transform: translateX(-15px) rotate(-3deg); }
    .phone-back { max-width: 200px; }
    .float-chip { font-size: .76rem; padding: 8px 12px; }
    .chip-1 { left: -6px; }
    .chip-2 { right: -8px; }
    .gallery-phone { flex-basis: 200px; }
    .contact-form { padding: 24px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .about-stats { gap: 20px; }
    .about-stats .stat strong { font-size: 1.8rem; }
    .price-card-featured { transform: none; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
}
