/* 12AppTesting blog styles. Same palette and type as the main page. */
:root {
  --bg: #F8FAFC; --white: #FFFFFF; --ink: #0F172A; --text: #334155; --muted: #64748B; --line: #E2E8F0;
  --brand: #4F46E5; --brand-dark: #4338CA; --brand-tint: #EEF2FF; --brand-line: #C7D2FE;
  --green: #10B981; --green-dark: #059669; --green-tint: #ECFDF5; --amber: #F59E0B;
  color-scheme: light;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font); color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 760px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 99px; font: 700 0.95rem/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 14px 26px -12px rgba(79, 70, 229, 0.6); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 14px 26px -12px rgba(16, 185, 129, 0.6); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line); }
.bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; display: block; }
.brand b { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.brand small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); }
nav.desk { display: flex; gap: 28px; }
nav.desk a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: var(--text); }
nav.desk a:hover, nav.desk a[aria-current] { color: var(--brand); }
.bar-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.drawer { display: none; background: #fff; border-top: 1px solid var(--line); padding: 12px clamp(16px, 4vw, 32px) 18px; }
.drawer.open { display: grid; gap: 4px; }
.drawer a { text-decoration: none; font-weight: 600; padding: 10px 0; color: var(--text); }
@media (max-width: 900px) { nav.desk { display: none; } .burger { display: grid; } .bar-actions .btn span.lbl { display: none; } }

/* blog home */
.blog-hero { padding-block: clamp(40px, 7vw, 80px) clamp(32px, 5vw, 56px); background: linear-gradient(180deg, #F8FAFC, #EEF2FF); text-align: center; }
.eyebrow { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.blog-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.12; }
.blog-hero p { margin: 16px auto 0; max-width: 56ch; color: var(--muted); font-size: 1.08rem; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 48px 88px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04); transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: 0 24px 44px -26px rgba(15, 23, 42, 0.45); transform: translateY(-3px); }
.post-art { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; font-size: 3.6rem; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.post-card h2 { font-size: 1.2rem; line-height: 1.25; }
.post-card p { font-size: 0.95rem; color: var(--muted); flex: 1; }
.more { font-weight: 700; color: var(--brand-dark); font-size: 0.92rem; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .posts { grid-template-columns: minmax(0, 1fr); } }

/* article */
.crumbs { padding-block: 28px 0; font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.article-head { padding-block: 14px 24px; }
.article-head h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.14; }
.byline { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.lede { margin-top: 20px; font-size: 1.2rem; line-height: 1.6; color: var(--text); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin-block: 8px 8px; }
.toc b { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 0.95rem; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.prose { padding-block: 16px 24px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.2; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }
.prose p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); }
.callout { margin-top: 22px; padding: 18px 20px; border-radius: 16px; background: var(--brand-tint); border: 1px solid var(--brand-line); font-size: 0.97rem; }
.callout b { color: var(--brand-dark); }
.callout.warn { background: #FFFBEB; border-color: #FCD34D; }
.callout.warn b { color: #B45309; }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 18px 66px; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { color: var(--ink); display: block; margin-bottom: 2px; }
.steps span { font-size: 0.97rem; }
.cta { margin-block: 40px; padding: clamp(24px, 5vw, 40px); border-radius: 24px; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, var(--green-dark)); color: #fff; display: grid; gap: 12px; }
.cta h2, .cta h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.cta p { color: #E2E8F0; margin: 0; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta a.text { color: #fff; font-weight: 700; align-self: center; }
.related { padding-block: 24px 80px; }
.related h2 { font-size: 1.5rem; margin-bottom: 20px; }
.related .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.related a.post-card .post-body { padding: 20px 22px; }
@media (max-width: 640px) { .related .grid { grid-template-columns: minmax(0, 1fr); } }

/* footer */
footer.site { background: var(--ink); color: #fff; padding-block: 48px 32px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: start; }
.foot p { font-size: 0.88rem; color: #94A3B8; max-width: 44ch; margin-top: 10px; }
.foot-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; }
.foot-brand img { width: 36px; height: 36px; border-radius: 50%; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.foot a { color: #CBD5E1; text-decoration: none; }
.foot a:hover { color: #fff; }
.copy-row { margin-top: 28px; padding-top: 20px; border-top: 1px solid #1E293B; font-size: 0.8rem; color: #64748B; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
