:root {
  --tools-hero-bg: #1f1e30;
  --tools-text: #f2f2f2;
  --tools-text-shadow: #1f1e30;
  --tools-dark: #365fb3;
  --tools-blue: #1f1e30;
  --tools-warm: #d9c6a0;
  --tools-card-bg: #f2f2f2;
  --tools-shadow-light: #f2f2f2;
  --tools-shadow-dark: rgba(0, 0, 0, 0.15);
  --tools-gradient-bg: #2d264d;
}

.tools-hero {
  width: 100%;
  min-height: 400px;
  background: url("/img/tools/tools-bg-1.png") repeat var(--tools-hero-bg);
  position: relative;
}

.tools-hero h1 {
  color: var(--tools-text);
  font-size: 5rem;
  text-shadow: 0.05em 0.05em 0.2px var(--tools-text-shadow);
  text-transform: uppercase;
}

.tools-hero p {
  color: var(--tools-text);
  max-width: 600px;
  text-align: center;
  margin: 0.5em 0;
}

@media (min-width: 1200px) {
  .tools-hero {
    min-height: 80vh;
  }
  .tools-hero h1 {
    font-size: 10rem;
  }
}

@media (max-width: 600px) {
  .tools-hero {
    min-height: 300px;
    padding: 25px 15px;
  }
  .tools-hero h1 {
    font-size: 3rem;
  }
}

.tools-value-props {
  align-self: stretch;
  background: var(--tools-dark);
  color: var(--tools-text);
  padding: 40px 20px;
}

.tools-value-props ul {
  list-style: square;
  max-width: 600px;
}

.tools-value-props li {
  font-size: 1.2rem;
  margin: 0.6em 0;
}

.tools-grid-section {
  align-self: stretch;
  background: var(--tools-blue);
  padding: 50px 20px;
}

.tools-logo {
  width: 100%;
  max-width: 600px;
  margin-bottom: 1em;
}

.tools-grid-section > p {
  color: var(--tools-text);
  max-width: 600px;
  text-align: center;
  margin-bottom: 1.5em;
}

.tools-grid-section h2 {
  color: var(--tools-text);
}

.tools-grid-section a {
  text-decoration: none;
}

.tools-why-section {
  align-self: stretch;
  background: var(--tools-warm);
  padding: 50px 20px;
}

.tools-why-section h2 {
  color: #38374a;
  text-shadow:
    1px 1px 0px var(--tools-shadow-light),
    4px 4px 0px var(--tools-shadow-dark);
}

.tools-why-section .mini-section {
  background: var(--tools-card-bg);
  padding: 2em;
  border-radius: 25px;
  max-width: 600px;
  margin-top: 1em;
}

.tools-why-section .mini-section p {
  margin: 0.5em 0;
  align-self: flex-start;
}

.tools-coming-soon {
  align-self: stretch;
  background: var(--tools-dark);
  color: var(--tools-text);
  padding: 40px 20px;
}

.tools-coming-soon p {
  max-width: 600px;
  text-align: center;
}

@media (max-width: 1400px) {
  .tools-grid-section {
    padding: 20px 0;
  }
}

canvas.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.tools-hero h1,
.tools-hero p {
  position: relative;
  z-index: 3;
}

.tools-hero p {
  text-shadow: 0.15em 0.08em var(--tools-text-shadow);
}

.tools-hero .gradient {
  position: absolute;
  z-index: 2;
  background-color: var(--tools-gradient-bg);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}
/* Tool card list (main tools page) */

.tool-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-card-width);
  align-items: stretch;
}

.tool-card {
  display: flex;
  flex-flow: row nowrap;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  min-height: 175px;
}
.tool-card:hover {
  background: #e8e8e8;
}

.tool-card-icon-wrap {
  flex: 0 0 var(--icon-size);
  width: var(--icon-size);
  height: var(--icon-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #365fb3;
  background-color: #365fb3;
  box-sizing: content-box;
}
.tool-card-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
}
.tool-card-icon-placeholder {
  width: var(--icon-size);
  height: var(--icon-size);
  background: #ddd;
  border-radius: 8px;
}

.tool-card-info {
  flex: 1 1 auto;
  justify-content: flex-start;
  align-items: flex-start;
}
.tool-card-info h3 {
  color: #365fb3;
  text-shadow:
    1px 1px 0px #2d264d,
    4px 4px 0px rgba(31, 30, 48, 0.25);
  margin: 0 0 0.3rem;
}
.tool-card-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.tool-card-screenshot-wrap {
  flex: 0 0 var(--screenshot-width);
}
.tool-card-screenshot {
  width: var(--screenshot-width);
  height: auto;
  max-height: 175px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #ddd;
}

@media (max-width: 600px) {
  .tools-why-section {
    padding: 35px;
    background-color: #f2f2f2;
  }
  .tools-why-section h2 {
    text-align: center;
    font-size: 2rem;
  }
  .tools-why-section .mini-section {
    border-radius: 0;
    padding: 0;
  }

  .tool-card-info {
    justify-content: center;
    align-items: center;
  }

  .tools-value-props ul {
    list-style: none;
    text-align: center;
  }

  canvas.hero-bg {
    display: none;
  }
}

@media (max-width: 800px) {
  .tool-card-list {
    align-items: center;
  }
  .tool-card {
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: unset;
    text-align: center;
    max-width: 80vw;
  }
  .tool-card-screenshot-wrap {
    flex: 0 0 auto;
  }
  .tool-card-screenshot {
    width: 100%;
  }
}
