/* =====================================================================
   OJAFLOW — Public website styles
   ===================================================================== */

:root {
    --brand: #4f46e5;
    --brand-dark: #4338ca;
    --brand-soft: #eef2ff;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--body);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.text-brand { color: var(--brand) !important; }
.text-muted-2 { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    font-size: .95rem;
    border-radius: 10px;
    padding: .65rem 1.35rem;
    transition: all .15s ease;
}
.btn-brand {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.btn-brand:hover, .btn-brand:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.btn-outline-brand {
    border: 1.5px solid var(--brand);
    color: var(--brand);
    background: transparent;
}
.btn-outline-brand:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-color: var(--brand);
}
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; border-radius: 12px; }

/* ---------- Top navigation ---------- */
.site-nav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: .55rem;
}
.site-nav .nav-link {
    color: var(--body);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .9rem !important;
    border-radius: 8px;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--brand); background: var(--brand-soft); }

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}
.brand-mark.lg { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 13px; }

/* ---------- Hero ---------- */
.hero {
    padding: 6.5rem 0 5rem;
    background:
        radial-gradient(ellipse 60% 50% at 85% 0%, rgba(79, 70, 229, .10), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 100%, rgba(79, 70, 229, .06), transparent 60%),
        var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}
.hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 640px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--body);
    box-shadow: var(--shadow-sm);
}

/* Hero visual card */
.hero-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.hero-panel-head {
    background: var(--ink);
    color: #cbd5e1;
    padding: .8rem 1.1rem;
    font-size: .8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.hero-panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.hero-stat {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.hero-stat:last-child { border-bottom: 0; }
.hero-stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.hero-stat .value { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.hero-stat .delta { font-size: .82rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    background: var(--brand-soft);
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; margin-bottom: .75rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; }
.section-head-center { text-align: center; }
.section-head-center .section-sub { margin: 0 auto; }

/* ---------- Feature cards ---------- */
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}
.feature-card h5 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- How it works ---------- */
.step-card { text-align: center; padding: 2rem 1.5rem; height: 100%; }
.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.step-card h5 { font-size: 1.05rem; }
.step-card p { color: var(--muted); font-size: .93rem; }

/* ---------- Pricing ---------- */
.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.featured {
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-md);
}
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .9rem;
    border-radius: 999px;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.pricing-desc { color: var(--muted); font-size: .88rem; min-height: 2.6em; }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; }
.pricing-price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.pricing-features { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; flex: 1; }
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .92rem;
    padding: .4rem 0;
    color: var(--body);
}
.pricing-features li i { color: var(--success); margin-top: .18rem; }
.pricing-note {
    font-size: .84rem;
    color: var(--muted);
    background: var(--bg-soft);
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: .7rem .9rem;
}

/* ---------- FAQ ---------- */
.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .85rem;
    overflow: hidden;
}
.faq-item summary {
    padding: 1.1rem 1.35rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--brand);
    font-weight: 400;
    line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-body {
    padding: 0 1.35rem 1.2rem;
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--ink);
    color: #e2e8f0;
    border-radius: 20px;
    padding: 3.25rem 2.5rem;
    text-align: center;
}
.cta-band h2 { color: #fff; font-weight: 800; }
.cta-band p { color: #94a3b8; max-width: 560px; margin: 0 auto 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 3.5rem 0 0;
    font-size: .93rem;
}
.site-footer h6 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ink);
    margin-bottom: 1rem;
    font-weight: 700;
}
.site-footer a { color: var(--muted); display: block; padding: .28rem 0; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    color: var(--muted);
    font-size: .87rem;
}

/* ---------- Auth pages ---------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 55% 45% at 50% -10%, rgba(79, 70, 229, .12), transparent 65%),
        var(--bg-soft);
    padding: 2rem 1rem;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2.25rem 2rem;
}
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
    text-align: center;
}
.auth-brand .name { font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.03em; }
.auth-brand .tag { color: var(--muted); font-size: .9rem; }
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .92rem;
    color: var(--muted);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 1.4rem 0;
    color: var(--muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- Forms (public) ---------- */
.form-label { font-size: .87rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--line);
    padding: .65rem .9rem;
    font-size: .95rem;
    color: var(--ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}
.form-control::placeholder { color: #94a3b8; }

/* ---------- Page header (inner public pages) ---------- */
.page-hero {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 640px; margin-bottom: 0; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    height: 100%;
}
.contact-info-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-card h6 { font-size: .92rem; margin-bottom: .2rem; }
.contact-info-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h3 { font-size: 1.15rem; margin-top: 2rem; }
.legal-content p, .legal-content li { color: var(--body); font-size: .96rem; }

/* ---------- Toast / alerts ---------- */
.alert { border-radius: 10px; font-size: .93rem; }

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .hero { padding: 4rem 0 3.5rem; }
    .section { padding: 3.5rem 0; }
    .cta-band { padding: 2.5rem 1.5rem; border-radius: 16px; }
    .auth-card { padding: 1.75rem 1.35rem; }
}

/* ============ DARK MODE ============ */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

[data-theme="dark"] {
    --brand-soft: #1e1b4b;
    --ink: #eef2f9;
    --body: #c3ccdc;
    --muted: #8fa0b8;
    --line: #22304a;
    --bg: #0a1020;
    --bg-soft: #0d1526;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);

    /* Bootstrap variables, kept in sync so forms and components follow the theme */
    --bs-body-bg: #111a2e;
    --bs-body-bg-rgb: 17, 26, 46;
    --bs-body-color: #c3ccdc;
    --bs-body-color-rgb: 195, 204, 220;
    --bs-emphasis-color: #eef2f9;
    --bs-secondary-color: #8fa0b8;
    --bs-tertiary-color: rgba(238, 242, 249, .06);
    --bs-tertiary-bg: rgba(238, 242, 249, .06);
    --bs-tertiary-bg-rgb: 238, 242, 249;
    --bs-border-color: #22304a;
    --bs-border-color-translucent: rgba(34, 48, 74, .75);
    --bs-card-bg: #111a2e;
    --bs-dropdown-bg: #111a2e;
    --bs-list-group-bg: #111a2e;
    --bs-popover-bg: #111a2e;
}

[data-theme="dark"] :where(a) { color: #818cf8; }
[data-theme="dark"] :where(a:hover) { color: #a5b4fc; }
[data-theme="dark"] .text-dark { color: var(--ink) !important; }
[data-theme="dark"] .bg-white { background-color: #111a2e !important; }

[data-theme="dark"] .btn-outline-brand { color: #a5b4fc; border-color: #6366f1; }
[data-theme="dark"] .btn-outline-brand:hover { background: var(--brand-soft); color: #c7d2fe; border-color: #818cf8; }

[data-theme="dark"] .site-nav { background: rgba(10, 16, 32, .92); }

[data-theme="dark"] .section-label { color: #a5b4fc; }
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .contact-info-card .icon { color: #a5b4fc; }

[data-theme="dark"] .hero-badge,
[data-theme="dark"] .hero-panel,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .auth-card { background: #111a2e; }

[data-theme="dark"] .hero-panel-head { background: #0d1526; color: var(--body); }
[data-theme="dark"] .hero-panel-head .dot { background: #33415c; }

[data-theme="dark"] .cta-band { background: #141d33; }

[data-theme="dark"] .auth-card { box-shadow: var(--shadow-md); }
