/* Promovarea instrumentelor Utile pe restul site-ului: cardul contextual (.tp) și previzualizarea de pe homepage (.tp-home).
   Stiluri proprii, ca să nu depindă de clasele compilate ale Tailwind. */
.tp {
  --tp-blue: #2563eb; --tp-blue-700: #1d4ed8; --tp-blue-50: #eff6ff; --tp-blue-100: #dbeafe;
  --tp-ink: #0f172a; --tp-text: #334155; --tp-muted: #64748b; --tp-line: #e2e8f0;
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 16px; margin: 0; border-radius: 16px; border: 1px solid var(--tp-blue-100);
  background: linear-gradient(135deg, #f8fbff 0%, var(--tp-blue-50) 100%);
  color: var(--tp-text); text-decoration: none; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tp:hover { border-color: #bfdbfe; box-shadow: 0 8px 24px rgba(37, 99, 235, .12); }
.tp:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.tp::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .10), transparent 70%); pointer-events: none; }
.tp__icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3b82f6, var(--tp-blue-700)); box-shadow: 0 6px 14px rgba(37, 99, 235, .25); }
.tp-ico { width: 22px; height: 22px; }
.tp__body { display: grid; gap: 4px; min-width: 0; }
.tp__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--tp-blue-700); }
.tp__title { font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: var(--tp-ink); }
.tp__text { font-size: .9rem; line-height: 1.55; color: var(--tp-text); }
.tp__fact { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--tp-blue-100); font-size: .8rem; color: var(--tp-muted); justify-self: start; }
.tp__fact b { font-size: 1rem; font-weight: 800; color: var(--tp-blue-700); }
.tp__cta { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; padding: 10px 16px; border-radius: 12px; background: var(--tp-blue); color: #fff; font-weight: 700; font-size: .92rem; transition: background-color .2s; }
.tp:hover .tp__cta { background: var(--tp-blue-700); }
.tp-arrow { width: 16px; height: 16px; transition: transform .2s; }
.tp:hover .tp-arrow { transform: translateX(3px); }
@media (min-width: 640px) {
  .tp { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 18px 20px; gap: 4px 18px; }
  .tp__icon { grid-row: auto; width: 52px; height: 52px; border-radius: 15px; }
  .tp-ico { width: 26px; height: 26px; }
  .tp__cta { grid-column: auto; margin-top: 0; white-space: nowrap; }
}
/* Spațiere în contextul paginilor existente */
.tp-wrap { margin: 24px 0; }
.tp-wrap--list { margin: 0; }
.tp-wrap--tight { margin: 0 0 24px; }

/* ---------- Homepage: previzualizarea secțiunii de instrumente ---------- */
.tp-home { padding: 48px 0; background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
@media (min-width: 768px) { .tp-home { padding: 64px 0; } }
.tp-home__inner { max-width: 80rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .tp-home__inner { padding: 0 24px; } }
@media (min-width: 1024px) { .tp-home__inner { padding: 0 32px; } }
.tp-home__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.tp-home__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tp-home__title { margin: 10px 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: #0f172a; line-height: 1.2; }
.tp-home__lead { max-width: 42rem; font-size: 1rem; line-height: 1.6; color: #475569; }
.tp-home__all { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: #2563eb; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.tp-home__all:hover { background: #1d4ed8; }
.tp-home__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
@media (min-width: 640px) { .tp-home__grid { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .tp-home__grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; padding: 4px 0 0; margin: 0; } }
.tp-tool { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; color: #334155; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .06); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
.tp-tool:hover { border-color: #bfdbfe; box-shadow: 0 10px 28px rgba(37, 99, 235, .14); transform: translateY(-2px); }
.tp-tool__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tp-tool__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.tp-tool__new { padding: 3px 10px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tp-tool__title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: #0f172a; }
.tp-tool__desc { font-size: .9rem; line-height: 1.55; color: #475569; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tp-tool__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tp-tool__tags span { padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .74rem; font-weight: 600; }
.tp-tool__go { display: inline-flex; align-items: center; gap: 6px; color: #1d4ed8; font-weight: 700; font-size: .9rem; }
.tp-tool:hover .tp-arrow { transform: translateX(3px); }
.tp-home__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .85rem; color: #64748b; }
.tp-home__trust span { display: inline-flex; align-items: center; gap: 6px; }
.tp-home__trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
