/* ================================================
   botiq blog — reading-first editorial frontend
================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

:root {
    --font: 'Onest', sans-serif;
    --g: #16a872;
    --gd: #0d9060;
    --gl: #f0fdf8;
    --bg: #fbfcfd;
    --s1: #ffffff;
    --s2: #f6f8f9;
    --b1: #e7eaee;
    --b2: #eef1f4;
    --t1: #0d1424;
    --t2: #3c4555;
    --t3: #8b94a3;
    --shadow: 0 2px 4px rgba(13,20,36,.04), 0 8px 24px rgba(13,20,36,.06);
}

html { scroll-behavior: smooth }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--t1);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden
}

a { color: inherit }

/* ---- NAV ---- */
.bnav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--b1)
}

.bnav-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.7px;
    text-decoration: none;
    color: var(--t1)
}
.bnav-logo em { color: var(--g); font-style: normal }

.bnav-right { display: flex; align-items: center; gap: 6px }

.bnav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--t2);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 100px;
    transition: background .15s, color .15s
}
.bnav-link:hover { background: rgba(0,0,0,.04); color: var(--t1) }

.bnav-cta {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 100px;
    background: linear-gradient(135deg, #1bbd80, #0d9060);
    box-shadow: 0 6px 16px rgba(22,168,114,.24);
    white-space: nowrap;
    transition: transform .15s, box-shadow .2s
}
.bnav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22,168,114,.32) }

/* ---- ARTICLE SHELL ---- */
.article {
    max-width: 720px;
    margin: 0 auto;
    padding: 3.5rem 24px 2rem
}

.article-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--g);
    background: var(--gl);
    border: 1px solid rgba(22,168,114,.2);
    border-radius: 100px;
    padding: 6px 13px 6px 11px;
    margin-bottom: 1.4rem
}
.article-tag::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--g)
}

.article h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.12;
    margin-bottom: 1.1rem
}

.article-dek {
    font-size: 18px;
    color: var(--t2);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 1.5rem
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--t3);
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--b1)
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t3) }
.article-meta strong { color: var(--t2); font-weight: 600 }

/* ---- BODY TYPOGRAPHY ---- */
.article-body { font-size: 17px; color: var(--t1); line-height: 1.75 }

.article-body > p { margin-bottom: 1.25rem; color: #1e2636 }

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.25;
    margin: 2.6rem 0 1rem
}

.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.2px;
    margin: 1.8rem 0 .7rem
}

.article-body ul, .article-body ol {
    margin: 0 0 1.4rem;
    padding-left: 1.3rem;
    color: #1e2636
}
.article-body li { margin-bottom: .55rem; padding-left: .2rem }
.article-body li::marker { color: var(--g); font-weight: 700 }

.article-body strong { font-weight: 700; color: var(--t1) }

.article-body a:not(.cta-btn) {
    color: var(--gd);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    font-weight: 600
}

/* Pull quote */
.article-body blockquote {
    border-left: 3px solid var(--g);
    padding: .4rem 0 .4rem 1.25rem;
    margin: 1.8rem 0;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--t1);
    letter-spacing: -.3px
}

/* Callout / tip box */
.callout {
    background: var(--s1);
    border: 1px solid var(--b1);
    border-left: 3px solid var(--g);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin: 1.8rem 0;
    box-shadow: var(--shadow)
}
.callout-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--g);
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: 7px
}
.callout p { font-size: 15px; color: var(--t2); line-height: 1.65; margin: 0 }
.callout p + p { margin-top: .6rem }

/* Numbered step blocks */
.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--b2)
}
.step:last-child { border-bottom: none }
.step-n {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--gl);
    border: 1px solid rgba(22,168,114,.3);
    color: var(--g);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px
}
.step-body h3 { margin: 0 0 .3rem; font-size: 17px }
.step-body p { margin: 0; font-size: 15px; color: var(--t2); line-height: 1.6 }

/* Mini comparison table */
.table-scroll {
    margin: 1.6rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--b1);
    border-radius: 12px
}
.table-scroll .minitable { margin: 0; border: none; min-width: 480px }

.minitable {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 15px;
    border: 1px solid var(--b1);
    border-radius: 12px;
    overflow: hidden
}
.minitable th, .minitable td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--b1) }
.minitable thead th { background: var(--s2); font-size: 13px; font-weight: 700; color: var(--t2) }
.minitable tbody tr:last-child td { border-bottom: none }
.minitable td:first-child { color: var(--t2) }

