/* Insuroma — modern theme
   Cool white base, deep navy hero with colour glows, one bright colour per category,
   Plus Jakarta Sans headings + Inter body, soft rounded cards. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #0b1020;
  --ink-2: #39425a;
  --muted: #6b7489;
  --line: #e6e9f2;
  --navy: #0b1020;
  --navy-2: #141b33;
  --brand: #3b6cff;
  --brand-2: #8b5cf6;
  --grad: linear-gradient(135deg, #3b6cff 0%, #8b5cf6 100%);
  --c: var(--brand);
  --radius: 20px;
  --shadow: 0 1px 2px rgba(11, 16, 32, .04), 0 10px 30px -12px rgba(11, 16, 32, .12);
  --shadow-lg: 0 2px 4px rgba(11, 16, 32, .05), 0 24px 48px -20px rgba(11, 16, 32, .25);
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--brand-2); }
:focus-visible { outline: 3px solid #93b0ff; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.8) blur(14px); -webkit-backdrop-filter: saturate(1.8) blur(14px); border-bottom: 1px solid rgba(230, 233, 242, .9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.035em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .94rem; transition: background .15s, color .15s; }
.site-nav a:hover { background: #eef2ff; color: var(--brand); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 9px 18px; min-height: 44px; cursor: pointer; }
@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-family: var(--display); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(91, 108, 255, .8); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -10px rgba(91, 108, 255, .9); }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost:hover { color: var(--brand); border-color: #c7d4ff; }

/* Home hero */
.hero { background: var(--navy); color: #fff; padding: 96px 0 104px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(520px 380px at 12% 0%, rgba(59, 108, 255, .45), transparent 70%),
    radial-gradient(520px 420px at 92% 20%, rgba(139, 92, 246, .45), transparent 70%),
    radial-gradient(460px 320px at 70% 110%, rgba(6, 182, 212, .30), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: #c7d2fe; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 14px; border-radius: 999px; margin: 0 0 22px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 22px; text-wrap: balance; }
.hero h1 .grad { background: linear-gradient(90deg, #7aa2ff, #c4b5fd 55%, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: #b8c0d9; font-size: 1.15rem; max-width: 44ch; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-panel { display: grid; gap: 14px; }
.stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat strong { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; min-width: 60px; background: linear-gradient(135deg, #7aa2ff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #c9d0e6; font-size: .97rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding: 64px 0 72px; } }

/* Sections */
.section { padding: 80px 0; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.035em; margin: 0 0 10px; line-height: 1.12; text-wrap: balance; }
.section-title.small { font-size: 1.3rem; letter-spacing: -.02em; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 60ch; font-size: 1.05rem; }
.band { background: var(--surface); border-block: 1px solid var(--line); padding: 72px 0; }
.band .section-title { margin-bottom: 26px; }
.band .section-sub { margin-top: -18px; }
.band-dark { background: var(--navy); color: #fff; border: 0; position: relative; overflow: hidden; isolation: isolate; }
.band-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(139, 92, 246, .28), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(59, 108, 255, .25), transparent 70%); }
.band-dark .section-title { color: #fff; }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); }
.card h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin: 0; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: .96rem; line-height: 1.6; flex: 1; }
.card .meta { color: var(--c); font-weight: 700; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.card .meta span { transition: transform .2s; }
.card:hover .meta span { transform: translateX(4px); }
.band .card { background: var(--bg); box-shadow: none; }
.band .card:hover { background: var(--surface); box-shadow: var(--shadow-lg); }
.cat-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); opacity: .7; transition: opacity .2s, transform .3s; }
.cat-card:hover::after { opacity: 1; transform: scale(1.15); }
.cat-icon { width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); display: grid; place-items: center; margin-bottom: 6px; transition: background .2s, color .2s; }
.cat-card:hover .cat-icon { background: var(--c); color: #fff; }
.icon { width: 26px; height: 26px; }
.icon-sm { width: 18px; height: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); padding: 5px 12px; border-radius: 999px; width: fit-content; }

/* Topic lists (home) */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.topic-list { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 22px 24px 12px; }
.topic-list h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.05rem; letter-spacing: -.01em; }
.topic-list h3 a { color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.topic-list h3 a .icon { color: var(--c); }
.topic-list h3 a:hover { color: #c7d2fe; }
.topic-list ul { list-style: none; margin: 0; padding: 0; }
.topic-list li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.topic-list li a { display: block; padding: 10px 0; color: #c9d0e6; text-decoration: none; font-size: .95rem; line-height: 1.45; }
.topic-list li a:hover { color: #fff; }
.intro-split .prose { max-width: 820px; }

/* Page hero */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); padding: 40px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 320px at 90% -10%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%),
              radial-gradient(500px 300px at -5% 120%, color-mix(in srgb, var(--brand-2) 10%, transparent), transparent 70%); }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; margin: 14px 0 16px; max-width: 24ch; text-wrap: balance; }
.article-hero h1 { max-width: none; }
.page-hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; margin: 0 0 14px; }
.byline { color: var(--muted); font-size: .9rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.hero-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--c); color: #fff; display: grid; place-items: center; margin-top: 18px; box-shadow: 0 12px 28px -12px var(--c); }
.hero-icon .icon { width: 30px; height: 30px; }
.article-hero .eyebrow { margin-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #b3bacb; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* Layout with TOC */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 52px 0 80px; align-items: start; }
.toc { position: sticky; top: 94px; font-size: .92rem; max-height: calc(100vh - 112px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); }
.toc summary { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--ink); cursor: pointer; margin-bottom: 10px; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: background .15s, color .15s; }
.toc a:hover { background: #eef2ff; color: var(--brand); }
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; max-height: none; box-shadow: none; }
  .toc summary { margin: 0; }
  .toc summary::after { content: " +"; color: var(--muted); }
  .toc details[open] summary::after { content: " −"; }
  .toc details[open] summary { margin-bottom: 10px; }
}

/* Prose */
.prose { max-width: 720px; }
.narrow .prose { padding: 44px 0 8px; max-width: none; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.2; letter-spacing: -.03em; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.015em; margin: 1.8em 0 .4em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; color: #222a3d; }
.prose li { margin-bottom: .5em; padding-left: 2px; }
.prose ul li::marker { color: var(--c); }
.prose ol li::marker { color: var(--c); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1.5em 0 1.9em; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #f1f4fb; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .88rem; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: #fafbff; }
.callout { background: #eef2ff; border: 1px solid #dbe3ff; padding: 16px 20px; border-radius: 14px; }
.article-foot { padding: 16px 0 72px; }

/* Chips */
.other-cats { padding: 56px 0 80px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.chip .icon { color: var(--c); }
.chip:hover { transform: translateY(-2px); border-color: var(--c); color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy); color: #9aa3bd; padding: 64px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-family: var(--display); font-size: .9rem; font-weight: 700; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b8c0d9; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff !important; font-size: 1.4rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 22px; font-size: .85rem; color: #7c86a2; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { body { font-size: 16px; } .footer-grid { grid-template-columns: 1fr; } .card { padding: 22px; } }

/* Affiliate / sponsored slot */
.affiliate-box { position: relative; margin: 1.6em 0 2em; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.affiliate-box .ad-label { position: absolute; top: 8px; right: 12px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.affiliate-box iframe { max-width: 100%; }
