/* ============================================================
   BiloChat — shared site styles (Aurora design language)
   Dark-first premium, matching the app. Plus Jakarta Sans.
   ============================================================ */

:root {
    /* Aurora dark surfaces */
    --bg: #0A0C12;
    --bg-elevated: #14171F;
    --bg-card: #1C2029;
    --text: #ECEEF2;
    --text-secondary: #A6ABB8;
    --text-tertiary: #6C7280;
    --stroke: rgba(255, 255, 255, 0.08);
    /* Aurora accents */
    --accent: #8B7BFF;
    --accent-deep: #6A4BF0;
    --coral: #FF8A5C;
    --mint: #16E0A3;
    --blue: #4CC2FF;
    --aurora: linear-gradient(120deg, #8B7BFF 0%, #C964FF 45%, #FF8A5C 100%);
    --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --maxw: 760px;
}

/* Light mode fallback (app is dark-first, but respect the OS) */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #F4F5FA;
        --bg-elevated: #FFFFFF;
        --bg-card: #FFFFFF;
        --text: #14161D;
        --text-secondary: #5B6172;
        --text-tertiary: #8B90A0;
        --stroke: rgba(20, 22, 29, 0.08);
        --accent: #6A4BF0;
        --accent-deep: #4A2FD0;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ---- Top nav ----
   Sticky and blurred to match the landing page's header, so moving between
   the marketing page and the legal/support pages doesn't feel like leaving
   the site. The bar is full-bleed; `.nav-inner` holds the centred row. */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(10, 12, 18, 0.74);
    border-bottom: 1px solid var(--stroke);
}
@media (prefers-color-scheme: light) {
    .nav { background: rgba(244, 245, 250, 0.82); }
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 14px rgba(106, 75, 240, 0.4);
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; }
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 1.25rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta {
    color: #fff !important;
    background: var(--aurora);
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(106, 75, 240, 0.35);
}
.nav-cta:hover { text-decoration: none; }

/* Below this the four text links crowd the CTA off the row; the CTA is the
   one that has to survive. */
@media (max-width: 620px) {
    .nav-links a:not(.nav-cta) { display: none; }
}

/* ---- Eyebrow ---- */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

/* ---- Headings ---- */
h1 {
    font-weight: 800;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.accent-word {
    background: var(--aurora);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
h2 {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.75rem;
}
h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }

p, ul, ol { margin-bottom: 1rem; color: var(--text-secondary); }
.lead { font-size: 1.15rem; color: var(--text-secondary); max-width: 540px; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--text); }

/* ---- Hero ---- */
.hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}
.hero .lead { margin: 0 auto; }

/* ---- Buttons ---- */
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--aurora); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--stroke); }

/* ---- Feature grid ---- */
.features {
    max-width: 1080px;
    margin: 3rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 1.5rem;
}
.card .ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.ico.v { background: rgba(139,123,255,0.16); }
.ico.c { background: rgba(255,138,92,0.16); }
.ico.m { background: rgba(22,224,163,0.16); }
.ico.b { background: rgba(76,194,255,0.16); }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---- Legal / content pages ---- */
.doc { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.6rem); }
.doc h2 { color: var(--accent); font-size: 1.3rem; }
.updated { font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 2rem; }

/* ---- FAQ ---- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 0.85rem;
}
.faq-item h3 { margin-bottom: 0.4rem; }
.faq-item p { margin-bottom: 0; font-size: 0.97rem; }

/* ---- Contact card ---- */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    margin: 1.5rem 0;
}
.contact-card .email {
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--stroke);
    max-width: 1080px;
    margin: 4rem auto 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}
.footer a { color: var(--text-secondary); margin-left: 1.25rem; }
.footer .foot-links { display: flex; flex-wrap: wrap; gap: 0 0; }
.footer .foot-links a:first-child { margin-left: 0; }

/* ---- Cross-page callout (bottom of the legal/support pages) ---- */
.next-step {
    max-width: var(--maxw);
    margin: 3rem auto 0;
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
}
.next-step p { margin: 0; font-size: 0.97rem; }
