/* =============================================================================
   MyBenAI — design system (simple / minimal)
   Flat dark surfaces, hairline borders, one restrained violet accent.
   Bricolage Grotesque for headings, Inter for text, JetBrains Mono for small
   meta only. Self-hosted fonts (fonts.css) → zero third-party requests.
   ============================================================================= */

:root {
    --bg:          #0c0c11;
    --surface:     #15151c;
    --border:      #24242e;
    --border-soft: #1c1c25;

    --text:   #edecf2;
    --text-2: #9d9bad;
    --text-3: #6b6a7c;

    --accent:      #8b7dff;
    --accent-2:    #7264ff;
    --accent-ink:  #ffffff;
    --success:     #46e5a0;

    --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-pill: 999px;
    --maxw: 1080px;
    --nav-h: 68px;
}

/* --------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(139,125,255,.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --------------------------------- layout -------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.container-narrow { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 1.5rem; }

.eyebrow, .blog-hero-eyebrow, .pricing-tagline, .detail-heading {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-3);
}

/* --------------------------------- type ---------------------------------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

/* --------------------------------- buttons ------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .97rem; padding: .78rem 1.4rem;
    border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-3); }
.btn-lg { padding: .92rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* --------------------------------- navbar -------------------------------- */
.navbar {
    position: sticky; top: 0; z-index: 100; height: var(--nav-h);
    display: flex; align-items: center;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}
.navbar-container { max-width: var(--maxw); margin-inline: auto; width: 100%; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.navbar-logo a { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.navbar-logo a::before { content: ""; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); }
.navbar-menu { list-style: none; display: flex; align-items: center; gap: 1.8rem; padding: 0; }
.navbar-menu a { color: var(--text-2); font-size: .94rem; font-weight: 500; transition: color .18s ease; }
.navbar-menu a:hover { color: var(--text); }
.navbar-cta a { color: var(--accent-ink); }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* --------------------------------- hero (centered, simple) --------------- */
.hero { text-align: center; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero .container { display: block; }
.hero-visual { display: none; }              /* simpler: no device mockup */
.hero-content { max-width: 760px; margin-inline: auto; }
.hero-content .eyebrow { margin-bottom: 1.4rem; }
.hero h1 { margin-bottom: 1.4rem; }
.hero h1 .grad-text { color: var(--accent); -webkit-text-fill-color: currentColor; background: none; }
.hero-subhead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 46ch; margin: 0 auto 2.2rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.8rem; }
.trust-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.1rem; color: var(--text-3); font-family: var(--font-mono); font-size: .78rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; }
.chip::before { content: "·"; color: var(--text-3); }
.trust-chips .chip:first-child::before { content: none; }

/* --------------------------- section shells ------------------------------ */
.features, .how-it-works, .privacy-highlight, .pricing-section, .faq-section, .blog-list-section {
    padding: clamp(3.2rem, 7vw, 5rem) 0;
    border-top: 1px solid var(--border-soft);
}
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { margin-bottom: .7rem; }
.section-head p, .subtitle { color: var(--text-2); }
/* bare section h2 (no wrapper) still gets rhythm + centering */
.features > .container > h2, .how-it-works > .container > h2, .privacy-highlight > .container > h2 {
    text-align: center; max-width: 640px; margin: 0 auto 2.8rem;
}

/* --------------------------------- features ------------------------------ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 1.5rem; transition: border-color .18s ease;
}
.feature-card:hover { border-color: var(--text-3); }
.feature-icon {
    width: 40px; height: 40px; border-radius: 10px; margin-bottom: 1rem;
    display: grid; place-items: center;
    color: var(--accent); background: rgba(139,125,255,.10); border: 1px solid var(--border);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { color: var(--text-2); font-size: .94rem; }

/* ------------------------------ how it works ----------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.step-number {
    font-family: var(--font-mono); font-size: .82rem; color: var(--accent);
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(139,125,255,.10); border: 1px solid var(--border); margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-2); font-size: .94rem; }

/* ----------------------------- privacy highlight ------------------------- */
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.privacy-item { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.privacy-item h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.privacy-item p { color: var(--text-2); font-size: .92rem; }

/* --------------------------------- CTA band ------------------------------ */
.cta-band { padding: clamp(3.5rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--border-soft); text-align: center; }
.cta-band h2 { margin-bottom: .7rem; }
.cta-band-subhead { color: var(--text-2); max-width: 46ch; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------- footer -------------------------------- */
.footer { border-top: 1px solid var(--border-soft); padding: 3rem 0 2rem; }
.footer-container { max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-section h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .5rem; }
.footer-section h4 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: .8rem; }
.footer-section p { color: var(--text-2); font-size: .9rem; margin-bottom: .3rem; }
.footer-section ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-section a { color: var(--text-2); font-size: .9rem; transition: color .18s ease; }
.footer-section a:hover { color: var(--text); }
.footer-bottom { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 1.4rem 1.5rem 0; border-top: 1px solid var(--border-soft); }
.footer-bottom p { color: var(--text-3); font-size: .84rem; font-family: var(--font-mono); }

/* --------------------------------- pricing ------------------------------- */
.pricing-hero { text-align: center; padding: clamp(3.5rem, 9vw, 5.5rem) 0 1rem; }
.pricing-hero .eyebrow { margin-bottom: 1rem; }
.pricing-hero .subtitle { max-width: 44ch; margin: 1rem auto 0; }
.pricing-section { border-top: 0; padding-top: 2.5rem; }
.pricing-card { max-width: 440px; margin: 0 auto; padding: 2.2rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.pricing-header { text-align: center; margin-bottom: 1.5rem; }
.price { display: flex; align-items: baseline; justify-content: center; gap: .35rem; margin: .7rem 0 .2rem; }
.price .amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; letter-spacing: -.03em; }
.price .frequency { color: var(--text-2); }
.pricing-details { margin-top: 1.3rem; }
.detail-heading { margin-bottom: .9rem; }
.features-list { list-style: none; padding: 0; display: grid; gap: .75rem; margin-bottom: 1.6rem; }
.features-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .96rem; }
.check-mark { color: var(--success); flex: none; }

