/* ============================================================
   AppTesterHub — bespoke blog article styles (no framework)
   Used by the modern article pages. Self-contained: handles
   header, article, FAQ, CTA, and footer. No Bootstrap.
   ============================================================ */

:root {
    --brand: #1565C0;
    --brand-dark: #0D47A1;
    --ink: #1a202c;
    --ink-soft: #475569;
    --muted: #64748b;
    --line: #e6e8eb;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --radius: 14px;
    --maxw: 760px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink-soft);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--ink);
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}
.nav-cta:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.menu-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 22px;
    color: var(--ink);
    cursor: pointer;
}

/* mobile drawer */
.drawer {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.12);
    z-index: 100; transition: right .25s ease; padding: 20px;
}
.drawer.open { right: 0; }
.drawer ul { list-style: none; padding: 0; margin: 24px 0 0; }
.drawer li { margin: 4px 0; }
.drawer a { display: block; padding: 12px 8px; color: var(--ink); font-weight: 500; border-radius: 8px; }
.drawer a:hover { background: var(--bg); text-decoration: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close { background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; }
.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 90;
}
.overlay.open { opacity: 1; visibility: visible; }

/* ---------- Hero banner (with optional cover image) ---------- */
.article-hero {
    position: relative;
    /* gradient fallback shown when no cover image is present */
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-scrim {
    /* keeps the title readable over any image, on-brand tint */
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 71, 161, .25) 0%, rgba(13, 71, 161, .85) 100%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px;
}
.hero-inner .eyebrow { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-inner h1 {
    color: #fff;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.hero-inner .article-meta {
    color: rgba(255, 255, 255, .9);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ---------- Article ---------- */
.article {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 44px 24px 80px;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(21, 101, 192, .08);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.article h1 {
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-weight: 800;
    margin: 0 0 16px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 14px;
    padding-bottom: 28px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lead { font-size: 1.2rem; color: var(--ink); font-weight: 500; line-height: 1.7; margin: 28px 0; }
.article h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 48px 0 14px;
}
.article h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.article p { margin: 0 0 1.25rem; }
.article ul, .article ol { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.article li { margin-bottom: .6rem; }
.article strong { color: var(--ink); }

/* callout / step box */
.callout {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    padding: 22px 26px;
    border-radius: 10px;
    margin: 28px 0;
}
.callout ul, .callout ol { margin-bottom: 0; }

/* screenshot figure */
.shot { margin: 24px 0 10px; }
.shot img {
    width: 100%;
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    background: #fff;
}
.shot figcaption {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
}

/* comparison table */
.cmp { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .98rem; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.cmp th { background: var(--brand); color: #fff; font-weight: 600; }
.cmp tr:nth-child(even) td { background: #fafbfc; }

/* CTA */
.cta {
    margin: 44px 0;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(21,101,192,.06), rgba(13,71,161,.04));
    border: 1px solid rgba(21,101,192,.18);
    border-radius: var(--radius);
}
.cta h3 { margin-top: 0; color: var(--brand); }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(21,101,192,.28); }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; text-decoration: none; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.center { text-align: center; margin-top: 48px; }

/* FAQ */
.faq { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.faq h2 { margin-top: 0; }
.faq-q { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 26px 0 6px; }
.faq-a { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #111827; color: #f9fafb; padding: 56px 24px 28px; margin-top: 40px; }
.footer-grid {
    max-width: 1120px; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
}
.site-footer h4 { font-size: 17px; margin: 0 0 14px; color: #fff; }
.site-footer p, .site-footer li, .site-footer a { color: #d1d5db; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2.1; }
.footer-social { display: flex; gap: 18px; font-size: 20px; }
.footer-social a { color: #fff; }
.footer-bottom { border-top: 1px solid #374151; margin-top: 36px; padding-top: 20px; text-align: center; color: #9ca3af; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .article-hero { padding: 44px 18px 40px; }
    .article { padding: 36px 18px 64px; }
}
