:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #596971;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  --accent: #31b9ad;
  --muted: #9aa5aa;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
a {
  font: inherit;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.intro__image-wrap {
  aspect-ratio: 1.5;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f2f1ed;
}

.intro__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.intro__copy {
  position: relative;
  align-self: center;
  max-width: 720px;
  padding: 64px clamp(28px, 4vw, 72px);
}

.intro h1 {
  margin: 0;
  color: #58676e;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 750;
  letter-spacing: -1.5px;
  line-height: 1.12;
}

.intro__subtitle {
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.7px;
  line-height: 1.2;
}

.intro__description {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.features {
  width: min(100% - 64px, 1200px);
  margin: 38px auto 64px;
}

.feature-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 174px));
  align-items: stretch;
  border-bottom: 1px solid #d9e0e2;
}

.feature-tab {
  position: relative;
  display: flex;
  min-height: 94px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 12px 18px;
  border: 0;
  background: transparent;
  color: #596971;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.feature-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: transparent;
  content: "";
}

.feature-tab img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 2px;
}

.feature-tab:hover,
.feature-tab.is-active {
  color: var(--accent);
}

.feature-tab.is-active::after {
  background: var(--accent);
}

.feature-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding-top: 30px;
}

.feature-panel__image {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  background: #f2f1ed;
}

.feature-panel__copy {
  padding: 0 0 0 0;
}

.feature-panel__title {
  margin: -2px 0 38px;
  color: #596971;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.feature-panel__description {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .intro {
    grid-template-columns: 1fr;
  }

  .intro__image-wrap {
    min-height: 0;
    aspect-ratio: 1.5;
  }

  .intro__image {
    min-height: 0;
  }

  .intro__copy {
    padding: 40px 24px 44px;
  }

  .intro__subtitle {
    margin-bottom: 16px;
  }

  .features {
    width: min(100% - 40px, 560px);
    margin-top: 18px;
  }

  .feature-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-tab {
    min-height: 100px;
    gap: 7px;
    padding: 0 4px 14px;
    font-size: 11px;
  }

  .feature-tab img {
    width: 38px;
    height: 38px;
  }

  .feature-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 22px;
  }

  .feature-panel__title {
    margin-bottom: 14px;
  }
}

@media (max-width: 420px) {
  .features {
    width: min(100% - 28px, 560px);
  }

  .feature-tab {
    font-size: 10px;
  }

  .feature-panel__image {
    aspect-ratio: 1.25;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .feature-panel__image {
    animation: image-appear 220ms ease-out;
  }

  @keyframes image-appear {
    from {
      opacity: 0.65;
    }

    to {
      opacity: 1;
    }
  }
}
