/* ============================================================
   APP.CSS
   Global shell (top bar + page header) plus blog styles.
   Extracted from blog_mockup5.html. The audit module's audit.css
   extends this file -- it does NOT replace it.
   ============================================================ */

/* ---- Reset / base -------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background: #F5F5F5;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #252423;
}

.app {
    max-width: 1300px;
    margin: 16px auto;
    background: #FFFFFF;
    border: 1px solid #E1E1E1;
    min-height: calc(100vh - 32px);
}

/* ---- Top site bar -------------------------------------------------- */
.site-bar {
    background: #123A5C;
    border-bottom: 1px solid #0A2238;
    display: flex;
    min-height: 52px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    color: #FFF;
    border-right: 1px solid rgba(255, 255, 255, .1);
    min-width: 200px;
}
.brand-mark {
    width: 28px;
    height: 28px;
    background: #FFF;
    color: #123A5C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    border-radius: 3px;
}
.brand-name { font-size: 14px; font-weight: 500; }
.brand-sub  { font-size: 10px; opacity: .7; letter-spacing: .8px; text-transform: uppercase; margin-top: 1px; }

.section-tabs { display: flex; flex: 1; }
.sec-tab {
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #FFF;
    opacity: .75;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: .3px;
    text-decoration: none;
}
.sec-tab:hover                 { opacity: 1; background: rgba(255, 255, 255, .05); }
.sec-tab.active                { opacity: 1; background: #1F4E79; border-bottom-color: #FFF; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    color: #FFF;
    font-size: 12px;
    border-left: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
}
.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #A66A00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}

.login-link {
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: #FFF;
    opacity: .85;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-left: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
}
.login-link:hover { opacity: 1; background: rgba(255, 255, 255, .05); }

