/* Homepage catalog — FinansoPolis */
.home-catalog {
  --fp-purple: #803588;
  --fp-purple-deep: #480773;
  --fp-purple-bright: #9603b8;
  --fp-magenta: #ef5b81;
  --fp-lilac: #f2eaf3;
  --fp-lilac-soft: #f7f1f8;
  --fp-border: #e4d5e8;
  --fp-text: #2f2a33;
  --fp-muted: #5f5666;
  --fp-shadow: 0 10px 28px rgba(72, 7, 115, 0.1);
  --fp-shadow-soft: 0 4px 14px rgba(72, 7, 115, 0.06);
  max-width: 1120px;
  margin: 8px auto 48px;
  color: var(--fp-text);
}

.home-section {
  position: relative;
  margin: 0 0 52px;
  z-index: 0;
}

.home-section__header {
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
}

.home-section__header--narrow {
  max-width: 760px;
}

.home-section__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(128, 53, 136, 0.1);
  color: var(--fp-purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.home-section__header h2 {
  margin: 0 0 12px;
  font-family: Poppins, Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  color: #1f1724;
}

.home-section__header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fp-muted);
}

.home-section__footer-cta {
  margin: 30px 0 0;
  text-align: center;
}

/* Full-bleed colored bands */
.home-section--band {
  padding: 44px 28px;
  margin-bottom: 52px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(239, 91, 129, 0.08), transparent 42%),
    linear-gradient(180deg, #f7f1f9 0%, #f3ebf6 100%);
  border: 1px solid #eadff0;
}

.home-section--band-deep {
  background:
    radial-gradient(circle at top left, rgba(150, 3, 184, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(239, 91, 129, 0.12), transparent 40%),
    linear-gradient(135deg, #f4ebf8 0%, #efe4f5 48%, #f8f1f6 100%);
  border-color: #e0d0e8;
}

.home-section--band .home-section__eyebrow {
  background: rgba(255, 255, 255, 0.72);
}

/* Dark bands (no purple) */
.home-section--dark {
  padding: 44px 28px;
  margin-bottom: 52px;
  border-radius: 18px;
  border: 1px solid #2a3340;
  background: linear-gradient(145deg, #1b2330 0%, #232d3b 48%, #18212c 100%);
  color: #e8edf3;
}

.home-section--dark-alt {
  border-color: #2c333c;
  background: linear-gradient(165deg, #20252d 0%, #161a20 55%, #1a1f27 100%);
}

.home-section--dark .home-section__eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #c9d4e2;
}

.home-section--dark .home-section__header h2 {
  color: #fff;
}

.home-section--dark .home-section__header p {
  color: #aeb9c8;
}

.home-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--fp-purple-bright) 0%, var(--fp-purple-deep) 100%);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(72, 7, 115, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.home-btn:hover,
.home-btn:focus {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(72, 7, 115, 0.22);
  color: #fff !important;
  text-decoration: none !important;
}

/* Goals */
.home-goals {
  padding-top: 8px;
  overflow: visible;
}

.home-goals__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  padding: 26px 20px 22px;
  overflow: hidden;
  border: 1px solid var(--fp-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--fp-shadow-soft);
  color: inherit;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-goal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fp-purple-bright), var(--fp-magenta));
}

