/* ============================================================
   CatchaCRM website v2 — design system lifted from the live CRM
   Font: Plus Jakarta Sans · bg #f8fafc · text #1e293b · primary #3b82f6
   ============================================================ */
:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #1e293b;
  --ink-soft: #475569;
  --ink-faint: #64748b;
  --ink-ghost: #94a3b8;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-ink: #1d4ed8;
  --blue-wash: #eff6ff;
  --green: #10b981;
  --green-wash: #ecfdf5;
  --amber: #f59e0b;
  --amber-wash: #fffbeb;
  --red: #ef4444;
  --red-wash: #fef2f2;
  --violet: #8b5cf6;
  --violet-wash: #f5f3ff;
  --radius: 14px;
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.05);
  --shadow-pop: 0 8px 30px rgba(15,23,42,.12);
  --shadow-blue: 0 4px 12px rgba(59,130,246,.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Scrollbars — same as CRM */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #cbd5e1; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  position: fixed; inset: 0 auto 0 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(226,232,240,.9);
  display: flex; flex-direction: column;
  z-index: 50;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
}
.sidebar-brand .logo-badge {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue-deep);
  display: grid; place-items: center; flex: none;
  box-shadow: var(--shadow-blue);
}
.sidebar-brand .logo-badge svg { width: 20px; height: 20px; }
.sidebar-brand .name { font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.sidebar-brand .name span { color: var(--blue-deep); }
.sidebar-brand .tag { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; color: var(--ink-ghost); text-transform: uppercase; }

.org-chip {
  margin: 0 14px 10px;
  display: flex; align-items: center; gap: 8px;
  background: var(--line-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 10px;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}
.org-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

.nav-group { padding: 8px 14px 2px; }
.nav-group-label {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-ghost);
  padding: 8px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; margin-bottom: 2px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav-item svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.nav-item:hover { background: var(--line-soft); color: var(--ink); }
.nav-item.active {
  background: var(--blue); color: #fff !important;
  box-shadow: var(--shadow-blue);
}
.nav-item.active svg { opacity: 1; }
.nav-item .pill {
  margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .06em;
  background: var(--green-wash); color: #059669;
  border: 1px solid #a7f3d0; border-radius: 99px; padding: 1px 7px;
}
.nav-item.active .pill { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.35); }

.sidebar-cta { margin-top: auto; padding: 14px; }
.sidebar-cta .card {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  border-radius: 12px; padding: 14px; color: #fff;
}
.sidebar-cta .card p { font-size: 12px; opacity: .85; margin: 4px 0 10px; line-height: 1.45; }
.sidebar-cta .card strong { font-size: 13.5px; }
.sidebar-cta .card a {
  display: block; text-align: center;
  background: #fff; color: var(--blue-ink);
  font-weight: 700; font-size: 12.5px;
  border-radius: 8px; padding: 8px;
}
.sidebar-foot { padding: 0 18px 16px; font-size: 11px; color: var(--ink-ghost); }

/* Topbar */
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: rgba(248,250,252,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.topbar .crumb { font-size: 13px; color: var(--ink-ghost); font-weight: 600; }
.topbar .crumb b { color: var(--ink); font-weight: 700; }
.topbar .spacer { flex: 1; }
.topbar .search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 12px;
  font-size: 12.5px; color: var(--ink-ghost);
  min-width: 200px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9px; font-weight: 700; font-size: 13.5px;
  padding: 9px 16px; border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue-deep); color: #fff !important; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-soft); }
.btn-lg { padding: 12px 22px; font-size: 14.5px; border-radius: 10px; }

/* Hamburger (mobile) */
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; }
.menu-btn svg { width: 18px; height: 18px; }
.scrim { display: none; }

/* ---------- Content ---------- */
.content { padding: 30px 34px 60px; max-width: 1180px; }
.content.wide { max-width: none; }

