/* Tools page — main SmallForge chrome + product-page visual weight */

.page-tools {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 42% at 50% 0%, rgba(18, 40, 63, 0.08), transparent 58%),
    var(--cream);
}

.page-tools .site-header {
  border-bottom: 2px solid rgba(232, 145, 58, 0.42);
  background: rgba(255, 252, 248, 0.94);
}

.page-tools .nav-desktop .nav-cta {
  background: var(--copper);
  color: var(--navy-deep);
}

.page-tools .nav-desktop .nav-cta:hover {
  background: var(--copper-hover);
  color: var(--navy-deep);
}

.page-tools .nav-desktop a[aria-current="page"] {
  color: var(--navy);
  font-weight: 650;
}

.page-tools .nav-mobile a[aria-current="page"] {
  color: #fff8ec;
  border-color: rgba(232, 184, 109, 0.45);
  background: linear-gradient(100deg, rgba(30, 58, 95, 0.92) 0%, rgba(18, 40, 63, 0.78) 100%);
}

.tools-hero {
  position: relative;
  isolation: isolate;
  padding: 2.4rem 0 2.1rem;
  color: var(--cream);
  background-color: #071426;
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(232, 145, 58, 0.035) 0 1px,
      transparent 1px 18px
    ),
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(232, 145, 58, 0.14), transparent 52%),
    radial-gradient(ellipse 55% 50% at 100% 10%, rgba(30, 58, 95, 0.65), transparent 58%),
    linear-gradient(180deg, #0a1a30 0%, #071426 58%, #061221 100%);
  overflow: hidden;
}

.tools-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 145, 58, 0.45), transparent);
  pointer-events: none;
}

.tools-hero-copy,
.tools-alt-inner,
.page-tools .container {
  max-width: 100%;
}

.tools-hero-copy {
  max-width: 40rem;
}

.tools-hero .eyebrow {
  color: var(--copper);
  letter-spacing: 0.14em;
  margin-bottom: 0.55rem;
}

.tools-hero h1 {
  color: #fffaf3;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  overflow-wrap: break-word;
}

.tools-hero-sub {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(250, 248, 245, 0.78);
  max-width: 36rem;
  margin-bottom: 1.1rem;
  overflow-wrap: break-word;
}

.tools-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tools-hero-points li {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(247, 243, 236, 0.88);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 145, 58, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
}

.tools-grid-wrap {
  padding: 0 0 3.4rem;
  margin-top: -0.35rem;
  background:
    linear-gradient(180deg, #061221 0 2.6rem, transparent 2.6rem),
    var(--cream);
}

.tools-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 840px) {
  .tools-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: stretch;
  }
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  color: #efe7d8;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid rgba(232, 145, 58, 0.38);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(232, 145, 58, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.tool-card:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.tool-card-pf {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(232, 145, 58, 0.03) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(180deg, #0f2238 0%, #0b1d36 55%, #081526 100%);
}

.tool-card-tf {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(227, 155, 45, 0.035) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(180deg, #141d13 0%, #10180f 55%, #0e150d 100%);
  border-color: rgba(227, 155, 45, 0.4);
}

.tool-card-tf:hover,
.tool-card-tf:focus-visible {
  border-color: rgba(227, 155, 45, 0.72);
}

.tool-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem 1.4rem;
  height: 100%;
}

@media (min-width: 640px) {
  .tool-card-inner {
    padding: 1.55rem 1.45rem 1.55rem;
  }
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
}

.tool-audience {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  max-width: 100%;
  overflow-wrap: break-word;
}

.tool-card-tf .tool-audience {
  color: #efc27a;
}

