/*
 * StockoNova — site vitrine (stockonova.com). Shared by every page; the app's own brand green, so a prospect
 * who lands here from a document and then opens the app meets the same colour twice.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #047857;          /* emerald-700: white text on it is 5.5:1 */
    --primary-dark: #065f46;
    --primary-fill: #059669;     /* the app's theme colour, for fills only */
    --primary-soft: #ecfdf5;
    --primary-tint: rgba(5, 150, 105, 0.1);
    --text: #1f2937;
    --text-light: #4b5563;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.08);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
p { color: var(--text-light); }
a { color: var(--primary); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--primary); color: #fff; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 44px; padding: 0.8rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; font-family: inherit;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); padding-left: 1rem; padding-right: 1rem; }
.btn-ghost:hover { color: var(--primary); }
.btn-large { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #34d399; outline-offset: 2px; }

/* Navigation */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo {
    font-size: 1.4rem; font-weight: 800; color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }
.nav-cta .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text);
}
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 1100;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { font-size: 1.25rem; color: var(--text); text-decoration: none; font-weight: 600; }
.mobile-menu-close {
    position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px;
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text);
}

/* Launch offer */
.offer-banner {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
    background: #fef3c7; color: #78350f; text-align: center;
    padding: 0.65rem 1rem; font-size: 0.9rem; font-weight: 500;
    margin-top: 66px; border-bottom: 1px solid #fde68a;
}
.offer-banner strong { font-weight: 700; }

/* Hero */
.hero {
    padding: 4.5rem 0 5rem;
    background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 60%, #ffffff 100%);
    position: relative; overflow: hidden;
}
.hero.hero-flush { padding-top: 8.5rem; }
.hero-content { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--primary-tint); color: var(--primary-dark);
    padding: 0.45rem 1rem; border-radius: 100px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-title span { color: var(--primary); }
.hero-description { font-size: 1.15rem; margin-bottom: 2rem; line-height: 1.7; max-width: 36em; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-reassure {
    margin-top: 1rem; font-size: 0.9rem; color: var(--text-light);
    display: flex; align-items: flex-start; gap: 0.4rem;
}
.hero-reassure svg { flex-shrink: 0; margin-top: 0.2em; }
.hero-facts {
    display: flex; gap: 2rem; flex-wrap: wrap;
    margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.hero-fact-value { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.hero-fact-label { font-size: 0.85rem; color: var(--text-light); }

/* App mockup (illustrative, fictional data) */
.mockup {
    width: 100%; max-width: 480px; margin: 0 auto;
    border-radius: 16px; background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-xl); padding: 1.25rem;
}
.mockup-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--border);
    font-size: 0.8rem; color: var(--text-light);
}
.mockup-header strong { color: var(--text); font-size: 0.95rem; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 0.9rem; }
.mockup-kpi { background: var(--bg-alt); border-radius: 10px; padding: 0.6rem; }
.mockup-kpi-value { font-weight: 800; font-size: 1rem; color: var(--text); font-variant-numeric: tabular-nums; }
.mockup-kpi-label { font-size: 0.7rem; color: var(--text-light); }
.mockup-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.mockup-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.75rem; background: var(--bg-alt); border-radius: 10px;
}
.mockup-icon {
    width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.mockup-text { flex: 1; min-width: 0; }
.mockup-text-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.mockup-text-sub { font-size: 0.75rem; color: var(--text-light); }
.mockup-value { font-weight: 700; font-size: 0.85rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mockup-tag {
    font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 100px;
    background: var(--primary-soft); color: var(--primary-dark); white-space: nowrap;
}
.mockup-caption { margin-top: 0.75rem; text-align: center; font-size: 0.75rem; color: var(--text-light); }

/* Section header */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-header p { margin-top: 1rem; font-size: 1.1rem; }
.section-badge {
    display: inline-block; background: var(--primary-tint); color: var(--primary-dark);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1rem;
}

/* The sale, step by step */
.flow { background: var(--bg); }
.flow-steps {
    list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
    counter-reset: step;
}
.flow-step {
    position: relative; padding: 1.5rem 1.25rem; background: var(--bg-alt);
    border: 1px solid var(--border); border-radius: var(--radius);
    counter-increment: step;
}
.flow-step::before {
    content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 0.9rem;
    margin-bottom: 0.9rem;
}
.flow-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.flow-step p { font-size: 0.9rem; line-height: 1.55; }
.flow-step .who { display: block; margin-top: 0.6rem; font-size: 0.78rem; font-weight: 600; color: var(--primary-dark); }

/* Feature cards */
.features { background: var(--bg-alt); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { border-color: var(--primary-fill); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 1.1rem; background: var(--primary-soft);
}
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.95rem; }
.feature-list { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.45rem; }
.feature-list li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; color: var(--text); }
.feature-list li::before {
    content: ''; position: absolute; left: 0; top: 0.5em;
    width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--primary-fill); border-bottom: 2px solid var(--primary-fill);
    transform: rotate(-45deg);
}

