/**
 * Investro premium design system ??? shared tokens, homepage, blog.
 */

:root {
  --inv-bg: #0a0e1a;
  --inv-card: #111827;
  --inv-border: #1e2d4a;
  --inv-border2: #253352;
  --inv-gold: #c9a84c;
  --inv-gold2: #e8c96d;
  --inv-text: #e8edf5;
  --inv-text2: #8899bb;
  --inv-text3: #4a5f80;
  --inv-green: #22c55e;
  /* ── Global layout tokens ─────────────────────────────
     Single source of truth for the site-wide grid.
     Every major container uses these values so the entire
     site aligns on one consistent vertical column.        */
  --inv-max: 1400px;   /* was 1500px */
  --inv-pad: 24px;
  --inv-content: 720px;
}

/* ── Global reusable container ── */
.site-container {
  max-width: var(--inv-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--inv-pad);
  padding-right: var(--inv-pad);
  box-sizing: border-box;
}

body.investro-premium {
  background: var(--inv-bg) !important;
  color: var(--inv-text);
  font-family: 'DM Sans', sans-serif;
}

/* ?????? Trust strip (homepage) ?????? */
.investro-home-main {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.gst-seo-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--inv-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

/* ── Trust indicators strip (Option A) ──────────────────────────────────
   No box, no background, no border — just a clean inline row of items
   that sits between the hero and the trending section.
   Container matches the trending section exactly (same max-width, same
   horizontal padding) so both sections feel like one visual group.     */
.inv-trust-strip {
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 20px var(--inv-pad) 0;
  box-sizing: border-box;
}
.inv-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 0;
}
.inv-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--inv-text2);
  position: relative;
  white-space: nowrap;
}
/* Disable legacy ::before checkmark */
.inv-trust-item::before { display: none; }
/* Dot separator between items */
.inv-trust-item + .inv-trust-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.35);
  pointer-events: none;
}
.inv-trust-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Mobile — 2 × 2 grid, same horizontal padding as trending section */
@media (max-width: 640px) {
  .inv-trust-strip  { padding: 16px var(--inv-pad, 24px) 0; }
  .inv-trust-inner  {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
  }
  .inv-trust-item {
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    font-size: 12px;
    white-space: normal;
    line-height: 1.4;
  }
  .inv-trust-item + .inv-trust-item::after { display: none; }
}

/* Mid CTA band */
.inv-mid-cta {
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 48px 24px;
}
.inv-mid-cta-inner {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(17,24,39,0.9));
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 20px;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.inv-mid-cta h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--inv-text);
}
.inv-mid-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--inv-text2);
  line-height: 1.6;
}
.inv-mid-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--inv-gold), #a8882e);
  color: #0a0e1a !important;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(201,168,76,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.inv-mid-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(201,168,76,0.45);
}
@media (max-width: 700px) {
  .inv-mid-cta-inner { grid-template-columns: 1fr; text-align: center; }
  .inv-mid-cta-btn { justify-content: center; }
}