@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: slideUp .45s ease-out both; }
.rise-1 { animation-delay: .05s } .rise-2 { animation-delay: .12s } .rise-3 { animation-delay: .19s } .rise-4 { animation-delay: .26s }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-ink); background: var(--blue-wash);
  border: 1px solid #bfdbfe; border-radius: 99px; padding: 4px 12px;
}
h1.display {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 800;
  margin: 16px 0 14px;
}
h1.display .hl { color: var(--blue-deep); }
.lede { font-size: 16.5px; color: var(--ink-soft); max-width: 640px; }
h2.section {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.025em;
  margin: 6px 0 8px; line-height: 1.2;
}
.section-sub { color: var(--ink-soft); max-width: 620px; margin-bottom: 22px; }
.section-block { margin-top: 58px; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card.pad { padding: 22px; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.icon-tile {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 12px;
}
.icon-tile svg { width: 19px; height: 19px; }
.t-blue { background: var(--blue-wash); color: var(--blue-deep); }
.t-green { background: var(--green-wash); color: #059669; }
.t-amber { background: var(--amber-wash); color: #d97706; }
.t-red { background: var(--red-wash); color: #dc2626; }
.t-violet { background: var(--violet-wash); color: #7c3aed; }
.t-slate { background: var(--line-soft); color: var(--ink-soft); }

.card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.card .desc { font-size: 13.5px; color: var(--ink-soft); }
.feature-list { list-style: none; margin-top: 12px; }
.feature-list li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft); padding: 4px 0;
}
.feature-list li::before {
  content: ""; flex: none; width: 15px; height: 15px; margin-top: 3px;
  background: var(--green-wash) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23059669" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center/9px no-repeat;
  border-radius: 50%;
}

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--ink-ghost); text-transform: uppercase; }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; }
.stat .d { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.up { color: #059669; } .down { color: #dc2626; }

/* Chips / status */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .05em;
  border-radius: 99px; padding: 3px 10px; text-transform: uppercase;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.c-green { background: var(--green-wash); color: #059669; }
.c-blue { background: var(--blue-wash); color: var(--blue-ink); }
.c-amber { background: var(--amber-wash); color: #d97706; }
.c-red { background: var(--red-wash); color: #dc2626; }
.c-slate { background: var(--line-soft); color: var(--ink-faint); }
.c-violet { background: var(--violet-wash); color: #7c3aed; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-ghost);
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: #fafbfd; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 22px; position: relative; }
.plan.hot { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow-pop); }
.plan .flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--blue-deep); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .1em; border-radius: 99px; padding: 3px 12px; text-transform: uppercase;
  box-shadow: var(--shadow-blue); white-space: nowrap;
}
.plan .p-name { font-weight: 800; font-size: 16px; }
.plan .p-for { font-size: 12.5px; color: var(--ink-faint); min-height: 38px; margin-top: 3px; }
.plan .p-price { margin: 12px 0 2px; display: flex; align-items: baseline; gap: 5px; }
.plan .p-price .cur { font-size: 15px; font-weight: 700; color: var(--ink-ghost); }
.plan .p-price .amt { font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.plan .p-price .per { font-size: 12.5px; color: var(--ink-ghost); font-weight: 600; }
.plan .p-users { font-size: 12px; font-weight: 700; color: var(--blue-ink); background: var(--blue-wash); border-radius: 7px; padding: 4px 9px; display: inline-block; margin: 8px 0 4px; }
.plan .feature-list { flex: 1; }
.plan .btn { margin-top: 14px; }
.toggle-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0 26px; font-size: 13.5px; font-weight: 700; }
.toggle-wrap .save { font-size: 11px; color: #059669; background: var(--green-wash); border-radius: 99px; padding: 2px 9px; font-weight: 800; }
.switch { position: relative; width: 46px; height: 25px; background: var(--line); border-radius: 99px; border: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: left .2s; }
.switch.on { background: var(--blue-deep); }
.switch.on::after { left: 24px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px;
  font-weight: 700; font-size: 14.5px; padding: 16px 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 19px; color: var(--ink-ghost); font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq .a { padding: 0 4px 18px; color: var(--ink-soft); font-size: 13.5px; max-width: 720px; }

/* Demo widgets */
.kanban { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.kcol { background: var(--line-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 120px; }
.kcol.drag-over { border-color: var(--blue); background: var(--blue-wash); }
.kcol h4 { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding: 2px 4px 8px; display: flex; justify-content: space-between; }
.kcol h4 .sum { color: var(--ink); }
.kcard {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 11px; margin-bottom: 8px; cursor: grab;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: box-shadow .15s, transform .15s;
}
.kcard:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.kcard.dragging { opacity: .4; }
.kcard .t { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.kcard .m { font-size: 11px; color: var(--ink-ghost); margin-top: 3px; display: flex; justify-content: space-between; align-items: center; }
.kcard .val { font-weight: 800; color: var(--ink-soft); }
.kcard .adv {
  margin-top: 8px; width: 100%; border: 1px solid var(--line); background: var(--line-soft);
  border-radius: 7px; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); padding: 4px;
}
.kcard .adv:hover { background: var(--blue-wash); color: var(--blue-ink); border-color: #bfdbfe; }

.bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 10px; }
.bar-w { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; text-align: center; }
.bar { background: linear-gradient(180deg, #60a5fa, #2563eb); border-radius: 6px 6px 2px 2px; min-height: 5px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.bar-w .lbl { font-size: 9.5px; font-weight: 700; color: var(--ink-ghost); text-transform: uppercase; letter-spacing: .04em; }
.bar-w .amt { font-size: 10.5px; font-weight: 800; color: var(--ink-soft); }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.feed { list-style: none; }
.feed li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; color: var(--ink-soft); }
.feed li:last-child { border: 0; }
.feed .dot2 { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.feed time { margin-left: auto; flex: none; font-size: 10.5px; color: var(--ink-ghost); font-weight: 600; }

.demo-note {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 16px;
  font-size: 13px; color: var(--ink-soft); margin-bottom: 22px;
}
.demo-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.demo-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 8px 15px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.demo-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.demo-view { display: none; }
.demo-view.active { display: block; animation: slideUp .35s ease-out; }

/* Blueprint grid */
.bp-card { padding: 18px; transition: box-shadow .15s, transform .15s; }
.bp-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.bp-card .bp-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bp-card .bp-top .icon-tile { margin: 0; width: 34px; height: 34px; }
.bp-card h3 { font-size: 14px; }
.bp-card .desc { font-size: 12.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 22px; position: relative; }
.step .n {
  width: 30px; height: 30px; border-radius: 9px; background: var(--blue-deep); color: #fff;
  font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-bottom: 12px;
  box-shadow: var(--shadow-blue);
}

/* Blog */
.post-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.post-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-card h3 { font-size: 16px; line-height: 1.35; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue-deep); }
.prose { max-width: 760px; font-size: 15px; color: #334155; }
.prose h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.18; letter-spacing: -.025em; margin: 10px 0 18px; color: var(--ink); }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 34px 0 12px; color: var(--ink); }
.prose h3 { font-size: 17px; margin: 26px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.prose blockquote { border-left: 3px solid var(--blue); padding: 4px 16px; color: var(--ink-faint); margin: 0 0 16px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 0 0 18px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--line-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.prose code { background: var(--line-soft); border-radius: 5px; padding: 1px 6px; font-size: 13px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #1e3a8a, #2563eb 55%, #3b82f6);
  border-radius: 18px; padding: 40px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.025em; }
.cta-band p { opacity: .85; max-width: 560px; margin: 10px auto 20px; }
.cta-band .btn-ghost { border: none; }

/* Compare table */
.cmp-y { color: #059669; font-weight: 800; }
.cmp-n { color: var(--ink-ghost); }

/* Footer inside content */
.foot {
  margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between;
  font-size: 12.5px; color: var(--ink-ghost);
}
.foot a { color: var(--ink-faint); font-weight: 600; margin-right: 14px; }
.foot a:hover { color: var(--blue-deep); }

/* Forms */
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; color: var(--ink);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.field { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 270px; }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 45; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .topbar .search { display: none; }
  .content { padding: 22px 16px 50px; }
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .plans, .grid.c4, .stat-strip, .kanban { grid-template-columns: 1fr; }
  .topbar .btn-ghost.login { display: none; }
}

/* ---------- Blog module views (grid + calendar) ---------- */
.blog-tabs { display: flex; gap: 8px; margin: 4px 0 22px; }
.blog-tab {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  padding: 8px 15px; font-size: 13px; font-weight: 700; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
}
.blog-tab svg { width: 15px; height: 15px; }
.blog-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.blog-view { display: none; }
.blog-view.active { display: block; animation: slideUp .35s ease-out; }

.cal-card { padding: 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 15px; font-weight: 700; color: var(--ink-soft);
}
.cal-nav button:hover { background: var(--blue-wash); color: var(--blue-ink); border-color: #bfdbfe; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-ghost); text-align: center; padding: 4px 0 8px;
}
.cal-cell {
  min-height: 86px; border: 1px solid var(--line-soft); border-radius: 10px;
  background: #fff; padding: 6px; overflow: hidden;
}
.cal-cell.dim { background: var(--line-soft); border-color: transparent; }
.cal-cell.today { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.cal-cell.today .cal-day { color: var(--blue-ink); }
.cal-day { font-size: 11px; font-weight: 800; color: var(--ink-ghost); margin-bottom: 4px; }
.cal-chip {
  display: block; background: var(--blue); color: #fff !important;
  border-radius: 7px; padding: 5px 7px; margin-bottom: 4px;
  font-size: 10.5px; font-weight: 700; line-height: 1.25;
  box-shadow: var(--shadow-blue);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  transition: transform .12s, filter .15s;
}
.cal-chip:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cal-chip-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 2px; opacity: .8; }
.cal-list { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.cal-list-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 6px;
  border-radius: 9px; font-size: 13.5px;
}
.cal-list-item:hover { background: var(--line-soft); }
.cal-list-title { font-weight: 700; color: var(--ink); flex: 1; }
.cal-list-go { font-size: 11.5px; font-weight: 700; color: var(--blue-ink); white-space: nowrap; }
@media (max-width: 700px) {
  .cal-cell { min-height: 56px; }
  .cal-chip { font-size: 0; padding: 0; width: 10px; height: 10px; border-radius: 50%; margin: 2px auto 0; }
  .cal-chip-dot { display: none; }
}

/* ---------- icon sizing safety net (SVGs without width default to 100%!) ---------- */
.eyebrow svg { width: 13px; height: 13px; flex: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.topbar .search svg { width: 15px; height: 15px; flex: none; }
.demo-note > svg { width: 20px; height: 20px; flex: none; }
.crumb svg, .foot svg { width: 14px; height: 14px; flex: none; }
/* absolute catch-all: any inline icon svg that has no explicit size never exceeds 24px */
main svg:not([width]):not(.icon-tile svg):not(.bar svg) { max-width: 24px; max-height: 24px; }
.icon-tile svg { max-width: none; max-height: none; width: 19px; height: 19px; }
.bp-card .icon-tile svg { width: 17px; height: 17px; }
