/* Shared styles for the Insights section. Tokens mirror the homepage. */
:root {
  --navy-950: #050d15;
  --navy-900: #07121c;
  --navy-800: #0c1d2b;
  --navy-700: #13304a;
  --blue: #2e9bf0;
  --blue-bright: #5cc2ff;
  --blue-dark: #1768b8;
  --ice: #eef4f9;
  --ink: #0b1b2b;
  --body: #34465a;
  --muted: #64768a;
  --line: #d5e1ec;
  --line-dark: rgba(140,190,230,.16);
  --on-dark: #c7d5e2;
  --head: "Outfit", "Campton", system-ui, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--body); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); font-family: var(--head); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.dark { background: var(--navy-900); color: var(--on-dark); }
.dark h1, .dark h2 { color: #fff; }
.dark .eyebrow { color: var(--blue-bright); }
.grid-bg { background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px); background-size: 56px 56px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--blue); color: var(--navy-950); font-family: var(--head); font-weight: 600; font-size: 1.04rem; text-decoration: none; padding: 16px 28px; border-radius: 10px; min-height: 54px; transition: background .15s, transform .15s; box-shadow: 0 10px 30px -10px rgba(46,155,240,.7); }
.btn:hover { background: var(--blue-bright); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; min-height: 44px; box-shadow: none; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.trust { font-size: 0.9rem; color: #8ea5ba; margin-top: 16px; }
.trust a { color: var(--blue-bright); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7,18,28,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { width: 150px; height: auto; }
/* Section menu: dropdown under 1024px, inline above */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { display: none; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; color: #fff; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .close, .menu-toggle[aria-expanded="true"] .open { display: none; }
.menu-toggle[aria-expanded="true"] .close { display: block; }
.menu-links { list-style: none; margin: 0; padding: 8px 20px 20px; display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--navy-900); border-bottom: 1px solid var(--line-dark); box-shadow: 0 30px 40px -20px rgba(0,0,0,.6); }
.menu-links.open { display: block; }
.menu-links a { display: block; padding: 14px 4px; color: #dbe6f0; text-decoration: none; font-family: var(--head); font-size: 1.15rem; border-bottom: 1px solid var(--line-dark); }
.menu-links li:last-child a { border-bottom: 0; }
.menu-links a:hover, .menu-links a[aria-current="true"] { color: var(--blue-bright); }

/* Page head */
.page-head { position: relative; overflow: hidden; padding: 56px 0 60px; }
.head-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 80% at 90% 10%, rgba(46,155,240,.28), transparent 70%), radial-gradient(ellipse 45% 60% at 0% 40%, rgba(44,90,112,.35), transparent 70%); pointer-events: none; }
.page-head .wrap { position: relative; }
.crumbs { display: flex; gap: 8px; font-size: 0.88rem; margin-bottom: 22px; color: #6f879d; }
.crumbs a { color: #9fb3c6; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.dek { font-size: 1.12rem; max-width: 680px; margin: 18px 0 0; color: #d4e0ea; }
.byline { margin: 20px 0 0; font-size: 0.95rem; color: #9fb3c6; }
.byline a { color: #fff; text-decoration: none; font-weight: 500; }

/* Article body */
.prose { padding-top: 48px; padding-bottom: 64px; }
.prose .lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.prose h2 { margin: 44px 0 14px; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--ink); }
.proof-box { margin: 44px 0 20px; padding: 24px 26px; border-radius: 14px; background: var(--navy-900); color: #dbe6f0; border-left: 4px solid var(--blue); }
.proof-box .label { display: block; font-family: var(--head); font-size: 0.76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 8px; }
.proof-box p { margin: 0; font-size: 1.08rem; color: #fff; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: 14px; background: var(--ice); border: 1px solid var(--line); font-size: 0.96rem; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 2px solid var(--blue); }
.author-box p { margin: 0; }

/* Cards */
.listing { padding: 56px 0 80px; background: var(--ice); }
.related { padding: 64px 0 80px; background: var(--ice); }
.related h2 { margin-bottom: 26px; }
.post-grid { display: grid; gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(11,27,43,.35); border-color: #b8d2e8; }
.post-card .cat { font-size: 0.74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 10px; }
.post-card h3 { margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card p { margin: 0 0 18px; font-size: 0.96rem; }
.post-card .meta { margin-top: auto; font-size: 0.85rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 76px 0; }
.cta-band .glow { position: absolute; left: 50%; top: 0; width: 900px; height: 500px; transform: translate(-50%, -45%); background: radial-gradient(ellipse, rgba(46,155,240,.35), transparent 65%); pointer-events: none; }
.cta-band .wrap { position: relative; }
.cta-band h2 { max-width: 720px; margin: 0 auto; }
.cta-band p { max-width: 580px; margin: 16px auto 28px; font-size: 1.06rem; }
.cta-band .trust { margin: 16px auto 0; }

/* Footer + mobile CTA */
footer.site { background: var(--navy-950); color: #8ea5ba; padding: 44px 0 116px; font-size: 0.9rem; border-top: 1px solid var(--line-dark); }
footer.site .wrap { display: grid; gap: 22px; }
footer.site img { width: 190px; height: auto; }
footer.site a { color: #c7d5e2; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,18,28,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line-dark); display: flex; gap: 10px; }
.sticky-cta .btn { flex: 1; padding: 12px 16px; min-height: 48px; box-shadow: none; }
.sticky-cta .btn-ghost { flex: 0 0 auto; }

@media (min-width: 768px) {
  .nav-actions .btn { display: inline-flex; }
  .logo img { width: 158px; }
  .page-head { padding: 84px 0 88px; }
  .prose { padding-top: 64px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: none; }
  footer.site { padding-bottom: 44px; }
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .menu-links { display: flex; position: static; padding: 0; gap: 4px; background: none; border: 0; box-shadow: none; }
  .menu-links a { padding: 8px 12px; font-size: 0.98rem; border: 0; border-radius: 8px; position: relative; }
  .menu-links a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--blue-bright); border-radius: 2px; }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .post-card { transition: none; } }
