/* Coastal SD Pros tools: marketplace utility layer. */

.tools-page {
  background: #fff;
}

.tools-page h1,
.tools-page h2,
.tools-page p {
  margin-top: 0;
}

.tools-kicker {
  margin: 0 0 8px;
  color: var(--dir-teal-hover);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tools-hero {
  padding: 36px 0;
  border-bottom: 1px solid var(--dir-line);
  background: #eef8fa;
}

.tools-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 86px);
}

.tools-hero h1 {
  max-width: 19ch;
  margin-bottom: 0;
  color: var(--dir-navy);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}

.tools-hero__copy > p:not(.tools-kicker) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--dir-muted);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

.tools-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tools-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--dir-line-strong);
  border-radius: 8px;
  color: var(--dir-navy);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.tools-page .tools-button--primary,
.tools-page .tools-button--primary:hover {
  border-color: var(--dir-coral);
  color: #fff;
  background: var(--dir-coral);
}

.tools-page .tools-button--primary:hover {
  border-color: var(--dir-coral-hover);
  background: var(--dir-coral-hover);
}

.tools-button:hover {
  border-color: var(--dir-teal);
  color: var(--dir-teal-hover);
}

.tools-hero__panel {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 20px;
  border: 1px solid #bfdde2;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 7px 20px rgba(22, 50, 79, .07);
}

.tools-panel__icon {
  display: grid;
  width: 50px;
  height: 50px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 8px;
  color: var(--dir-coral);
  background: #fff0ed;
}

.tools-panel__icon svg {
  width: 27px;
  height: 27px;
}

.tools-hero__panel strong {
  color: var(--dir-navy);
  font-size: 17px;
}

.tools-hero__panel p {
  margin: 4px 0 0;
  color: var(--dir-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tools-hero__panel ul {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--dir-line);
  list-style: none;
}

.tools-hero__panel li {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--dir-line);
  color: var(--dir-ink);
  font-size: 13px;
  font-weight: 600;
}

.tools-hero__panel li:last-child {
  border-bottom: 0;
}

.tools-hero__panel li span {
  color: var(--dir-teal-hover);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tools-section {
  padding: 44px 0 54px;
}

.tools-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.tools-section h2 {
  margin-bottom: 0;
  color: var(--dir-navy);
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.1;
  text-wrap: balance;
}

.tools-section__head > p {
  margin-bottom: 2px;
  color: var(--dir-muted);
  font-size: 13px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tools-grid > li {
  min-width: 0;
}

.tools-card {
  display: grid;
  min-height: 172px;
  height: 100%;
  grid-template-columns: 54px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--dir-line);
  border-radius: 8px;
  color: var(--dir-ink);
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}

.tools-card:hover {
  border-color: #9ecbd1;
  box-shadow: 0 7px 20px rgba(22, 50, 79, .08);
  transform: translateY(-2px);
}

.tools-card:focus-visible {
  outline: 3px solid rgba(20, 125, 128, .26);
  outline-offset: 2px;
}

.tools-card__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #cce3e6;
  border-radius: 8px;
  color: var(--dir-teal-hover);
  background: #f0f9fa;
}

.tools-card__icon svg {
  width: 27px;
  height: 27px;
}

.tools-card__body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tools-card__label {
  color: var(--dir-teal-hover);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tools-card__body > strong {
  color: var(--dir-navy);
  font-size: 18px;
  line-height: 1.25;
  text-wrap: balance;
}

.tools-card__body > span:not(.tools-card__label):not(.tools-card__meta) {
  color: var(--dir-muted);
  font-size: 13px;
  line-height: 1.48;
  text-wrap: pretty;
}

.tools-card__meta {
  align-self: end;
  margin-top: 7px;
  color: var(--dir-ink);
  font-size: 12px;
  font-weight: 700;
}

.tools-card__arrow {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--dir-navy);
  background: var(--dir-neutral);
  font-size: 17px;
  font-weight: 700;
}

.tools-trust {
  padding: 28px 0;
  border-block: 1px solid #bfdde2;
  background: #eef8fa;
}

.tools-trust__inner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.tools-trust__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--dir-teal);
  font-weight: 700;
}

.tools-trust h2 {
  margin-bottom: 4px;
  color: var(--dir-navy);
  font-size: 18px;
}

.tools-trust p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--dir-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tools-trust a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--dir-teal-hover);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.tools-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.tools-footer p {
  max-width: 460px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
}

@media (max-width: 820px) {
  .tools-hero__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tools-hero__panel {
    max-width: 580px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tools-page .dir-nav a:first-child {
    display: inline-flex !important;
  }

  .tools-hero {
    padding: 28px 0;
  }

  .tools-hero h1 {
    font-size: 32px;
  }

  .tools-hero__copy > p:not(.tools-kicker) {
    font-size: 15px;
  }

  .tools-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tools-section {
    padding: 36px 0 42px;
  }

  .tools-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .tools-card {
    min-height: 0;
    grid-template-columns: 46px minmax(0, 1fr) 26px;
    gap: 12px;
    padding: 16px;
  }

  .tools-card__icon {
    width: 46px;
    height: 46px;
  }

  .tools-card__icon svg {
    width: 23px;
    height: 23px;
  }

  .tools-card__arrow {
    width: 26px;
    height: 26px;
  }

  .tools-trust__inner {
    grid-template-columns: 36px 1fr;
  }

  .tools-trust a {
    grid-column: 2;
  }

  .tools-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tools-card {
    transition: none;
  }
}