/* ---- Page header band --------------------------------------------- */
.hdr   { background: #1F4E79; color: #FFFFFF; padding: 14px 24px; }
.bread { font-size: 11px; letter-spacing: 1px; opacity: .85; text-transform: uppercase; }
.title { font-size: 20px; font-weight: 500; margin-top: 2px; }
.meta  { font-size: 11px; opacity: .85; margin-top: 4px; }

/* ---- Blog: filter chips ------------------------------------------- */
.blog-filters {
    padding: 12px 24px;
    background: #F9F9F9;
    border-bottom: 1px solid #E1E1E1;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.blog-filters .filter-label {
    font-size: 11px;
    color: #605E5C;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-right: 4px;
}
.chip {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    background: #FFFFFF;
    border: 1px solid #D1D1D1;
    border-radius: 999px;
    cursor: pointer;
    color: #252423;
    text-decoration: none;
}
.chip:hover  { background: #EAF2FA; border-color: #B7D0E5; color: #1F4E79; }
.chip.active { background: #1F4E79; border-color: #1F4E79; color: #FFF; }

/* ---- Blog: featured post ------------------------------------------ */
.featured-post  { padding: 20px 24px 0 24px; }
.featured-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    border: 1px solid #E1E1E1;
    border-left: 4px solid #1F4E79;
    background: #FAFAFA;
    cursor: pointer;
}
.featured-card:hover     { background: #F5F5F5; }
.featured-cover {
    height: 200px;
    background: #EAF2FA;
    color: #1F4E79;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 500;
}
.featured-body     { padding: 20px 24px 20px 0; }
.featured-eyebrow  { font-size: 10px; color: #A66A00; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: 6px; }
.featured-title    { font-size: 22px; font-weight: 500; margin: 0 0 10px 0; color: #252423; line-height: 1.25; }
.featured-excerpt  { font-size: 13px; color: #605E5C; line-height: 1.6; margin: 0 0 14px 0; }
.featured-meta     { font-size: 11px; color: #888; }

/* ---- Blog: card grid ---------------------------------------------- */
.blog-grid {
    padding: 18px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.blog-card {
    background: #FFFFFF;
    border: 1px solid #E1E1E1;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { border-color: #1F4E79; }
.blog-card .blog-cover {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-bottom: 1px solid #E1E1E1;
}
.blog-card .blog-cover.c1 { background: #EAF2FA; color: #1F4E79; }
.blog-card .blog-cover.c2 { background: #FEF4E5; color: #A66A00; }
.blog-card .blog-cover.c3 { background: #E6F4EA; color: #0B6E4F; }
.blog-card .blog-cover.c4 { background: #FCEBEB; color: #C62828; }
.blog-card .blog-cover.c5 { background: #F1EFE8; color: #444441; }
.blog-card .blog-body    { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-tag     { font-size: 10px; color: #605E5C; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.blog-card .blog-title   { font-size: 14px; font-weight: 500; margin: 0 0 6px 0; color: #252423; line-height: 1.35; }
.blog-card .blog-excerpt { font-size: 12px; color: #605E5C; line-height: 1.55; margin: 0 0 10px 0; flex: 1; }
.blog-card .blog-meta    { font-size: 11px; color: #888; }

/* ---- Single post layout -------------------------------------------- */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 700px 1fr;
    background: #FFFFFF;
}
.post-layout > .post-left  { border-right: 1px solid #F0F0F0; }
.post-layout > .post-right { border-left: 1px solid #F0F0F0; padding: 30px 20px; }
.post-main { padding: 36px 40px 40px 40px; }

.post-hero-cat {
    display: inline-block;
    font-size: 10px;
    padding: 3px 10px;
    background: #EAF2FA;
    color: #1F4E79;
    border: 1px solid #B7D0E5;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
}
.post-title {
    font-size: 32px;
    font-weight: 500;
    margin: 14px 0 10px 0;
    color: #252423;
    line-height: 1.2;
    letter-spacing: -.3px;
}
.post-meta {
    font-size: 12px;
    color: #605E5C;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    gap: 14px;
    align-items: center;
}
.post-meta .author { display: flex; align-items: center; gap: 8px; }
.post-meta .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #A66A00;
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
}
.post-meta .author-name { font-weight: 500; color: #252423; }
.post-meta .dot-sep     { color: #D1D1D1; }

/* ---- Post body prose ---------------------------------------------- */
.post-body { font-size: 15px; line-height: 1.75; color: #252423; }
.post-body p           { margin: 0 0 18px 0; }
.post-body h2          { font-size: 22px; font-weight: 500; margin: 32px 0 14px 0; color: #252423; letter-spacing: -.2px; }
.post-body h3          { font-size: 17px; font-weight: 500; margin: 28px 0 10px 0; color: #252423; }
.post-body ul,
.post-body ol          { margin: 0 0 18px 0; padding-left: 22px; }
.post-body li          { margin-bottom: 6px; }
.post-body strong      { font-weight: 600; }
.post-body a           { color: #1F4E79; }
.post-body code:not(pre code) {
    background: #F8F8FB;
    border: 1px solid #E1E1E8;
    padding: 1px 6px;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 13px;
    color: #1F4E79;
}
.post-body pre {
    background: #F8F8FB;
    border: 1px solid #E1E1E8;
    border-left: 3px solid #1F4E79;
    padding: 14px 18px;
    overflow-x: auto;
    font-family: Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.post-body pre code     { color: #252423; }
.post-body blockquote {
    border-left: 4px solid #A66A00;
    background: #FEF9F0;
    margin: 0 0 20px 0;
    padding: 14px 18px;
    color: #605E5C;
    font-style: italic;
}
.post-body hr           { border: 0; border-top: 1px solid #E1E1E1; margin: 32px 0; }
.post-body img          { max-width: 100%; border: 1px solid #E1E1E1; border-radius: 3px; margin: 10px 0 20px 0; }

/* ---- Right-rail table of contents --------------------------------- */
.toc { position: sticky; top: 16px; font-size: 12px; }
.toc-label {
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #605E5C;
    font-weight: 500;
    margin-bottom: 10px;
}
.toc ul     { list-style: none; padding: 0; margin: 0; }
.toc li     { padding: 4px 0; border-left: 2px solid transparent; padding-left: 10px; }
.toc li.sub { padding-left: 22px; font-size: 11px; }
.toc li a   { color: #605E5C; text-decoration: none; }
.toc li a.active,
.toc li:hover a { color: #1F4E79; }

/* ---- Home page cards ---------------------------------------------- */
.home-card {
    background: #FFFFFF;
    border: 1px solid #E1E1E1;
    border-left: 4px solid #1F4E79;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.home-card:hover         { background: #FAFAFA; border-color: #1F4E79; }
.home-card-product       { border-left-color: #C62828; }
.home-card-product:hover { border-color: #C62828; }
.home-card-demo-link {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #E1E1E1;
    font-size: 12px;
    font-weight: 600;
    color: #C62828;
    text-decoration: none;
    letter-spacing: 0.2px;
}
.home-card-demo-link:hover { text-decoration: underline; }
.home-card-demo-hint {
    font-size: 12px;
    font-style: italic;
    color: #1F4E79;
    margin-top: 10px;
}
.home-card-eyebrow       { font-size: 10px; color: #A66A00; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; margin-bottom: 6px; }
.home-card-title         { font-size: 18px; font-weight: 500; margin: 0 0 8px 0; color: #252423; }
.home-card-body          { font-size: 13px; color: #605E5C; line-height: 1.55; margin: 0; }

/* ---- Demo pages --------------------------------------------------- */
.demo-banner {
    background: #FFFFFF;
    color: #C62828;
    text-align: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    border-bottom: 2px solid #C62828;
}
.demo-frame-wrap {
    background: #F5F5F5;
    padding: 0;
}
.demo-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 140px);
    min-height: 800px;
    border: 0;
    background: #F5F5F5;
}

/* ---- About page CTAs --------------------------------------------- */
.about-cta {
    display: inline-block;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
}
.about-cta-primary {
    background: #1F4E79;
    color: #FFFFFF;
    border-color: #1F4E79;
}
.about-cta-primary:hover {
    background: #163A5C;
    border-color: #163A5C;
}
.about-cta-secondary {
    background: #FFFFFF;
    color: #1F4E79;
    border-color: #1F4E79;
}
.about-cta-secondary:hover {
    background: #EAF2FA;
}

/* ---- Tier comparison grid (Products/SqlMm) ---------------------- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .tier-grid { grid-template-columns: 1fr; }
}
.tier-card {
    background: #FFFFFF;
    border: 1px solid #E1E1E1;
    border-top: 4px solid #1F4E79;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
}
.tier-card.featured  { border-top-color: #A66A00; }
.tier-name {
    font-size: 11px;
    color: #A66A00;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
    margin-bottom: 6px;
}
.tier-price {
    font-size: 22px;
    font-weight: 500;
    color: #252423;
    margin: 0 0 4px 0;
}
.tier-price-unit {
    font-size: 12px;
    color: #605E5C;
    font-weight: 400;
    margin-bottom: 16px;
}
.tier-section-label {
    font-size: 10px;
    color: #605E5C;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin: 14px 0 6px 0;
}
.tier-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #252423;
    line-height: 1.55;
}
.tier-feature-list li {
    padding-left: 16px;
    position: relative;
    margin-bottom: 6px;
}
.tier-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #0B6E4F;
    font-weight: 600;
}
/* AI Insights bullet — purple ✦ accent matches the in-product chrome
   (see ai-features-mockup.html). Apply to a <li class="ai-accent">. */
.tier-feature-list li.ai-accent::before {
    content: "✦";
    color: #7B61FF;
}
.tier-feature-list li.ai-accent {
    color: #4B3A99;
    font-weight: 600;
}
.tier-feature-list li.ai-accent .tier-feature-sub {
    color: #605E5C;
    font-weight: 400;
}
.tier-feature-sub {
    font-size: 12px;
    color: #605E5C;
    margin: 2px 0 0 0;
    padding-left: 16px;
    line-height: 1.45;
}
.tier-req-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    color: #605E5C;
    line-height: 1.5;
}
.tier-req-list li { margin-bottom: 3px; }
.tier-addon {
    font-size: 12px;
    color: #605E5C;
    line-height: 1.5;
    margin: 4px 0 0 0;
}
.tier-addon b { color: #252423; font-weight: 500; }