/* ?????? Blog layout ?????? */
.inv-blog-wrap {
  background: var(--inv-bg);
  padding: 48px 0 96px;
  font-family: 'DM Sans', sans-serif;
}
.inv-blog-inner {
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 0 var(--inv-pad);
}
.inv-blog-bc {
  font-size: 12px;
  color: var(--inv-text3);
  margin-bottom: 24px;
}
.inv-blog-bc a { color: var(--inv-text2); text-decoration: none; }
.inv-blog-bc a:hover { color: var(--inv-gold); }
.inv-blog-bc span { margin: 0 8px; opacity: 0.5; }
.inv-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .inv-blog-layout { grid-template-columns: 1fr; }
  /* order: -1 removed — sidebar now shows AFTER article on mobile.
     Previously this put the TOC + calculator links above the article. */
  .inv-blog-sidebar { order: 2; }
}
.inv-blog-article {
  max-width: var(--inv-content);
}
.inv-blog-featured {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--inv-border);
  aspect-ratio: 16/9;
  background: var(--inv-card);
}
.inv-blog-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.inv-blog-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--inv-text);
}
.inv-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--inv-text2);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--inv-border);
}
.inv-blog-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--inv-text2);
}
.inv-blog-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--inv-text);
  margin: 2em 0 0.75em;
  scroll-margin-top: 90px; /* synced with investro-blog.css */
}
.inv-blog-content h3 {
  font-size: 20px;
  color: var(--inv-text);
  margin: 1.5em 0 0.5em;
  scroll-margin-top: 90px; /* synced with investro-blog.css */
}
.inv-blog-content p { margin: 0 0 1.25em; }
.inv-blog-content a { color: var(--inv-gold); text-decoration: underline; text-underline-offset: 3px; }
.inv-blog-content ul, .inv-blog-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.inv-blog-content li { margin-bottom: 0.5em; }
.inv-blog-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--inv-gold);
  background: rgba(201,168,76,0.06);
  border-radius: 0 12px 12px 0;
  color: var(--inv-text);
}
.inv-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5em 0;
}
.inv-blog-toc {
  background: var(--inv-card);
  border: 1px solid var(--inv-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.inv-blog-toc-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--inv-text3);
  margin-bottom: 12px;
}
.inv-blog-toc ul { list-style: none; margin: 0; padding: 0; }
.inv-blog-toc li { margin-bottom: 8px; }
.inv-blog-toc a {
  font-size: 13px;
  color: var(--inv-text2);
  text-decoration: none;
  line-height: 1.4;
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  transition: color 0.2s, border-color 0.2s;
}
.inv-blog-toc a:hover, .inv-blog-toc a.is-active {
  color: var(--inv-gold);
  border-left-color: var(--inv-gold);
}
.inv-blog-sidebar {
  position: sticky;
  top: 96px;
}
.inv-blog-widget {
  background: var(--inv-card);
  border: 1px solid var(--inv-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}
.inv-blog-widget h4 {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--inv-text3);
  margin: 0 0 14px;
}
.inv-blog-widget a {
  display: block;
  font-size: 13px;
  color: var(--inv-text2);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--inv-border);
}
.inv-blog-widget a:last-child { border-bottom: none; }
.inv-blog-widget a:hover { color: var(--inv-gold); }
.inv-blog-faq { margin-top: 48px; }
.inv-blog-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--inv-card);
  border: 1px solid var(--inv-border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 48px;
}
.inv-blog-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
}
.inv-blog-author h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--inv-text);
}
.inv-blog-author p { margin: 0; font-size: 14px; color: var(--inv-text2); line-height: 1.6; }
.inv-blog-related { margin-top: 56px; }
.inv-blog-related h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--inv-text);
}
.inv-blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.inv-blog-card {
  background: var(--inv-card);
  border: 1px solid var(--inv-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}
.inv-blog-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}
.inv-blog-card-img { aspect-ratio: 16/10; background: var(--inv-border); overflow: hidden; }
.inv-blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.inv-blog-card-body { padding: 18px; }
.inv-blog-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--inv-text);
  margin: 0 0 8px;
  line-height: 1.3;
}
.inv-blog-card-meta { font-size: 11px; color: var(--inv-text3); }
.inv-blog-internal {
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), transparent);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 14px;
}
.inv-blog-internal h3 {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--inv-gold);
  margin: 0 0 14px;
}
.inv-blog-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.inv-blog-internal-links a {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--inv-border);
  color: var(--inv-text2);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.inv-blog-internal-links a:hover {
  border-color: var(--inv-gold);
  color: var(--inv-gold);
}
.inv-blog-archive-header {
  text-align: center;
  margin-bottom: 48px;
}
.inv-blog-archive-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 12px;
}
.inv-blog-archive-header p { color: var(--inv-text2); font-size: 15px; margin: 0; }

