:root {
  --shadow: 9px 9px 16px -7px rgba(0, 0, 0, 0.21);
}

.tools-page {
  padding: 35px 0 115px;
  background: var(--off-white);
}

.tools-hero {
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  align-items: start;
  gap: 50px;
  padding-top: 110px;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Faculty Glyphic", Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 70px;
}

.hero-intro {
  display: grid;
  grid-template-columns: repeat(2, 574px);
  gap: 76px;
  justify-content: center;
  margin-top: 45px;
  margin-left: calc((100% - 1224px) / 2);
  width: 1224px;
}

.hero-intro p {
  margin: 0;
  color: var(--black);
  font-size: 20px;
  line-height: 34px;
}

.hero-icon-left {
  width: 191px;
  height: 191px;
  justify-self: start;
  margin-top: -50px;
  transform: rotate(-21.22deg);
}

.hero-icon-right {
  width: 128px;
  height: 128px;
  justify-self: end;
  margin-top: 0;
  transform: translate(-60px, 28px);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 26px;
  margin-top: 85px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 544px;
  padding: 32px 34px;
  border-radius: 18.626px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tool-card:hover,
.tool-card:focus-within {
  box-shadow: 12px 14px 24px -4px rgba(0, 0, 0, 0.22);
  transform: scale(1.018);
}

/* Anchor target for the homepage "See What's Coming" link (second row). */
#coming-soon {
  scroll-margin-top: 40px;
}

.status-badge {
  width: 105px;
  height: 31px;
  object-fit: contain;
}

.status-badge.beta {
  width: 74px;
}

.status-badge.coming {
  width: 135px;
}

.tool-icon {
  position: absolute;
  top: 25px;
  right: 27px;
  width: 75px;
  height: 75px;
}

.tool-copy {
  margin-top: 48px;
}

.tool-copy h2 {
  max-width: 310px;
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  line-height: 29.4px;
}

.tool-copy .audience {
  margin: 0;
  color: var(--rose);
  font-size: 18px;
  font-weight: 800;
  line-height: 28px;
}

.tool-copy p:not(.audience) {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  line-height: 30px;
}

.tool-copy ul {
  margin: 28px 0 0;
  padding-left: 22px;
  color: var(--navy);
  font-size: 18px;
  line-height: 30px;
}

.outline-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 39px;
  gap: 8px;
  margin-top: auto;
  padding: 8px 15px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  color: var(--rose);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
}

.outline-button::before {
  position: absolute;
  left: 50%;
  top: 47.5px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--light-blue);
  content: "";
  transform: translateX(-50%);
  transition:
    top 180ms ease,
    width 180ms ease,
    height 180ms ease;
}

.outline-button > * {
  position: relative;
  z-index: 1;
}

.outline-button .button-label,
.outline-button .button-arrow {
  color: var(--rose);
  transition: color 160ms ease;
}

.outline-button .button-arrow,
.outline-button .button-arrow svg {
  width: 11px;
  height: 11px;
}

.outline-button .button-arrow {
  display: inline-flex;
  margin-left: 3px;
}

.outline-button:hover {
  color: var(--navy);
}

.outline-button:hover::before {
  top: -86px;
  width: 205px;
  height: 205px;
}

.outline-button:hover .button-label {
  color: var(--navy);
}

.outline-button:hover .button-arrow {
  color: var(--gold);
}

.building-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 638px;
  min-height: 126px;
  margin-top: 56px;
  padding: 24px 32px;
  border: 1px solid var(--navy);
  border-radius: 18.626px;
  background: var(--off-white);
  box-shadow: var(--shadow);
}

.building-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  line-height: 32px;
}

.building-card p {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.building-card img {
  width: 75px;
  height: 75px;
}

.site-footer {
  padding: 45px 0 36px;
  background: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 177px 380px 1fr;
  gap: 112px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--navy);
}

.footer-logo {
  width: 177px;
}