.tool-price {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(247, 243, 236, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 145, 58, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

.tool-card h2 {
  color: #fffaf3;
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.tool-problem {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #fffaf3;
  overflow-wrap: break-word;
}

.tool-benefit {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(239, 231, 216, 0.72);
  overflow-wrap: break-word;
}

.tool-points {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.tool-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(247, 243, 236, 0.88);
}

.tool-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  flex-shrink: 0;
  margin-top: 0.45em;
}

.tool-card-tf .tool-points li::before {
  background: #e39b2d;
}

.tool-points li.is-strong {
  font-weight: 700;
  color: #fff8ec;
  font-size: 0.98rem;
  background: rgba(227, 155, 45, 0.16);
  border: 1px solid rgba(227, 155, 45, 0.42);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-top: 0.2rem;
}

.tool-card-tf .tool-points li.is-strong::before {
  background: #e39b2d;
  box-shadow: 0 0 0 3px rgba(227, 155, 45, 0.28);
  margin-top: 0.5em;
}

.tool-band-tt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  margin-top: 1.15rem;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  color: #efe7d8;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid rgba(232, 145, 58, 0.38);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
  padding: 1.35rem 1.25rem 1.5rem;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(232, 145, 58, 0.03) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(180deg, #0f2238 0%, #0b1d36 55%, #081526 100%);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.tool-band-tt:hover,
.tool-band-tt:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(232, 145, 58, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.tool-band-tt:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.tool-band-tt-copy {
  min-width: 0;
  flex: 1;
}

.tool-band-tt .eyebrow {
  color: var(--copper);
  letter-spacing: 0.14em;
  margin-bottom: 0.45rem;
}

.tool-band-tt h2 {
  color: #fffaf3;
  font-size: clamp(1.7rem, 3vw, 2.05rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.tool-band-tt .tool-benefit {
  margin-bottom: 0.7rem;
}

.tool-band-tt .tool-audience {
  margin-bottom: 0.55rem;
}

.tool-band-tt .tool-points {
  margin-top: 0;
}

.tt-sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0.15rem 0 0.2rem;
  padding: 0.82rem 1.22rem;
  background: #ff8a2a;
  color: #1a140c;
  font-family: var(--font-btn);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  border-radius: 10px;
  border: 2.5px solid #fffaf3;
  box-shadow:
    1px 2px 0 #fffaf3,
    4px 6px 0 rgba(11, 29, 54, 0.32),
    0 10px 22px rgba(255, 138, 42, 0.28);
  transform: rotate(-3deg);
  transform-origin: left center;
  pointer-events: none;
  white-space: nowrap;
}

.tool-band-tt:hover .tt-sticker,
.tool-band-tt:focus-visible .tt-sticker {
  background: #ff9a45;
  transform: rotate(-1.5deg);
}

@media (min-width: 840px) {
  .tool-band-tt {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding: 1.55rem 1.6rem 1.6rem;
  }

  .tt-sticker {
    margin: 0 0.35rem 0 0;
  }
}

.page-tools .tools-alt {
  padding-bottom: 1.4rem;
}

.page-tools .open-note {
  background: var(--cream);
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 0 3rem;
}

.tool-shot {
  margin: 0.2rem 0 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(232, 145, 58, 0.32);
  background: #081526;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.tool-card-tf .tool-shot {
  background: #0e150d;
  border-color: rgba(227, 155, 45, 0.32);
}

.tool-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1360 / 860;
  object-fit: cover;
  object-position: top center;
  filter: blur(8px);
  transform: scale(1.03);
  transform-origin: center center;
}

.tool-card-cta {
  margin-top: auto;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  pointer-events: none;
  box-sizing: border-box;
}

.tool-card:hover .tool-card-cta,
.tool-card:focus-visible .tool-card-cta {
  background: var(--copper-hover);
}

.tool-card-tf .tool-card-cta {
  box-shadow: 0 4px 14px rgba(227, 155, 45, 0.32);
}

.tool-card-note {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(239, 231, 216, 0.62);
}

.tools-alt {
  padding: 2.6rem 0 3.4rem;
  background: var(--cream);
  border-top: 1px solid var(--border-soft);
}

.tools-alt-inner {
  max-width: 40rem;
}

.tools-alt h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin-bottom: 0.55rem;
}

.tools-alt p {
  margin: 0 0 0.55rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.tools-alt p:last-child {
  margin-bottom: 0;
}

.tools-alt a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.tools-alt .btn {
  white-space: normal;
}

.page-tools .site-footer {
  background: var(--navy-deep);
}

@media (max-width: 639px) {
  .tool-band-tt {
    padding: 1.15rem 0.95rem 1.25rem;
  }

  .tt-sticker {
    white-space: normal;
    transform: rotate(-2deg);
  }

  .tools-hero {
    padding: 1.85rem 0 1.7rem;
  }

  .tools-hero h1 {
    font-size: 1.7rem;
  }

  .tools-hero-sub {
    font-size: 1rem;
  }

  .tools-hero-points li {
    font-size: 0.75rem;
    padding: 0.32rem 0.65rem;
  }

  .tool-card-inner {
    padding: 1.15rem 0.95rem 1.2rem;
  }

  .tool-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-audience {
    letter-spacing: 0.08em;
  }

  .tool-problem {
    font-size: 1.02rem;
  }

  .tool-card-cta {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }

  .tool-shot {
    border-radius: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-card:hover,
  .tool-card:focus-visible,
  .tool-band-tt,
  .tool-band-tt:hover,
  .tool-band-tt:focus-visible {
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .tt-sticker,
  .tool-band-tt:hover .tt-sticker,
  .tool-band-tt:focus-visible .tt-sticker {
    transform: rotate(-3deg);
  }

  .tool-shot img {
    transform: none;
  }
}