/* Blog pagination */
.inv-blog-pagination .nav-links,
.inv-blog-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.inv-blog-pagination a,
.inv-blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--inv-border);
  background: var(--inv-card);
  color: var(--inv-text2);
  text-decoration: none;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}
.inv-blog-pagination a:hover {
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--inv-gold);
}
.inv-blog-pagination .current {
  background: rgba(201, 168, 76, 0.15);
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--inv-gold);
  font-weight: 600;
}

/* Homepage sections */

/* ?????? Section Separator ?????? */
.svc-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.25) 30%, rgba(201,168,76,0.5) 50%, rgba(201,168,76,0.25) 70%, transparent 100%);
  position: relative;
  margin: 0;
}
.svc-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #c9a84c;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

.svc-section {
  --card:   #111827;
  --border: #1e2d4a;
  --border2:#253352;
  --gold:   #c9a84c;
  --gold2:  #e8c96d;
  --text:   #e8edf5;
  --text2:  #8899bb;
  --text3:  #4a5f80;

  position: relative;
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 80px var(--inv-pad);
}

/* ?????? Header row ?????? */
.svc-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.svc-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.svc-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: clamp(26px, 3vw, 40px) !important;
  font-weight: 400 !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 !important; line-height: 1.2 !important;
}
.svc-header-desc {
  font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300;
  font-family: 'DM Sans', sans-serif;
  border-left: 2px solid rgba(201,168,76,.3);
  padding-left: 18px; padding-bottom: 4px;
}

/* ?????? Grid ?????? */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* ?????? Card ??? same layout as why cards ?????? */
.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  animation: svcFadeUp .45s ease both;
  display: flex; flex-direction: column; gap: 16px;
}

/* Left gold bar on hover */
.svc-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}

/* Hover bg glow */
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.05) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}
.svc-card:hover {
  border-color: rgba(201,168,76,.38);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover::after  { opacity: 1; }

/* Stagger */
.svc-card:nth-child(1) { animation-delay: .05s; }
.svc-card:nth-child(2) { animation-delay: .12s; }
.svc-card:nth-child(3) { animation-delay: .19s; }
.svc-card:nth-child(4) { animation-delay: .26s; }
.svc-card:nth-child(5) { animation-delay: .33s; }
.svc-card:nth-child(6) { animation-delay: .40s; }

@keyframes svcFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card top row: number badge + faded icon */
.svc-card-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.svc-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--gold);
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.svc-card:hover .svc-card-num { background: rgba(201,168,76,.2); }

.svc-card-icon-bg {
  font-size: 26px; opacity: .15; line-height: 1;
  transition: opacity .3s, transform .3s;
}
.svc-card:hover .svc-card-icon-bg { opacity: .32; transform: scale(1.1) rotate(-5deg); }

/* Card title */
.svc-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px; font-weight: 400; color: var(--text);
  position: relative; z-index: 1; line-height: 1.3;
}

/* Card desc */
.svc-card-desc {
  font-size: 12.5px; color: var(--text2);
  line-height: 1.75; font-weight: 300;
  position: relative; z-index: 1;
}

/* Bottom stat ??? same as why cards */
.svc-card-stat {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.svc-card-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; color: var(--gold2);
}
.svc-card-stat-label {
  font-size: 10px; color: var(--text3); letter-spacing: .4px;
}

@media(max-width: 768px) {
  .svc-header { grid-template-columns: 1fr; gap: 16px; }
  .svc-header-desc { border-left: none; padding-left: 0; border-top: 1px solid rgba(201,168,76,.2); padding-top: 16px; }
}
@media(max-width: 600px) {
  .svc-section { padding: 60px 24px; }
  .svc-grid    { grid-template-columns: 1fr; }
}



/* ?????? Separator ?????? */
.why-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.25) 30%, rgba(201,168,76,0.5) 50%, rgba(201,168,76,0.25) 70%, transparent 100%);
  position: relative;
}
.why-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: #c9a84c;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