.watermark {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.lock-icon {
  display: inline-flex;
  width: 26px;
  height: 37px;
  transform: translateY(1px);
}

.lock-icon svg {
  width: 26px;
  height: 37px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 25px 72px;
  justify-content: end;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--rose);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 452px 1fr;
  gap: 11px;
  padding-top: 27px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom p {
  margin: 0;
  line-height: 14px;
}

.footer-bottom p:last-child {
  text-align: right;
}

@media (max-width: 1400px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 18px 28px;
  }

  .tools-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 70px;
  }

  .hero-icon {
    display: none;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-intro {
    width: auto;
    margin-left: 0;
    gap: 32px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-top {
    gap: 28px;
  }

  .footer-nav {
    justify-content: start;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .page-shell {
    width: min(100%, 390px);
  }

  .tools-page {
    padding: 20px 0 35px;
  }

  .site-header {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    min-height: 44px;
  }

  .site-header.menu-open::before {
    position: absolute;
    z-index: -1;
    top: -20px;
    left: -20px;
    width: 390px;
    height: 421px;
    background: var(--off-white);
    content: "";
  }

  .brand img {
    width: 177px;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 13px;
    background: var(--black);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(18px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-18px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 33px;
    right: 33px;
    display: grid;
    width: auto;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-header.menu-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0;
    border-bottom: 1px solid var(--navy);
    color: var(--black);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
  }

  .main-nav a:hover,
  .main-nav .active {
    color: var(--black);
    font-weight: 600;
  }

  .main-nav a::after {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: currentColor;
    color: var(--black);
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-6.2212e-05 7.95429V5.91425H9.93812L5.03453 1.42242L6.43823 3.24784e-06L13.1011 6.26985V7.57997L6.43823 13.8498L5.01582 12.4087L9.90068 7.95429H-6.2212e-05Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M-6.2212e-05 7.95429V5.91425H9.93812L5.03453 1.42242L6.43823 3.24784e-06L13.1011 6.26985V7.57997L6.43823 13.8498L5.01582 12.4087L9.90068 7.95429H-6.2212e-05Z' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .sign-in {
    min-width: 0;
    margin-top: 0;
    padding: 0 !important;
    border-radius: 0;
    background: transparent;
    color: var(--black) !important;
    text-align: left !important;
  }

  .sign-in:hover {
    background: transparent;
    color: var(--black) !important;
  }

  .tools-hero {
    display: block;
    padding-top: 25px;
  }

  .hero-icon {
    display: block;
  }

  .hero-icon-left {
    display: none;
  }

  .hero-icon-right {
    display: none;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    text-align: left;
  }

  .hero-copy h1 {
    width: 321px;
    font-size: 38.119px;
    line-height: 46.144px;
  }

  .hero-intro {
    display: block;
    width: 291px;
    margin: 17px 0 0;
  }

  .hero-intro p {
    font-size: 16px;
    line-height: 27px;
  }

  .hero-intro p + p {
    display: none;
  }

  .tool-grid {
    grid-template-columns: 1fr;
    /* Cancel the base grid-auto-rows:1fr: stacked single-column cards
       should size to their own content. Otherwise every card stretches
       to the tallest one, leaving uneven space below the status badge. */
    grid-auto-rows: auto;
    gap: 9px;
    width: min(374px, calc(100% - 16px));
    margin-top: 24px;
  }

  .tool-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-content: start;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 35px 25px 32px;
    border-radius: 18.626px;
    box-shadow: none;
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }

  .tool-card:nth-child(n + 3) {
    min-height: 0;
  }

  .tool-card:hover,
  .tool-card:focus-within,
  .building-card:hover,
  .building-card:focus-within {
    box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.13);
    transform: scale(1.018);
  }

  .tool-icon {
    top: 17px;
    right: 17px;
    width: 55px;
    height: 55px;
  }

  .tool-copy {
    order: 1;
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .tool-copy h2 {
    max-width: 260px;
    font-size: 22px;
    line-height: 29.409px;
  }

  .tool-copy .audience {
    font-size: 18px;
    line-height: 28px;
  }

  .tool-copy p:not(.audience),
  .tool-copy ul,
  .building-card p {
    font-size: 16px;
    line-height: 26px;
  }

  .tool-copy p:not(.audience) {
    max-width: 323px;
  }

  .tool-copy ul {
    margin-top: 0;
  }

  .status-badge {
    position: static;
    order: 2;
    grid-column: 1;
    width: 105px;
    height: 31px;
    margin-top: 35px;
  }

  .status-badge.beta {
    width: 74px;
  }

  .status-badge.coming {
    width: 135px;
  }

  .outline-button {
    position: static;
    order: 3;
    grid-column: 2;
    justify-self: end;
    align-self: center;
    width: 24px;
    min-height: 22px;
    margin-top: 35px;
    padding: 0;
    border: 0;
    color: var(--black);
    font-size: 0;
    overflow: visible;
  }

  .outline-button::before,
  .outline-button .button-label {
    display: none;
  }

  .outline-button .button-arrow,
  .outline-button .button-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--black);
  }

  .building-card {
    position: relative;
    width: min(374px, calc(100% - 16px));
    min-height: 143px;
    margin-top: 42px;
    padding: 26px 88px 26px 25px;
    border-radius: 18.626px;
    box-shadow: none;
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }

  .building-card h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .building-card img {
    display: none;
  }

  .building-card::before {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 55px;
    height: 55px;
    background: url("assets/build-new-tools-icon.png") center / contain no-repeat;
    content: "";
  }

  .site-footer {
    padding: 32px 0 31px;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    gap: 31px;
    align-items: stretch;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .footer-logo {
    order: 2;
    width: 147px;
  }

  .watermark {
    order: 1;
    min-height: 67px;
    padding: 12px 16px;
    border: 0.5px solid var(--navy);
    border-radius: 9.339px;
    grid-template-columns: 26px 1fr;
    gap: 15px;
    align-items: center;
    font-size: 12px;
    line-height: 22px;
  }

  .footer-nav {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 14px;
  }

  .footer-nav a {
    display: flex;
    justify-content: space-between;
    padding: 0;
    border-top: 0.75px solid var(--navy);
    line-height: 35px;
  }

  .footer-nav a::after {
    content: "→";
  }

  .footer-nav a:last-child {
    border-bottom: 0.75px solid var(--navy);
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    gap: 22px;
    padding-top: 24px;
    font-size: 12px;
  }

  .footer-bottom p {
    line-height: 16px;
    text-align: left;
  }

  .footer-bottom p:last-child {
    text-align: center;
  }
}