/* --------------------------------- FAQ ----------------------------------- */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.faq-item { padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: .45rem; color: var(--text); }
.faq-item p { color: var(--text-2); font-size: .93rem; }

/* --------------------------------- legal --------------------------------- */
.legal-page { padding: clamp(3rem, 7vw, 4.5rem) 0 5rem; }
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .5rem; }
.legal-page .meta, .legal-page .subtitle { font-family: var(--font-mono); font-size: .8rem; color: var(--text-3); margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.4rem; margin: 2.4rem 0 .8rem; scroll-margin-top: 90px; }
.legal-page h3 { font-size: 1.12rem; margin: 1.5rem 0 .5rem; }
.legal-page p, .legal-page li { color: var(--text-2); margin-bottom: 1rem; }
.legal-page ul, .legal-page ol { margin: 0 0 1rem 1.3rem; }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.toc ul { list-style: none; padding: 0; display: grid; gap: .45rem; margin: .5rem 0 0; }
.toc a { color: var(--text-2); text-decoration: none; font-size: .94rem; }
.toc a:hover { color: var(--accent); }

/* --------------------------------- blog ---------------------------------- */
.blog-hero { text-align: center; padding: clamp(3.5rem, 9vw, 5.5rem) 0 2rem; border-bottom: 1px solid var(--border-soft); }
.blog-hero-eyebrow { margin-bottom: 1rem; }
.blog-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .9rem; }
.blog-hero-sub { color: var(--text-2); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .18s ease; }
.post-card:hover { border-color: var(--text-3); }
.post-card-link { display: block; padding: 1.5rem; height: 100%; }
.post-card-meta { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; font-size: .8rem; color: var(--text-3); font-family: var(--font-mono); }
.post-cat { color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.post-card-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: .5rem; }
.post-card-desc { color: var(--text-2); font-size: .93rem; margin-bottom: .9rem; }
.post-card-more { color: var(--accent); font-weight: 600; font-size: .88rem; font-family: var(--font-mono); }

.blog-article { padding: clamp(2.5rem, 6vw, 4rem) 0 5rem; }
.blog-back { font-family: var(--font-mono); font-size: .84rem; color: var(--text-2); display: inline-block; margin-bottom: 1.5rem; }
.blog-back:hover { color: var(--accent); }
.blog-article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-family: var(--font-mono); font-size: .82rem; color: var(--text-3); margin-bottom: 1rem; }
.blog-article-meta .post-cat { color: var(--accent); }
.blog-article-meta .dot { opacity: .4; }
.blog-article-title { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; margin-bottom: 1.8rem; }
.blog-article-body { font-size: 1.07rem; line-height: 1.8; color: var(--text); }
.blog-article-body .lead { font-size: 1.22rem; line-height: 1.6; color: var(--text-2); margin-bottom: 1.8rem; }
.blog-article-body h2 { font-size: 1.55rem; margin: 2.6rem 0 1rem; }
.blog-article-body h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.blog-article-body p { margin-bottom: 1.3rem; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 1.3rem 1.4rem; }
.blog-article-body li { margin-bottom: .5rem; color: var(--text-2); }
.blog-article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.blog-article-body strong { color: var(--text); font-weight: 600; }
.blog-article-body blockquote { border-left: 2px solid var(--accent); padding-left: 1.2rem; margin: 0 0 1.3rem; color: var(--text-2); font-style: italic; }
.blog-article-body code { font-family: var(--font-mono); font-size: .88em; background: var(--bg); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: 6px; }
.blog-article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.3rem; font-size: .94rem; }
.blog-article-body th, .blog-article-body td { border: 1px solid var(--border); padding: .5rem .8rem; text-align: left; }
.blog-article-body th { background: var(--surface); font-family: var(--font-mono); font-size: .82rem; }
.blog-article-cta { margin-top: 3rem; padding: 1.8rem; text-align: center; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.blog-article-cta h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.blog-article-cta p { color: var(--text-2); max-width: 46ch; margin: 0 auto 1.4rem; }

/* --------------------------------- motion -------------------------------- */
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-content { animation: fade .6s ease both; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ------------------------------- responsive ------------------------------ */
@media (max-width: 820px) {
    .steps { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .navbar-toggle { display: flex; }
    .navbar-menu {
        position: absolute; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: .5rem 1.5rem 1.2rem; display: none;
    }
    .navbar-menu.open { display: flex; }
    .navbar-menu li { padding: .5rem 0; }
    .footer-container { grid-template-columns: 1fr; }
}