.why-section {
  --card:   #111827;
  --border: #1e2d4a;
  --gold:   #c9a84c;
  --gold2:  #e8c96d;
  --text:   #e8edf5;
  --text2:  #8899bb;
  --text3:  #4a5f80;

  position: relative;
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 80px var(--inv-pad);
}

/* ?????? Header: left title + right desc ?????? */
.why-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.why-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.why-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: clamp(26px, 3vw, 40px) !important;
  font-weight: 400 !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 !important; line-height: 1.2 !important;
}
.why-header-desc {
  font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300;
  font-family: 'DM Sans', sans-serif;
  border-left: 2px solid rgba(201,168,76,.3);
  padding-left: 18px;
  padding-bottom: 4px;
}

/* ?????? Grid ?????? */
.why-upgraded-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ?????? Card ?????? */
.why-upgraded-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  animation: whyFadeUp .45s ease both;
  display: flex; flex-direction: column; gap: 16px;
}

/* Left gold bar */
.why-upgraded-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}

/* Hover bg */
.why-upgraded-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.05) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
}
.why-upgraded-box:hover {
  border-color: rgba(201,168,76,.38);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.why-upgraded-box:hover::before { opacity: 1; }
.why-upgraded-box:hover::after  { opacity: 1; }

/* Stagger */
.why-upgraded-box:nth-child(1) { animation-delay: .05s; }
.why-upgraded-box:nth-child(2) { animation-delay: .12s; }
.why-upgraded-box:nth-child(3) { animation-delay: .19s; }
.why-upgraded-box:nth-child(4) { animation-delay: .26s; }

@keyframes whyFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card top row: number + icon */
.why-card-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}

/* Number badge */
.why-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600; color: var(--gold);
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.why-upgraded-box:hover .why-num { background: rgba(201,168,76,.2); }

/* Large icon top-right */
.why-card-icon {
  font-size: 28px; opacity: .18;
  transition: opacity .3s, transform .3s;
  line-height: 1;
}
.why-upgraded-box:hover .why-card-icon { opacity: .35; transform: scale(1.1) rotate(-5deg); }

/* Card title */
.why-box-title {
  font-family: 'DM Serif Display', serif;
  font-size: 19px; font-weight: 400; color: var(--text);
  position: relative; z-index: 1; line-height: 1.3;
}

/* Card desc */
.why-box-desc {
  font-size: 12.5px; color: var(--text2);
  line-height: 1.75; font-weight: 300;
  position: relative; z-index: 1;
}

/* Bottom stat */
.why-box-stat {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.why-box-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; color: var(--gold2);
}
.why-box-stat-label {
  font-size: 10px; color: var(--text3); letter-spacing: .4px;
}

@media(max-width: 768px) {
  .why-header { grid-template-columns: 1fr; gap: 16px; }
  .why-header-desc { border-left: none; padding-left: 0; border-top: 1px solid rgba(201,168,76,.2); padding-top: 16px; }
  .why-upgraded-grid { grid-template-columns: 1fr; }
}



.pop-calc-section {
  --card:   #111827;
  --border: #1e2d4a;
  --gold:   #c9a84c;
  --gold2:  #e8c96d;
  --text:   #e8edf5;
  --text2:  #8899bb;
  --text3:  #4a5f80;

  position: relative;
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 80px var(--inv-pad);
}

