/* ==========================================================================
   Inovsion content design system
   Shared by blog articles and solution pages. Self-contained: depends on no
   vendor CSS, so pages using it stay fast and predictable.
   ========================================================================== */

:root {
    --iv-brand: #008afd;
    --iv-brand-dark: #0067c0;
    --iv-brand-soft: #e8f4ff;
    --iv-ink: #0b1a2b;
    --iv-body: #4a5b6e;
    --iv-muted: #6b7c90;
    --iv-line: #e3eaf2;
    --iv-bg: #ffffff;
    --iv-bg-alt: #f6f9fc;
    --iv-dark: #051428;
    --iv-radius: 16px;
    --iv-shadow: 0 4px 24px rgba(11, 26, 43, .08);
    --iv-shadow-lg: 0 18px 48px rgba(11, 26, 43, .14);
    --iv-maxw: 1180px;
    --iv-readw: 720px;
}

.iv *, .iv *::before, .iv *::after { box-sizing: border-box; }

.iv {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--iv-body);
    line-height: 1.7;
    background: var(--iv-bg);
    -webkit-font-smoothing: antialiased;
}

.iv h1, .iv h2, .iv h3, .iv h4 {
    color: var(--iv-ink);
    line-height: 1.22;
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -.02em;
}
.iv h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.iv h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.6em; }
.iv h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; margin-top: 1.4em; }
.iv p { margin: 0 0 1.1rem; }
.iv img { max-width: 100%; height: auto; display: block; }
.iv a { color: var(--iv-brand); text-decoration: none; }
.iv a:hover { text-decoration: underline; }
.iv strong { color: var(--iv-ink); font-weight: 700; }

.iv-wrap { width: 100%; max-width: var(--iv-maxw); margin-inline: auto; padding-inline: 20px; }
.iv-read { width: 100%; max-width: var(--iv-readw); margin-inline: auto; padding-inline: 20px; }
.iv-section { padding: clamp(44px, 6vw, 80px) 0; }
.iv-alt { background: var(--iv-bg-alt); }
.iv-center { text-align: center; }

.iv-eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--iv-brand); background: var(--iv-brand-soft);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

.iv-lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--iv-muted); }

.iv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--iv-brand); color: #fff; font-weight: 700; font-size: 1rem;
    padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; min-height: 48px;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.iv-btn:hover { background: var(--iv-brand-dark); transform: translateY(-2px); color: #fff; text-decoration: none; box-shadow: var(--iv-shadow); }
.iv-btn--ghost { background: transparent; color: var(--iv-brand); border: 2px solid var(--iv-brand); }
.iv-btn--ghost:hover { background: var(--iv-brand); color: #fff; }

/* ---------- hero ---------- */
.iv-hero {
    background: linear-gradient(140deg, #051428 0%, #0056a0 60%, #008afd 100%);
    color: #fff; padding: clamp(48px, 7vw, 90px) 0;
}
.iv-hero h1 { color: #fff; }
.iv-hero .iv-eyebrow { background: rgba(255, 255, 255, .16); color: #fff; }
.iv-hero .iv-lede { color: rgba(255, 255, 255, .88); }

/* ---------- breadcrumb ---------- */
.iv-crumb { font-size: .85rem; color: var(--iv-muted); padding: 16px 0; }
.iv-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.iv-crumb li::after { content: "›"; margin-left: 8px; color: var(--iv-line); }
.iv-crumb li:last-child::after { content: ""; }
.iv-crumb a { color: var(--iv-muted); }
.iv-crumb a:hover { color: var(--iv-brand); }

/* ---------- meta ---------- */
.iv-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 18px; }
.iv-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- grid + cards ---------- */
.iv-grid { display: grid; gap: 22px; }
.iv-grid--2 { grid-template-columns: repeat(2, 1fr); }
.iv-grid--3 { grid-template-columns: repeat(3, 1fr); }
.iv-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .iv-grid--3, .iv-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .iv-grid--2, .iv-grid--3, .iv-grid--4 { grid-template-columns: 1fr; } }

.iv-card {
    background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius);
    padding: 26px; height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.iv-card:hover { transform: translateY(-4px); box-shadow: var(--iv-shadow-lg); border-color: transparent; }
.iv-card > :last-child { margin-bottom: 0; }
.iv-card h3 { margin-top: 0; }
.iv-card__icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--iv-brand-soft);
    color: var(--iv-brand); display: grid; place-items: center; font-weight: 800;
    margin-bottom: 16px; font-size: 1.1rem;
}

/* ---------- ticks ---------- */
.iv-ticks { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.iv-ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.iv-ticks li::before {
    content: "✓"; position: absolute; left: 0; top: .15em; width: 20px; height: 20px;
    border-radius: 50%; background: var(--iv-brand); color: #fff; font-size: .7rem;
    display: grid; place-items: center; font-weight: 700;
}

/* ---------- callout ---------- */
.iv-callout {
    background: var(--iv-brand-soft); border-left: 4px solid var(--iv-brand);
    border-radius: 0 12px 12px 0; padding: 20px 22px; margin: 1.6rem 0;
}
.iv-callout > :last-child { margin-bottom: 0; }

/* ---------- article body ---------- */
.iv-article { font-size: 1.03rem; }
.iv-article ul, .iv-article ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.iv-article li { margin-bottom: .5rem; }
.iv-article figure { margin: 1.8rem 0; }
.iv-article figcaption { font-size: .82rem; color: var(--iv-muted); margin-top: 8px; text-align: center; }
.iv-article table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .93rem; }
.iv-article th, .iv-article td { border: 1px solid var(--iv-line); padding: 10px 12px; text-align: left; }
.iv-article th { background: var(--iv-bg-alt); color: var(--iv-ink); font-weight: 700; }
.iv-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- TOC ---------- */
.iv-toc { background: var(--iv-bg-alt); border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 22px; margin-bottom: 2rem; }
.iv-toc h2 { font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--iv-muted); }
.iv-toc ol { margin: 0; padding-left: 1.1rem; }
.iv-toc li { margin-bottom: 7px; }

/* ---------- FAQ ---------- */
.iv-faq details { border: 1px solid var(--iv-line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.iv-faq summary {
    cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; color: var(--iv-ink);
    list-style: none; position: relative;
}
.iv-faq summary::-webkit-details-marker { display: none; }
.iv-faq summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    font-size: 1.4rem; color: var(--iv-brand); font-weight: 400; line-height: 1;
}
.iv-faq details[open] summary::after { content: "–"; }
.iv-faq__body { padding: 0 20px 18px; }
.iv-faq__body > :last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.iv-cta { background: var(--iv-brand); color: #fff; border-radius: var(--iv-radius); padding: clamp(28px, 4vw, 48px); text-align: center; }
.iv-cta h2 { color: #fff; margin-top: 0; }
.iv-cta p { color: rgba(255, 255, 255, .9); max-width: 56ch; margin-inline: auto; }
.iv-cta .iv-btn { background: #fff; color: var(--iv-brand); }
.iv-cta .iv-btn:hover { background: var(--iv-ink); color: #fff; }

/* ---------- related ---------- */
.iv-related a { display: block; }
.iv-related .iv-card h3 { font-size: 1.05rem; }

@media (prefers-reduced-motion: reduce) {
    .iv * { animation: none !important; transition: none !important; }
}