/* Inline product mention (soft) */
.product-note {
    background: linear-gradient(135deg, #f0fdf8, #f6fbff);
    border: 1px solid rgba(22,168,114,.18);
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    margin: 2rem 0;
    display: flex;
    gap: 14px;
    align-items: flex-start
}
.product-note-mark {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--t1);
    letter-spacing: -.5px;
    background: #fff;
    border: 1px solid var(--b1);
    border-radius: 10px;
    padding: 7px 10px;
    line-height: 1
}
.product-note-mark em { color: var(--g); font-style: normal }
.product-note p { margin: 0; font-size: 15px; color: var(--t2); line-height: 1.65 }
.product-note strong { color: var(--t1) }

/* ---- END CTA ---- */
.article-cta {
    position: relative;
    overflow: hidden;
    margin: 3rem auto 0;
    max-width: 720px;
    background: linear-gradient(150deg, #0c1322 0%, #0a0f1b 100%);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center
}
.article-cta::before {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22,168,114,.32), transparent 65%);
    top: -160px; right: -120px;
    pointer-events: none
}
.article-cta::after {
    content: '';
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.22), transparent 65%);
    bottom: -160px; left: -120px;
    pointer-events: none
}
.article-cta-in { position: relative; z-index: 1 }
.article-cta h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.25;
    margin-bottom: .7rem
}
.article-cta h2 em { color: #5fe3ad; font-style: normal }
.article-cta p {
    color: rgba(255,255,255,.66);
    font-size: 15px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 1.5rem
}
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1bbd80, #0d9060);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(22,168,114,.35);
    transition: transform .15s, box-shadow .2s
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(22,168,114,.45) }
.article-cta-note { color: rgba(255,255,255,.45); font-size: 12px; margin-top: 1rem }

/* ---- RELATED / READ NEXT ---- */
.readnext { max-width: 720px; margin: 2.5rem auto 0; padding: 0 24px }
.readnext-h { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--t3); margin-bottom: 1rem }
.readnext-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.readnext-card {
    display: block;
    background: var(--s1);
    border: 1px solid var(--b1);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s
}
.readnext-card:hover { transform: translateY(-3px); border-color: rgba(22,168,114,.35); box-shadow: 0 12px 28px rgba(22,168,114,.12) }
.readnext-card .rc-tag { font-size: 11px; font-weight: 700; color: var(--g); text-transform: uppercase; letter-spacing: .8px }
.readnext-card .rc-title { font-size: 15px; font-weight: 700; color: var(--t1); margin-top: 6px; line-height: 1.35 }

/* ---- BLOG INDEX ---- */
.blog-hero { max-width: 760px; margin: 0 auto; padding: 3.5rem 24px 1.5rem; text-align: center }
.blog-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 1rem }
.blog-hero p { font-size: 17px; color: var(--t2); line-height: 1.6; max-width: 560px; margin: 0 auto }

.blog-list { max-width: 760px; margin: 1.5rem auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 14px }
.blog-item {
    display: block;
    background: var(--s1);
    border: 1px solid var(--b1);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s
}
.blog-item:hover { transform: translateY(-3px); border-color: rgba(22,168,114,.3); box-shadow: 0 16px 36px rgba(22,168,114,.12) }
.blog-item .bi-tag { font-size: 11px; font-weight: 700; color: var(--g); text-transform: uppercase; letter-spacing: 1px }
.blog-item h2 { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--t1); margin: 8px 0 .5rem; line-height: 1.25 }
.blog-item p { font-size: 15px; color: var(--t2); line-height: 1.6; margin-bottom: .7rem }
.blog-item .bi-meta { font-size: 13px; color: var(--t3); display: flex; align-items: center; gap: 8px }
.blog-item .bi-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t3) }

/* ---- FOOTER ---- */
.bfooter {
    max-width: 960px;
    margin: 3.5rem auto 0;
    padding: 1.75rem 24px 2.5rem;
    border-top: 1px solid var(--b1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap
}
.bfooter .flogo { font-size: 16px; font-weight: 800; letter-spacing: -.5px; text-decoration: none; color: var(--t1) }
.bfooter .flogo em { color: var(--g); font-style: normal }
.bfooter p { font-size: 13px; color: var(--t3) }
.bfooter a { color: var(--t3); text-decoration: none; font-weight: 500 }
.bfooter a:hover { color: var(--g) }

@media (max-width: 640px) {
    .article { padding-top: 2.2rem }
    .article-body { font-size: 16px }
    .readnext-grid { grid-template-columns: 1fr }
    .bnav-link { display: none }
    .bfooter { flex-direction: column; text-align: center }
}