/* ?????? Header ?????? */
.pop-calc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.pop-calc-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 10px;
}
.pop-calc-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 400 !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold2) 60%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 !important; line-height: 1.2 !important;
}
.pop-calc-subtitle {
  font-size: 13px; color: var(--text2); margin-top: 6px;
  font-weight: 300; font-family: 'DM Sans', sans-serif;
}
.pop-calc-view-all {
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid rgba(201,168,76,.3);
  padding: 9px 20px; border-radius: 30px;
  transition: all .25s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.pop-calc-view-all:hover {
  background: rgba(201,168,76,.1);
  border-color: rgba(201,168,76,.5);
  color: var(--gold2);
  text-decoration: none;
}

/* ?????? Top row: 2 highlight cards ?????? */
.pop-calc-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ?????? Bottom row: 4 smaller cards ?????? */
.pop-calc-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ?????? Highlight Card (top row) ?????? */
.pop-calc-highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px 26px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  animation: popCalcFadeUp .45s ease both;
}
.pop-calc-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.pop-calc-highlight:hover {
  border-color: rgba(201,168,76,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  text-decoration: none; color: var(--text);
}
.pop-calc-highlight:hover::before { opacity: 1; }

.pop-calc-highlight .ph-top {
  display: flex; align-items: center; justify-content: space-between;
}
.pop-calc-highlight .ph-icon {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(201,168,76,.14), rgba(201,168,76,.04));
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.pop-calc-highlight .ph-icon i {
  font-size: 20px; color: var(--gold); transition: color .2s;
}
.pop-calc-highlight:hover .ph-icon {
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.08));
  border-color: rgba(201,168,76,.45);
}
.pop-calc-highlight:hover .ph-icon i { color: var(--gold2); }

.pop-calc-highlight .ph-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
  color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.15);
  padding: 4px 12px; border-radius: 20px;
}

.pop-calc-highlight .ph-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; font-weight: 400; color: var(--text);
  line-height: 1.3; position: relative; z-index: 1;
}
.pop-calc-highlight .ph-desc {
  font-size: 12.5px; color: var(--text2);
  line-height: 1.7; font-weight: 300;
  font-family: 'DM Sans', sans-serif;
  position: relative; z-index: 1;
}
.pop-calc-highlight .ph-bottom {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.pop-calc-highlight .ph-stat {
  display: flex; align-items: center; gap: 6px;
}
.pop-calc-highlight .ph-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 700; color: var(--gold2);
}
.pop-calc-highlight .ph-stat-label {
  font-size: 10px; color: var(--text3); letter-spacing: .3px;
}
.pop-calc-highlight .ph-arrow {
  font-size: 11px; font-weight: 600;
  color: var(--gold);
  display: flex; align-items: center; gap: 5px;
  font-family: 'DM Sans', sans-serif;
  transition: gap .2s;
}
.pop-calc-highlight:hover .ph-arrow { gap: 10px; }

/* ?????? Small Card (bottom row) ?????? */
.pop-calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  animation: popCalcFadeUp .45s ease both;
}
.pop-calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.06) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.pop-calc-card:hover {
  border-color: rgba(201,168,76,.4);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,.35);
  text-decoration: none; color: var(--text);
}
.pop-calc-card:hover::before { opacity: 1; }

.pop-calc-card .pc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,.14), rgba(201,168,76,.04));
  border: 1px solid rgba(201,168,76,.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.pop-calc-card .pc-icon i {
  font-size: 17px; color: var(--gold); transition: color .2s;
}
.pop-calc-card:hover .pc-icon {
  background: linear-gradient(135deg, rgba(201,168,76,.22), rgba(201,168,76,.08));
  border-color: rgba(201,168,76,.45);
}
.pop-calc-card:hover .pc-icon i { color: var(--gold2); }

.pop-calc-card .pc-name {
  font-family: 'DM Serif Display', serif;
  font-size: 15px; font-weight: 400; color: var(--text);
  line-height: 1.3; position: relative; z-index: 1;
}
.pop-calc-card .pc-bottom {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  position: relative; z-index: 1;
}
.pop-calc-card .pc-free {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 600;
  color: var(--text3); letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.12);
  padding: 3px 9px; border-radius: 5px;
  transition: all .2s;
}
.pop-calc-card:hover .pc-free {
  color: var(--gold); border-color: rgba(201,168,76,.3);
  background: rgba(201,168,76,.1);
}
.pop-calc-card .pc-arrow {
  font-size: 10px; font-weight: 600;
  color: var(--gold);
  display: flex; align-items: center; gap: 4px;
  font-family: 'DM Sans', sans-serif;
  transition: gap .2s;
}
.pop-calc-card:hover .pc-arrow { gap: 8px; }