/* Roles */
.roles { background: var(--bg); }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.role-card { padding: 1.4rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.role-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.role-card p { font-size: 0.92rem; }

/* Optional modules */
.modules { background: var(--bg-alt); }
.modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.module-card {
    padding: 2rem; border-radius: var(--radius); background: #fff;
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.module-label {
    display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: #92400e; background: #fef3c7; padding: 0.25rem 0.7rem; border-radius: 100px; margin-bottom: 0.9rem;
}
.module-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

/* Dark band (principals teaser, Algeria) */
.band-dark {
    background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
    color: #fff; position: relative; overflow: hidden;
}
.band-dark .section-header h2, .band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark p { color: rgba(255, 255, 255, 0.78); }
.band-dark .section-badge { background: rgba(255, 255, 255, 0.12); color: #a7f3d0; }
.band-dark a:not(.btn) { color: #a7f3d0; }

.teaser { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.teaser h2 { margin-bottom: 1rem; }
.teaser p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.band-dark .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.band-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* Report mockup (principals page) */
.report {
    background: #fff; color: var(--text); border-radius: 10px; box-shadow: var(--shadow-xl);
    padding: 1.5rem 1.5rem 1rem; font-size: 0.8rem; max-width: 460px; margin: 0 auto;
    border: 1px solid var(--border);
}
.report-store { font-weight: 800; font-size: 0.95rem; }
.report-title { text-align: center; font-weight: 800; font-size: 1.05rem; margin-top: 0.75rem; letter-spacing: 0.02em; }
.report-sub { text-align: center; color: var(--text-light); font-size: 0.78rem; margin-bottom: 0.9rem; }
.report h4 { font-size: 0.8rem; margin: 0.8rem 0 0.35rem; }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report th, .report td { border: 1px solid #d1d5db; padding: 0.3rem 0.45rem; text-align: right; font-size: 0.74rem; }
.report th { background: #f3f4f6; font-weight: 600; text-align: center; }
.report td:first-child { text-align: left; }
.report .bar { display: block; height: 7px; background: var(--primary-fill); border-radius: 2px; }
.report-foot {
    margin-top: 0.9rem; padding-top: 0.5rem; border-top: 1px solid var(--border);
    font-size: 0.66rem; color: var(--text-light); display: flex; justify-content: space-between; gap: 0.5rem;
}
.report-note { text-align: center; margin-top: 0.75rem; font-size: 0.8rem; }

/* Two-column "is / is not" */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.split-card { padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.split-card h3 { margin-bottom: 1rem; }
.split-card.is-not { background: var(--bg-alt); }
.split-card.is-not .feature-list li::before {
    border: none; transform: none; top: 0.05em; width: auto; height: auto;
    content: '—'; color: var(--text-light);
}

/* Getting started */
.start { background: var(--bg); }
.start-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: start; }
.start-step { padding: 1.75rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); counter-increment: start; }
.start-step::before {
    content: counter(start); display: block; font-size: 2rem; font-weight: 900;
    color: var(--primary); line-height: 1; margin-bottom: 0.75rem;
}
.start-step h3 { margin-bottom: 0.5rem; }
.start-step p { font-size: 0.95rem; }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.faq-question {
    padding: 1.1rem 1.5rem; min-height: 44px; width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; font-weight: 600; color: var(--text); font-size: 1rem; font-family: inherit;
    background: none; border: none; text-align: left;
}
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; }
.faq-item.active .faq-answer { display: block; }
.faq-answer p { font-size: 0.97rem; line-height: 1.7; }

/* Call to action */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 620px; }
.cta-section .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.cta-section .btn-primary:hover { background: #f0fdf4; }
.cta-points { display: flex; justify-content: center; gap: 1.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.cta-point { display: flex; align-items: center; gap: 0.45rem; font-size: 0.92rem; color: #fff; }

/* Contact */
.contact { background: var(--bg-alt); }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 720px; margin: 0 auto; }
.contact-channel {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem;
    padding: 2rem 1.5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease;
}
.contact-channel:hover { transform: translateY(-3px); border-color: var(--primary-fill); }
.contact-channel-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.contact-channel-icon svg { width: 30px; height: 30px; }
.contact-channel h3 { color: var(--text); font-size: 1.1rem; }
.contact-channel p { font-size: 0.9rem; }
.contact-channel .channel-action { font-weight: 700; color: var(--primary); font-size: 0.92rem; }
.contact-hint { text-align: center; margin: 1.75rem auto 0; max-width: 640px; font-size: 0.95rem; }

/* Footer */
.footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.72); padding: 3rem 0 1.5rem; }
.footer p { color: rgba(255, 255, 255, 0.72); }
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
    margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand h2 { color: #fff; margin-bottom: 0.75rem; font-size: 1.3rem; }
.footer-brand p { font-size: 0.92rem; }
.footer-links h2 { color: #fff; margin-bottom: 1rem; font-size: 0.95rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; }

/* Floating Messenger bubble */
.float-messenger {
    position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 900;
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.8rem 1.25rem 0.8rem 0.95rem; border-radius: 100px;
    background: #0866ff; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(8, 102, 255, 0.4);
}
.float-messenger:hover { transform: scale(1.04); }
.float-messenger svg { width: 24px; height: 24px; flex-shrink: 0; }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
    .js .fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .js .fade-in.visible { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 1024px) {
    .features-grid, .roles-grid { grid-template-columns: 1fr 1fr; }
    .flow-steps { grid-template-columns: repeat(3, 1fr); }
}

/* Phone — the app's breakpoint */
@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .offer-banner { font-size: 0.82rem; margin-top: 62px; }

    section { padding: 3.25rem 0; }
    .container { padding: 0 1rem; }
    .hero { padding: 2.5rem 0 3rem; }
    .hero.hero-flush { padding-top: 6rem; }
    .hero-content, .teaser, .modules-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
    .hero-cta .btn { flex: 1 1 100%; }
    .hero-facts { gap: 1.25rem; }
    .section-header { margin-bottom: 2.25rem; }

    .features-grid, .roles-grid, .start-steps, .flow-steps { grid-template-columns: 1fr; }
    .contact-channels { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .mockup-kpi-value { font-size: 0.85rem; }
    .float-messenger .float-label { display: none; }
    .float-messenger { padding: 0.85rem; }
}

@media print {
    .nav, .footer, .cta-section, .float-messenger, .offer-banner { display: none; }
    body { color: #000; }
}
