/**
 * "Our tools" section (Cockpit, Circles, Amplify). Same type, colors and
 * rule language as Meet the crew.
 */
.tools-section {
  background: #fbfaf5;
  border-top: 1px solid rgba(10, 50, 105, 0.12);
  padding: clamp(3.5rem, 5vw, 5.5rem) clamp(1.5rem, 8vw, 9rem);
}
.tools-section__inner { margin: 0 auto; max-width: 92rem; }
.tools-section__header {
  align-items: end;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
}
.tools-section__label { margin-bottom: 1.1rem; }
.tools-section__header h2 {
  color: var(--ink, #0f2c5c);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.88;
  margin: 0;
}
.tools-section__header h2 em { color: var(--sage, #7d8f6f); font-weight: 500; }
.tools-section__intro {
  color: #506058;
  font-size: clamp(0.94rem, 1vw, 1.05rem);
  line-height: 1.65;
  margin: 0 0 0.3rem;
  max-width: 31rem;
}
.tools-section__grid {
  display: grid;
  gap: clamp(1.2rem, 2vw, 2rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.25rem, 4vw, 3.75rem);
}

.tools-card {
  border-top: 1px solid rgba(10, 50, 105, 0.24);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 1.1rem;
}
.tools-card__head { align-items: center; display: flex; gap: 0.9rem; }
.tools-card__head img { border-radius: 12px; flex-shrink: 0; height: 52px; object-fit: cover; width: 52px; }
.tools-card h3 {
  color: var(--ink, #0f2c5c);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 2.15vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.96;
  margin: 0;
}
.tools-card__tag {
  color: var(--clay, #a9512f);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.35;
  margin: 0.35rem 0 0;
  text-transform: uppercase;
}
.tools-card__blurb {
  color: #506058;
  font-size: clamp(0.85rem, 0.9vw, 0.94rem);
  line-height: 1.6;
  margin: 1rem 0 1.2rem;
}

.tools-card__panel {
  background: #fff;
  border: 1px solid rgba(10, 50, 105, 0.14);
  box-shadow: 0 10px 30px -18px rgba(15, 44, 92, 0.35);
  clip-path: polygon(0 0, calc(100% - 1.25rem) 0, 100% 1.25rem, 100% 100%, 0 100%);
  flex: 1;
  padding: 1rem 1.1rem 0.6rem;
}
.tools-card__panel-top {
  align-items: center;
  color: var(--ink, #0f2c5c);
  display: flex;
  font-size: 0.7rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.tools-card__panel-top em {
  background: #f1ece0;
  color: #7a6a4a;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-right: 1rem;
  padding: 0.2rem 0.45rem;
}
.tools-card__stats { display: grid; gap: 0.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0.9rem 0 0; }
.tools-card__stats div { display: flex; flex-direction: column; min-width: 0; }
.tools-card__stats dd { order: -1; }
.tools-card__stats dd {
  color: var(--ink, #0f2c5c);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
}
.tools-card__stats dt { color: #6b7770; font-size: 0.68rem; line-height: 1.3; margin-top: 0.25rem; }

.tools-card__stages { display: flex; gap: 3px; margin-top: 1rem; }
.tools-card__stages div { display: flex; flex-direction: column; min-width: 0; }
.tools-card__stages i { background: #c9d3bf; display: block; height: 6px; }
.tools-card__stages div:nth-child(2) i { background: #9fb091; }
.tools-card__stages div:nth-child(3) i { background: #6f8a63; }
.tools-card__stages div:nth-child(4) i { background: #0f2c5c; }
.tools-card__stages b { color: var(--ink, #0f2c5c); font-size: 0.78rem; margin-top: 0.3rem; }
.tools-card__stages span { color: #6b7770; font-size: 0.62rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tools-card__rows { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.tools-card__rows li {
  align-items: baseline;
  border-top: 1px solid rgba(10, 50, 105, 0.1);
  display: grid;
  column-gap: 0.55rem;
  grid-template-columns: 0.5rem minmax(0, 1fr);
  padding: 0.6rem 0;
}
.tools-card__rows i { background: #9fb091; border-radius: 50%; height: 0.5rem; transform: translateY(-1px); width: 0.5rem; }
.tools-card__rows .is-due i { background: var(--clay, #a9512f); }
.tools-card__rows .is-alert i { background: #c0392b; }
.tools-card__rows .is-work i { background: #0f2c5c; }
.tools-card__rows b { color: #22312a; font-size: 0.84rem; font-weight: 600; line-height: 1.35; }
.tools-card__rows small { color: #6b7770; font-size: 0.72rem; grid-column: 2; margin-top: 0.1rem; }

.tools-card__cta {
  align-self: flex-start;
  border: 1.5px solid #0f2c5c;
  color: #0f2c5c !important;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 1.1rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.tools-card__cta:hover, .tools-card__cta:focus-visible { background: #0f2c5c; color: #fff !important; }
.tools-card__cta:focus-visible { outline: 2px solid #a9512f; outline-offset: 2px; }

.tools-sr { clip: rect(0 0 0 0); height: 1px; overflow: hidden; position: absolute; width: 1px; }

@media (max-width: 1100px) {
  .tools-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.75rem; }
}
@media (max-width: 720px) {
  .tools-section__header { align-items: start; gap: 1.25rem; grid-template-columns: 1fr; }
  .tools-section__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tools-section { padding: 3.75rem 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .tools-card__cta { transition: none; } }
