:root {
  color-scheme: light;
  --navy: #2f3b47;
  --navy-deep: #26323d;
  --green: #87b885;
  --green-light: #b8f8b6;
  --paper: #edefeb;
  --white: #ffffff;
  --ink: #323d3e;
  --muted: #657071;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  font-family: Inter, "Source Sans Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  color: var(--white);
  background: var(--navy);
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.lab-link {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand {
  font-size: 1.18rem;
}

.lab-link {
  font-size: 0.76rem;
}

.lab-link span {
  margin-left: 0.25rem;
  color: var(--green-light);
}

.brand:hover,
.lab-link:hover {
  color: var(--green-light);
}

main {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.hero::after {
  position: absolute;
  inset: auto -4% -76px;
  height: 150px;
  content: "";
  opacity: 0.16;
  transform: rotate(-2deg);
  background:
    linear-gradient(135deg, transparent 25%, var(--green) 25% 50%, transparent 50% 75%, var(--green) 75%) 0 0 / 120px 120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(74px, 9vw, 112px) clamp(88px, 11vw, 132px);
  text-align: center;
}

.hero p {
  margin: 0 0 12px;
  color: var(--green-light);
  font-size: clamp(0.72rem, 1.2vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.tools {
  padding-block: clamp(52px, 7vw, 82px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.tool-card {
  min-height: 310px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 24px;
  padding: clamp(26px, 4vw, 42px);
  border-top: 4px solid var(--green);
  color: inherit;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(47, 59, 71, 0.09);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

a.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 34px rgba(47, 59, 71, 0.14);
}

a.tool-card:focus-visible,
.lab-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 4px;
}

.tool-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
}

.tool-icon svg {
  width: 48px;
  height: 48px;
  overflow: visible;
}

.tool-icon circle {
  fill: currentColor;
}

.tool-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.tool-title-row {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.tool-copy p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid currentColor;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-live {
  color: #477746;
}

.status-pending {
  color: #817041;
}

.tool-arrow {
  align-self: flex-end;
  margin-top: auto;
  color: var(--green);
  font-size: 2rem;
  font-weight: 400;
  transition: transform 180ms ease;
}

a.tool-card:hover .tool-arrow {
  transform: translateX(5px);
}

footer {
  color: #b9c0c4;
  background: var(--navy);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    min-height: 54px;
  }

  .lab-link {
    font-size: 0.7rem;
  }

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

  .tool-card {
    min-height: 268px;
    gap: 18px;
    padding: 26px 24px;
  }

  .tool-icon {
    width: 58px;
    height: 58px;
  }

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

  .tool-copy p {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
