/* Final homepage visual refinement: consistent line icons, balanced tablet cards, stronger CTA legibility. */

.tool-icon {
  display: grid;
  place-items: center;
  color: var(--gold);
  background: transparent;
}

.tool-icon svg {
  width: 58px;
  height: 58px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tablet/iPad: keep five cards balanced as 3 + 2, with the second row centered. */
@media (min-width: 521px) and (max-width: 1000px) {
  .tool-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .tool-card-grid .tool-card { grid-column: span 2; }
  .tool-card-grid .tool-card:nth-child(4) { grid-column: 2 / span 2; }
  .tool-card-grid .tool-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* Subtle navy veil over the final image so the editorial type remains highly legible. */
.future-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 23, 39, .78) 0%,
    rgba(6, 23, 39, .60) 34%,
    rgba(6, 23, 39, .30) 58%,
    rgba(6, 23, 39, .08) 78%,
    rgba(6, 23, 39, 0) 100%
  );
}

.future-callout-copy { position: relative; z-index: 2; }
.future-callout-art { position: relative; z-index: 1; }

@media (max-width: 1000px) {
  .future-callout::before {
    background: linear-gradient(
      180deg,
      rgba(6, 23, 39, .74) 0%,
      rgba(6, 23, 39, .48) 52%,
      rgba(6, 23, 39, .18) 100%
    );
  }
}

@media (max-width: 520px) {
  .tool-card-grid { grid-template-columns: 1fr; }

  .tool-card-grid .tool-card,
  .tool-card-grid .tool-card:nth-child(4),
  .tool-card-grid .tool-card:nth-child(5) { grid-column: auto; }

  .tool-icon { width: 96px; height: 96px; }
  .tool-icon svg { width: 50px; height: 50px; }
}

/* --------------------------------------------------------------------------
   Homepage interaction + editorial polish
   -------------------------------------------------------------------------- */

/* Buttons: soft editorial corners, usable hit area, and a restrained glow. */
.button,
.nav-cta {
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(212,173,104,.07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  box-shadow: 0 0 18px rgba(212,173,104,.13);
  transform: translateY(-1px);
}

.button:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid rgba(212,173,104,.72);
  outline-offset: 3px;
}

/* No decorative arrows inside CTA buttons. Navigation/text links may still use arrows. */
.button span,
.button .arrow,
.button .button-arrow { display: none !important; }

/* Financial tools: cards stay elegant, but remain visibly tappable without a cursor. */
.tool-card {
  position: relative;
  border-radius: 20px;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: 76px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

/* Desktop: no visible control until the card is hovered/focused; only the word glows. */
.tool-card::after {
  content: "Explore" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: 18px !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(-50%, 4px) !important;
  color: var(--gold) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  opacity: 0 !important;
  text-shadow: none;
  transition: opacity .22s ease, transform .22s ease, color .22s ease, text-shadow .22s ease;
}

.tool-card:hover::after,
.tool-card:focus-visible::after {
  opacity: 1 !important;
  transform: translate(-50%, 0) !important;
  color: var(--gold) !important;
  text-shadow: 0 0 10px rgba(212,173,104,.22);
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(212,173,104,.42);
}

.tool-card:focus-visible {
  outline: 2px solid rgba(212,173,104,.72);
  outline-offset: 3px;
}

/* Touch devices: keep a quiet Explore label visible so there is an obvious tap target, but no hover-style glow. */
@media (hover: none), (pointer: coarse) {
  .tool-card::after {
    opacity: .9 !important;
    transform: translate(-50%, 0) !important;
    text-shadow: none !important;
  }

  .tool-card:active {
    transform: translateY(-2px);
    border-color: rgba(212,173,104,.72);
    background: #102f43;
    box-shadow: 0 0 18px rgba(212,173,104,.08);
  }

  .tool-card:active::after {
    color: var(--gold) !important;
    text-shadow: none !important;
  }
}

/* The founder section is editorial, not a card. One visible LinkedIn action only. */
.about-help {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.about-copy {
  min-width: 0;
  max-width: 680px;
}

.about-copy h2 {
  max-width: 620px;
  margin-bottom: 28px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 650px;
}

.about-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.portrait-link {
  display: block;
  width: min(100%, 480px);
  text-decoration: none;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212,173,104,.55);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
  box-shadow: 0 0 22px rgba(212,173,104,.06);
}

.portrait-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Keep the photo itself non-interactive visually; the single text CTA is the action. */
.portrait-link {
  pointer-events: none;
}

.about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 11px 18px;
  border: 1px solid rgba(212,173,104,.65);
  border-radius: 10px;
  color: var(--cream, #f6f0e5);
  background: rgba(212,173,104,.04);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 0 14px rgba(212,173,104,.06);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.about-link:hover,
.about-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(212,173,104,.08);
  box-shadow: 0 0 18px rgba(212,173,104,.13);
}

.about-link:focus-visible {
  outline: 2px solid rgba(212,173,104,.72);
  outline-offset: 3px;
}

/* Remove the duplicate LinkedIn instruction beneath the portrait. */
.portrait-caption { display: none !important; }

@media (max-width: 800px) {
  .about-help {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-visual {
    width: 100%;
    align-items: center;
  }

  .portrait-link {
    width: min(100%, 520px);
  }

  .about-copy h2 {
    margin-bottom: 22px;
  }

  .about-link {
    width: 100%;
    max-width: 360px;
  }
}

/* --------------------------------------------------------------------------
   Minimal approach section: remove the decorative rules above and below the
   five steps. Keep only the icons, numbers, type, and spacing.
   -------------------------------------------------------------------------- */
.approach-flow {
  border-top: 0 !important;
}

.approach-flow::before {
  display: none !important;
}

.approach-step {
  border-bottom: 0 !important;
}

.approach-step::after {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-cta,
  .tool-card,
  .about-link {
    transition: none;
  }
}