.home-goal-card--saving::before {
  background: linear-gradient(90deg, #803588, #c45bb0);
}

.home-goal-card--investing::before {
  background: linear-gradient(90deg, #9603b8, #ef5b81);
}

.home-goal-card--business::before {
  background: linear-gradient(90deg, #6d0948, #ef5b81);
}

.home-goal-card--math::before {
  background: linear-gradient(90deg, #5b2a86, #9b6bc7);
}

.home-goal-card:hover,
.home-goal-card:focus {
  transform: translateY(-4px);
  border-color: #d2b4d8;
  box-shadow: var(--fp-shadow);
  text-decoration: none !important;
  color: inherit;
}

.home-goal-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7eff8 0%, #efe2f4 100%);
  box-shadow: inset 0 0 0 1px rgba(128, 53, 136, 0.08);
}

.home-goal-card--saving .home-goal-card__icon {
  background: linear-gradient(145deg, #f8eef7 0%, #f0dff2 100%);
}

.home-goal-card--investing .home-goal-card__icon {
  background: linear-gradient(145deg, #f6eafc 0%, #efdff8 100%);
}

.home-goal-card--business .home-goal-card__icon {
  background: linear-gradient(145deg, #f9ebf1 0%, #f3dde7 100%);
}

.home-goal-card--math .home-goal-card__icon {
  background: linear-gradient(145deg, #f1ebf8 0%, #e7def3 100%);
}

.home-goal-card__icon img {
  width: 40px;
  height: 40px;
}

.home-goal-card__title {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1f1724;
}

.home-goal-card__desc {
  display: block;
  flex: 1 1 auto;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fp-muted);
}

.home-goal-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-purple);
}

.home-goal-card__cta::after {
  content: "→";
  transition: transform 0.15s ease;
}

.home-goal-card:hover .home-goal-card__cta {
  color: var(--fp-magenta);
}

.home-goal-card:hover .home-goal-card__cta::after {
  transform: translateX(3px);
}

.home-goals__aside {
  position: relative;
  z-index: 2;
  clear: both;
  display: block;
  margin: 28px 0 0;
  padding-top: 4px;
  text-align: center;
  font-size: 14px;
}

.home-goals__aside a {
  color: var(--fp-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 53, 136, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-goals__aside a:hover {
  color: var(--fp-magenta);
  border-bottom-color: rgba(239, 91, 129, 0.55);
}

/* Featured tools */
.home-featured {
  margin-top: 8px;
}

.home-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.home-tool-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-tool-card:hover,
.home-tool-card:focus {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  color: inherit;
}

.home-tool-card > img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-top: 1px;
  padding: 7px;
  border-radius: 12px;
  background: #eef2f6;
  box-sizing: content-box;
}

.home-tool-card__body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.home-tool-card__body strong {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.35;
  color: #1f1724;
}

.home-tool-card__body small {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fp-muted);
}

.home-tool-card__arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8eef5;
  color: #3a4658;
  font-size: 15px;
  line-height: 28px;
  text-align: center;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-tool-card:hover .home-tool-card__arrow {
  opacity: 1;
  transform: translateX(2px);
  background: #d7e1ec;
  color: #1b2330;
}

/* Paths */
.home-paths__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-path-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(72, 7, 115, 0.08);
  backdrop-filter: blur(4px);
}

.home-path-card--fire {
  background:
    linear-gradient(180deg, rgba(255, 248, 250, 0.96) 0%, rgba(255, 255, 255, 0.96) 40%),
    #fff;
  border-color: #f0d7e4;
}

.home-path-card--safety {
  background:
    linear-gradient(180deg, rgba(248, 243, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 40%),
    #fff;
  border-color: #e4d3ec;
}

.home-path-card--sales {
  background:
    linear-gradient(180deg, rgba(252, 242, 246, 0.96) 0%, rgba(255, 255, 255, 0.96) 40%),
    #fff;
  border-color: #ecd5df;
}

.home-path-card--invest {
  background:
    linear-gradient(180deg, rgba(245, 240, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 40%),
    #fff;
  border-color: #ddd0ea;
}

.home-path-card__top {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.home-path-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f4e9f6 100%);
  box-shadow: inset 0 0 0 1px rgba(128, 53, 136, 0.1);
}

.home-path-card--fire .home-path-card__icon {
  background: linear-gradient(145deg, #fff5f8 0%, #f8e1ea 100%);
}

.home-path-card--safety .home-path-card__icon {
  background: linear-gradient(145deg, #f8f2fc 0%, #eadff4 100%);
}

.home-path-card--sales .home-path-card__icon {
  background: linear-gradient(145deg, #fff4f7 0%, #f5dde7 100%);
}

.home-path-card--invest .home-path-card__icon {
  background: linear-gradient(145deg, #f6f1fc 0%, #e8dff5 100%);
}

.home-path-card__icon img {
  width: 40px;
  height: 40px;
}

.home-path-card__top h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f1724;
}

.home-path-card__top p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fp-muted);
}

.home-path-steps {
  list-style: none;
  margin: 0 0 22px;
  padding: 12px 12px 4px;
  border-radius: 12px;
  background: rgba(247, 241, 249, 0.7);
}

.home-path-steps > li {
  position: relative;
  margin: 0;
}

.home-path-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 40px;
  bottom: -2px;
  width: 2px;
  background: linear-gradient(180deg, #c9a4d2 0%, #eadff0 100%);
}

.home-path-steps a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 10px 12px;
  margin: 0 -2px;
  color: inherit;
  text-decoration: none !important;
  border-radius: 10px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-path-steps a:hover,
.home-path-steps a:focus {
  background: #fff;
  box-shadow: 0 4px 12px rgba(72, 7, 115, 0.08);
  text-decoration: none !important;
}

.home-path-steps__num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--fp-purple-bright), var(--fp-purple-deep));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(72, 7, 115, 0.2);
}

.home-path-steps__text {
  display: block;
  min-width: 0;
  padding-top: 2px;
}

.home-path-steps__text strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
  color: #1f1724;
}

.home-path-steps a:hover .home-path-steps__text strong {
  color: var(--fp-purple);
}

.home-path-steps__text small {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--fp-muted);
}

.home-path-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 11px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f06587 0%, #ef5b81 55%, #e24f78 100%);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(226, 79, 120, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.home-path-card__cta::after {
  content: "→";
}

