/* insightworker.com shared layer: header, buttons, inner-page banner, footer, cookie notice and palette fixes.
   Loaded after style.css on every page (site_meta.py adds the link). */
:root {
    --iw-ink: #0b1020;
    --iw-ink-2: #1c2240;
    --iw-body: #3d4663;
    --iw-muted: #5b6482;
    --iw-violet: #6d28d9;
    --iw-violet-deep: #4338ca;
    --iw-cyan: #cfb5f9;
    --iw-cyan-deep: #8340ec;
    --iw-mist: #f5f7ff;
    --iw-line: #e2e6f3;
    --iw-grad: linear-gradient(135deg, #4338ca 0%, #4338ca 45%, #6d28d9 100%);
    --iw-radius: 16px;
    --iw-shadow: 0 10px 30px rgba(11, 16, 32, .08);
    --iw-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
    /* the copied template's coral accent becomes the product's violet */
    --theme-primary: #6d28d9;
    --theme-primary-dark: #4338ca;
    --theme-heading: #0b1020;
}
html { scroll-behavior: smooth; }
body { color: var(--iw-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #cfb5f9; outline-offset: 2px; }
#preloader-active { display: none !important; }

/* ---------- buttons ---------- */
.iw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 46px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
    font: 600 15px/1.2 "Poppins", sans-serif; text-decoration: none !important; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.iw-btn i { font-size: 13px; }
.iw-btn--primary { background: var(--iw-violet-deep); color: #fff !important; box-shadow: 0 8px 20px rgba(67, 56, 202, .28); }
.iw-btn--primary:hover { background: #362db5; color: #fff !important; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(67, 56, 202, .34); }
.iw-btn--ghost { background: #fff; color: var(--iw-ink) !important; border-color: #cfd5ea; }
.iw-btn--ghost:hover { border-color: var(--iw-violet); color: var(--iw-violet-deep) !important; }
.iw-btn--dark { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.iw-btn--dark:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff !important; }
/* Hero primary CTA: brand-gradient pill, same as the other product sites. White text on #4338ca is 7.9:1, on #6d28d9 7.1:1. */
.iw-btn--grad { background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%); color: #fff !important; border-radius: 999px; box-shadow: 0 10px 30px rgba(109, 40, 217, .35); }
.iw-btn--grad:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 14px 36px rgba(109, 40, 217, .5); }
.iw-btn--light { background: #fff; color: var(--iw-violet-deep) !important; }
.iw-btn--light:hover { background: #eef0ff; color: #362db5 !important; transform: translateY(-1px); }

/* ---------- header: the shared kit (assets/css/site-header.css, unchanged). Only its palette is set here. ---------- */
:root { --sh-brand: #4338ca; --sh-brand-2: #6d28d9; --sh-ink: #0b1020; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; color: #4338ca; padding: 10px 14px; border-radius: 8px; z-index: 1100; font-weight: 600; }
.skip-link:focus { left: 12px; }

/* ---------- inner-page banner (replaces the stock-photo banner) ---------- */
.slider-area { margin: 0 !important; padding: 0 !important; background: none !important; }
.slider-area .single-slider,
.slider-area .slider-height2 {
    position: relative; min-height: 0 !important; height: auto !important; padding: 72px 0 64px !important;
    background: radial-gradient(900px 380px at 88% -10%, rgba(109, 40, 217, .22), transparent 60%),
                radial-gradient(760px 420px at 4% 110%, rgba(67, 56, 202, .42), transparent 62%),
                linear-gradient(180deg, #0b1020 0%, #141a3c 100%) !important;
    background-image: radial-gradient(900px 380px at 88% -10%, rgba(109, 40, 217, .22), transparent 60%),
                radial-gradient(760px 420px at 4% 110%, rgba(67, 56, 202, .42), transparent 62%),
                linear-gradient(180deg, #0b1020 0%, #141a3c 100%) !important;
}
.slider-area .single-slider::before, .slider-area .overlay::before { display: none !important; }
.slider-area .hero-cap, .slider-area .hero-cap-wrapper, .slider-area .hero-text-wrapper { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; backdrop-filter: none !important; max-width: 860px; margin: 0 auto !important; opacity: 1 !important; transform: none !important; }
.slider-area .hero-cap h1, .slider-area .hero-cap h2 {
    color: #fff !important; font: 700 clamp(30px, 4.4vw, 46px)/1.14 "Poppins", sans-serif !important; letter-spacing: -.02em; margin: 0 !important; text-shadow: none !important;
    -webkit-text-fill-color: #fff; background: none !important; text-transform: none !important;
}
.slider-area .hero-cap p { color: #c9d0ee !important; font-size: 17px !important; line-height: 1.6 !important; margin: 16px auto 0 !important; max-width: 720px; }
@media (max-width: 600px) { .slider-area .single-slider, .slider-area .slider-height2 { padding: 48px 0 44px !important; } .slider-area .hero-cap p { font-size: 16px !important; } }

/* ---------- footer ---------- */
.iw-ft { padding-top: 64px; }
.iw-ft__cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 34px; margin-bottom: 56px; border-radius: 20px; background: linear-gradient(120deg, #4338ca 0%, #4338ca 55%, #ae84ef 100%); }
.iw-ft__cta h2 { color: #fff; font: 700 24px/1.25 "Poppins", sans-serif; margin: 0 0 6px; letter-spacing: -.01em; }
.iw-ft .iw-ft__cta p { color: #eef0ff !important; margin: 0 !important; font-size: 15px; line-height: 1.55; max-width: 640px; }
.iw-ft__cta .iw-btn { flex-shrink: 0; }
.iw-ft .iw-ft__cols { grid-template-columns: 1.7fr 1fr 1fr 1fr 1.25fr; }
.iw-ft .vs-footer__col h3 { color: #fff; font: 600 13px/1 "Poppins", sans-serif; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
.iw-ft .vs-footer__col ul { list-style: none; margin: 0; padding: 0; }
.iw-ft .vs-footer__col li { color: #b6bee0; font-size: 14.5px; line-height: 1.45; margin: 0 0 4px; padding: 5px 0; }
.iw-ft .vs-footer__col li a { color: #cdd3f0; display: inline-block; padding: 5px 0; margin: -5px 0; text-decoration: none; }
.iw-ft .vs-footer__col li a:hover { color: #fff; text-decoration: underline; }
.iw-ft p.tagline { color: #b6bee0 !important; font-size: 14.5px; line-height: 1.6; max-width: 330px; }
.iw-ft .tagline a { color: #e1cffd; }
.iw-ft .vs-footer__social a { width: 42px; height: 42px; }
.iw-ft .vs-footer__bottom, .iw-ft .vs-footer__bottom a { color: #a9b2d6; font-size: 13.5px; }
.iw-ft .vs-footer__bottom a:hover { color: #fff; }
.iw-ft .vs-footer__legal a { display: inline-block; padding: 10px 0; }
@media (max-width: 1100px) { .iw-ft .iw-ft__cols { grid-template-columns: 1fr 1fr 1fr; } .iw-ft .vs-footer__brand-col { grid-column: 1 / -1; } }
@media (max-width: 760px) { .iw-ft__cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; } .iw-ft .iw-ft__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .iw-ft .iw-ft__cols { grid-template-columns: 1fr; } }

/* ---------- cookie notice ---------- */
.cookie-banner { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; max-width: 880px; margin: 0 auto; background: #0f1530; color: #dfe4fa; border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; box-shadow: 0 24px 60px rgba(11, 16, 32, .4); padding: 16px 18px; }
.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.cookie-banner__msg { display: flex; gap: 12px; align-items: flex-start; }
.cookie-banner__msg .icon { color: #e1cffd; font-size: 18px; margin-top: 2px; }
.cookie-banner__msg p { margin: 0; color: #dfe4fa; font-size: 14px; line-height: 1.55; }
.cookie-banner__msg a { color: #e1cffd; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn { min-height: 42px; padding: 9px 18px; border-radius: 10px; font: 600 14px/1 "Poppins", sans-serif; cursor: pointer; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.cookie-banner__btn--accept { background: #fff; color: #2821a1; border-color: #fff; }
.cookie-banner__btn:hover { border-color: #fff; }
@media (max-width: 680px) { .cookie-banner-inner { flex-direction: column; align-items: stretch; } .cookie-banner__actions { justify-content: flex-end; } }

#scrollUp { background: var(--iw-violet-deep) !important; border-radius: 12px !important; right: 18px !important; bottom: 18px !important; }

/* ---------- privacy policy ---------- */
.iw-legal { padding: 64px 0 72px; }
.iw-legal .container { max-width: 880px; }
.iw-legal, .iw-legal span, .iw-legal p, .iw-legal li { font-family: "Poppins", sans-serif !important; color: var(--iw-body); font-size: 16px; line-height: 1.7; }
.iw-legal h2, .iw-legal h3, .iw-legal h2 span, .iw-legal h3 span, .iw-legal h2 b, .iw-legal h3 b { font-family: "Poppins", sans-serif !important; color: var(--iw-ink) !important; font-weight: 700 !important; }
.iw-legal h2 { font-size: 26px; margin: 0 0 14px; }
.iw-legal h3 { font-size: 19px; margin: 30px 0 10px; }
.iw-legal a { color: var(--iw-violet-deep); text-decoration: underline; }
.iw-legal__box { background: var(--iw-mist); border: 1px solid var(--iw-line); border-radius: 18px; padding: 28px 28px 20px; margin-bottom: 44px; }
.iw-legal__box ul { margin: 0 0 14px; padding-left: 22px; }
.iw-legal__box li { list-style: disc; margin-bottom: 10px; }
.iw-legal__box code { font-family: var(--iw-mono); font-size: .9em; background: #e9ecfa; color: #292471; padding: 2px 6px; border-radius: 6px; }

/* ---------- legacy inner pages: readable sizes and tap targets ---------- */
.iw-card-eyebrow, .iw-eyebrow, .case-eyebrow { font-size: 12px !important; }
.iw-card-link, a.iw-card-link { display: inline-flex !important; align-items: center; min-height: 40px; }
.iw-copy-btn { min-height: 40px; min-width: 40px; }
.iw-ft .vs-brand { min-height: 40px; }
@media (max-width: 760px) {
    .iw-ft .vs-footer__col li { padding: 0; margin: 0; }
    .iw-ft .vs-footer__col li a { display: flex; align-items: center; min-height: 40px; margin: 0; padding: 0; }
    .iw-ft .vs-footer__col li:not(:has(a)) { min-height: 32px; display: flex; align-items: center; }
    .iw-ft .vs-footer__legal a { min-height: 40px; display: inline-flex; align-items: center; padding: 0; }
}
.iw-tag, .step-tool, code.step-tool { font-size: 12px !important; }
[style*="font-size:11px"], [style*="font-size: 11px"], [style*="font-size:10px"], [style*="font-size: 10px"] { font-size: 12px !important; }
main code, section code, .iw-info-box code { font-size: max(12px, .875em); }
table th { font-size: max(12px, 1em); }
.iw-filter-btn { min-height: 40px; }
a[href$="use-cases.html"][style*="font-size:13px"], a[href$="blogs.html"][style*="font-size:13px"] { display: inline-flex !important; align-items: center; min-height: 40px; font-size: 14px !important; }
a[style*="padding:11px 28px"] { display: inline-flex !important; align-items: center; min-height: 46px; border-radius: 12px !important; }
.iw-ft .vs-footer__bottom a { display: inline-block; padding: 10px 0; }

/* ---------- docs pages: no sideways scroll on phones ---------- */
.doc-layout { grid-template-columns: 240px minmax(0, 1fr) !important; }
.doc-body, .doc-sidebar { min-width: 0; }
.doc-body code, .step-body code, code.inline, .mode-meta, .mode-meta code { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.doc-body pre.doc-code, .doc-body pre { max-width: 100%; overflow-x: auto; }
.doc-body pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.doc-body img { max-width: 100%; height: auto; }
.doc-sidebar h6 { font-size: 12px !important; }
.doc-body h1 { font-size: clamp(26px, 3.4vw, 32px) !important; line-height: 1.2; }
@media (max-width: 992px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr) !important; }
    .doc-sidebar { order: 2; border-top: 1px solid var(--iw-line); padding-top: 20px; margin-top: 12px; font-size: 14.5px !important; }
    .doc-sidebar li { padding: 0 !important; }
    .doc-sidebar a { display: flex; align-items: center; min-height: 40px; }
    .doc-breadcrumb a, .doc-section-card li a { display: inline-flex; align-items: center; min-height: 40px; }
    .doc-section-card li { margin-bottom: 0 !important; }
}
.num, .card-eyebrow, .mode-eyebrow, .ent-eyebrow { font-size: 12px !important; }
[style*="font-size:11.5px"], [style*="font-size: 11.5px"] { font-size: 12px !important; }
.ent-cta-btn, .btn-iw-primary, .btn-iw-outline { display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px; }
.mode-meta, .step-body, .mode-card, .step-card { min-width: 0; max-width: 100%; }
pre.dark-block, .dark-block { max-width: 100%; overflow-x: auto; }
.inline-code, code.inline-code { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.mode-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
@media (max-width: 760px) {
    .mode-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .mode-card { padding: 20px !important; }
    [style*="padding:36px 40px"] { padding: 24px 20px !important; }
    [style*="padding:36px 40px"] > * { min-width: 0 !important; max-width: 100%; }
    [style*="padding:36px 40px"] a { white-space: normal !important; text-align: center; }
}
.iw-table th { font-size: 12px !important; }
.sh__mark svg { display: block; }
.vs-brand__mark svg { position: relative; z-index: 1; }