/* ?????? Stagger ?????? */
.pop-calc-highlight:nth-child(1) { animation-delay: .04s; }
.pop-calc-highlight:nth-child(2) { animation-delay: .10s; }
.pop-calc-card:nth-child(1) { animation-delay: .16s; }
.pop-calc-card:nth-child(2) { animation-delay: .22s; }
.pop-calc-card:nth-child(3) { animation-delay: .28s; }
.pop-calc-card:nth-child(4) { animation-delay: .34s; }

@keyframes popCalcFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ?????? Responsive ?????? */
@media (max-width: 900px) {
  .pop-calc-top { grid-template-columns: 1fr; }
  .pop-calc-bottom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .pop-calc-bottom-grid { grid-template-columns: 1fr; }
}



.cta-upgraded {
  --gold:  #c9a84c;
  --gold2: #e8c96d;
  --text:  #e8edf5;
  --text2: #8899bb;

  padding: 90px 50px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Animated gold orbs */
.cta-upgraded::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.09) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaOrb1 9s ease-in-out infinite alternate;
}

.cta-upgraded::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaOrb2 11s ease-in-out infinite alternate;
}
@keyframes ctaOrb1 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.3); }
}
@keyframes ctaOrb2 {
  from { transform: translateY(-50%) scale(1); }
  to   { transform: translateY(-50%) scale(1.2); }
}

/* Grid bg */
.cta-inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
}

/* Gold divider line */
.cta-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 24px;
}

/* Tag */
.cta-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.05));
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 30px; margin-bottom: 20px;
}

/* Title */
.cta-title {
  font-family: 'DM Serif Display', serif !important;
  font-size: clamp(28px, 4vw, 48px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  background: linear-gradient(135deg, #fff 0%, var(--gold2) 55%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin: 0 0 14px !important;
}

/* Subtitle */
.cta-sub {
  font-size: 15px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 36px !important;
}

/* Buttons */
.cta-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), #a8882e);
  color: #0a0e1a !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  padding: 15px 34px; border-radius: 14px;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 28px rgba(201,168,76,.35);
  letter-spacing: .2px;
}
.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(201,168,76,.5);
  color: #0a0e1a !important;
  text-decoration: none !important;
}

.cta-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--text2) !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 15px 28px; border-radius: 14px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.1);
  transition: border-color .2s, color .2s, background .2s;
}
.cta-btn-secondary:hover {
  border-color: rgba(201,168,76,.35);
  color: var(--gold) !important;
  background: rgba(201,168,76,.06);
  text-decoration: none !important;
}

/* Bottom trust line */
.cta-trust {
  margin-top: 28px;
  font-size: 11px; color: var(--text2);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap;
}
.cta-trust span {
  display: flex; align-items: center; gap: 5px;
}
.cta-trust span::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

@media(max-width: 600px) {
  .cta-upgraded { padding: 70px 24px; }
  .cta-btns { flex-direction: column; }
  .cta-btn-primary, .cta-btn-secondary { width: 100%; justify-content: center; }
}

/* ── Homepage content sections ──
   Reduced top padding on .inv-home-popular (first section after trending)
   to create a tighter visual group: trust → trending → popular.
   Finance Categories keeps the full 64px to feel like a new section.    */
