/* ============================================================
   Free tools hub (/free-tools). Loaded after marketing.css +
   analytics.css (.an-eyebrow, .an-close, .an-cta, buttons).
   Cards use fixed light colours, like every other card on the site,
   so they read the same in both themes. A new tool = one more card;
   the grid wraps on its own.
   ============================================================ */

.ft-hero {
  padding-top: clamp(24px, 3vw, 44px);
  padding-bottom: var(--space-8);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(34, 51, 255, 0.10), transparent 70%),
    var(--color-bg);
}
.ft-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.ft-intro {
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
}

.ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--space-5);
  max-width: 1000px;
  margin: var(--space-7) auto 0;
  padding-inline: var(--space-5);
}

.ft-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  color: #0E1020;
  background: #FFFFFF;
  border: 1px solid #E1E5F0;
  border-radius: 20px;
  box-shadow: 0 24px 60px -28px rgba(14, 16, 32, 0.35), 0 2px 6px rgba(14, 16, 32, 0.04);
}
.ft-card h2 {
  margin-top: 20px;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0E1020;
}
.ft-card > p {
  margin-top: 8px;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.55;
  color: #4B5160;
}
.ft-card__btn { margin-top: auto; align-self: flex-start; }

/* Small result mock, in the calculator card's style */
.ft-card__viz {
  padding: 16px 18px;
  background: #F6F7FC;
  border: 1px solid #E1E5F0;
  border-radius: 14px;
}
.ft-viz__kicker {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4B5160;
}
.ft-viz__big {
  margin-top: 2px;
  font-size: 40px;
  font-weight: var(--font-weight-extra);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-brand);
  font-variant-numeric: tabular-nums;
}
.ft-viz__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ft-viz__rows span {
  display: flex;
  flex-direction: column;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: var(--font-weight-semibold);
  color: #4B5160;
  background: #FFFFFF;
  border: 1px solid #E1E5F0;
  border-radius: 10px;
}
.ft-viz__rows b { font-size: 17px; color: #0E1020; font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
  .ft-intro { font-size: 17px; }
  .ft-grid { margin-top: var(--space-6); padding-inline: var(--space-4); gap: var(--space-4); }
  .ft-card { padding: 18px; }
  .ft-card h2 { font-size: 23px; }
  .ft-card__btn { align-self: stretch; }
}