.home-path-card__cta:hover,
.home-path-card__cta:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(226, 79, 120, 0.34);
  color: #fff !important;
  text-decoration: none !important;
}

/* Blog */
.home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.home-blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #d9e0e8, #c5ced8);
}

.home-blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.home-blog-card:hover .home-blog-card__media img {
  transform: scale(1.03);
}

.home-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 16px 16px;
}

.home-blog-card__body h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.home-blog-card__body h3 a {
  color: #1f1724;
  text-decoration: none;
}

.home-blog-card__body h3 a:hover {
  color: var(--fp-purple);
}

.home-blog-card__body p {
  flex: 1 1 auto;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fp-muted);
}

.home-blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2a3648;
  text-decoration: none;
}

.home-blog-card__cta::after {
  content: "→";
  transition: transform 0.15s ease;
}

.home-blog-card__cta:hover {
  color: #ef5b81;
}

.home-blog-card__cta:hover::after {
  transform: translateX(3px);
}

.home-blog .home-btn {
  background: #fff;
  color: #1b2330 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.home-blog .home-btn:hover,
.home-blog .home-btn:focus {
  color: #1b2330 !important;
  background: #f3f6fa;
}

/* New calculators */
.home-new__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.home-new-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 14px;
  border-radius: 12px;
  border: 1px solid #eee4f0;
  background: linear-gradient(180deg, #fff 0%, #fcf9fd 100%);
  color: inherit;
  text-decoration: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-new-card:hover,
.home-new-card:focus {
  transform: translateY(-1px);
  border-color: #d5b9dc;
  box-shadow: var(--fp-shadow-soft);
  text-decoration: none !important;
  color: inherit;
}

.home-new-card img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 10px;
  background: var(--fp-lilac-soft);
  box-sizing: content-box;
}

.home-new-card__body {
  display: block;
  min-width: 0;
}

.home-new-card__body strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--fp-purple);
}

.home-new-card:hover .home-new-card__body strong {
  color: var(--fp-magenta);
}

.home-new-card__body small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #5f5666;
}

/* About */
.home-about {
  margin-bottom: 12px;
  padding: 32px 28px;
  border-radius: 16px;
  border: 1px solid #eadff0;
  background:
    radial-gradient(circle at top right, rgba(150, 3, 184, 0.08), transparent 45%),
    linear-gradient(180deg, #fbf7fc 0%, #f6f0f8 100%);
}

.home-about .home-section__header h2 {
  font-size: 22px;
}

.home-about .home-section__header p {
  font-size: 15px;
}

/* Responsive */
@media (max-width: 979px) {
  .home-goals__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-featured__grid,
  .home-blog__grid,
  .home-new__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-paths__grid {
    grid-template-columns: 1fr;
  }

  .home-section__header h2 {
    font-size: 26px;
  }

  .home-section--band,
  .home-section--dark {
    padding: 36px 20px;
  }
}

@media (max-width: 767px) {
  .home-catalog {
    margin-bottom: 28px;
  }

  .home-section {
    margin-bottom: 36px;
  }

  .home-section--band,
  .home-section--dark {
    padding: 28px 14px;
    margin-bottom: 36px;
    border-radius: 14px;
  }

  .home-goals__grid,
  .home-featured__grid,
  .home-blog__grid,
  .home-new__grid,
  .home-paths__grid {
    grid-template-columns: 1fr;
  }

  .home-goals__grid {
    gap: 14px;
  }

  .home-goal-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "icon title"
      "desc desc"
      "cta cta";
    column-gap: 14px;
    row-gap: 8px;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 16px 16px;
    transform: none !important;
  }

  .home-goal-card:hover,
  .home-goal-card:focus {
    transform: none;
  }

  .home-goal-card__icon {
    grid-area: icon;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 14px;
  }

  .home-goal-card__icon img {
    width: 32px;
    height: 32px;
  }

  .home-goal-card__title {
    grid-area: title;
    align-self: center;
    margin: 0;
    font-size: 17px;
  }

  .home-goal-card__desc {
    grid-area: desc;
    margin: 4px 0 0;
    font-size: 13px;
  }

  .home-goal-card__cta {
    grid-area: cta;
    margin-top: 4px;
  }

  .home-section__header {
    margin-bottom: 20px;
    text-align: left;
  }

  .home-section__header h2 {
    font-size: 22px;
  }

  .home-goals__aside,
  .home-section__footer-cta {
    text-align: left;
  }

  .home-goals__aside {
    margin-top: 22px;
  }

  .home-path-card__top {
    flex-direction: column;
  }

  .home-path-steps {
    padding: 10px 8px 2px;
  }

  .home-about {
    padding: 24px 16px;
  }
}