.inv-home-section {
  max-width: var(--inv-max);
  margin: 0 auto;
  padding: 56px var(--inv-pad);
  box-sizing: border-box;
}
.inv-home-popular {
  padding-top: 40px; /* closer to trending section above */
}
.inv-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.inv-home-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.inv-home-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.inv-home-section-head h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--text);
  margin: 0 0 8px;
}
.inv-home-section-head p {
  color: var(--text2);
  font-size: 14px;
  margin: 0;
  max-width: 520px;
}
.inv-home-link-all {
  color: var(--gold) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.inv-home-trending {
  max-width: var(--inv-max);
  margin: 0 auto;
  /* top padding connects visually with the trust strip above it */
  padding: 28px var(--inv-pad) 0;
}
.inv-home-trending-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.inv-home-trending-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}
.inv-home-trending-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.inv-home-trend-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(201, 168, 76, 0.06);
  color: var(--text) !important;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  transition: border-color 0.25s, background 0.25s;
}
.inv-home-trend-pill:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.12);
}
/* ── Popular Calculators ── */
.inv-home-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.inv-home-calc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  text-decoration: none !important;
  color: var(--text);
  will-change: transform;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(.22, .68, 0, 1.2), box-shadow 0.35s;
}
.inv-home-calc-card--highlight {
  border-color: rgba(201, 168, 76, 0.28);
  background: linear-gradient(155deg, rgba(201, 168, 76, 0.09) 0%, rgba(201, 168, 76, 0.03) 60%, rgba(255, 255, 255, 0.015) 100%);
}
.inv-home-calc-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.1);
}
.inv-home-calc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.22);
  font-size: 26px;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.inv-home-calc-card:hover .inv-home-calc-icon {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.45);
}
.inv-home-calc-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}
.inv-home-calc-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}
.inv-home-calc-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2px;
}

/* ── Finance Categories ── */
.inv-home-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.inv-home-cat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  text-decoration: none !important;
  color: var(--text);
  will-change: transform;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(.22, .68, 0, 1.2), box-shadow 0.35s;
}
.inv-home-cat-card:hover {
  border-color: rgba(201, 168, 76, 0.48);
  transform: translateY(-7px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.1);
}
.inv-home-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.22);
  font-size: 28px;
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.inv-home-cat-card:hover .inv-home-cat-icon {
  background: rgba(201, 168, 76, 0.18);
  border-color: rgba(201, 168, 76, 0.45);
  transform: scale(1.08);
}
.inv-home-cat-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.2;
}
.inv-home-cat-card p {
  font-size: 13px;
  color: var(--text2);
  margin: 0 0 22px;
  line-height: 1.65;
  flex-grow: 1;
}
.inv-home-cat-link {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.inv-home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.inv-home-blog-card-link {
  display: block;
  text-decoration: none !important;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  height: 100%;
}
.inv-home-blog-card-link:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-3px);
}
.inv-home-blog-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f1528;
}
.inv-home-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inv-home-blog-thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.inv-home-blog-card-link h3 {
  font-size: 16px;
  padding: 16px 18px 8px;
  margin: 0;
  line-height: 1.35;
}
.inv-home-blog-card-link p {
  font-size: 13px;
  color: var(--text2);
  padding: 0 18px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.inv-home-blog-meta {
  display: block;
  font-size: 11px;
  color: var(--gold);
  padding: 0 18px 18px;
}
@media (max-width: 900px) {
  .inv-home-calc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .inv-home-cats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .inv-home-blog-grid { grid-template-columns: 1fr; }
  .inv-home-calc-card { padding: 24px 22px 20px; }
  .inv-home-cat-card  { padding: 26px 22px; }
  /* No hover on touch devices — free compositor layers & simplify box-shadow */
  .inv-home-calc-card,
  .inv-home-cat-card  { will-change: auto; }
  .inv-home-calc-card:hover,
  .inv-home-cat-card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 600px) {
  .inv-home-calc-grid,
  .inv-home-cats-grid { grid-template-columns: 1fr; gap: 14px; }
  .inv-home-calc-card { padding: 22px 20px 18px; }
  .inv-home-calc-icon { width: 48px; height: 48px; font-size: 23px; margin-bottom: 16px; }
  .inv-home-cat-icon  { width: 52px; height: 52px; font-size: 25px; margin-bottom: 18px; }
}

